diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 008589ade..000000000 --- a/.eslintrc +++ /dev/null @@ -1,40 +0,0 @@ -{ - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 6, - "sourceType": "module", - "ecmaFeatures": { - "experimentalObjectRestSpread": true - } - }, - "extends": "eslint:recommended", - "rules": { - "comma-dangle": 0, - "brace-style": [2, "1tbs"], - "no-console": 0, - "padded-blocks": 0, - "indent": [2, 2, { "SwitchCase": 1 }], - "spaced-comment": 1, - "quotes": ["error", "single", { "avoidEscape": true }], - "no-underscore-dangle": 0, - "no-magic-numbers": 0, - "quote-props": 0, - "prefer-arrow-callback": 0, - "space-before-function-paren": 0, - "no-new": 0, - "func-names": 0, - "global-require": 0, - "new-cap": 0, - "arrow-body-style": 0, - "class-methods-use-this": 0, - "consistent-return": 0, - "semi": [2, "always"], - "max-len": [1, 140] - }, - "env": { - "browser": true, - "es6": true, - "node": true, - "commonjs": true - } -} diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index d5ca164c6..22eb2bacd 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 container: - image: mcr.microsoft.com/playwright:v1.53.1-jammy + image: mcr.microsoft.com/playwright:v1.57.0-jammy env: MPKIT_EMAIL: ${{ secrets.MPKIT_EMAIL }} MPKIT_TOKEN: ${{ secrets.MPKIT_TOKEN }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 94b7807a3..bee7aa08e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,13 +8,14 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} timeout-minutes: 15 strategy: max-parallel: 1 matrix: - version: ['18', '20', '20.11'] + os: [windows-latest, ubuntu-latest] + version: ['22', '24'] steps: - name: Checkout repository @@ -31,7 +32,7 @@ jobs: MPKIT_URL: ${{ secrets.TEST_MPKIT_URL }} POS_PORTAL_PASSWORD: ${{secrets.POS_PORTAL_PASSWORD}} CI: true - shell: sh + shell: bash run: | npm ci npm test diff --git a/.npmrc b/.npmrc index 4e6de4b3c..64e37bd41 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ scope=@platformos -save=false diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d9bd37bc..533249d68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## Unreleased + + +## 6.0.0 + +* Feature: `pos-cli exec liquid` command to execute Liquid code directly on an instance (supports `-f` flag to load from file, requires confirmation on production) +* Feature: `pos-cli exec graphql` command to execute GraphQL queries directly on an instance (supports `-f` flag to load from file, requires confirmation on production) +* Feature: `pos-cli test run` command to run tests using the tests module + +### Major Dependency Upgrades + +We've completed a comprehensive modernization of the CLI including: + +**Node.js Version Requirement**: Now requires Node.js 20 or higher (up from Node.js 18) + +**Breaking Changes** that may require action from users: + +1. **Yeoman generators**: If you have custom generators using `yeoman-generator`, they need to be rewritten for the v7.x update: + - No kebab-case in option names (e.g., `skip-install` → `skipInstall`) + - `composeWith()` is now async (use `await`) + - The `install()` action has been removed; use `addDependencies()` instead + - See [yeoman-generator v5 to v7 migration guide](https://yeoman.github.io/generator/v5-to-v7-migration/) + +2. **Express v5 route syntax**: Routes using wildcards have changed from `/*` to `/*splat` format. This is handled automatically, but if you have custom Express middleware in your project, you may need to update route patterns. + +**Package Upgrades**: All major dependencies have been updated to their latest stable versions including: +- chalk v5.6, chokidar v5.0, express v5.2, ora v9.0, open v11.0 +- inquirer v13.2, mime v4.1, multer v2.0, yeoman-environment v5.1, yeoman-generator v7.5 +- And many other dependency updates for security and stability + +**Test Framework Migration**: Migrated from Jest to Vitest to better support ESM + ## 5.5.0 * Feature: (GUI) Ability to add, edit and remove users diff --git a/CLAUDE.md b/CLAUDE.md index a3345a14b..9d68a6c0b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -90,14 +90,14 @@ pos-cli/ Example: ```javascript // bin/pos-cli-deploy.js -const fetchAuthData = require('../lib/settings').fetchSettings; -const deployStrategy = require('../lib/deploy/strategy'); +import { fetchSettings } from '../lib/settings'; +import deployStrategy from '../lib/deploy/strategy.js'; program .argument('[environment]', 'name of environment') .option('-p --partial-deploy', 'Partial deployment') .action(async (environment, params) => { - const authData = fetchAuthData(environment); + const authData = fetchSettings(environment); deployStrategy.run({ strategy: 'directAssetsUpload', opts: { ... } }); }); ``` @@ -139,11 +139,17 @@ Two deployment strategies: Strategy selection: ```javascript +import defaultStrategy from './defaultStrategy.js'; +import directAssetsUploadStrategy from './directAssetsUploadStrategy.js'; + const strategies = { - default: require('./defaultStrategy'), - directAssetsUpload: require('./directAssetsUploadStrategy'), + default: defaultStrategy, + directAssetsUpload: directAssetsUploadStrategy, }; -module.exports = { run: ({ strategy, opts }) => strategies[strategy](opts) }; + +const run = ({ strategy, opts }) => strategies[strategy](opts); + +export { run }; ``` #### 3. File Watching Pattern - Sync Mode @@ -354,6 +360,8 @@ GUI apps are pre-built (in dist/ or build/ directories). To modify: - **CDN** - Asset delivery and verification ## Node.js Version -- **Minimum**: Node.js 18 -- **Tested on**: 18, 20, 20.11 + +- **Minimum**: Node.js 22 +- **Recommended**: Node.js 22+ +- **Tested on**: 22, 24 - Check enforced by `scripts/check-node-version.js` postinstall hook diff --git a/README.md b/README.md index ddb9e0076..cbfae90bd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run all commands from the project root directory, one level above the `app` or ` ### Requirements -`pos-cli` requires Node.js version 18 or higher to function correctly. [See instructions for installing Node.js on your platform](https://nodejs.org/en/download/). +`pos-cli` requires Node.js version 22 or higher to function correctly. [See instructions for installing Node.js on your platform](https://nodejs.org/en/download/). ## Installation and Update @@ -444,6 +444,60 @@ If you need guidance or additional information about how to use a specific gener pos-cli generate modules/core/generators/command --generator-help +### Executing Code + +#### Execute Liquid + +Execute Liquid code directly on your instance: + + pos-cli exec liquid [environment] [code] + +Example: + + pos-cli exec liquid staging "{{ 'hello' | upcase }}" + +You can also execute Liquid code from a file using the `-f` flag: + + pos-cli exec liquid staging -f path/to/script.liquid + +#### Execute GraphQL + +Execute GraphQL queries directly on your instance: + + pos-cli exec graphql [environment] [query] + +Example: + + pos-cli exec graphql staging "{ users(per_page: 5) { results { id email } } }" + +You can also execute GraphQL from a file using the `-f` flag: + + pos-cli exec graphql staging -f path/to/query.graphql + +**Note:** When executing on production environments (environment name contains "prod" or "production"), you will be prompted for confirmation before execution. + +### Running Tests + +To run tests on your instance, you need to have the [tests module](https://github.com/Platform-OS/pos-module-tests) installed. + +#### Run All Tests + + pos-cli test run [environment] + +Example: + + pos-cli test run staging + +This command runs all tests and streams the results in real-time, showing individual test outcomes and a summary at the end. + +#### Run a Single Test + + pos-cli test run [environment] [test-name] + +Example: + + pos-cli test run staging my_test + ## Development The `pos-cli gui serve` command uses a distinct build process for the GraphiQL interface located in the `gui/editor/graphql` directory. diff --git a/TESTING.md b/TESTING.md new file mode 100644 index 000000000..78910a0a6 --- /dev/null +++ b/TESTING.md @@ -0,0 +1,302 @@ +# Testing Guide for pos-cli + +This document describes the testing architecture, conventions, and how to run and write tests. + +## Overview + +Tests are organized into two categories: + +- **Unit tests** (`test/unit/`) - Fast, isolated tests that mock external dependencies +- **Integration tests** (`test/integration/`) - End-to-end tests that require real platformOS credentials + +## Running Tests + +```bash +# Run all tests +npm test + +# Run only unit tests (fast, no credentials needed) +npm run test:unit + +# Run only integration tests (requires credentials) +npm run test:integration + +# Watch mode for development +npm run test:watch +``` + +## Test Framework + +- **Test Runner**: [Vitest](https://vitest.dev/) v4.x +- **HTTP Mocking**: [nock](https://github.com/nock/nock) for intercepting HTTP requests +- **Module System**: ESM (ES Modules) + +## Directory Structure + +``` +test/ +├── unit/ # Unit tests (mocked dependencies) +│ ├── sync.test.js # shouldBeSynced function tests +│ ├── deploy.test.js # Deploy logic tests with mocked API +│ ├── templates.test.js # Template processing tests +│ ├── manifest.test.js # Asset manifest generation +│ ├── dependencies.test.js # Module dependency resolution +│ └── lib/ # Library-specific unit tests +├── integration/ # Integration tests (real API calls) +│ ├── deploy.test.js # Full deploy workflow +│ ├── sync.test.js # File sync with real instance +│ ├── modules-*.test.js # Module operations +│ └── logs.test.js # Log streaming +├── fixtures/ # Test data and project structures +│ ├── deploy/ # Deploy test projects +│ ├── modules/ # Module test data +│ └── audit/ # Audit rule test cases +└── utils/ # Shared test utilities + ├── credentials.js # Credential management + ├── exec.js # CLI execution helper + └── cliPath.js # Path to CLI binary +``` + +## Writing Tests + +### Unit Tests + +Unit tests should: +- Mock all external dependencies (HTTP, file system when needed) +- Be fast (< 1 second per test) +- Test isolated functionality +- Not require environment credentials + +```javascript +import { describe, test, expect, vi, beforeEach } from 'vitest'; +import nock from 'nock'; + +// Mock dependencies +vi.mock('#lib/logger.js', () => ({ + default: { Debug: vi.fn(), Warn: vi.fn(), Error: vi.fn(), Info: vi.fn() } +})); + +describe('Feature', () => { + beforeEach(() => { + vi.clearAllMocks(); + nock.cleanAll(); + }); + + test('handles API response correctly', async () => { + // Mock the HTTP call + nock('https://example.com') + .post('/api/app_builder/marketplace_releases') + .reply(200, { id: 123, status: 'pending' }); + + // Test the functionality + const result = await someFunction(); + expect(result.id).toBe(123); + }); +}); +``` + +### Integration Tests + +Integration tests should: +- Import `dotenv/config` at the top to load credentials +- Call `requireRealCredentials()` at the start of tests needing real API +- Use extended timeouts for API operations +- Clean up any created resources + +```javascript +import 'dotenv/config'; +import { describe, test, expect, vi } from 'vitest'; +import { requireRealCredentials } from '#test/utils/credentials'; + +vi.setConfig({ testTimeout: 40000 }); // Extended timeout + +describe('Deploy', () => { + test('deploys successfully', async () => { + requireRealCredentials(); + + // Test with real API + const { stdout } = await exec(`${cliPath} deploy`); + expect(stdout).toMatch('Deploy succeeded'); + }); +}); +``` + +## HTTP Mocking Strategy + +### Approach: Record & Replay + +We use HTTP mocking to create unit test versions of integration tests. This approach: + +1. **Records** real API responses during integration test development +2. **Replays** those responses in unit tests for fast, reliable execution +3. **Allows** re-running against real APIs when needed for validation + +### Libraries Evaluated + +| Library | Description | Chosen | +|---------|-------------|--------| +| [nock](https://github.com/nock/nock) | HTTP mocking with declarative API | ✅ Primary | +| [MSW](https://mswjs.io/) | Network-level interception | Alternative | +| [Polly.JS](https://netflix.github.io/pollyjs/) | Record/replay with persistence | For complex scenarios | + +We chose **nock** because: +- Simple, declarative API +- Native fetch support (via @mswjs/interceptors) +- Lightweight, no additional setup needed +- Well-suited for testing HTTP clients + +### Mock Data Organization + +Mock responses are stored alongside tests or in dedicated fixtures: + +``` +test/ +├── unit/ +│ ├── deploy.test.js +│ └── __mocks__/ # Recorded API responses +│ └── deploy/ +│ ├── success.json +│ └── error.json +``` + +## Credential Management + +### For Unit Tests + +Use example credentials from `test/utils/credentials.js`: + +```javascript +import { exampleCredentials } from '#test/utils/credentials'; +// { MPKIT_URL: 'https://example.com', MPKIT_TOKEN: 'test-token', ... } +``` + +### For Integration Tests + +1. Copy `.env.example` to `.env` (or create `.env`) +2. Set real credentials: + +```bash +MPKIT_URL=https://your-instance.platformos.com +MPKIT_TOKEN=your-api-token +MPKIT_EMAIL=your@email.com +``` + +3. Tests will automatically load from `.env` via `dotenv/config` + +## Configuration + +### vitest.config.js + +```javascript +export default defineConfig({ + test: { + environment: 'node', + globals: true, + include: ['test/**/*.{test,spec}.js'], + setupFiles: ['./test/vitest-setup.js'], + testTimeout: 10000, + hookTimeout: 20000 + } +}); +``` + +### Import Aliases + +The project uses import aliases defined in `package.json`: + +```javascript +import something from '#lib/module.js'; // → ./lib/module.js +import util from '#test/utils/file.js'; // → ./test/utils/file.js +``` + +## Migration Progress + +### Status: Active Development + +Converting integration tests to have unit test equivalents with HTTP mocks using nock. + +| Integration Test | Unit Test Status | Unit Test File | Notes | +|-----------------|------------------|----------------|-------| +| deploy.test.js | ✅ Done | `test/unit/deploy.test.js` | Gateway API mocked (push, getStatus, getInstance, sendManifest) | +| sync.test.js | ✅ Partial | `test/unit/sync.test.js` | `shouldBeSynced` function fully tested | +| modules-*.test.js | ✅ Done | `test/unit/modules.test.js` | Portal API mocked (jwtToken, moduleVersions, findModules, etc.) | +| logs.test.js | ✅ Done | `test/unit/logs.test.js` | logs() and liquid() Gateway methods mocked | +| gui-serve.test.js | 🔴 Pending | | May not need mocking (local server) | +| test-run.test.js | 🔴 Pending | | Requires mocking test runner API | + +### Unit Test Coverage Summary + +New unit tests created with HTTP mocking: + +- **`test/unit/deploy.test.js`** (14 tests) + - Gateway API calls (push, getStatus, getInstance, sendManifest) + - Error handling (401, 404, 500, network errors) + - Presign URL functionality + - Archive creation + - Full deploy flow with mocks + +- **`test/unit/modules.test.js`** (19 tests) + - Portal.jwtToken() authentication + - Portal.moduleVersions() version queries + - Portal.findModules() module search + - Portal.createVersion() version publishing + - Device authorization flow + - Module dependency resolution + +- **`test/unit/logs.test.js`** (16 tests) + - Gateway.logs() polling + - Gateway.liquid() execution + - Gateway.ping() health check + - Error handling and log filtering + +### Re-running Integration Tests + +To validate unit test mocks against real API responses: + +```bash +# Run integration tests to verify real API behavior +npm run test:integration + +# Compare with unit tests +npm run test:unit +``` + +### Adding New Mocks + +When adding tests for new API endpoints: + +1. Run the integration test and capture real API responses +2. Create mock responses in your unit test file +3. Use nock to intercept the HTTP calls +4. Verify the unit test behavior matches integration test + +## Best Practices + +1. **Prefer unit tests** - They're faster and more reliable +2. **Integration tests for critical paths** - Deploy, sync, module operations +3. **Mock at the HTTP level** - Use nock to intercept fetch calls +4. **Keep mocks realistic** - Record from real API when possible +5. **Clean up after tests** - Reset mocks and restore state +6. **Use descriptive test names** - Document what's being tested + +## Troubleshooting + +### Tests failing with credential errors + +- Unit tests: Make sure you're using mocks, not real API calls +- Integration tests: Check your `.env` file has valid credentials + +### Timeouts + +- Unit tests should be fast (< 1 second). If timing out, you may be missing a mock. +- Integration tests use extended timeouts. Increase if needed: `vi.setConfig({ testTimeout: 60000 })` + +### Mock not matching + +nock is strict about request matching. Debug with: + +```javascript +nock.recorder.rec(); // Record actual requests +// Run your code +nock.recorder.play(); // See what was called +``` diff --git a/WINDOWS.md b/WINDOWS.md new file mode 100644 index 000000000..63a351468 --- /dev/null +++ b/WINDOWS.md @@ -0,0 +1,528 @@ +# Windows Compatibility Guide + +This document tracks cross-platform compatibility issues between Windows and Unix-like systems (Linux, macOS) and their solutions. + +## Overview + +pos-cli must work identically on Windows, Linux, and macOS. The primary differences between these platforms that affect the codebase are: + +1. **Path Separators**: Windows uses backslash (`\`), Unix uses forward slash (`/`) +2. **Line Endings**: Windows uses CRLF (`\r\n`), Unix uses LF (`\n`) +3. **Command Execution**: Different shell commands and path handling +4. **File System**: Case sensitivity and character restrictions differ + +## Test Failures on Windows (CI Build) + +### Current Status +- **Total Tests**: 499 +- **Failures**: 19 +- **Skipped**: 1 +- **Passing**: 479 + +### Failure Categories + +#### 1. Line Ending Issues (6 failures) + +**Problem**: Code assumes Unix line endings (`\n`) but Windows uses CRLF (`\r\n`) + +**Affected Files**: +- `lib/files.js` - `.posignore` file parsing +- `lib/templates.js` - Template processing +- `lib/assets/manifest.js` - File size calculations + +**Specific Failures**: +1. `test/unit/templates.test.js` (2 failures) + - Test expects: `slug: aStringValue\n` + - Windows gives: `slug: aStringValue\r\n` + - Root cause: Template fixture has Windows line endings on Windows + +2. `test/unit/files.test.js` (1 failure) + - Test expects: `['foo', 'bar', 'baz']` + - Windows gives: `['foo', 'bar', '', 'baz']` (empty string with `\r`) + - Root cause: `.split('\n')` leaves `\r` characters on Windows + - Location: `lib/files.js:62` + +3. `test/unit/manifest.test.js` (2 failures) + - Test expects: `file_size: 20` + - Windows gives: `file_size: 21` + - Root cause: File has CRLF on Windows (1 extra byte per line ending) + - Location: Manifest generation in `lib/assets/manifest.js` + +**Solution Strategy**: +- Use `split(/\r?\n/)` instead of `split('\n')` to handle both endings +- Normalize line endings in test comparisons +- Use `.trim()` to remove trailing whitespace including `\r` +- For file size tests, either normalize fixtures or make tests platform-aware + +#### 2. Path Separator Issues (9 failures) + +**Problem**: Mix of forward slashes and backslashes in paths + +**Affected Files**: +- `lib/shouldBeSynced.js` - Module path detection +- Audit tests - Path output formatting + +**Specific Failures**: +1. `test/unit/sync.test.js` (2 failures) + - "syncs files in modules/public directory" - returns `false` instead of `true` + - "syncs files in modules/private directory" - returns `false` instead of `true` + - Root cause: Path separator handling in `isValidModuleFile()` function + - Location: `lib/shouldBeSynced.js:48-58` + - Current code has Windows detection (`win = path.sep === path.win32.sep`) + - Regex patterns don't match when paths use forward slashes in tests + +2. `test/unit/audit.test.js` (7 failures) + - Tests use `path.join()` which creates `app\views\pages\error.liquid` on Windows + - But output uses forward slashes: `app/views/pages/error.liquid` + - Root cause: Inconsistent path normalization in audit output + +**Solution Strategy**: +- Always normalize paths to forward slashes for internal use +- Use `path.normalize()` consistently +- Convert paths using `.replace(/\\/g, '/')` after path operations +- Make regex patterns platform-agnostic or normalize input first + +#### 3. Sync Output Format Changes (6 failures) + +**Problem**: Output format changed in recent updates + +**Affected Files**: +- `test/integration/sync.test.js` + +**Specific Failures**: +- Tests expect: `[Sync] Synced asset: app/assets/bar.js` +- Actual output: `[14:59:35] [Sync] Synced: assets/bar.js` +- Changes: Added timestamps, changed labels, removed `app/` prefix + +**Solution Strategy**: +- Update test expectations to match new output format +- Use regex patterns that ignore timestamps: `/\[Sync\] Synced: assets\/bar\.js/` +- Or update sync command to restore old format + +#### 4. Command Exit Code Issues (3 failures) + +**Problem**: CLI command not found in test environment + +**Affected Files**: +- `test/integration/test-run.test.js` + +**Specific Failures**: +- Expected exit code: `1` (validation error) +- Actual exit code: `127` (command not found) +- Tests affected: environment validation, connection refused, invalid URL + +**Solution Strategy**: +- Ensure CLI is properly linked before running integration tests +- Check PATH configuration in CI environment +- May be Windows-specific issue with `npm link` or global installation + +## Common Cross-Platform Patterns + +### Pattern 1: Path Handling + +**Problem**: Path separators differ between platforms + +**Bad**: +```javascript +// Hard-coded forward slashes +if (filePath.startsWith('modules/')) { ... } + +// String concatenation +const fullPath = 'app/' + filename; +``` + +**Good**: +```javascript +// Use path.join for construction +const fullPath = path.join('app', filename); + +// Normalize for comparison +const normalized = filePath.replace(/\\/g, '/'); +if (normalized.startsWith('modules/')) { ... } + +// Or use path.sep explicitly +const re = new RegExp(`^modules\\${path.sep}`); +``` + +### Pattern 2: Line Ending Handling + +**Problem**: Text files have different line endings + +**Bad**: +```javascript +// Assumes Unix line endings +const lines = content.split('\n'); + +// Direct string comparison with \n +if (content.endsWith('\n')) { ... } +``` + +**Good**: +```javascript +// Handle both CRLF and LF +const lines = content.split(/\r?\n/); + +// Normalize before comparison +const normalized = content.replace(/\r\n/g, '\n'); + +// Or use .trim() to ignore trailing whitespace +const lines = content.split(/\r?\n/).filter(line => line.trim()); +``` + +### Pattern 3: File Operations + +**Problem**: File size and encoding differ + +**Bad**: +```javascript +// Hard-coded expectations +expect(fs.statSync(file).size).toBe(20); +``` + +**Good**: +```javascript +// Read and normalize +const content = fs.readFileSync(file, 'utf8').replace(/\r\n/g, '\n'); +expect(Buffer.from(content).length).toBe(20); + +// Or calculate expected size dynamically +const expectedSize = fs.statSync(file).size; +``` + +### Pattern 4: Regular Expressions + +**Problem**: Path separators in regex patterns + +**Bad**: +```javascript +// Unix-only pattern +const re = /^modules\/.*\/(public|private)/; +``` + +**Good**: +```javascript +// Dynamic pattern based on platform +const sep = path.sep === '\\' ? '\\\\' : '/'; +const re = new RegExp(`^modules${sep}.*${sep}(public|private)`); + +// Or normalize input first +const normalized = filePath.replace(/\\/g, '/'); +const re = /^modules\/.*\/(public|private)/; +if (re.test(normalized)) { ... } +``` + +## Implementation Checklist + +### Core Library Fixes + +- [x] Identify all line-ending-sensitive operations +- [x] `lib/files.js:62` - Fix `.split('\n')` to handle CRLF +- [x] `lib/shouldBeSynced.js:48-58` - Normalize paths before regex matching +- [x] `lib/watch.js:32-34` - Normalize paths in `isAssetsPath()` check +- [x] `lib/watch.js:106-119` - Normalize paths in `sendAsset()` function +- [x] Review all `String.split('\n')` calls in codebase +- [x] Review all hardcoded path separators in strings + +### Test Fixes + +- [x] `test/unit/templates.test.js` - Normalize expected output +- [x] `test/unit/files.test.js` - Update `.posignore` parsing expectations (fixed via lib/files.js) +- [x] `test/unit/manifest.test.js` - Make file size tests platform-aware +- [x] `test/unit/sync.test.js` - Fix module path test expectations (fixed via lib/shouldBeSynced.js) +- [x] `test/unit/audit.test.js` - Normalize paths in assertions +- [x] `test/integration/sync.test.js` - Update output format expectations (regex patterns) +- [x] `test/integration/test-run.test.js` - Fix CLI availability in CI (use shell: true) + +### Testing Strategy + +1. **Local Testing**: Run tests on both platforms during development +2. **CI Testing**: Automated tests on Windows, Linux, macOS +3. **Manual Testing**: Test CLI commands on all platforms +4. **Path Testing**: Specific tests for path handling edge cases +5. **Line Ending Testing**: Tests with fixtures in both CRLF and LF formats + +### Best Practices Going Forward + +1. **Always use `path.join()` for path construction** +2. **Normalize paths to forward slashes for internal logic** +3. **Use `/\r?\n/` for splitting text by lines** +4. **Filter empty lines with `.filter(Boolean)` or `.filter(line => line.trim())`** +5. **Test on Windows in CI before merging** +6. **Use `.gitattributes` to control line endings in repository** +7. **Document platform-specific behavior in code comments** + +## Git Configuration + +Add to `.gitattributes`: +```gitattributes +# Auto-detect text files and normalize to LF +* text=auto + +# Explicitly set line endings for specific files +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.yml text eol=lf + +# Test fixtures - preserve line endings +test/fixtures/** -text + +# Windows batch files +*.bat text eol=crlf +``` + +## Resources + +- Node.js Path Module: https://nodejs.org/api/path.html +- Cross-Platform Best Practices: https://shapeshed.com/writing-cross-platform-node/ +- Git Line Ending Handling: https://git-scm.com/docs/gitattributes + +## Second Round Fixes (After Initial Deployment) + +After the initial fixes, 6 tests were still failing on Windows CI. The issues were: + +### Issue 1: Asset Path Detection in Sync (5 failures) + +**Problem**: The `isAssetsPath()` function in `lib/watch.js` was checking if paths start with `app/assets` using forward slashes, but on Windows paths use backslashes (`app\assets\bar.js`). + +**Impact**: Asset files weren't being recognized as assets, so they were synced using the regular sync method instead of direct asset upload. This caused log messages to show `[Sync] Synced: assets/bar.js` instead of `[Sync] Synced asset: app/assets/bar.js`. + +**Fix**: Normalize paths to forward slashes before checking in both `isAssetsPath()` and `sendAsset()` functions: + +```javascript +// lib/watch.js:32-35 +const isAssetsPath = path => { + const normalizedPath = path.replace(/\\/g, '/'); + return normalizedPath.startsWith('app/assets') || moduleAssetRegex.test(normalizedPath); +}; + +// lib/watch.js:106-119 +const sendAsset = async (gateway, filePath) => { + const normalizedPath = filePath.replace(/\\/g, '/'); + const fileSubdir = normalizedPath.startsWith('app/assets') + ? path.dirname(normalizedPath).replace('app/assets', '') + : '/' + path.dirname(normalizedPath).replace('/public/assets', ''); + // ... rest of function + logger.Success(`[Sync] Synced asset: ${normalizedPath}`); +}; +``` + +**Files Modified**: +- `lib/watch.js` - Added path normalization in `isAssetsPath()` and `sendAsset()` + +**Tests Fixed**: +- `test/integration/sync.test.js` - "sync assets" +- `test/integration/sync.test.js` - "sync with direct assets upload" +- `test/integration/sync.test.js` - "delete synced file" + +### Issue 2: Shell Command Execution in Tests (3 failures) + +**Problem**: The `exec()` helper function in `test/integration/test-run.test.js` was hardcoded to use `bash -c` for executing shell commands: + +```javascript +const child = spawn('bash', ['-c', command], { ... }); +``` + +On Windows, `bash` is not available by default, resulting in exit code 127 (command not found). + +**Fix**: Use Node.js's cross-platform shell option instead: + +```javascript +const child = spawn(command, { + ...options, + shell: true, // Uses cmd.exe on Windows, /bin/sh on Unix + stdio: ['pipe', 'pipe', 'pipe'] +}); +``` + +**Files Modified**: +- `test/integration/test-run.test.js` - Changed from `spawn('bash', ['-c', command])` to `spawn(command, { shell: true })` + +**Tests Fixed**: +- `test/integration/test-run.test.js` - "requires environment argument" +- `test/integration/test-run.test.js` - "handles connection refused error" +- `test/integration/test-run.test.js` - "handles invalid URL format" + +## Third Round Fixes (Final Polish) + +After the second round of fixes, 4 tests were still failing on Windows CI: + +### Issue 1: Sync Test File Deletion (1 failure) + +**Problem**: The test used Unix shell commands (`mkdir -p`, `echo >>`, `rm`) to create and delete test files: + +```javascript +await exec(`mkdir -p app/${dir}`, { cwd: cwd('correct_with_assets') }); +await exec(`echo "${validYML}" >> app/${fileName}`, { cwd: cwd('correct_with_assets') }); +await exec(`rm app/${fileName}`, { cwd: cwd('correct_with_assets') }); +``` + +These commands don't exist or behave differently on Windows: +- `mkdir -p` → works in some shells but not all +- `echo ... >>` → multi-line strings have issues +- `rm` → doesn't exist (Windows uses `del`) + +**Fix**: Use Node.js `fs` module for cross-platform file operations: + +```javascript +const testDir = path.join(cwd('correct_with_assets'), 'app', dir); +const testFile = path.join(cwd('correct_with_assets'), 'app', fileName); + +// Cross-platform directory creation +if (!fs.existsSync(testDir)) { + fs.mkdirSync(testDir, { recursive: true }); +} + +// Cross-platform file write +fs.writeFileSync(testFile, validYML); + +// Cross-platform file delete +fs.unlinkSync(testFile); +``` + +**Files Modified**: +- `test/integration/sync.test.js` - Replaced shell commands with Node.js fs operations + +**Tests Fixed**: +- `test/integration/sync.test.js` - "delete synced file" + +### Issue 2: Test-Run Command Invocation (3 failures) + +**Problem**: The tests were calling the CLI script directly without `node`: + +```javascript +const { code } = await exec(`${cliPath} test run`, { ... }); +// cliPath = 'bin/pos-cli.js' +``` + +On Unix, the shell can execute `.js` files using the shebang (`#!/usr/bin/env node`). On Windows, `.js` files aren't directly executable, so the shell couldn't find or execute the command, returning exit code 0 instead of the expected error exit code 1. + +**Fix**: Explicitly invoke Node.js when calling the CLI: + +```javascript +const { code } = await exec(`node "${cliPath}" test run`, { ... }); +``` + +The quotes around `${cliPath}` handle paths with spaces on Windows. + +**Files Modified**: +- `test/integration/test-run.test.js` - Added `node` prefix to all `exec` CLI invocations + +**Tests Fixed**: +- `test/integration/test-run.test.js` - "requires environment argument" +- `test/integration/test-run.test.js` - "handles connection refused error" +- `test/integration/test-run.test.js` - "handles invalid URL format" + +## Key Lessons Learned + +### 1. Never Use Shell Commands in Tests +Tests that need file operations should use Node.js `fs` module instead of shell commands. This ensures they work across all platforms without translation. + +### 2. Always Invoke Node Scripts with `node` +When spawning Node.js scripts, always use `node script.js` instead of relying on shebangs or file associations. This works consistently across platforms. + +### 3. Quote File Paths in Shell Commands +When passing paths to shell commands, always quote them to handle spaces: +```javascript +`node "${path}" args` // ✓ Correct +`node ${path} args` // ✗ Breaks with spaces +``` + +### 4. Use `child_process.exec()` for Shell Commands in Tests +For test helpers that execute shell commands: +- Prefer `child_process.exec()` over `spawn()` with `shell: true` +- `exec()` handles shell execution more reliably across platforms +- Avoids race conditions between timeout handlers and close event handlers +- Consistent with established patterns in the codebase + +### 5. Windows Process Cleanup Takes Longer +When testing CLI tools with nested commands (Commander.js external commands): +- Windows needs more time to propagate exit codes through process trees +- Increase timeouts appropriately (5s instead of 1s for error cases) +- The extra layers of shell wrapping (`cmd.exe` → `node` → Commander spawns) add latency + +## Fourth Round Fixes (Process Cleanup & Timeout Handling) + +After the third round of fixes, 3 tests were still failing on Windows CI: + +### Issue: Exit Code Timing on Windows (3 failures) + +**Problem**: The `exec` helper function in `test/integration/test-run.test.js` was using `spawn()` with a custom timeout handler. On Windows, the nested Commander.js process tree (`pos-cli` → `pos-cli-test` → `pos-cli-test-run`) takes longer to clean up and propagate exit codes. + +The custom timeout handler had a race condition: +```javascript +// Old implementation with spawn +const child = spawn(command, { shell: true, stdio: ['pipe', 'pipe', 'pipe'] }); + +child.on('close', code => { + resolve({ stdout, stderr, code }); +}); + +if (options.timeout) { + setTimeout(() => { + child.kill(); + resolve({ stdout, stderr, code: null }); // Resolves with null! + }, options.timeout); +} +``` + +When the 1000ms timeout fired before the 'close' event, the promise resolved with `code: null` instead of the actual exit code. + +**Root Cause**: Windows process tree cleanup is slower than Unix when dealing with nested shell commands. The process structure involves: +1. `cmd.exe` (from `shell: true`) +2. `node.exe` running `pos-cli.js` +3. `node.exe` running `pos-cli-test.js` (spawned by Commander) +4. `node.exe` running `pos-cli-test-run.js` (spawned by Commander) + +Exit codes must propagate back through all layers, which takes more than 1 second on Windows. + +**Fix**: Replaced `spawn()` with `child_process.exec()` (the same pattern used successfully in `test/utils/exec.js`) and increased timeout from 1000ms to 5000ms: + +```javascript +const exec = (command, options = {}) => { + return new Promise((resolve) => { + // Use child_process.exec instead of spawn for better cross-platform compatibility + cpExec(command, options, (err, stdout, stderr) => { + const code = err ? (err.code ?? 1) : 0; + resolve({ stdout, stderr, code }); + }); + }); +}; + +const CLI_TIMEOUT = 5000; // Increased from 1000ms +``` + +**Why this works**: +- `child_process.exec()` properly handles shell command execution and buffers output +- Increased timeout gives Windows enough time to clean up the nested process tree +- No race condition between timeout and close event handlers +- Consistent with the pattern used in other working integration tests + +**Files Modified**: +- `test/integration/test-run.test.js` - Changed from `spawn()` to `exec()` and increased timeout + +**Tests Fixed**: +- `test/integration/test-run.test.js` - "requires environment argument" +- `test/integration/test-run.test.js` - "handles connection refused error" +- `test/integration/test-run.test.js` - "handles invalid URL format" + +## Status + +Last updated: 2026-01-22 (Round 4) +Windows CI: Expected to pass (all known issues fixed) +Ubuntu CI: Passing (498 tests, 1 skipped) +Target: All tests passing on both platforms ✓ + +## Summary of All Changes + +### Core Library Changes (3 files) +1. **lib/files.js** - Line ending handling in `.posignore` parser +2. **lib/shouldBeSynced.js** - Path normalization for module detection +3. **lib/watch.js** - Asset path detection and logging normalization + +### Test Changes (5 files) +1. **test/unit/templates.test.js** - Line ending normalization +2. **test/unit/manifest.test.js** - Dynamic file size calculation +3. **test/unit/audit.test.js** - Path normalization in assertions +4. **test/integration/sync.test.js** - Regex patterns and fs operations +5. **test/integration/test-run.test.js** - Switched to `exec()`, increased timeout, proper exit code handling diff --git a/bin/pos-cli-archive.js b/bin/pos-cli-archive.js index e13b04b3a..5fd4e3b2a 100644 --- a/bin/pos-cli-archive.js +++ b/bin/pos-cli-archive.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; -const audit = require('../lib/audit'); -const archive = require('../lib/archive'); +import { run as auditRun } from '../lib/audit.js'; +import archive from '../lib/archive.js'; const createArchive = async (env) => { const numberOfFiles = await archive.makeArchive(env, { withoutAssets: false }); @@ -14,7 +14,7 @@ const runAudit = async () => { return; } - await audit.run(); + await auditRun(); }; program @@ -29,7 +29,7 @@ program TARGET: params.output }); - await createArchive(env) + await createArchive(env); }); program.parse(process.argv); diff --git a/bin/pos-cli-audit.js b/bin/pos-cli-audit.js index 2230ab50b..ad2dc1f18 100755 --- a/bin/pos-cli-audit.js +++ b/bin/pos-cli-audit.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const audit = require('../lib/audit'); +import { run } from '../lib/audit.js'; -audit.run(); +run(); diff --git a/bin/pos-cli-clone-init.js b/bin/pos-cli-clone-init.js index bee0c55ce..909428953 100755 --- a/bin/pos-cli-clone-init.js +++ b/bin/pos-cli-clone-init.js @@ -1,55 +1,40 @@ #!/usr/bin/env node -const { program } = require('commander'), - fs = require('fs'), - shell = require('shelljs'), - Gateway = require('../lib/proxy'), - fetchAuthData = require('../lib/settings').fetchSettings, - fetchFiles = require('../lib/data/fetchFiles'), - waitForStatus = require('../lib/data/waitForStatus'), - downloadFile = require('../lib/downloadFile'); - -const logger = require('../lib/logger'), - report = require('../lib/logger/report'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} - -let gateway; -const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; +import logger from '../lib/logger.js'; +import ora from 'ora'; program.showHelpAfterError(); program .name('pos-cli clone init') .arguments('[sourceEnv]', 'source environment. Example: staging') .arguments('[targetEnv]', 'target environment. Example: staging2') - .action(async (sourceEnv, targetEnv, params) => { + .action(async (sourceEnv, targetEnv, _params) => { - await initializeEsmModules(); const spinner = ora({ text: 'InstanceClone initilized', stream: process.stdout, interval: 500 }); try { - const sourceAuthData = fetchAuthData(sourceEnv, program); - const targetAuthData = fetchAuthData(targetEnv, program); + const sourceAuthData = fetchSettings(sourceEnv, program); + const targetAuthData = fetchSettings(targetEnv, program); - sourceGateway = new Gateway(sourceAuthData); - targetGateway = new Gateway(targetAuthData); + const sourceGateway = new Gateway(sourceAuthData); + const targetGateway = new Gateway(targetAuthData); spinner.start(); const payload = await targetGateway.cloneInstanceInit(); - const response = await sourceGateway.cloneInstanceExport(payload); - - const checkInstanceCloneStatus = () => { return targetGateway.cloneInstanceStatus(payload.id) } - const formatResponse = r => `${r.status.name} \n${r.statuses.map((item) => [item.created_at, item.name].join(" ")).join("\n")}` - await waitForStatus(checkInstanceCloneStatus, [], 'done', 2000, (msg) => { spinner.text = formatResponse(msg) }) + await sourceGateway.cloneInstanceExport(payload); + + const checkInstanceCloneStatus = () => { + return targetGateway.cloneInstanceStatus(payload.id); + }; + const formatResponse = r => `${r.status.name} \n${r.statuses.map((item) => [item.created_at, item.name].join(' ')).join('\n')}`; + await waitForStatus(checkInstanceCloneStatus, [], 'done', 2000, (msg) => { + spinner.text = formatResponse(msg); + }); spinner.stopAndPersist().succeed(`${sourceEnv} instance clone to ${targetEnv} succeeded.`); } catch(e) { diff --git a/bin/pos-cli-clone.js b/bin/pos-cli-clone.js index 0edf7ca53..a310645fb 100644 --- a/bin/pos-cli-clone.js +++ b/bin/pos-cli-clone.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli clone') diff --git a/bin/pos-cli-constants-list.js b/bin/pos-cli-constants-list.js index da828c7c3..424bb3cb8 100644 --- a/bin/pos-cli-constants-list.js +++ b/bin/pos-cli-constants-list.js @@ -1,28 +1,28 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - queries = require('../lib/graph/queries'), - fetchAuthData = require('../lib/settings').fetchSettings, - logger = require('../lib/logger'); +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import queries from '../lib/graph/queries.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; const success = (msg) => { - msg.data.constants.results.forEach(x => console.log(x.name.padEnd(50), safe(x.value))) - logger.Print("\n") -} + msg.data.constants.results.forEach(x => console.log(x.name.padEnd(50), safe(x.value))); + logger.Print('\n'); +}; const safe = (str) => { if ( process.env.SAFE ) - return JSON.stringify(str) + return JSON.stringify(str); else - return JSON.stringify(str.slice(0,2) + '...') -} + return JSON.stringify(str.slice(0,2) + '...'); +}; program .name('pos-cli constants list') .arguments('[environment]', 'name of environment. Example: staging') - .action((environment, params) => { - const authData = fetchAuthData(environment, program); + .action((environment, _params) => { + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); gateway diff --git a/bin/pos-cli-constants-set.js b/bin/pos-cli-constants-set.js index 8395de88e..dc560da50 100644 --- a/bin/pos-cli-constants-set.js +++ b/bin/pos-cli-constants-set.js @@ -1,29 +1,29 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - validate = require('../lib/validators'), - queries = require('../lib/graph/queries'), - fetchAuthData = require('../lib/settings').fetchSettings, - logger = require('../lib/logger'); +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { existence as validateExistence } from '../lib/validators/index.js'; +import queries from '../lib/graph/queries.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; const help = () => { program.outputHelp(); process.exit(1); -} +}; const checkParams = ({name, value}) => { - validate.existence({ argumentValue: value, argumentName: 'value', fail: help }); - validate.existence({ argumentValue: name, argumentName: 'name', fail: help }); -} + validateExistence({ argumentValue: value, argumentName: 'value', fail: help }); + validateExistence({ argumentValue: name, argumentName: 'name', fail: help }); +}; const success = (msg) => { - logger.Success(`Constant variable <${msg.data.constant_set.name}> added successfuly.`) -} + logger.Success(`Constant variable <${msg.data.constant_set.name}> added successfuly.`); +}; const error = (msg) => { - logger.Error(`Adding Constant variable <${msg.data.constant_set.name}> failed successfuly.`) -} + logger.Error(`Adding Constant variable <${msg.data.constant_set.name}> failed successfuly.`); +}; program .name('pos-cli constants set') @@ -32,13 +32,13 @@ program .arguments('[environment]', 'name of environment. Example: staging') .action((environment, params) => { checkParams(params); - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); - const constant = gateway - .graph({query: queries.setConstant(params.name, params.value)}) - .then(success) - .catch(error); + gateway + .graph({query: queries.setConstant(params.name, params.value)}) + .then(success) + .catch(error); }); program.parse(process.argv); diff --git a/bin/pos-cli-constants-unset.js b/bin/pos-cli-constants-unset.js index 95e299880..4f0afe32a 100755 --- a/bin/pos-cli-constants-unset.js +++ b/bin/pos-cli-constants-unset.js @@ -1,31 +1,31 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - validate = require('../lib/validators'), - queries = require('../lib/graph/queries'), - fetchAuthData = require('../lib/settings').fetchSettings, - logger = require('../lib/logger'); +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { existence as validateExistence } from '../lib/validators/index.js'; +import queries from '../lib/graph/queries.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; const help = () => { program.outputHelp(); process.exit(1); -} +}; -const checkParams = ({name, value}) => { - validate.existence({ argumentValue: name, argumentName: 'name', fail: help }); -} +const checkParams = ({name}) => { + validateExistence({ argumentValue: name, argumentName: 'name', fail: help }); +}; const success = (msg) => { if (msg.data.constant_unset) - logger.Success(`Constant variable <${msg.data.constant_unset.name}> deleted successfuly.`) + logger.Success(`Constant variable <${msg.data.constant_unset.name}> deleted successfuly.`); else - logger.Success(`Constant variable not found.`) -} + logger.Success('Constant variable not found.'); +}; const error = (msg) => { - logger.Error(`Adding Constant variable <${msg.data.constant_unset.name}> failed successfuly.`) -} + logger.Error(`Adding Constant variable <${msg.data.constant_unset.name}> failed successfuly.`); +}; program .name('pos-cli constants unset') @@ -33,13 +33,13 @@ program .arguments('[environment]', 'name of environment. Example: staging') .action((environment, params) => { checkParams(params); - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); - const constant = gateway - .graph({query: queries.unsetConstant(params.name)}) - .then(success) - .catch(error); + gateway + .graph({query: queries.unsetConstant(params.name)}) + .then(success) + .catch(error); }); program.parse(process.argv); diff --git a/bin/pos-cli-constants.js b/bin/pos-cli-constants.js index c06a2e28f..70e1f1911 100755 --- a/bin/pos-cli-constants.js +++ b/bin/pos-cli-constants.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli constants') diff --git a/bin/pos-cli-data-clean.js b/bin/pos-cli-data-clean.js index df2ca51d4..41a2d777e 100755 --- a/bin/pos-cli-data-clean.js +++ b/bin/pos-cli-data-clean.js @@ -1,22 +1,13 @@ #!/usr/bin/env node -const { program } = require('commander'), - prompts = require('prompts'), - Gateway = require('../lib/proxy'), - waitForStatus = require('../lib/data/waitForStatus'), - fetchAuthData = require('../lib/settings').fetchSettings, - logger = require('../lib/logger'), - ServerError = require('../lib/ServerError'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import { program } from 'commander'; +import prompts from 'prompts'; +import Gateway from '../lib/proxy.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; +import ServerError from '../lib/ServerError.js'; +import ora from 'ora'; const confirmationText = process.env.CONFIRMATION_TEXT || 'CLEAN DATA'; @@ -34,9 +25,8 @@ const confirmCleanup = async (autoConfirm, includeSchema, url) => { const response = await prompts({ type: 'text', name: 'confirmation', message: message }); return response.confirmation == confirmationText; - } - catch(e) { - logger.Error(e) + } catch(e) { + logger.Error(e); return false; } }; @@ -48,37 +38,35 @@ program .option('-i, --include-schema', 'also remove instance files: pages, schemas etc.') .action(async (environment, params) => { - await initializeEsmModules(); const spinner = ora({ text: 'Sending data', stream: process.stdout }); try { - const gateway = new Gateway(fetchAuthData(environment)); - const confirmed = await confirmCleanup(params.autoConfirm, params.includeSchema, gateway.url) + const gateway = new Gateway(fetchSettings(environment)); + const confirmed = await confirmCleanup(params.autoConfirm, params.includeSchema, gateway.url); if (confirmed) { - spinner.start(`Cleaning instance`); + spinner.start('Cleaning instance'); - const response = await gateway.dataClean(confirmationText, params.includeSchema) + const response = await gateway.dataClean(confirmationText, params.includeSchema); logger.Debug(`Cleanup request id: ${response}`); - const checkDataCleanJobStatus = () => { return gateway.dataCleanStatus(response.id) } - await waitForStatus(checkDataCleanJobStatus, 'pending', 'done') + const checkDataCleanJobStatus = () => { + return gateway.dataCleanStatus(response.id); + }; + await waitForStatus(checkDataCleanJobStatus, 'pending', 'done'); spinner.stopAndPersist().succeed('DONE. Instance cleaned'); - } - else logger.Error('Wrong confirmation. Closed without cleaning instance data.'); + } else logger.Error('Wrong confirmation. Closed without cleaning instance data.'); - } - catch(e) { - spinner.fail(`Instance cleanup has failed.`); - console.log(e.name); + } catch(e) { + spinner.fail('Instance cleanup has failed.'); // custom handle 422 if (e.statusCode == 422) logger.Error('[422] Data clean is either not supported by the server or has been disabled.'); else if (ServerError.isNetworkError(e)) - ServerError.handler(e) + ServerError.handler(e); else - logger.Error(e) + logger.Error(e); } }); diff --git a/bin/pos-cli-data-export.js b/bin/pos-cli-data-export.js index be1f2aa34..450ea768c 100755 --- a/bin/pos-cli-data-export.js +++ b/bin/pos-cli-data-export.js @@ -1,26 +1,16 @@ #!/usr/bin/env node -const { program } = require('commander'), - fs = require('fs'), - shell = require('shelljs'), - Gateway = require('../lib/proxy'), - fetchAuthData = require('../lib/settings').fetchSettings, - fetchFiles = require('../lib/data/fetchFiles'), - waitForStatus = require('../lib/data/waitForStatus'), - downloadFile = require('../lib/downloadFile'); - -const logger = require('../lib/logger'), - report = require('../lib/logger/report'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import fs from 'fs'; +import { program } from 'commander'; +import shell from 'shelljs'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import fetchFiles from '../lib/data/fetchFiles.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; +import downloadFile from '../lib/downloadFile.js'; +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import ora from 'ora'; let gateway; @@ -28,7 +18,7 @@ const transform = ({ users = { results: [] }, transactables = { results: [] }, m return { users: users.results, transactables: transactables.results, - models: models.results, + models: models.results }; }; @@ -58,7 +48,6 @@ program .option('-z --zip', 'export to zip archive', false) .action(async (environment, params) => { - await initializeEsmModules(); const spinner = ora({ text: 'Exporting', stream: process.stdout }); const isZipFile = params.zip; @@ -67,7 +56,7 @@ program filename = isZipFile ? 'data.zip' : 'data.json'; } const exportInternalIds = params.exportInternalIds; - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); gateway = new Gateway(authData); const exportFinished = () => { diff --git a/bin/pos-cli-data-import.js b/bin/pos-cli-data-import.js index 5086f6c06..1ba670e4e 100755 --- a/bin/pos-cli-data-import.js +++ b/bin/pos-cli-data-import.js @@ -1,29 +1,18 @@ #!/usr/bin/env node -const { program } = require('commander'), - fs = require('fs'), - shell = require('shelljs'), - crypto = require('crypto'), - Gateway = require('../lib/proxy'), - fetchAuthData = require('../lib/settings').fetchSettings, - transform = require('../lib/data/uploadFiles'), - isValidJSON = require('../lib/data/isValidJSON'), - waitForStatus = require('../lib/data/waitForStatus'), - uploadFile = require('../lib/s3UploadFile').uploadFile, - presignUrl = require('../lib/presignUrl').presignUrl; - -const logger = require('../lib/logger'), - report = require('../lib/logger/report'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import fs from 'fs'; +import crypto from 'crypto'; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import transform from '../lib/data/uploadFiles.js'; +import isValidJSON from '../lib/data/isValidJSON.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; +import { uploadFile } from '../lib/s3UploadFile.js'; +import { presignUrl } from '../lib/presignUrl.js'; +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import ora from 'ora'; let gateway; @@ -38,7 +27,6 @@ Do you want to import a zip file? Use --zip. const dataImport = async (filename, rawIds, isZipFile) => { - await initializeEsmModules(); const spinner = ora({ text: 'Sending data', stream: process.stdout }); spinner.start(); @@ -104,10 +92,10 @@ program const filename = params.path; const rawIds = params.rawIds; const zip = params.zip; - const authData = fetchAuthData(environment); + const authData = fetchSettings(environment); Object.assign(process.env, { MARKETPLACE_TOKEN: authData.token, - MARKETPLACE_URL: authData.url, + MARKETPLACE_URL: authData.url }); if (!fs.existsSync(filename)) { diff --git a/bin/pos-cli-data-update.js b/bin/pos-cli-data-update.js index c69c5f475..f15a203ed 100755 --- a/bin/pos-cli-data-update.js +++ b/bin/pos-cli-data-update.js @@ -1,24 +1,14 @@ #!/usr/bin/env node -const { program } = require('commander'), - fs = require('fs'), - Gateway = require('../lib/proxy'), - fetchAuthData = require('../lib/settings').fetchSettings, - transform = require('../lib/data/uploadFiles'), - isValidJSON = require('../lib/data/isValidJSON'); - -const logger = require('../lib/logger'), - report = require('../lib/logger/report'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import fs from 'fs'; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import transform from '../lib/data/uploadFiles.js'; +import isValidJSON from '../lib/data/isValidJSON.js'; +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import ora from 'ora'; let gateway; @@ -29,13 +19,12 @@ program .action(async (environment, params) => { const filename = params.path; - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); Object.assign(process.env, { MARKETPLACE_TOKEN: authData.token, - MARKETPLACE_URL: authData.url, + MARKETPLACE_URL: authData.url }); - await initializeEsmModules(); const spinner = ora({ text: 'Sending data', stream: process.stdout }); gateway = new Gateway(authData); @@ -67,7 +56,7 @@ For example: https://jsonlint.com` .catch((e) => { spinner.fail('Update failed'); logger.Error(e.message); - report('[ERR] Data: Update'); + report('[ERR] Data: Update'); }); }); diff --git a/bin/pos-cli-data.js b/bin/pos-cli-data.js index 3f3bb2104..6b0fb4de2 100755 --- a/bin/pos-cli-data.js +++ b/bin/pos-cli-data.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli data') diff --git a/bin/pos-cli-deploy.js b/bin/pos-cli-deploy.js index a50695e78..396b2aeb4 100755 --- a/bin/pos-cli-deploy.js +++ b/bin/pos-cli-deploy.js @@ -1,18 +1,9 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; -const fetchAuthData = require('../lib/settings').fetchSettings; -const logger = require('../lib/logger'); -const deployStrategy = require('../lib/deploy/strategy'); -const audit = require('../lib/audit'); - -const runAudit = async () => { - if (process.env.CI == 'true') { - return; - } - - await audit.run(); -}; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; +import deployStrategy from '../lib/deploy/strategy.js'; program .name('pos-cli deploy') @@ -25,7 +16,7 @@ program if (params.force) logger.Warn('-f flag is deprecated and does not do anything.'); const strategy = !params.oldAssetsUpload ? 'directAssetsUpload' : 'default'; - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const env = Object.assign(process.env, { MARKETPLACE_EMAIL: authData.email, MARKETPLACE_TOKEN: authData.token, @@ -38,7 +29,6 @@ program DIRECT_ASSETS_UPLOAD: !params.oldAssetsUpload }); - // await runAudit(); deployStrategy.run({ strategy, opts: { env, authData, params } }); }); diff --git a/bin/pos-cli-env-add.js b/bin/pos-cli-env-add.js index f0c33c41b..08fb95f49 100755 --- a/bin/pos-cli-env-add.js +++ b/bin/pos-cli-env-add.js @@ -1,9 +1,9 @@ #!/usr/bin/env node -const { program } = require('commander'); -const ServerError = require('../lib//ServerError'); -const logger = require('../lib/logger'); -const addEnv = require('../lib/envs/add') +import { program } from 'commander'; +import ServerError from '../lib/ServerError.js'; +import logger from '../lib/logger.js'; +import addEnv from '../lib/envs/add.js'; program.showHelpAfterError(); program @@ -21,7 +21,7 @@ program await addEnv(environment, params); } catch (e) { if (ServerError.isNetworkError(e)) - ServerError.handler(e) + ServerError.handler(e); else logger.Error(e); } diff --git a/bin/pos-cli-env-list.js b/bin/pos-cli-env-list.js index 3311431b2..65cdd8a7f 100755 --- a/bin/pos-cli-env-list.js +++ b/bin/pos-cli-env-list.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -const logger = require('../lib/logger'), - files = require('../lib/files'); +import logger from '../lib/logger.js'; +import files from '../lib/files.js'; const listEnvironments = () => { const settings = Object(files.getConfig()); diff --git a/bin/pos-cli-env-refresh-token.js b/bin/pos-cli-env-refresh-token.js index d39027cdd..cd8776075 100644 --- a/bin/pos-cli-env-refresh-token.js +++ b/bin/pos-cli-env-refresh-token.js @@ -1,10 +1,10 @@ -const { program } = require('commander'); -const logger = require('../lib/logger'); -const Portal = require('../lib/portal'); -const { readPassword } = require('../lib/utils/password'); -const fetchAuthData = require('../lib/settings').fetchSettings; -const { storeEnvironment, deviceAuthorizationFlow } = require('../lib/environments'); -const ServerError = require('../lib/ServerError'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import Portal from '../lib/portal.js'; +import { readPassword } from '../lib/utils/password.js'; +import { fetchSettings } from '../lib/settings.js'; +import { storeEnvironment, deviceAuthorizationFlow } from '../lib/environments.js'; +import ServerError from '../lib/ServerError.js'; const saveToken = (settings, token) => { storeEnvironment(Object.assign(settings, { token: token })); @@ -15,16 +15,16 @@ const login = async (email, password, url) => { return Portal.login(email, password, url) .then(response => { if (response) return Promise.resolve(response[0].token); - }) -} + }); +}; program .name('pos-cli env refresh-token') .arguments('[environment]', 'name of environment. Example: staging') - .action(async (environment, params) => { + .action(async (environment, _params) => { try { - const authData = fetchAuthData(environment) + const authData = fetchSettings(environment); if (!authData.email){ token = await deviceAuthorizationFlow(authData.url); @@ -44,7 +44,7 @@ program } catch (e) { if (ServerError.isNetworkError(e)) - ServerError.handler(e) + ServerError.handler(e); else logger.Error(e); process.exit(1); diff --git a/bin/pos-cli-env.js b/bin/pos-cli-env.js index 9453f68df..9fc0ea7a5 100755 --- a/bin/pos-cli-env.js +++ b/bin/pos-cli-env.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli env') diff --git a/bin/pos-cli-exec-graphql.js b/bin/pos-cli-exec-graphql.js new file mode 100644 index 000000000..cef614074 --- /dev/null +++ b/bin/pos-cli-exec-graphql.js @@ -0,0 +1,59 @@ +#!/usr/bin/env node + +import fs from 'fs'; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; +import { isProductionEnvironment, confirmProductionExecution } from '../lib/productionEnvironment.js'; + +program + .name('pos-cli exec graphql') + .argument('', 'name of environment. Example: staging') + .argument('[graphql]', 'graphql query to execute as string') + .option('-f, --file ', 'path to graphql file to execute') + .action(async (environment, graphql, options) => { + let query = graphql; + + if (options.file) { + if (!fs.existsSync(options.file)) { + logger.Error(`File not found: ${options.file}`); + process.exit(1); + } + query = fs.readFileSync(options.file, 'utf8'); + } + + if (!query) { + logger.Error("error: missing required argument 'graphql'"); + process.exit(1); + } + + const authData = fetchSettings(environment, program); + const gateway = new Gateway(authData); + + if (isProductionEnvironment(environment)) { + const confirmed = await confirmProductionExecution(environment); + if (!confirmed) { + logger.Info('Execution cancelled.'); + process.exit(0); + } + } + + try { + const response = await gateway.graph({ query }); + + if (response.errors) { + logger.Error(`GraphQL execution error: ${JSON.stringify(response.errors, null, 2)}`); + process.exit(1); + } + + if (response.data) { + logger.Print(JSON.stringify(response, null, 2)); + } + } catch (error) { + logger.Error(`Failed to execute graphql: ${error.message}`); + process.exit(1); + } + }); + +program.parse(process.argv); \ No newline at end of file diff --git a/bin/pos-cli-exec-liquid.js b/bin/pos-cli-exec-liquid.js new file mode 100644 index 000000000..051ccbdec --- /dev/null +++ b/bin/pos-cli-exec-liquid.js @@ -0,0 +1,59 @@ +#!/usr/bin/env node + +import fs from 'fs'; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; +import { isProductionEnvironment, confirmProductionExecution } from '../lib/productionEnvironment.js'; + +program + .name('pos-cli exec liquid') + .argument('', 'name of environment. Example: staging') + .argument('[code]', 'liquid code to execute as string') + .option('-f, --file ', 'path to liquid file to execute') + .action(async (environment, code, options) => { + let liquidCode = code; + + if (options.file) { + if (!fs.existsSync(options.file)) { + logger.Error(`File not found: ${options.file}`); + process.exit(1); + } + liquidCode = fs.readFileSync(options.file, 'utf8'); + } + + if (!liquidCode) { + logger.Error("error: missing required argument 'code'"); + process.exit(1); + } + + const authData = fetchSettings(environment, program); + const gateway = new Gateway(authData); + + if (isProductionEnvironment(environment)) { + const confirmed = await confirmProductionExecution(environment); + if (!confirmed) { + logger.Info('Execution cancelled.'); + process.exit(0); + } + } + + try { + const response = await gateway.liquid({ content: liquidCode }); + + if (response.error) { + logger.Error(`Liquid execution error: ${response.error}`); + process.exit(1); + } + + if (response.result) { + logger.Print(response.result); + } + } catch (error) { + logger.Error(`Failed to execute liquid: ${error.message}`); + process.exit(1); + } + }); + +program.parse(process.argv); \ No newline at end of file diff --git a/bin/pos-cli-exec.js b/bin/pos-cli-exec.js new file mode 100644 index 000000000..4256dcd2e --- /dev/null +++ b/bin/pos-cli-exec.js @@ -0,0 +1,9 @@ +#!/usr/bin/env node + +import { program } from 'commander'; + +program + .name('pos-cli exec') + .command('liquid ', 'execute liquid code on instance') + .command('graphql ', 'execute graphql query on instance') + .parse(process.argv); diff --git a/bin/pos-cli-generate-list.js b/bin/pos-cli-generate-list.js index f2616a9d4..ff427316c 100755 --- a/bin/pos-cli-generate-list.js +++ b/bin/pos-cli-generate-list.js @@ -1,9 +1,8 @@ #!/usr/bin/env node -const { program } = require("commander"); -const path = require("path"); -const glob = require('fast-glob'); -const table = require('text-table'); +import { program } from 'commander'; +import glob from 'fast-glob'; +import table from 'text-table'; program .name('pos-cli generate') @@ -11,9 +10,9 @@ program .action(async () => { const files = await glob('**/generators/*/index.js'); if (files.length > 0) { - console.log("List of available generators:"); + console.log('List of available generators:'); const generators = files.map((file) => { - const generatorPath = file.replace('\/index.js', '') + const generatorPath = file.replace('/index.js', ''); const generatorName = generatorPath.split('/').pop(); return [generatorName, `pos-cli generate run ${generatorPath} --generator-help`]; }); diff --git a/bin/pos-cli-generate-run.js b/bin/pos-cli-generate-run.js index 1a41fb158..e737c6ab9 100755 --- a/bin/pos-cli-generate-run.js +++ b/bin/pos-cli-generate-run.js @@ -1,45 +1,47 @@ #!/usr/bin/env node -const { program } = require("commander"); -const yeoman = require("yeoman-environment"); -const yeomanEnv = yeoman.createEnv(); -const path = require("path"); -const chalk = require("chalk"); -const dir = require('../lib/directories'); -const compact = require('lodash.compact'); -const spawn = require('execa'); -const reject = require('lodash.reject'); -const table = require('text-table'); -const logger = require('../lib/logger'); +import { fileURLToPath } from 'url'; +import path from 'path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +import { program } from 'commander'; +import { createEnv } from 'yeoman-environment'; +const yeomanEnv = createEnv(); +import compact from 'lodash.compact'; +import { execaSync } from 'execa'; +import reject from 'lodash.reject'; +import table from 'text-table'; +import logger from '../lib/logger.js'; const registerGenerator = (generatorPath) => { const generatorName = path.basename(generatorPath); - const generatorPathFull = `./${generatorPath}/index.js`; + const generatorPathFull = path.resolve(generatorPath, 'index.js'); yeomanEnv.register(generatorPathFull, generatorName); try { - const generator = yeomanEnv.get(generatorName); + yeomanEnv.get(generatorName); } catch(e) { if (e.message.includes('Cannot find module')){ installModulesAndLoadGenerator(generatorPath, generatorName); } } return generatorName; -} +}; -const installModulesAndLoadGenerator = (generatorPath, generatorName) => { +const installModulesAndLoadGenerator = (generatorPath, _generatorName) => { console.log('# Trying to install missing packages'); - const modulePath = generatorPath.match(/modules\/\w+/) + const modulePath = generatorPath.match(/modules\/\w+/); const moduleDir = `./${modulePath[0]}`; spawnCommand('npm', ['install'], { cwd: moduleDir }); - const generator = yeomanEnv.get(generatorName); -} +}; const runYeoman = async (generatorPath, attributes, options) => { const generatorName = registerGenerator(generatorPath); const generatorArgs = compact([generatorName].concat(attributes)); await yeomanEnv.run(generatorArgs, options); -} +}; const optionsHelp = (generatorOptions) => { const options = reject(generatorOptions, (x) => x.hide != 'no'); @@ -53,27 +55,63 @@ const optionsHelp = (generatorOptions) => { ? 'Default: ' + opt.default : '' ]; - }) + }); return table(rows); -} +}; + +const getGeneratorHelp = (generator) => { + const help = { arguments: [], options: [], usage: '' }; + + try { + if (generator._arguments && Array.isArray(generator._arguments)) { + help.arguments = generator._arguments; + help.usage = generator._arguments.map(arg => `<${arg.name}> `).join(' '); + } + } catch { + // Ignore - internal API not available + } + + try { + if (generator._options && Array.isArray(generator._options)) { + help.options = generator._options; + } + } catch { + // Ignore - internal API not available + } + + return help; +}; const showHelpForGenerator = (generatorPath) => { const generatorName = registerGenerator(generatorPath); const generator = yeomanEnv.get(generatorName); const generatorInstance = yeomanEnv.instantiate(generator, ['']); console.log(`Generator: ${generatorName}`); - console.log(` ${generatorInstance.description}`); - console.log(`\nUsage: `); - const usage = generatorInstance._arguments.map(arg => `<${arg.name}> `).join(' ') + console.log(` ${generatorInstance.description || 'No description available'}`); + console.log('\nUsage: '); + + const help = getGeneratorHelp(generatorInstance); console.log( - ` pos-cli generate ${generatorPath} ${usage}` + ` pos-cli generate ${generatorPath} ${help.usage}` ); + console.log('\nArguments:'); - console.log(generatorInstance.argumentsHelp()); - console.log(optionsHelp(generatorInstance._options)); + try { + console.log(generatorInstance.argumentsHelp ? generatorInstance.argumentsHelp() : formatArgumentsHelp(help.arguments)); + } catch { + console.log(formatArgumentsHelp(help.arguments)); + } + console.log(optionsHelp(help.options)); console.log(''); -} +}; + +const formatArgumentsHelp = (args) => { + if (!args || args.length === 0) { + return ' (No arguments required)'; + } + return args.map(arg => ` <${arg.name}> ${arg.description || ''}`).join('\n'); +}; const unknownOptions = (command) => { const options = {}; @@ -86,10 +124,10 @@ const unknownOptions = (command) => { } }); return options; -} +}; -spawnCommand = (command, args, opt) => { - return spawn.sync(command, args, { +const spawnCommand = (command, args, opt) => { + return execaSync(command, args, { stdio: 'inherit', cwd: '', ...opt @@ -108,7 +146,7 @@ program .argument('[generatorArguments...]', 'generator arguments') .option('--generator-help', 'show help for given generator') .allowUnknownOption() - .usage(" ", 'arguments that will be passed to the generator') + .usage(' ', 'arguments that will be passed to the generator') .action(async function (generatorPath, generatorArguments, options, command) { try{ if (options.generatorHelp){ diff --git a/bin/pos-cli-generate.js b/bin/pos-cli-generate.js index 01ed86054..af1041d5f 100755 --- a/bin/pos-cli-generate.js +++ b/bin/pos-cli-generate.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli generate') diff --git a/bin/pos-cli-gui-serve.js b/bin/pos-cli-gui-serve.js index e80e48826..9bd3e8357 100755 --- a/bin/pos-cli-gui-serve.js +++ b/bin/pos-cli-gui-serve.js @@ -1,22 +1,12 @@ #!/usr/bin/env node -const swagger = require('../lib/swagger-client'); +import { SwaggerProxy } from '../lib/swagger-client.js'; -const { program } = require('commander'), - watch = require('../lib/watch'); +import { program } from 'commander'; +import { start as watch } from '../lib/watch.js'; -// importing ESM modules in CommonJS project -let open; -const initializeEsmModules = async () => { - if(!open) { - await import('open').then(imported => open = imported.default); - } - - return true; -} - -const fetchAuthData = require('../lib/settings').fetchSettings, - server = require('../lib/server'), - logger = require('../lib/logger'); +import { fetchSettings } from '../lib/settings.js'; +import { start as server } from '../lib/server.js'; +import logger from '../lib/logger.js'; const DEFAULT_CONCURRENCY = 3; @@ -27,7 +17,7 @@ program .option('-o, --open', 'when ready, open default browser with graphiql') .option('-s, --sync', 'Sync files') .action(async (environment, params) => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const env = Object.assign(process.env, { MARKETPLACE_EMAIL: authData.email, @@ -38,18 +28,25 @@ program }); try { - const client = await swagger.SwaggerProxy.client(environment); - server.start(env, client); + const client = await SwaggerProxy.client(environment); + server(env, client); if (params.open) { - await initializeEsmModules(); - await open(`http://localhost:${params.port}`); + try { + const open = (await import('open')).default; + await open(`http://localhost:${params.port}`); + } catch (error) { + if (error instanceof AggregateError) { + logger.Error(`Failed to open browser (${error.errors.length} attempts): ${error.message}`); + } else { + logger.Error(`Failed to open browser: ${error.message}`); + } + } } if (params.sync){ - watch.start(env, true, false); + await watch(env, true, false); } - } catch (e) { - console.log(e); + } catch { logger.Error('✖ Failed.'); } }); diff --git a/bin/pos-cli-gui.js b/bin/pos-cli-gui.js index b0feaa736..7d3159ac7 100755 --- a/bin/pos-cli-gui.js +++ b/bin/pos-cli-gui.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli gui') .command('serve [environment]', 'serve admin editor for files from given environment') - .parse(process.argv); \ No newline at end of file + .parse(process.argv); diff --git a/bin/pos-cli-init.js b/bin/pos-cli-init.js index bd8d76889..d826d9271 100755 --- a/bin/pos-cli-init.js +++ b/bin/pos-cli-init.js @@ -1,17 +1,17 @@ #!/usr/bin/env node -const { program } = require('commander'), - degit = require('degit'), - inquirer = require('inquirer'); +import { program } from 'commander'; +import degit from 'degit'; +import inquirer from 'inquirer'; -const logger = require('../lib/logger'), - report = require('../lib/logger/report'); +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; const repos = { empty: 'mdyd-dev/directory-structure', 'Hello world': 'mdyd-dev/hello-world', 'Todo app': 'mdyd-dev/todo-app', - 'Product Marketplace Template': 'mdyd-dev/product-marketplace-template', + 'Product Marketplace Template': 'mdyd-dev/product-marketplace-template' }; function createStructure(url, branch) { @@ -46,20 +46,20 @@ program name: 'repo', message: 'Example app', default: 'empty', - choices: Object.keys(repos), + choices: Object.keys(repos) }, { type: 'string', name: 'branch', message: 'Branch', - default: 'master', - }, + default: 'master' + } ]) .then((answers) => { createStructure(repos[answers.repo], answers.branch); report('Init: Wizard'); - }) + }); return; } diff --git a/bin/pos-cli-logs.js b/bin/pos-cli-logs.js index 3898304b7..808b9f742 100755 --- a/bin/pos-cli-logs.js +++ b/bin/pos-cli-logs.js @@ -1,23 +1,26 @@ #!/usr/bin/env node -const EventEmitter = require('events'), - path = require('path'), - url = require('url'); +import EventEmitter from 'events'; +import path from 'path'; +import { fileURLToPath } from 'url'; -const { program } = require('commander'), - notifier = require('node-notifier'); +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); -const fetchAuthData = require('../lib/settings').fetchSettings, - logger = require('../lib/logger'), - Gateway = require('../lib/proxy'); +import { program } from 'commander'; +import notifier from 'node-notifier'; + +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; +import Gateway from '../lib/proxy.js'; class LogStream extends EventEmitter { constructor(authData, interval, filter) { super(); this.authData = authData; this.gateway = new Gateway(authData); - this.interval = interval - this.filter = !!filter && filter.toLowerCase() + this.interval = interval; + this.filter = !!filter && filter.toLowerCase(); } start() { @@ -30,11 +33,10 @@ class LogStream extends EventEmitter { if (!this.filter) return; try { - return this.filter !== (row.error_type || 'error').toLowerCase() - } - catch(e) { - logger.Error(`${row.error_type} error`) - return false + return this.filter !== (row.error_type || 'error').toLowerCase(); + } catch { + logger.Error(`${row.error_type} error`); + return false; } } @@ -56,7 +58,7 @@ class LogStream extends EventEmitter { this.emit('message', row); } } - }) + }); } } @@ -67,7 +69,7 @@ const storage = { storage.logs[item.id] = item; storage.lastId = item.id; }, - exists: (key) => storage.logs.hasOwnProperty(key), + exists: (key) => storage.logs.hasOwnProperty(key) }; const isError = (msg) => /error/.test(msg.error_type); @@ -78,13 +80,13 @@ program .option('-i, --interval ', 'time to wait between updates in ms', 3000) .option('--filter ', 'display only logs of given type, example: error') .option('-q, --quiet', 'show only log message, without context') - .action((environment, program, argument) => { - const authData = fetchAuthData(environment, program); + .action((environment, program, _argument) => { + const authData = fetchSettings(environment, program); const stream = new LogStream(authData, program.interval, program.filter); stream.on('message', ({ created_at, error_type, message, data }) => { if (message == null) message = ''; - if (typeof(message) != "string") message = JSON.stringify(message); + if (typeof(message) != 'string') message = JSON.stringify(message); const text = `[${created_at.replace('T', ' ')}] - ${error_type}: ${message.replace(/\n$/, '')}`; const options = { exit: false, hideTimestamp: true }; @@ -94,7 +96,7 @@ program title: error_type, message: message.slice(0, 100), icon: path.resolve(__dirname, '../lib/pos-logo.png'), - 'app-name': 'pos-cli', + 'app-name': 'pos-cli' }); logger.Info(text, options); @@ -103,7 +105,7 @@ program if (!program.quiet && data) { let parts = []; if (data.url) { - requestUrl = url.parse(`https://${data.url}`); + const requestUrl = new URL(`https://${data.url}`); let line = `path: ${requestUrl.pathname}`; if (requestUrl.search) line += `${requestUrl.search}`; parts.push(line); diff --git a/bin/pos-cli-logsv2-alerts-add.js b/bin/pos-cli-logsv2-alerts-add.js index ebd3bc626..0fce76079 100644 --- a/bin/pos-cli-logsv2-alerts-add.js +++ b/bin/pos-cli-logsv2-alerts-add.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy } from '../lib/swagger-client.js'; program .name('pos-cli logsv2 alerts add') @@ -10,25 +10,27 @@ program .option('--url ', 'post alarms to this url') .option('--name ', 'alert name') .option('--keyword ', 'alert keyword trigger') - .option('--operator ', 'operator', "Contains") - .option('--column ', 'column', "message") + .option('--operator ', 'operator', 'Contains') + .option('--column ', 'column', 'message') .option('--channel ') .option('--json', 'output as json') .action(async (environment, params) => { try { if (!params.channel) { - throw Error("--channel is required") + throw Error('--channel is required'); } - const client = await swagger.SwaggerProxy.client(environment); - const response = await client.createAlert(params) + const client = await SwaggerProxy.client(environment); + const response = await client.createAlert(params); if (!params.json) - console.log(response) + console.log(response); else - console.log(response) + console.log(response); - } catch(e) { logger.Error(e) } + } catch(e) { + logger.Error(e); + } }); program.parse(process.argv); diff --git a/bin/pos-cli-logsv2-alerts-list.js b/bin/pos-cli-logsv2-alerts-list.js index 52723fa87..9f35b3bd8 100644 --- a/bin/pos-cli-logsv2-alerts-list.js +++ b/bin/pos-cli-logsv2-alerts-list.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy } from '../lib/swagger-client.js'; program .name('pos-cli logsv2 alerts list') @@ -10,15 +10,16 @@ program .option('--json', 'output as json') .action(async (environment) => { try { - const client = await swagger.SwaggerProxy.client(environment); - const response = await client.alerts(program) + const client = await SwaggerProxy.client(environment); + const response = await client.alerts(program); if (!program.json) - console.log(response) + console.log(response); else - console.log(response) + console.log(response); + } catch(e) { + logger.Error(e); } - catch(e) { logger.Error(e) } - }) + }); program.parse(process.argv); diff --git a/bin/pos-cli-logsv2-alerts-trigger.js b/bin/pos-cli-logsv2-alerts-trigger.js index d64243398..7558e8aa3 100644 --- a/bin/pos-cli-logsv2-alerts-trigger.js +++ b/bin/pos-cli-logsv2-alerts-trigger.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy } from '../lib/swagger-client.js'; program .name('pos-cli logsv2 alerts trigger') @@ -11,15 +11,17 @@ program .option('--json', 'output as json') .action(async (environment, params) => { try { - const client = await swagger.SwaggerProxy.client(environment); - const response = await client.triggerAlert(params) + const client = await SwaggerProxy.client(environment); + const response = await client.triggerAlert(params); if (!params.json) - console.log(response) + console.log(response); else - console.log(response) + console.log(response); - } catch(e) { logger.Error(e) } + } catch(e) { + logger.Error(e); + } }); program.parse(process.argv); diff --git a/bin/pos-cli-logsv2-alerts.js b/bin/pos-cli-logsv2-alerts.js index bf3b6a728..453e0d9a0 100644 --- a/bin/pos-cli-logsv2-alerts.js +++ b/bin/pos-cli-logsv2-alerts.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli logsv2 alerts') diff --git a/bin/pos-cli-logsv2-reports.js b/bin/pos-cli-logsv2-reports.js index 9d620abf8..ccee3122a 100644 --- a/bin/pos-cli-logsv2-reports.js +++ b/bin/pos-cli-logsv2-reports.js @@ -1,11 +1,15 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'), - path = require('path'), - fs = require('fs'); -const ServerError = require('../lib/ServerError'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy } from '../lib/swagger-client.js'; +import { search } from '../lib/swagger-client.js'; +import path from 'path'; +import { fileURLToPath } from 'url'; +import fs from 'fs'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); program.showHelpAfterError(); program @@ -15,19 +19,19 @@ program // .option('--size ', 'rows size', 20) // .option('--start_time ', 'starttime') // .option('--end_time ', 'endtime') - .option('--json', 'output as json') + // .option('--json', 'output as json') .requiredOption('--report ', 'available reports: r-4xx, r-slow, r-slow-by-count') .action(async (environment, program) => { try { - const client = await swagger.SwaggerProxy.client(environment); + const client = await SwaggerProxy.client(environment); const report = JSON.parse(fs.readFileSync(path.join(__dirname, `../lib/reports/${program.report}.json`))); - const response = await client.searchSQLByQuery(report) + const response = await client.searchSQLByQuery(report); if (!program.json) - swagger.search.printReport(response, report) + search.printReport(response, report); else - console.log(JSON.stringify(response)) + console.log(JSON.stringify(response)); } catch(e) { logger.Error(e); diff --git a/bin/pos-cli-logsv2-search.js b/bin/pos-cli-logsv2-search.js index 4c0ce0089..125f1aad5 100755 --- a/bin/pos-cli-logsv2-search.js +++ b/bin/pos-cli-logsv2-search.js @@ -1,9 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'); -const ServerError = require('../lib/ServerError'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy, search } from '../lib/swagger-client.js'; program .name('pos-cli logsv2 search') @@ -16,13 +15,13 @@ program .option('--json', 'output as json') .action(async (environment, program) => { try { - const client = await swagger.SwaggerProxy.client(environment); - const response = await client.searchSQL(program) + const client = await SwaggerProxy.client(environment); + const response = await client.searchSQL(program); if (!program.json) - swagger.search.printLogs(response) + search.printLogs(response); else - console.log(response) + console.log(response); } catch(e) { logger.Error(e); diff --git a/bin/pos-cli-logsv2-searchAround.js b/bin/pos-cli-logsv2-searchAround.js index 711f36a40..79be9a0fb 100644 --- a/bin/pos-cli-logsv2-searchAround.js +++ b/bin/pos-cli-logsv2-searchAround.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'), - logger = require('../lib/logger'), - swagger = require('../lib/swagger-client'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { SwaggerProxy, search } from '../lib/swagger-client.js'; program .name('pos-cli logsv2 search') @@ -13,13 +13,13 @@ program .option('--json', 'output as json') .action(async (environment, params) => { try { - const client = await swagger.SwaggerProxy.client(environment); - const response = await client.searchAround(params) + const client = await SwaggerProxy.client(environment); + const response = await client.searchAround(params); if (!params.json) - swagger.search.printLogs(response, params.key) + search.printLogs(response, params.key); else - console.log(response) + console.log(response); } catch(e) { logger.Error(e); diff --git a/bin/pos-cli-logsv2.js b/bin/pos-cli-logsv2.js index 6de7c4ffd..aa469a18b 100755 --- a/bin/pos-cli-logsv2.js +++ b/bin/pos-cli-logsv2.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli logsv2') diff --git a/bin/pos-cli-migrations-generate.js b/bin/pos-cli-migrations-generate.js index beea932e3..f8d7ed09f 100755 --- a/bin/pos-cli-migrations-generate.js +++ b/bin/pos-cli-migrations-generate.js @@ -1,22 +1,21 @@ #!/usr/bin/env node -const fs = require('fs'); +import fs from 'fs'; +import { program } from 'commander'; +import shell from 'shelljs'; -const { program } = require('commander'), - shell = require('shelljs'); - -const Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - report = require('../lib/logger/report'), - fetchAuthData = require('../lib/settings').fetchSettings, - dir = require('../lib/directories'); +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import { fetchSettings } from '../lib/settings.js'; +import dir from '../lib/directories.js'; program .name('pos-cli migrations generate') .arguments('[environment]', 'name of the environment. Example: staging') .arguments('', 'base name of the migration. Example: cleanup_data') .action((environment, name) => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); const formData = { name: name }; diff --git a/bin/pos-cli-migrations-list.js b/bin/pos-cli-migrations-list.js index a2b8388c7..e2dc01958 100755 --- a/bin/pos-cli-migrations-list.js +++ b/bin/pos-cli-migrations-list.js @@ -1,9 +1,9 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - fetchAuthData = require('../lib/settings').fetchSettings; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; const logMigration = migration => { const errorsMsg = migration.error_messages ? `- Errors: (${migration.error_messages})` : ''; @@ -14,7 +14,7 @@ program .name('pos-cli migrations list') .arguments('[environment]', 'name of the environment. Example: staging') .action(environment => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); gateway.listMigrations().then(response => response.migrations.map(logMigration)); diff --git a/bin/pos-cli-migrations-run.js b/bin/pos-cli-migrations-run.js index 7e70036af..f181c81a1 100755 --- a/bin/pos-cli-migrations-run.js +++ b/bin/pos-cli-migrations-run.js @@ -1,16 +1,16 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - fetchAuthData = require('../lib/settings').fetchSettings; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; program .name('pos-cli migrations run') .arguments('', 'timestamp the migration. Example: 20180701182602') .arguments('[environment]', 'name of the environment. Example: staging') .action((timestamp, environment) => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); const formData = { timestamp: timestamp }; diff --git a/bin/pos-cli-migrations.js b/bin/pos-cli-migrations.js index 33810550a..4315e9367 100755 --- a/bin/pos-cli-migrations.js +++ b/bin/pos-cli-migrations.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli migrations') diff --git a/bin/pos-cli-modules-download.js b/bin/pos-cli-modules-download.js index 496581ca9..a06825ff2 100755 --- a/bin/pos-cli-modules-download.js +++ b/bin/pos-cli-modules-download.js @@ -1,24 +1,13 @@ #!/usr/bin/env node -const shell = require('shelljs'); -const { program } = require('commander'); -const logger = require('../lib/logger'); -const downloadFile = require('../lib/downloadFile'); - -const { unzip } = require('../lib/unzip'); -const Portal = require('../lib/portal'); -const fs = require('fs'); -const path = require('path'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import shell from 'shelljs'; +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import downloadFile from '../lib/downloadFile.js'; +import { unzip } from '../lib/unzip.js'; +import Portal from '../lib/portal.js'; +import fs from 'fs'; +import path from 'path'; const downloadModule = async (module, lockData) => { const filename = 'modules.zip'; @@ -35,7 +24,7 @@ const downloadModule = async (module, lockData) => { logger.Info(`Searching for ${module}...`); const moduleVersion = await Portal.moduleVersionsSearch(module); - const modulePath = `${process.cwd()}/modules/${module.split('@')[0]}` + const modulePath = `${process.cwd()}/modules/${module.split('@')[0]}`; logger.Info(`Downloading ${module}...`); await downloadFile(moduleVersion['public_archive'], filename); logger.Info(`Cleaning ${modulePath}...`); @@ -50,7 +39,7 @@ const downloadModule = async (module, lockData) => { throw `${module}: ${error.message}`; } } -} +}; program .name('pos-cli modules download') @@ -60,19 +49,17 @@ program const lockFilePath = path.join('app', 'pos-modules.lock.json'); const forceDependencies = params.forceDependencies; - await initializeEsmModules(); - let lockData; if (fs.existsSync(lockFilePath)) { lockData = JSON.parse(fs.readFileSync(lockFilePath, 'utf-8'))['modules']; } else { - logger.Warn(`Warning: Can't find app/pos-modules.lock.json`); + logger.Warn('Warning: Can\'t find app/pos-modules.lock.json'); } try { await downloadModule(module, lockData); - logger.Info("Resolving dependencies..."); + logger.Info('Resolving dependencies...'); const templateValuesPath = path.join('modules', module.split('@')[0], 'template-values.json'); if (fs.existsSync(templateValuesPath)) { const templateValuesContent = fs.readFileSync(templateValuesPath, 'utf-8'); diff --git a/bin/pos-cli-modules-init.js b/bin/pos-cli-modules-init.js index 5ab753008..79f9d041e 100644 --- a/bin/pos-cli-modules-init.js +++ b/bin/pos-cli-modules-init.js @@ -1,11 +1,11 @@ #!/usr/bin/env node -const { program } = require('commander'), - degit = require('degit'); +import { program } from 'commander'; +import degit from 'degit'; -const logger = require('../lib/logger'), - report = require('../lib/logger/report'), - dir = require('../lib/directories'); +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import dir from '../lib/directories.js'; const moduleRepo = 'Platform-OS/pos-module-template'; diff --git a/bin/pos-cli-modules-install.js b/bin/pos-cli-modules-install.js index fbc9a188e..211900fee 100755 --- a/bin/pos-cli-modules-install.js +++ b/bin/pos-cli-modules-install.js @@ -1,22 +1,13 @@ #!/usr/bin/env node -const { program } = require('commander'); -const logger = require('../lib/logger'); -const configFiles = require('../lib/modules/configFiles'); -const { findModuleVersion, resolveDependencies } = require('../lib/modules/dependencies') -const Portal = require('../lib/portal'); -const path = require('path'); -const { createDirectory } = require('../lib/utils/create-directory'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { posConfigDirectory, posModulesFilePath, posModulesLockFilePath, readLocalModules, writePosModules, writePosModulesLock } from '../lib/modules/configFiles.js'; +import { findModuleVersion, resolveDependencies } from '../lib/modules/dependencies.js'; +import Portal from '../lib/portal.js'; +import path from 'path'; +import { createDirectory } from '../lib/utils/create-directory.js'; +import ora from 'ora'; const addNewModule = async (moduleName, moduleVersion, localModules, getVersions) => { const newModule = await findModuleVersion(moduleName, moduleVersion, getVersions); @@ -39,19 +30,18 @@ program .action(async (moduleNameWithVersion) => { try { - await createDirectory(path.join(process.cwd(), configFiles.posConfigDirectory)); + await createDirectory(path.join(process.cwd(), posConfigDirectory)); - await initializeEsmModules(); const spinner = ora({ text: 'Modules install', stream: process.stdout }); spinner.start(); try { - let localModules = configFiles.readLocalModules(); + let localModules = readLocalModules(); if(moduleNameWithVersion){ const [moduleName, moduleVersion] = moduleNameWithVersion.split('@'); localModules = await addNewModule(moduleName, moduleVersion, localModules, Portal.moduleVersions); - configFiles.writePosModules(localModules); - spinner.succeed(`Added module: ${moduleName}@${localModules[moduleName]} to ${configFiles.posModulesFilePath}`); + writePosModules(localModules); + spinner.succeed(`Added module: ${moduleName}@${localModules[moduleName]} to ${posModulesFilePath}`); } if(!localModules) { @@ -59,8 +49,8 @@ program } else { spinner.start('Resolving module dependencies'); const modulesLocked = await resolveDependencies(localModules, Portal.moduleVersions); - configFiles.writePosModulesLock(modulesLocked); - spinner.succeed(`Modules lock file updated: ${configFiles.posModulesLockFilePath}`); + writePosModulesLock(modulesLocked); + spinner.succeed(`Modules lock file updated: ${posModulesLockFilePath}`); } } catch(e) { // throw e; @@ -68,9 +58,8 @@ program spinner.stopAndPersist(); spinner.fail(e.message); } - } - catch(error) { - logger.Error(`Aborting - ${configFiles.posConfigDirectory} directory has not been created.`) + } catch { + logger.Error(`Aborting - ${posConfigDirectory} directory has not been created.`); } }); diff --git a/bin/pos-cli-modules-list.js b/bin/pos-cli-modules-list.js index 114751546..3aa315ff9 100755 --- a/bin/pos-cli-modules-list.js +++ b/bin/pos-cli-modules-list.js @@ -1,16 +1,16 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; -const Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - fetchAuthData = require('../lib/settings').fetchSettings; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; program .name('pos-cli modules list') .arguments('[environment]', 'name of the environment. Example: staging') .action(environment => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); gateway.listModules().then(response => { diff --git a/bin/pos-cli-modules-overwrites-diff.js b/bin/pos-cli-modules-overwrites-diff.js index 76edebb01..a70d134b0 100755 --- a/bin/pos-cli-modules-overwrites-diff.js +++ b/bin/pos-cli-modules-overwrites-diff.js @@ -1,9 +1,9 @@ #!/usr/bin/env node -const { program } = require('commander'); -const logger = require('../lib/logger'); -const { execSync } = require('child_process'); -const overwrites = require('../lib/overwrites'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { execSync } from 'child_process'; +import overwrites from '../lib/overwrites.js'; function getGitChangesAsJSON(overwrites = []) { try { diff --git a/bin/pos-cli-modules-overwrites-list.js b/bin/pos-cli-modules-overwrites-list.js index 4ef38fabd..6b969b4f2 100755 --- a/bin/pos-cli-modules-overwrites-list.js +++ b/bin/pos-cli-modules-overwrites-list.js @@ -1,8 +1,8 @@ #!/usr/bin/env node -const { program } = require('commander'); -const logger = require('../lib/logger'); -const overwrites = require('../lib/overwrites'); +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import overwrites from '../lib/overwrites.js'; program .name('pos-cli modules overwrites list') diff --git a/bin/pos-cli-modules-overwrites.js b/bin/pos-cli-modules-overwrites.js index 4e772a0fc..c6ed9e3d8 100755 --- a/bin/pos-cli-modules-overwrites.js +++ b/bin/pos-cli-modules-overwrites.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli modules overwrites') diff --git a/bin/pos-cli-modules-pull.js b/bin/pos-cli-modules-pull.js index a12fde0b2..5ec8ad162 100755 --- a/bin/pos-cli-modules-pull.js +++ b/bin/pos-cli-modules-pull.js @@ -1,49 +1,39 @@ #!/usr/bin/env node -const { program } = require('commander'); -const Gateway = require('../lib/proxy'); -const logger = require('../lib/logger'); -const fetchAuthData = require('../lib/settings').fetchSettings; -const downloadFile = require('../lib/downloadFile'); -const waitForStatus = require('../lib/data/waitForStatus'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; +import downloadFile from '../lib/downloadFile.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; +import ora from 'ora'; program -.name('pos-cli modules pull') -.arguments('[environment]', 'name of the environment. Example: staging') -.arguments('[module]', 'module name to pull') -.action(async (environment, module, params) => { - - await initializeEsmModules(); - const spinner = ora({ text: 'Exporting', stream: process.stdout }); - - const filename = 'modules.zip'; - spinner.start(); - const authData = fetchAuthData(environment, program); - const gateway = new Gateway(authData); - gateway - .appExportStart({ module_name: module }) - .then(exportTask => waitForStatus(() => gateway.appExportStatus(exportTask.id), 'ready_for_export', 'success')) - .then(exportTask => downloadFile(exportTask.zip_file.url, filename)) - .then(() => spinner.succeed('Downloading files')) - .catch({ statusCode: 404 }, () => { - spinner.fail(`Pulling ${module} failed.`); - logger.Error('[404] Zip file with module files not found'); - }) - .catch(e => { - spinner.fail(`Pulling ${module} failed.`); - logger.Error(e.message || e.error.error || e.error); - }); - -}); + .name('pos-cli modules pull') + .arguments('[environment]', 'name of the environment. Example: staging') + .arguments('[module]', 'module name to pull') + .action(async (environment, module, _params) => { + + const spinner = ora({ text: 'Exporting', stream: process.stdout }); + + const filename = 'modules.zip'; + spinner.start(); + const authData = fetchSettings(environment, program); + const gateway = new Gateway(authData); + gateway + .appExportStart({ module_name: module }) + .then(exportTask => waitForStatus(() => gateway.appExportStatus(exportTask.id), 'ready_for_export', 'success')) + .then(exportTask => downloadFile(exportTask.zip_file.url, filename)) + .then(() => spinner.succeed('Downloading files')) + .catch({ statusCode: 404 }, () => { + spinner.fail(`Pulling ${module} failed.`); + logger.Error('[404] Zip file with module files not found'); + }) + .catch(e => { + spinner.fail(`Pulling ${module} failed.`); + logger.Error(e.message || e.error.error || e.error); + }); + + }); program.parse(process.argv); diff --git a/bin/pos-cli-modules-push.js b/bin/pos-cli-modules-push.js index ab39facde..79842ddce 100644 --- a/bin/pos-cli-modules-push.js +++ b/bin/pos-cli-modules-push.js @@ -1,11 +1,11 @@ #!/usr/bin/env node -const { program } = require('commander'); -const modules = require('../lib/modules'); -const validate = require('../lib/validators'); +import { program } from 'commander'; +import { publishVersion } from '../lib/modules.js'; +import { email } from '../lib/validators/index.js'; const checkParams = params => { - validate.email(params.email); + email(params.email); }; program @@ -14,12 +14,9 @@ program .option('--path ', 'module root directory, default is current directory') .option('--name ', 'name of the module you would like to publish') .action(async (params) => { - try { - if (params.path) process.chdir(params.path); - checkParams(params); - await modules.publishVersion(params); - } - catch(e) { console.log(e) } + if (params.path) process.chdir(params.path); + checkParams(params); + await publishVersion(params); }); program.showHelpAfterError(); diff --git a/bin/pos-cli-modules-remove.js b/bin/pos-cli-modules-remove.js index 2f65eef56..b09dc00ed 100755 --- a/bin/pos-cli-modules-remove.js +++ b/bin/pos-cli-modules-remove.js @@ -1,16 +1,16 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - fetchAuthData = require('../lib/settings').fetchSettings; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; program .name('pos-cli modules remove') .arguments('[environment]', 'name of the environment. Example: staging') .arguments('', 'name of the module. Example: admin_cms') .action((environment, name) => { - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); const gateway = new Gateway(authData); const formData = { pos_module_name: name }; diff --git a/bin/pos-cli-modules-update.js b/bin/pos-cli-modules-update.js index a0b9faf1c..ed2f8ccc9 100755 --- a/bin/pos-cli-modules-update.js +++ b/bin/pos-cli-modules-update.js @@ -1,22 +1,13 @@ #!/usr/bin/env node -const { program } = require('commander'); -const logger = require('../lib/logger'); -const configFiles = require('../lib/modules/configFiles'); -const { findModuleVersion, resolveDependencies } = require('../lib/modules/dependencies') -const Portal = require('../lib/portal'); -const path = require('path'); -const { createDirectory } = require('../lib/utils/create-directory'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import { program } from 'commander'; +import logger from '../lib/logger.js'; +import { posConfigDirectory, posModulesLockFilePath, readLocalModules, writePosModules, writePosModulesLock } from '../lib/modules/configFiles.js'; +import { findModuleVersion, resolveDependencies } from '../lib/modules/dependencies.js'; +import Portal from '../lib/portal.js'; +import path from 'path'; +import { createDirectory } from '../lib/utils/create-directory.js'; +import ora from 'ora'; const updateModule = async (moduleName, moduleVersion, localModules, getVersions) => { const newModule = await findModuleVersion(moduleName, moduleVersion, getVersions); @@ -34,18 +25,17 @@ program .arguments('', 'name of the module. Example: core. You can also pass version number: core@1.0.0') .action(async (moduleNameWithVersion) => { try { - await createDirectory(path.join(process.cwd(), configFiles.posConfigDirectory)); + await createDirectory(path.join(process.cwd(), posConfigDirectory)); - await initializeEsmModules(); const spinner = ora({ text: 'Updating module', stream: process.stdout }); spinner.start(); try{ - let localModules = configFiles.readLocalModules(); + let localModules = readLocalModules(); if(moduleNameWithVersion){ const [moduleName, moduleVersion] = moduleNameWithVersion.split('@'); localModules = await updateModule(moduleName, moduleVersion, localModules, Portal.moduleVersions); - configFiles.writePosModules(localModules); + writePosModules(localModules); spinner.succeed(`Updated module: ${moduleName}@${localModules[moduleName]}`); } @@ -54,8 +44,8 @@ program } else { spinner.start('Resolving module dependencies'); const modulesLocked = await resolveDependencies(localModules, Portal.moduleVersions); - configFiles.writePosModulesLock(modulesLocked); - spinner.succeed(`Modules lock file generated: ${configFiles.posModulesLockFilePath}`); + writePosModulesLock(modulesLocked); + spinner.succeed(`Modules lock file generated: ${posModulesLockFilePath}`); } } catch(e) { // throw e; @@ -63,9 +53,8 @@ program spinner.stopAndPersist(); logger.Error(e.message); } - } - catch(error) { - logger.Error(`Aborting - ${configFiles.posConfigDirectory} directory has not been created.`) + } catch { + logger.Error(`Aborting - ${posConfigDirectory} directory has not been created.`); } }); diff --git a/bin/pos-cli-modules-version.js b/bin/pos-cli-modules-version.js index 7c51dcf44..719ddab3a 100644 --- a/bin/pos-cli-modules-version.js +++ b/bin/pos-cli-modules-version.js @@ -1,17 +1,15 @@ #!/usr/bin/env node -const { program } = require('commander'); -const semver = require('semver'); - -const dir = require('../lib/directories'); -const files = require('../lib/files'); -const logger = require('../lib/logger'); -const report = require('../lib/logger/report'); -const settings = require('../lib/settings'); -const { moduleConfig, moduleConfigFilePath } = require('../lib/modules'); - -const readVersionFromPackage = (options, version) => { - let packageJSONPath = `package.json`; +import { program } from 'commander'; +import semver from 'semver'; + +import files from '../lib/files.js'; +import logger from '../lib/logger.js'; +import report from '../lib/logger/report.js'; +import { moduleConfig, moduleConfigFilePath } from '../lib/modules.js'; + +const readVersionFromPackage = (options) => { + let packageJSONPath = 'package.json'; if (typeof options.package === 'string') { packageJSONPath = `${options.package}`; } @@ -29,12 +27,12 @@ const validateVersions = (config, version, moduleName) => { if (!semver.valid(config.version)) { report('[ERR] The current version is not valid'); logger.Error(`The "${moduleName}" module's version ("${config.version}") is not valid`); - return + return; } if (!semver.valid(version)) { report('[ERR] The given version is not valid'); logger.Error(`The "${moduleName}" module's new version ("${version}") is not valid`); - return + return; } return true; diff --git a/bin/pos-cli-modules.js b/bin/pos-cli-modules.js index 0ade912a8..7f53ff07e 100755 --- a/bin/pos-cli-modules.js +++ b/bin/pos-cli-modules.js @@ -1,7 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); -const logger = require('../lib/logger'); +import { program } from 'commander'; program.showHelpAfterError(); program diff --git a/bin/pos-cli-pull.js b/bin/pos-cli-pull.js index 9b69cf6d4..fef7835a6 100755 --- a/bin/pos-cli-pull.js +++ b/bin/pos-cli-pull.js @@ -1,21 +1,13 @@ #!/usr/bin/env node -const { program } = require('commander'), - Gateway = require('../lib/proxy'), - logger = require('../lib/logger'), - fetchAuthData = require('../lib/settings').fetchSettings, - downloadFile = require('../lib/downloadFile'), - waitForStatus = require('../lib/data/waitForStatus'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import logger from '../lib/logger.js'; +import { fetchSettings } from '../lib/settings.js'; +import downloadFile from '../lib/downloadFile.js'; +import waitForStatus from '../lib/data/waitForStatus.js'; - return true; -} +import ora from 'ora'; program .name('pos-cli pull') @@ -23,10 +15,9 @@ program .option('-p --path ', 'output for exported data', 'app.zip') .action(async (environment, params) => { const filename = params.path; - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); let gateway = new Gateway(authData); - await initializeEsmModules(); const spinner = ora({ text: 'Exporting', stream: process.stdout }); spinner.start(); diff --git a/bin/pos-cli-sync.js b/bin/pos-cli-sync.js index 705f1d1ec..5369c2131 100755 --- a/bin/pos-cli-sync.js +++ b/bin/pos-cli-sync.js @@ -1,19 +1,10 @@ #!/usr/bin/env node -const { program } = require('commander'), - watch = require('../lib/watch'); +import { program } from 'commander'; +import { start as watchStart } from '../lib/watch.js'; -// importing ESM modules in CommonJS project -let open; -const initializeEsmModules = async () => { - if(!open) { - await import('open').then(imported => open = imported.default); - } - - return true; -} - -const fetchAuthData = require('../lib/settings').fetchSettings; +import { fetchSettings } from '../lib/settings.js'; +import logger from '../lib/logger.js'; const DEFAULT_CONCURRENCY = 3; @@ -25,7 +16,7 @@ program .option('-o, --open', 'When ready, open default browser with instance') .option('-l, --livereload', 'Use livereload') .action(async (environment, params) => { - const authData = fetchAuthData(environment); + const authData = fetchSettings(environment); const env = Object.assign(process.env, { MARKETPLACE_EMAIL: authData.email, MARKETPLACE_TOKEN: authData.token, @@ -33,11 +24,19 @@ program CONCURRENCY: process.env.CONCURRENCY || params.concurrency }); - watch.start(env, params.directAssetsUpload, params.livereload); + watchStart(env, params.directAssetsUpload, params.livereload); if (params.open) { - await initializeEsmModules(); - await open(`${authData.url}`); + try { + const open = (await import('open')).default; + await open(`${authData.url}`); + } catch (error) { + if (error instanceof AggregateError) { + logger.Error(`Failed to open browser (${error.errors.length} attempts): ${error.message}`); + } else { + logger.Error(`Failed to open browser: ${error.message}`); + } + } } }); diff --git a/bin/pos-cli-test-run.js b/bin/pos-cli-test-run.js new file mode 100755 index 000000000..b3dfbcd63 --- /dev/null +++ b/bin/pos-cli-test-run.js @@ -0,0 +1,17 @@ +#!/usr/bin/env node + +import { program } from 'commander'; +import { fetchSettings } from '../lib/settings.js'; +import { run } from '../lib/test-runner/index.js'; + +program + .name('pos-cli test run') + .argument('', 'name of environment. Example: staging') + .argument('[name]', 'name of test to execute (runs all tests if not provided)') + .action(async (environment, name) => { + const authData = fetchSettings(environment, program); + const success = await run(authData, environment, name); + process.exit(success ? 0 : 1); + }); + +program.parse(process.argv); diff --git a/bin/pos-cli-test.js b/bin/pos-cli-test.js new file mode 100755 index 000000000..3389319e4 --- /dev/null +++ b/bin/pos-cli-test.js @@ -0,0 +1,9 @@ +#!/usr/bin/env node + +import { program } from 'commander'; + +program.showHelpAfterError(); +program + .name('pos-cli test') + .command('run [name]', 'run tests on instance (all tests if name not provided)') + .parse(process.argv); diff --git a/bin/pos-cli-uploads-push.js b/bin/pos-cli-uploads-push.js index 5eb702626..7332eebf5 100755 --- a/bin/pos-cli-uploads-push.js +++ b/bin/pos-cli-uploads-push.js @@ -1,26 +1,16 @@ #!/usr/bin/env node -const { program } = require('commander'), - fs = require('fs'), - Gateway = require('../lib/proxy'), - fetchAuthData = require('../lib/settings').fetchSettings, - uploadFile = require('../lib/s3UploadFile').uploadFile, - presignUrl = require('../lib/presignUrl').presignUrl, - logger = require('../lib/logger'); - -// importing ESM modules in CommonJS project -let ora; -const initializeEsmModules = async () => { - if(!ora) { - await import('ora').then(imported => ora = imported.default); - } - - return true; -} +import fs from 'fs'; +import { program } from 'commander'; +import Gateway from '../lib/proxy.js'; +import { fetchSettings } from '../lib/settings.js'; +import { uploadFile } from '../lib/s3UploadFile.js'; +import { presignUrl } from '../lib/presignUrl.js'; +import logger from '../lib/logger.js'; +import ora from 'ora'; const uploadZip = async (directory, gateway) => { - await initializeEsmModules(); const spinner = ora({ text: 'Sending file', stream: process.stdout }); spinner.start(); @@ -46,7 +36,7 @@ program .option('-p --path ', 'path of .zip file that contains files used in property of type upload', 'uploads.zip') .action((environment, params) => { const path = params.path; - const authData = fetchAuthData(environment, program); + const authData = fetchSettings(environment, program); Object.assign(process.env, { MARKETPLACE_TOKEN: authData.token, MARKETPLACE_URL: authData.url }); if (!fs.existsSync(path)) logger.Error(`File not found: ${path}`); diff --git a/bin/pos-cli-uploads.js b/bin/pos-cli-uploads.js index 2090321cf..341f6cfd4 100755 --- a/bin/pos-cli-uploads.js +++ b/bin/pos-cli-uploads.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { program } = require('commander'); +import { program } from 'commander'; program .name('pos-cli uploads') diff --git a/bin/pos-cli.js b/bin/pos-cli.js index 78d4d4670..bbf24d808 100755 --- a/bin/pos-cli.js +++ b/bin/pos-cli.js @@ -1,10 +1,10 @@ #!/usr/bin/env node -const { program } = require('commander'), - updateNotifier = require('update-notifier'), - pkg = require('../package.json'), - logger = require('../lib/logger'), - version = pkg.version; +import { program } from 'commander'; +import updateNotifier from 'update-notifier'; +import pkg from '../package.json' with { type: 'json' }; + +const version = pkg.version; updateNotifier({ pkg: pkg @@ -24,6 +24,7 @@ program .command('data', 'export, import or clean data on instance') .command('deploy ', 'deploy code to environment').alias('d') .command('env', 'manage environments') + .command('exec', 'execute code on instance') .command('gui', 'gui for content editor, graphql, logs') .command('generate', 'generates files') .command('init', 'initialize directory structure') @@ -33,5 +34,6 @@ program .command('modules', 'manage modules') .command('pull', 'export app data to a zip file') .command('sync ', 'update environment on file change').alias('s') + .command('test', 'run tests on instance') .command('uploads', 'manage uploads files') .parse(process.argv); diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..7fc99dc3d --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,259 @@ +import js from '@eslint/js'; +import nodePlugin from 'eslint-plugin-n'; +import importPlugin from 'eslint-plugin-import'; +import promisePlugin from 'eslint-plugin-promise'; + +// Custom rule to warn when underscore-prefixed parameters are used +const noUseUnderscorePrefixed = { + meta: { + type: 'suggestion', + docs: { + description: 'Disallow using function parameters that start with underscore', + category: 'Best Practices' + }, + messages: { + noUseUnderscore: 'Parameter "{{name}}" starts with underscore, indicating it should be unused. Either use it (and remove _) or don\'t use it.' + }, + schema: [] + }, + create(context) { + const functionScopes = []; + + return { + 'FunctionDeclaration, FunctionExpression, ArrowFunctionExpression'(node) { + // Track function parameters starting with _ (but not __ like __dirname, __filename) + const underscoreParams = new Map(); + node.params.forEach(param => { + if (param.type === 'Identifier' && + param.name.startsWith('_') && + !param.name.startsWith('__')) { + underscoreParams.set(param.name, param); + } + }); + functionScopes.push({ node, params: underscoreParams }); + }, + 'FunctionDeclaration, FunctionExpression, ArrowFunctionExpression:exit'() { + functionScopes.pop(); + }, + 'Identifier'(node) { + // Skip if this is __dirname or __filename or any other __ prefixed identifier + if (!node.name.startsWith('_') || node.name.startsWith('__')) { + return; + } + + // Check if we're in a function scope that has this as a parameter + for (let i = functionScopes.length - 1; i >= 0; i--) { + const scope = functionScopes[i]; + const paramNode = scope.params.get(node.name); + if (paramNode) { + // Only report if this is NOT the parameter declaration itself + // Check if this node is the same as the parameter node + if (node !== paramNode) { + context.report({ + node, + messageId: 'noUseUnderscore', + data: { name: node.name } + }); + } + break; + } + } + } + }; + } +}; + +const customPlugin = { + rules: { + 'no-use-underscore-prefixed': noUseUnderscorePrefixed + } +}; + +export default [ + { + ignores: [ + 'node_modules/**', + 'gui/*/node_modules/**', + 'gui/*/dist/**', + 'gui/*/build/**', + 'gui/*/src/**', + 'gui/*/tests/**', + 'gui/*/*.config.js', + 'gui/next/.svelte-kit/**', + 'gui/next/test-results/**', + 'gui/next/playwright-report/**', + 'gui/next/playwright/**', + 'coverage/**', + '*.min.js', + 'test/fixtures/**', + // Generated/vendor files + 'gui/graphql/public/**', + 'gui/admin/dist/**', + 'gui/next/static/prism.js' + ] + }, + js.configs.recommended, + { + files: ['**/*.test.js', '**/*.spec.js', 'test/**/*.js'], + languageOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + globals: { + describe: 'readonly', + test: 'readonly', + it: 'readonly', + expect: 'readonly', + vi: 'readonly', + beforeAll: 'readonly', + afterAll: 'readonly', + beforeEach: 'readonly', + afterEach: 'readonly', + fixture: 'readonly' + } + }, + rules: { + 'no-undef': 'off', + // Variables/params starting with _ are conventionally unused. If you use it, remove the _. + 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], + 'import/extensions': 'off', + 'import/no-unresolved': 'off', + 'n/no-missing-import': 'off' + } + }, + { + files: ['**/*.js', '!**/*.test.js', '!**/*.spec.js', '!test/**/*.js', '!gui/**'], + plugins: { + n: nodePlugin, + import: importPlugin, + promise: promisePlugin, + custom: customPlugin + }, + settings: { + 'import/resolver': { + node: { + extensions: ['.js', '.json'] + } + } + }, + languageOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + globals: { + process: 'readonly', + console: 'readonly', + setTimeout: 'readonly', + setInterval: 'readonly', + clearTimeout: 'readonly', + clearInterval: 'readonly', + Buffer: 'readonly', + __dirname: 'readonly', + __filename: 'readonly', + global: 'readonly', + require: 'readonly', + URL: 'readonly', + module: 'readonly', + program: 'readonly', + token: 'readonly', + gateway: 'readonly', + FormData: 'readonly', + Blob: 'readonly', + fetch: 'readonly', + URLSearchParams: 'readonly', + query: 'readonly' + } + }, + rules: { + // Variables/params starting with _ are conventionally unused. This config ignores them in unused-var checks. + // IMPORTANT: If you prefix a variable with _, DO NOT use it in the code. If you use it, remove the _. + 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], + 'custom/no-use-underscore-prefixed': 'warn', + 'no-global-assign': 'off', + 'n/no-missing-import': ['error', { + tryExtensions: ['.js', '.json'], + allowModules: ['vitest'] + }], + 'n/no-extraneous-import': 'off', + 'n/no-extraneous-require': 'off', + 'n/no-unsupported-features/es-syntax': 'off', + 'n/no-process-exit': 'off', + 'import/no-unresolved': ['error', { ignore: ['^@platformos/', '^#lib/', '^#test/', '^vitest/'] }], + 'import/extensions': 'off' + } + }, + { + files: ['gui/**'], + rules: { + 'no-console': 'off', + 'no-magic-numbers': 'off', + 'no-underscore-dangle': 'off', + 'no-undef': 'off', + 'no-unused-vars': 'warn', + 'comma-dangle': ['warn', 'never'], + 'quotes': ['warn', 'single', { avoidEscape: true }], + 'semi': ['warn', 'always'], + 'indent': ['warn', 2, { SwitchCase: 1 }], + 'brace-style': ['warn', '1tbs'], + 'padded-blocks': 'off', + 'spaced-comment': 'off', + 'quote-props': 'off', + 'prefer-arrow-callback': 'off', + 'space-before-function-paren': 'off', + 'no-new': 'off', + 'func-names': 'off', + 'new-cap': 'off', + 'arrow-body-style': 'off', + 'class-methods-use-this': 'off', + 'consistent-return': 'off', + 'max-len': 'off', + 'no-empty': 'off', + 'no-prototype-builtins': 'off', + 'no-useless-escape': 'off', + 'no-func-assign': 'off', + 'no-fallthrough': 'off', + 'no-case-declarations': 'off', + 'no-global-assign': 'off', + 'no-cond-assign': 'off', + 'getter-return': 'off', + 'valid-typeof': 'off', + 'no-control-regex': 'off', + 'no-constant-condition': 'off', + 'no-misleading-character-class': 'off', + 'no-async-promise-executor': 'off', + 'no-constant-binary-expression': 'off', + 'no-useless-catch': 'off', + 'no-unreachable': 'off' + } + }, + { + rules: { + 'no-console': 'off', + 'no-magic-numbers': 'off', + 'no-underscore-dangle': 'off', + 'comma-dangle': ['error', 'never'], + 'quotes': ['error', 'single', { avoidEscape: true }], + 'semi': ['error', 'always'], + 'indent': ['error', 2, { SwitchCase: 1 }], + 'brace-style': ['error', '1tbs'], + 'padded-blocks': 'off', + 'spaced-comment': ['warn', 'always'], + 'quote-props': 'off', + 'prefer-arrow-callback': 'off', + 'space-before-function-paren': 'off', + 'no-new': 'off', + 'func-names': 'off', + 'new-cap': 'off', + 'arrow-body-style': 'off', + 'class-methods-use-this': 'off', + 'consistent-return': 'off', + 'max-len': ['warn', { code: 140, ignoreUrls: true, ignoreStrings: true, ignoreTemplateLiterals: true }], + 'no-empty': 'warn', + 'no-prototype-builtins': 'off', + 'no-useless-escape': 'warn', + 'no-async-promise-executor': 'warn', + 'no-constant-binary-expression': 'warn', + 'no-useless-catch': 'warn', + 'no-unreachable': 'warn', + 'no-global-assign': 'off' + } + } +]; diff --git a/gui/admin/rollup.config.js b/gui/admin/rollup.config.js index 0c1937e17..4683e65fa 100644 --- a/gui/admin/rollup.config.js +++ b/gui/admin/rollup.config.js @@ -5,7 +5,7 @@ import alias from '@rollup/plugin-alias'; import livereload from 'rollup-plugin-livereload'; import copy from 'rollup-plugin-copy'; import postcss from 'rollup-plugin-postcss'; -import esbuild from 'rollup-plugin-esbuild' +import esbuild from 'rollup-plugin-esbuild'; import path from 'path'; import del from 'del'; @@ -23,12 +23,12 @@ function createConfig({ output, inlineDynamicImports, plugins = [] }) { return { inlineDynamicImports, - input: `src/main.js`, + input: 'src/main.js', output: { name: 'app', assetFileNames: '[name].[extname]', chunkFileNames: '[name].js', - ...output, + ...output }, plugins: [ postcss({ @@ -37,42 +37,42 @@ function createConfig({ output, inlineDynamicImports, plugins = [] }) { require('postcss-import')(), require('autoprefixer')(), require('tailwindcss')() - ], + ] }), alias({ - entries: [{ find: '@', replacement: path.resolve('src') }], + entries: [{ find: '@', replacement: path.resolve('src') }] }), copy({ targets: [ { src: [staticDir + '/*', '!*/(__index.html)'], dest: distDir }, - { src: `${staticDir}/__index.html`, dest: distDir, rename: '__app.html', transform }, + { src: `${staticDir}/__index.html`, dest: distDir, rename: '__app.html', transform } ], copyOnce: true, - flatten: false, + flatten: false }), svelte({ dev: !production, - hydratable: true, + hydratable: true }), resolve({ browser: true, - dedupe: (importee) => importee === 'svelte' || importee.startsWith('svelte/'), + dedupe: (importee) => importee === 'svelte' || importee.startsWith('svelte/') }), commonjs(), esbuild({ include: /\.js?$/, // default, inferred from `loaders` option - minify: process.env.NODE_ENV === 'production', + minify: process.env.NODE_ENV === 'production' }), - ...plugins, + ...plugins ], watch: { - clearScreen: false, - }, + clearScreen: false + } }; } @@ -80,18 +80,18 @@ const bundledConfig = { inlineDynamicImports: true, output: { format: 'iife', - file: `${buildDir}/bundle.js`, + file: `${buildDir}/bundle.js` }, - plugins: [!production && serve(), !production && livereload(distDir)], + plugins: [!production && serve(), !production && livereload(distDir)] }; const dynamicConfig = { inlineDynamicImports: false, output: { format: 'esm', - dir: buildDir, + dir: buildDir }, - plugins: [!production && livereload(distDir)], + plugins: [!production && livereload(distDir)] }; const configs = [createConfig(bundledConfig)]; @@ -107,10 +107,10 @@ function serve() { started = true; require('child_process').spawn('npm', ['run', 'serve'], { stdio: ['ignore', 'inherit', 'inherit'], - shell: true, + shell: true }); } - }, + } }; } @@ -120,23 +120,23 @@ function prerender() { if (shouldPrerender) { require('child_process').spawn('npm', ['run', 'export'], { stdio: ['ignore', 'inherit', 'inherit'], - shell: true, + shell: true }); } - }, + } }; } function bundledTransform(contents) { return contents.toString().replace( '__SCRIPT__', - `` + '' ); } function dynamicTransform(contents) { return contents.toString().replace( '__SCRIPT__', - `` + '' ); } diff --git a/gui/admin/src/lib/_typemap.js b/gui/admin/src/lib/_typemap.js index 1da02a8ea..9b0a842a9 100644 --- a/gui/admin/src/lib/_typemap.js +++ b/gui/admin/src/lib/_typemap.js @@ -7,5 +7,5 @@ export default { integer: 'value_int', string: 'value', text: 'value', - upload: 'value', + upload: 'value' }; \ No newline at end of file diff --git a/gui/admin/src/lib/api.js b/gui/admin/src/lib/api.js index 26503e507..5edff15ba 100644 --- a/gui/admin/src/lib/api.js +++ b/gui/admin/src/lib/api.js @@ -1,12 +1,10 @@ -import { NotificationDisplay, notifier } from '@beyonk/svelte-notifications'; +import { notifier } from '@beyonk/svelte-notifications'; import { get } from 'svelte/store'; import filtersStore from '../pages/Models/Manage/_filters-store'; import pageStore from '../pages/Models/Manage/_page-store'; import typeMap from './_typemap'; -let timeout = 5000; - const getPropsString = (props) => { return Object.keys(props) .map((prop) => { @@ -30,11 +28,11 @@ const getPropertiesFilter = (f) => { return filterString; }; -const graph = (body, successMessage = "Success") => { +const graph = (body, successMessage = 'Success') => { return fetch(`http://localhost:${parseInt(window.location.port)-1}/api/graph`, { headers: { 'Content-Type': 'application/json' }, method: 'POST', - body: JSON.stringify(body), + body: JSON.stringify(body) }) .then((res) => res.json()) .then((res) => { @@ -48,7 +46,7 @@ const graph = (body, successMessage = "Success") => { } return res && res.data; - }) + }); }; export default { @@ -80,7 +78,7 @@ export default { propertyFilter = getPropertiesFilter(f); } - const deletedFilter = deleted ? `deleted_at: { exists: true }` : ''; + const deletedFilter = deleted ? 'deleted_at: { exists: true }' : ''; const idFilter = id ? `id: { value: ${id} }` : ''; const schemaIdFilter = schemaId ? `model_schema_id: { value: ${schemaId} }` : ''; const query = `query { @@ -167,7 +165,7 @@ export default { return graph({ query }); }, - getUsers(email = "", fn = "", ln = "") { + getUsers(email = '', fn = '', ln = '') { const query = `query getUsers { users(per_page: 20, page: 1, @@ -212,7 +210,7 @@ export default { } }`; - return graph({ query }, "Constant updated"); + return graph({ query }, 'Constant updated'); }, unsetConstant(name) { const query = `mutation { @@ -221,6 +219,6 @@ export default { } }`; - return graph({ query }, "Constant unset"); + return graph({ query }, 'Constant unset'); } }; diff --git a/gui/admin/src/main.js b/gui/admin/src/main.js index 3ef40d431..14a0e9c45 100644 --- a/gui/admin/src/main.js +++ b/gui/admin/src/main.js @@ -1,8 +1,8 @@ import './css/main.css'; -import HMR from '@sveltech/routify/hmr' +import HMR from '@sveltech/routify/hmr'; import App from './App.svelte'; -const app = HMR(App, { target: document.body }, 'routify-app') +const app = HMR(App, { target: document.body }, 'routify-app'); export default app; diff --git a/gui/admin/src/pages/Constants/fetchConstants.js b/gui/admin/src/pages/Constants/fetchConstants.js index be5b06a55..0e33c4d80 100644 --- a/gui/admin/src/pages/Constants/fetchConstants.js +++ b/gui/admin/src/pages/Constants/fetchConstants.js @@ -1,5 +1,5 @@ -import api from "@/lib/api"; -import { constants } from "./store.js"; +import api from '@/lib/api'; +import { constants } from './store.js'; export default function fetchConstants() { api diff --git a/gui/admin/src/pages/Logs/fetchLogs.js b/gui/admin/src/pages/Logs/fetchLogs.js index a1c4104b0..04875666f 100644 --- a/gui/admin/src/pages/Logs/fetchLogs.js +++ b/gui/admin/src/pages/Logs/fetchLogs.js @@ -5,7 +5,7 @@ const isBrowserTabFocused = () => !document.hidden; const scrollToBottom = () => { setTimeout(() => document.querySelector('footer').scrollIntoView(), 200); -} +}; export default function () { // Make sure first load is always done (middle button click) by checking for cachedLastId @@ -28,12 +28,12 @@ export default function () { class LogEntry { constructor(data) { - this.id = data.id || "missing" - this.message = data.message || "missing" - this.error_type = data.error_type || "missing" - this.data = data.data || {} - this.updated_at = data.updated_at || new Date() + this.id = data.id || 'missing'; + this.message = data.message || 'missing'; + this.error_type = data.error_type || 'missing'; + this.data = data.data || {}; + this.updated_at = data.updated_at || new Date(); - this.isHighlighted = !!this.error_type.match(/error/i) + this.isHighlighted = !!this.error_type.match(/error/i); } } diff --git a/gui/admin/src/pages/Models/Manage/_models-store.js b/gui/admin/src/pages/Models/Manage/_models-store.js index 59d861119..62f51a1e1 100644 --- a/gui/admin/src/pages/Models/Manage/_models-store.js +++ b/gui/admin/src/pages/Models/Manage/_models-store.js @@ -1,6 +1,5 @@ -import { onMount } from "svelte"; import { writable } from 'svelte/store'; -import api from "@/lib/api"; +import api from '@/lib/api'; const createStore = () => { const { subscribe, set, update } = writable([]); diff --git a/gui/admin/src/pages/Models/Manage/_page-store.js b/gui/admin/src/pages/Models/Manage/_page-store.js index 7f0b9d311..09f550df5 100644 --- a/gui/admin/src/pages/Models/Manage/_page-store.js +++ b/gui/admin/src/pages/Models/Manage/_page-store.js @@ -13,7 +13,7 @@ const createStore = () => { }); }, setSchemaId: id => { - update(s => ({ ...s, schemaId: id })) + update(s => ({ ...s, schemaId: id })); }, reset: () => update(s => ({ ...s, page: 1 })), increment: () => { diff --git a/gui/admin/tailwind.config.js b/gui/admin/tailwind.config.cjs similarity index 80% rename from gui/admin/tailwind.config.js rename to gui/admin/tailwind.config.cjs index fbb2e8667..695aab50e 100644 --- a/gui/admin/tailwind.config.js +++ b/gui/admin/tailwind.config.cjs @@ -2,19 +2,19 @@ module.exports = { mode: 'JIT', purge: { content: [ - './src/**/*.svelte', - ], + './src/**/*.svelte' + ] }, theme: { screens: { 'md': '1024px', 'lg': '1280px', - 'xl': '1400px', + 'xl': '1400px' }, container: { center: true, padding: '0' - }, + } }, plugins: [require('@tailwindcss/custom-forms')] }; diff --git a/gui/admin/tests/Models.js b/gui/admin/tests/Models.js index 195bfa13b..c58cee30f 100644 --- a/gui/admin/tests/Models.js +++ b/gui/admin/tests/Models.js @@ -2,7 +2,7 @@ import { Selector } from 'testcafe'; import faker from 'faker'; fixture('Models') - .page(`http://localhost:3333/Models`) + .page('http://localhost:3333/Models') .beforeEach(async (t) => { await t.click(Selector('h1').withText('feedback')); }); diff --git a/gui/admin/tests/Schemas.js b/gui/admin/tests/Schemas.js index 89fc7bd47..9352d58bb 100644 --- a/gui/admin/tests/Schemas.js +++ b/gui/admin/tests/Schemas.js @@ -1,13 +1,13 @@ import { Selector } from 'testcafe'; -fixture('Schemas').page(`http://localhost:3333/Models`); +fixture('Schemas').page('http://localhost:3333/Models'); test('Lists all schemas', async t => { - await t.expect(Selector('h1').withText('contact_request').exists).ok() - await t.expect(Selector('h1').withText('feedback').exists).ok() + await t.expect(Selector('h1').withText('contact_request').exists).ok(); + await t.expect(Selector('h1').withText('feedback').exists).ok(); }); test('Lists all schemas properties', async t => { - await t.expect(Selector('p').withText('company (string)').exists).ok() - await t.expect(Selector('p').withText('rate (integer)').exists).ok() + await t.expect(Selector('p').withText('company (string)').exists).ok(); + await t.expect(Selector('p').withText('rate (integer)').exists).ok(); }); \ No newline at end of file diff --git a/gui/graphql/babel.config.js b/gui/graphql/babel.config.cjs similarity index 100% rename from gui/graphql/babel.config.js rename to gui/graphql/babel.config.cjs diff --git a/gui/graphql/public/main.js b/gui/graphql/public/main.js index caae7a4a2..6358b8a19 100644 --- a/gui/graphql/public/main.js +++ b/gui/graphql/public/main.js @@ -1,42 +1,3238 @@ -var X$=Object.create;var sS=Object.defineProperty;var Z$=Object.getOwnPropertyDescriptor;var J$=Object.getOwnPropertyNames;var _$=Object.getPrototypeOf,$$=Object.prototype.hasOwnProperty;var at=(e,t)=>()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ui=(e,t)=>{for(var r in t)sS(e,r,{get:t[r],enumerable:!0})},eee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of J$(t))!$$.call(e,i)&&i!==r&&sS(e,i,{get:()=>t[i],enumerable:!(n=Z$(t,i))||n.enumerable});return e};var fe=(e,t,r)=>(r=e!=null?X$(_$(e)):{},eee(t||!e||!e.__esModule?sS(r,"default",{value:e,enumerable:!0}):r,e));var z3=X(Ot=>{"use strict";var Uh=Symbol.for("react.element"),tee=Symbol.for("react.portal"),ree=Symbol.for("react.fragment"),nee=Symbol.for("react.strict_mode"),iee=Symbol.for("react.profiler"),oee=Symbol.for("react.provider"),aee=Symbol.for("react.context"),see=Symbol.for("react.forward_ref"),lee=Symbol.for("react.suspense"),uee=Symbol.for("react.memo"),cee=Symbol.for("react.lazy"),R3=Symbol.iterator;function fee(e){return e===null||typeof e!="object"?null:(e=R3&&e[R3]||e["@@iterator"],typeof e=="function"?e:null)}var F3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q3=Object.assign,j3={};function Pd(e,t,r){this.props=e,this.context=t,this.refs=j3,this.updater=r||F3}Pd.prototype.isReactComponent={};Pd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function V3(){}V3.prototype=Pd.prototype;function uS(e,t,r){this.props=e,this.context=t,this.refs=j3,this.updater=r||F3}var cS=uS.prototype=new V3;cS.constructor=uS;q3(cS,Pd.prototype);cS.isPureReactComponent=!0;var M3=Array.isArray,U3=Object.prototype.hasOwnProperty,fS={current:null},B3={key:!0,ref:!0,__self:!0,__source:!0};function G3(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)U3.call(t,n)&&!B3.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1{"use strict";H3.exports=z3()});var W3=X(eb=>{"use strict";var vee=Ee(),gee=Symbol.for("react.element"),yee=Symbol.for("react.fragment"),bee=Object.prototype.hasOwnProperty,Aee=vee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xee={key:!0,ref:!0,__self:!0,__source:!0};function Q3(e,t,r){var n,i={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)bee.call(t,n)&&!xee.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:gee,type:e,key:o,ref:s,props:i,_owner:Aee.current}}eb.Fragment=yee;eb.jsx=Q3;eb.jsxs=Q3});var K3=X(($Te,Y3)=>{"use strict";Y3.exports=W3()});var Z3=X(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.versionInfo=Rd.version=void 0;var wee="15.8.0";Rd.version=wee;var Eee=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});Rd.versionInfo=Eee});var tb=X(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.default=Tee;function Tee(e){return typeof e?.then=="function"}});var es=X(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.default=Cee;function rb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rb=function(r){return typeof r}:rb=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rb(e)}function Cee(e){return rb(e)=="object"&&e!==null}});var ts=X(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.SYMBOL_TO_STRING_TAG=Zl.SYMBOL_ASYNC_ITERATOR=Zl.SYMBOL_ITERATOR=void 0;var See=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";Zl.SYMBOL_ITERATOR=See;var kee=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";Zl.SYMBOL_ASYNC_ITERATOR=kee;var Oee=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";Zl.SYMBOL_TO_STRING_TAG=Oee});var nb=X(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.getLocation=Nee;function Nee(e,t){for(var r=/\r\n|[\n\r]/g,n=1,i=t+1,o;(o=r.exec(e.body))&&o.index{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});ob.printLocation=Lee;ob.printSourceLocation=_3;var Dee=nb();function Lee(e){return _3(e.source,(0,Dee.getLocation)(e.source,e.start))}function _3(e,t){var r=e.locationOffset.column-1,n=ib(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=t.line===1?r:0,c=t.column+l,f="".concat(e.name,":").concat(s,":").concat(c,` -`),m=n.split(/\r\n|[\n\r]/g),v=m[i];if(v.length>120){for(var g=Math.floor(c/80),y=c%80,w=[],T=0;T{"use strict";function ab(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ab=function(r){return typeof r}:ab=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ab(e)}Object.defineProperty(Hh,"__esModule",{value:!0});Hh.printError=a5;Hh.GraphQLError=void 0;var Ree=Iee(es()),Mee=ts(),$3=nb(),e5=vS();function Iee(e){return e&&e.__esModule?e:{default:e}}function t5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fee(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Gee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gh(e,t){return Gh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gh(e,t)}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zh(e)}var zee=function(e){Uee(r,e);var t=Bee(r);function r(n,i,o,s,l,c,f){var m,v,g,y;jee(this,r),y=t.call(this,n),y.name="GraphQLError",y.originalError=c??void 0,y.nodes=n5(Array.isArray(i)?i:i?[i]:void 0);for(var w=[],T=0,S=(A=y.nodes)!==null&&A!==void 0?A:[];T0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?(Object.defineProperty(Bh(y),"stack",{value:c.stack,writable:!0,configurable:!0}),i5(y)):(Error.captureStackTrace?Error.captureStackTrace(Bh(y),r):Object.defineProperty(Bh(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return Vee(r,[{key:"toString",value:function(){return a5(this)}},{key:Mee.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(gS(Error));Hh.GraphQLError=zee;function n5(e){return e===void 0||e.length===0?void 0:e}function a5(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ui=(e,t)=>{ + for(var r in t)sS(e,r,{get:t[r],enumerable:!0}); + },eee=(e,t,r,n)=>{ + if(t&&typeof t=='object'||typeof t=='function')for(let i of J$(t))!$$.call(e,i)&&i!==r&&sS(e,i,{get:()=>t[i],enumerable:!(n=Z$(t,i))||n.enumerable});return e; + };var fe=(e,t,r)=>(r=e!=null?X$(_$(e)):{},eee(t||!e||!e.__esModule?sS(r,'default',{value:e,enumerable:!0}):r,e));var z3=X(Ot=>{ + 'use strict';var Uh=Symbol.for('react.element'),tee=Symbol.for('react.portal'),ree=Symbol.for('react.fragment'),nee=Symbol.for('react.strict_mode'),iee=Symbol.for('react.profiler'),oee=Symbol.for('react.provider'),aee=Symbol.for('react.context'),see=Symbol.for('react.forward_ref'),lee=Symbol.for('react.suspense'),uee=Symbol.for('react.memo'),cee=Symbol.for('react.lazy'),R3=Symbol.iterator;function fee(e){ + return e===null||typeof e!='object'?null:(e=R3&&e[R3]||e['@@iterator'],typeof e=='function'?e:null); + }var F3={isMounted:function(){ + return!1; + },enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q3=Object.assign,j3={};function Pd(e,t,r){ + this.props=e,this.context=t,this.refs=j3,this.updater=r||F3; + }Pd.prototype.isReactComponent={};Pd.prototype.setState=function(e,t){ + if(typeof e!='object'&&typeof e!='function'&&e!=null)throw Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.');this.updater.enqueueSetState(this,e,t,'setState'); + };Pd.prototype.forceUpdate=function(e){ + this.updater.enqueueForceUpdate(this,e,'forceUpdate'); + };function V3(){}V3.prototype=Pd.prototype;function uS(e,t,r){ + this.props=e,this.context=t,this.refs=j3,this.updater=r||F3; + }var cS=uS.prototype=new V3;cS.constructor=uS;q3(cS,Pd.prototype);cS.isPureReactComponent=!0;var M3=Array.isArray,U3=Object.prototype.hasOwnProperty,fS={current:null},B3={key:!0,ref:!0,__self:!0,__source:!0};function G3(e,t,r){ + var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=''+t.key),t)U3.call(t,n)&&!B3.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1{ + 'use strict';H3.exports=z3(); +});var W3=X(eb=>{ + 'use strict';var vee=Ee(),gee=Symbol.for('react.element'),yee=Symbol.for('react.fragment'),bee=Object.prototype.hasOwnProperty,Aee=vee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xee={key:!0,ref:!0,__self:!0,__source:!0};function Q3(e,t,r){ + var n,i={},o=null,s=null;r!==void 0&&(o=''+r),t.key!==void 0&&(o=''+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)bee.call(t,n)&&!xee.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:gee,type:e,key:o,ref:s,props:i,_owner:Aee.current}; + }eb.Fragment=yee;eb.jsx=Q3;eb.jsxs=Q3; +});var K3=X(($Te,Y3)=>{ + 'use strict';Y3.exports=W3(); +});var Z3=X(Rd=>{ + 'use strict';Object.defineProperty(Rd,'__esModule',{value:!0});Rd.versionInfo=Rd.version=void 0;var wee='15.8.0';Rd.version=wee;var Eee=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});Rd.versionInfo=Eee; +});var tb=X(pS=>{ + 'use strict';Object.defineProperty(pS,'__esModule',{value:!0});pS.default=Tee;function Tee(e){ + return typeof e?.then=='function'; + } +});var es=X(mS=>{ + 'use strict';Object.defineProperty(mS,'__esModule',{value:!0});mS.default=Cee;function rb(e){ + '@babel/helpers - typeof';return typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?rb=function(r){ + return typeof r; + }:rb=function(r){ + return r&&typeof Symbol=='function'&&r.constructor===Symbol&&r!==Symbol.prototype?'symbol':typeof r; + },rb(e); + }function Cee(e){ + return rb(e)=='object'&&e!==null; + } +});var ts=X(Zl=>{ + 'use strict';Object.defineProperty(Zl,'__esModule',{value:!0});Zl.SYMBOL_TO_STRING_TAG=Zl.SYMBOL_ASYNC_ITERATOR=Zl.SYMBOL_ITERATOR=void 0;var See=typeof Symbol=='function'&&Symbol.iterator!=null?Symbol.iterator:'@@iterator';Zl.SYMBOL_ITERATOR=See;var kee=typeof Symbol=='function'&&Symbol.asyncIterator!=null?Symbol.asyncIterator:'@@asyncIterator';Zl.SYMBOL_ASYNC_ITERATOR=kee;var Oee=typeof Symbol=='function'&&Symbol.toStringTag!=null?Symbol.toStringTag:'@@toStringTag';Zl.SYMBOL_TO_STRING_TAG=Oee; +});var nb=X(hS=>{ + 'use strict';Object.defineProperty(hS,'__esModule',{value:!0});hS.getLocation=Nee;function Nee(e,t){ + for(var r=/\r\n|[\n\r]/g,n=1,i=t+1,o;(o=r.exec(e.body))&&o.index{ + 'use strict';Object.defineProperty(ob,'__esModule',{value:!0});ob.printLocation=Lee;ob.printSourceLocation=_3;var Dee=nb();function Lee(e){ + return _3(e.source,(0,Dee.getLocation)(e.source,e.start)); + }function _3(e,t){ + var r=e.locationOffset.column-1,n=ib(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=t.line===1?r:0,c=t.column+l,f=''.concat(e.name,':').concat(s,':').concat(c,` +`),m=n.split(/\r\n|[\n\r]/g),v=m[i];if(v.length>120){ + for(var g=Math.floor(c/80),y=c%80,w=[],T=0;T{ + 'use strict';function ab(e){ + '@babel/helpers - typeof';return typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?ab=function(r){ + return typeof r; + }:ab=function(r){ + return r&&typeof Symbol=='function'&&r.constructor===Symbol&&r!==Symbol.prototype?'symbol':typeof r; + },ab(e); + }Object.defineProperty(Hh,'__esModule',{value:!0});Hh.printError=a5;Hh.GraphQLError=void 0;var Ree=Iee(es()),Mee=ts(),$3=nb(),e5=vS();function Iee(e){ + return e&&e.__esModule?e:{default:e}; + }function t5(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function Fee(e){ + for(var t=1;t'u'||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=='function')return!0;try{ + return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0; + }catch{ + return!1; + } + }function Gee(e){ + return Function.toString.call(e).indexOf('[native code]')!==-1; + }function Gh(e,t){ + return Gh=Object.setPrototypeOf||function(n,i){ + return n.__proto__=i,n; + },Gh(e,t); + }function zh(e){ + return zh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){ + return r.__proto__||Object.getPrototypeOf(r); + },zh(e); + }var zee=function(e){ + Uee(r,e);var t=Bee(r);function r(n,i,o,s,l,c,f){ + var m,v,g,y;jee(this,r),y=t.call(this,n),y.name='GraphQLError',y.originalError=c??void 0,y.nodes=n5(Array.isArray(i)?i:i?[i]:void 0);for(var w=[],T=0,S=(A=y.nodes)!==null&&A!==void 0?A:[];T0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?(Object.defineProperty(Bh(y),'stack',{value:c.stack,writable:!0,configurable:!0}),i5(y)):(Error.captureStackTrace?Error.captureStackTrace(Bh(y),r):Object.defineProperty(Bh(y),'stack',{value:Error().stack,writable:!0,configurable:!0}),y); + }return Vee(r,[{key:'toString',value:function(){ + return a5(this); + }},{key:Mee.SYMBOL_TO_STRING_TAG,get:function(){ + return'Object'; + }}]),r; + }(gS(Error));Hh.GraphQLError=zee;function n5(e){ + return e===void 0||e.length===0?void 0:e; + }function a5(e){ + var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.syntaxError=Qee;var Hee=ft();function Qee(e,t,r){return new Hee.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var tr=X(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});ub.Kind=void 0;var Wee=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});ub.Kind=Wee});var Gn=X(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.default=Yee;function Yee(e,t){var r=!!e;if(!r)throw new Error(t??"Unexpected invariant triggered.")}});var AS=X(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});cb.default=void 0;var Kee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,Xee=Kee;cb.default=Xee});var fb=X(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.default=Jee;var Zee=l5(Gn()),s5=l5(AS());function l5(e){return e&&e.__esModule?e:{default:e}}function Jee(e){var t=e.prototype.toJSON;typeof t=="function"||(0,Zee.default)(0),e.prototype.inspect=t,s5.default&&(e.prototype[s5.default]=t)}});var Md=X(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.isNode=$ee;kc.Token=kc.Location=void 0;var u5=_ee(fb());function _ee(e){return e&&e.__esModule?e:{default:e}}var c5=function(){function e(r,n,i){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();kc.Location=c5;(0,u5.default)(c5);var f5=function(){function e(r,n,i,o,s,l,c){this.kind=r,this.start=n,this.end=i,this.line=o,this.column=s,this.value=c,this.prev=l,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();kc.Token=f5;(0,u5.default)(f5);function $ee(e){return e!=null&&typeof e.kind=="string"}});var Id=X(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.TokenKind=void 0;var ete=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});db.TokenKind=ete});var jt=X(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.default=ite;var tte=rte(AS());function rte(e){return e&&e.__esModule?e:{default:e}}function pb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pb=function(r){return typeof r}:pb=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pb(e)}var nte=10,d5=2;function ite(e){return mb(e,[])}function mb(e,t){switch(pb(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":ote(e,t);default:return String(e)}}function ote(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var r=[].concat(t,[e]),n=lte(e);if(n!==void 0){var i=n.call(e);if(i!==e)return typeof i=="string"?i:mb(i,r)}else if(Array.isArray(e))return ste(e,r);return ate(e,r)}function ate(e,t){var r=Object.keys(e);if(r.length===0)return"{}";if(t.length>d5)return"["+ute(e)+"]";var n=r.map(function(i){var o=mb(e[i],t);return i+": "+o});return"{ "+n.join(", ")+" }"}function ste(e,t){if(e.length===0)return"[]";if(t.length>d5)return"[Array]";for(var r=Math.min(nte,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}function lte(e){var t=e[String(tte.default)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function ute(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var Io=X(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.default=cte;function cte(e,t){var r=!!e;if(!r)throw new Error(t)}});var Qh=X(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});hb.default=void 0;var gCe=fte(jt());function fte(e){return e&&e.__esModule?e:{default:e}}var dte=function(t,r){return t instanceof r};hb.default=dte});var vb=X(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.isSource=gte;Wh.Source=void 0;var pte=ts(),mte=CS(jt()),TS=CS(Io()),hte=CS(Qh());function CS(e){return e&&e.__esModule?e:{default:e}}function p5(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||(0,TS.default)(0,"Body must be a string. Received: ".concat((0,mte.default)(t),".")),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,TS.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,TS.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return vte(e,[{key:pte.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();Wh.Source=m5;function gte(e){return(0,hte.default)(e,m5)}});var Fd=X(gb=>{"use strict";Object.defineProperty(gb,"__esModule",{value:!0});gb.DirectiveLocation=void 0;var yte=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});gb.DirectiveLocation=yte});var qd=X(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.dedentBlockStringValue=bte;Yh.getBlockStringIndentation=v5;Yh.printBlockString=Ate;function bte(e){var t=e.split(/\r\n|[\n\r]/g),r=v5(e);if(r!==0)for(var n=1;ni&&h5(t[o-1]);)--o;return t.slice(i,o).join(` -`)}function h5(e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(` -`)===-1,i=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",l=!n||o||s||r,c="";return l&&!(n&&i)&&(c+=` +`+(0,e5.printSourceLocation)(e.source,l); + }return t; + } +});var lb=X(yS=>{ + 'use strict';Object.defineProperty(yS,'__esModule',{value:!0});yS.syntaxError=Qee;var Hee=ft();function Qee(e,t,r){ + return new Hee.GraphQLError('Syntax Error: '.concat(r),void 0,e,[t]); + } +});var tr=X(ub=>{ + 'use strict';Object.defineProperty(ub,'__esModule',{value:!0});ub.Kind=void 0;var Wee=Object.freeze({NAME:'Name',DOCUMENT:'Document',OPERATION_DEFINITION:'OperationDefinition',VARIABLE_DEFINITION:'VariableDefinition',SELECTION_SET:'SelectionSet',FIELD:'Field',ARGUMENT:'Argument',FRAGMENT_SPREAD:'FragmentSpread',INLINE_FRAGMENT:'InlineFragment',FRAGMENT_DEFINITION:'FragmentDefinition',VARIABLE:'Variable',INT:'IntValue',FLOAT:'FloatValue',STRING:'StringValue',BOOLEAN:'BooleanValue',NULL:'NullValue',ENUM:'EnumValue',LIST:'ListValue',OBJECT:'ObjectValue',OBJECT_FIELD:'ObjectField',DIRECTIVE:'Directive',NAMED_TYPE:'NamedType',LIST_TYPE:'ListType',NON_NULL_TYPE:'NonNullType',SCHEMA_DEFINITION:'SchemaDefinition',OPERATION_TYPE_DEFINITION:'OperationTypeDefinition',SCALAR_TYPE_DEFINITION:'ScalarTypeDefinition',OBJECT_TYPE_DEFINITION:'ObjectTypeDefinition',FIELD_DEFINITION:'FieldDefinition',INPUT_VALUE_DEFINITION:'InputValueDefinition',INTERFACE_TYPE_DEFINITION:'InterfaceTypeDefinition',UNION_TYPE_DEFINITION:'UnionTypeDefinition',ENUM_TYPE_DEFINITION:'EnumTypeDefinition',ENUM_VALUE_DEFINITION:'EnumValueDefinition',INPUT_OBJECT_TYPE_DEFINITION:'InputObjectTypeDefinition',DIRECTIVE_DEFINITION:'DirectiveDefinition',SCHEMA_EXTENSION:'SchemaExtension',SCALAR_TYPE_EXTENSION:'ScalarTypeExtension',OBJECT_TYPE_EXTENSION:'ObjectTypeExtension',INTERFACE_TYPE_EXTENSION:'InterfaceTypeExtension',UNION_TYPE_EXTENSION:'UnionTypeExtension',ENUM_TYPE_EXTENSION:'EnumTypeExtension',INPUT_OBJECT_TYPE_EXTENSION:'InputObjectTypeExtension'});ub.Kind=Wee; +});var Gn=X(bS=>{ + 'use strict';Object.defineProperty(bS,'__esModule',{value:!0});bS.default=Yee;function Yee(e,t){ + var r=!!e;if(!r)throw new Error(t??'Unexpected invariant triggered.'); + } +});var AS=X(cb=>{ + 'use strict';Object.defineProperty(cb,'__esModule',{value:!0});cb.default=void 0;var Kee=typeof Symbol=='function'&&typeof Symbol.for=='function'?Symbol.for('nodejs.util.inspect.custom'):void 0,Xee=Kee;cb.default=Xee; +});var fb=X(xS=>{ + 'use strict';Object.defineProperty(xS,'__esModule',{value:!0});xS.default=Jee;var Zee=l5(Gn()),s5=l5(AS());function l5(e){ + return e&&e.__esModule?e:{default:e}; + }function Jee(e){ + var t=e.prototype.toJSON;typeof t=='function'||(0,Zee.default)(0),e.prototype.inspect=t,s5.default&&(e.prototype[s5.default]=t); + } +});var Md=X(kc=>{ + 'use strict';Object.defineProperty(kc,'__esModule',{value:!0});kc.isNode=$ee;kc.Token=kc.Location=void 0;var u5=_ee(fb());function _ee(e){ + return e&&e.__esModule?e:{default:e}; + }var c5=function(){ + function e(r,n,i){ + this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i; + }var t=e.prototype;return t.toJSON=function(){ + return{start:this.start,end:this.end}; + },e; + }();kc.Location=c5;(0,u5.default)(c5);var f5=function(){ + function e(r,n,i,o,s,l,c){ + this.kind=r,this.start=n,this.end=i,this.line=o,this.column=s,this.value=c,this.prev=l,this.next=null; + }var t=e.prototype;return t.toJSON=function(){ + return{kind:this.kind,value:this.value,line:this.line,column:this.column}; + },e; + }();kc.Token=f5;(0,u5.default)(f5);function $ee(e){ + return e!=null&&typeof e.kind=='string'; + } +});var Id=X(db=>{ + 'use strict';Object.defineProperty(db,'__esModule',{value:!0});db.TokenKind=void 0;var ete=Object.freeze({SOF:'',EOF:'',BANG:'!',DOLLAR:'$',AMP:'&',PAREN_L:'(',PAREN_R:')',SPREAD:'...',COLON:':',EQUALS:'=',AT:'@',BRACKET_L:'[',BRACKET_R:']',BRACE_L:'{',PIPE:'|',BRACE_R:'}',NAME:'Name',INT:'Int',FLOAT:'Float',STRING:'String',BLOCK_STRING:'BlockString',COMMENT:'Comment'});db.TokenKind=ete; +});var jt=X(wS=>{ + 'use strict';Object.defineProperty(wS,'__esModule',{value:!0});wS.default=ite;var tte=rte(AS());function rte(e){ + return e&&e.__esModule?e:{default:e}; + }function pb(e){ + '@babel/helpers - typeof';return typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?pb=function(r){ + return typeof r; + }:pb=function(r){ + return r&&typeof Symbol=='function'&&r.constructor===Symbol&&r!==Symbol.prototype?'symbol':typeof r; + },pb(e); + }var nte=10,d5=2;function ite(e){ + return mb(e,[]); + }function mb(e,t){ + switch(pb(e)){ + case'string':return JSON.stringify(e);case'function':return e.name?'[function '.concat(e.name,']'):'[function]';case'object':return e===null?'null':ote(e,t);default:return String(e); + } + }function ote(e,t){ + if(t.indexOf(e)!==-1)return'[Circular]';var r=[].concat(t,[e]),n=lte(e);if(n!==void 0){ + var i=n.call(e);if(i!==e)return typeof i=='string'?i:mb(i,r); + }else if(Array.isArray(e))return ste(e,r);return ate(e,r); + }function ate(e,t){ + var r=Object.keys(e);if(r.length===0)return'{}';if(t.length>d5)return'['+ute(e)+']';var n=r.map(function(i){ + var o=mb(e[i],t);return i+': '+o; + });return'{ '+n.join(', ')+' }'; + }function ste(e,t){ + if(e.length===0)return'[]';if(t.length>d5)return'[Array]';for(var r=Math.min(nte,e.length),n=e.length-r,i=[],o=0;o1&&i.push('... '.concat(n,' more items')),'['+i.join(', ')+']'; + }function lte(e){ + var t=e[String(tte.default)];if(typeof t=='function')return t;if(typeof e.inspect=='function')return e.inspect; + }function ute(e){ + var t=Object.prototype.toString.call(e).replace(/^\[object /,'').replace(/]$/,'');if(t==='Object'&&typeof e.constructor=='function'){ + var r=e.constructor.name;if(typeof r=='string'&&r!=='')return r; + }return t; + } +});var Io=X(ES=>{ + 'use strict';Object.defineProperty(ES,'__esModule',{value:!0});ES.default=cte;function cte(e,t){ + var r=!!e;if(!r)throw new Error(t); + } +});var Qh=X(hb=>{ + 'use strict';Object.defineProperty(hb,'__esModule',{value:!0});hb.default=void 0;var gCe=fte(jt());function fte(e){ + return e&&e.__esModule?e:{default:e}; + }var dte=function(t,r){ + return t instanceof r; + };hb.default=dte; +});var vb=X(Wh=>{ + 'use strict';Object.defineProperty(Wh,'__esModule',{value:!0});Wh.isSource=gte;Wh.Source=void 0;var pte=ts(),mte=CS(jt()),TS=CS(Io()),hte=CS(Qh());function CS(e){ + return e&&e.__esModule?e:{default:e}; + }function p5(e,t){ + for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:'GraphQL request',n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=='string'||(0,TS.default)(0,'Body must be a string. Received: '.concat((0,mte.default)(t),'.')),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,TS.default)(0,'line in locationOffset is 1-indexed and must be positive.'),this.locationOffset.column>0||(0,TS.default)(0,'column in locationOffset is 1-indexed and must be positive.'); + }return vte(e,[{key:pte.SYMBOL_TO_STRING_TAG,get:function(){ + return'Source'; + }}]),e; + }();Wh.Source=m5;function gte(e){ + return(0,hte.default)(e,m5); + } +});var Fd=X(gb=>{ + 'use strict';Object.defineProperty(gb,'__esModule',{value:!0});gb.DirectiveLocation=void 0;var yte=Object.freeze({QUERY:'QUERY',MUTATION:'MUTATION',SUBSCRIPTION:'SUBSCRIPTION',FIELD:'FIELD',FRAGMENT_DEFINITION:'FRAGMENT_DEFINITION',FRAGMENT_SPREAD:'FRAGMENT_SPREAD',INLINE_FRAGMENT:'INLINE_FRAGMENT',VARIABLE_DEFINITION:'VARIABLE_DEFINITION',SCHEMA:'SCHEMA',SCALAR:'SCALAR',OBJECT:'OBJECT',FIELD_DEFINITION:'FIELD_DEFINITION',ARGUMENT_DEFINITION:'ARGUMENT_DEFINITION',INTERFACE:'INTERFACE',UNION:'UNION',ENUM:'ENUM',ENUM_VALUE:'ENUM_VALUE',INPUT_OBJECT:'INPUT_OBJECT',INPUT_FIELD_DEFINITION:'INPUT_FIELD_DEFINITION'});gb.DirectiveLocation=yte; +});var qd=X(Yh=>{ + 'use strict';Object.defineProperty(Yh,'__esModule',{value:!0});Yh.dedentBlockStringValue=bte;Yh.getBlockStringIndentation=v5;Yh.printBlockString=Ate;function bte(e){ + var t=e.split(/\r\n|[\n\r]/g),r=v5(e);if(r!==0)for(var n=1;ni&&h5(t[o-1]);)--o;return t.slice(i,o).join(` +`); + }function h5(e){ + for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:'',r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(` +`)===-1,i=e[0]===' '||e[0]===' ',o=e[e.length-1]==='"',s=e[e.length-1]==='\\',l=!n||o||s||r,c='';return l&&!(n&&i)&&(c+=` `+t),c+=t?e.replace(/\n/g,` `+t):e,l&&(c+=` -`),'"""'+c.replace(/"""/g,'\\"""')+'"""'}});var bb=X(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.isPunctuatorTokenKind=Ete;Kh.Lexer=void 0;var rs=lb(),Qr=Md(),Ct=Id(),xte=qd(),wte=function(){function e(r){var n=new Qr.Token(Ct.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==Ct.TokenKind.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=Tte(this,n)}while(n.kind===Ct.TokenKind.COMMENT);return n},e}();Kh.Lexer=wte;function Ete(e){return e===Ct.TokenKind.BANG||e===Ct.TokenKind.DOLLAR||e===Ct.TokenKind.AMP||e===Ct.TokenKind.PAREN_L||e===Ct.TokenKind.PAREN_R||e===Ct.TokenKind.SPREAD||e===Ct.TokenKind.COLON||e===Ct.TokenKind.EQUALS||e===Ct.TokenKind.AT||e===Ct.TokenKind.BRACKET_L||e===Ct.TokenKind.BRACKET_R||e===Ct.TokenKind.BRACE_L||e===Ct.TokenKind.PIPE||e===Ct.TokenKind.BRACE_R}function Oc(e){return isNaN(e)?Ct.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Tte(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o31||s===9));return new Qr.Token(Ct.TokenKind.COMMENT,t,l,r,n,i,o.slice(t+1,l))}function kte(e,t,r,n,i,o){var s=e.body,l=r,c=t,f=!1;if(l===45&&(l=s.charCodeAt(++c)),l===48){if(l=s.charCodeAt(++c),l>=48&&l<=57)throw(0,rs.syntaxError)(e,c,"Invalid number, unexpected digit after 0: ".concat(Oc(l),"."))}else c=SS(e,c,l),l=s.charCodeAt(c);if(l===46&&(f=!0,l=s.charCodeAt(++c),c=SS(e,c,l),l=s.charCodeAt(c)),(l===69||l===101)&&(f=!0,l=s.charCodeAt(++c),(l===43||l===45)&&(l=s.charCodeAt(++c)),c=SS(e,c,l),l=s.charCodeAt(c)),l===46||Pte(l))throw(0,rs.syntaxError)(e,c,"Invalid number, expected digit but got: ".concat(Oc(l),"."));return new Qr.Token(f?Ct.TokenKind.FLOAT:Ct.TokenKind.INT,t,c,n,i,o,s.slice(t,c))}function SS(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw(0,rs.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(Oc(o),"."))}function Ote(e,t,r,n,i){for(var o=e.body,s=t+1,l=s,c=0,f="";s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Lte(e,t,r,n,i){for(var o=e.body,s=o.length,l=t+1,c=0;l!==s&&!isNaN(c=o.charCodeAt(l))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++l;return new Qr.Token(Ct.TokenKind.NAME,t,l,r,n,i,o.slice(t,l))}function Pte(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var jd=X(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.parse=Ite;Nc.parseValue=Fte;Nc.parseType=qte;Nc.Parser=void 0;var kS=lb(),dt=tr(),Rte=Md(),je=Id(),g5=vb(),Mte=Fd(),y5=bb();function Ite(e,t){var r=new Ab(e,t);return r.parseDocument()}function Fte(e,t){var r=new Ab(e,t);r.expectToken(je.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(je.TokenKind.EOF),n}function qte(e,t){var r=new Ab(e,t);r.expectToken(je.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(je.TokenKind.EOF),n}var Ab=function(){function e(r,n){var i=(0,g5.isSource)(r)?r:new g5.Source(r);this._lexer=new y5.Lexer(i),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(je.TokenKind.NAME);return{kind:dt.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:dt.Kind.DOCUMENT,definitions:this.many(je.TokenKind.SOF,this.parseDefinition,je.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(je.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(je.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(je.TokenKind.BRACE_L))return{kind:dt.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(je.TokenKind.NAME)&&(o=this.parseName()),{kind:dt.Kind.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(je.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(je.TokenKind.PAREN_L,this.parseVariableDefinition,je.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:dt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(je.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(je.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(je.TokenKind.DOLLAR),{kind:dt.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:dt.Kind.SELECTION_SET,selections:this.many(je.TokenKind.BRACE_L,this.parseSelection,je.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(je.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n=this._lexer.token,i=this.parseName(),o,s;return this.expectOptionalToken(je.TokenKind.COLON)?(o=i,s=this.parseName()):s=i,{kind:dt.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(je.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(n){var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(je.TokenKind.PAREN_L,i,je.TokenKind.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,i=this.parseName();return this.expectToken(je.TokenKind.COLON),{kind:dt.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:dt.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(je.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(je.TokenKind.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(je.TokenKind.NAME)?{kind:dt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:dt.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,i=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:dt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:dt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var i=this._lexer.token;switch(i.kind){case je.TokenKind.BRACKET_L:return this.parseList(n);case je.TokenKind.BRACE_L:return this.parseObject(n);case je.TokenKind.INT:return this._lexer.advance(),{kind:dt.Kind.INT,value:i.value,loc:this.loc(i)};case je.TokenKind.FLOAT:return this._lexer.advance(),{kind:dt.Kind.FLOAT,value:i.value,loc:this.loc(i)};case je.TokenKind.STRING:case je.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case je.TokenKind.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:dt.Kind.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:dt.Kind.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:dt.Kind.NULL,loc:this.loc(i)};default:return{kind:dt.Kind.ENUM,value:i.value,loc:this.loc(i)}}case je.TokenKind.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:dt.Kind.STRING,value:n.value,block:n.kind===je.TokenKind.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseValueLiteral(n)};return{kind:dt.Kind.LIST,values:this.any(je.TokenKind.BRACKET_L,s,je.TokenKind.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseObjectField(n)};return{kind:dt.Kind.OBJECT,fields:this.any(je.TokenKind.BRACE_L,s,je.TokenKind.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(n){var i=this._lexer.token,o=this.parseName();return this.expectToken(je.TokenKind.COLON),{kind:dt.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(i)}},t.parseDirectives=function(n){for(var i=[];this.peek(je.TokenKind.AT);)i.push(this.parseDirective(n));return i},t.parseDirective=function(n){var i=this._lexer.token;return this.expectToken(je.TokenKind.AT),{kind:dt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}},t.parseTypeReference=function(){var n=this._lexer.token,i;return this.expectOptionalToken(je.TokenKind.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(je.TokenKind.BRACKET_R),i={kind:dt.Kind.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(je.TokenKind.BANG)?{kind:dt.Kind.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i},t.parseNamedType=function(){var n=this._lexer.token;return{kind:dt.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===je.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(je.TokenKind.STRING)||this.peek(je.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(je.TokenKind.BRACE_L,this.parseOperationTypeDefinition,je.TokenKind.BRACE_R);return{kind:dt.Kind.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:s,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,i=this.parseOperationType();this.expectToken(je.TokenKind.COLON);var o=this.parseNamedType();return{kind:dt.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:dt.Kind.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:dt.Kind.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:c,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(je.TokenKind.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(je.TokenKind.AMP)||this.peek(je.TokenKind.NAME));return i}return this.delimitedMany(je.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(je.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===je.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(je.TokenKind.BRACE_L,this.parseFieldDefinition,je.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(je.TokenKind.COLON);var l=this.parseTypeReference(),c=this.parseDirectives(!0);return{kind:dt.Kind.FIELD_DEFINITION,description:i,name:o,arguments:s,type:l,directives:c,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(je.TokenKind.PAREN_L,this.parseInputValueDef,je.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(je.TokenKind.COLON);var s=this.parseTypeReference(),l;this.expectOptionalToken(je.TokenKind.EQUALS)&&(l=this.parseValueLiteral(!0));var c=this.parseDirectives(!0);return{kind:dt.Kind.INPUT_VALUE_DEFINITION,description:i,name:o,type:s,defaultValue:l,directives:c,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:dt.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:c,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseUnionMemberTypes();return{kind:dt.Kind.UNION_TYPE_DEFINITION,description:i,name:o,directives:s,types:l,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(je.TokenKind.EQUALS)?this.delimitedMany(je.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();return{kind:dt.Kind.ENUM_TYPE_DEFINITION,description:i,name:o,directives:s,values:l,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(je.TokenKind.BRACE_L,this.parseEnumValueDefinition,je.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:dt.Kind.ENUM_VALUE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();return{kind:dt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(je.TokenKind.BRACE_L,this.parseInputValueDef,je.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===je.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(je.TokenKind.BRACE_L,this.parseOperationTypeDefinition,je.TokenKind.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:dt.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:dt.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:dt.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:dt.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.UNION_TYPE_EXTENSION,name:i,directives:o,types:s,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.ENUM_TYPE_EXTENSION,name:i,directives:o,values:s,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:s,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(je.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var c=this.parseDirectiveLocations();return{kind:dt.Kind.DIRECTIVE_DEFINITION,description:i,name:o,arguments:s,repeatable:l,locations:c,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(je.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,i=this.parseName();if(Mte.DirectiveLocation[i.value]!==void 0)return i;throw this.unexpected(n)},t.loc=function(n){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new Rte.Location(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw(0,kS.syntaxError)(this._lexer.source,i.start,"Expected ".concat(b5(n),", found ").concat(OS(i),"."))},t.expectOptionalToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i},t.expectKeyword=function(n){var i=this._lexer.token;if(i.kind===je.TokenKind.NAME&&i.value===n)this._lexer.advance();else throw(0,kS.syntaxError)(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(OS(i),"."))},t.expectOptionalKeyword=function(n){var i=this._lexer.token;return i.kind===je.TokenKind.NAME&&i.value===n?(this._lexer.advance(),!0):!1},t.unexpected=function(n){var i=n??this._lexer.token;return(0,kS.syntaxError)(this._lexer.source,i.start,"Unexpected ".concat(OS(i),"."))},t.any=function(n,i,o){this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(i.call(this));return s},t.optionalMany=function(n,i,o){if(this.expectOptionalToken(n)){var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(n,i,o){this.expectToken(n);var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(n,i){this.expectOptionalToken(n);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(n));return o},e}();Nc.Parser=Ab;function OS(e){var t=e.value;return b5(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function b5(e){return(0,y5.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}});var Jl=X(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.visit=Ute;_s.visitInParallel=Bte;_s.getVisitFn=xb;_s.BREAK=_s.QueryDocumentKeys=void 0;var jte=Vte(jt()),A5=Md();function Vte(e){return e&&e.__esModule?e:{default:e}}var x5={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};_s.QueryDocumentKeys=x5;var Vd=Object.freeze({});_s.BREAK=Vd;function Ute(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x5,n=void 0,i=Array.isArray(e),o=[e],s=-1,l=[],c=void 0,f=void 0,m=void 0,v=[],g=[],y=e;do{s++;var w=s===o.length,T=w&&l.length!==0;if(w){if(f=g.length===0?void 0:v[v.length-1],c=m,m=g.pop(),T){if(i)c=c.slice();else{for(var S={},A=0,b=Object.keys(c);A{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.default=void 0;var Gte=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var r=0;r{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});Eb.default=void 0;var Hte=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Qte=Hte;Eb.default=Qte});var Xh=X(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.locatedError=Xte;var Wte=Kte(jt()),Yte=ft();function Kte(e){return e&&e.__esModule?e:{default:e}}function Xte(e,t,r){var n,i=e instanceof Error?e:new Error("Unexpected error value: "+(0,Wte.default)(e));return Array.isArray(i.path)?i:new Yte.GraphQLError(i.message,(n=i.nodes)!==null&&n!==void 0?n:t,i.source,i.positions,r,i)}});var DS=X(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});Tb.assertValidName=$te;Tb.isValidNameError=E5;var Zte=Jte(Io()),w5=ft();function Jte(e){return e&&e.__esModule?e:{default:e}}var _te=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function $te(e){var t=E5(e);if(t)throw t;return e}function E5(e){if(typeof e=="string"||(0,Zte.default)(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new w5.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!_te.test(e))return new w5.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}});var Bd=X(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});Cb.default=void 0;var ere=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},tre=ere;Cb.default=tre});var _l=X(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.default=rre;function rre(e,t){return e.reduce(function(r,n){return r[t(n)]=n,r},Object.create(null))}});var RS=X(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.default=ore;var nre=ire(Bd());function ire(e){return e&&e.__esModule?e:{default:e}}function ore(e,t){for(var r=Object.create(null),n=0,i=(0,nre.default)(e);n{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.default=lre;var are=sre(Bd());function sre(e){return e&&e.__esModule?e:{default:e}}function lre(e){if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,are.default)(e);r{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.default=ure;function ure(e,t,r){return e.reduce(function(n,i){return n[t(i)]=r(i),n},Object.create(null))}});var $l=X(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.default=fre;var cre=5;function fre(e,t){var r=typeof e=="string"?[e,t]:[void 0,e],n=r[0],i=r[1],o=" Did you mean ";n&&(o+=n+" ");var s=i.map(function(f){return'"'.concat(f,'"')});switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}var l=s.slice(0,cre),c=l.pop();return o+l.join(", ")+", or "+c+"?"}});var T5=X(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.default=dre;function dre(e){return e}});var Jh=X(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0});VS.default=pre;function pre(e,t){for(var r=0,n=0;r0);var l=0;do++n,l=l*10+o-jS,o=t.charCodeAt(n);while(kb(o)&&l>0);if(sl)return 1}else{if(io)return 1;++r,++n}}return e.length-t.length}var jS=48,mre=57;function kb(e){return!isNaN(e)&&jS<=e&&e<=mre}});var eu=X(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.default=gre;var hre=vre(Jh());function vre(e){return e&&e.__esModule?e:{default:e}}function gre(e,t){for(var r=Object.create(null),n=new yre(e),i=Math.floor(e.length*.4)+1,o=0;oi)){for(var v=this._rows,g=0;g<=m;g++)v[0][g]=g;for(var y=1;y<=f;y++){for(var w=v[(y-1)%3],T=v[y%3],S=T[0]=y,A=1;A<=m;A++){var b=s[y-1]===l[A-1]?0:1,C=Math.min(w[A]+1,T[A-1]+1,w[A-1]+b);if(y>1&&A>1&&s[y-1]===l[A-2]&&s[y-2]===l[A-1]){var x=v[(y-2)%3][A-2];C=Math.min(C,x+1)}Ci)return}var k=v[f%3][m];return k<=i?k:void 0}},e}();function C5(e){for(var t=e.length,r=new Array(t),n=0;n{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.print=xre;var bre=Jl(),Are=qd();function xre(e){return(0,bre.visit)(e,{leave:Ere})}var wre=80,Ere={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return Ke(t.definitions,` +`),'"""'+c.replace(/"""/g,'\\"""')+'"""'; + } +});var bb=X(Kh=>{ + 'use strict';Object.defineProperty(Kh,'__esModule',{value:!0});Kh.isPunctuatorTokenKind=Ete;Kh.Lexer=void 0;var rs=lb(),Qr=Md(),Ct=Id(),xte=qd(),wte=function(){ + function e(r){ + var n=new Qr.Token(Ct.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0; + }var t=e.prototype;return t.advance=function(){ + this.lastToken=this.token;var n=this.token=this.lookahead();return n; + },t.lookahead=function(){ + var n=this.token;if(n.kind!==Ct.TokenKind.EOF)do{ + var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=Tte(this,n); + }while(n.kind===Ct.TokenKind.COMMENT);return n; + },e; + }();Kh.Lexer=wte;function Ete(e){ + return e===Ct.TokenKind.BANG||e===Ct.TokenKind.DOLLAR||e===Ct.TokenKind.AMP||e===Ct.TokenKind.PAREN_L||e===Ct.TokenKind.PAREN_R||e===Ct.TokenKind.SPREAD||e===Ct.TokenKind.COLON||e===Ct.TokenKind.EQUALS||e===Ct.TokenKind.AT||e===Ct.TokenKind.BRACKET_L||e===Ct.TokenKind.BRACKET_R||e===Ct.TokenKind.BRACE_L||e===Ct.TokenKind.PIPE||e===Ct.TokenKind.BRACE_R; + }function Oc(e){ + return isNaN(e)?Ct.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(('00'+e.toString(16).toUpperCase()).slice(-4),'"'); + }function Tte(e,t){ + for(var r=e.source,n=r.body,i=n.length,o=t.end;o31||s===9));return new Qr.Token(Ct.TokenKind.COMMENT,t,l,r,n,i,o.slice(t+1,l)); + }function kte(e,t,r,n,i,o){ + var s=e.body,l=r,c=t,f=!1;if(l===45&&(l=s.charCodeAt(++c)),l===48){ + if(l=s.charCodeAt(++c),l>=48&&l<=57)throw(0,rs.syntaxError)(e,c,'Invalid number, unexpected digit after 0: '.concat(Oc(l),'.')); + }else c=SS(e,c,l),l=s.charCodeAt(c);if(l===46&&(f=!0,l=s.charCodeAt(++c),c=SS(e,c,l),l=s.charCodeAt(c)),(l===69||l===101)&&(f=!0,l=s.charCodeAt(++c),(l===43||l===45)&&(l=s.charCodeAt(++c)),c=SS(e,c,l),l=s.charCodeAt(c)),l===46||Pte(l))throw(0,rs.syntaxError)(e,c,'Invalid number, expected digit but got: '.concat(Oc(l),'.'));return new Qr.Token(f?Ct.TokenKind.FLOAT:Ct.TokenKind.INT,t,c,n,i,o,s.slice(t,c)); + }function SS(e,t,r){ + var n=e.body,i=t,o=r;if(o>=48&&o<=57){ + do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i; + }throw(0,rs.syntaxError)(e,i,'Invalid number, expected digit but got: '.concat(Oc(o),'.')); + }function Ote(e,t,r,n,i){ + for(var o=e.body,s=t+1,l=s,c=0,f='';s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1; + }function Lte(e,t,r,n,i){ + for(var o=e.body,s=o.length,l=t+1,c=0;l!==s&&!isNaN(c=o.charCodeAt(l))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++l;return new Qr.Token(Ct.TokenKind.NAME,t,l,r,n,i,o.slice(t,l)); + }function Pte(e){ + return e===95||e>=65&&e<=90||e>=97&&e<=122; + } +});var jd=X(Nc=>{ + 'use strict';Object.defineProperty(Nc,'__esModule',{value:!0});Nc.parse=Ite;Nc.parseValue=Fte;Nc.parseType=qte;Nc.Parser=void 0;var kS=lb(),dt=tr(),Rte=Md(),je=Id(),g5=vb(),Mte=Fd(),y5=bb();function Ite(e,t){ + var r=new Ab(e,t);return r.parseDocument(); + }function Fte(e,t){ + var r=new Ab(e,t);r.expectToken(je.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(je.TokenKind.EOF),n; + }function qte(e,t){ + var r=new Ab(e,t);r.expectToken(je.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(je.TokenKind.EOF),n; + }var Ab=function(){ + function e(r,n){ + var i=(0,g5.isSource)(r)?r:new g5.Source(r);this._lexer=new y5.Lexer(i),this._options=n; + }var t=e.prototype;return t.parseName=function(){ + var n=this.expectToken(je.TokenKind.NAME);return{kind:dt.Kind.NAME,value:n.value,loc:this.loc(n)}; + },t.parseDocument=function(){ + var n=this._lexer.token;return{kind:dt.Kind.DOCUMENT,definitions:this.many(je.TokenKind.SOF,this.parseDefinition,je.TokenKind.EOF),loc:this.loc(n)}; + },t.parseDefinition=function(){ + if(this.peek(je.TokenKind.NAME))switch(this._lexer.token.value){ + case'query':case'mutation':case'subscription':return this.parseOperationDefinition();case'fragment':return this.parseFragmentDefinition();case'schema':case'scalar':case'type':case'interface':case'union':case'enum':case'input':case'directive':return this.parseTypeSystemDefinition();case'extend':return this.parseTypeSystemExtension(); + }else{ + if(this.peek(je.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition(); + }throw this.unexpected(); + },t.parseOperationDefinition=function(){ + var n=this._lexer.token;if(this.peek(je.TokenKind.BRACE_L))return{kind:dt.Kind.OPERATION_DEFINITION,operation:'query',name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(je.TokenKind.NAME)&&(o=this.parseName()),{kind:dt.Kind.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}; + },t.parseOperationType=function(){ + var n=this.expectToken(je.TokenKind.NAME);switch(n.value){ + case'query':return'query';case'mutation':return'mutation';case'subscription':return'subscription'; + }throw this.unexpected(n); + },t.parseVariableDefinitions=function(){ + return this.optionalMany(je.TokenKind.PAREN_L,this.parseVariableDefinition,je.TokenKind.PAREN_R); + },t.parseVariableDefinition=function(){ + var n=this._lexer.token;return{kind:dt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(je.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(je.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}; + },t.parseVariable=function(){ + var n=this._lexer.token;return this.expectToken(je.TokenKind.DOLLAR),{kind:dt.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}; + },t.parseSelectionSet=function(){ + var n=this._lexer.token;return{kind:dt.Kind.SELECTION_SET,selections:this.many(je.TokenKind.BRACE_L,this.parseSelection,je.TokenKind.BRACE_R),loc:this.loc(n)}; + },t.parseSelection=function(){ + return this.peek(je.TokenKind.SPREAD)?this.parseFragment():this.parseField(); + },t.parseField=function(){ + var n=this._lexer.token,i=this.parseName(),o,s;return this.expectOptionalToken(je.TokenKind.COLON)?(o=i,s=this.parseName()):s=i,{kind:dt.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(je.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}; + },t.parseArguments=function(n){ + var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(je.TokenKind.PAREN_L,i,je.TokenKind.PAREN_R); + },t.parseArgument=function(){ + var n=this._lexer.token,i=this.parseName();return this.expectToken(je.TokenKind.COLON),{kind:dt.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}; + },t.parseConstArgument=function(){ + var n=this._lexer.token;return{kind:dt.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(je.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}; + },t.parseFragment=function(){ + var n=this._lexer.token;this.expectToken(je.TokenKind.SPREAD);var i=this.expectOptionalKeyword('on');return!i&&this.peek(je.TokenKind.NAME)?{kind:dt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:dt.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}; + },t.parseFragmentDefinition=function(){ + var n,i=this._lexer.token;return this.expectKeyword('fragment'),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:dt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword('on'),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:dt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword('on'),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}; + },t.parseFragmentName=function(){ + if(this._lexer.token.value==='on')throw this.unexpected();return this.parseName(); + },t.parseValueLiteral=function(n){ + var i=this._lexer.token;switch(i.kind){ + case je.TokenKind.BRACKET_L:return this.parseList(n);case je.TokenKind.BRACE_L:return this.parseObject(n);case je.TokenKind.INT:return this._lexer.advance(),{kind:dt.Kind.INT,value:i.value,loc:this.loc(i)};case je.TokenKind.FLOAT:return this._lexer.advance(),{kind:dt.Kind.FLOAT,value:i.value,loc:this.loc(i)};case je.TokenKind.STRING:case je.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case je.TokenKind.NAME:switch(this._lexer.advance(),i.value){ + case'true':return{kind:dt.Kind.BOOLEAN,value:!0,loc:this.loc(i)};case'false':return{kind:dt.Kind.BOOLEAN,value:!1,loc:this.loc(i)};case'null':return{kind:dt.Kind.NULL,loc:this.loc(i)};default:return{kind:dt.Kind.ENUM,value:i.value,loc:this.loc(i)}; + }case je.TokenKind.DOLLAR:if(!n)return this.parseVariable();break; + }throw this.unexpected(); + },t.parseStringLiteral=function(){ + var n=this._lexer.token;return this._lexer.advance(),{kind:dt.Kind.STRING,value:n.value,block:n.kind===je.TokenKind.BLOCK_STRING,loc:this.loc(n)}; + },t.parseList=function(n){ + var i=this,o=this._lexer.token,s=function(){ + return i.parseValueLiteral(n); + };return{kind:dt.Kind.LIST,values:this.any(je.TokenKind.BRACKET_L,s,je.TokenKind.BRACKET_R),loc:this.loc(o)}; + },t.parseObject=function(n){ + var i=this,o=this._lexer.token,s=function(){ + return i.parseObjectField(n); + };return{kind:dt.Kind.OBJECT,fields:this.any(je.TokenKind.BRACE_L,s,je.TokenKind.BRACE_R),loc:this.loc(o)}; + },t.parseObjectField=function(n){ + var i=this._lexer.token,o=this.parseName();return this.expectToken(je.TokenKind.COLON),{kind:dt.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(i)}; + },t.parseDirectives=function(n){ + for(var i=[];this.peek(je.TokenKind.AT);)i.push(this.parseDirective(n));return i; + },t.parseDirective=function(n){ + var i=this._lexer.token;return this.expectToken(je.TokenKind.AT),{kind:dt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}; + },t.parseTypeReference=function(){ + var n=this._lexer.token,i;return this.expectOptionalToken(je.TokenKind.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(je.TokenKind.BRACKET_R),i={kind:dt.Kind.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(je.TokenKind.BANG)?{kind:dt.Kind.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i; + },t.parseNamedType=function(){ + var n=this._lexer.token;return{kind:dt.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}; + },t.parseTypeSystemDefinition=function(){ + var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===je.TokenKind.NAME)switch(n.value){ + case'schema':return this.parseSchemaDefinition();case'scalar':return this.parseScalarTypeDefinition();case'type':return this.parseObjectTypeDefinition();case'interface':return this.parseInterfaceTypeDefinition();case'union':return this.parseUnionTypeDefinition();case'enum':return this.parseEnumTypeDefinition();case'input':return this.parseInputObjectTypeDefinition();case'directive':return this.parseDirectiveDefinition(); + }throw this.unexpected(n); + },t.peekDescription=function(){ + return this.peek(je.TokenKind.STRING)||this.peek(je.TokenKind.BLOCK_STRING); + },t.parseDescription=function(){ + if(this.peekDescription())return this.parseStringLiteral(); + },t.parseSchemaDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('schema');var o=this.parseDirectives(!0),s=this.many(je.TokenKind.BRACE_L,this.parseOperationTypeDefinition,je.TokenKind.BRACE_R);return{kind:dt.Kind.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:s,loc:this.loc(n)}; + },t.parseOperationTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseOperationType();this.expectToken(je.TokenKind.COLON);var o=this.parseNamedType();return{kind:dt.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(n)}; + },t.parseScalarTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('scalar');var o=this.parseName(),s=this.parseDirectives(!0);return{kind:dt.Kind.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}; + },t.parseObjectTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('type');var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:dt.Kind.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:c,loc:this.loc(n)}; + },t.parseImplementsInterfaces=function(){ + var n;if(!this.expectOptionalKeyword('implements'))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){ + var i=[];this.expectOptionalToken(je.TokenKind.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(je.TokenKind.AMP)||this.peek(je.TokenKind.NAME));return i; + }return this.delimitedMany(je.TokenKind.AMP,this.parseNamedType); + },t.parseFieldsDefinition=function(){ + var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(je.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===je.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(je.TokenKind.BRACE_L,this.parseFieldDefinition,je.TokenKind.BRACE_R); + },t.parseFieldDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(je.TokenKind.COLON);var l=this.parseTypeReference(),c=this.parseDirectives(!0);return{kind:dt.Kind.FIELD_DEFINITION,description:i,name:o,arguments:s,type:l,directives:c,loc:this.loc(n)}; + },t.parseArgumentDefs=function(){ + return this.optionalMany(je.TokenKind.PAREN_L,this.parseInputValueDef,je.TokenKind.PAREN_R); + },t.parseInputValueDef=function(){ + var n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(je.TokenKind.COLON);var s=this.parseTypeReference(),l;this.expectOptionalToken(je.TokenKind.EQUALS)&&(l=this.parseValueLiteral(!0));var c=this.parseDirectives(!0);return{kind:dt.Kind.INPUT_VALUE_DEFINITION,description:i,name:o,type:s,defaultValue:l,directives:c,loc:this.loc(n)}; + },t.parseInterfaceTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('interface');var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:dt.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:c,loc:this.loc(n)}; + },t.parseUnionTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('union');var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseUnionMemberTypes();return{kind:dt.Kind.UNION_TYPE_DEFINITION,description:i,name:o,directives:s,types:l,loc:this.loc(n)}; + },t.parseUnionMemberTypes=function(){ + return this.expectOptionalToken(je.TokenKind.EQUALS)?this.delimitedMany(je.TokenKind.PIPE,this.parseNamedType):[]; + },t.parseEnumTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('enum');var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();return{kind:dt.Kind.ENUM_TYPE_DEFINITION,description:i,name:o,directives:s,values:l,loc:this.loc(n)}; + },t.parseEnumValuesDefinition=function(){ + return this.optionalMany(je.TokenKind.BRACE_L,this.parseEnumValueDefinition,je.TokenKind.BRACE_R); + },t.parseEnumValueDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:dt.Kind.ENUM_VALUE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}; + },t.parseInputObjectTypeDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('input');var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();return{kind:dt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:s,fields:l,loc:this.loc(n)}; + },t.parseInputFieldsDefinition=function(){ + return this.optionalMany(je.TokenKind.BRACE_L,this.parseInputValueDef,je.TokenKind.BRACE_R); + },t.parseTypeSystemExtension=function(){ + var n=this._lexer.lookahead();if(n.kind===je.TokenKind.NAME)switch(n.value){ + case'schema':return this.parseSchemaExtension();case'scalar':return this.parseScalarTypeExtension();case'type':return this.parseObjectTypeExtension();case'interface':return this.parseInterfaceTypeExtension();case'union':return this.parseUnionTypeExtension();case'enum':return this.parseEnumTypeExtension();case'input':return this.parseInputObjectTypeExtension(); + }throw this.unexpected(n); + },t.parseSchemaExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('schema');var i=this.parseDirectives(!0),o=this.optionalMany(je.TokenKind.BRACE_L,this.parseOperationTypeDefinition,je.TokenKind.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:dt.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(n)}; + },t.parseScalarTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('scalar');var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:dt.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(n)}; + },t.parseObjectTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('type');var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:dt.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}; + },t.parseInterfaceTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('interface');var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:dt.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}; + },t.parseUnionTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('union');var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.UNION_TYPE_EXTENSION,name:i,directives:o,types:s,loc:this.loc(n)}; + },t.parseEnumTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('enum');var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.ENUM_TYPE_EXTENSION,name:i,directives:o,values:s,loc:this.loc(n)}; + },t.parseInputObjectTypeExtension=function(){ + var n=this._lexer.token;this.expectKeyword('extend'),this.expectKeyword('input');var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:dt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:s,loc:this.loc(n)}; + },t.parseDirectiveDefinition=function(){ + var n=this._lexer.token,i=this.parseDescription();this.expectKeyword('directive'),this.expectToken(je.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),l=this.expectOptionalKeyword('repeatable');this.expectKeyword('on');var c=this.parseDirectiveLocations();return{kind:dt.Kind.DIRECTIVE_DEFINITION,description:i,name:o,arguments:s,repeatable:l,locations:c,loc:this.loc(n)}; + },t.parseDirectiveLocations=function(){ + return this.delimitedMany(je.TokenKind.PIPE,this.parseDirectiveLocation); + },t.parseDirectiveLocation=function(){ + var n=this._lexer.token,i=this.parseName();if(Mte.DirectiveLocation[i.value]!==void 0)return i;throw this.unexpected(n); + },t.loc=function(n){ + var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new Rte.Location(n,this._lexer.lastToken,this._lexer.source); + },t.peek=function(n){ + return this._lexer.token.kind===n; + },t.expectToken=function(n){ + var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw(0,kS.syntaxError)(this._lexer.source,i.start,'Expected '.concat(b5(n),', found ').concat(OS(i),'.')); + },t.expectOptionalToken=function(n){ + var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i; + },t.expectKeyword=function(n){ + var i=this._lexer.token;if(i.kind===je.TokenKind.NAME&&i.value===n)this._lexer.advance();else throw(0,kS.syntaxError)(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(OS(i),'.')); + },t.expectOptionalKeyword=function(n){ + var i=this._lexer.token;return i.kind===je.TokenKind.NAME&&i.value===n?(this._lexer.advance(),!0):!1; + },t.unexpected=function(n){ + var i=n??this._lexer.token;return(0,kS.syntaxError)(this._lexer.source,i.start,'Unexpected '.concat(OS(i),'.')); + },t.any=function(n,i,o){ + this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(i.call(this));return s; + },t.optionalMany=function(n,i,o){ + if(this.expectOptionalToken(n)){ + var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s; + }return[]; + },t.many=function(n,i,o){ + this.expectToken(n);var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s; + },t.delimitedMany=function(n,i){ + this.expectOptionalToken(n);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(n));return o; + },e; + }();Nc.Parser=Ab;function OS(e){ + var t=e.value;return b5(e.kind)+(t!=null?' "'.concat(t,'"'):''); + }function b5(e){ + return(0,y5.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e; + } +});var Jl=X(_s=>{ + 'use strict';Object.defineProperty(_s,'__esModule',{value:!0});_s.visit=Ute;_s.visitInParallel=Bte;_s.getVisitFn=xb;_s.BREAK=_s.QueryDocumentKeys=void 0;var jte=Vte(jt()),A5=Md();function Vte(e){ + return e&&e.__esModule?e:{default:e}; + }var x5={Name:[],Document:['definitions'],OperationDefinition:['name','variableDefinitions','directives','selectionSet'],VariableDefinition:['variable','type','defaultValue','directives'],Variable:['name'],SelectionSet:['selections'],Field:['alias','name','arguments','directives','selectionSet'],Argument:['name','value'],FragmentSpread:['name','directives'],InlineFragment:['typeCondition','directives','selectionSet'],FragmentDefinition:['name','variableDefinitions','typeCondition','directives','selectionSet'],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:['values'],ObjectValue:['fields'],ObjectField:['name','value'],Directive:['name','arguments'],NamedType:['name'],ListType:['type'],NonNullType:['type'],SchemaDefinition:['description','directives','operationTypes'],OperationTypeDefinition:['type'],ScalarTypeDefinition:['description','name','directives'],ObjectTypeDefinition:['description','name','interfaces','directives','fields'],FieldDefinition:['description','name','arguments','type','directives'],InputValueDefinition:['description','name','type','defaultValue','directives'],InterfaceTypeDefinition:['description','name','interfaces','directives','fields'],UnionTypeDefinition:['description','name','directives','types'],EnumTypeDefinition:['description','name','directives','values'],EnumValueDefinition:['description','name','directives'],InputObjectTypeDefinition:['description','name','directives','fields'],DirectiveDefinition:['description','name','arguments','locations'],SchemaExtension:['directives','operationTypes'],ScalarTypeExtension:['name','directives'],ObjectTypeExtension:['name','interfaces','directives','fields'],InterfaceTypeExtension:['name','interfaces','directives','fields'],UnionTypeExtension:['name','directives','types'],EnumTypeExtension:['name','directives','values'],InputObjectTypeExtension:['name','directives','fields']};_s.QueryDocumentKeys=x5;var Vd=Object.freeze({});_s.BREAK=Vd;function Ute(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x5,n=void 0,i=Array.isArray(e),o=[e],s=-1,l=[],c=void 0,f=void 0,m=void 0,v=[],g=[],y=e;do{ + s++;var w=s===o.length,T=w&&l.length!==0;if(w){ + if(f=g.length===0?void 0:v[v.length-1],c=m,m=g.pop(),T){ + if(i)c=c.slice();else{ + for(var S={},A=0,b=Object.keys(c);A{ + 'use strict';Object.defineProperty(wb,'__esModule',{value:!0});wb.default=void 0;var Gte=Array.prototype.find?function(e,t){ + return Array.prototype.find.call(e,t); + }:function(e,t){ + for(var r=0;r{ + 'use strict';Object.defineProperty(Eb,'__esModule',{value:!0});Eb.default=void 0;var Hte=Object.values||function(e){ + return Object.keys(e).map(function(t){ + return e[t]; + }); + },Qte=Hte;Eb.default=Qte; +});var Xh=X(NS=>{ + 'use strict';Object.defineProperty(NS,'__esModule',{value:!0});NS.locatedError=Xte;var Wte=Kte(jt()),Yte=ft();function Kte(e){ + return e&&e.__esModule?e:{default:e}; + }function Xte(e,t,r){ + var n,i=e instanceof Error?e:new Error('Unexpected error value: '+(0,Wte.default)(e));return Array.isArray(i.path)?i:new Yte.GraphQLError(i.message,(n=i.nodes)!==null&&n!==void 0?n:t,i.source,i.positions,r,i); + } +});var DS=X(Tb=>{ + 'use strict';Object.defineProperty(Tb,'__esModule',{value:!0});Tb.assertValidName=$te;Tb.isValidNameError=E5;var Zte=Jte(Io()),w5=ft();function Jte(e){ + return e&&e.__esModule?e:{default:e}; + }var _te=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function $te(e){ + var t=E5(e);if(t)throw t;return e; + }function E5(e){ + if(typeof e=='string'||(0,Zte.default)(0,'Expected name to be a string.'),e.length>1&&e[0]==='_'&&e[1]==='_')return new w5.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!_te.test(e))return new w5.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.')); + } +});var Bd=X(Cb=>{ + 'use strict';Object.defineProperty(Cb,'__esModule',{value:!0});Cb.default=void 0;var ere=Object.entries||function(e){ + return Object.keys(e).map(function(t){ + return[t,e[t]]; + }); + },tre=ere;Cb.default=tre; +});var _l=X(LS=>{ + 'use strict';Object.defineProperty(LS,'__esModule',{value:!0});LS.default=rre;function rre(e,t){ + return e.reduce(function(r,n){ + return r[t(n)]=n,r; + },Object.create(null)); + } +});var RS=X(PS=>{ + 'use strict';Object.defineProperty(PS,'__esModule',{value:!0});PS.default=ore;var nre=ire(Bd());function ire(e){ + return e&&e.__esModule?e:{default:e}; + }function ore(e,t){ + for(var r=Object.create(null),n=0,i=(0,nre.default)(e);n{ + 'use strict';Object.defineProperty(MS,'__esModule',{value:!0});MS.default=lre;var are=sre(Bd());function sre(e){ + return e&&e.__esModule?e:{default:e}; + }function lre(e){ + if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,are.default)(e);r{ + 'use strict';Object.defineProperty(IS,'__esModule',{value:!0});IS.default=ure;function ure(e,t,r){ + return e.reduce(function(n,i){ + return n[t(i)]=r(i),n; + },Object.create(null)); + } +});var $l=X(FS=>{ + 'use strict';Object.defineProperty(FS,'__esModule',{value:!0});FS.default=fre;var cre=5;function fre(e,t){ + var r=typeof e=='string'?[e,t]:[void 0,e],n=r[0],i=r[1],o=' Did you mean ';n&&(o+=n+' ');var s=i.map(function(f){ + return'"'.concat(f,'"'); + });switch(s.length){ + case 0:return'';case 1:return o+s[0]+'?';case 2:return o+s[0]+' or '+s[1]+'?'; + }var l=s.slice(0,cre),c=l.pop();return o+l.join(', ')+', or '+c+'?'; + } +});var T5=X(qS=>{ + 'use strict';Object.defineProperty(qS,'__esModule',{value:!0});qS.default=dre;function dre(e){ + return e; + } +});var Jh=X(VS=>{ + 'use strict';Object.defineProperty(VS,'__esModule',{value:!0});VS.default=pre;function pre(e,t){ + for(var r=0,n=0;r0);var l=0;do++n,l=l*10+o-jS,o=t.charCodeAt(n);while(kb(o)&&l>0);if(sl)return 1; + }else{ + if(io)return 1;++r,++n; + } + }return e.length-t.length; + }var jS=48,mre=57;function kb(e){ + return!isNaN(e)&&jS<=e&&e<=mre; + } +});var eu=X(US=>{ + 'use strict';Object.defineProperty(US,'__esModule',{value:!0});US.default=gre;var hre=vre(Jh());function vre(e){ + return e&&e.__esModule?e:{default:e}; + }function gre(e,t){ + for(var r=Object.create(null),n=new yre(e),i=Math.floor(e.length*.4)+1,o=0;oi)){ + for(var v=this._rows,g=0;g<=m;g++)v[0][g]=g;for(var y=1;y<=f;y++){ + for(var w=v[(y-1)%3],T=v[y%3],S=T[0]=y,A=1;A<=m;A++){ + var b=s[y-1]===l[A-1]?0:1,C=Math.min(w[A]+1,T[A-1]+1,w[A-1]+b);if(y>1&&A>1&&s[y-1]===l[A-2]&&s[y-2]===l[A-1]){ + var x=v[(y-2)%3][A-2];C=Math.min(C,x+1); + }Ci)return; + }var k=v[f%3][m];return k<=i?k:void 0; + } + },e; + }();function C5(e){ + for(var t=e.length,r=new Array(t),n=0;n{ + 'use strict';Object.defineProperty(BS,'__esModule',{value:!0});BS.print=xre;var bre=Jl(),Are=qd();function xre(e){ + return(0,bre.visit)(e,{leave:Ere}); + }var wre=80,Ere={Name:function(t){ + return t.value; + },Variable:function(t){ + return'$'+t.name; + },Document:function(t){ + return Ke(t.definitions,` `)+` -`},OperationDefinition:function(t){var r=t.operation,n=t.name,i=Lr("(",Ke(t.variableDefinitions,", "),")"),o=Ke(t.directives," "),s=t.selectionSet;return!n&&!o&&!i&&r==="query"?s:Ke([r,Ke([n,i]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+Lr(" = ",i)+Lr(" ",Ke(o," "))},SelectionSet:function(t){var r=t.selections;return ha(r)},Field:function(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,l=Lr("",r,": ")+n,c=l+Lr("(",Ke(i,", "),")");return c.length>wre&&(c=l+Lr(`( +`; + },OperationDefinition:function(t){ + var r=t.operation,n=t.name,i=Lr('(',Ke(t.variableDefinitions,', '),')'),o=Ke(t.directives,' '),s=t.selectionSet;return!n&&!o&&!i&&r==='query'?s:Ke([r,Ke([n,i]),o,s],' '); + },VariableDefinition:function(t){ + var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+': '+n+Lr(' = ',i)+Lr(' ',Ke(o,' ')); + },SelectionSet:function(t){ + var r=t.selections;return ha(r); + },Field:function(t){ + var r=t.alias,n=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,l=Lr('',r,': ')+n,c=l+Lr('(',Ke(i,', '),')');return c.length>wre&&(c=l+Lr(`( `,Ob(Ke(i,` `)),` -)`)),Ke([c,Ke(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+Lr(" ",Ke(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return Ke(["...",Lr("on ",r),Ke(n," "),i]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(Lr("(",Ke(i,", "),")")," ")+"on ".concat(n," ").concat(Lr("",Ke(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,i=t.block;return i?(0,Are.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+Ke(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+Ke(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+Lr("(",Ke(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:ma(function(e){var t=e.directives,r=e.operationTypes;return Ke(["schema",Ke(t," "),ha(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:ma(function(e){var t=e.name,r=e.directives;return Ke(["scalar",t,Ke(r," ")]," ")}),ObjectTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ke(["type",t,Lr("implements ",Ke(r," & ")),Ke(n," "),ha(i)]," ")}),FieldDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(S5(r)?Lr(`( +)`)),Ke([c,Ke(o,' '),s],' '); + },Argument:function(t){ + var r=t.name,n=t.value;return r+': '+n; + },FragmentSpread:function(t){ + var r=t.name,n=t.directives;return'...'+r+Lr(' ',Ke(n,' ')); + },InlineFragment:function(t){ + var r=t.typeCondition,n=t.directives,i=t.selectionSet;return Ke(['...',Lr('on ',r),Ke(n,' '),i],' '); + },FragmentDefinition:function(t){ + var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return'fragment '.concat(r).concat(Lr('(',Ke(i,', '),')'),' ')+'on '.concat(n,' ').concat(Lr('',Ke(o,' '),' '))+s; + },IntValue:function(t){ + var r=t.value;return r; + },FloatValue:function(t){ + var r=t.value;return r; + },StringValue:function(t,r){ + var n=t.value,i=t.block;return i?(0,Are.printBlockString)(n,r==='description'?'':' '):JSON.stringify(n); + },BooleanValue:function(t){ + var r=t.value;return r?'true':'false'; + },NullValue:function(){ + return'null'; + },EnumValue:function(t){ + var r=t.value;return r; + },ListValue:function(t){ + var r=t.values;return'['+Ke(r,', ')+']'; + },ObjectValue:function(t){ + var r=t.fields;return'{'+Ke(r,', ')+'}'; + },ObjectField:function(t){ + var r=t.name,n=t.value;return r+': '+n; + },Directive:function(t){ + var r=t.name,n=t.arguments;return'@'+r+Lr('(',Ke(n,', '),')'); + },NamedType:function(t){ + var r=t.name;return r; + },ListType:function(t){ + var r=t.type;return'['+r+']'; + },NonNullType:function(t){ + var r=t.type;return r+'!'; + },SchemaDefinition:ma(function(e){ + var t=e.directives,r=e.operationTypes;return Ke(['schema',Ke(t,' '),ha(r)],' '); + }),OperationTypeDefinition:function(t){ + var r=t.operation,n=t.type;return r+': '+n; + },ScalarTypeDefinition:ma(function(e){ + var t=e.name,r=e.directives;return Ke(['scalar',t,Ke(r,' ')],' '); + }),ObjectTypeDefinition:ma(function(e){ + var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ke(['type',t,Lr('implements ',Ke(r,' & ')),Ke(n,' '),ha(i)],' '); + }),FieldDefinition:ma(function(e){ + var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(S5(r)?Lr(`( `,Ob(Ke(r,` `)),` -)`):Lr("(",Ke(r,", "),")"))+": "+n+Lr(" ",Ke(i," "))}),InputValueDefinition:ma(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return Ke([t+": "+r,Lr("= ",n),Ke(i," ")]," ")}),InterfaceTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ke(["interface",t,Lr("implements ",Ke(r," & ")),Ke(n," "),ha(i)]," ")}),UnionTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.types;return Ke(["union",t,Ke(r," "),n&&n.length!==0?"= "+Ke(n," | "):""]," ")}),EnumTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.values;return Ke(["enum",t,Ke(r," "),ha(n)]," ")}),EnumValueDefinition:ma(function(e){var t=e.name,r=e.directives;return Ke([t,Ke(r," ")]," ")}),InputObjectTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.fields;return Ke(["input",t,Ke(r," "),ha(n)]," ")}),DirectiveDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(S5(r)?Lr(`( +)`):Lr('(',Ke(r,', '),')'))+': '+n+Lr(' ',Ke(i,' ')); + }),InputValueDefinition:ma(function(e){ + var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return Ke([t+': '+r,Lr('= ',n),Ke(i,' ')],' '); + }),InterfaceTypeDefinition:ma(function(e){ + var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ke(['interface',t,Lr('implements ',Ke(r,' & ')),Ke(n,' '),ha(i)],' '); + }),UnionTypeDefinition:ma(function(e){ + var t=e.name,r=e.directives,n=e.types;return Ke(['union',t,Ke(r,' '),n&&n.length!==0?'= '+Ke(n,' | '):''],' '); + }),EnumTypeDefinition:ma(function(e){ + var t=e.name,r=e.directives,n=e.values;return Ke(['enum',t,Ke(r,' '),ha(n)],' '); + }),EnumValueDefinition:ma(function(e){ + var t=e.name,r=e.directives;return Ke([t,Ke(r,' ')],' '); + }),InputObjectTypeDefinition:ma(function(e){ + var t=e.name,r=e.directives,n=e.fields;return Ke(['input',t,Ke(r,' '),ha(n)],' '); + }),DirectiveDefinition:ma(function(e){ + var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return'directive @'+t+(S5(r)?Lr(`( `,Ob(Ke(r,` `)),` -)`):Lr("(",Ke(r,", "),")"))+(n?" repeatable":"")+" on "+Ke(i," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return Ke(["extend schema",Ke(r," "),ha(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return Ke(["extend scalar",r,Ke(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return Ke(["extend type",r,Lr("implements ",Ke(n," & ")),Ke(i," "),ha(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return Ke(["extend interface",r,Lr("implements ",Ke(n," & ")),Ke(i," "),ha(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,i=t.types;return Ke(["extend union",r,Ke(n," "),i&&i.length!==0?"= "+Ke(i," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,i=t.values;return Ke(["extend enum",r,Ke(n," "),ha(i)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return Ke(["extend input",r,Ke(n," "),ha(i)]," ")}};function ma(e){return function(t){return Ke([t.description,e(t)],` -`)}}function Ke(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e?.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function ha(e){return Lr(`{ +)`):Lr('(',Ke(r,', '),')'))+(n?' repeatable':'')+' on '+Ke(i,' | '); + }),SchemaExtension:function(t){ + var r=t.directives,n=t.operationTypes;return Ke(['extend schema',Ke(r,' '),ha(n)],' '); + },ScalarTypeExtension:function(t){ + var r=t.name,n=t.directives;return Ke(['extend scalar',r,Ke(n,' ')],' '); + },ObjectTypeExtension:function(t){ + var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return Ke(['extend type',r,Lr('implements ',Ke(n,' & ')),Ke(i,' '),ha(o)],' '); + },InterfaceTypeExtension:function(t){ + var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return Ke(['extend interface',r,Lr('implements ',Ke(n,' & ')),Ke(i,' '),ha(o)],' '); + },UnionTypeExtension:function(t){ + var r=t.name,n=t.directives,i=t.types;return Ke(['extend union',r,Ke(n,' '),i&&i.length!==0?'= '+Ke(i,' | '):''],' '); + },EnumTypeExtension:function(t){ + var r=t.name,n=t.directives,i=t.values;return Ke(['extend enum',r,Ke(n,' '),ha(i)],' '); + },InputObjectTypeExtension:function(t){ + var r=t.name,n=t.directives,i=t.fields;return Ke(['extend input',r,Ke(n,' '),ha(i)],' '); + }};function ma(e){ + return function(t){ + return Ke([t.description,e(t)],` +`); + }; + }function Ke(e){ + var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:'';return(t=e?.filter(function(n){ + return n; + }).join(r))!==null&&t!==void 0?t:''; + }function ha(e){ + return Lr(`{ `,Ob(Ke(e,` `)),` -}`)}function Lr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function Ob(e){return Lr(" ",e.replace(/\n/g,` - `))}function Tre(e){return e.indexOf(` -`)!==-1}function S5(e){return e!=null&&e.some(Tre)}});var QS=X(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.valueFromASTUntyped=GS;var Cre=zS(jt()),Sre=zS(Gn()),kre=zS(Zh()),$s=tr();function zS(e){return e&&e.__esModule?e:{default:e}}function GS(e,t){switch(e.kind){case $s.Kind.NULL:return null;case $s.Kind.INT:return parseInt(e.value,10);case $s.Kind.FLOAT:return parseFloat(e.value);case $s.Kind.STRING:case $s.Kind.ENUM:case $s.Kind.BOOLEAN:return e.value;case $s.Kind.LIST:return e.values.map(function(r){return GS(r,t)});case $s.Kind.OBJECT:return(0,kre.default)(e.fields,function(r){return r.name.value},function(r){return GS(r.value,t)});case $s.Kind.VARIABLE:return t?.[e.name.value]}(0,Sre.default)(0,"Unexpected value node: "+(0,Cre.default)(e))}});var Rt=X(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isType=WS;ot.assertType=P5;ot.isScalarType=Dc;ot.assertScalarType=Mre;ot.isObjectType=Hd;ot.assertObjectType=Ire;ot.isInterfaceType=Lc;ot.assertInterfaceType=Fre;ot.isUnionType=Pc;ot.assertUnionType=qre;ot.isEnumType=Rc;ot.assertEnumType=jre;ot.isInputObjectType=$h;ot.assertInputObjectType=Vre;ot.isListType=Lb;ot.assertListType=Ure;ot.isNonNullType=au;ot.assertNonNullType=Bre;ot.isInputType=YS;ot.assertInputType=Gre;ot.isOutputType=KS;ot.assertOutputType=zre;ot.isLeafType=R5;ot.assertLeafType=Hre;ot.isCompositeType=M5;ot.assertCompositeType=Qre;ot.isAbstractType=I5;ot.assertAbstractType=Wre;ot.GraphQLList=tu;ot.GraphQLNonNull=ru;ot.isWrappingType=ev;ot.assertWrappingType=Yre;ot.isNullableType=F5;ot.assertNullableType=q5;ot.getNullableType=Kre;ot.isNamedType=j5;ot.assertNamedType=Xre;ot.getNamedType=Zre;ot.argsToArgsConfig=G5;ot.isRequiredArgument=Jre;ot.isRequiredInputField=tne;ot.GraphQLInputObjectType=ot.GraphQLEnumType=ot.GraphQLUnionType=ot.GraphQLInterfaceType=ot.GraphQLObjectType=ot.GraphQLScalarType=void 0;var D5=so(Bd()),nu=ts(),hr=so(jt()),Ore=so(_l()),Db=so(RS()),ns=so(Sb()),wr=so(Io()),L5=so(Zh()),iu=so(Qh()),Nre=so($l()),Dre=so(es()),k5=so(T5()),ou=so(fb()),Lre=so(eu()),_h=ft(),Pre=tr(),O5=ao(),Rre=QS();function so(e){return e&&e.__esModule?e:{default:e}}function N5(e,t){for(var r=0;r0?e:void 0}var XS=function(){function e(r){var n,i,o,s=(n=r.parseValue)!==null&&n!==void 0?n:k5.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(i=r.serialize)!==null&&i!==void 0?i:k5.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(l,c){return s((0,Rre.valueFromASTUntyped)(l,c))},this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),typeof r.name=="string"||(0,wr.default)(0,"Must provide name."),r.specifiedByUrl==null||typeof r.specifiedByUrl=="string"||(0,wr.default)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,hr.default)(r.specifiedByUrl),".")),r.serialize==null||typeof r.serialize=="function"||(0,wr.default)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,wr.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var n;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),e}();ot.GraphQLScalarType=XS;(0,ou.default)(XS);var ZS=function(){function e(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=U5.bind(void 0,r),this._interfaces=V5.bind(void 0,r),typeof r.name=="string"||(0,wr.default)(0,"Must provide name."),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,wr.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,hr.default)(r.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:B5(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),e}();ot.GraphQLObjectType=ZS;(0,ou.default)(ZS);function V5(e){var t,r=(t=Pb(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,wr.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),r}function U5(e){var t=Pb(e.fields);return Gd(t)||(0,wr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Db.default)(t,function(r,n){var i;Gd(r)||(0,wr.default)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in r)||(0,wr.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=="function"||(0,wr.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,hr.default)(r.resolve),"."));var o=(i=r.args)!==null&&i!==void 0?i:{};Gd(o)||(0,wr.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,D5.default)(o).map(function(l){var c=l[0],f=l[1];return{name:c,description:f.description,type:f.type,defaultValue:f.defaultValue,deprecationReason:f.deprecationReason,extensions:f.extensions&&(0,ns.default)(f.extensions),astNode:f.astNode}});return{name:n,description:r.description,type:r.type,args:s,resolve:r.resolve,subscribe:r.subscribe,isDeprecated:r.deprecationReason!=null,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ns.default)(r.extensions),astNode:r.astNode}})}function Gd(e){return(0,Dre.default)(e)&&!Array.isArray(e)}function B5(e){return(0,Db.default)(e,function(t){return{description:t.description,type:t.type,args:G5(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function G5(e){return(0,L5.default)(e,function(t){return t.name},function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function Jre(e){return au(e.type)&&e.defaultValue===void 0}var JS=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=U5.bind(void 0,r),this._interfaces=V5.bind(void 0,r),typeof r.name=="string"||(0,wr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,wr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,hr.default)(r.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:B5(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),e}();ot.GraphQLInterfaceType=JS;(0,ou.default)(JS);var _S=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._types=_re.bind(void 0,r),typeof r.name=="string"||(0,wr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,wr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,hr.default)(r.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},t.toConfig=function(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),e}();ot.GraphQLUnionType=_S;(0,ou.default)(_S);function _re(e){var t=Pb(e.types);return Array.isArray(t)||(0,wr.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var $S=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._values=$re(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=(0,Ore.default)(this._values,function(n){return n.name}),typeof r.name=="string"||(0,wr.default)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(n){return this._nameLookup[n]},t.serialize=function(n){var i=this._valueLookup.get(n);if(i===void 0)throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,hr.default)(n)));return i.name},t.parseValue=function(n){if(typeof n!="string"){var i=(0,hr.default)(n);throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Nb(this,i))}var o=this.getValue(n);if(o==null)throw new _h.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+Nb(this,n));return o.value},t.parseLiteral=function(n,i){if(n.kind!==Pre.Kind.ENUM){var o=(0,O5.print)(n);throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+Nb(this,o),n)}var s=this.getValue(n.value);if(s==null){var l=(0,O5.print)(n);throw new _h.GraphQLError('Value "'.concat(l,'" does not exist in "').concat(this.name,'" enum.')+Nb(this,l),n)}return s.value},t.toConfig=function(){var n,i=(0,L5.default)(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),e}();ot.GraphQLEnumType=$S;(0,ou.default)($S);function Nb(e,t){var r=e.getValues().map(function(i){return i.name}),n=(0,Lre.default)(t,r);return(0,Nre.default)("the enum value",n)}function $re(e,t){return Gd(t)||(0,wr.default)(0,"".concat(e," values must be an object with value names as keys.")),(0,D5.default)(t).map(function(r){var n=r[0],i=r[1];return Gd(i)||(0,wr.default)(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,hr.default)(i),".")),!("isDeprecated"in i)||(0,wr.default)(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:i.value!==void 0?i.value:n,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&(0,ns.default)(i.extensions),astNode:i.astNode}})}var ek=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=ene.bind(void 0,r),typeof r.name=="string"||(0,wr.default)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var n,i=(0,Db.default)(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),e}();ot.GraphQLInputObjectType=ek;(0,ou.default)(ek);function ene(e){var t=Pb(e.fields);return Gd(t)||(0,wr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Db.default)(t,function(r,n){return!("resolve"in r)||(0,wr.default)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ns.default)(r.extensions),astNode:r.astNode}})}function tne(e){return au(e.type)&&e.defaultValue===void 0}});var rv=X(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});tv.isEqualType=tk;tv.isTypeSubTypeOf=Rb;tv.doTypesOverlap=rne;var si=Rt();function tk(e,t){return e===t?!0:(0,si.isNonNullType)(e)&&(0,si.isNonNullType)(t)||(0,si.isListType)(e)&&(0,si.isListType)(t)?tk(e.ofType,t.ofType):!1}function Rb(e,t,r){return t===r?!0:(0,si.isNonNullType)(r)?(0,si.isNonNullType)(t)?Rb(e,t.ofType,r.ofType):!1:(0,si.isNonNullType)(t)?Rb(e,t.ofType,r):(0,si.isListType)(r)?(0,si.isListType)(t)?Rb(e,t.ofType,r.ofType):!1:(0,si.isListType)(t)?!1:(0,si.isAbstractType)(r)&&((0,si.isInterfaceType)(t)||(0,si.isObjectType)(t))&&e.isSubType(r,t)}function rne(e,t,r){return t===r?!0:(0,si.isAbstractType)(t)?(0,si.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){return e.isSubType(r,n)}):e.isSubType(t,r):(0,si.isAbstractType)(r)?e.isSubType(r,t):!1}});var rk=X(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=void 0;var nne=ts(),ine=Array.from||function(e,t,r){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=e[nne.SYMBOL_ITERATOR];if(typeof n=="function"){for(var i=n.call(e),o=[],s,l=0;!(s=i.next()).done;++l)if(o.push(t.call(r,s.value,l)),l>9999999)throw new TypeError("Near-infinite iteration.");return o}var c=e.length;if(typeof c=="number"&&c>=0&&c%1===0){for(var f=[],m=0;m{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});Ib.default=void 0;var ane=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},sne=ane;Ib.default=sne});var qb=X(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.default=une;var lne=ts();function Fb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fb=function(r){return typeof r}:Fb=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fb(e)}function une(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(m){return m};if(e==null||Fb(e)!=="object")return null;if(Array.isArray(e))return e.map(t);var r=e[lne.SYMBOL_ITERATOR];if(typeof r=="function"){for(var n=r.call(e),i=[],o,s=0;!(o=n.next()).done;++s)i.push(t(o.value,s));return i}var l=e.length;if(typeof l=="number"&&l>=0&&l%1===0){for(var c=[],f=0;f{"use strict";Object.defineProperty(jb,"__esModule",{value:!0});jb.default=void 0;var cne=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},fne=cne;jb.default=fne});var is=X(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.isSpecifiedScalarType=wne;Di.specifiedScalarTypes=Di.GraphQLID=Di.GraphQLBoolean=Di.GraphQLString=Di.GraphQLFloat=Di.GraphQLInt=void 0;var Vb=Bb(nk()),Ub=Bb(z5()),va=Bb(jt()),H5=Bb(es()),Mc=tr(),nv=ao(),Nn=ft(),iv=Rt();function Bb(e){return e&&e.__esModule?e:{default:e}}var ok=2147483647,ak=-2147483648;function dne(e){var t=ov(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,Ub.default)(r))throw new Nn.GraphQLError("Int cannot represent non-integer value: ".concat((0,va.default)(t)));if(r>ok||rok||eok||r{"use strict";Object.defineProperty(sk,"__esModule",{value:!0});sk.astFromValue=sv;var Ene=Wd(nk()),Tne=Wd(oo()),J5=Wd(jt()),Cne=Wd(Gn()),Sne=Wd(es()),kne=Wd(qb()),Fo=tr(),One=is(),av=Rt();function Wd(e){return e&&e.__esModule?e:{default:e}}function sv(e,t){if((0,av.isNonNullType)(t)){var r=sv(e,t.ofType);return r?.kind===Fo.Kind.NULL?null:r}if(e===null)return{kind:Fo.Kind.NULL};if(e===void 0)return null;if((0,av.isListType)(t)){var n=t.ofType,i=(0,kne.default)(e);if(i!=null){for(var o=[],s=0;s{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.isIntrospectionType=Fne;Xt.introspectionTypes=Xt.TypeNameMetaFieldDef=Xt.TypeMetaFieldDef=Xt.SchemaMetaFieldDef=Xt.__TypeKind=Xt.TypeKind=Xt.__EnumValue=Xt.__InputValue=Xt.__Field=Xt.__Type=Xt.__DirectiveLocation=Xt.__Directive=Xt.__Schema=void 0;var lk=uk(oo()),Nne=uk(jt()),Dne=uk(Gn()),Lne=ao(),yn=Fd(),Pne=lv(),rr=is(),Xe=Rt();function uk(e){return e&&e.__esModule?e:{default:e}}var ck=new Xe.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:rr.GraphQLString,resolve:function(r){return r.description}},types:{description:"A list of all types supported by this server.",type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(qo))),resolve:function(r){return(0,lk.default)(r.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Xe.GraphQLNonNull(qo),resolve:function(r){return r.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:qo,resolve:function(r){return r.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:qo,resolve:function(r){return r.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(fk))),resolve:function(r){return r.getDirectives()}}}}});Xt.__Schema=ck;var fk=new Xe.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`); + }function Lr(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:'';return t!=null&&t!==''?e+t+r:''; + }function Ob(e){ + return Lr(' ',e.replace(/\n/g,` + `)); + }function Tre(e){ + return e.indexOf(` +`)!==-1; + }function S5(e){ + return e!=null&&e.some(Tre); + } +});var QS=X(HS=>{ + 'use strict';Object.defineProperty(HS,'__esModule',{value:!0});HS.valueFromASTUntyped=GS;var Cre=zS(jt()),Sre=zS(Gn()),kre=zS(Zh()),$s=tr();function zS(e){ + return e&&e.__esModule?e:{default:e}; + }function GS(e,t){ + switch(e.kind){ + case $s.Kind.NULL:return null;case $s.Kind.INT:return parseInt(e.value,10);case $s.Kind.FLOAT:return parseFloat(e.value);case $s.Kind.STRING:case $s.Kind.ENUM:case $s.Kind.BOOLEAN:return e.value;case $s.Kind.LIST:return e.values.map(function(r){ + return GS(r,t); + });case $s.Kind.OBJECT:return(0,kre.default)(e.fields,function(r){ + return r.name.value; + },function(r){ + return GS(r.value,t); + });case $s.Kind.VARIABLE:return t?.[e.name.value]; + }(0,Sre.default)(0,'Unexpected value node: '+(0,Cre.default)(e)); + } +});var Rt=X(ot=>{ + 'use strict';Object.defineProperty(ot,'__esModule',{value:!0});ot.isType=WS;ot.assertType=P5;ot.isScalarType=Dc;ot.assertScalarType=Mre;ot.isObjectType=Hd;ot.assertObjectType=Ire;ot.isInterfaceType=Lc;ot.assertInterfaceType=Fre;ot.isUnionType=Pc;ot.assertUnionType=qre;ot.isEnumType=Rc;ot.assertEnumType=jre;ot.isInputObjectType=$h;ot.assertInputObjectType=Vre;ot.isListType=Lb;ot.assertListType=Ure;ot.isNonNullType=au;ot.assertNonNullType=Bre;ot.isInputType=YS;ot.assertInputType=Gre;ot.isOutputType=KS;ot.assertOutputType=zre;ot.isLeafType=R5;ot.assertLeafType=Hre;ot.isCompositeType=M5;ot.assertCompositeType=Qre;ot.isAbstractType=I5;ot.assertAbstractType=Wre;ot.GraphQLList=tu;ot.GraphQLNonNull=ru;ot.isWrappingType=ev;ot.assertWrappingType=Yre;ot.isNullableType=F5;ot.assertNullableType=q5;ot.getNullableType=Kre;ot.isNamedType=j5;ot.assertNamedType=Xre;ot.getNamedType=Zre;ot.argsToArgsConfig=G5;ot.isRequiredArgument=Jre;ot.isRequiredInputField=tne;ot.GraphQLInputObjectType=ot.GraphQLEnumType=ot.GraphQLUnionType=ot.GraphQLInterfaceType=ot.GraphQLObjectType=ot.GraphQLScalarType=void 0;var D5=so(Bd()),nu=ts(),hr=so(jt()),Ore=so(_l()),Db=so(RS()),ns=so(Sb()),wr=so(Io()),L5=so(Zh()),iu=so(Qh()),Nre=so($l()),Dre=so(es()),k5=so(T5()),ou=so(fb()),Lre=so(eu()),_h=ft(),Pre=tr(),O5=ao(),Rre=QS();function so(e){ + return e&&e.__esModule?e:{default:e}; + }function N5(e,t){ + for(var r=0;r0?e:void 0; + }var XS=function(){ + function e(r){ + var n,i,o,s=(n=r.parseValue)!==null&&n!==void 0?n:k5.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(i=r.serialize)!==null&&i!==void 0?i:k5.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(l,c){ + return s((0,Rre.valueFromASTUntyped)(l,c)); + },this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'),r.specifiedByUrl==null||typeof r.specifiedByUrl=='string'||(0,wr.default)(0,''.concat(this.name,' must provide "specifiedByUrl" as a string, ')+'but got: '.concat((0,hr.default)(r.specifiedByUrl),'.')),r.serialize==null||typeof r.serialize=='function'||(0,wr.default)(0,''.concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),r.parseLiteral&&(typeof r.parseValue=='function'&&typeof r.parseLiteral=='function'||(0,wr.default)(0,''.concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.'))); + }var t=e.prototype;return t.toConfig=function(){ + var n;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLScalarType'; + }}]),e; + }();ot.GraphQLScalarType=XS;(0,ou.default)(XS);var ZS=function(){ + function e(r){ + this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=U5.bind(void 0,r),this._interfaces=V5.bind(void 0,r),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'),r.isTypeOf==null||typeof r.isTypeOf=='function'||(0,wr.default)(0,''.concat(this.name,' must provide "isTypeOf" as a function, ')+'but got: '.concat((0,hr.default)(r.isTypeOf),'.')); + }var t=e.prototype;return t.getFields=function(){ + return typeof this._fields=='function'&&(this._fields=this._fields()),this._fields; + },t.getInterfaces=function(){ + return typeof this._interfaces=='function'&&(this._interfaces=this._interfaces()),this._interfaces; + },t.toConfig=function(){ + return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:B5(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLObjectType'; + }}]),e; + }();ot.GraphQLObjectType=ZS;(0,ou.default)(ZS);function V5(e){ + var t,r=(t=Pb(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,wr.default)(0,''.concat(e.name,' interfaces must be an Array or a function which returns an Array.')),r; + }function U5(e){ + var t=Pb(e.fields);return Gd(t)||(0,wr.default)(0,''.concat(e.name,' fields must be an object with field names as keys or a function which returns such an object.')),(0,Db.default)(t,function(r,n){ + var i;Gd(r)||(0,wr.default)(0,''.concat(e.name,'.').concat(n,' field config must be an object.')),!('isDeprecated'in r)||(0,wr.default)(0,''.concat(e.name,'.').concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=='function'||(0,wr.default)(0,''.concat(e.name,'.').concat(n,' field resolver must be a function if ')+'provided, but got: '.concat((0,hr.default)(r.resolve),'.'));var o=(i=r.args)!==null&&i!==void 0?i:{};Gd(o)||(0,wr.default)(0,''.concat(e.name,'.').concat(n,' args must be an object with argument names as keys.'));var s=(0,D5.default)(o).map(function(l){ + var c=l[0],f=l[1];return{name:c,description:f.description,type:f.type,defaultValue:f.defaultValue,deprecationReason:f.deprecationReason,extensions:f.extensions&&(0,ns.default)(f.extensions),astNode:f.astNode}; + });return{name:n,description:r.description,type:r.type,args:s,resolve:r.resolve,subscribe:r.subscribe,isDeprecated:r.deprecationReason!=null,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ns.default)(r.extensions),astNode:r.astNode}; + }); + }function Gd(e){ + return(0,Dre.default)(e)&&!Array.isArray(e); + }function B5(e){ + return(0,Db.default)(e,function(t){ + return{description:t.description,type:t.type,args:G5(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}; + }); + }function G5(e){ + return(0,L5.default)(e,function(t){ + return t.name; + },function(t){ + return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}; + }); + }function Jre(e){ + return au(e.type)&&e.defaultValue===void 0; + }var JS=function(){ + function e(r){ + this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=U5.bind(void 0,r),this._interfaces=V5.bind(void 0,r),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'),r.resolveType==null||typeof r.resolveType=='function'||(0,wr.default)(0,''.concat(this.name,' must provide "resolveType" as a function, ')+'but got: '.concat((0,hr.default)(r.resolveType),'.')); + }var t=e.prototype;return t.getFields=function(){ + return typeof this._fields=='function'&&(this._fields=this._fields()),this._fields; + },t.getInterfaces=function(){ + return typeof this._interfaces=='function'&&(this._interfaces=this._interfaces()),this._interfaces; + },t.toConfig=function(){ + var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:B5(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLInterfaceType'; + }}]),e; + }();ot.GraphQLInterfaceType=JS;(0,ou.default)(JS);var _S=function(){ + function e(r){ + this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._types=_re.bind(void 0,r),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'),r.resolveType==null||typeof r.resolveType=='function'||(0,wr.default)(0,''.concat(this.name,' must provide "resolveType" as a function, ')+'but got: '.concat((0,hr.default)(r.resolveType),'.')); + }var t=e.prototype;return t.getTypes=function(){ + return typeof this._types=='function'&&(this._types=this._types()),this._types; + },t.toConfig=function(){ + var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLUnionType'; + }}]),e; + }();ot.GraphQLUnionType=_S;(0,ou.default)(_S);function _re(e){ + var t=Pb(e.types);return Array.isArray(t)||(0,wr.default)(0,'Must provide Array of types or a function which returns such an array for Union '.concat(e.name,'.')),t; + }var $S=function(){ + function e(r){ + this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._values=$re(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){ + return[n.value,n]; + })),this._nameLookup=(0,Ore.default)(this._values,function(n){ + return n.name; + }),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'); + }var t=e.prototype;return t.getValues=function(){ + return this._values; + },t.getValue=function(n){ + return this._nameLookup[n]; + },t.serialize=function(n){ + var i=this._valueLookup.get(n);if(i===void 0)throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,hr.default)(n)));return i.name; + },t.parseValue=function(n){ + if(typeof n!='string'){ + var i=(0,hr.default)(n);throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,'.')+Nb(this,i)); + }var o=this.getValue(n);if(o==null)throw new _h.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+Nb(this,n));return o.value; + },t.parseLiteral=function(n,i){ + if(n.kind!==Pre.Kind.ENUM){ + var o=(0,O5.print)(n);throw new _h.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,'.')+Nb(this,o),n); + }var s=this.getValue(n.value);if(s==null){ + var l=(0,O5.print)(n);throw new _h.GraphQLError('Value "'.concat(l,'" does not exist in "').concat(this.name,'" enum.')+Nb(this,l),n); + }return s.value; + },t.toConfig=function(){ + var n,i=(0,L5.default)(this.getValues(),function(o){ + return o.name; + },function(o){ + return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}; + });return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLEnumType'; + }}]),e; + }();ot.GraphQLEnumType=$S;(0,ou.default)($S);function Nb(e,t){ + var r=e.getValues().map(function(i){ + return i.name; + }),n=(0,Lre.default)(t,r);return(0,Nre.default)('the enum value',n); + }function $re(e,t){ + return Gd(t)||(0,wr.default)(0,''.concat(e,' values must be an object with value names as keys.')),(0,D5.default)(t).map(function(r){ + var n=r[0],i=r[1];return Gd(i)||(0,wr.default)(0,''.concat(e,'.').concat(n,' must refer to an object with a "value" key ')+'representing an internal value but got: '.concat((0,hr.default)(i),'.')),!('isDeprecated'in i)||(0,wr.default)(0,''.concat(e,'.').concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:i.value!==void 0?i.value:n,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&(0,ns.default)(i.extensions),astNode:i.astNode}; + }); + }var ek=function(){ + function e(r){ + this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ns.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Qd(r.extensionASTNodes),this._fields=ene.bind(void 0,r),typeof r.name=='string'||(0,wr.default)(0,'Must provide name.'); + }var t=e.prototype;return t.getFields=function(){ + return typeof this._fields=='function'&&(this._fields=this._fields()),this._fields; + },t.toConfig=function(){ + var n,i=(0,Db.default)(this.getFields(),function(o){ + return{description:o.description,type:o.type,defaultValue:o.defaultValue,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}; + });return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}; + },t.toString=function(){ + return this.name; + },t.toJSON=function(){ + return this.toString(); + },zd(e,[{key:nu.SYMBOL_TO_STRING_TAG,get:function(){ + return'GraphQLInputObjectType'; + }}]),e; + }();ot.GraphQLInputObjectType=ek;(0,ou.default)(ek);function ene(e){ + var t=Pb(e.fields);return Gd(t)||(0,wr.default)(0,''.concat(e.name,' fields must be an object with field names as keys or a function which returns such an object.')),(0,Db.default)(t,function(r,n){ + return!('resolve'in r)||(0,wr.default)(0,''.concat(e.name,'.').concat(n,' field has a resolve property, but Input Types cannot define resolvers.')),{name:n,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ns.default)(r.extensions),astNode:r.astNode}; + }); + }function tne(e){ + return au(e.type)&&e.defaultValue===void 0; + } +});var rv=X(tv=>{ + 'use strict';Object.defineProperty(tv,'__esModule',{value:!0});tv.isEqualType=tk;tv.isTypeSubTypeOf=Rb;tv.doTypesOverlap=rne;var si=Rt();function tk(e,t){ + return e===t?!0:(0,si.isNonNullType)(e)&&(0,si.isNonNullType)(t)||(0,si.isListType)(e)&&(0,si.isListType)(t)?tk(e.ofType,t.ofType):!1; + }function Rb(e,t,r){ + return t===r?!0:(0,si.isNonNullType)(r)?(0,si.isNonNullType)(t)?Rb(e,t.ofType,r.ofType):!1:(0,si.isNonNullType)(t)?Rb(e,t.ofType,r):(0,si.isListType)(r)?(0,si.isListType)(t)?Rb(e,t.ofType,r.ofType):!1:(0,si.isListType)(t)?!1:(0,si.isAbstractType)(r)&&((0,si.isInterfaceType)(t)||(0,si.isObjectType)(t))&&e.isSubType(r,t); + }function rne(e,t,r){ + return t===r?!0:(0,si.isAbstractType)(t)?(0,si.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){ + return e.isSubType(r,n); + }):e.isSubType(t,r):(0,si.isAbstractType)(r)?e.isSubType(r,t):!1; + } +});var rk=X(Mb=>{ + 'use strict';Object.defineProperty(Mb,'__esModule',{value:!0});Mb.default=void 0;var nne=ts(),ine=Array.from||function(e,t,r){ + if(e==null)throw new TypeError('Array.from requires an array-like object - not null or undefined');var n=e[nne.SYMBOL_ITERATOR];if(typeof n=='function'){ + for(var i=n.call(e),o=[],s,l=0;!(s=i.next()).done;++l)if(o.push(t.call(r,s.value,l)),l>9999999)throw new TypeError('Near-infinite iteration.');return o; + }var c=e.length;if(typeof c=='number'&&c>=0&&c%1===0){ + for(var f=[],m=0;m{ + 'use strict';Object.defineProperty(Ib,'__esModule',{value:!0});Ib.default=void 0;var ane=Number.isFinite||function(e){ + return typeof e=='number'&&isFinite(e); + },sne=ane;Ib.default=sne; +});var qb=X(ik=>{ + 'use strict';Object.defineProperty(ik,'__esModule',{value:!0});ik.default=une;var lne=ts();function Fb(e){ + '@babel/helpers - typeof';return typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?Fb=function(r){ + return typeof r; + }:Fb=function(r){ + return r&&typeof Symbol=='function'&&r.constructor===Symbol&&r!==Symbol.prototype?'symbol':typeof r; + },Fb(e); + }function une(e){ + var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(m){ + return m; + };if(e==null||Fb(e)!=='object')return null;if(Array.isArray(e))return e.map(t);var r=e[lne.SYMBOL_ITERATOR];if(typeof r=='function'){ + for(var n=r.call(e),i=[],o,s=0;!(o=n.next()).done;++s)i.push(t(o.value,s));return i; + }var l=e.length;if(typeof l=='number'&&l>=0&&l%1===0){ + for(var c=[],f=0;f{ + 'use strict';Object.defineProperty(jb,'__esModule',{value:!0});jb.default=void 0;var cne=Number.isInteger||function(e){ + return typeof e=='number'&&isFinite(e)&&Math.floor(e)===e; + },fne=cne;jb.default=fne; +});var is=X(Di=>{ + 'use strict';Object.defineProperty(Di,'__esModule',{value:!0});Di.isSpecifiedScalarType=wne;Di.specifiedScalarTypes=Di.GraphQLID=Di.GraphQLBoolean=Di.GraphQLString=Di.GraphQLFloat=Di.GraphQLInt=void 0;var Vb=Bb(nk()),Ub=Bb(z5()),va=Bb(jt()),H5=Bb(es()),Mc=tr(),nv=ao(),Nn=ft(),iv=Rt();function Bb(e){ + return e&&e.__esModule?e:{default:e}; + }var ok=2147483647,ak=-2147483648;function dne(e){ + var t=ov(e);if(typeof t=='boolean')return t?1:0;var r=t;if(typeof t=='string'&&t!==''&&(r=Number(t)),!(0,Ub.default)(r))throw new Nn.GraphQLError('Int cannot represent non-integer value: '.concat((0,va.default)(t)));if(r>ok||rok||eok||r{ + 'use strict';Object.defineProperty(sk,'__esModule',{value:!0});sk.astFromValue=sv;var Ene=Wd(nk()),Tne=Wd(oo()),J5=Wd(jt()),Cne=Wd(Gn()),Sne=Wd(es()),kne=Wd(qb()),Fo=tr(),One=is(),av=Rt();function Wd(e){ + return e&&e.__esModule?e:{default:e}; + }function sv(e,t){ + if((0,av.isNonNullType)(t)){ + var r=sv(e,t.ofType);return r?.kind===Fo.Kind.NULL?null:r; + }if(e===null)return{kind:Fo.Kind.NULL};if(e===void 0)return null;if((0,av.isListType)(t)){ + var n=t.ofType,i=(0,kne.default)(e);if(i!=null){ + for(var o=[],s=0;s{ + 'use strict';Object.defineProperty(Xt,'__esModule',{value:!0});Xt.isIntrospectionType=Fne;Xt.introspectionTypes=Xt.TypeNameMetaFieldDef=Xt.TypeMetaFieldDef=Xt.SchemaMetaFieldDef=Xt.__TypeKind=Xt.TypeKind=Xt.__EnumValue=Xt.__InputValue=Xt.__Field=Xt.__Type=Xt.__DirectiveLocation=Xt.__Directive=Xt.__Schema=void 0;var lk=uk(oo()),Nne=uk(jt()),Dne=uk(Gn()),Lne=ao(),yn=Fd(),Pne=lv(),rr=is(),Xe=Rt();function uk(e){ + return e&&e.__esModule?e:{default:e}; + }var ck=new Xe.GraphQLObjectType({name:'__Schema',description:'A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.',fields:function(){ + return{description:{type:rr.GraphQLString,resolve:function(r){ + return r.description; + }},types:{description:'A list of all types supported by this server.',type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(qo))),resolve:function(r){ + return(0,lk.default)(r.getTypeMap()); + }},queryType:{description:'The type that query operations will be rooted at.',type:new Xe.GraphQLNonNull(qo),resolve:function(r){ + return r.getQueryType(); + }},mutationType:{description:'If this server supports mutation, the type that mutation operations will be rooted at.',type:qo,resolve:function(r){ + return r.getMutationType(); + }},subscriptionType:{description:'If this server support subscription, the type that subscription operations will be rooted at.',type:qo,resolve:function(r){ + return r.getSubscriptionType(); + }},directives:{description:'A list of all directives supported by this server.',type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(fk))),resolve:function(r){ + return r.getDirectives(); + }}}; + }});Xt.__Schema=ck;var fk=new Xe.GraphQLObjectType({name:'__Directive',description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){return r.name}},description:{type:rr.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(dk))),resolve:function(r){return r.locations}},args:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(uv))),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){return o.deprecationReason==null})}}}}});Xt.__Directive=fk;var dk=new Xe.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:yn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:yn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:yn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:yn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:yn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:yn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:yn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:yn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:yn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:yn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:yn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:yn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:yn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:yn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:yn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:yn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:yn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:yn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:yn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Xt.__DirectiveLocation=dk;var qo=new Xe.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new Xe.GraphQLNonNull(hk),resolve:function(r){if((0,Xe.isScalarType)(r))return zn.SCALAR;if((0,Xe.isObjectType)(r))return zn.OBJECT;if((0,Xe.isInterfaceType)(r))return zn.INTERFACE;if((0,Xe.isUnionType)(r))return zn.UNION;if((0,Xe.isEnumType)(r))return zn.ENUM;if((0,Xe.isInputObjectType)(r))return zn.INPUT_OBJECT;if((0,Xe.isListType)(r))return zn.LIST;if((0,Xe.isNonNullType)(r))return zn.NON_NULL;(0,Dne.default)(0,'Unexpected type: "'.concat((0,Nne.default)(r),'".'))}},name:{type:rr.GraphQLString,resolve:function(r){return r.name!==void 0?r.name:void 0}},description:{type:rr.GraphQLString,resolve:function(r){return r.description!==void 0?r.description:void 0}},specifiedByUrl:{type:rr.GraphQLString,resolve:function(r){return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0}},fields:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(pk)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Xe.isObjectType)(r)||(0,Xe.isInterfaceType)(r)){var o=(0,lk.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},interfaces:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(qo)),resolve:function(r){if((0,Xe.isObjectType)(r)||(0,Xe.isInterfaceType)(r))return r.getInterfaces()}},possibleTypes:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(qo)),resolve:function(r,n,i,o){var s=o.schema;if((0,Xe.isAbstractType)(r))return s.getPossibleTypes(r)}},enumValues:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(mk)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Xe.isEnumType)(r)){var o=r.getValues();return i?o:o.filter(function(s){return s.deprecationReason==null})}}},inputFields:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(uv)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Xe.isInputObjectType)(r)){var o=(0,lk.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},ofType:{type:qo,resolve:function(r){return r.ofType!==void 0?r.ofType:void 0}}}}});Xt.__Type=qo;var pk=new Xe.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){return r.name}},description:{type:rr.GraphQLString,resolve:function(r){return r.description}},args:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(uv))),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new Xe.GraphQLNonNull(qo),resolve:function(r){return r.type}},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:rr.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Xt.__Field=pk;var uv=new Xe.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){return r.name}},description:{type:rr.GraphQLString,resolve:function(r){return r.description}},type:{type:new Xe.GraphQLNonNull(qo),resolve:function(r){return r.type}},defaultValue:{type:rr.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(r){var n=r.type,i=r.defaultValue,o=(0,Pne.astFromValue)(i,n);return o?(0,Lne.print)(o):null}},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:rr.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Xt.__InputValue=uv;var mk=new Xe.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){return r.name}},description:{type:rr.GraphQLString,resolve:function(r){return r.description}},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:rr.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Xt.__EnumValue=mk;var zn=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});Xt.TypeKind=zn;var hk=new Xe.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:zn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:zn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:zn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:zn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:zn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:zn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:zn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:zn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Xt.__TypeKind=hk;var Rne={name:"__schema",type:new Xe.GraphQLNonNull(ck),description:"Access the current type schema of this server.",args:[],resolve:function(t,r,n,i){var o=i.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.SchemaMetaFieldDef=Rne;var Mne={name:"__type",type:qo,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Xe.GraphQLNonNull(rr.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,i){var o=r.name,s=i.schema;return s.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.TypeMetaFieldDef=Mne;var Ine={name:"__typename",type:new Xe.GraphQLNonNull(rr.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,r,n,i){var o=i.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.TypeNameMetaFieldDef=Ine;var $5=Object.freeze([ck,fk,dk,qo,pk,uv,mk,hk]);Xt.introspectionTypes=$5;function Fne(e){return $5.some(function(t){var r=t.name;return e.name===r})}});var Bi=X(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.isDirective=r7;bn.assertDirective=Hne;bn.isSpecifiedDirective=Qne;bn.specifiedDirectives=bn.GraphQLSpecifiedByDirective=bn.GraphQLDeprecatedDirective=bn.DEFAULT_DEPRECATION_REASON=bn.GraphQLSkipDirective=bn.GraphQLIncludeDirective=bn.GraphQLDirective=void 0;var qne=Ic(Bd()),jne=ts(),Vne=Ic(jt()),e7=Ic(Sb()),vk=Ic(Io()),Une=Ic(Qh()),Bne=Ic(es()),Gne=Ic(fb()),ga=Fd(),Gb=is(),zb=Rt();function Ic(e){return e&&e.__esModule?e:{default:e}}function t7(e,t){for(var r=0;r{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.isSchema=f7;Yd.assertSchema=eie;Yd.GraphQLSchema=void 0;var Wne=su(Ud()),Yne=su(rk()),gk=su(oo()),Kne=ts(),yk=su(jt()),Xne=su(Sb()),Hb=su(Io()),Zne=su(Qh()),Jne=su(es()),_ne=jo(),u7=Bi(),ya=Rt();function su(e){return e&&e.__esModule?e:{default:e}}function c7(e,t){for(var r=0;r{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});Qb.validateSchema=b7;Qb.assertValidSchema=aie;var p7=Ak(Ud()),fv=Ak(oo()),li=Ak(jt()),tie=ft(),rie=Xh(),nie=DS(),m7=rv(),iie=qc(),oie=jo(),y7=Bi(),Wr=Rt();function Ak(e){return e&&e.__esModule?e:{default:e}}function b7(e){if((0,iie.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new sie(e);lie(t),uie(t),cie(t);var r=t.getErrors();return e.__validationErrors=r,r}function aie(e){var t=b7(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){ + return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){ + return r.name; + }},description:{type:rr.GraphQLString,resolve:function(r){ + return r.description; + }},isRepeatable:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){ + return r.isRepeatable; + }},locations:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(dk))),resolve:function(r){ + return r.locations; + }},args:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(uv))),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){ + var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){ + return o.deprecationReason==null; + }); + }}}; + }});Xt.__Directive=fk;var dk=new Xe.GraphQLEnumType({name:'__DirectiveLocation',description:'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',values:{QUERY:{value:yn.DirectiveLocation.QUERY,description:'Location adjacent to a query operation.'},MUTATION:{value:yn.DirectiveLocation.MUTATION,description:'Location adjacent to a mutation operation.'},SUBSCRIPTION:{value:yn.DirectiveLocation.SUBSCRIPTION,description:'Location adjacent to a subscription operation.'},FIELD:{value:yn.DirectiveLocation.FIELD,description:'Location adjacent to a field.'},FRAGMENT_DEFINITION:{value:yn.DirectiveLocation.FRAGMENT_DEFINITION,description:'Location adjacent to a fragment definition.'},FRAGMENT_SPREAD:{value:yn.DirectiveLocation.FRAGMENT_SPREAD,description:'Location adjacent to a fragment spread.'},INLINE_FRAGMENT:{value:yn.DirectiveLocation.INLINE_FRAGMENT,description:'Location adjacent to an inline fragment.'},VARIABLE_DEFINITION:{value:yn.DirectiveLocation.VARIABLE_DEFINITION,description:'Location adjacent to a variable definition.'},SCHEMA:{value:yn.DirectiveLocation.SCHEMA,description:'Location adjacent to a schema definition.'},SCALAR:{value:yn.DirectiveLocation.SCALAR,description:'Location adjacent to a scalar definition.'},OBJECT:{value:yn.DirectiveLocation.OBJECT,description:'Location adjacent to an object type definition.'},FIELD_DEFINITION:{value:yn.DirectiveLocation.FIELD_DEFINITION,description:'Location adjacent to a field definition.'},ARGUMENT_DEFINITION:{value:yn.DirectiveLocation.ARGUMENT_DEFINITION,description:'Location adjacent to an argument definition.'},INTERFACE:{value:yn.DirectiveLocation.INTERFACE,description:'Location adjacent to an interface definition.'},UNION:{value:yn.DirectiveLocation.UNION,description:'Location adjacent to a union definition.'},ENUM:{value:yn.DirectiveLocation.ENUM,description:'Location adjacent to an enum definition.'},ENUM_VALUE:{value:yn.DirectiveLocation.ENUM_VALUE,description:'Location adjacent to an enum value definition.'},INPUT_OBJECT:{value:yn.DirectiveLocation.INPUT_OBJECT,description:'Location adjacent to an input object type definition.'},INPUT_FIELD_DEFINITION:{value:yn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:'Location adjacent to an input object field definition.'}}});Xt.__DirectiveLocation=dk;var qo=new Xe.GraphQLObjectType({name:'__Type',description:'The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.',fields:function(){ + return{kind:{type:new Xe.GraphQLNonNull(hk),resolve:function(r){ + if((0,Xe.isScalarType)(r))return zn.SCALAR;if((0,Xe.isObjectType)(r))return zn.OBJECT;if((0,Xe.isInterfaceType)(r))return zn.INTERFACE;if((0,Xe.isUnionType)(r))return zn.UNION;if((0,Xe.isEnumType)(r))return zn.ENUM;if((0,Xe.isInputObjectType)(r))return zn.INPUT_OBJECT;if((0,Xe.isListType)(r))return zn.LIST;if((0,Xe.isNonNullType)(r))return zn.NON_NULL;(0,Dne.default)(0,'Unexpected type: "'.concat((0,Nne.default)(r),'".')); + }},name:{type:rr.GraphQLString,resolve:function(r){ + return r.name!==void 0?r.name:void 0; + }},description:{type:rr.GraphQLString,resolve:function(r){ + return r.description!==void 0?r.description:void 0; + }},specifiedByUrl:{type:rr.GraphQLString,resolve:function(r){ + return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0; + }},fields:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(pk)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){ + var i=n.includeDeprecated;if((0,Xe.isObjectType)(r)||(0,Xe.isInterfaceType)(r)){ + var o=(0,lk.default)(r.getFields());return i?o:o.filter(function(s){ + return s.deprecationReason==null; + }); + } + }},interfaces:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(qo)),resolve:function(r){ + if((0,Xe.isObjectType)(r)||(0,Xe.isInterfaceType)(r))return r.getInterfaces(); + }},possibleTypes:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(qo)),resolve:function(r,n,i,o){ + var s=o.schema;if((0,Xe.isAbstractType)(r))return s.getPossibleTypes(r); + }},enumValues:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(mk)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){ + var i=n.includeDeprecated;if((0,Xe.isEnumType)(r)){ + var o=r.getValues();return i?o:o.filter(function(s){ + return s.deprecationReason==null; + }); + } + }},inputFields:{type:new Xe.GraphQLList(new Xe.GraphQLNonNull(uv)),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){ + var i=n.includeDeprecated;if((0,Xe.isInputObjectType)(r)){ + var o=(0,lk.default)(r.getFields());return i?o:o.filter(function(s){ + return s.deprecationReason==null; + }); + } + }},ofType:{type:qo,resolve:function(r){ + return r.ofType!==void 0?r.ofType:void 0; + }}}; + }});Xt.__Type=qo;var pk=new Xe.GraphQLObjectType({name:'__Field',description:'Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.',fields:function(){ + return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){ + return r.name; + }},description:{type:rr.GraphQLString,resolve:function(r){ + return r.description; + }},args:{type:new Xe.GraphQLNonNull(new Xe.GraphQLList(new Xe.GraphQLNonNull(uv))),args:{includeDeprecated:{type:rr.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){ + var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){ + return o.deprecationReason==null; + }); + }},type:{type:new Xe.GraphQLNonNull(qo),resolve:function(r){ + return r.type; + }},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){ + return r.deprecationReason!=null; + }},deprecationReason:{type:rr.GraphQLString,resolve:function(r){ + return r.deprecationReason; + }}}; + }});Xt.__Field=pk;var uv=new Xe.GraphQLObjectType({name:'__InputValue',description:'Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.',fields:function(){ + return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){ + return r.name; + }},description:{type:rr.GraphQLString,resolve:function(r){ + return r.description; + }},type:{type:new Xe.GraphQLNonNull(qo),resolve:function(r){ + return r.type; + }},defaultValue:{type:rr.GraphQLString,description:'A GraphQL-formatted string representing the default value for this input value.',resolve:function(r){ + var n=r.type,i=r.defaultValue,o=(0,Pne.astFromValue)(i,n);return o?(0,Lne.print)(o):null; + }},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){ + return r.deprecationReason!=null; + }},deprecationReason:{type:rr.GraphQLString,resolve:function(r){ + return r.deprecationReason; + }}}; + }});Xt.__InputValue=uv;var mk=new Xe.GraphQLObjectType({name:'__EnumValue',description:'One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.',fields:function(){ + return{name:{type:new Xe.GraphQLNonNull(rr.GraphQLString),resolve:function(r){ + return r.name; + }},description:{type:rr.GraphQLString,resolve:function(r){ + return r.description; + }},isDeprecated:{type:new Xe.GraphQLNonNull(rr.GraphQLBoolean),resolve:function(r){ + return r.deprecationReason!=null; + }},deprecationReason:{type:rr.GraphQLString,resolve:function(r){ + return r.deprecationReason; + }}}; + }});Xt.__EnumValue=mk;var zn=Object.freeze({SCALAR:'SCALAR',OBJECT:'OBJECT',INTERFACE:'INTERFACE',UNION:'UNION',ENUM:'ENUM',INPUT_OBJECT:'INPUT_OBJECT',LIST:'LIST',NON_NULL:'NON_NULL'});Xt.TypeKind=zn;var hk=new Xe.GraphQLEnumType({name:'__TypeKind',description:'An enum describing what kind of type a given `__Type` is.',values:{SCALAR:{value:zn.SCALAR,description:'Indicates this type is a scalar.'},OBJECT:{value:zn.OBJECT,description:'Indicates this type is an object. `fields` and `interfaces` are valid fields.'},INTERFACE:{value:zn.INTERFACE,description:'Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.'},UNION:{value:zn.UNION,description:'Indicates this type is a union. `possibleTypes` is a valid field.'},ENUM:{value:zn.ENUM,description:'Indicates this type is an enum. `enumValues` is a valid field.'},INPUT_OBJECT:{value:zn.INPUT_OBJECT,description:'Indicates this type is an input object. `inputFields` is a valid field.'},LIST:{value:zn.LIST,description:'Indicates this type is a list. `ofType` is a valid field.'},NON_NULL:{value:zn.NON_NULL,description:'Indicates this type is a non-null. `ofType` is a valid field.'}}});Xt.__TypeKind=hk;var Rne={name:'__schema',type:new Xe.GraphQLNonNull(ck),description:'Access the current type schema of this server.',args:[],resolve:function(t,r,n,i){ + var o=i.schema;return o; + },isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.SchemaMetaFieldDef=Rne;var Mne={name:'__type',type:qo,description:'Request the type information of a single type.',args:[{name:'name',description:void 0,type:new Xe.GraphQLNonNull(rr.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,i){ + var o=r.name,s=i.schema;return s.getType(o); + },isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.TypeMetaFieldDef=Mne;var Ine={name:'__typename',type:new Xe.GraphQLNonNull(rr.GraphQLString),description:'The name of the current Object type at runtime.',args:[],resolve:function(t,r,n,i){ + var o=i.parentType;return o.name; + },isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Xt.TypeNameMetaFieldDef=Ine;var $5=Object.freeze([ck,fk,dk,qo,pk,uv,mk,hk]);Xt.introspectionTypes=$5;function Fne(e){ + return $5.some(function(t){ + var r=t.name;return e.name===r; + }); + } +});var Bi=X(bn=>{ + 'use strict';Object.defineProperty(bn,'__esModule',{value:!0});bn.isDirective=r7;bn.assertDirective=Hne;bn.isSpecifiedDirective=Qne;bn.specifiedDirectives=bn.GraphQLSpecifiedByDirective=bn.GraphQLDeprecatedDirective=bn.DEFAULT_DEPRECATION_REASON=bn.GraphQLSkipDirective=bn.GraphQLIncludeDirective=bn.GraphQLDirective=void 0;var qne=Ic(Bd()),jne=ts(),Vne=Ic(jt()),e7=Ic(Sb()),vk=Ic(Io()),Une=Ic(Qh()),Bne=Ic(es()),Gne=Ic(fb()),ga=Fd(),Gb=is(),zb=Rt();function Ic(e){ + return e&&e.__esModule?e:{default:e}; + }function t7(e,t){ + for(var r=0;r{ + 'use strict';Object.defineProperty(Yd,'__esModule',{value:!0});Yd.isSchema=f7;Yd.assertSchema=eie;Yd.GraphQLSchema=void 0;var Wne=su(Ud()),Yne=su(rk()),gk=su(oo()),Kne=ts(),yk=su(jt()),Xne=su(Sb()),Hb=su(Io()),Zne=su(Qh()),Jne=su(es()),_ne=jo(),u7=Bi(),ya=Rt();function su(e){ + return e&&e.__esModule?e:{default:e}; + }function c7(e,t){ + for(var r=0;r{ + 'use strict';Object.defineProperty(Qb,'__esModule',{value:!0});Qb.validateSchema=b7;Qb.assertValidSchema=aie;var p7=Ak(Ud()),fv=Ak(oo()),li=Ak(jt()),tie=ft(),rie=Xh(),nie=DS(),m7=rv(),iie=qc(),oie=jo(),y7=Bi(),Wr=Rt();function Ak(e){ + return e&&e.__esModule?e:{default:e}; + }function b7(e){ + if((0,iie.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new sie(e);lie(t),uie(t),cie(t);var r=t.getErrors();return e.__validationErrors=r,r; + }function aie(e){ + var t=b7(e);if(t.length!==0)throw new Error(t.map(function(r){ + return r.message; + }).join(` -`))}var sie=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new tie.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function lie(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Wr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,li.default)(r),"."),(n=bk(t,"query"))!==null&&n!==void 0?n:r.astNode)}var i=t.getMutationType();if(i&&!(0,Wr.isObjectType)(i)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,li.default)(i),"."),(o=bk(t,"mutation"))!==null&&o!==void 0?o:i.astNode)}var s=t.getSubscriptionType();if(s&&!(0,Wr.isObjectType)(s)){var l;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,li.default)(s),"."),(l=bk(t,"subscription"))!==null&&l!==void 0?l:s.astNode)}}function bk(e,t){for(var r=xk(e,function(o){return o.operationTypes}),n=0;n{"use strict";Object.defineProperty(Ck,"__esModule",{value:!0});Ck.typeFromAST=Tk;var gie=x7(jt()),yie=x7(Gn()),Ek=tr(),A7=Rt();function x7(e){return e&&e.__esModule?e:{default:e}}function Tk(e,t){var r;if(t.kind===Ek.Kind.LIST_TYPE)return r=Tk(e,t.type),r&&new A7.GraphQLList(r);if(t.kind===Ek.Kind.NON_NULL_TYPE)return r=Tk(e,t.type),r&&new A7.GraphQLNonNull(r);if(t.kind===Ek.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,yie.default)(0,"Unexpected type node: "+(0,gie.default)(t))}});var Wb=X(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.visitWithTypeInfo=Tie;pv.TypeInfo=void 0;var bie=xie(Ud()),jr=tr(),Aie=Md(),w7=Jl(),Vr=Rt(),Xd=jo(),E7=os();function xie(e){return e&&e.__esModule?e:{default:e}}var wie=function(){function e(r,n,i){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??Eie,i&&((0,Vr.isInputType)(i)&&this._inputTypeStack.push(i),(0,Vr.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,Vr.isOutputType)(i)&&this._typeStack.push(i))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(n){var i=this._schema;switch(n.kind){case jr.Kind.SELECTION_SET:{var o=(0,Vr.getNamedType)(this.getType());this._parentTypeStack.push((0,Vr.isCompositeType)(o)?o:void 0);break}case jr.Kind.FIELD:{var s=this.getParentType(),l,c;s&&(l=this._getFieldDef(i,s,n),l&&(c=l.type)),this._fieldDefStack.push(l),this._typeStack.push((0,Vr.isOutputType)(c)?c:void 0);break}case jr.Kind.DIRECTIVE:this._directive=i.getDirective(n.name.value);break;case jr.Kind.OPERATION_DEFINITION:{var f;switch(n.operation){case"query":f=i.getQueryType();break;case"mutation":f=i.getMutationType();break;case"subscription":f=i.getSubscriptionType();break}this._typeStack.push((0,Vr.isObjectType)(f)?f:void 0);break}case jr.Kind.INLINE_FRAGMENT:case jr.Kind.FRAGMENT_DEFINITION:{var m=n.typeCondition,v=m?(0,E7.typeFromAST)(i,m):(0,Vr.getNamedType)(this.getType());this._typeStack.push((0,Vr.isOutputType)(v)?v:void 0);break}case jr.Kind.VARIABLE_DEFINITION:{var g=(0,E7.typeFromAST)(i,n.type);this._inputTypeStack.push((0,Vr.isInputType)(g)?g:void 0);break}case jr.Kind.ARGUMENT:{var y,w,T,S=(y=this.getDirective())!==null&&y!==void 0?y:this.getFieldDef();S&&(w=(0,bie.default)(S.args,function(N){return N.name===n.name.value}),w&&(T=w.type)),this._argument=w,this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,Vr.isInputType)(T)?T:void 0);break}case jr.Kind.LIST:{var A=(0,Vr.getNullableType)(this.getInputType()),b=(0,Vr.isListType)(A)?A.ofType:A;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Vr.isInputType)(b)?b:void 0);break}case jr.Kind.OBJECT_FIELD:{var C=(0,Vr.getNamedType)(this.getInputType()),x,k;(0,Vr.isInputObjectType)(C)&&(k=C.getFields()[n.name.value],k&&(x=k.type)),this._defaultValueStack.push(k?k.defaultValue:void 0),this._inputTypeStack.push((0,Vr.isInputType)(x)?x:void 0);break}case jr.Kind.ENUM:{var P=(0,Vr.getNamedType)(this.getInputType()),D;(0,Vr.isEnumType)(P)&&(D=P.getValue(n.value)),this._enumValue=D;break}}},t.leave=function(n){switch(n.kind){case jr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case jr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case jr.Kind.DIRECTIVE:this._directive=null;break;case jr.Kind.OPERATION_DEFINITION:case jr.Kind.INLINE_FRAGMENT:case jr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case jr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case jr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case jr.Kind.LIST:case jr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case jr.Kind.ENUM:this._enumValue=null;break}},e}();pv.TypeInfo=wie;function Eie(e,t,r){var n=r.name.value;if(n===Xd.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Xd.SchemaMetaFieldDef;if(n===Xd.TypeMetaFieldDef.name&&e.getQueryType()===t)return Xd.TypeMetaFieldDef;if(n===Xd.TypeNameMetaFieldDef.name&&(0,Vr.isCompositeType)(t))return Xd.TypeNameMetaFieldDef;if((0,Vr.isObjectType)(t)||(0,Vr.isInterfaceType)(t))return t.getFields()[n]}function Tie(e,t){return{enter:function(n){e.enter(n);var i=(0,w7.getVisitFn)(t,n.kind,!1);if(i){var o=i.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,Aie.isNode)(o)&&e.enter(o)),o}},leave:function(n){var i=(0,w7.getVisitFn)(t,n.kind,!0),o;return i&&(o=i.apply(t,arguments)),e.leave(n),o}}}});var Vc=X(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.isDefinitionNode=Cie;Aa.isExecutableDefinitionNode=T7;Aa.isSelectionNode=Sie;Aa.isValueNode=kie;Aa.isTypeNode=Oie;Aa.isTypeSystemDefinitionNode=C7;Aa.isTypeDefinitionNode=S7;Aa.isTypeSystemExtensionNode=k7;Aa.isTypeExtensionNode=O7;var Vt=tr();function Cie(e){return T7(e)||C7(e)||k7(e)}function T7(e){return e.kind===Vt.Kind.OPERATION_DEFINITION||e.kind===Vt.Kind.FRAGMENT_DEFINITION}function Sie(e){return e.kind===Vt.Kind.FIELD||e.kind===Vt.Kind.FRAGMENT_SPREAD||e.kind===Vt.Kind.INLINE_FRAGMENT}function kie(e){return e.kind===Vt.Kind.VARIABLE||e.kind===Vt.Kind.INT||e.kind===Vt.Kind.FLOAT||e.kind===Vt.Kind.STRING||e.kind===Vt.Kind.BOOLEAN||e.kind===Vt.Kind.NULL||e.kind===Vt.Kind.ENUM||e.kind===Vt.Kind.LIST||e.kind===Vt.Kind.OBJECT}function Oie(e){return e.kind===Vt.Kind.NAMED_TYPE||e.kind===Vt.Kind.LIST_TYPE||e.kind===Vt.Kind.NON_NULL_TYPE}function C7(e){return e.kind===Vt.Kind.SCHEMA_DEFINITION||S7(e)||e.kind===Vt.Kind.DIRECTIVE_DEFINITION}function S7(e){return e.kind===Vt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Vt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Vt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Vt.Kind.UNION_TYPE_DEFINITION||e.kind===Vt.Kind.ENUM_TYPE_DEFINITION||e.kind===Vt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function k7(e){return e.kind===Vt.Kind.SCHEMA_EXTENSION||O7(e)}function O7(e){return e.kind===Vt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Vt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Vt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Vt.Kind.UNION_TYPE_EXTENSION||e.kind===Vt.Kind.ENUM_TYPE_EXTENSION||e.kind===Vt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var kk=X(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.ExecutableDefinitionsRule=Lie;var Nie=ft(),N7=tr(),Die=Vc();function Lie(e){return{Document:function(r){for(var n=0,i=r.definitions;n{"use strict";Object.defineProperty(Ok,"__esModule",{value:!0});Ok.UniqueOperationNamesRule=Rie;var Pie=ft();function Rie(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new Pie.GraphQLError('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}});var Lk=X(Dk=>{"use strict";Object.defineProperty(Dk,"__esModule",{value:!0});Dk.LoneAnonymousOperationRule=Fie;var Mie=ft(),Iie=tr();function Fie(e){var t=0;return{Document:function(n){t=n.definitions.filter(function(i){return i.kind===Iie.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new Mie.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}});var Rk=X(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.SingleFieldSubscriptionsRule=jie;var qie=ft();function jie(e){return{OperationDefinition:function(r){r.operation==="subscription"&&r.selectionSet.selections.length!==1&&e.reportError(new qie.GraphQLError(r.name?'Subscription "'.concat(r.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",r.selectionSet.selections.slice(1)))}}}});var Fk=X(Ik=>{"use strict";Object.defineProperty(Ik,"__esModule",{value:!0});Ik.KnownTypeNamesRule=Hie;var Vie=D7($l()),Uie=D7(eu()),Bie=ft(),Mk=Vc(),Gie=is(),zie=jo();function D7(e){return e&&e.__esModule?e:{default:e}}function Hie(e){for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),i=0,o=e.getDocument().definitions;i{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.FragmentsOnCompositeTypesRule=Yie;var P7=ft(),R7=ao(),M7=Rt(),I7=os();function Yie(e){return{InlineFragment:function(r){var n=r.typeCondition;if(n){var i=(0,I7.typeFromAST)(e.getSchema(),n);if(i&&!(0,M7.isCompositeType)(i)){var o=(0,R7.print)(n);e.reportError(new P7.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n))}}},FragmentDefinition:function(r){var n=(0,I7.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,M7.isCompositeType)(n)){var i=(0,R7.print)(r.typeCondition);e.reportError(new P7.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(i,'".'),r.typeCondition))}}}}});var Uk=X(Vk=>{"use strict";Object.defineProperty(Vk,"__esModule",{value:!0});Vk.VariablesAreInputTypesRule=_ie;var Kie=ft(),Xie=ao(),Zie=Rt(),Jie=os();function _ie(e){return{VariableDefinition:function(r){var n=(0,Jie.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,Zie.isInputType)(n)){var i=r.variable.name.value,o=(0,Xie.print)(r.type);e.reportError(new Kie.GraphQLError('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),r.type))}}}}});var Gk=X(Bk=>{"use strict";Object.defineProperty(Bk,"__esModule",{value:!0});Bk.ScalarLeafsRule=eoe;var F7=$ie(jt()),q7=ft(),j7=Rt();function $ie(e){return e&&e.__esModule?e:{default:e}}function eoe(e){return{Field:function(r){var n=e.getType(),i=r.selectionSet;if(n){if((0,j7.isLeafType)((0,j7.getNamedType)(n))){if(i){var o=r.name.value,s=(0,F7.default)(n);e.reportError(new q7.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),i))}}else if(!i){var l=r.name.value,c=(0,F7.default)(n);e.reportError(new q7.GraphQLError('Field "'.concat(l,'" of type "').concat(c,'" must have a selection of subfields. Did you mean "').concat(l,' { ... }"?'),r))}}}}}});var Hk=X(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.FieldsOnCorrectTypeRule=ooe;var toe=Yb(rk()),V7=Yb($l()),roe=Yb(eu()),noe=Yb(Jh()),ioe=ft(),mv=Rt();function Yb(e){return e&&e.__esModule?e:{default:e}}function ooe(e){return{Field:function(r){var n=e.getParentType();if(n){var i=e.getFieldDef();if(!i){var o=e.getSchema(),s=r.name.value,l=(0,V7.default)("to use an inline fragment on",aoe(o,n,s));l===""&&(l=(0,V7.default)(soe(n,s))),e.reportError(new ioe.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+l,r))}}}}}function aoe(e,t,r){if(!(0,mv.isAbstractType)(t))return[];for(var n=new Set,i=Object.create(null),o=0,s=e.getPossibleTypes(t);o{"use strict";Object.defineProperty(Qk,"__esModule",{value:!0});Qk.UniqueFragmentNamesRule=uoe;var loe=ft();function uoe(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new loe.GraphQLError('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var Kk=X(Yk=>{"use strict";Object.defineProperty(Yk,"__esModule",{value:!0});Yk.KnownFragmentNamesRule=foe;var coe=ft();function foe(e){return{FragmentSpread:function(r){var n=r.name.value,i=e.getFragment(n);i||e.reportError(new coe.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name))}}}});var Zk=X(Xk=>{"use strict";Object.defineProperty(Xk,"__esModule",{value:!0});Xk.NoUnusedFragmentsRule=poe;var doe=ft();function poe(e){var t=[],r=[];return{OperationDefinition:function(i){return t.push(i),!1},FragmentDefinition:function(i){return r.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o{"use strict";Object.defineProperty(_k,"__esModule",{value:!0});_k.PossibleFragmentSpreadsRule=voe;var Kb=hoe(jt()),U7=ft(),Jk=Rt(),moe=os(),B7=rv();function hoe(e){return e&&e.__esModule?e:{default:e}}function voe(e){return{InlineFragment:function(r){var n=e.getType(),i=e.getParentType();if((0,Jk.isCompositeType)(n)&&(0,Jk.isCompositeType)(i)&&!(0,B7.doTypesOverlap)(e.getSchema(),n,i)){var o=(0,Kb.default)(i),s=(0,Kb.default)(n);e.reportError(new U7.GraphQLError('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(s,'".'),r))}},FragmentSpread:function(r){var n=r.name.value,i=goe(e,n),o=e.getParentType();if(i&&o&&!(0,B7.doTypesOverlap)(e.getSchema(),i,o)){var s=(0,Kb.default)(o),l=(0,Kb.default)(i);e.reportError(new U7.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(l,'".'),r))}}}}function goe(e,t){var r=e.getFragment(t);if(r){var n=(0,moe.typeFromAST)(e.getSchema(),r.typeCondition);if((0,Jk.isCompositeType)(n))return n}}});var tO=X(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0});eO.NoFragmentCyclesRule=boe;var yoe=ft();function boe(e){var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return i(s),!1}};function i(o){if(!t[o.name.value]){var s=o.name.value;t[s]=!0;var l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){n[s]=r.length;for(var c=0;c{"use strict";Object.defineProperty(rO,"__esModule",{value:!0});rO.UniqueVariableNamesRule=xoe;var Aoe=ft();function xoe(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new Aoe.GraphQLError('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}});var oO=X(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0});iO.NoUndefinedVariablesRule=Eoe;var woe=ft();function Eoe(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty(aO,"__esModule",{value:!0});aO.NoUnusedVariablesRule=Coe;var Toe=ft();function Coe(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s{"use strict";Object.defineProperty(lO,"__esModule",{value:!0});lO.KnownDirectivesRule=Ooe;var Soe=H7(jt()),z7=H7(Gn()),G7=ft(),vr=tr(),An=Fd(),koe=Bi();function H7(e){return e&&e.__esModule?e:{default:e}}function Ooe(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():koe.specifiedDirectives,i=0;i{"use strict";Object.defineProperty(fO,"__esModule",{value:!0});fO.UniqueDirectivesPerLocationRule=Roe;var Loe=ft(),cO=tr(),Q7=Vc(),Poe=Bi();function Roe(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Poe.specifiedDirectives,i=0;i{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.KnownArgumentNamesRule=qoe;Xb.KnownArgumentNamesOnDirectivesRule=_7;var K7=J7($l()),X7=J7(eu()),Z7=ft(),Moe=tr(),Ioe=Bi();function J7(e){return e&&e.__esModule?e:{default:e}}function W7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y7(e){for(var t=1;t{"use strict";Object.defineProperty(mO,"__esModule",{value:!0});mO.UniqueArgumentNamesRule=Voe;var joe=ft();function Voe(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new joe.GraphQLError('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var gO=X(vO=>{"use strict";Object.defineProperty(vO,"__esModule",{value:!0});vO.ValuesOfCorrectTypeRule=Hoe;var Uoe=vv(oo()),Boe=vv(_l()),hv=vv(jt()),Goe=vv($l()),zoe=vv(eu()),Bc=ft(),Zb=ao(),as=Rt();function vv(e){return e&&e.__esModule?e:{default:e}}function Hoe(e){return{ListValue:function(r){var n=(0,as.getNullableType)(e.getParentInputType());if(!(0,as.isListType)(n))return Uc(e,r),!1},ObjectValue:function(r){var n=(0,as.getNamedType)(e.getInputType());if(!(0,as.isInputObjectType)(n))return Uc(e,r),!1;for(var i=(0,Boe.default)(r.fields,function(m){return m.name.value}),o=0,s=(0,Uoe.default)(n.getFields());o{"use strict";Object.defineProperty(_b,"__esModule",{value:!0});_b.ProvidedRequiredArgumentsRule=Koe;_b.ProvidedRequiredArgumentsOnDirectivesRule=o9;var t9=i9(jt()),Jb=i9(_l()),r9=ft(),n9=tr(),Qoe=ao(),Woe=Bi(),yO=Rt();function i9(e){return e&&e.__esModule?e:{default:e}}function $7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e9(e){for(var t=1;t{"use strict";Object.defineProperty(AO,"__esModule",{value:!0});AO.VariablesInAllowedPositionRule=eae;var a9=$oe(jt()),Zoe=ft(),Joe=tr(),s9=Rt(),_oe=os(),l9=rv();function $oe(e){return e&&e.__esModule?e:{default:e}}function eae(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty(kO,"__esModule",{value:!0});kO.OverlappingFieldsCanBeMergedRule=oae;var rae=CO(Ud()),nae=CO(Bd()),u9=CO(jt()),iae=ft(),wO=tr(),c9=ao(),Gi=Rt(),f9=os();function CO(e){return e&&e.__esModule?e:{default:e}}function d9(e){return Array.isArray(e)?e.map(function(t){var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+d9(n)}).join(" and "):e}function oae(e){var t=new dae,r=new Map;return{SelectionSet:function(i){for(var o=aae(e,r,t,e.getParentType(),i),s=0;s1)for(var m=0;m0)return[[t,e.map(function(i){var o=i[0];return o})],e.reduce(function(i,o){var s=o[1];return i.concat(s)},[r]),e.reduce(function(i,o){var s=o[2];return i.concat(s)},[n])]}var dae=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(n,i,o){var s=this._data[n],l=s&&s[i];return l===void 0?!1:o===!1?l===!1:!0},t.add=function(n,i,o){this._pairSetAdd(n,i,o),this._pairSetAdd(i,n,o)},t._pairSetAdd=function(n,i,o){var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[i]=o},e}()});var DO=X(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0});NO.UniqueInputFieldNamesRule=mae;var pae=ft();function mae(e){var t=[],r=Object.create(null);return{ObjectValue:{enter:function(){t.push(r),r=Object.create(null)},leave:function(){r=t.pop()}},ObjectField:function(i){var o=i.name.value;r[o]?e.reportError(new pae.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],i.name])):r[o]=i.name}}}});var PO=X(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0});LO.LoneSchemaDefinitionRule=hae;var h9=ft();function hae(e){var t,r,n,i=e.getSchema(),o=(t=(r=(n=i?.astNode)!==null&&n!==void 0?n:i?.getQueryType())!==null&&r!==void 0?r:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),s=0;return{SchemaDefinition:function(c){if(o){e.reportError(new h9.GraphQLError("Cannot define a new schema within a schema extension.",c));return}s>0&&e.reportError(new h9.GraphQLError("Must provide only one schema definition.",c)),++s}}}});var MO=X(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0});RO.UniqueOperationTypesRule=vae;var v9=ft();function vae(e){var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){for(var s,l=(s=o.operationTypes)!==null&&s!==void 0?s:[],c=0;c{"use strict";Object.defineProperty(IO,"__esModule",{value:!0});IO.UniqueTypeNamesRule=gae;var g9=ft();function gae(e){var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){var o=i.name.value;if(r!=null&&r.getType(o)){e.reportError(new g9.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return}return t[o]?e.reportError(new g9.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}});var jO=X(qO=>{"use strict";Object.defineProperty(qO,"__esModule",{value:!0});qO.UniqueEnumValueNamesRule=bae;var y9=ft(),yae=Rt();function bae(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var c=(s=o.values)!==null&&s!==void 0?s:[],f=n[l],m=0;m{"use strict";Object.defineProperty(UO,"__esModule",{value:!0});UO.UniqueFieldDefinitionNamesRule=Aae;var b9=ft(),VO=Rt();function Aae(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var c=(s=o.fields)!==null&&s!==void 0?s:[],f=n[l],m=0;m{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.UniqueDirectiveNamesRule=wae;var A9=ft();function wae(e){var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new A9.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return}return t[o]?e.reportError(new A9.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}}});var QO=X(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0});HO.PossibleTypeExtensionsRule=Sae;var w9=rA(jt()),E9=rA(Gn()),Eae=rA($l()),Tae=rA(eu()),x9=ft(),Er=tr(),Cae=Vc(),Zd=Rt(),lu;function rA(e){return e&&e.__esModule?e:{default:e}}function Jd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sae(e){for(var t=e.getSchema(),r=Object.create(null),n=0,i=e.getDocument().definitions;n{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.specifiedSDLRules=_d.specifiedRules=void 0;var Dae=kk(),Lae=Nk(),Pae=Lk(),Rae=Rk(),T9=Fk(),Mae=jk(),Iae=Uk(),Fae=Gk(),qae=Hk(),jae=Wk(),Vae=Kk(),Uae=Zk(),Bae=$k(),Gae=tO(),zae=nO(),Hae=oO(),Qae=sO(),C9=uO(),S9=dO(),k9=pO(),O9=hO(),Wae=gO(),N9=bO(),Yae=xO(),Kae=OO(),D9=DO(),Xae=PO(),Zae=MO(),Jae=FO(),_ae=jO(),$ae=BO(),ese=zO(),tse=QO(),rse=Object.freeze([Dae.ExecutableDefinitionsRule,Lae.UniqueOperationNamesRule,Pae.LoneAnonymousOperationRule,Rae.SingleFieldSubscriptionsRule,T9.KnownTypeNamesRule,Mae.FragmentsOnCompositeTypesRule,Iae.VariablesAreInputTypesRule,Fae.ScalarLeafsRule,qae.FieldsOnCorrectTypeRule,jae.UniqueFragmentNamesRule,Vae.KnownFragmentNamesRule,Uae.NoUnusedFragmentsRule,Bae.PossibleFragmentSpreadsRule,Gae.NoFragmentCyclesRule,zae.UniqueVariableNamesRule,Hae.NoUndefinedVariablesRule,Qae.NoUnusedVariablesRule,C9.KnownDirectivesRule,S9.UniqueDirectivesPerLocationRule,k9.KnownArgumentNamesRule,O9.UniqueArgumentNamesRule,Wae.ValuesOfCorrectTypeRule,N9.ProvidedRequiredArgumentsRule,Yae.VariablesInAllowedPositionRule,Kae.OverlappingFieldsCanBeMergedRule,D9.UniqueInputFieldNamesRule]);_d.specifiedRules=rse;var nse=Object.freeze([Xae.LoneSchemaDefinitionRule,Zae.UniqueOperationTypesRule,Jae.UniqueTypeNamesRule,_ae.UniqueEnumValueNamesRule,$ae.UniqueFieldDefinitionNamesRule,ese.UniqueDirectiveNamesRule,T9.KnownTypeNamesRule,C9.KnownDirectivesRule,S9.UniqueDirectivesPerLocationRule,tse.PossibleTypeExtensionsRule,k9.KnownArgumentNamesOnDirectivesRule,O9.UniqueArgumentNamesRule,D9.UniqueInputFieldNamesRule,N9.ProvidedRequiredArgumentsOnDirectivesRule]);_d.specifiedSDLRules=nse});var KO=X(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.ValidationContext=uu.SDLValidationContext=uu.ASTValidationContext=void 0;var L9=tr(),ise=Jl(),P9=Wb();function R9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var YO=function(){function e(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var t=e.prototype;return t.reportError=function(n){this._onError(n)},t.getDocument=function(){return this._ast},t.getFragment=function(n){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,s){return s.kind===L9.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o},Object.create(null))),i[n]},t.getFragmentSpreads=function(n){var i=this._fragmentSpreads.get(n);if(!i){i=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),l=0,c=s.selections;l{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.validate=fse;$d.validateSDL=XO;$d.assertValidSDL=dse;$d.assertValidSDLExtension=pse;var sse=cse(Io()),lse=ft(),nA=Jl(),use=dv(),M9=Wb(),I9=WO(),F9=KO();function cse(e){return e&&e.__esModule?e:{default:e}}function fse(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I9.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new M9.TypeInfo(e),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,sse.default)(0,"Must provide document."),(0,use.assertValidSchema)(e);var o=Object.freeze({}),s=[],l=new F9.ValidationContext(e,t,n,function(f){if(i.maxErrors!=null&&s.length>=i.maxErrors)throw s.push(new lse.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(f)}),c=(0,nA.visitInParallel)(r.map(function(f){return f(l)}));try{(0,nA.visit)(t,(0,M9.visitWithTypeInfo)(n,c))}catch(f){if(f!==o)throw f}return s}function XO(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I9.specifiedSDLRules,n=[],i=new F9.SDLValidationContext(e,t,function(s){n.push(s)}),o=r.map(function(s){return s(i)});return(0,nA.visit)(e,(0,nA.visitInParallel)(o)),n}function dse(e){var t=XO(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` +`)); + }var sie=function(){ + function e(r){ + this._errors=[],this.schema=r; + }var t=e.prototype;return t.reportError=function(n,i){ + var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new tie.GraphQLError(n,o)); + },t.addError=function(n){ + this._errors.push(n); + },t.getErrors=function(){ + return this._errors; + },e; + }();function lie(e){ + var t=e.schema,r=t.getQueryType();if(!r)e.reportError('Query root type must be provided.',t.astNode);else if(!(0,Wr.isObjectType)(r)){ + var n;e.reportError('Query root type must be Object type, it cannot be '.concat((0,li.default)(r),'.'),(n=bk(t,'query'))!==null&&n!==void 0?n:r.astNode); + }var i=t.getMutationType();if(i&&!(0,Wr.isObjectType)(i)){ + var o;e.reportError('Mutation root type must be Object type if provided, it cannot be '+''.concat((0,li.default)(i),'.'),(o=bk(t,'mutation'))!==null&&o!==void 0?o:i.astNode); + }var s=t.getSubscriptionType();if(s&&!(0,Wr.isObjectType)(s)){ + var l;e.reportError('Subscription root type must be Object type if provided, it cannot be '+''.concat((0,li.default)(s),'.'),(l=bk(t,'subscription'))!==null&&l!==void 0?l:s.astNode); + } + }function bk(e,t){ + for(var r=xk(e,function(o){ + return o.operationTypes; + }),n=0;n{ + 'use strict';Object.defineProperty(Ck,'__esModule',{value:!0});Ck.typeFromAST=Tk;var gie=x7(jt()),yie=x7(Gn()),Ek=tr(),A7=Rt();function x7(e){ + return e&&e.__esModule?e:{default:e}; + }function Tk(e,t){ + var r;if(t.kind===Ek.Kind.LIST_TYPE)return r=Tk(e,t.type),r&&new A7.GraphQLList(r);if(t.kind===Ek.Kind.NON_NULL_TYPE)return r=Tk(e,t.type),r&&new A7.GraphQLNonNull(r);if(t.kind===Ek.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,yie.default)(0,'Unexpected type node: '+(0,gie.default)(t)); + } +});var Wb=X(pv=>{ + 'use strict';Object.defineProperty(pv,'__esModule',{value:!0});pv.visitWithTypeInfo=Tie;pv.TypeInfo=void 0;var bie=xie(Ud()),jr=tr(),Aie=Md(),w7=Jl(),Vr=Rt(),Xd=jo(),E7=os();function xie(e){ + return e&&e.__esModule?e:{default:e}; + }var wie=function(){ + function e(r,n,i){ + this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n??Eie,i&&((0,Vr.isInputType)(i)&&this._inputTypeStack.push(i),(0,Vr.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,Vr.isOutputType)(i)&&this._typeStack.push(i)); + }var t=e.prototype;return t.getType=function(){ + if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]; + },t.getParentType=function(){ + if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]; + },t.getInputType=function(){ + if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]; + },t.getParentInputType=function(){ + if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]; + },t.getFieldDef=function(){ + if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]; + },t.getDefaultValue=function(){ + if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]; + },t.getDirective=function(){ + return this._directive; + },t.getArgument=function(){ + return this._argument; + },t.getEnumValue=function(){ + return this._enumValue; + },t.enter=function(n){ + var i=this._schema;switch(n.kind){ + case jr.Kind.SELECTION_SET:{var o=(0,Vr.getNamedType)(this.getType());this._parentTypeStack.push((0,Vr.isCompositeType)(o)?o:void 0);break;}case jr.Kind.FIELD:{var s=this.getParentType(),l,c;s&&(l=this._getFieldDef(i,s,n),l&&(c=l.type)),this._fieldDefStack.push(l),this._typeStack.push((0,Vr.isOutputType)(c)?c:void 0);break;}case jr.Kind.DIRECTIVE:this._directive=i.getDirective(n.name.value);break;case jr.Kind.OPERATION_DEFINITION:{var f;switch(n.operation){ + case'query':f=i.getQueryType();break;case'mutation':f=i.getMutationType();break;case'subscription':f=i.getSubscriptionType();break; + }this._typeStack.push((0,Vr.isObjectType)(f)?f:void 0);break;}case jr.Kind.INLINE_FRAGMENT:case jr.Kind.FRAGMENT_DEFINITION:{var m=n.typeCondition,v=m?(0,E7.typeFromAST)(i,m):(0,Vr.getNamedType)(this.getType());this._typeStack.push((0,Vr.isOutputType)(v)?v:void 0);break;}case jr.Kind.VARIABLE_DEFINITION:{var g=(0,E7.typeFromAST)(i,n.type);this._inputTypeStack.push((0,Vr.isInputType)(g)?g:void 0);break;}case jr.Kind.ARGUMENT:{var y,w,T,S=(y=this.getDirective())!==null&&y!==void 0?y:this.getFieldDef();S&&(w=(0,bie.default)(S.args,function(N){ + return N.name===n.name.value; + }),w&&(T=w.type)),this._argument=w,this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,Vr.isInputType)(T)?T:void 0);break;}case jr.Kind.LIST:{var A=(0,Vr.getNullableType)(this.getInputType()),b=(0,Vr.isListType)(A)?A.ofType:A;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Vr.isInputType)(b)?b:void 0);break;}case jr.Kind.OBJECT_FIELD:{var C=(0,Vr.getNamedType)(this.getInputType()),x,k;(0,Vr.isInputObjectType)(C)&&(k=C.getFields()[n.name.value],k&&(x=k.type)),this._defaultValueStack.push(k?k.defaultValue:void 0),this._inputTypeStack.push((0,Vr.isInputType)(x)?x:void 0);break;}case jr.Kind.ENUM:{var P=(0,Vr.getNamedType)(this.getInputType()),D;(0,Vr.isEnumType)(P)&&(D=P.getValue(n.value)),this._enumValue=D;break;} + } + },t.leave=function(n){ + switch(n.kind){ + case jr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case jr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case jr.Kind.DIRECTIVE:this._directive=null;break;case jr.Kind.OPERATION_DEFINITION:case jr.Kind.INLINE_FRAGMENT:case jr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case jr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case jr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case jr.Kind.LIST:case jr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case jr.Kind.ENUM:this._enumValue=null;break; + } + },e; + }();pv.TypeInfo=wie;function Eie(e,t,r){ + var n=r.name.value;if(n===Xd.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Xd.SchemaMetaFieldDef;if(n===Xd.TypeMetaFieldDef.name&&e.getQueryType()===t)return Xd.TypeMetaFieldDef;if(n===Xd.TypeNameMetaFieldDef.name&&(0,Vr.isCompositeType)(t))return Xd.TypeNameMetaFieldDef;if((0,Vr.isObjectType)(t)||(0,Vr.isInterfaceType)(t))return t.getFields()[n]; + }function Tie(e,t){ + return{enter:function(n){ + e.enter(n);var i=(0,w7.getVisitFn)(t,n.kind,!1);if(i){ + var o=i.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,Aie.isNode)(o)&&e.enter(o)),o; + } + },leave:function(n){ + var i=(0,w7.getVisitFn)(t,n.kind,!0),o;return i&&(o=i.apply(t,arguments)),e.leave(n),o; + }}; + } +});var Vc=X(Aa=>{ + 'use strict';Object.defineProperty(Aa,'__esModule',{value:!0});Aa.isDefinitionNode=Cie;Aa.isExecutableDefinitionNode=T7;Aa.isSelectionNode=Sie;Aa.isValueNode=kie;Aa.isTypeNode=Oie;Aa.isTypeSystemDefinitionNode=C7;Aa.isTypeDefinitionNode=S7;Aa.isTypeSystemExtensionNode=k7;Aa.isTypeExtensionNode=O7;var Vt=tr();function Cie(e){ + return T7(e)||C7(e)||k7(e); + }function T7(e){ + return e.kind===Vt.Kind.OPERATION_DEFINITION||e.kind===Vt.Kind.FRAGMENT_DEFINITION; + }function Sie(e){ + return e.kind===Vt.Kind.FIELD||e.kind===Vt.Kind.FRAGMENT_SPREAD||e.kind===Vt.Kind.INLINE_FRAGMENT; + }function kie(e){ + return e.kind===Vt.Kind.VARIABLE||e.kind===Vt.Kind.INT||e.kind===Vt.Kind.FLOAT||e.kind===Vt.Kind.STRING||e.kind===Vt.Kind.BOOLEAN||e.kind===Vt.Kind.NULL||e.kind===Vt.Kind.ENUM||e.kind===Vt.Kind.LIST||e.kind===Vt.Kind.OBJECT; + }function Oie(e){ + return e.kind===Vt.Kind.NAMED_TYPE||e.kind===Vt.Kind.LIST_TYPE||e.kind===Vt.Kind.NON_NULL_TYPE; + }function C7(e){ + return e.kind===Vt.Kind.SCHEMA_DEFINITION||S7(e)||e.kind===Vt.Kind.DIRECTIVE_DEFINITION; + }function S7(e){ + return e.kind===Vt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Vt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Vt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Vt.Kind.UNION_TYPE_DEFINITION||e.kind===Vt.Kind.ENUM_TYPE_DEFINITION||e.kind===Vt.Kind.INPUT_OBJECT_TYPE_DEFINITION; + }function k7(e){ + return e.kind===Vt.Kind.SCHEMA_EXTENSION||O7(e); + }function O7(e){ + return e.kind===Vt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Vt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Vt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Vt.Kind.UNION_TYPE_EXTENSION||e.kind===Vt.Kind.ENUM_TYPE_EXTENSION||e.kind===Vt.Kind.INPUT_OBJECT_TYPE_EXTENSION; + } +});var kk=X(Sk=>{ + 'use strict';Object.defineProperty(Sk,'__esModule',{value:!0});Sk.ExecutableDefinitionsRule=Lie;var Nie=ft(),N7=tr(),Die=Vc();function Lie(e){ + return{Document:function(r){ + for(var n=0,i=r.definitions;n{ + 'use strict';Object.defineProperty(Ok,'__esModule',{value:!0});Ok.UniqueOperationNamesRule=Rie;var Pie=ft();function Rie(e){ + var t=Object.create(null);return{OperationDefinition:function(n){ + var i=n.name;return i&&(t[i.value]?e.reportError(new Pie.GraphQLError('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1; + },FragmentDefinition:function(){ + return!1; + }}; + } +});var Lk=X(Dk=>{ + 'use strict';Object.defineProperty(Dk,'__esModule',{value:!0});Dk.LoneAnonymousOperationRule=Fie;var Mie=ft(),Iie=tr();function Fie(e){ + var t=0;return{Document:function(n){ + t=n.definitions.filter(function(i){ + return i.kind===Iie.Kind.OPERATION_DEFINITION; + }).length; + },OperationDefinition:function(n){ + !n.name&&t>1&&e.reportError(new Mie.GraphQLError('This anonymous operation must be the only defined operation.',n)); + }}; + } +});var Rk=X(Pk=>{ + 'use strict';Object.defineProperty(Pk,'__esModule',{value:!0});Pk.SingleFieldSubscriptionsRule=jie;var qie=ft();function jie(e){ + return{OperationDefinition:function(r){ + r.operation==='subscription'&&r.selectionSet.selections.length!==1&&e.reportError(new qie.GraphQLError(r.name?'Subscription "'.concat(r.name.value,'" must select only one top level field.'):'Anonymous Subscription must select only one top level field.',r.selectionSet.selections.slice(1))); + }}; + } +});var Fk=X(Ik=>{ + 'use strict';Object.defineProperty(Ik,'__esModule',{value:!0});Ik.KnownTypeNamesRule=Hie;var Vie=D7($l()),Uie=D7(eu()),Bie=ft(),Mk=Vc(),Gie=is(),zie=jo();function D7(e){ + return e&&e.__esModule?e:{default:e}; + }function Hie(e){ + for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),i=0,o=e.getDocument().definitions;i{ + 'use strict';Object.defineProperty(qk,'__esModule',{value:!0});qk.FragmentsOnCompositeTypesRule=Yie;var P7=ft(),R7=ao(),M7=Rt(),I7=os();function Yie(e){ + return{InlineFragment:function(r){ + var n=r.typeCondition;if(n){ + var i=(0,I7.typeFromAST)(e.getSchema(),n);if(i&&!(0,M7.isCompositeType)(i)){ + var o=(0,R7.print)(n);e.reportError(new P7.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n)); + } + } + },FragmentDefinition:function(r){ + var n=(0,I7.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,M7.isCompositeType)(n)){ + var i=(0,R7.print)(r.typeCondition);e.reportError(new P7.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(i,'".'),r.typeCondition)); + } + }}; + } +});var Uk=X(Vk=>{ + 'use strict';Object.defineProperty(Vk,'__esModule',{value:!0});Vk.VariablesAreInputTypesRule=_ie;var Kie=ft(),Xie=ao(),Zie=Rt(),Jie=os();function _ie(e){ + return{VariableDefinition:function(r){ + var n=(0,Jie.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,Zie.isInputType)(n)){ + var i=r.variable.name.value,o=(0,Xie.print)(r.type);e.reportError(new Kie.GraphQLError('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),r.type)); + } + }}; + } +});var Gk=X(Bk=>{ + 'use strict';Object.defineProperty(Bk,'__esModule',{value:!0});Bk.ScalarLeafsRule=eoe;var F7=$ie(jt()),q7=ft(),j7=Rt();function $ie(e){ + return e&&e.__esModule?e:{default:e}; + }function eoe(e){ + return{Field:function(r){ + var n=e.getType(),i=r.selectionSet;if(n){ + if((0,j7.isLeafType)((0,j7.getNamedType)(n))){ + if(i){ + var o=r.name.value,s=(0,F7.default)(n);e.reportError(new q7.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),i)); + } + }else if(!i){ + var l=r.name.value,c=(0,F7.default)(n);e.reportError(new q7.GraphQLError('Field "'.concat(l,'" of type "').concat(c,'" must have a selection of subfields. Did you mean "').concat(l,' { ... }"?'),r)); + } + } + }}; + } +});var Hk=X(zk=>{ + 'use strict';Object.defineProperty(zk,'__esModule',{value:!0});zk.FieldsOnCorrectTypeRule=ooe;var toe=Yb(rk()),V7=Yb($l()),roe=Yb(eu()),noe=Yb(Jh()),ioe=ft(),mv=Rt();function Yb(e){ + return e&&e.__esModule?e:{default:e}; + }function ooe(e){ + return{Field:function(r){ + var n=e.getParentType();if(n){ + var i=e.getFieldDef();if(!i){ + var o=e.getSchema(),s=r.name.value,l=(0,V7.default)('to use an inline fragment on',aoe(o,n,s));l===''&&(l=(0,V7.default)(soe(n,s))),e.reportError(new ioe.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+l,r)); + } + } + }}; + }function aoe(e,t,r){ + if(!(0,mv.isAbstractType)(t))return[];for(var n=new Set,i=Object.create(null),o=0,s=e.getPossibleTypes(t);o{ + 'use strict';Object.defineProperty(Qk,'__esModule',{value:!0});Qk.UniqueFragmentNamesRule=uoe;var loe=ft();function uoe(e){ + var t=Object.create(null);return{OperationDefinition:function(){ + return!1; + },FragmentDefinition:function(n){ + var i=n.name.value;return t[i]?e.reportError(new loe.GraphQLError('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1; + }}; + } +});var Kk=X(Yk=>{ + 'use strict';Object.defineProperty(Yk,'__esModule',{value:!0});Yk.KnownFragmentNamesRule=foe;var coe=ft();function foe(e){ + return{FragmentSpread:function(r){ + var n=r.name.value,i=e.getFragment(n);i||e.reportError(new coe.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name)); + }}; + } +});var Zk=X(Xk=>{ + 'use strict';Object.defineProperty(Xk,'__esModule',{value:!0});Xk.NoUnusedFragmentsRule=poe;var doe=ft();function poe(e){ + var t=[],r=[];return{OperationDefinition:function(i){ + return t.push(i),!1; + },FragmentDefinition:function(i){ + return r.push(i),!1; + },Document:{leave:function(){ + for(var i=Object.create(null),o=0;o{ + 'use strict';Object.defineProperty(_k,'__esModule',{value:!0});_k.PossibleFragmentSpreadsRule=voe;var Kb=hoe(jt()),U7=ft(),Jk=Rt(),moe=os(),B7=rv();function hoe(e){ + return e&&e.__esModule?e:{default:e}; + }function voe(e){ + return{InlineFragment:function(r){ + var n=e.getType(),i=e.getParentType();if((0,Jk.isCompositeType)(n)&&(0,Jk.isCompositeType)(i)&&!(0,B7.doTypesOverlap)(e.getSchema(),n,i)){ + var o=(0,Kb.default)(i),s=(0,Kb.default)(n);e.reportError(new U7.GraphQLError('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(s,'".'),r)); + } + },FragmentSpread:function(r){ + var n=r.name.value,i=goe(e,n),o=e.getParentType();if(i&&o&&!(0,B7.doTypesOverlap)(e.getSchema(),i,o)){ + var s=(0,Kb.default)(o),l=(0,Kb.default)(i);e.reportError(new U7.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(l,'".'),r)); + } + }}; + }function goe(e,t){ + var r=e.getFragment(t);if(r){ + var n=(0,moe.typeFromAST)(e.getSchema(),r.typeCondition);if((0,Jk.isCompositeType)(n))return n; + } + } +});var tO=X(eO=>{ + 'use strict';Object.defineProperty(eO,'__esModule',{value:!0});eO.NoFragmentCyclesRule=boe;var yoe=ft();function boe(e){ + var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){ + return!1; + },FragmentDefinition:function(s){ + return i(s),!1; + }};function i(o){ + if(!t[o.name.value]){ + var s=o.name.value;t[s]=!0;var l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){ + n[s]=r.length;for(var c=0;c{ + 'use strict';Object.defineProperty(rO,'__esModule',{value:!0});rO.UniqueVariableNamesRule=xoe;var Aoe=ft();function xoe(e){ + var t=Object.create(null);return{OperationDefinition:function(){ + t=Object.create(null); + },VariableDefinition:function(n){ + var i=n.variable.name.value;t[i]?e.reportError(new Aoe.GraphQLError('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name; + }}; + } +});var oO=X(iO=>{ + 'use strict';Object.defineProperty(iO,'__esModule',{value:!0});iO.NoUndefinedVariablesRule=Eoe;var woe=ft();function Eoe(e){ + var t=Object.create(null);return{OperationDefinition:{enter:function(){ + t=Object.create(null); + },leave:function(n){ + for(var i=e.getRecursiveVariableUsages(n),o=0;o{ + 'use strict';Object.defineProperty(aO,'__esModule',{value:!0});aO.NoUnusedVariablesRule=Coe;var Toe=ft();function Coe(e){ + var t=[];return{OperationDefinition:{enter:function(){ + t=[]; + },leave:function(n){ + for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s{ + 'use strict';Object.defineProperty(lO,'__esModule',{value:!0});lO.KnownDirectivesRule=Ooe;var Soe=H7(jt()),z7=H7(Gn()),G7=ft(),vr=tr(),An=Fd(),koe=Bi();function H7(e){ + return e&&e.__esModule?e:{default:e}; + }function Ooe(e){ + for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():koe.specifiedDirectives,i=0;i{ + 'use strict';Object.defineProperty(fO,'__esModule',{value:!0});fO.UniqueDirectivesPerLocationRule=Roe;var Loe=ft(),cO=tr(),Q7=Vc(),Poe=Bi();function Roe(e){ + for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Poe.specifiedDirectives,i=0;i{ + 'use strict';Object.defineProperty(Xb,'__esModule',{value:!0});Xb.KnownArgumentNamesRule=qoe;Xb.KnownArgumentNamesOnDirectivesRule=_7;var K7=J7($l()),X7=J7(eu()),Z7=ft(),Moe=tr(),Ioe=Bi();function J7(e){ + return e&&e.__esModule?e:{default:e}; + }function W7(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function Y7(e){ + for(var t=1;t{ + 'use strict';Object.defineProperty(mO,'__esModule',{value:!0});mO.UniqueArgumentNamesRule=Voe;var joe=ft();function Voe(e){ + var t=Object.create(null);return{Field:function(){ + t=Object.create(null); + },Directive:function(){ + t=Object.create(null); + },Argument:function(n){ + var i=n.name.value;return t[i]?e.reportError(new joe.GraphQLError('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1; + }}; + } +});var gO=X(vO=>{ + 'use strict';Object.defineProperty(vO,'__esModule',{value:!0});vO.ValuesOfCorrectTypeRule=Hoe;var Uoe=vv(oo()),Boe=vv(_l()),hv=vv(jt()),Goe=vv($l()),zoe=vv(eu()),Bc=ft(),Zb=ao(),as=Rt();function vv(e){ + return e&&e.__esModule?e:{default:e}; + }function Hoe(e){ + return{ListValue:function(r){ + var n=(0,as.getNullableType)(e.getParentInputType());if(!(0,as.isListType)(n))return Uc(e,r),!1; + },ObjectValue:function(r){ + var n=(0,as.getNamedType)(e.getInputType());if(!(0,as.isInputObjectType)(n))return Uc(e,r),!1;for(var i=(0,Boe.default)(r.fields,function(m){ + return m.name.value; + }),o=0,s=(0,Uoe.default)(n.getFields());o{ + 'use strict';Object.defineProperty(_b,'__esModule',{value:!0});_b.ProvidedRequiredArgumentsRule=Koe;_b.ProvidedRequiredArgumentsOnDirectivesRule=o9;var t9=i9(jt()),Jb=i9(_l()),r9=ft(),n9=tr(),Qoe=ao(),Woe=Bi(),yO=Rt();function i9(e){ + return e&&e.__esModule?e:{default:e}; + }function $7(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function e9(e){ + for(var t=1;t{ + 'use strict';Object.defineProperty(AO,'__esModule',{value:!0});AO.VariablesInAllowedPositionRule=eae;var a9=$oe(jt()),Zoe=ft(),Joe=tr(),s9=Rt(),_oe=os(),l9=rv();function $oe(e){ + return e&&e.__esModule?e:{default:e}; + }function eae(e){ + var t=Object.create(null);return{OperationDefinition:{enter:function(){ + t=Object.create(null); + },leave:function(n){ + for(var i=e.getRecursiveVariableUsages(n),o=0;o{ + 'use strict';Object.defineProperty(kO,'__esModule',{value:!0});kO.OverlappingFieldsCanBeMergedRule=oae;var rae=CO(Ud()),nae=CO(Bd()),u9=CO(jt()),iae=ft(),wO=tr(),c9=ao(),Gi=Rt(),f9=os();function CO(e){ + return e&&e.__esModule?e:{default:e}; + }function d9(e){ + return Array.isArray(e)?e.map(function(t){ + var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+d9(n); + }).join(' and '):e; + }function oae(e){ + var t=new dae,r=new Map;return{SelectionSet:function(i){ + for(var o=aae(e,r,t,e.getParentType(),i),s=0;s1)for(var m=0;m0)return[[t,e.map(function(i){ + var o=i[0];return o; + })],e.reduce(function(i,o){ + var s=o[1];return i.concat(s); + },[r]),e.reduce(function(i,o){ + var s=o[2];return i.concat(s); + },[n])]; + }var dae=function(){ + function e(){ + this._data=Object.create(null); + }var t=e.prototype;return t.has=function(n,i,o){ + var s=this._data[n],l=s&&s[i];return l===void 0?!1:o===!1?l===!1:!0; + },t.add=function(n,i,o){ + this._pairSetAdd(n,i,o),this._pairSetAdd(i,n,o); + },t._pairSetAdd=function(n,i,o){ + var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[i]=o; + },e; + }(); +});var DO=X(NO=>{ + 'use strict';Object.defineProperty(NO,'__esModule',{value:!0});NO.UniqueInputFieldNamesRule=mae;var pae=ft();function mae(e){ + var t=[],r=Object.create(null);return{ObjectValue:{enter:function(){ + t.push(r),r=Object.create(null); + },leave:function(){ + r=t.pop(); + }},ObjectField:function(i){ + var o=i.name.value;r[o]?e.reportError(new pae.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],i.name])):r[o]=i.name; + }}; + } +});var PO=X(LO=>{ + 'use strict';Object.defineProperty(LO,'__esModule',{value:!0});LO.LoneSchemaDefinitionRule=hae;var h9=ft();function hae(e){ + var t,r,n,i=e.getSchema(),o=(t=(r=(n=i?.astNode)!==null&&n!==void 0?n:i?.getQueryType())!==null&&r!==void 0?r:i?.getMutationType())!==null&&t!==void 0?t:i?.getSubscriptionType(),s=0;return{SchemaDefinition:function(c){ + if(o){ + e.reportError(new h9.GraphQLError('Cannot define a new schema within a schema extension.',c));return; + }s>0&&e.reportError(new h9.GraphQLError('Must provide only one schema definition.',c)),++s; + }}; + } +});var MO=X(RO=>{ + 'use strict';Object.defineProperty(RO,'__esModule',{value:!0});RO.UniqueOperationTypesRule=vae;var v9=ft();function vae(e){ + var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){ + for(var s,l=(s=o.operationTypes)!==null&&s!==void 0?s:[],c=0;c{ + 'use strict';Object.defineProperty(IO,'__esModule',{value:!0});IO.UniqueTypeNamesRule=gae;var g9=ft();function gae(e){ + var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){ + var o=i.name.value;if(r!=null&&r.getType(o)){ + e.reportError(new g9.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return; + }return t[o]?e.reportError(new g9.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1; + } + } +});var jO=X(qO=>{ + 'use strict';Object.defineProperty(qO,'__esModule',{value:!0});qO.UniqueEnumValueNamesRule=bae;var y9=ft(),yae=Rt();function bae(e){ + var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){ + var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var c=(s=o.values)!==null&&s!==void 0?s:[],f=n[l],m=0;m{ + 'use strict';Object.defineProperty(UO,'__esModule',{value:!0});UO.UniqueFieldDefinitionNamesRule=Aae;var b9=ft(),VO=Rt();function Aae(e){ + var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){ + var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var c=(s=o.fields)!==null&&s!==void 0?s:[],f=n[l],m=0;m{ + 'use strict';Object.defineProperty(GO,'__esModule',{value:!0});GO.UniqueDirectiveNamesRule=wae;var A9=ft();function wae(e){ + var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(i){ + var o=i.name.value;if(r!=null&&r.getDirective(o)){ + e.reportError(new A9.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return; + }return t[o]?e.reportError(new A9.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1; + }}; + } +});var QO=X(HO=>{ + 'use strict';Object.defineProperty(HO,'__esModule',{value:!0});HO.PossibleTypeExtensionsRule=Sae;var w9=rA(jt()),E9=rA(Gn()),Eae=rA($l()),Tae=rA(eu()),x9=ft(),Er=tr(),Cae=Vc(),Zd=Rt(),lu;function rA(e){ + return e&&e.__esModule?e:{default:e}; + }function Jd(e,t,r){ + return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e; + }function Sae(e){ + for(var t=e.getSchema(),r=Object.create(null),n=0,i=e.getDocument().definitions;n{ + 'use strict';Object.defineProperty(_d,'__esModule',{value:!0});_d.specifiedSDLRules=_d.specifiedRules=void 0;var Dae=kk(),Lae=Nk(),Pae=Lk(),Rae=Rk(),T9=Fk(),Mae=jk(),Iae=Uk(),Fae=Gk(),qae=Hk(),jae=Wk(),Vae=Kk(),Uae=Zk(),Bae=$k(),Gae=tO(),zae=nO(),Hae=oO(),Qae=sO(),C9=uO(),S9=dO(),k9=pO(),O9=hO(),Wae=gO(),N9=bO(),Yae=xO(),Kae=OO(),D9=DO(),Xae=PO(),Zae=MO(),Jae=FO(),_ae=jO(),$ae=BO(),ese=zO(),tse=QO(),rse=Object.freeze([Dae.ExecutableDefinitionsRule,Lae.UniqueOperationNamesRule,Pae.LoneAnonymousOperationRule,Rae.SingleFieldSubscriptionsRule,T9.KnownTypeNamesRule,Mae.FragmentsOnCompositeTypesRule,Iae.VariablesAreInputTypesRule,Fae.ScalarLeafsRule,qae.FieldsOnCorrectTypeRule,jae.UniqueFragmentNamesRule,Vae.KnownFragmentNamesRule,Uae.NoUnusedFragmentsRule,Bae.PossibleFragmentSpreadsRule,Gae.NoFragmentCyclesRule,zae.UniqueVariableNamesRule,Hae.NoUndefinedVariablesRule,Qae.NoUnusedVariablesRule,C9.KnownDirectivesRule,S9.UniqueDirectivesPerLocationRule,k9.KnownArgumentNamesRule,O9.UniqueArgumentNamesRule,Wae.ValuesOfCorrectTypeRule,N9.ProvidedRequiredArgumentsRule,Yae.VariablesInAllowedPositionRule,Kae.OverlappingFieldsCanBeMergedRule,D9.UniqueInputFieldNamesRule]);_d.specifiedRules=rse;var nse=Object.freeze([Xae.LoneSchemaDefinitionRule,Zae.UniqueOperationTypesRule,Jae.UniqueTypeNamesRule,_ae.UniqueEnumValueNamesRule,$ae.UniqueFieldDefinitionNamesRule,ese.UniqueDirectiveNamesRule,T9.KnownTypeNamesRule,C9.KnownDirectivesRule,S9.UniqueDirectivesPerLocationRule,tse.PossibleTypeExtensionsRule,k9.KnownArgumentNamesOnDirectivesRule,O9.UniqueArgumentNamesRule,D9.UniqueInputFieldNamesRule,N9.ProvidedRequiredArgumentsOnDirectivesRule]);_d.specifiedSDLRules=nse; +});var KO=X(uu=>{ + 'use strict';Object.defineProperty(uu,'__esModule',{value:!0});uu.ValidationContext=uu.SDLValidationContext=uu.ASTValidationContext=void 0;var L9=tr(),ise=Jl(),P9=Wb();function R9(e,t){ + e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t; + }var YO=function(){ + function e(r,n){ + this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n; + }var t=e.prototype;return t.reportError=function(n){ + this._onError(n); + },t.getDocument=function(){ + return this._ast; + },t.getFragment=function(n){ + var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,s){ + return s.kind===L9.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o; + },Object.create(null))),i[n]; + },t.getFragmentSpreads=function(n){ + var i=this._fragmentSpreads.get(n);if(!i){ + i=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),l=0,c=s.selections;l{ + 'use strict';Object.defineProperty($d,'__esModule',{value:!0});$d.validate=fse;$d.validateSDL=XO;$d.assertValidSDL=dse;$d.assertValidSDLExtension=pse;var sse=cse(Io()),lse=ft(),nA=Jl(),use=dv(),M9=Wb(),I9=WO(),F9=KO();function cse(e){ + return e&&e.__esModule?e:{default:e}; + }function fse(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I9.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new M9.TypeInfo(e),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,sse.default)(0,'Must provide document.'),(0,use.assertValidSchema)(e);var o=Object.freeze({}),s=[],l=new F9.ValidationContext(e,t,n,function(f){ + if(i.maxErrors!=null&&s.length>=i.maxErrors)throw s.push(new lse.GraphQLError('Too many validation errors, error limit reached. Validation aborted.')),o;s.push(f); + }),c=(0,nA.visitInParallel)(r.map(function(f){ + return f(l); + }));try{ + (0,nA.visit)(t,(0,M9.visitWithTypeInfo)(n,c)); + }catch(f){ + if(f!==o)throw f; + }return s; + }function XO(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I9.specifiedSDLRules,n=[],i=new F9.SDLValidationContext(e,t,function(s){ + n.push(s); + }),o=r.map(function(s){ + return s(i); + });return(0,nA.visit)(e,(0,nA.visitInParallel)(o)),n; + }function dse(e){ + var t=XO(e);if(t.length!==0)throw new Error(t.map(function(r){ + return r.message; + }).join(` -`))}function pse(e,t){var r=XO(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join(` +`)); + }function pse(e,t){ + var r=XO(e,t);if(r.length!==0)throw new Error(r.map(function(n){ + return n.message; + }).join(` -`))}});var q9=X(ZO=>{"use strict";Object.defineProperty(ZO,"__esModule",{value:!0});ZO.default=mse;function mse(e){var t;return function(n,i,o){t||(t=new WeakMap);var s=t.get(n),l;if(s){if(l=s.get(i),l){var c=l.get(o);if(c!==void 0)return c}}else s=new WeakMap,t.set(n,s);l||(l=new WeakMap,s.set(i,l));var f=e(n,i,o);return l.set(o,f),f}}});var j9=X(JO=>{"use strict";Object.defineProperty(JO,"__esModule",{value:!0});JO.default=gse;var hse=vse(tb());function vse(e){return e&&e.__esModule?e:{default:e}}function gse(e,t,r){return e.reduce(function(n,i){return(0,hse.default)(n)?n.then(function(o){return t(o,i)}):t(n,i)},r)}});var V9=X(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0});_O.default=yse;function yse(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(i,o,s){return i[t[s]]=o,i},Object.create(null))})}});var gv=X(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.addPath=bse;iA.pathToArray=Ase;function bse(e,t,r){return{prev:e,key:t,typename:r}}function Ase(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var aA=X($O=>{"use strict";Object.defineProperty($O,"__esModule",{value:!0});$O.getOperationRootType=xse;var oA=ft();function xse(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new oA.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new oA.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var i=e.getSubscriptionType();if(!i)throw new oA.GraphQLError("Schema is not configured for subscriptions.",t);return i}throw new oA.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var tN=X(eN=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});eN.default=wse;function wse(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var bv=X(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0});rN.valueFromAST=yv;var Ese=sA(oo()),Tse=sA(_l()),Cse=sA(jt()),Sse=sA(Gn()),tp=tr(),Gc=Rt();function sA(e){return e&&e.__esModule?e:{default:e}}function yv(e,t,r){if(e){if(e.kind===tp.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var i=r[n];return i===null&&(0,Gc.isNonNullType)(t)?void 0:i}if((0,Gc.isNonNullType)(t))return e.kind===tp.Kind.NULL?void 0:yv(e,t.ofType,r);if(e.kind===tp.Kind.NULL)return null;if((0,Gc.isListType)(t)){var o=t.ofType;if(e.kind===tp.Kind.LIST){for(var s=[],l=0,c=e.values;l{"use strict";Object.defineProperty(nN,"__esModule",{value:!0});nN.coerceInputValue=Mse;var kse=cu(oo()),lA=cu(jt()),Ose=cu(Gn()),Nse=cu($l()),Dse=cu(es()),Lse=cu(qb()),Pse=cu(eu()),Rse=cu(tN()),el=gv(),zc=ft(),Av=Rt();function cu(e){return e&&e.__esModule?e:{default:e}}function Mse(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ise;return xv(e,t,r)}function Ise(e,t,r){var n="Invalid value "+(0,lA.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,Rse.default)(e),'"')),r.message=n+": "+r.message,r}function xv(e,t,r,n){if((0,Av.isNonNullType)(t)){if(e!=null)return xv(e,t.ofType,r,n);r((0,el.pathToArray)(n),e,new zc.GraphQLError('Expected non-nullable type "'.concat((0,lA.default)(t),'" not to be null.')));return}if(e==null)return null;if((0,Av.isListType)(t)){var i=t.ofType,o=(0,Lse.default)(e,function(b,C){var x=(0,el.addPath)(n,C,void 0);return xv(b,i,r,x)});return o??[xv(e,i,r,n)]}if((0,Av.isInputObjectType)(t)){if(!(0,Dse.default)(e)){r((0,el.pathToArray)(n),e,new zc.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return}for(var s={},l=t.getFields(),c=0,f=(0,kse.default)(l);c{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.getVariableValues=Bse;wv.getArgumentValues=H9;wv.getDirectiveValues=zse;var Fse=uA(Ud()),qse=uA(_l()),rp=uA(jt()),jse=uA(tN()),tl=ft(),B9=tr(),G9=ao(),np=Rt(),Vse=os(),z9=bv(),Use=iN();function uA(e){return e&&e.__esModule?e:{default:e}}function Bse(e,t,r,n){var i=[],o=n?.maxErrors;try{var s=Gse(e,t,r,function(l){if(o!=null&&i.length>=o)throw new tl.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(l)});if(i.length===0)return{coerced:s}}catch(l){i.push(l)}return{errors:i}}function Gse(e,t,r,n){for(var i={},o=function(f){var m=t[f],v=m.variable.name.value,g=(0,Vse.typeFromAST)(e,m.type);if(!(0,np.isInputType)(g)){var y=(0,G9.print)(m.type);return n(new tl.GraphQLError('Variable "$'.concat(v,'" expected value of type "').concat(y,'" which cannot be used as an input type.'),m.type)),"continue"}if(!Q9(r,v)){if(m.defaultValue)i[v]=(0,z9.valueFromAST)(m.defaultValue,g);else if((0,np.isNonNullType)(g)){var w=(0,rp.default)(g);n(new tl.GraphQLError('Variable "$'.concat(v,'" of required type "').concat(w,'" was not provided.'),m))}return"continue"}var T=r[v];if(T===null&&(0,np.isNonNullType)(g)){var S=(0,rp.default)(g);return n(new tl.GraphQLError('Variable "$'.concat(v,'" of non-null type "').concat(S,'" must not be null.'),m)),"continue"}i[v]=(0,Use.coerceInputValue)(T,g,function(A,b,C){var x='Variable "$'.concat(v,'" got invalid value ')+(0,rp.default)(b);A.length>0&&(x+=' at "'.concat(v).concat((0,jse.default)(A),'"')),n(new tl.GraphQLError(x+"; "+C.message,m,void 0,void 0,void 0,C.originalError))})},s=0;s{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.execute=_se;lo.executeSync=$se;lo.assertValidExecutionArguments=$9;lo.buildExecutionContext=e8;lo.collectFields=Cv;lo.buildResolveInfo=n8;lo.getFieldDef=a8;lo.defaultFieldResolver=lo.defaultTypeResolver=void 0;var op=nl(jt()),Hse=nl(q9()),Qse=nl(Gn()),W9=nl(Io()),Vo=nl(tb()),lN=nl(es()),Wse=nl(qb()),Yse=nl(j9()),Kse=nl(V9()),Hc=gv(),ss=ft(),cA=Xh(),Tv=tr(),Xse=dv(),ip=jo(),Y9=Bi(),rl=Rt(),Zse=os(),Jse=aA(),fA=Ev();function nl(e){return e&&e.__esModule?e:{default:e}}function _se(e,t,r,n,i,o,s,l){return arguments.length===1?aN(e):aN({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l})}function $se(e){var t=aN(e);if((0,Vo.default)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function aN(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.typeResolver;$9(t,r,o);var f=e8(t,r,n,i,o,s,l,c);if(Array.isArray(f))return{errors:f};var m=ele(f,f.operation,n);return _9(f,m)}function _9(e,t){return(0,Vo.default)(t)?t.then(function(r){return _9(e,r)}):e.errors.length===0?{data:t}:{errors:e.errors,data:t}}function $9(e,t,r){t||(0,W9.default)(0,"Must provide document."),(0,Xse.assertValidSchema)(e),r==null||(0,lN.default)(r)||(0,W9.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function e8(e,t,r,n,i,o,s,l){for(var c,f,m,v=Object.create(null),g=0,y=t.definitions;g{"use strict";Object.defineProperty(mA,"__esModule",{value:!0});mA.graphql=mle;mA.graphqlSync=hle;var lle=ple(tb()),ule=jd(),cle=ep(),fle=dv(),dle=kv();function ple(e){return e&&e.__esModule?e:{default:e}}function mle(e,t,r,n,i,o,s,l){var c=arguments;return new Promise(function(f){return f(c.length===1?pA(e):pA({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l}))})}function hle(e,t,r,n,i,o,s,l){var c=arguments.length===1?pA(e):pA({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l});if((0,lle.default)(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function pA(e){var t=e.schema,r=e.source,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.typeResolver,f=(0,fle.validateSchema)(t);if(f.length>0)return{errors:f};var m;try{m=(0,ule.parse)(r)}catch(g){return{errors:[g]}}var v=(0,cle.validate)(t,m);return v.length>0?{errors:v}:(0,dle.execute)({schema:t,document:m,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c})}});var u8=X(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Object.defineProperty(Pe,"isSchema",{enumerable:!0,get:function(){return uN.isSchema}});Object.defineProperty(Pe,"assertSchema",{enumerable:!0,get:function(){return uN.assertSchema}});Object.defineProperty(Pe,"GraphQLSchema",{enumerable:!0,get:function(){return uN.GraphQLSchema}});Object.defineProperty(Pe,"isType",{enumerable:!0,get:function(){return mt.isType}});Object.defineProperty(Pe,"isScalarType",{enumerable:!0,get:function(){return mt.isScalarType}});Object.defineProperty(Pe,"isObjectType",{enumerable:!0,get:function(){return mt.isObjectType}});Object.defineProperty(Pe,"isInterfaceType",{enumerable:!0,get:function(){return mt.isInterfaceType}});Object.defineProperty(Pe,"isUnionType",{enumerable:!0,get:function(){return mt.isUnionType}});Object.defineProperty(Pe,"isEnumType",{enumerable:!0,get:function(){return mt.isEnumType}});Object.defineProperty(Pe,"isInputObjectType",{enumerable:!0,get:function(){return mt.isInputObjectType}});Object.defineProperty(Pe,"isListType",{enumerable:!0,get:function(){return mt.isListType}});Object.defineProperty(Pe,"isNonNullType",{enumerable:!0,get:function(){return mt.isNonNullType}});Object.defineProperty(Pe,"isInputType",{enumerable:!0,get:function(){return mt.isInputType}});Object.defineProperty(Pe,"isOutputType",{enumerable:!0,get:function(){return mt.isOutputType}});Object.defineProperty(Pe,"isLeafType",{enumerable:!0,get:function(){return mt.isLeafType}});Object.defineProperty(Pe,"isCompositeType",{enumerable:!0,get:function(){return mt.isCompositeType}});Object.defineProperty(Pe,"isAbstractType",{enumerable:!0,get:function(){return mt.isAbstractType}});Object.defineProperty(Pe,"isWrappingType",{enumerable:!0,get:function(){return mt.isWrappingType}});Object.defineProperty(Pe,"isNullableType",{enumerable:!0,get:function(){return mt.isNullableType}});Object.defineProperty(Pe,"isNamedType",{enumerable:!0,get:function(){return mt.isNamedType}});Object.defineProperty(Pe,"isRequiredArgument",{enumerable:!0,get:function(){return mt.isRequiredArgument}});Object.defineProperty(Pe,"isRequiredInputField",{enumerable:!0,get:function(){return mt.isRequiredInputField}});Object.defineProperty(Pe,"assertType",{enumerable:!0,get:function(){return mt.assertType}});Object.defineProperty(Pe,"assertScalarType",{enumerable:!0,get:function(){return mt.assertScalarType}});Object.defineProperty(Pe,"assertObjectType",{enumerable:!0,get:function(){return mt.assertObjectType}});Object.defineProperty(Pe,"assertInterfaceType",{enumerable:!0,get:function(){return mt.assertInterfaceType}});Object.defineProperty(Pe,"assertUnionType",{enumerable:!0,get:function(){return mt.assertUnionType}});Object.defineProperty(Pe,"assertEnumType",{enumerable:!0,get:function(){return mt.assertEnumType}});Object.defineProperty(Pe,"assertInputObjectType",{enumerable:!0,get:function(){return mt.assertInputObjectType}});Object.defineProperty(Pe,"assertListType",{enumerable:!0,get:function(){return mt.assertListType}});Object.defineProperty(Pe,"assertNonNullType",{enumerable:!0,get:function(){return mt.assertNonNullType}});Object.defineProperty(Pe,"assertInputType",{enumerable:!0,get:function(){return mt.assertInputType}});Object.defineProperty(Pe,"assertOutputType",{enumerable:!0,get:function(){return mt.assertOutputType}});Object.defineProperty(Pe,"assertLeafType",{enumerable:!0,get:function(){return mt.assertLeafType}});Object.defineProperty(Pe,"assertCompositeType",{enumerable:!0,get:function(){return mt.assertCompositeType}});Object.defineProperty(Pe,"assertAbstractType",{enumerable:!0,get:function(){return mt.assertAbstractType}});Object.defineProperty(Pe,"assertWrappingType",{enumerable:!0,get:function(){return mt.assertWrappingType}});Object.defineProperty(Pe,"assertNullableType",{enumerable:!0,get:function(){return mt.assertNullableType}});Object.defineProperty(Pe,"assertNamedType",{enumerable:!0,get:function(){return mt.assertNamedType}});Object.defineProperty(Pe,"getNullableType",{enumerable:!0,get:function(){return mt.getNullableType}});Object.defineProperty(Pe,"getNamedType",{enumerable:!0,get:function(){return mt.getNamedType}});Object.defineProperty(Pe,"GraphQLScalarType",{enumerable:!0,get:function(){return mt.GraphQLScalarType}});Object.defineProperty(Pe,"GraphQLObjectType",{enumerable:!0,get:function(){return mt.GraphQLObjectType}});Object.defineProperty(Pe,"GraphQLInterfaceType",{enumerable:!0,get:function(){return mt.GraphQLInterfaceType}});Object.defineProperty(Pe,"GraphQLUnionType",{enumerable:!0,get:function(){return mt.GraphQLUnionType}});Object.defineProperty(Pe,"GraphQLEnumType",{enumerable:!0,get:function(){return mt.GraphQLEnumType}});Object.defineProperty(Pe,"GraphQLInputObjectType",{enumerable:!0,get:function(){return mt.GraphQLInputObjectType}});Object.defineProperty(Pe,"GraphQLList",{enumerable:!0,get:function(){return mt.GraphQLList}});Object.defineProperty(Pe,"GraphQLNonNull",{enumerable:!0,get:function(){return mt.GraphQLNonNull}});Object.defineProperty(Pe,"isDirective",{enumerable:!0,get:function(){return ls.isDirective}});Object.defineProperty(Pe,"assertDirective",{enumerable:!0,get:function(){return ls.assertDirective}});Object.defineProperty(Pe,"GraphQLDirective",{enumerable:!0,get:function(){return ls.GraphQLDirective}});Object.defineProperty(Pe,"isSpecifiedDirective",{enumerable:!0,get:function(){return ls.isSpecifiedDirective}});Object.defineProperty(Pe,"specifiedDirectives",{enumerable:!0,get:function(){return ls.specifiedDirectives}});Object.defineProperty(Pe,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ls.GraphQLIncludeDirective}});Object.defineProperty(Pe,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ls.GraphQLSkipDirective}});Object.defineProperty(Pe,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ls.GraphQLDeprecatedDirective}});Object.defineProperty(Pe,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ls.GraphQLSpecifiedByDirective}});Object.defineProperty(Pe,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ls.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Pe,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Qc.isSpecifiedScalarType}});Object.defineProperty(Pe,"specifiedScalarTypes",{enumerable:!0,get:function(){return Qc.specifiedScalarTypes}});Object.defineProperty(Pe,"GraphQLInt",{enumerable:!0,get:function(){return Qc.GraphQLInt}});Object.defineProperty(Pe,"GraphQLFloat",{enumerable:!0,get:function(){return Qc.GraphQLFloat}});Object.defineProperty(Pe,"GraphQLString",{enumerable:!0,get:function(){return Qc.GraphQLString}});Object.defineProperty(Pe,"GraphQLBoolean",{enumerable:!0,get:function(){return Qc.GraphQLBoolean}});Object.defineProperty(Pe,"GraphQLID",{enumerable:!0,get:function(){return Qc.GraphQLID}});Object.defineProperty(Pe,"isIntrospectionType",{enumerable:!0,get:function(){return zi.isIntrospectionType}});Object.defineProperty(Pe,"introspectionTypes",{enumerable:!0,get:function(){return zi.introspectionTypes}});Object.defineProperty(Pe,"__Schema",{enumerable:!0,get:function(){return zi.__Schema}});Object.defineProperty(Pe,"__Directive",{enumerable:!0,get:function(){return zi.__Directive}});Object.defineProperty(Pe,"__DirectiveLocation",{enumerable:!0,get:function(){return zi.__DirectiveLocation}});Object.defineProperty(Pe,"__Type",{enumerable:!0,get:function(){return zi.__Type}});Object.defineProperty(Pe,"__Field",{enumerable:!0,get:function(){return zi.__Field}});Object.defineProperty(Pe,"__InputValue",{enumerable:!0,get:function(){return zi.__InputValue}});Object.defineProperty(Pe,"__EnumValue",{enumerable:!0,get:function(){return zi.__EnumValue}});Object.defineProperty(Pe,"__TypeKind",{enumerable:!0,get:function(){return zi.__TypeKind}});Object.defineProperty(Pe,"TypeKind",{enumerable:!0,get:function(){return zi.TypeKind}});Object.defineProperty(Pe,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return zi.SchemaMetaFieldDef}});Object.defineProperty(Pe,"TypeMetaFieldDef",{enumerable:!0,get:function(){return zi.TypeMetaFieldDef}});Object.defineProperty(Pe,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return zi.TypeNameMetaFieldDef}});Object.defineProperty(Pe,"validateSchema",{enumerable:!0,get:function(){return l8.validateSchema}});Object.defineProperty(Pe,"assertValidSchema",{enumerable:!0,get:function(){return l8.assertValidSchema}});var uN=qc(),mt=Rt(),ls=Bi(),Qc=is(),zi=jo(),l8=dv()});var d8=X(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Object.defineProperty(Zt,"Source",{enumerable:!0,get:function(){return vle.Source}});Object.defineProperty(Zt,"getLocation",{enumerable:!0,get:function(){return gle.getLocation}});Object.defineProperty(Zt,"printLocation",{enumerable:!0,get:function(){return c8.printLocation}});Object.defineProperty(Zt,"printSourceLocation",{enumerable:!0,get:function(){return c8.printSourceLocation}});Object.defineProperty(Zt,"Kind",{enumerable:!0,get:function(){return yle.Kind}});Object.defineProperty(Zt,"TokenKind",{enumerable:!0,get:function(){return ble.TokenKind}});Object.defineProperty(Zt,"Lexer",{enumerable:!0,get:function(){return Ale.Lexer}});Object.defineProperty(Zt,"parse",{enumerable:!0,get:function(){return cN.parse}});Object.defineProperty(Zt,"parseValue",{enumerable:!0,get:function(){return cN.parseValue}});Object.defineProperty(Zt,"parseType",{enumerable:!0,get:function(){return cN.parseType}});Object.defineProperty(Zt,"print",{enumerable:!0,get:function(){return xle.print}});Object.defineProperty(Zt,"visit",{enumerable:!0,get:function(){return hA.visit}});Object.defineProperty(Zt,"visitInParallel",{enumerable:!0,get:function(){return hA.visitInParallel}});Object.defineProperty(Zt,"getVisitFn",{enumerable:!0,get:function(){return hA.getVisitFn}});Object.defineProperty(Zt,"BREAK",{enumerable:!0,get:function(){return hA.BREAK}});Object.defineProperty(Zt,"Location",{enumerable:!0,get:function(){return f8.Location}});Object.defineProperty(Zt,"Token",{enumerable:!0,get:function(){return f8.Token}});Object.defineProperty(Zt,"isDefinitionNode",{enumerable:!0,get:function(){return il.isDefinitionNode}});Object.defineProperty(Zt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return il.isExecutableDefinitionNode}});Object.defineProperty(Zt,"isSelectionNode",{enumerable:!0,get:function(){return il.isSelectionNode}});Object.defineProperty(Zt,"isValueNode",{enumerable:!0,get:function(){return il.isValueNode}});Object.defineProperty(Zt,"isTypeNode",{enumerable:!0,get:function(){return il.isTypeNode}});Object.defineProperty(Zt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return il.isTypeSystemDefinitionNode}});Object.defineProperty(Zt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return il.isTypeDefinitionNode}});Object.defineProperty(Zt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return il.isTypeSystemExtensionNode}});Object.defineProperty(Zt,"isTypeExtensionNode",{enumerable:!0,get:function(){return il.isTypeExtensionNode}});Object.defineProperty(Zt,"DirectiveLocation",{enumerable:!0,get:function(){return wle.DirectiveLocation}});var vle=vb(),gle=nb(),c8=vS(),yle=tr(),ble=Id(),Ale=bb(),cN=jd(),xle=ao(),hA=Jl(),f8=Md(),il=Vc(),wle=Fd()});var p8=X(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});Object.defineProperty(fu,"responsePathAsArray",{enumerable:!0,get:function(){return Ele.pathToArray}});Object.defineProperty(fu,"execute",{enumerable:!0,get:function(){return vA.execute}});Object.defineProperty(fu,"executeSync",{enumerable:!0,get:function(){return vA.executeSync}});Object.defineProperty(fu,"defaultFieldResolver",{enumerable:!0,get:function(){return vA.defaultFieldResolver}});Object.defineProperty(fu,"defaultTypeResolver",{enumerable:!0,get:function(){return vA.defaultTypeResolver}});Object.defineProperty(fu,"getDirectiveValues",{enumerable:!0,get:function(){return Tle.getDirectiveValues}});var Ele=gv(),vA=kv(),Tle=Ev()});var m8=X(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0});fN.default=Sle;var Cle=ts();function Sle(e){return typeof e?.[Cle.SYMBOL_ASYNC_ITERATOR]=="function"}});var y8=X(dN=>{"use strict";Object.defineProperty(dN,"__esModule",{value:!0});dN.default=Ole;var h8=ts();function kle(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ole(e,t,r){var n=e[h8.SYMBOL_ASYNC_ITERATOR],i=n.call(e),o,s;typeof i.return=="function"&&(o=i.return,s=function(v){var g=function(){return Promise.reject(v)};return o.call(i).then(g,g)});function l(m){return m.done?m:v8(m.value,t).then(g8,s)}var c;if(r){var f=r;c=function(v){return v8(v,f).then(g8,s)}}return kle({next:function(){return i.next().then(l,c)},return:function(){return o?o.call(i).then(l,c):Promise.resolve({value:void 0,done:!0})},throw:function(v){return typeof i.throw=="function"?i.throw(v).then(l,c):Promise.reject(v).catch(s)}},h8.SYMBOL_ASYNC_ITERATOR,function(){return this})}function v8(e,t){return new Promise(function(r){return r(t(e))})}function g8(e){return{value:e,done:!1}}});var C8=X(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0});gA.subscribe=Rle;gA.createSourceEventStream=T8;var Nle=mN(jt()),x8=mN(m8()),pN=gv(),w8=ft(),b8=Xh(),Dle=Ev(),ap=kv(),Lle=aA(),Ple=mN(y8());function mN(e){return e&&e.__esModule?e:{default:e}}function Rle(e,t,r,n,i,o,s,l){return arguments.length===1?A8(e):A8({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,subscribeFieldResolver:l})}function E8(e){if(e instanceof w8.GraphQLError)return{errors:[e]};throw e}function A8(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.subscribeFieldResolver,f=T8(t,r,n,i,o,s,c),m=function(g){return(0,ap.execute)({schema:t,document:r,rootValue:g,contextValue:i,variableValues:o,operationName:s,fieldResolver:l})};return f.then(function(v){return(0,x8.default)(v)?(0,Ple.default)(v,m,E8):v})}function T8(e,t,r,n,i,o,s){return(0,ap.assertValidExecutionArguments)(e,t,i),new Promise(function(l){var c=(0,ap.buildExecutionContext)(e,t,r,n,i,o,s);l(Array.isArray(c)?{errors:c}:Mle(c))}).catch(E8)}function Mle(e){var t=e.schema,r=e.operation,n=e.variableValues,i=e.rootValue,o=(0,Lle.getOperationRootType)(t,r),s=(0,ap.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),l=Object.keys(s),c=l[0],f=s[c],m=f[0],v=m.name.value,g=(0,ap.getFieldDef)(t,o,v);if(!g)throw new w8.GraphQLError('The subscription field "'.concat(v,'" is not defined.'),f);var y=(0,pN.addPath)(void 0,c,o.name),w=(0,ap.buildResolveInfo)(e,g,f,o,y);return new Promise(function(T){var S,A=(0,Dle.getArgumentValues)(g,f[0],n),b=e.contextValue,C=(S=g.subscribe)!==null&&S!==void 0?S:e.fieldResolver;T(C(i,A,b,w))}).then(function(T){if(T instanceof Error)throw(0,b8.locatedError)(T,f,(0,pN.pathToArray)(y));if(!(0,x8.default)(T))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,Nle.default)(T),"."));return T},function(T){throw(0,b8.locatedError)(T,f,(0,pN.pathToArray)(y))})}});var k8=X(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});Object.defineProperty(yA,"subscribe",{enumerable:!0,get:function(){return S8.subscribe}});Object.defineProperty(yA,"createSourceEventStream",{enumerable:!0,get:function(){return S8.createSourceEventStream}});var S8=C8()});var yN=X(gN=>{"use strict";Object.defineProperty(gN,"__esModule",{value:!0});gN.NoDeprecatedCustomRule=Fle;var hN=Ile(Gn()),Ov=ft(),vN=Rt();function Ile(e){return e&&e.__esModule?e:{default:e}}function Fle(e){return{Field:function(r){var n=e.getFieldDef(),i=n?.deprecationReason;if(n&&i!=null){var o=e.getParentType();o!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError("The field ".concat(o.name,".").concat(n.name," is deprecated. ").concat(i),r))}},Argument:function(r){var n=e.getArgument(),i=n?.deprecationReason;if(n&&i!=null){var o=e.getDirective();if(o!=null)e.reportError(new Ov.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r));else{var s=e.getParentType(),l=e.getFieldDef();s!=null&&l!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError('Field "'.concat(s.name,".").concat(l.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r))}}},ObjectField:function(r){var n=(0,vN.getNamedType)(e.getParentInputType());if((0,vN.isInputObjectType)(n)){var i=n.getFields()[r.name.value],o=i?.deprecationReason;o!=null&&e.reportError(new Ov.GraphQLError("The input field ".concat(n.name,".").concat(i.name," is deprecated. ").concat(o),r))}},EnumValue:function(r){var n=e.getEnumValue(),i=n?.deprecationReason;if(n&&i!=null){var o=(0,vN.getNamedType)(e.getInputType());o!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError('The enum value "'.concat(o.name,".").concat(n.name,'" is deprecated. ').concat(i),r))}}}}});var O8=X(bN=>{"use strict";Object.defineProperty(bN,"__esModule",{value:!0});bN.NoSchemaIntrospectionCustomRule=Ule;var qle=ft(),jle=Rt(),Vle=jo();function Ule(e){return{Field:function(r){var n=(0,jle.getNamedType)(e.getType());n&&(0,Vle.isIntrospectionType)(n)&&e.reportError(new qle.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}});var N8=X(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Object.defineProperty(Tt,"validate",{enumerable:!0,get:function(){return Ble.validate}});Object.defineProperty(Tt,"ValidationContext",{enumerable:!0,get:function(){return Gle.ValidationContext}});Object.defineProperty(Tt,"specifiedRules",{enumerable:!0,get:function(){return zle.specifiedRules}});Object.defineProperty(Tt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Hle.ExecutableDefinitionsRule}});Object.defineProperty(Tt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Qle.FieldsOnCorrectTypeRule}});Object.defineProperty(Tt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Wle.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Yle.KnownArgumentNamesRule}});Object.defineProperty(Tt,"KnownDirectivesRule",{enumerable:!0,get:function(){return Kle.KnownDirectivesRule}});Object.defineProperty(Tt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Xle.KnownFragmentNamesRule}});Object.defineProperty(Tt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Zle.KnownTypeNamesRule}});Object.defineProperty(Tt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Jle.LoneAnonymousOperationRule}});Object.defineProperty(Tt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return _le.NoFragmentCyclesRule}});Object.defineProperty(Tt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return $le.NoUndefinedVariablesRule}});Object.defineProperty(Tt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return eue.NoUnusedFragmentsRule}});Object.defineProperty(Tt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return tue.NoUnusedVariablesRule}});Object.defineProperty(Tt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return rue.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return nue.PossibleFragmentSpreadsRule}});Object.defineProperty(Tt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return iue.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tt,"ScalarLeafsRule",{enumerable:!0,get:function(){return oue.ScalarLeafsRule}});Object.defineProperty(Tt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return aue.SingleFieldSubscriptionsRule}});Object.defineProperty(Tt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return sue.UniqueArgumentNamesRule}});Object.defineProperty(Tt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return lue.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return uue.UniqueFragmentNamesRule}});Object.defineProperty(Tt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return cue.UniqueInputFieldNamesRule}});Object.defineProperty(Tt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return fue.UniqueOperationNamesRule}});Object.defineProperty(Tt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return due.UniqueVariableNamesRule}});Object.defineProperty(Tt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return pue.ValuesOfCorrectTypeRule}});Object.defineProperty(Tt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return mue.VariablesAreInputTypesRule}});Object.defineProperty(Tt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return hue.VariablesInAllowedPositionRule}});Object.defineProperty(Tt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return vue.LoneSchemaDefinitionRule}});Object.defineProperty(Tt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return gue.UniqueOperationTypesRule}});Object.defineProperty(Tt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return yue.UniqueTypeNamesRule}});Object.defineProperty(Tt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return bue.UniqueEnumValueNamesRule}});Object.defineProperty(Tt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Aue.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return xue.UniqueDirectiveNamesRule}});Object.defineProperty(Tt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return wue.PossibleTypeExtensionsRule}});Object.defineProperty(Tt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Eue.NoDeprecatedCustomRule}});Object.defineProperty(Tt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Tue.NoSchemaIntrospectionCustomRule}});var Ble=ep(),Gle=KO(),zle=WO(),Hle=kk(),Qle=Hk(),Wle=jk(),Yle=pO(),Kle=uO(),Xle=Kk(),Zle=Fk(),Jle=Lk(),_le=tO(),$le=oO(),eue=Zk(),tue=sO(),rue=OO(),nue=$k(),iue=bO(),oue=Gk(),aue=Rk(),sue=hO(),lue=dO(),uue=Wk(),cue=DO(),fue=Nk(),due=nO(),pue=gO(),mue=Uk(),hue=xO(),vue=PO(),gue=MO(),yue=FO(),bue=jO(),Aue=BO(),xue=zO(),wue=QO(),Eue=yN(),Tue=O8()});var D8=X(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});AN.formatError=kue;var Cue=Sue(Io());function Sue(e){return e&&e.__esModule?e:{default:e}}function kue(e){var t;e||(0,Cue.default)(0,"Received null or undefined error.");var r=(t=e.message)!==null&&t!==void 0?t:"An unknown error occurred.",n=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}}});var P8=X(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Object.defineProperty(Wc,"GraphQLError",{enumerable:!0,get:function(){return L8.GraphQLError}});Object.defineProperty(Wc,"printError",{enumerable:!0,get:function(){return L8.printError}});Object.defineProperty(Wc,"syntaxError",{enumerable:!0,get:function(){return Oue.syntaxError}});Object.defineProperty(Wc,"locatedError",{enumerable:!0,get:function(){return Nue.locatedError}});Object.defineProperty(Wc,"formatError",{enumerable:!0,get:function(){return Due.formatError}});var L8=ft(),Oue=lb(),Nue=Xh(),Due=D8()});var wN=X(xN=>{"use strict";Object.defineProperty(xN,"__esModule",{value:!0});xN.getIntrospectionQuery=Rue;function R8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lue(e){for(var t=1;t{ + 'use strict';Object.defineProperty(ZO,'__esModule',{value:!0});ZO.default=mse;function mse(e){ + var t;return function(n,i,o){ + t||(t=new WeakMap);var s=t.get(n),l;if(s){ + if(l=s.get(i),l){ + var c=l.get(o);if(c!==void 0)return c; + } + }else s=new WeakMap,t.set(n,s);l||(l=new WeakMap,s.set(i,l));var f=e(n,i,o);return l.set(o,f),f; + }; + } +});var j9=X(JO=>{ + 'use strict';Object.defineProperty(JO,'__esModule',{value:!0});JO.default=gse;var hse=vse(tb());function vse(e){ + return e&&e.__esModule?e:{default:e}; + }function gse(e,t,r){ + return e.reduce(function(n,i){ + return(0,hse.default)(n)?n.then(function(o){ + return t(o,i); + }):t(n,i); + },r); + } +});var V9=X(_O=>{ + 'use strict';Object.defineProperty(_O,'__esModule',{value:!0});_O.default=yse;function yse(e){ + var t=Object.keys(e),r=t.map(function(n){ + return e[n]; + });return Promise.all(r).then(function(n){ + return n.reduce(function(i,o,s){ + return i[t[s]]=o,i; + },Object.create(null)); + }); + } +});var gv=X(iA=>{ + 'use strict';Object.defineProperty(iA,'__esModule',{value:!0});iA.addPath=bse;iA.pathToArray=Ase;function bse(e,t,r){ + return{prev:e,key:t,typename:r}; + }function Ase(e){ + for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse(); + } +});var aA=X($O=>{ + 'use strict';Object.defineProperty($O,'__esModule',{value:!0});$O.getOperationRootType=xse;var oA=ft();function xse(e,t){ + if(t.operation==='query'){ + var r=e.getQueryType();if(!r)throw new oA.GraphQLError('Schema does not define the required query root type.',t);return r; + }if(t.operation==='mutation'){ + var n=e.getMutationType();if(!n)throw new oA.GraphQLError('Schema is not configured for mutations.',t);return n; + }if(t.operation==='subscription'){ + var i=e.getSubscriptionType();if(!i)throw new oA.GraphQLError('Schema is not configured for subscriptions.',t);return i; + }throw new oA.GraphQLError('Can only have query, mutation and subscription operations.',t); + } +});var tN=X(eN=>{ + 'use strict';Object.defineProperty(eN,'__esModule',{value:!0});eN.default=wse;function wse(e){ + return e.map(function(t){ + return typeof t=='number'?'['+t.toString()+']':'.'+t; + }).join(''); + } +});var bv=X(rN=>{ + 'use strict';Object.defineProperty(rN,'__esModule',{value:!0});rN.valueFromAST=yv;var Ese=sA(oo()),Tse=sA(_l()),Cse=sA(jt()),Sse=sA(Gn()),tp=tr(),Gc=Rt();function sA(e){ + return e&&e.__esModule?e:{default:e}; + }function yv(e,t,r){ + if(e){ + if(e.kind===tp.Kind.VARIABLE){ + var n=e.name.value;if(r==null||r[n]===void 0)return;var i=r[n];return i===null&&(0,Gc.isNonNullType)(t)?void 0:i; + }if((0,Gc.isNonNullType)(t))return e.kind===tp.Kind.NULL?void 0:yv(e,t.ofType,r);if(e.kind===tp.Kind.NULL)return null;if((0,Gc.isListType)(t)){ + var o=t.ofType;if(e.kind===tp.Kind.LIST){ + for(var s=[],l=0,c=e.values;l{ + 'use strict';Object.defineProperty(nN,'__esModule',{value:!0});nN.coerceInputValue=Mse;var kse=cu(oo()),lA=cu(jt()),Ose=cu(Gn()),Nse=cu($l()),Dse=cu(es()),Lse=cu(qb()),Pse=cu(eu()),Rse=cu(tN()),el=gv(),zc=ft(),Av=Rt();function cu(e){ + return e&&e.__esModule?e:{default:e}; + }function Mse(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ise;return xv(e,t,r); + }function Ise(e,t,r){ + var n='Invalid value '+(0,lA.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,Rse.default)(e),'"')),r.message=n+': '+r.message,r; + }function xv(e,t,r,n){ + if((0,Av.isNonNullType)(t)){ + if(e!=null)return xv(e,t.ofType,r,n);r((0,el.pathToArray)(n),e,new zc.GraphQLError('Expected non-nullable type "'.concat((0,lA.default)(t),'" not to be null.')));return; + }if(e==null)return null;if((0,Av.isListType)(t)){ + var i=t.ofType,o=(0,Lse.default)(e,function(b,C){ + var x=(0,el.addPath)(n,C,void 0);return xv(b,i,r,x); + });return o??[xv(e,i,r,n)]; + }if((0,Av.isInputObjectType)(t)){ + if(!(0,Dse.default)(e)){ + r((0,el.pathToArray)(n),e,new zc.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return; + }for(var s={},l=t.getFields(),c=0,f=(0,kse.default)(l);c{ + 'use strict';Object.defineProperty(wv,'__esModule',{value:!0});wv.getVariableValues=Bse;wv.getArgumentValues=H9;wv.getDirectiveValues=zse;var Fse=uA(Ud()),qse=uA(_l()),rp=uA(jt()),jse=uA(tN()),tl=ft(),B9=tr(),G9=ao(),np=Rt(),Vse=os(),z9=bv(),Use=iN();function uA(e){ + return e&&e.__esModule?e:{default:e}; + }function Bse(e,t,r,n){ + var i=[],o=n?.maxErrors;try{ + var s=Gse(e,t,r,function(l){ + if(o!=null&&i.length>=o)throw new tl.GraphQLError('Too many errors processing variables, error limit reached. Execution aborted.');i.push(l); + });if(i.length===0)return{coerced:s}; + }catch(l){ + i.push(l); + }return{errors:i}; + }function Gse(e,t,r,n){ + for(var i={},o=function(f){ + var m=t[f],v=m.variable.name.value,g=(0,Vse.typeFromAST)(e,m.type);if(!(0,np.isInputType)(g)){ + var y=(0,G9.print)(m.type);return n(new tl.GraphQLError('Variable "$'.concat(v,'" expected value of type "').concat(y,'" which cannot be used as an input type.'),m.type)),'continue'; + }if(!Q9(r,v)){ + if(m.defaultValue)i[v]=(0,z9.valueFromAST)(m.defaultValue,g);else if((0,np.isNonNullType)(g)){ + var w=(0,rp.default)(g);n(new tl.GraphQLError('Variable "$'.concat(v,'" of required type "').concat(w,'" was not provided.'),m)); + }return'continue'; + }var T=r[v];if(T===null&&(0,np.isNonNullType)(g)){ + var S=(0,rp.default)(g);return n(new tl.GraphQLError('Variable "$'.concat(v,'" of non-null type "').concat(S,'" must not be null.'),m)),'continue'; + }i[v]=(0,Use.coerceInputValue)(T,g,function(A,b,C){ + var x='Variable "$'.concat(v,'" got invalid value ')+(0,rp.default)(b);A.length>0&&(x+=' at "'.concat(v).concat((0,jse.default)(A),'"')),n(new tl.GraphQLError(x+'; '+C.message,m,void 0,void 0,void 0,C.originalError)); + }); + },s=0;s{ + 'use strict';Object.defineProperty(lo,'__esModule',{value:!0});lo.execute=_se;lo.executeSync=$se;lo.assertValidExecutionArguments=$9;lo.buildExecutionContext=e8;lo.collectFields=Cv;lo.buildResolveInfo=n8;lo.getFieldDef=a8;lo.defaultFieldResolver=lo.defaultTypeResolver=void 0;var op=nl(jt()),Hse=nl(q9()),Qse=nl(Gn()),W9=nl(Io()),Vo=nl(tb()),lN=nl(es()),Wse=nl(qb()),Yse=nl(j9()),Kse=nl(V9()),Hc=gv(),ss=ft(),cA=Xh(),Tv=tr(),Xse=dv(),ip=jo(),Y9=Bi(),rl=Rt(),Zse=os(),Jse=aA(),fA=Ev();function nl(e){ + return e&&e.__esModule?e:{default:e}; + }function _se(e,t,r,n,i,o,s,l){ + return arguments.length===1?aN(e):aN({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l}); + }function $se(e){ + var t=aN(e);if((0,Vo.default)(t))throw new Error('GraphQL execution failed to complete synchronously.');return t; + }function aN(e){ + var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.typeResolver;$9(t,r,o);var f=e8(t,r,n,i,o,s,l,c);if(Array.isArray(f))return{errors:f};var m=ele(f,f.operation,n);return _9(f,m); + }function _9(e,t){ + return(0,Vo.default)(t)?t.then(function(r){ + return _9(e,r); + }):e.errors.length===0?{data:t}:{errors:e.errors,data:t}; + }function $9(e,t,r){ + t||(0,W9.default)(0,'Must provide document.'),(0,Xse.assertValidSchema)(e),r==null||(0,lN.default)(r)||(0,W9.default)(0,'Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.'); + }function e8(e,t,r,n,i,o,s,l){ + for(var c,f,m,v=Object.create(null),g=0,y=t.definitions;g{ + 'use strict';Object.defineProperty(mA,'__esModule',{value:!0});mA.graphql=mle;mA.graphqlSync=hle;var lle=ple(tb()),ule=jd(),cle=ep(),fle=dv(),dle=kv();function ple(e){ + return e&&e.__esModule?e:{default:e}; + }function mle(e,t,r,n,i,o,s,l){ + var c=arguments;return new Promise(function(f){ + return f(c.length===1?pA(e):pA({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l})); + }); + }function hle(e,t,r,n,i,o,s,l){ + var c=arguments.length===1?pA(e):pA({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l});if((0,lle.default)(c))throw new Error('GraphQL execution failed to complete synchronously.');return c; + }function pA(e){ + var t=e.schema,r=e.source,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.typeResolver,f=(0,fle.validateSchema)(t);if(f.length>0)return{errors:f};var m;try{ + m=(0,ule.parse)(r); + }catch(g){ + return{errors:[g]}; + }var v=(0,cle.validate)(t,m);return v.length>0?{errors:v}:(0,dle.execute)({schema:t,document:m,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c}); + } +});var u8=X(Pe=>{ + 'use strict';Object.defineProperty(Pe,'__esModule',{value:!0});Object.defineProperty(Pe,'isSchema',{enumerable:!0,get:function(){ + return uN.isSchema; + }});Object.defineProperty(Pe,'assertSchema',{enumerable:!0,get:function(){ + return uN.assertSchema; + }});Object.defineProperty(Pe,'GraphQLSchema',{enumerable:!0,get:function(){ + return uN.GraphQLSchema; + }});Object.defineProperty(Pe,'isType',{enumerable:!0,get:function(){ + return mt.isType; + }});Object.defineProperty(Pe,'isScalarType',{enumerable:!0,get:function(){ + return mt.isScalarType; + }});Object.defineProperty(Pe,'isObjectType',{enumerable:!0,get:function(){ + return mt.isObjectType; + }});Object.defineProperty(Pe,'isInterfaceType',{enumerable:!0,get:function(){ + return mt.isInterfaceType; + }});Object.defineProperty(Pe,'isUnionType',{enumerable:!0,get:function(){ + return mt.isUnionType; + }});Object.defineProperty(Pe,'isEnumType',{enumerable:!0,get:function(){ + return mt.isEnumType; + }});Object.defineProperty(Pe,'isInputObjectType',{enumerable:!0,get:function(){ + return mt.isInputObjectType; + }});Object.defineProperty(Pe,'isListType',{enumerable:!0,get:function(){ + return mt.isListType; + }});Object.defineProperty(Pe,'isNonNullType',{enumerable:!0,get:function(){ + return mt.isNonNullType; + }});Object.defineProperty(Pe,'isInputType',{enumerable:!0,get:function(){ + return mt.isInputType; + }});Object.defineProperty(Pe,'isOutputType',{enumerable:!0,get:function(){ + return mt.isOutputType; + }});Object.defineProperty(Pe,'isLeafType',{enumerable:!0,get:function(){ + return mt.isLeafType; + }});Object.defineProperty(Pe,'isCompositeType',{enumerable:!0,get:function(){ + return mt.isCompositeType; + }});Object.defineProperty(Pe,'isAbstractType',{enumerable:!0,get:function(){ + return mt.isAbstractType; + }});Object.defineProperty(Pe,'isWrappingType',{enumerable:!0,get:function(){ + return mt.isWrappingType; + }});Object.defineProperty(Pe,'isNullableType',{enumerable:!0,get:function(){ + return mt.isNullableType; + }});Object.defineProperty(Pe,'isNamedType',{enumerable:!0,get:function(){ + return mt.isNamedType; + }});Object.defineProperty(Pe,'isRequiredArgument',{enumerable:!0,get:function(){ + return mt.isRequiredArgument; + }});Object.defineProperty(Pe,'isRequiredInputField',{enumerable:!0,get:function(){ + return mt.isRequiredInputField; + }});Object.defineProperty(Pe,'assertType',{enumerable:!0,get:function(){ + return mt.assertType; + }});Object.defineProperty(Pe,'assertScalarType',{enumerable:!0,get:function(){ + return mt.assertScalarType; + }});Object.defineProperty(Pe,'assertObjectType',{enumerable:!0,get:function(){ + return mt.assertObjectType; + }});Object.defineProperty(Pe,'assertInterfaceType',{enumerable:!0,get:function(){ + return mt.assertInterfaceType; + }});Object.defineProperty(Pe,'assertUnionType',{enumerable:!0,get:function(){ + return mt.assertUnionType; + }});Object.defineProperty(Pe,'assertEnumType',{enumerable:!0,get:function(){ + return mt.assertEnumType; + }});Object.defineProperty(Pe,'assertInputObjectType',{enumerable:!0,get:function(){ + return mt.assertInputObjectType; + }});Object.defineProperty(Pe,'assertListType',{enumerable:!0,get:function(){ + return mt.assertListType; + }});Object.defineProperty(Pe,'assertNonNullType',{enumerable:!0,get:function(){ + return mt.assertNonNullType; + }});Object.defineProperty(Pe,'assertInputType',{enumerable:!0,get:function(){ + return mt.assertInputType; + }});Object.defineProperty(Pe,'assertOutputType',{enumerable:!0,get:function(){ + return mt.assertOutputType; + }});Object.defineProperty(Pe,'assertLeafType',{enumerable:!0,get:function(){ + return mt.assertLeafType; + }});Object.defineProperty(Pe,'assertCompositeType',{enumerable:!0,get:function(){ + return mt.assertCompositeType; + }});Object.defineProperty(Pe,'assertAbstractType',{enumerable:!0,get:function(){ + return mt.assertAbstractType; + }});Object.defineProperty(Pe,'assertWrappingType',{enumerable:!0,get:function(){ + return mt.assertWrappingType; + }});Object.defineProperty(Pe,'assertNullableType',{enumerable:!0,get:function(){ + return mt.assertNullableType; + }});Object.defineProperty(Pe,'assertNamedType',{enumerable:!0,get:function(){ + return mt.assertNamedType; + }});Object.defineProperty(Pe,'getNullableType',{enumerable:!0,get:function(){ + return mt.getNullableType; + }});Object.defineProperty(Pe,'getNamedType',{enumerable:!0,get:function(){ + return mt.getNamedType; + }});Object.defineProperty(Pe,'GraphQLScalarType',{enumerable:!0,get:function(){ + return mt.GraphQLScalarType; + }});Object.defineProperty(Pe,'GraphQLObjectType',{enumerable:!0,get:function(){ + return mt.GraphQLObjectType; + }});Object.defineProperty(Pe,'GraphQLInterfaceType',{enumerable:!0,get:function(){ + return mt.GraphQLInterfaceType; + }});Object.defineProperty(Pe,'GraphQLUnionType',{enumerable:!0,get:function(){ + return mt.GraphQLUnionType; + }});Object.defineProperty(Pe,'GraphQLEnumType',{enumerable:!0,get:function(){ + return mt.GraphQLEnumType; + }});Object.defineProperty(Pe,'GraphQLInputObjectType',{enumerable:!0,get:function(){ + return mt.GraphQLInputObjectType; + }});Object.defineProperty(Pe,'GraphQLList',{enumerable:!0,get:function(){ + return mt.GraphQLList; + }});Object.defineProperty(Pe,'GraphQLNonNull',{enumerable:!0,get:function(){ + return mt.GraphQLNonNull; + }});Object.defineProperty(Pe,'isDirective',{enumerable:!0,get:function(){ + return ls.isDirective; + }});Object.defineProperty(Pe,'assertDirective',{enumerable:!0,get:function(){ + return ls.assertDirective; + }});Object.defineProperty(Pe,'GraphQLDirective',{enumerable:!0,get:function(){ + return ls.GraphQLDirective; + }});Object.defineProperty(Pe,'isSpecifiedDirective',{enumerable:!0,get:function(){ + return ls.isSpecifiedDirective; + }});Object.defineProperty(Pe,'specifiedDirectives',{enumerable:!0,get:function(){ + return ls.specifiedDirectives; + }});Object.defineProperty(Pe,'GraphQLIncludeDirective',{enumerable:!0,get:function(){ + return ls.GraphQLIncludeDirective; + }});Object.defineProperty(Pe,'GraphQLSkipDirective',{enumerable:!0,get:function(){ + return ls.GraphQLSkipDirective; + }});Object.defineProperty(Pe,'GraphQLDeprecatedDirective',{enumerable:!0,get:function(){ + return ls.GraphQLDeprecatedDirective; + }});Object.defineProperty(Pe,'GraphQLSpecifiedByDirective',{enumerable:!0,get:function(){ + return ls.GraphQLSpecifiedByDirective; + }});Object.defineProperty(Pe,'DEFAULT_DEPRECATION_REASON',{enumerable:!0,get:function(){ + return ls.DEFAULT_DEPRECATION_REASON; + }});Object.defineProperty(Pe,'isSpecifiedScalarType',{enumerable:!0,get:function(){ + return Qc.isSpecifiedScalarType; + }});Object.defineProperty(Pe,'specifiedScalarTypes',{enumerable:!0,get:function(){ + return Qc.specifiedScalarTypes; + }});Object.defineProperty(Pe,'GraphQLInt',{enumerable:!0,get:function(){ + return Qc.GraphQLInt; + }});Object.defineProperty(Pe,'GraphQLFloat',{enumerable:!0,get:function(){ + return Qc.GraphQLFloat; + }});Object.defineProperty(Pe,'GraphQLString',{enumerable:!0,get:function(){ + return Qc.GraphQLString; + }});Object.defineProperty(Pe,'GraphQLBoolean',{enumerable:!0,get:function(){ + return Qc.GraphQLBoolean; + }});Object.defineProperty(Pe,'GraphQLID',{enumerable:!0,get:function(){ + return Qc.GraphQLID; + }});Object.defineProperty(Pe,'isIntrospectionType',{enumerable:!0,get:function(){ + return zi.isIntrospectionType; + }});Object.defineProperty(Pe,'introspectionTypes',{enumerable:!0,get:function(){ + return zi.introspectionTypes; + }});Object.defineProperty(Pe,'__Schema',{enumerable:!0,get:function(){ + return zi.__Schema; + }});Object.defineProperty(Pe,'__Directive',{enumerable:!0,get:function(){ + return zi.__Directive; + }});Object.defineProperty(Pe,'__DirectiveLocation',{enumerable:!0,get:function(){ + return zi.__DirectiveLocation; + }});Object.defineProperty(Pe,'__Type',{enumerable:!0,get:function(){ + return zi.__Type; + }});Object.defineProperty(Pe,'__Field',{enumerable:!0,get:function(){ + return zi.__Field; + }});Object.defineProperty(Pe,'__InputValue',{enumerable:!0,get:function(){ + return zi.__InputValue; + }});Object.defineProperty(Pe,'__EnumValue',{enumerable:!0,get:function(){ + return zi.__EnumValue; + }});Object.defineProperty(Pe,'__TypeKind',{enumerable:!0,get:function(){ + return zi.__TypeKind; + }});Object.defineProperty(Pe,'TypeKind',{enumerable:!0,get:function(){ + return zi.TypeKind; + }});Object.defineProperty(Pe,'SchemaMetaFieldDef',{enumerable:!0,get:function(){ + return zi.SchemaMetaFieldDef; + }});Object.defineProperty(Pe,'TypeMetaFieldDef',{enumerable:!0,get:function(){ + return zi.TypeMetaFieldDef; + }});Object.defineProperty(Pe,'TypeNameMetaFieldDef',{enumerable:!0,get:function(){ + return zi.TypeNameMetaFieldDef; + }});Object.defineProperty(Pe,'validateSchema',{enumerable:!0,get:function(){ + return l8.validateSchema; + }});Object.defineProperty(Pe,'assertValidSchema',{enumerable:!0,get:function(){ + return l8.assertValidSchema; + }});var uN=qc(),mt=Rt(),ls=Bi(),Qc=is(),zi=jo(),l8=dv(); +});var d8=X(Zt=>{ + 'use strict';Object.defineProperty(Zt,'__esModule',{value:!0});Object.defineProperty(Zt,'Source',{enumerable:!0,get:function(){ + return vle.Source; + }});Object.defineProperty(Zt,'getLocation',{enumerable:!0,get:function(){ + return gle.getLocation; + }});Object.defineProperty(Zt,'printLocation',{enumerable:!0,get:function(){ + return c8.printLocation; + }});Object.defineProperty(Zt,'printSourceLocation',{enumerable:!0,get:function(){ + return c8.printSourceLocation; + }});Object.defineProperty(Zt,'Kind',{enumerable:!0,get:function(){ + return yle.Kind; + }});Object.defineProperty(Zt,'TokenKind',{enumerable:!0,get:function(){ + return ble.TokenKind; + }});Object.defineProperty(Zt,'Lexer',{enumerable:!0,get:function(){ + return Ale.Lexer; + }});Object.defineProperty(Zt,'parse',{enumerable:!0,get:function(){ + return cN.parse; + }});Object.defineProperty(Zt,'parseValue',{enumerable:!0,get:function(){ + return cN.parseValue; + }});Object.defineProperty(Zt,'parseType',{enumerable:!0,get:function(){ + return cN.parseType; + }});Object.defineProperty(Zt,'print',{enumerable:!0,get:function(){ + return xle.print; + }});Object.defineProperty(Zt,'visit',{enumerable:!0,get:function(){ + return hA.visit; + }});Object.defineProperty(Zt,'visitInParallel',{enumerable:!0,get:function(){ + return hA.visitInParallel; + }});Object.defineProperty(Zt,'getVisitFn',{enumerable:!0,get:function(){ + return hA.getVisitFn; + }});Object.defineProperty(Zt,'BREAK',{enumerable:!0,get:function(){ + return hA.BREAK; + }});Object.defineProperty(Zt,'Location',{enumerable:!0,get:function(){ + return f8.Location; + }});Object.defineProperty(Zt,'Token',{enumerable:!0,get:function(){ + return f8.Token; + }});Object.defineProperty(Zt,'isDefinitionNode',{enumerable:!0,get:function(){ + return il.isDefinitionNode; + }});Object.defineProperty(Zt,'isExecutableDefinitionNode',{enumerable:!0,get:function(){ + return il.isExecutableDefinitionNode; + }});Object.defineProperty(Zt,'isSelectionNode',{enumerable:!0,get:function(){ + return il.isSelectionNode; + }});Object.defineProperty(Zt,'isValueNode',{enumerable:!0,get:function(){ + return il.isValueNode; + }});Object.defineProperty(Zt,'isTypeNode',{enumerable:!0,get:function(){ + return il.isTypeNode; + }});Object.defineProperty(Zt,'isTypeSystemDefinitionNode',{enumerable:!0,get:function(){ + return il.isTypeSystemDefinitionNode; + }});Object.defineProperty(Zt,'isTypeDefinitionNode',{enumerable:!0,get:function(){ + return il.isTypeDefinitionNode; + }});Object.defineProperty(Zt,'isTypeSystemExtensionNode',{enumerable:!0,get:function(){ + return il.isTypeSystemExtensionNode; + }});Object.defineProperty(Zt,'isTypeExtensionNode',{enumerable:!0,get:function(){ + return il.isTypeExtensionNode; + }});Object.defineProperty(Zt,'DirectiveLocation',{enumerable:!0,get:function(){ + return wle.DirectiveLocation; + }});var vle=vb(),gle=nb(),c8=vS(),yle=tr(),ble=Id(),Ale=bb(),cN=jd(),xle=ao(),hA=Jl(),f8=Md(),il=Vc(),wle=Fd(); +});var p8=X(fu=>{ + 'use strict';Object.defineProperty(fu,'__esModule',{value:!0});Object.defineProperty(fu,'responsePathAsArray',{enumerable:!0,get:function(){ + return Ele.pathToArray; + }});Object.defineProperty(fu,'execute',{enumerable:!0,get:function(){ + return vA.execute; + }});Object.defineProperty(fu,'executeSync',{enumerable:!0,get:function(){ + return vA.executeSync; + }});Object.defineProperty(fu,'defaultFieldResolver',{enumerable:!0,get:function(){ + return vA.defaultFieldResolver; + }});Object.defineProperty(fu,'defaultTypeResolver',{enumerable:!0,get:function(){ + return vA.defaultTypeResolver; + }});Object.defineProperty(fu,'getDirectiveValues',{enumerable:!0,get:function(){ + return Tle.getDirectiveValues; + }});var Ele=gv(),vA=kv(),Tle=Ev(); +});var m8=X(fN=>{ + 'use strict';Object.defineProperty(fN,'__esModule',{value:!0});fN.default=Sle;var Cle=ts();function Sle(e){ + return typeof e?.[Cle.SYMBOL_ASYNC_ITERATOR]=='function'; + } +});var y8=X(dN=>{ + 'use strict';Object.defineProperty(dN,'__esModule',{value:!0});dN.default=Ole;var h8=ts();function kle(e,t,r){ + return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e; + }function Ole(e,t,r){ + var n=e[h8.SYMBOL_ASYNC_ITERATOR],i=n.call(e),o,s;typeof i.return=='function'&&(o=i.return,s=function(v){ + var g=function(){ + return Promise.reject(v); + };return o.call(i).then(g,g); + });function l(m){ + return m.done?m:v8(m.value,t).then(g8,s); + }var c;if(r){ + var f=r;c=function(v){ + return v8(v,f).then(g8,s); + }; + }return kle({next:function(){ + return i.next().then(l,c); + },return:function(){ + return o?o.call(i).then(l,c):Promise.resolve({value:void 0,done:!0}); + },throw:function(v){ + return typeof i.throw=='function'?i.throw(v).then(l,c):Promise.reject(v).catch(s); + }},h8.SYMBOL_ASYNC_ITERATOR,function(){ + return this; + }); + }function v8(e,t){ + return new Promise(function(r){ + return r(t(e)); + }); + }function g8(e){ + return{value:e,done:!1}; + } +});var C8=X(gA=>{ + 'use strict';Object.defineProperty(gA,'__esModule',{value:!0});gA.subscribe=Rle;gA.createSourceEventStream=T8;var Nle=mN(jt()),x8=mN(m8()),pN=gv(),w8=ft(),b8=Xh(),Dle=Ev(),ap=kv(),Lle=aA(),Ple=mN(y8());function mN(e){ + return e&&e.__esModule?e:{default:e}; + }function Rle(e,t,r,n,i,o,s,l){ + return arguments.length===1?A8(e):A8({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,subscribeFieldResolver:l}); + }function E8(e){ + if(e instanceof w8.GraphQLError)return{errors:[e]};throw e; + }function A8(e){ + var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,c=e.subscribeFieldResolver,f=T8(t,r,n,i,o,s,c),m=function(g){ + return(0,ap.execute)({schema:t,document:r,rootValue:g,contextValue:i,variableValues:o,operationName:s,fieldResolver:l}); + };return f.then(function(v){ + return(0,x8.default)(v)?(0,Ple.default)(v,m,E8):v; + }); + }function T8(e,t,r,n,i,o,s){ + return(0,ap.assertValidExecutionArguments)(e,t,i),new Promise(function(l){ + var c=(0,ap.buildExecutionContext)(e,t,r,n,i,o,s);l(Array.isArray(c)?{errors:c}:Mle(c)); + }).catch(E8); + }function Mle(e){ + var t=e.schema,r=e.operation,n=e.variableValues,i=e.rootValue,o=(0,Lle.getOperationRootType)(t,r),s=(0,ap.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),l=Object.keys(s),c=l[0],f=s[c],m=f[0],v=m.name.value,g=(0,ap.getFieldDef)(t,o,v);if(!g)throw new w8.GraphQLError('The subscription field "'.concat(v,'" is not defined.'),f);var y=(0,pN.addPath)(void 0,c,o.name),w=(0,ap.buildResolveInfo)(e,g,f,o,y);return new Promise(function(T){ + var S,A=(0,Dle.getArgumentValues)(g,f[0],n),b=e.contextValue,C=(S=g.subscribe)!==null&&S!==void 0?S:e.fieldResolver;T(C(i,A,b,w)); + }).then(function(T){ + if(T instanceof Error)throw(0,b8.locatedError)(T,f,(0,pN.pathToArray)(y));if(!(0,x8.default)(T))throw new Error('Subscription field must return Async Iterable. '+'Received: '.concat((0,Nle.default)(T),'.'));return T; + },function(T){ + throw(0,b8.locatedError)(T,f,(0,pN.pathToArray)(y)); + }); + } +});var k8=X(yA=>{ + 'use strict';Object.defineProperty(yA,'__esModule',{value:!0});Object.defineProperty(yA,'subscribe',{enumerable:!0,get:function(){ + return S8.subscribe; + }});Object.defineProperty(yA,'createSourceEventStream',{enumerable:!0,get:function(){ + return S8.createSourceEventStream; + }});var S8=C8(); +});var yN=X(gN=>{ + 'use strict';Object.defineProperty(gN,'__esModule',{value:!0});gN.NoDeprecatedCustomRule=Fle;var hN=Ile(Gn()),Ov=ft(),vN=Rt();function Ile(e){ + return e&&e.__esModule?e:{default:e}; + }function Fle(e){ + return{Field:function(r){ + var n=e.getFieldDef(),i=n?.deprecationReason;if(n&&i!=null){ + var o=e.getParentType();o!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError('The field '.concat(o.name,'.').concat(n.name,' is deprecated. ').concat(i),r)); + } + },Argument:function(r){ + var n=e.getArgument(),i=n?.deprecationReason;if(n&&i!=null){ + var o=e.getDirective();if(o!=null)e.reportError(new Ov.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r));else{ + var s=e.getParentType(),l=e.getFieldDef();s!=null&&l!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError('Field "'.concat(s.name,'.').concat(l.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r)); + } + } + },ObjectField:function(r){ + var n=(0,vN.getNamedType)(e.getParentInputType());if((0,vN.isInputObjectType)(n)){ + var i=n.getFields()[r.name.value],o=i?.deprecationReason;o!=null&&e.reportError(new Ov.GraphQLError('The input field '.concat(n.name,'.').concat(i.name,' is deprecated. ').concat(o),r)); + } + },EnumValue:function(r){ + var n=e.getEnumValue(),i=n?.deprecationReason;if(n&&i!=null){ + var o=(0,vN.getNamedType)(e.getInputType());o!=null||(0,hN.default)(0),e.reportError(new Ov.GraphQLError('The enum value "'.concat(o.name,'.').concat(n.name,'" is deprecated. ').concat(i),r)); + } + }}; + } +});var O8=X(bN=>{ + 'use strict';Object.defineProperty(bN,'__esModule',{value:!0});bN.NoSchemaIntrospectionCustomRule=Ule;var qle=ft(),jle=Rt(),Vle=jo();function Ule(e){ + return{Field:function(r){ + var n=(0,jle.getNamedType)(e.getType());n&&(0,Vle.isIntrospectionType)(n)&&e.reportError(new qle.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r)); + }}; + } +});var N8=X(Tt=>{ + 'use strict';Object.defineProperty(Tt,'__esModule',{value:!0});Object.defineProperty(Tt,'validate',{enumerable:!0,get:function(){ + return Ble.validate; + }});Object.defineProperty(Tt,'ValidationContext',{enumerable:!0,get:function(){ + return Gle.ValidationContext; + }});Object.defineProperty(Tt,'specifiedRules',{enumerable:!0,get:function(){ + return zle.specifiedRules; + }});Object.defineProperty(Tt,'ExecutableDefinitionsRule',{enumerable:!0,get:function(){ + return Hle.ExecutableDefinitionsRule; + }});Object.defineProperty(Tt,'FieldsOnCorrectTypeRule',{enumerable:!0,get:function(){ + return Qle.FieldsOnCorrectTypeRule; + }});Object.defineProperty(Tt,'FragmentsOnCompositeTypesRule',{enumerable:!0,get:function(){ + return Wle.FragmentsOnCompositeTypesRule; + }});Object.defineProperty(Tt,'KnownArgumentNamesRule',{enumerable:!0,get:function(){ + return Yle.KnownArgumentNamesRule; + }});Object.defineProperty(Tt,'KnownDirectivesRule',{enumerable:!0,get:function(){ + return Kle.KnownDirectivesRule; + }});Object.defineProperty(Tt,'KnownFragmentNamesRule',{enumerable:!0,get:function(){ + return Xle.KnownFragmentNamesRule; + }});Object.defineProperty(Tt,'KnownTypeNamesRule',{enumerable:!0,get:function(){ + return Zle.KnownTypeNamesRule; + }});Object.defineProperty(Tt,'LoneAnonymousOperationRule',{enumerable:!0,get:function(){ + return Jle.LoneAnonymousOperationRule; + }});Object.defineProperty(Tt,'NoFragmentCyclesRule',{enumerable:!0,get:function(){ + return _le.NoFragmentCyclesRule; + }});Object.defineProperty(Tt,'NoUndefinedVariablesRule',{enumerable:!0,get:function(){ + return $le.NoUndefinedVariablesRule; + }});Object.defineProperty(Tt,'NoUnusedFragmentsRule',{enumerable:!0,get:function(){ + return eue.NoUnusedFragmentsRule; + }});Object.defineProperty(Tt,'NoUnusedVariablesRule',{enumerable:!0,get:function(){ + return tue.NoUnusedVariablesRule; + }});Object.defineProperty(Tt,'OverlappingFieldsCanBeMergedRule',{enumerable:!0,get:function(){ + return rue.OverlappingFieldsCanBeMergedRule; + }});Object.defineProperty(Tt,'PossibleFragmentSpreadsRule',{enumerable:!0,get:function(){ + return nue.PossibleFragmentSpreadsRule; + }});Object.defineProperty(Tt,'ProvidedRequiredArgumentsRule',{enumerable:!0,get:function(){ + return iue.ProvidedRequiredArgumentsRule; + }});Object.defineProperty(Tt,'ScalarLeafsRule',{enumerable:!0,get:function(){ + return oue.ScalarLeafsRule; + }});Object.defineProperty(Tt,'SingleFieldSubscriptionsRule',{enumerable:!0,get:function(){ + return aue.SingleFieldSubscriptionsRule; + }});Object.defineProperty(Tt,'UniqueArgumentNamesRule',{enumerable:!0,get:function(){ + return sue.UniqueArgumentNamesRule; + }});Object.defineProperty(Tt,'UniqueDirectivesPerLocationRule',{enumerable:!0,get:function(){ + return lue.UniqueDirectivesPerLocationRule; + }});Object.defineProperty(Tt,'UniqueFragmentNamesRule',{enumerable:!0,get:function(){ + return uue.UniqueFragmentNamesRule; + }});Object.defineProperty(Tt,'UniqueInputFieldNamesRule',{enumerable:!0,get:function(){ + return cue.UniqueInputFieldNamesRule; + }});Object.defineProperty(Tt,'UniqueOperationNamesRule',{enumerable:!0,get:function(){ + return fue.UniqueOperationNamesRule; + }});Object.defineProperty(Tt,'UniqueVariableNamesRule',{enumerable:!0,get:function(){ + return due.UniqueVariableNamesRule; + }});Object.defineProperty(Tt,'ValuesOfCorrectTypeRule',{enumerable:!0,get:function(){ + return pue.ValuesOfCorrectTypeRule; + }});Object.defineProperty(Tt,'VariablesAreInputTypesRule',{enumerable:!0,get:function(){ + return mue.VariablesAreInputTypesRule; + }});Object.defineProperty(Tt,'VariablesInAllowedPositionRule',{enumerable:!0,get:function(){ + return hue.VariablesInAllowedPositionRule; + }});Object.defineProperty(Tt,'LoneSchemaDefinitionRule',{enumerable:!0,get:function(){ + return vue.LoneSchemaDefinitionRule; + }});Object.defineProperty(Tt,'UniqueOperationTypesRule',{enumerable:!0,get:function(){ + return gue.UniqueOperationTypesRule; + }});Object.defineProperty(Tt,'UniqueTypeNamesRule',{enumerable:!0,get:function(){ + return yue.UniqueTypeNamesRule; + }});Object.defineProperty(Tt,'UniqueEnumValueNamesRule',{enumerable:!0,get:function(){ + return bue.UniqueEnumValueNamesRule; + }});Object.defineProperty(Tt,'UniqueFieldDefinitionNamesRule',{enumerable:!0,get:function(){ + return Aue.UniqueFieldDefinitionNamesRule; + }});Object.defineProperty(Tt,'UniqueDirectiveNamesRule',{enumerable:!0,get:function(){ + return xue.UniqueDirectiveNamesRule; + }});Object.defineProperty(Tt,'PossibleTypeExtensionsRule',{enumerable:!0,get:function(){ + return wue.PossibleTypeExtensionsRule; + }});Object.defineProperty(Tt,'NoDeprecatedCustomRule',{enumerable:!0,get:function(){ + return Eue.NoDeprecatedCustomRule; + }});Object.defineProperty(Tt,'NoSchemaIntrospectionCustomRule',{enumerable:!0,get:function(){ + return Tue.NoSchemaIntrospectionCustomRule; + }});var Ble=ep(),Gle=KO(),zle=WO(),Hle=kk(),Qle=Hk(),Wle=jk(),Yle=pO(),Kle=uO(),Xle=Kk(),Zle=Fk(),Jle=Lk(),_le=tO(),$le=oO(),eue=Zk(),tue=sO(),rue=OO(),nue=$k(),iue=bO(),oue=Gk(),aue=Rk(),sue=hO(),lue=dO(),uue=Wk(),cue=DO(),fue=Nk(),due=nO(),pue=gO(),mue=Uk(),hue=xO(),vue=PO(),gue=MO(),yue=FO(),bue=jO(),Aue=BO(),xue=zO(),wue=QO(),Eue=yN(),Tue=O8(); +});var D8=X(AN=>{ + 'use strict';Object.defineProperty(AN,'__esModule',{value:!0});AN.formatError=kue;var Cue=Sue(Io());function Sue(e){ + return e&&e.__esModule?e:{default:e}; + }function kue(e){ + var t;e||(0,Cue.default)(0,'Received null or undefined error.');var r=(t=e.message)!==null&&t!==void 0?t:'An unknown error occurred.',n=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}; + } +});var P8=X(Wc=>{ + 'use strict';Object.defineProperty(Wc,'__esModule',{value:!0});Object.defineProperty(Wc,'GraphQLError',{enumerable:!0,get:function(){ + return L8.GraphQLError; + }});Object.defineProperty(Wc,'printError',{enumerable:!0,get:function(){ + return L8.printError; + }});Object.defineProperty(Wc,'syntaxError',{enumerable:!0,get:function(){ + return Oue.syntaxError; + }});Object.defineProperty(Wc,'locatedError',{enumerable:!0,get:function(){ + return Nue.locatedError; + }});Object.defineProperty(Wc,'formatError',{enumerable:!0,get:function(){ + return Due.formatError; + }});var L8=ft(),Oue=lb(),Nue=Xh(),Due=D8(); +});var wN=X(xN=>{ + 'use strict';Object.defineProperty(xN,'__esModule',{value:!0});xN.getIntrospectionQuery=Rue;function R8(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function Lue(e){ + for(var t=1;t{"use strict";Object.defineProperty(EN,"__esModule",{value:!0});EN.getOperationAST=Iue;var Mue=tr();function Iue(e,t){for(var r=null,n=0,i=e.definitions;n{"use strict";Object.defineProperty(TN,"__esModule",{value:!0});TN.introspectionFromSchema=zue;var Fue=Uue(Gn()),que=jd(),jue=kv(),Vue=wN();function Uue(e){return e&&e.__esModule?e:{default:e}}function I8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bue(e){for(var t=1;t{"use strict";Object.defineProperty(CN,"__esModule",{value:!0});CN.buildClientSchema=Jue;var Hue=Nv(oo()),uo=Nv(jt()),Que=Nv(Io()),bA=Nv(Zh()),q8=Nv(es()),Wue=jd(),Yue=qc(),Kue=Bi(),Xue=is(),us=jo(),co=Rt(),Zue=bv();function Nv(e){return e&&e.__esModule?e:{default:e}}function Jue(e,t){(0,q8.default)(e)&&(0,q8.default)(e.__schema)||(0,Que.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,uo.default)(e),"."));for(var r=e.__schema,n=(0,bA.default)(r.types,function(B){return B.name},function(B){return T(B)}),i=0,o=[].concat(Xue.specifiedScalarTypes,us.introspectionTypes);i{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.extendSchema=oce;Lv.extendSchemaImpl=Z8;Lv.getDescription=Yc;var _ue=sp(oo()),$ue=sp(_l()),V8=sp(jt()),Dv=sp(RS()),U8=sp(Gn()),ece=sp(Io()),Uo=tr(),tce=Id(),rce=qd(),B8=Vc(),nce=ep(),Y8=Ev(),G8=qc(),K8=is(),X8=jo(),xA=Bi(),Tr=Rt(),z8=bv();function sp(e){return e&&e.__esModule?e:{default:e}}function H8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ut(e){for(var t=1;t0?r.reverse().join(` -`):void 0}}});var $8=X(wA=>{"use strict";Object.defineProperty(wA,"__esModule",{value:!0});wA.buildASTSchema=_8;wA.buildSchema=mce;var sce=pce(Io()),lce=tr(),uce=jd(),cce=ep(),fce=qc(),J8=Bi(),dce=SN();function pce(e){return e&&e.__esModule?e:{default:e}}function _8(e,t){e!=null&&e.kind===lce.Kind.DOCUMENT||(0,sce.default)(0,"Must provide valid Document AST."),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,cce.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,dce.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var i=0,o=n.types;i{"use strict";Object.defineProperty(NN,"__esModule",{value:!0});NN.lexicographicSortSchema=Tce;var hce=Pv(oo()),vce=Pv(jt()),gce=Pv(Gn()),yce=Pv(Zh()),bce=Pv(Jh()),Ace=qc(),xce=Bi(),wce=jo(),Li=Rt();function Pv(e){return e&&e.__esModule?e:{default:e}}function e4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ln(e){for(var t=1;t{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.printSchema=kce;Rv.printIntrospectionSchema=Oce;Rv.printType=o4;var LN=FN(oo()),Cce=FN(jt()),r4=FN(Gn()),PN=ao(),Sce=qd(),n4=jo(),RN=is(),MN=Bi(),lp=Rt(),IN=lv();function FN(e){return e&&e.__esModule?e:{default:e}}function kce(e,t){return i4(e,function(r){return!(0,MN.isSpecifiedDirective)(r)},Nce,t)}function Oce(e,t){return i4(e,MN.isSpecifiedDirective,n4.isIntrospectionType,t)}function Nce(e){return!(0,RN.isSpecifiedScalarType)(e)&&!(0,n4.isIntrospectionType)(e)}function i4(e,t,r,n){var i=e.getDirectives().filter(t),o=(0,LN.default)(e.getTypeMap()).filter(r);return[Dce(e)].concat(i.map(function(s){return jce(s,n)}),o.map(function(s){return o4(s,n)})).filter(Boolean).join(` + `); + } +});var M8=X(EN=>{ + 'use strict';Object.defineProperty(EN,'__esModule',{value:!0});EN.getOperationAST=Iue;var Mue=tr();function Iue(e,t){ + for(var r=null,n=0,i=e.definitions;n{ + 'use strict';Object.defineProperty(TN,'__esModule',{value:!0});TN.introspectionFromSchema=zue;var Fue=Uue(Gn()),que=jd(),jue=kv(),Vue=wN();function Uue(e){ + return e&&e.__esModule?e:{default:e}; + }function I8(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function Bue(e){ + for(var t=1;t{ + 'use strict';Object.defineProperty(CN,'__esModule',{value:!0});CN.buildClientSchema=Jue;var Hue=Nv(oo()),uo=Nv(jt()),Que=Nv(Io()),bA=Nv(Zh()),q8=Nv(es()),Wue=jd(),Yue=qc(),Kue=Bi(),Xue=is(),us=jo(),co=Rt(),Zue=bv();function Nv(e){ + return e&&e.__esModule?e:{default:e}; + }function Jue(e,t){ + (0,q8.default)(e)&&(0,q8.default)(e.__schema)||(0,Que.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,uo.default)(e),'.'));for(var r=e.__schema,n=(0,bA.default)(r.types,function(B){ + return B.name; + },function(B){ + return T(B); + }),i=0,o=[].concat(Xue.specifiedScalarTypes,us.introspectionTypes);i{ + 'use strict';Object.defineProperty(Lv,'__esModule',{value:!0});Lv.extendSchema=oce;Lv.extendSchemaImpl=Z8;Lv.getDescription=Yc;var _ue=sp(oo()),$ue=sp(_l()),V8=sp(jt()),Dv=sp(RS()),U8=sp(Gn()),ece=sp(Io()),Uo=tr(),tce=Id(),rce=qd(),B8=Vc(),nce=ep(),Y8=Ev(),G8=qc(),K8=is(),X8=jo(),xA=Bi(),Tr=Rt(),z8=bv();function sp(e){ + return e&&e.__esModule?e:{default:e}; + }function H8(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function Ut(e){ + for(var t=1;t0?r.reverse().join(` +`):void 0; + } + } +});var $8=X(wA=>{ + 'use strict';Object.defineProperty(wA,'__esModule',{value:!0});wA.buildASTSchema=_8;wA.buildSchema=mce;var sce=pce(Io()),lce=tr(),uce=jd(),cce=ep(),fce=qc(),J8=Bi(),dce=SN();function pce(e){ + return e&&e.__esModule?e:{default:e}; + }function _8(e,t){ + e!=null&&e.kind===lce.Kind.DOCUMENT||(0,sce.default)(0,'Must provide valid Document AST.'),t?.assumeValid!==!0&&t?.assumeValidSDL!==!0&&(0,cce.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,dce.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var i=0,o=n.types;i{ + 'use strict';Object.defineProperty(NN,'__esModule',{value:!0});NN.lexicographicSortSchema=Tce;var hce=Pv(oo()),vce=Pv(jt()),gce=Pv(Gn()),yce=Pv(Zh()),bce=Pv(Jh()),Ace=qc(),xce=Bi(),wce=jo(),Li=Rt();function Pv(e){ + return e&&e.__esModule?e:{default:e}; + }function e4(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function ln(e){ + for(var t=1;t{ + 'use strict';Object.defineProperty(Rv,'__esModule',{value:!0});Rv.printSchema=kce;Rv.printIntrospectionSchema=Oce;Rv.printType=o4;var LN=FN(oo()),Cce=FN(jt()),r4=FN(Gn()),PN=ao(),Sce=qd(),n4=jo(),RN=is(),MN=Bi(),lp=Rt(),IN=lv();function FN(e){ + return e&&e.__esModule?e:{default:e}; + }function kce(e,t){ + return i4(e,function(r){ + return!(0,MN.isSpecifiedDirective)(r); + },Nce,t); + }function Oce(e,t){ + return i4(e,MN.isSpecifiedDirective,n4.isIntrospectionType,t); + }function Nce(e){ + return!(0,RN.isSpecifiedScalarType)(e)&&!(0,n4.isIntrospectionType)(e); + }function i4(e,t,r,n){ + var i=e.getDirectives().filter(t),o=(0,LN.default)(e.getTypeMap()).filter(r);return[Dce(e)].concat(i.map(function(s){ + return jce(s,n); + }),o.map(function(s){ + return o4(s,n); + })).filter(Boolean).join(` `)+` -`}function Dce(e){if(!(e.description==null&&Lce(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Bo({},e)+`schema { +`; + }function Dce(e){ + if(!(e.description==null&&Lce(e))){ + var t=[],r=e.getQueryType();r&&t.push(' query: '.concat(r.name));var n=e.getMutationType();n&&t.push(' mutation: '.concat(n.name));var i=e.getSubscriptionType();return i&&t.push(' subscription: '.concat(i.name)),Bo({},e)+`schema { `.concat(t.join(` `),` -}`)}}function Lce(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function o4(e,t){if((0,lp.isScalarType)(e))return Pce(e,t);if((0,lp.isObjectType)(e))return Rce(e,t);if((0,lp.isInterfaceType)(e))return Mce(e,t);if((0,lp.isUnionType)(e))return Ice(e,t);if((0,lp.isEnumType)(e))return Fce(e,t);if((0,lp.isInputObjectType)(e))return qce(e,t);(0,r4.default)(0,"Unexpected type: "+(0,Cce.default)(e))}function Pce(e,t){return Bo(t,e)+"scalar ".concat(e.name)+Vce(e)}function a4(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function Rce(e,t){return Bo(t,e)+"type ".concat(e.name)+a4(e)+s4(t,e)}function Mce(e,t){return Bo(t,e)+"interface ".concat(e.name)+a4(e)+s4(t,e)}function Ice(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Bo(t,e)+"union "+e.name+n}function Fce(e,t){var r=e.getValues().map(function(n,i){return Bo(t,n," ",!i)+" "+n.name+jN(n.deprecationReason)});return Bo(t,e)+"enum ".concat(e.name)+qN(r)}function qce(e,t){var r=(0,LN.default)(e.getFields()).map(function(n,i){return Bo(t,n," ",!i)+" "+DN(n)});return Bo(t,e)+"input ".concat(e.name)+qN(r)}function s4(e,t){var r=(0,LN.default)(t.getFields()).map(function(n,i){return Bo(e,n," ",!i)+" "+n.name+l4(e,n.args," ")+": "+String(n.type)+jN(n.deprecationReason)});return qN(r)}function qN(e){return e.length!==0?` { +}`); + } + }function Lce(e){ + var t=e.getQueryType();if(t&&t.name!=='Query')return!1;var r=e.getMutationType();if(r&&r.name!=='Mutation')return!1;var n=e.getSubscriptionType();return!(n&&n.name!=='Subscription'); + }function o4(e,t){ + if((0,lp.isScalarType)(e))return Pce(e,t);if((0,lp.isObjectType)(e))return Rce(e,t);if((0,lp.isInterfaceType)(e))return Mce(e,t);if((0,lp.isUnionType)(e))return Ice(e,t);if((0,lp.isEnumType)(e))return Fce(e,t);if((0,lp.isInputObjectType)(e))return qce(e,t);(0,r4.default)(0,'Unexpected type: '+(0,Cce.default)(e)); + }function Pce(e,t){ + return Bo(t,e)+'scalar '.concat(e.name)+Vce(e); + }function a4(e){ + var t=e.getInterfaces();return t.length?' implements '+t.map(function(r){ + return r.name; + }).join(' & '):''; + }function Rce(e,t){ + return Bo(t,e)+'type '.concat(e.name)+a4(e)+s4(t,e); + }function Mce(e,t){ + return Bo(t,e)+'interface '.concat(e.name)+a4(e)+s4(t,e); + }function Ice(e,t){ + var r=e.getTypes(),n=r.length?' = '+r.join(' | '):'';return Bo(t,e)+'union '+e.name+n; + }function Fce(e,t){ + var r=e.getValues().map(function(n,i){ + return Bo(t,n,' ',!i)+' '+n.name+jN(n.deprecationReason); + });return Bo(t,e)+'enum '.concat(e.name)+qN(r); + }function qce(e,t){ + var r=(0,LN.default)(e.getFields()).map(function(n,i){ + return Bo(t,n,' ',!i)+' '+DN(n); + });return Bo(t,e)+'input '.concat(e.name)+qN(r); + }function s4(e,t){ + var r=(0,LN.default)(t.getFields()).map(function(n,i){ + return Bo(e,n,' ',!i)+' '+n.name+l4(e,n.args,' ')+': '+String(n.type)+jN(n.deprecationReason); + });return qN(r); + }function qN(e){ + return e.length!==0?` { `+e.join(` `)+` -}`:""}function l4(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(DN).join(", ")+")":`( -`+t.map(function(n,i){return Bo(e,n," "+r,!i)+" "+r+DN(n)}).join(` +}`:''; + }function l4(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:'';return t.length===0?'':t.every(function(n){ + return!n.description; + })?'('+t.map(DN).join(', ')+')':`( +`+t.map(function(n,i){ + return Bo(e,n,' '+r,!i)+' '+r+DN(n); + }).join(` `)+` -`+r+")"}function DN(e){var t=(0,IN.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,PN.print)(t))),r+jN(e.deprecationReason)}function jce(e,t){return Bo(t,e)+"directive @"+e.name+l4(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function jN(e){if(e==null)return"";var t=(0,IN.astFromValue)(e,RN.GraphQLString);return t&&e!==MN.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,PN.print)(t)+")":" @deprecated"}function Vce(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,IN.astFromValue)(t,RN.GraphQLString);return r||(0,r4.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,PN.print)(r)+")"}function Bo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=t.description;if(i==null)return"";if(e?.commentDescriptions===!0)return Uce(i,r,n);var o=i.length>70,s=(0,Sce.printBlockString)(i,"",o),l=r&&!n?` +`+r+')'; + }function DN(e){ + var t=(0,IN.astFromValue)(e.defaultValue,e.type),r=e.name+': '+String(e.type);return t&&(r+=' = '.concat((0,PN.print)(t))),r+jN(e.deprecationReason); + }function jce(e,t){ + return Bo(t,e)+'directive @'+e.name+l4(t,e.args)+(e.isRepeatable?' repeatable':'')+' on '+e.locations.join(' | '); + }function jN(e){ + if(e==null)return'';var t=(0,IN.astFromValue)(e,RN.GraphQLString);return t&&e!==MN.DEFAULT_DEPRECATION_REASON?' @deprecated(reason: '+(0,PN.print)(t)+')':' @deprecated'; + }function Vce(e){ + if(e.specifiedByUrl==null)return'';var t=e.specifiedByUrl,r=(0,IN.astFromValue)(t,RN.GraphQLString);return r||(0,r4.default)(0,'Unexpected null value returned from `astFromValue` for specifiedByUrl'),' @specifiedBy(url: '+(0,PN.print)(r)+')'; + }function Bo(e,t){ + var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:'',n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=t.description;if(i==null)return'';if(e?.commentDescriptions===!0)return Uce(i,r,n);var o=i.length>70,s=(0,Sce.printBlockString)(i,'',o),l=r&&!n?` `+r:r;return l+s.replace(/\n/g,` `+r)+` -`}function Uce(e,t,r){var n=t&&!r?` -`:"",i=e.split(` -`).map(function(o){return t+(o!==""?"# "+o:"#")}).join(` +`; + }function Uce(e,t,r){ + var n=t&&!r?` +`:'',i=e.split(` +`).map(function(o){ + return t+(o!==''?'# '+o:'#'); + }).join(` `);return n+i+` -`}});var c4=X(VN=>{"use strict";Object.defineProperty(VN,"__esModule",{value:!0});VN.concatAST=Bce;function Bce(e){for(var t=[],r=0;r{"use strict";Object.defineProperty(UN,"__esModule",{value:!0});UN.separateOperations=zce;var TA=tr(),Gce=Jl();function zce(e){for(var t=[],r=Object.create(null),n=0,i=e.definitions;n{"use strict";Object.defineProperty(GN,"__esModule",{value:!0});GN.stripIgnoredCharacters=Hce;var m4=vb(),BN=Id(),h4=bb(),v4=qd();function Hce(e){for(var t=(0,m4.isSource)(e)?e:new m4.Source(e),r=t.body,n=new h4.Lexer(t),i="",o=!1;n.advance().kind!==BN.TokenKind.EOF;){var s=n.token,l=s.kind,c=!(0,h4.isPunctuatorTokenKind)(s.kind);o&&(c||s.kind===BN.TokenKind.SPREAD)&&(i+=" ");var f=r.slice(s.start,s.end);l===BN.TokenKind.BLOCK_STRING?i+=Qce(f):i+=f,o=c}return i}function Qce(e){var t=e.slice(3,-3),r=(0,v4.dedentBlockStringValue)(t);(0,v4.getBlockStringIndentation)(r)>0&&(r=` -`+r);var n=r[r.length-1],i=n==='"'&&r.slice(-4)!=='\\"""';return(i||n==="\\")&&(r+=` -`),'"""'+r+'"""'}});var k4=X(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.findBreakingChanges=$ce;du.findDangerousChanges=efe;du.DangerousChangeType=du.BreakingChangeType=void 0;var up=Fv(oo()),y4=Fv(_l()),Wce=Fv(jt()),C4=Fv(Gn()),Yce=Fv(Jh()),Kce=ao(),Xce=Jl(),Zce=is(),Bt=Rt(),Jce=lv();function Fv(e){return e&&e.__esModule?e:{default:e}}function b4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A4(e){for(var t=1;t{"use strict";Object.defineProperty(zN,"__esModule",{value:!0});zN.findDeprecatedUsages=ufe;var sfe=ep(),lfe=yN();function ufe(e,t){return(0,sfe.validate)(e,t,[lfe.NoDeprecatedCustomRule])}});var R4=X(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Object.defineProperty(Lt,"getIntrospectionQuery",{enumerable:!0,get:function(){return cfe.getIntrospectionQuery}});Object.defineProperty(Lt,"getOperationAST",{enumerable:!0,get:function(){return ffe.getOperationAST}});Object.defineProperty(Lt,"getOperationRootType",{enumerable:!0,get:function(){return dfe.getOperationRootType}});Object.defineProperty(Lt,"introspectionFromSchema",{enumerable:!0,get:function(){return pfe.introspectionFromSchema}});Object.defineProperty(Lt,"buildClientSchema",{enumerable:!0,get:function(){return mfe.buildClientSchema}});Object.defineProperty(Lt,"buildASTSchema",{enumerable:!0,get:function(){return N4.buildASTSchema}});Object.defineProperty(Lt,"buildSchema",{enumerable:!0,get:function(){return N4.buildSchema}});Object.defineProperty(Lt,"extendSchema",{enumerable:!0,get:function(){return D4.extendSchema}});Object.defineProperty(Lt,"getDescription",{enumerable:!0,get:function(){return D4.getDescription}});Object.defineProperty(Lt,"lexicographicSortSchema",{enumerable:!0,get:function(){return hfe.lexicographicSortSchema}});Object.defineProperty(Lt,"printSchema",{enumerable:!0,get:function(){return HN.printSchema}});Object.defineProperty(Lt,"printType",{enumerable:!0,get:function(){return HN.printType}});Object.defineProperty(Lt,"printIntrospectionSchema",{enumerable:!0,get:function(){return HN.printIntrospectionSchema}});Object.defineProperty(Lt,"typeFromAST",{enumerable:!0,get:function(){return vfe.typeFromAST}});Object.defineProperty(Lt,"valueFromAST",{enumerable:!0,get:function(){return gfe.valueFromAST}});Object.defineProperty(Lt,"valueFromASTUntyped",{enumerable:!0,get:function(){return yfe.valueFromASTUntyped}});Object.defineProperty(Lt,"astFromValue",{enumerable:!0,get:function(){return bfe.astFromValue}});Object.defineProperty(Lt,"TypeInfo",{enumerable:!0,get:function(){return L4.TypeInfo}});Object.defineProperty(Lt,"visitWithTypeInfo",{enumerable:!0,get:function(){return L4.visitWithTypeInfo}});Object.defineProperty(Lt,"coerceInputValue",{enumerable:!0,get:function(){return Afe.coerceInputValue}});Object.defineProperty(Lt,"concatAST",{enumerable:!0,get:function(){return xfe.concatAST}});Object.defineProperty(Lt,"separateOperations",{enumerable:!0,get:function(){return wfe.separateOperations}});Object.defineProperty(Lt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Efe.stripIgnoredCharacters}});Object.defineProperty(Lt,"isEqualType",{enumerable:!0,get:function(){return QN.isEqualType}});Object.defineProperty(Lt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return QN.isTypeSubTypeOf}});Object.defineProperty(Lt,"doTypesOverlap",{enumerable:!0,get:function(){return QN.doTypesOverlap}});Object.defineProperty(Lt,"assertValidName",{enumerable:!0,get:function(){return P4.assertValidName}});Object.defineProperty(Lt,"isValidNameError",{enumerable:!0,get:function(){return P4.isValidNameError}});Object.defineProperty(Lt,"BreakingChangeType",{enumerable:!0,get:function(){return CA.BreakingChangeType}});Object.defineProperty(Lt,"DangerousChangeType",{enumerable:!0,get:function(){return CA.DangerousChangeType}});Object.defineProperty(Lt,"findBreakingChanges",{enumerable:!0,get:function(){return CA.findBreakingChanges}});Object.defineProperty(Lt,"findDangerousChanges",{enumerable:!0,get:function(){return CA.findDangerousChanges}});Object.defineProperty(Lt,"findDeprecatedUsages",{enumerable:!0,get:function(){return Tfe.findDeprecatedUsages}});var cfe=wN(),ffe=M8(),dfe=aA(),pfe=F8(),mfe=j8(),N4=$8(),D4=SN(),hfe=t4(),HN=u4(),vfe=os(),gfe=bv(),yfe=QS(),bfe=lv(),L4=Wb(),Afe=iN(),xfe=c4(),wfe=p4(),Efe=g4(),QN=rv(),P4=DS(),CA=k4(),Tfe=O4()});var Ur=X(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});Object.defineProperty(_,"version",{enumerable:!0,get:function(){return M4.version}});Object.defineProperty(_,"versionInfo",{enumerable:!0,get:function(){return M4.versionInfo}});Object.defineProperty(_,"graphql",{enumerable:!0,get:function(){return I4.graphql}});Object.defineProperty(_,"graphqlSync",{enumerable:!0,get:function(){return I4.graphqlSync}});Object.defineProperty(_,"GraphQLSchema",{enumerable:!0,get:function(){return Ie.GraphQLSchema}});Object.defineProperty(_,"GraphQLDirective",{enumerable:!0,get:function(){return Ie.GraphQLDirective}});Object.defineProperty(_,"GraphQLScalarType",{enumerable:!0,get:function(){return Ie.GraphQLScalarType}});Object.defineProperty(_,"GraphQLObjectType",{enumerable:!0,get:function(){return Ie.GraphQLObjectType}});Object.defineProperty(_,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ie.GraphQLInterfaceType}});Object.defineProperty(_,"GraphQLUnionType",{enumerable:!0,get:function(){return Ie.GraphQLUnionType}});Object.defineProperty(_,"GraphQLEnumType",{enumerable:!0,get:function(){return Ie.GraphQLEnumType}});Object.defineProperty(_,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ie.GraphQLInputObjectType}});Object.defineProperty(_,"GraphQLList",{enumerable:!0,get:function(){return Ie.GraphQLList}});Object.defineProperty(_,"GraphQLNonNull",{enumerable:!0,get:function(){return Ie.GraphQLNonNull}});Object.defineProperty(_,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ie.specifiedScalarTypes}});Object.defineProperty(_,"GraphQLInt",{enumerable:!0,get:function(){return Ie.GraphQLInt}});Object.defineProperty(_,"GraphQLFloat",{enumerable:!0,get:function(){return Ie.GraphQLFloat}});Object.defineProperty(_,"GraphQLString",{enumerable:!0,get:function(){return Ie.GraphQLString}});Object.defineProperty(_,"GraphQLBoolean",{enumerable:!0,get:function(){return Ie.GraphQLBoolean}});Object.defineProperty(_,"GraphQLID",{enumerable:!0,get:function(){return Ie.GraphQLID}});Object.defineProperty(_,"specifiedDirectives",{enumerable:!0,get:function(){return Ie.specifiedDirectives}});Object.defineProperty(_,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ie.GraphQLIncludeDirective}});Object.defineProperty(_,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ie.GraphQLSkipDirective}});Object.defineProperty(_,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ie.GraphQLDeprecatedDirective}});Object.defineProperty(_,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ie.GraphQLSpecifiedByDirective}});Object.defineProperty(_,"TypeKind",{enumerable:!0,get:function(){return Ie.TypeKind}});Object.defineProperty(_,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ie.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(_,"introspectionTypes",{enumerable:!0,get:function(){return Ie.introspectionTypes}});Object.defineProperty(_,"__Schema",{enumerable:!0,get:function(){return Ie.__Schema}});Object.defineProperty(_,"__Directive",{enumerable:!0,get:function(){return Ie.__Directive}});Object.defineProperty(_,"__DirectiveLocation",{enumerable:!0,get:function(){return Ie.__DirectiveLocation}});Object.defineProperty(_,"__Type",{enumerable:!0,get:function(){return Ie.__Type}});Object.defineProperty(_,"__Field",{enumerable:!0,get:function(){return Ie.__Field}});Object.defineProperty(_,"__InputValue",{enumerable:!0,get:function(){return Ie.__InputValue}});Object.defineProperty(_,"__EnumValue",{enumerable:!0,get:function(){return Ie.__EnumValue}});Object.defineProperty(_,"__TypeKind",{enumerable:!0,get:function(){return Ie.__TypeKind}});Object.defineProperty(_,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ie.SchemaMetaFieldDef}});Object.defineProperty(_,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeMetaFieldDef}});Object.defineProperty(_,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeNameMetaFieldDef}});Object.defineProperty(_,"isSchema",{enumerable:!0,get:function(){return Ie.isSchema}});Object.defineProperty(_,"isDirective",{enumerable:!0,get:function(){return Ie.isDirective}});Object.defineProperty(_,"isType",{enumerable:!0,get:function(){return Ie.isType}});Object.defineProperty(_,"isScalarType",{enumerable:!0,get:function(){return Ie.isScalarType}});Object.defineProperty(_,"isObjectType",{enumerable:!0,get:function(){return Ie.isObjectType}});Object.defineProperty(_,"isInterfaceType",{enumerable:!0,get:function(){return Ie.isInterfaceType}});Object.defineProperty(_,"isUnionType",{enumerable:!0,get:function(){return Ie.isUnionType}});Object.defineProperty(_,"isEnumType",{enumerable:!0,get:function(){return Ie.isEnumType}});Object.defineProperty(_,"isInputObjectType",{enumerable:!0,get:function(){return Ie.isInputObjectType}});Object.defineProperty(_,"isListType",{enumerable:!0,get:function(){return Ie.isListType}});Object.defineProperty(_,"isNonNullType",{enumerable:!0,get:function(){return Ie.isNonNullType}});Object.defineProperty(_,"isInputType",{enumerable:!0,get:function(){return Ie.isInputType}});Object.defineProperty(_,"isOutputType",{enumerable:!0,get:function(){return Ie.isOutputType}});Object.defineProperty(_,"isLeafType",{enumerable:!0,get:function(){return Ie.isLeafType}});Object.defineProperty(_,"isCompositeType",{enumerable:!0,get:function(){return Ie.isCompositeType}});Object.defineProperty(_,"isAbstractType",{enumerable:!0,get:function(){return Ie.isAbstractType}});Object.defineProperty(_,"isWrappingType",{enumerable:!0,get:function(){return Ie.isWrappingType}});Object.defineProperty(_,"isNullableType",{enumerable:!0,get:function(){return Ie.isNullableType}});Object.defineProperty(_,"isNamedType",{enumerable:!0,get:function(){return Ie.isNamedType}});Object.defineProperty(_,"isRequiredArgument",{enumerable:!0,get:function(){return Ie.isRequiredArgument}});Object.defineProperty(_,"isRequiredInputField",{enumerable:!0,get:function(){return Ie.isRequiredInputField}});Object.defineProperty(_,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ie.isSpecifiedScalarType}});Object.defineProperty(_,"isIntrospectionType",{enumerable:!0,get:function(){return Ie.isIntrospectionType}});Object.defineProperty(_,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ie.isSpecifiedDirective}});Object.defineProperty(_,"assertSchema",{enumerable:!0,get:function(){return Ie.assertSchema}});Object.defineProperty(_,"assertDirective",{enumerable:!0,get:function(){return Ie.assertDirective}});Object.defineProperty(_,"assertType",{enumerable:!0,get:function(){return Ie.assertType}});Object.defineProperty(_,"assertScalarType",{enumerable:!0,get:function(){return Ie.assertScalarType}});Object.defineProperty(_,"assertObjectType",{enumerable:!0,get:function(){return Ie.assertObjectType}});Object.defineProperty(_,"assertInterfaceType",{enumerable:!0,get:function(){return Ie.assertInterfaceType}});Object.defineProperty(_,"assertUnionType",{enumerable:!0,get:function(){return Ie.assertUnionType}});Object.defineProperty(_,"assertEnumType",{enumerable:!0,get:function(){return Ie.assertEnumType}});Object.defineProperty(_,"assertInputObjectType",{enumerable:!0,get:function(){return Ie.assertInputObjectType}});Object.defineProperty(_,"assertListType",{enumerable:!0,get:function(){return Ie.assertListType}});Object.defineProperty(_,"assertNonNullType",{enumerable:!0,get:function(){return Ie.assertNonNullType}});Object.defineProperty(_,"assertInputType",{enumerable:!0,get:function(){return Ie.assertInputType}});Object.defineProperty(_,"assertOutputType",{enumerable:!0,get:function(){return Ie.assertOutputType}});Object.defineProperty(_,"assertLeafType",{enumerable:!0,get:function(){return Ie.assertLeafType}});Object.defineProperty(_,"assertCompositeType",{enumerable:!0,get:function(){return Ie.assertCompositeType}});Object.defineProperty(_,"assertAbstractType",{enumerable:!0,get:function(){return Ie.assertAbstractType}});Object.defineProperty(_,"assertWrappingType",{enumerable:!0,get:function(){return Ie.assertWrappingType}});Object.defineProperty(_,"assertNullableType",{enumerable:!0,get:function(){return Ie.assertNullableType}});Object.defineProperty(_,"assertNamedType",{enumerable:!0,get:function(){return Ie.assertNamedType}});Object.defineProperty(_,"getNullableType",{enumerable:!0,get:function(){return Ie.getNullableType}});Object.defineProperty(_,"getNamedType",{enumerable:!0,get:function(){return Ie.getNamedType}});Object.defineProperty(_,"validateSchema",{enumerable:!0,get:function(){return Ie.validateSchema}});Object.defineProperty(_,"assertValidSchema",{enumerable:!0,get:function(){return Ie.assertValidSchema}});Object.defineProperty(_,"Token",{enumerable:!0,get:function(){return nr.Token}});Object.defineProperty(_,"Source",{enumerable:!0,get:function(){return nr.Source}});Object.defineProperty(_,"Location",{enumerable:!0,get:function(){return nr.Location}});Object.defineProperty(_,"getLocation",{enumerable:!0,get:function(){return nr.getLocation}});Object.defineProperty(_,"printLocation",{enumerable:!0,get:function(){return nr.printLocation}});Object.defineProperty(_,"printSourceLocation",{enumerable:!0,get:function(){return nr.printSourceLocation}});Object.defineProperty(_,"Lexer",{enumerable:!0,get:function(){return nr.Lexer}});Object.defineProperty(_,"TokenKind",{enumerable:!0,get:function(){return nr.TokenKind}});Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return nr.parse}});Object.defineProperty(_,"parseValue",{enumerable:!0,get:function(){return nr.parseValue}});Object.defineProperty(_,"parseType",{enumerable:!0,get:function(){return nr.parseType}});Object.defineProperty(_,"print",{enumerable:!0,get:function(){return nr.print}});Object.defineProperty(_,"visit",{enumerable:!0,get:function(){return nr.visit}});Object.defineProperty(_,"visitInParallel",{enumerable:!0,get:function(){return nr.visitInParallel}});Object.defineProperty(_,"getVisitFn",{enumerable:!0,get:function(){return nr.getVisitFn}});Object.defineProperty(_,"BREAK",{enumerable:!0,get:function(){return nr.BREAK}});Object.defineProperty(_,"Kind",{enumerable:!0,get:function(){return nr.Kind}});Object.defineProperty(_,"DirectiveLocation",{enumerable:!0,get:function(){return nr.DirectiveLocation}});Object.defineProperty(_,"isDefinitionNode",{enumerable:!0,get:function(){return nr.isDefinitionNode}});Object.defineProperty(_,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return nr.isExecutableDefinitionNode}});Object.defineProperty(_,"isSelectionNode",{enumerable:!0,get:function(){return nr.isSelectionNode}});Object.defineProperty(_,"isValueNode",{enumerable:!0,get:function(){return nr.isValueNode}});Object.defineProperty(_,"isTypeNode",{enumerable:!0,get:function(){return nr.isTypeNode}});Object.defineProperty(_,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeSystemDefinitionNode}});Object.defineProperty(_,"isTypeDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeDefinitionNode}});Object.defineProperty(_,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return nr.isTypeSystemExtensionNode}});Object.defineProperty(_,"isTypeExtensionNode",{enumerable:!0,get:function(){return nr.isTypeExtensionNode}});Object.defineProperty(_,"execute",{enumerable:!0,get:function(){return cp.execute}});Object.defineProperty(_,"executeSync",{enumerable:!0,get:function(){return cp.executeSync}});Object.defineProperty(_,"defaultFieldResolver",{enumerable:!0,get:function(){return cp.defaultFieldResolver}});Object.defineProperty(_,"defaultTypeResolver",{enumerable:!0,get:function(){return cp.defaultTypeResolver}});Object.defineProperty(_,"responsePathAsArray",{enumerable:!0,get:function(){return cp.responsePathAsArray}});Object.defineProperty(_,"getDirectiveValues",{enumerable:!0,get:function(){return cp.getDirectiveValues}});Object.defineProperty(_,"subscribe",{enumerable:!0,get:function(){return F4.subscribe}});Object.defineProperty(_,"createSourceEventStream",{enumerable:!0,get:function(){return F4.createSourceEventStream}});Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return St.validate}});Object.defineProperty(_,"ValidationContext",{enumerable:!0,get:function(){return St.ValidationContext}});Object.defineProperty(_,"specifiedRules",{enumerable:!0,get:function(){return St.specifiedRules}});Object.defineProperty(_,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return St.ExecutableDefinitionsRule}});Object.defineProperty(_,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return St.FieldsOnCorrectTypeRule}});Object.defineProperty(_,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return St.FragmentsOnCompositeTypesRule}});Object.defineProperty(_,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return St.KnownArgumentNamesRule}});Object.defineProperty(_,"KnownDirectivesRule",{enumerable:!0,get:function(){return St.KnownDirectivesRule}});Object.defineProperty(_,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return St.KnownFragmentNamesRule}});Object.defineProperty(_,"KnownTypeNamesRule",{enumerable:!0,get:function(){return St.KnownTypeNamesRule}});Object.defineProperty(_,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return St.LoneAnonymousOperationRule}});Object.defineProperty(_,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return St.NoFragmentCyclesRule}});Object.defineProperty(_,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return St.NoUndefinedVariablesRule}});Object.defineProperty(_,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return St.NoUnusedFragmentsRule}});Object.defineProperty(_,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return St.NoUnusedVariablesRule}});Object.defineProperty(_,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return St.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(_,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return St.PossibleFragmentSpreadsRule}});Object.defineProperty(_,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return St.ProvidedRequiredArgumentsRule}});Object.defineProperty(_,"ScalarLeafsRule",{enumerable:!0,get:function(){return St.ScalarLeafsRule}});Object.defineProperty(_,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return St.SingleFieldSubscriptionsRule}});Object.defineProperty(_,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return St.UniqueArgumentNamesRule}});Object.defineProperty(_,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return St.UniqueDirectivesPerLocationRule}});Object.defineProperty(_,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return St.UniqueFragmentNamesRule}});Object.defineProperty(_,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return St.UniqueInputFieldNamesRule}});Object.defineProperty(_,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return St.UniqueOperationNamesRule}});Object.defineProperty(_,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return St.UniqueVariableNamesRule}});Object.defineProperty(_,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return St.ValuesOfCorrectTypeRule}});Object.defineProperty(_,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return St.VariablesAreInputTypesRule}});Object.defineProperty(_,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return St.VariablesInAllowedPositionRule}});Object.defineProperty(_,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return St.LoneSchemaDefinitionRule}});Object.defineProperty(_,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return St.UniqueOperationTypesRule}});Object.defineProperty(_,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return St.UniqueTypeNamesRule}});Object.defineProperty(_,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return St.UniqueEnumValueNamesRule}});Object.defineProperty(_,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return St.UniqueFieldDefinitionNamesRule}});Object.defineProperty(_,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return St.UniqueDirectiveNamesRule}});Object.defineProperty(_,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return St.PossibleTypeExtensionsRule}});Object.defineProperty(_,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return St.NoDeprecatedCustomRule}});Object.defineProperty(_,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return St.NoSchemaIntrospectionCustomRule}});Object.defineProperty(_,"GraphQLError",{enumerable:!0,get:function(){return qv.GraphQLError}});Object.defineProperty(_,"syntaxError",{enumerable:!0,get:function(){return qv.syntaxError}});Object.defineProperty(_,"locatedError",{enumerable:!0,get:function(){return qv.locatedError}});Object.defineProperty(_,"printError",{enumerable:!0,get:function(){return qv.printError}});Object.defineProperty(_,"formatError",{enumerable:!0,get:function(){return qv.formatError}});Object.defineProperty(_,"getIntrospectionQuery",{enumerable:!0,get:function(){return Mt.getIntrospectionQuery}});Object.defineProperty(_,"getOperationAST",{enumerable:!0,get:function(){return Mt.getOperationAST}});Object.defineProperty(_,"getOperationRootType",{enumerable:!0,get:function(){return Mt.getOperationRootType}});Object.defineProperty(_,"introspectionFromSchema",{enumerable:!0,get:function(){return Mt.introspectionFromSchema}});Object.defineProperty(_,"buildClientSchema",{enumerable:!0,get:function(){return Mt.buildClientSchema}});Object.defineProperty(_,"buildASTSchema",{enumerable:!0,get:function(){return Mt.buildASTSchema}});Object.defineProperty(_,"buildSchema",{enumerable:!0,get:function(){return Mt.buildSchema}});Object.defineProperty(_,"getDescription",{enumerable:!0,get:function(){return Mt.getDescription}});Object.defineProperty(_,"extendSchema",{enumerable:!0,get:function(){return Mt.extendSchema}});Object.defineProperty(_,"lexicographicSortSchema",{enumerable:!0,get:function(){return Mt.lexicographicSortSchema}});Object.defineProperty(_,"printSchema",{enumerable:!0,get:function(){return Mt.printSchema}});Object.defineProperty(_,"printType",{enumerable:!0,get:function(){return Mt.printType}});Object.defineProperty(_,"printIntrospectionSchema",{enumerable:!0,get:function(){return Mt.printIntrospectionSchema}});Object.defineProperty(_,"typeFromAST",{enumerable:!0,get:function(){return Mt.typeFromAST}});Object.defineProperty(_,"valueFromAST",{enumerable:!0,get:function(){return Mt.valueFromAST}});Object.defineProperty(_,"valueFromASTUntyped",{enumerable:!0,get:function(){return Mt.valueFromASTUntyped}});Object.defineProperty(_,"astFromValue",{enumerable:!0,get:function(){return Mt.astFromValue}});Object.defineProperty(_,"TypeInfo",{enumerable:!0,get:function(){return Mt.TypeInfo}});Object.defineProperty(_,"visitWithTypeInfo",{enumerable:!0,get:function(){return Mt.visitWithTypeInfo}});Object.defineProperty(_,"coerceInputValue",{enumerable:!0,get:function(){return Mt.coerceInputValue}});Object.defineProperty(_,"concatAST",{enumerable:!0,get:function(){return Mt.concatAST}});Object.defineProperty(_,"separateOperations",{enumerable:!0,get:function(){return Mt.separateOperations}});Object.defineProperty(_,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Mt.stripIgnoredCharacters}});Object.defineProperty(_,"isEqualType",{enumerable:!0,get:function(){return Mt.isEqualType}});Object.defineProperty(_,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Mt.isTypeSubTypeOf}});Object.defineProperty(_,"doTypesOverlap",{enumerable:!0,get:function(){return Mt.doTypesOverlap}});Object.defineProperty(_,"assertValidName",{enumerable:!0,get:function(){return Mt.assertValidName}});Object.defineProperty(_,"isValidNameError",{enumerable:!0,get:function(){return Mt.isValidNameError}});Object.defineProperty(_,"BreakingChangeType",{enumerable:!0,get:function(){return Mt.BreakingChangeType}});Object.defineProperty(_,"DangerousChangeType",{enumerable:!0,get:function(){return Mt.DangerousChangeType}});Object.defineProperty(_,"findBreakingChanges",{enumerable:!0,get:function(){return Mt.findBreakingChanges}});Object.defineProperty(_,"findDangerousChanges",{enumerable:!0,get:function(){return Mt.findDangerousChanges}});Object.defineProperty(_,"findDeprecatedUsages",{enumerable:!0,get:function(){return Mt.findDeprecatedUsages}});var M4=Z3(),I4=s8(),Ie=u8(),nr=d8(),cp=p8(),F4=k8(),St=N8(),qv=P8(),Mt=R4()});function _N(e){let t;return $N(e,r=>{switch(r.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=r;break}}),t}function NA(e,t,r){return r===xa.SchemaMetaFieldDef.name&&e.getQueryType()===t?xa.SchemaMetaFieldDef:r===xa.TypeMetaFieldDef.name&&e.getQueryType()===t?xa.TypeMetaFieldDef:r===xa.TypeNameMetaFieldDef.name&&(0,xa.isCompositeType)(t)?xa.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[r]:null}function $N(e,t){let r=[],n=e;for(;n?.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i])}function pu(e){let t=Object.keys(e),r=t.length,n=new Array(r);for(let i=0;i!n.isDeprecated);let r=e.map(n=>({proximity:Ffe(Q4(n.label),t),entry:n}));return JN(JN(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.label.length-i.entry.label.length).map(n=>n.entry)}function JN(e,t){let r=e.filter(t);return r.length===0?e:r}function Q4(e){return e.toLowerCase().replaceAll(/\W/g,"")}function Ffe(e,t){let r=qfe(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function qfe(e,t){let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}var xa,eD=at(()=>{xa=fe(Ur())});var W4,tD,Y4,DA,wa,Yr,LA,K4,rD,X4,Z4,J4,_4,nD,$4,e6,t6,PA,pp,mp,iD,hp,r6,oD,aD,sD,lD,uD,n6,i6,cD,o6,fD,Vv,a6,Uv,s6,l6,u6,c6,f6,d6,RA,p6,m6,h6,v6,g6,y6,b6,A6,x6,w6,E6,MA,T6,C6,S6,k6,O6,N6,D6,L6,P6,R6,M6,I6,F6,dD,pD,q6,j6,V6,U6,B6,G6,z6,H6,Q6,mD,ne,W6=at(()=>{"use strict";(function(e){function t(r){return typeof r=="string"}e.is=t})(W4||(W4={}));(function(e){function t(r){return typeof r=="string"}e.is=t})(tD||(tD={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Y4||(Y4={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(DA||(DA={}));(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=DA.MAX_VALUE),i===Number.MAX_VALUE&&(i=DA.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&ne.uinteger(i.line)&&ne.uinteger(i.character)}e.is=r})(wa||(wa={}));(function(e){function t(n,i,o,s){if(ne.uinteger(n)&&ne.uinteger(i)&&ne.uinteger(o)&&ne.uinteger(s))return{start:wa.create(n,i),end:wa.create(o,s)};if(wa.is(n)&&wa.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`)}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&wa.is(i.start)&&wa.is(i.end)}e.is=r})(Yr||(Yr={}));(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&(ne.string(i.uri)||ne.undefined(i.uri))}e.is=r})(LA||(LA={}));(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&Yr.is(i.targetRange)&&ne.string(i.targetUri)&&Yr.is(i.targetSelectionRange)&&(Yr.is(i.originSelectionRange)||ne.undefined(i.originSelectionRange))}e.is=r})(K4||(K4={}));(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&ne.numberRange(i.red,0,1)&&ne.numberRange(i.green,0,1)&&ne.numberRange(i.blue,0,1)&&ne.numberRange(i.alpha,0,1)}e.is=r})(rD||(rD={}));(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&rD.is(i.color)}e.is=r})(X4||(X4={}));(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.undefined(i.textEdit)||mp.is(i))&&(ne.undefined(i.additionalTextEdits)||ne.typedArray(i.additionalTextEdits,mp.is))}e.is=r})(Z4||(Z4={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(J4||(J4={}));(function(e){function t(n,i,o,s,l,c){let f={startLine:n,endLine:i};return ne.defined(o)&&(f.startCharacter=o),ne.defined(s)&&(f.endCharacter=s),ne.defined(l)&&(f.kind=l),ne.defined(c)&&(f.collapsedText=c),f}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&ne.uinteger(i.startLine)&&ne.uinteger(i.startLine)&&(ne.undefined(i.startCharacter)||ne.uinteger(i.startCharacter))&&(ne.undefined(i.endCharacter)||ne.uinteger(i.endCharacter))&&(ne.undefined(i.kind)||ne.string(i.kind))}e.is=r})(_4||(_4={}));(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&LA.is(i.location)&&ne.string(i.message)}e.is=r})(nD||(nD={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})($4||($4={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(e6||(e6={}));(function(e){function t(r){let n=r;return ne.objectLiteral(n)&&ne.string(n.href)}e.is=t})(t6||(t6={}));(function(e){function t(n,i,o,s,l,c){let f={range:n,message:i};return ne.defined(o)&&(f.severity=o),ne.defined(s)&&(f.code=s),ne.defined(l)&&(f.source=l),ne.defined(c)&&(f.relatedInformation=c),f}e.create=t;function r(n){var i;let o=n;return ne.defined(o)&&Yr.is(o.range)&&ne.string(o.message)&&(ne.number(o.severity)||ne.undefined(o.severity))&&(ne.integer(o.code)||ne.string(o.code)||ne.undefined(o.code))&&(ne.undefined(o.codeDescription)||ne.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(ne.string(o.source)||ne.undefined(o.source))&&(ne.undefined(o.relatedInformation)||ne.typedArray(o.relatedInformation,nD.is))}e.is=r})(PA||(PA={}));(function(e){function t(n,i,...o){let s={title:n,command:i};return ne.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.string(i.title)&&ne.string(i.command)}e.is=r})(pp||(pp={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){let s=o;return ne.objectLiteral(s)&&ne.string(s.newText)&&Yr.is(s.range)}e.is=i})(mp||(mp={}));(function(e){function t(n,i,o){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ne.string(i.description)||i.description===void 0)}e.is=r})(iD||(iD={}));(function(e){function t(r){let n=r;return ne.string(n)}e.is=t})(hp||(hp={}));(function(e){function t(o,s,l){return{range:o,newText:s,annotationId:l}}e.replace=t;function r(o,s,l){return{range:{start:o,end:o},newText:s,annotationId:l}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){let s=o;return mp.is(s)&&(iD.is(s.annotationId)||hp.is(s.annotationId))}e.is=i})(r6||(r6={}));(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&cD.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(oD||(oD={}));(function(e){function t(n,i,o){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&ne.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||hp.is(i.annotationId))}e.is=r})(aD||(aD={}));(function(e){function t(n,i,o,s){let l={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),s!==void 0&&(l.annotationId=s),l}e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&ne.string(i.oldUri)&&ne.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||hp.is(i.annotationId))}e.is=r})(sD||(sD={}));(function(e){function t(n,i,o){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&ne.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ne.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ne.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||hp.is(i.annotationId))}e.is=r})(lD||(lD={}));(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>ne.string(i.kind)?aD.is(i)||sD.is(i)||lD.is(i):oD.is(i)))}e.is=t})(uD||(uD={}));(function(e){function t(n){return{uri:n}}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.string(i.uri)}e.is=r})(n6||(n6={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.integer(i.version)}e.is=r})(i6||(i6={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.string(i.uri)&&(i.version===null||ne.integer(i.version))}e.is=r})(cD||(cD={}));(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.string(i.languageId)&&ne.integer(i.version)&&ne.string(i.text)}e.is=r})(o6||(o6={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(fD||(fD={}));(function(e){function t(r){let n=r;return ne.objectLiteral(r)&&fD.is(n.kind)&&ne.string(n.value)}e.is=t})(Vv||(Vv={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(a6||(a6={}));(function(e){e.PlainText=1,e.Snippet=2})(Uv||(Uv={}));(function(e){e.Deprecated=1})(s6||(s6={}));(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){let i=n;return i&&ne.string(i.newText)&&Yr.is(i.insert)&&Yr.is(i.replace)}e.is=r})(l6||(l6={}));(function(e){e.asIs=1,e.adjustIndentation=2})(u6||(u6={}));(function(e){function t(r){let n=r;return n&&(ne.string(n.detail)||n.detail===void 0)&&(ne.string(n.description)||n.description===void 0)}e.is=t})(c6||(c6={}));(function(e){function t(r){return{label:r}}e.create=t})(f6||(f6={}));(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(d6||(d6={}));(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){let i=n;return ne.string(i)||ne.objectLiteral(i)&&ne.string(i.language)&&ne.string(i.value)}e.is=r})(RA||(RA={}));(function(e){function t(r){let n=r;return!!n&&ne.objectLiteral(n)&&(Vv.is(n.contents)||RA.is(n.contents)||ne.typedArray(n.contents,RA.is))&&(r.range===void 0||Yr.is(r.range))}e.is=t})(p6||(p6={}));(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(m6||(m6={}));(function(e){function t(r,n,...i){let o={label:r};return ne.defined(n)&&(o.documentation=n),ne.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(h6||(h6={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(v6||(v6={}));(function(e){function t(r,n){let i={range:r};return ne.number(n)&&(i.kind=n),i}e.create=t})(g6||(g6={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(y6||(y6={}));(function(e){e.Deprecated=1})(b6||(b6={}));(function(e){function t(r,n,i,o,s){let l={name:r,kind:n,location:{uri:o,range:i}};return s&&(l.containerName=s),l}e.create=t})(A6||(A6={}));(function(e){function t(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(x6||(x6={}));(function(e){function t(n,i,o,s,l,c){let f={name:n,detail:i,kind:o,range:s,selectionRange:l};return c!==void 0&&(f.children=c),f}e.create=t;function r(n){let i=n;return i&&ne.string(i.name)&&ne.number(i.kind)&&Yr.is(i.range)&&Yr.is(i.selectionRange)&&(i.detail===void 0||ne.string(i.detail))&&(i.deprecated===void 0||ne.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(w6||(w6={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(E6||(E6={}));(function(e){e.Invoked=1,e.Automatic=2})(MA||(MA={}));(function(e){function t(n,i,o){let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.typedArray(i.diagnostics,PA.is)&&(i.only===void 0||ne.typedArray(i.only,ne.string))&&(i.triggerKind===void 0||i.triggerKind===MA.Invoked||i.triggerKind===MA.Automatic)}e.is=r})(T6||(T6={}));(function(e){function t(n,i,o){let s={title:n},l=!0;return typeof i=="string"?(l=!1,s.kind=i):pp.is(i)?s.command=i:s.edit=i,l&&o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return i&&ne.string(i.title)&&(i.diagnostics===void 0||ne.typedArray(i.diagnostics,PA.is))&&(i.kind===void 0||ne.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||pp.is(i.command))&&(i.isPreferred===void 0||ne.boolean(i.isPreferred))&&(i.edit===void 0||uD.is(i.edit))}e.is=r})(C6||(C6={}));(function(e){function t(n,i){let o={range:n};return ne.defined(i)&&(o.data=i),o}e.create=t;function r(n){let i=n;return ne.defined(i)&&Yr.is(i.range)&&(ne.undefined(i.command)||pp.is(i.command))}e.is=r})(S6||(S6={}));(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&ne.uinteger(i.tabSize)&&ne.boolean(i.insertSpaces)}e.is=r})(k6||(k6={}));(function(e){function t(n,i,o){return{range:n,target:i,data:o}}e.create=t;function r(n){let i=n;return ne.defined(i)&&Yr.is(i.range)&&(ne.undefined(i.target)||ne.string(i.target))}e.is=r})(O6||(O6={}));(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(N6||(N6={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(D6||(D6={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(L6||(L6={}));(function(e){function t(r){let n=r;return ne.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(P6||(P6={}));(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){let i=n;return i!=null&&Yr.is(i.range)&&ne.string(i.text)}e.is=r})(R6||(R6={}));(function(e){function t(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}e.create=t;function r(n){let i=n;return i!=null&&Yr.is(i.range)&&ne.boolean(i.caseSensitiveLookup)&&(ne.string(i.variableName)||i.variableName===void 0)}e.is=r})(M6||(M6={}));(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){let i=n;return i!=null&&Yr.is(i.range)&&(ne.string(i.expression)||i.expression===void 0)}e.is=r})(I6||(I6={}));(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){let i=n;return ne.defined(i)&&Yr.is(n.stoppedLocation)}e.is=r})(F6||(F6={}));(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(dD||(dD={}));(function(e){function t(n){return{value:n}}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&(i.tooltip===void 0||ne.string(i.tooltip)||Vv.is(i.tooltip))&&(i.location===void 0||LA.is(i.location))&&(i.command===void 0||pp.is(i.command))}e.is=r})(pD||(pD={}));(function(e){function t(n,i,o){let s={position:n,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return ne.objectLiteral(i)&&wa.is(i.position)&&(ne.string(i.label)||ne.typedArray(i.label,pD.is))&&(i.kind===void 0||dD.is(i.kind))&&i.textEdits===void 0||ne.typedArray(i.textEdits,mp.is)&&(i.tooltip===void 0||ne.string(i.tooltip)||Vv.is(i.tooltip))&&(i.paddingLeft===void 0||ne.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ne.boolean(i.paddingRight))}e.is=r})(q6||(q6={}));(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(j6||(j6={}));(function(e){function t(r,n,i,o){return{insertText:r,filterText:n,range:i,command:o}}e.create=t})(V6||(V6={}));(function(e){function t(r){return{items:r}}e.create=t})(U6||(U6={}));(function(e){e.Invoked=0,e.Automatic=1})(B6||(B6={}));(function(e){function t(r,n){return{range:r,text:n}}e.create=t})(G6||(G6={}));(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}e.create=t})(z6||(z6={}));(function(e){function t(r){let n=r;return ne.objectLiteral(n)&&tD.is(n.uri)&&ne.string(n.name)}e.is=t})(H6||(H6={}));(function(e){function t(o,s,l,c){return new mD(o,s,l,c)}e.create=t;function r(o){let s=o;return!!(ne.defined(s)&&ne.string(s.uri)&&(ne.undefined(s.languageId)||ne.string(s.languageId))&&ne.uinteger(s.lineCount)&&ne.func(s.getText)&&ne.func(s.positionAt)&&ne.func(s.offsetAt))}e.is=r;function n(o,s){let l=o.getText(),c=i(s,(m,v)=>{let g=m.range.start.line-v.range.start.line;return g===0?m.range.start.character-v.range.start.character:g}),f=l.length;for(let m=c.length-1;m>=0;m--){let v=c[m],g=o.offsetAt(v.range.start),y=o.offsetAt(v.range.end);if(y<=f)l=l.substring(0,g)+v.newText+l.substring(y,l.length);else throw new Error("Overlapping edit");f=g}return l}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;let l=o.length/2|0,c=o.slice(0,l),f=o.slice(l);i(c,s),i(f,s);let m=0,v=0,g=0;for(;m0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return wa.create(0,t);for(;nt?i=s:n=s+1}let o=n-1;return wa.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1"u"}e.undefined=n;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function l(y,w,T){return t.call(y)==="[object Number]"&&w<=y&&y<=T}e.numberRange=l;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function f(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=f;function m(y){return t.call(y)==="[object Function]"}e.func=m;function v(y){return y!==null&&typeof y=="object"}e.objectLiteral=v;function g(y,w){return Array.isArray(y)&&y.every(w)}e.typedArray=g})(ne||(ne={}))});var At,hD=at(()=>{W6();(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(At||(At={}))});var cs,Y6=at(()=>{cs=class{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,i=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s?.[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/\s*/),n=0;if(r&&r.length!==0){let i=r[0],o=0;for(;i.length>o;)i.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}}});function er(e){return{ofRule:e}}function gt(e,t){return{ofRule:e,isList:!0,separator:t}}function vD(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}function Dn(e,t){return{style:t,match:r=>r.kind===e}}function ze(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}var gD=at(()=>{});function Qn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function ar(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function jfe(e){return{style:e,match:t=>t.kind==="Name",update(t,r){var n;!((n=t.prevState)===null||n===void 0)&&n.prevState&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}var ui,vp,gp,yp,yD=at(()=>{gD();ui=fe(Ur()),vp=e=>e===" "||e===" "||e===","||e===` -`||e==="\r"||e==="\uFEFF"||e==="\xA0",gp={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},yp={Document:[gt("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return ui.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Qn("query"),er(ar("def")),er("VariableDefinitions"),gt("Directive"),"SelectionSet"],Mutation:[Qn("mutation"),er(ar("def")),er("VariableDefinitions"),gt("Directive"),"SelectionSet"],Subscription:[Qn("subscription"),er(ar("def")),er("VariableDefinitions"),gt("Directive"),"SelectionSet"],VariableDefinitions:[ze("("),gt("VariableDefinition"),ze(")")],VariableDefinition:["Variable",ze(":"),"Type",er("DefaultValue")],Variable:[ze("$","variable"),ar("variable")],DefaultValue:[ze("="),"Value"],SelectionSet:[ze("{"),gt("Selection"),ze("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[ar("property"),ze(":"),ar("qualifier"),er("Arguments"),gt("Directive"),er("SelectionSet")],Field:[ar("property"),er("Arguments"),gt("Directive"),er("SelectionSet")],Arguments:[ze("("),gt("Argument"),ze(")")],Argument:[ar("attribute"),ze(":"),"Value"],FragmentSpread:[ze("..."),ar("def"),gt("Directive")],InlineFragment:[ze("..."),er("TypeCondition"),gt("Directive"),"SelectionSet"],FragmentDefinition:[Qn("fragment"),er(vD(ar("def"),[Qn("on")])),"TypeCondition",gt("Directive"),"SelectionSet"],TypeCondition:[Qn("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Dn("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Dn("Name","builtin")],NullValue:[Dn("Name","keyword")],EnumValue:[ar("string-2")],ListValue:[ze("["),gt("Value"),ze("]")],ObjectValue:[ze("{"),gt("ObjectField"),ze("}")],ObjectField:[ar("attribute"),ze(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[ze("["),"Type",ze("]"),er(ze("!"))],NonNullType:["NamedType",er(ze("!"))],NamedType:[jfe("atom")],Directive:[ze("@","meta"),ar("meta"),er("Arguments")],DirectiveDef:[Qn("directive"),ze("@","meta"),ar("meta"),er("ArgumentsDef"),Qn("on"),gt("DirectiveLocation",ze("|"))],InterfaceDef:[Qn("interface"),ar("atom"),er("Implements"),gt("Directive"),ze("{"),gt("FieldDef"),ze("}")],Implements:[Qn("implements"),gt("NamedType",ze("&"))],DirectiveLocation:[ar("string-2")],SchemaDef:[Qn("schema"),gt("Directive"),ze("{"),gt("OperationTypeDef"),ze("}")],OperationTypeDef:[ar("keyword"),ze(":"),ar("atom")],ScalarDef:[Qn("scalar"),ar("atom"),gt("Directive")],ObjectTypeDef:[Qn("type"),ar("atom"),er("Implements"),gt("Directive"),ze("{"),gt("FieldDef"),ze("}")],FieldDef:[ar("property"),er("ArgumentsDef"),ze(":"),"Type",gt("Directive")],ArgumentsDef:[ze("("),gt("InputValueDef"),ze(")")],InputValueDef:[ar("attribute"),ze(":"),"Type",er("DefaultValue"),gt("Directive")],UnionDef:[Qn("union"),ar("atom"),gt("Directive"),ze("="),gt("UnionMember",ze("|"))],UnionMember:["NamedType"],EnumDef:[Qn("enum"),ar("atom"),gt("Directive"),ze("{"),gt("EnumValueDef"),ze("}")],EnumValueDef:[ar("string-2"),gt("Directive")],InputDef:[Qn("input"),ar("atom"),gt("Directive"),ze("{"),gt("InputValueDef"),ze("}")],ExtendDef:[Qn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return ui.Kind.SCHEMA_EXTENSION;case"scalar":return ui.Kind.SCALAR_TYPE_EXTENSION;case"type":return ui.Kind.OBJECT_TYPE_EXTENSION;case"interface":return ui.Kind.INTERFACE_TYPE_EXTENSION;case"union":return ui.Kind.UNION_TYPE_EXTENSION;case"enum":return ui.Kind.ENUM_TYPE_EXTENSION;case"input":return ui.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[ui.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[ui.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[ui.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[ui.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[ui.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[ui.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[ui.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]}});function po(e={eatWhitespace:t=>t.eatWhile(vp),lexRules:gp,parseRules:yp,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Bv(e.parseRules,t,Z6.Kind.DOCUMENT),t},token(t,r){return Vfe(t,r,e)}}}function Vfe(e,t,r){var n;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");let{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:l}=r;if(t.rule&&t.rule.length===0?xD(t):t.needsAdvance&&(t.needsAdvance=!1,AD(t,!0)),e.sol()){let m=l?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/m)}if(s(e))return"ws";let c=Bfe(i,e);if(!c)return e.match(/\S+/)||e.match(/\s/),Bv(bD,t,"Invalid"),"invalidchar";if(c.kind==="Comment")return Bv(bD,t,"Comment"),"comment";let f=K6({},t);if(c.kind==="Punctuation"){if(/^[{([]/.test(c.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(c.value)){let m=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&m.length>0&&m.at(-1){yD();Z6=fe(Ur());bD={Invalid:[],Comment:[]}});var _6,Gfe,Ne,$6=at(()=>{_6=fe(Ur()),Gfe={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},Ne=Object.assign(Object.assign({},_6.Kind),Gfe)});var IA=at(()=>{Y6();yD();gD();J6();$6()});function ED(e,t,r,n,i,o){var s;let l=Object.assign(Object.assign({},o),{schema:e}),c=n||CD(t,r,1),f=c.state.kind==="Invalid"?c.state.prevState:c.state,m=o?.mode||ide(t,o?.uri);if(!f)return[];let{kind:v,step:g,prevState:y}=f,w=SD(e,c.state);if(v===Ne.DOCUMENT)return m===Kc.TYPE_SYSTEM?Yfe(c):Kfe(c);if(v===Ne.EXTEND_DEF)return Xfe(c);if(((s=y?.prevState)===null||s===void 0?void 0:s.kind)===Ne.EXTENSION_DEFINITION&&f.name)return Cr(c,[]);if(y?.kind===de.Kind.SCALAR_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isScalarType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.OBJECT_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isObjectType)(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.INTERFACE_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isInterfaceType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.UNION_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isUnionType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.ENUM_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isEnumType)(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.INPUT_OBJECT_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isInputObjectType).map(S=>({label:S.name,kind:At.Function})));if(v===Ne.IMPLEMENTS||v===Ne.NAMED_TYPE&&y?.kind===Ne.IMPLEMENTS)return _fe(c,f,e,t,w);if(v===Ne.SELECTION_SET||v===Ne.FIELD||v===Ne.ALIASED_FIELD)return Zfe(c,w,l);if(v===Ne.ARGUMENTS||v===Ne.ARGUMENT&&g===0){let{argDefs:S}=w;if(S)return Cr(c,S.map(A=>{var b;return{label:A.name,insertText:A.name+": ",command:wD,detail:String(A.type),documentation:(b=A.description)!==null&&b!==void 0?b:void 0,kind:At.Variable,type:A.type}}))}if((v===Ne.OBJECT_VALUE||v===Ne.OBJECT_FIELD&&g===0)&&w.objectFieldDefs){let S=pu(w.objectFieldDefs),A=v===Ne.OBJECT_VALUE?At.Value:At.Field;return Cr(c,S.map(b=>{var C;return{label:b.name,detail:String(b.type),documentation:(C=b.description)!==null&&C!==void 0?C:void 0,kind:A,type:b.type}}))}if(v===Ne.ENUM_VALUE||v===Ne.LIST_VALUE&&g===1||v===Ne.OBJECT_FIELD&&g===2||v===Ne.ARGUMENT&&g===2)return Jfe(c,w,t,e);if(v===Ne.VARIABLE&&g===1){let S=(0,de.getNamedType)(w.inputType),A=TD(t,e,c);return Cr(c,A.filter(b=>b.detail===S?.name))}if(v===Ne.TYPE_CONDITION&&g===1||v===Ne.NAMED_TYPE&&y!=null&&y.kind===Ne.TYPE_CONDITION)return $fe(c,w,e,v);if(v===Ne.FRAGMENT_SPREAD&&g===1)return ede(c,w,e,t,Array.isArray(i)?i:zfe(i));let T=rq(f);if(m===Kc.TYPE_SYSTEM&&!T.needsAdvance&&v===Ne.NAMED_TYPE||v===Ne.LIST_TYPE){if(T.kind===Ne.FIELD_DEF)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isOutputType)(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:At.Function})));if(T.kind===Ne.INPUT_VALUE_DEF)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isInputType)(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:At.Function})))}return v===Ne.VARIABLE_DEFINITION&&g===2||v===Ne.LIST_TYPE&&g===1||v===Ne.NAMED_TYPE&&y&&(y.kind===Ne.VARIABLE_DEFINITION||y.kind===Ne.LIST_TYPE||y.kind===Ne.NON_NULL_TYPE)?rde(c,e,v):v===Ne.DIRECTIVE?nde(c,f,e,v):[]}function Yfe(e){return Cr(e,[{label:"extend",kind:At.Function},{label:"type",kind:At.Function},{label:"interface",kind:At.Function},{label:"union",kind:At.Function},{label:"input",kind:At.Function},{label:"scalar",kind:At.Function},{label:"schema",kind:At.Function}])}function Kfe(e){return Cr(e,[{label:"query",kind:At.Function},{label:"mutation",kind:At.Function},{label:"subscription",kind:At.Function},{label:"fragment",kind:At.Function},{label:"{",kind:At.Constructor}])}function Xfe(e){return Cr(e,[{label:"type",kind:At.Function},{label:"interface",kind:At.Function},{label:"union",kind:At.Function},{label:"input",kind:At.Function},{label:"scalar",kind:At.Function},{label:"schema",kind:At.Function}])}function Zfe(e,t,r){var n;if(t.parentType){let{parentType:i}=t,o=[];return"getFields"in i&&(o=pu(i.getFields())),(0,de.isCompositeType)(i)&&o.push(de.TypeNameMetaFieldDef),i===((n=r?.schema)===null||n===void 0?void 0:n.getQueryType())&&o.push(de.SchemaMetaFieldDef,de.TypeMetaFieldDef),Cr(e,o.map((s,l)=>{var c;let f={sortText:String(l)+s.name,label:s.name,detail:String(s.type),documentation:(c=s.description)!==null&&c!==void 0?c:void 0,deprecated:!!s.deprecationReason,isDeprecated:!!s.deprecationReason,deprecationReason:s.deprecationReason,kind:At.Field,type:s.type};if(r?.fillLeafsOnComplete){let m=Wfe(s);m&&(f.insertText=s.name+m,f.insertTextFormat=Uv.Snippet,f.command=wD)}return f}))}return[]}function Jfe(e,t,r,n){let i=(0,de.getNamedType)(t.inputType),o=TD(r,n,e).filter(s=>s.detail===i.name);if(i instanceof de.GraphQLEnumType){let s=i.getValues();return Cr(e,s.map(l=>{var c;return{label:l.name,detail:String(i),documentation:(c=l.description)!==null&&c!==void 0?c:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:At.EnumMember,type:i}}).concat(o))}return i===de.GraphQLBoolean?Cr(e,o.concat([{label:"true",detail:String(de.GraphQLBoolean),documentation:"Not false.",kind:At.Variable,type:de.GraphQLBoolean},{label:"false",detail:String(de.GraphQLBoolean),documentation:"Not true.",kind:At.Variable,type:de.GraphQLBoolean}])):o}function _fe(e,t,r,n,i){if(t.needsSeparator)return[];let o=r.getTypeMap(),s=pu(o).filter(de.isInterfaceType),l=s.map(({name:y})=>y),c=new Set;qA(n,(y,w)=>{var T,S,A,b,C;if(w.name&&(w.kind===Ne.INTERFACE_DEF&&!l.includes(w.name)&&c.add(w.name),w.kind===Ne.NAMED_TYPE&&((T=w.prevState)===null||T===void 0?void 0:T.kind)===Ne.IMPLEMENTS)){if(i.interfaceDef){if((S=i.interfaceDef)===null||S===void 0?void 0:S.getInterfaces().find(({name:D})=>D===w.name))return;let k=r.getType(w.name),P=(A=i.interfaceDef)===null||A===void 0?void 0:A.toConfig();i.interfaceDef=new de.GraphQLInterfaceType(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,k||new de.GraphQLInterfaceType({name:w.name,fields:{}})]}))}else if(i.objectTypeDef){if((b=i.objectTypeDef)===null||b===void 0?void 0:b.getInterfaces().find(({name:D})=>D===w.name))return;let k=r.getType(w.name),P=(C=i.objectTypeDef)===null||C===void 0?void 0:C.toConfig();i.objectTypeDef=new de.GraphQLObjectType(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,k||new de.GraphQLInterfaceType({name:w.name,fields:{}})]}))}}});let f=i.interfaceDef||i.objectTypeDef,v=(f?.getInterfaces()||[]).map(({name:y})=>y),g=s.concat([...c].map(y=>({name:y}))).filter(({name:y})=>y!==f?.name&&!v.includes(y));return Cr(e,g.map(y=>{let w={label:y.name,kind:At.Interface,type:y};return y?.description&&(w.documentation=y.description),w}))}function $fe(e,t,r,n){let i;if(t.parentType)if((0,de.isAbstractType)(t.parentType)){let o=(0,de.assertAbstractType)(t.parentType),s=r.getPossibleTypes(o),l=Object.create(null);for(let c of s)for(let f of c.getInterfaces())l[f.name]=f;i=s.concat(pu(l))}else i=[t.parentType];else{let o=r.getTypeMap();i=pu(o).filter(s=>(0,de.isCompositeType)(s)&&!s.name.startsWith("__"))}return Cr(e,i.map(o=>{let s=(0,de.getNamedType)(o);return{label:String(o),documentation:s?.description||"",kind:At.Field}}))}function ede(e,t,r,n,i){if(!n)return[];let o=r.getTypeMap(),s=_N(e.state),l=eq(n);i&&i.length>0&&l.push(...i);let c=l.filter(f=>o[f.typeCondition.name.value]&&!(s&&s.kind===Ne.FRAGMENT_DEFINITION&&s.name===f.name.value)&&(0,de.isCompositeType)(t.parentType)&&(0,de.isCompositeType)(o[f.typeCondition.name.value])&&(0,de.doTypesOverlap)(r,t.parentType,o[f.typeCondition.name.value]));return Cr(e,c.map(f=>({label:f.name.value,detail:String(o[f.typeCondition.name.value]),documentation:`fragment ${f.name.value} on ${f.typeCondition.name.value}`,kind:At.Field,type:o[f.typeCondition.name.value]})))}function TD(e,t,r){let n=null,i,o=Object.create({});return qA(e,(s,l)=>{if(l?.kind===Ne.VARIABLE&&l.name&&(n=l.name),l?.kind===Ne.NAMED_TYPE&&n){let c=tde(l,Ne.TYPE);c?.type&&(i=t.getType(c?.type))}n&&i&&!o[n]&&(o[n]={detail:i.toString(),insertText:r.string==="$"?n:"$"+n,label:n,type:i,kind:At.Variable},n=null,i=null)}),pu(o)}function eq(e){let t=[];return qA(e,(r,n)=>{n.kind===Ne.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Ne.FRAGMENT_DEFINITION,name:{kind:de.Kind.NAME,value:n.name},selectionSet:{kind:Ne.SELECTION_SET,selections:[]},typeCondition:{kind:Ne.NAMED_TYPE,name:{kind:de.Kind.NAME,value:n.type}}})}),t}function rde(e,t,r){let n=t.getTypeMap(),i=pu(n).filter(de.isInputType);return Cr(e,i.map(o=>({label:o.name,documentation:o.description,kind:At.Variable})))}function nde(e,t,r,n){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){let o=r.getDirectives().filter(s=>tq(t.prevState,s));return Cr(e,o.map(s=>({label:s.name,documentation:s.description||"",kind:At.Function})))}return[]}function CD(e,t,r=0){let n=null,i=null,o=null,s=qA(e,(l,c,f,m)=>{if(!(m!==t.line||l.getCurrentPosition()+r{var w;switch(y.kind){case Ne.QUERY:case"ShortQuery":v=e.getQueryType();break;case Ne.MUTATION:v=e.getMutationType();break;case Ne.SUBSCRIPTION:v=e.getSubscriptionType();break;case Ne.INLINE_FRAGMENT:case Ne.FRAGMENT_DEFINITION:y.type&&(v=e.getType(y.type));break;case Ne.FIELD:case Ne.ALIASED_FIELD:{!v||!y.name?s=null:(s=m?NA(e,m,y.name):null,v=s?s.type:null);break}case Ne.SELECTION_SET:m=(0,de.getNamedType)(v);break;case Ne.DIRECTIVE:i=y.name?e.getDirective(y.name):null;break;case Ne.INTERFACE_DEF:y.name&&(c=null,g=new de.GraphQLInterfaceType({name:y.name,interfaces:[],fields:{}}));break;case Ne.OBJECT_TYPE_DEF:y.name&&(g=null,c=new de.GraphQLObjectType({name:y.name,interfaces:[],fields:{}}));break;case Ne.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){case Ne.FIELD:n=s&&s.args;break;case Ne.DIRECTIVE:n=i&&i.args;break;case Ne.ALIASED_FIELD:{let C=(w=y.prevState)===null||w===void 0?void 0:w.name;if(!C){n=null;break}let x=m?NA(e,m,C):null;if(!x){n=null;break}n=x.args;break}default:n=null;break}else n=null;break}case Ne.ARGUMENT:if(n){for(let C=0;CC.value===y.name):null;break;case Ne.LIST_VALUE:let S=(0,de.getNullableType)(l);l=S instanceof de.GraphQLList?S.ofType:null;break;case Ne.OBJECT_VALUE:let A=(0,de.getNamedType)(l);f=A instanceof de.GraphQLInputObjectType?A.getFields():null;break;case Ne.OBJECT_FIELD:let b=y.name&&f?f[y.name]:null;l=b?.type;break;case Ne.NAMED_TYPE:y.name&&(v=e.getType(y.name));break}}),{argDef:r,argDefs:n,directiveDef:i,enumValue:o,fieldDef:s,inputType:l,objectFieldDefs:f,parentType:m,type:v,interfaceDef:g,objectTypeDef:c}}function ide(e,t){return t?.endsWith(".graphqls")||Qfe(e)?Kc.TYPE_SYSTEM:Kc.EXECUTABLE}function rq(e){return e.prevState&&e.kind&&[Ne.NAMED_TYPE,Ne.LIST_TYPE,Ne.TYPE,Ne.NON_NULL_TYPE].includes(e.kind)?rq(e.prevState):e}var de,wD,zfe,Hfe,Qfe,FA,Wfe,tde,Kc,kD=at(()=>{de=fe(Ur());hD();IA();eD();wD={command:"editor.action.triggerSuggest",title:"Suggestions"},zfe=e=>{let t=[];if(e)try{(0,de.visit)((0,de.parse)(e),{FragmentDefinition(r){t.push(r)}})}catch{return[]}return t},Hfe=[de.Kind.SCHEMA_DEFINITION,de.Kind.OPERATION_TYPE_DEFINITION,de.Kind.SCALAR_TYPE_DEFINITION,de.Kind.OBJECT_TYPE_DEFINITION,de.Kind.INTERFACE_TYPE_DEFINITION,de.Kind.UNION_TYPE_DEFINITION,de.Kind.ENUM_TYPE_DEFINITION,de.Kind.INPUT_OBJECT_TYPE_DEFINITION,de.Kind.DIRECTIVE_DEFINITION,de.Kind.SCHEMA_EXTENSION,de.Kind.SCALAR_TYPE_EXTENSION,de.Kind.OBJECT_TYPE_EXTENSION,de.Kind.INTERFACE_TYPE_EXTENSION,de.Kind.UNION_TYPE_EXTENSION,de.Kind.ENUM_TYPE_EXTENSION,de.Kind.INPUT_OBJECT_TYPE_EXTENSION],Qfe=e=>{let t=!1;if(e)try{(0,de.visit)((0,de.parse)(e),{enter(r){if(r.kind!=="Document")return Hfe.includes(r.kind)?(t=!0,de.BREAK):!1}})}catch{return t}return t};FA=` { - $1 -}`,Wfe=e=>{let{type:t}=e;return(0,de.isCompositeType)(t)||(0,de.isListType)(t)&&(0,de.isCompositeType)(t.ofType)||(0,de.isNonNullType)(t)&&((0,de.isCompositeType)(t.ofType)||(0,de.isListType)(t.ofType)&&(0,de.isCompositeType)(t.ofType.ofType))?FA:null};tde=(e,t)=>{var r,n,i,o,s,l,c,f,m,v;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((i=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((l=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||l===void 0?void 0:l.kind)===t)return e.prevState.prevState.prevState;if(((v=(m=(f=(c=e.prevState)===null||c===void 0?void 0:c.prevState)===null||f===void 0?void 0:f.prevState)===null||m===void 0?void 0:m.prevState)===null||v===void 0?void 0:v.kind)===t)return e.prevState.prevState.prevState.prevState};(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE"})(Kc||(Kc={}))});var iq=X((OOe,jA)=>{"use strict";function nq(e,t){if(e!=null)return e;var r=new Error(t!==void 0?t:"Got unexpected "+e);throw r.framesToPop=1,r}jA.exports=nq;jA.exports.default=nq;Object.defineProperty(jA.exports,"__esModule",{value:!0})});var VA,OD,UA,oq=at(()=>{VA=fe(Ur()),OD=fe(iq()),UA=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;(0,VA.visit)(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let i=new Set;for(let s of n)!r.has(s)&&t.has(s)&&i.add((0,OD.default)(t.get(s)));let o=[];for(let s of i)(0,VA.visit)(s,{FragmentSpread(l){!n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,OD.default)(t.get(l.name.value))),n.add(l.name.value))}}),r.has(s.name.value)||o.push(s);return o}});var aq=at(()=>{});var sq=at(()=>{});var Xc,mo,lq=at(()=>{Xc=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new mo(t,r)}setEnd(t,r){this.end=new mo(t,r)}},mo=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line!(l===Nt.NoUnusedFragmentsRule||l===Nt.ExecutableDefinitionsRule||n&&l===Nt.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(o,r),i&&Array.prototype.push.apply(o,ode),(0,Nt.validate)(e,t,o).filter(l=>{if(l.message.includes("Unknown directive")&&l.nodes){let c=l.nodes[0];if(c&&c.kind===Nt.Kind.DIRECTIVE){let f=c.name.value;if(f==="arguments"||f==="argumentDefinitions")return!1}}return!0})}var Nt,ode,uq=at(()=>{Nt=fe(Ur()),ode=[Nt.LoneSchemaDefinitionRule,Nt.UniqueOperationTypesRule,Nt.UniqueTypeNamesRule,Nt.UniqueEnumValueNamesRule,Nt.UniqueFieldDefinitionNamesRule,Nt.UniqueDirectiveNamesRule,Nt.KnownTypeNamesRule,Nt.KnownDirectivesRule,Nt.UniqueDirectivesPerLocationRule,Nt.PossibleTypeExtensionsRule,Nt.UniqueArgumentNamesRule,Nt.UniqueInputFieldNamesRule]});function GA(e,t){let r=Object.create(null);for(let n of t.definitions)if(n.kind==="OperationDefinition"){let{variableDefinitions:i}=n;if(i)for(let{variable:o,type:s}of i){let l=(0,bp.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===bp.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=bp.GraphQLFloat)}}return r}var bp,ND=at(()=>{bp=fe(Ur())});function DD(e,t){let r=t?GA(t,e):void 0,n=[];return(0,zA.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}function Gv(e,t){if(t)try{let r=(0,zA.parse)(t);return Object.assign(Object.assign({},DD(r,e)),{documentAST:r})}catch{return}}var zA,cq=at(()=>{zA=fe(Ur());ND()});var zv=at(()=>{oq();aq();sq();lq();uq();ND();cq()});var fq=at(()=>{zv()});function PD(e,t=null,r,n,i){var o,s;let l=null,c="";i&&(c=typeof i=="string"?i:i.reduce((m,v)=>m+(0,fs.print)(v)+` - -`,""));let f=c?`${e} - -${c}`:e;try{l=(0,fs.parse)(f)}catch(m){if(m instanceof fs.GraphQLError){let v=mq((s=(o=m.locations)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:{line:0,column:0},f);return[{severity:HA.Error,message:m.message,source:"GraphQL: Syntax",range:v}]}throw m}return pq(l,t,r,n)}function pq(e,t=null,r,n){if(!t)return[];let i=BA(t,e,r,n).flatMap(s=>dq(s,HA.Error,"Validation")),o=(0,fs.validate)(t,e,[fs.NoDeprecatedCustomRule]).flatMap(s=>dq(s,HA.Warning,"Deprecation"));return i.concat(o)}function dq(e,t,r){if(!e.nodes)return[];let n=[];for(let[i,o]of e.nodes.entries()){let s=o.kind!=="Variable"&&"name"in o&&o.name!==void 0?o.name:"variable"in o&&o.variable!==void 0?o.variable:o;if(s){QA(e.locations,"GraphQL validation error requires locations.");let l=e.locations[i],c=dde(s),f=l.column+(c.end-c.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new Xc(new mo(l.line-1,l.column-1),new mo(l.line-1,f))})}}return n}function mq(e,t){let r=po(),n=r.startState(),i=t.split(` -`);QA(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let f=0;f{fs=fe(Ur());IA();zv();Hv={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},HA={[Hv.Error]:1,[Hv.Warning]:2,[Hv.Information]:3,[Hv.Hint]:4},QA=(e,t)=>{if(!e)throw new Error(t)}});var WA,JOe,vq=at(()=>{WA=fe(Ur());zv();({INLINE_FRAGMENT:JOe}=WA.Kind)});var gq=at(()=>{kD()});var yq=at(()=>{eD();kD();fq();hq();vq();gq()});var Zc=at(()=>{yq();IA();hD();zv()});var Aq=X((yNe,bq)=>{"use strict";bq.exports=function(t){return typeof t=="object"?t===null:typeof t!="function"}});var wq=X((bNe,xq)=>{"use strict";xq.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}});var Cq=X((ANe,Tq)=>{"use strict";var hde=wq();function Eq(e){return hde(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}Tq.exports=function(t){var r,n;return!(Eq(t)===!1||(r=t.constructor,typeof r!="function")||(n=r.prototype,Eq(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)}});var Dq=X((xNe,Nq)=>{"use strict";var{deleteProperty:vde}=Reflect,gde=Aq(),Sq=Cq(),kq=e=>typeof e=="object"&&e!==null||typeof e=="function",yde=e=>e==="__proto__"||e==="constructor"||e==="prototype",RD=e=>{if(!gde(e))throw new TypeError("Object keys must be strings or symbols");if(yde(e))throw new Error(`Cannot set unsafe key: "${e}"`)},bde=e=>Array.isArray(e)?e.flat().map(String).join(","):e,Ade=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e+";";return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r},xde=(e,t,r)=>{let n=bde(t?Ade(e,t):e);RD(n);let i=Jc.cache.get(n)||r();return Jc.cache.set(n,i),i},wde=(e,t={})=>{let r=t.separator||".",n=r==="/"?!1:t.preservePaths;if(typeof e=="string"&&n!==!1&&/\//.test(e))return[e];let i=[],o="",s=l=>{let c;l.trim()!==""&&Number.isInteger(c=Number(l))?i.push(c):i.push(l)};for(let l=0;lt&&typeof t.split=="function"?t.split(e):typeof e=="symbol"?[e]:Array.isArray(e)?e:xde(e,t,()=>wde(e,t)),Ede=(e,t,r,n)=>{if(RD(t),r===void 0)vde(e,t);else if(n&&n.merge){let i=n.merge==="function"?n.merge:Object.assign;i&&Sq(e[t])&&Sq(r)?e[t]=i(e[t],r):e[t]=r}else e[t]=r;return e},Jc=(e,t,r,n)=>{if(!t||!kq(e))return e;let i=Oq(t,n),o=e;for(let s=0;s{Jc.cache=new Map};Nq.exports=Jc});var Pq=X((wNe,Lq)=>{Lq.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{"use strict";var Tde=Pq(),Rq={"text/plain":"Text","text/html":"Url",default:"Text"},Cde="Copy to clipboard: #{key}, Enter";function Sde(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kde(e,t){var r,n,i,o,s,l,c=!1;t||(t={}),r=t.debug||!1;try{i=Tde(),o=document.createRange(),s=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(m){if(m.stopPropagation(),t.format)if(m.preventDefault(),typeof m.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=Rq[t.format]||Rq.default;window.clipboardData.setData(v,e)}else m.clipboardData.clearData(),m.clipboardData.setData(t.format,e);t.onCopy&&(m.preventDefault(),t.onCopy(m.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");c=!0}catch(m){r&&console.error("unable to copy using execCommand: ",m),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(v){r&&console.error("unable to copy using clipboardData: ",v),r&&console.error("falling back to prompt"),n=Sde("message"in t?t.message:Cde),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}Mq.exports=kde});var Kq=X(lr=>{"use strict";function jD(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(0>>1;nYA(l,r))cYA(f,l)?(e[n]=f,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else if(cYA(f,r))e[n]=f,e[c]=r,n=c;else break e}}return t}function YA(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Vq=performance,lr.unstable_now=function(){return Vq.now()}):(ID=Date,Uq=ID.now(),lr.unstable_now=function(){return ID.now()-Uq});var Vq,ID,Uq,ps=[],vu=[],Rde=1,Go=null,ci=3,ZA=!1,_c=!1,Wv=!1,zq=typeof setTimeout=="function"?setTimeout:null,Hq=typeof clearTimeout=="function"?clearTimeout:null,Bq=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function VD(e){for(var t=Ta(vu);t!==null;){if(t.callback===null)XA(vu);else if(t.startTime<=e)XA(vu),t.sortIndex=t.expirationTime,jD(ps,t);else break;t=Ta(vu)}}function UD(e){if(Wv=!1,VD(e),!_c)if(Ta(ps)!==null)_c=!0,GD(BD);else{var t=Ta(vu);t!==null&&zD(UD,t.startTime-e)}}function BD(e,t){_c=!1,Wv&&(Wv=!1,Hq(Yv),Yv=-1),ZA=!0;var r=ci;try{for(VD(t),Go=Ta(ps);Go!==null&&(!(Go.expirationTime>t)||e&&!Yq());){var n=Go.callback;if(typeof n=="function"){Go.callback=null,ci=Go.priorityLevel;var i=n(Go.expirationTime<=t);t=lr.unstable_now(),typeof i=="function"?Go.callback=i:Go===Ta(ps)&&XA(ps),VD(t)}else XA(ps);Go=Ta(ps)}if(Go!==null)var o=!0;else{var s=Ta(vu);s!==null&&zD(UD,s.startTime-t),o=!1}return o}finally{Go=null,ci=r,ZA=!1}}var JA=!1,KA=null,Yv=-1,Qq=5,Wq=-1;function Yq(){return!(lr.unstable_now()-Wqe||125n?(e.sortIndex=r,jD(vu,e),Ta(ps)===null&&e===Ta(vu)&&(Wv?(Hq(Yv),Yv=-1):Wv=!0,zD(UD,r-n))):(e.sortIndex=i,jD(ps,e),_c||ZA||(_c=!0,GD(BD))),e};lr.unstable_shouldYield=Yq;lr.unstable_wrapCallback=function(e){var t=ci;return function(){var r=ci;ci=t;try{return e.apply(this,arguments)}finally{ci=r}}}});var Zq=X((INe,Xq)=>{"use strict";Xq.exports=Kq()});var rB=X(Ao=>{"use strict";var nV=Ee(),yo=Zq();function ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d2=Object.prototype.hasOwnProperty,Mde=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jq={},_q={};function Ide(e){return d2.call(_q,e)?!0:d2.call(Jq,e)?!1:Mde.test(e)?_q[e]=!0:(Jq[e]=!0,!1)}function Fde(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qde(e,t,r,n){if(t===null||typeof t>"u"||Fde(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ii(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xn[e]=new Ii(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xn[t]=new Ii(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xn[e]=new Ii(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xn[e]=new Ii(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xn[e]=new Ii(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xn[e]=new Ii(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xn[e]=new Ii(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xn[e]=new Ii(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xn[e]=new Ii(e,5,!1,e.toLowerCase(),null,!1,!1)});var iL=/[\-:]([a-z])/g;function oL(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xn[e]=new Ii(e,1,!1,e.toLowerCase(),null,!1,!1)});Xn.xlinkHref=new Ii("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xn[e]=new Ii(e,1,!1,e.toLowerCase(),null,!0,!0)});function aL(e,t,r,n){var i=Xn.hasOwnProperty(t)?Xn[t]:null;(i!==null?i.type!==0:n||!(2l||i[s]!==o[l]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{QD=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rg(e):""}function jde(e){switch(e.tag){case 5:return rg(e.type);case 16:return rg("Lazy");case 13:return rg("Suspense");case 19:return rg("SuspenseList");case 0:case 2:case 15:return e=WD(e.type,!1),e;case 11:return e=WD(e.type.render,!1),e;case 1:return e=WD(e.type,!0),e;default:return""}}function v2(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cp:return"Fragment";case Tp:return"Portal";case p2:return"Profiler";case sL:return"StrictMode";case m2:return"Suspense";case h2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aV:return(e.displayName||"Context")+".Consumer";case oV:return(e._context.displayName||"Context")+".Provider";case lL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uL:return t=e.displayName||null,t!==null?t:v2(e.type)||"Memo";case yu:t=e._payload,e=e._init;try{return v2(e(t))}catch{}}return null}function Vde(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return v2(t);case 8:return t===sL?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Pu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ude(e){var t=lV(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $A(e){e._valueTracker||(e._valueTracker=Ude(e))}function uV(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lV(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function k1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function g2(e,t){var r=t.checked;return Mr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ej(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cV(e,t){t=t.checked,t!=null&&aL(e,"checked",t,!1)}function y2(e,t){cV(e,t);var r=Pu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?b2(e,t.type,r):t.hasOwnProperty("defaultValue")&&b2(e,t.type,Pu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tj(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function b2(e,t,r){(t!=="number"||k1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ng=Array.isArray;function Fp(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=e1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ag={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bde=["Webkit","ms","Moz","O"];Object.keys(ag).forEach(function(e){Bde.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ag[t]=ag[e]})});function mV(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ag.hasOwnProperty(e)&&ag[e]?(""+t).trim():t+"px"}function hV(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=mV(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Gde=Mr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function w2(e,t){if(t){if(Gde[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ke(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ke(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ke(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ke(62))}}function E2(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var T2=null;function cL(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C2=null,qp=null,jp=null;function ij(e){if(e=Mg(e)){if(typeof C2!="function")throw Error(ke(280));var t=e.stateNode;t&&(t=tx(t),C2(e.stateNode,e.type,t))}}function vV(e){qp?jp?jp.push(e):jp=[e]:qp=e}function gV(){if(qp){var e=qp,t=jp;if(jp=qp=null,ij(e),t)for(e=0;e>>=0,e===0?32:31-($de(e)/epe|0)|0}var t1=64,r1=4194304;function ig(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function L1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~i;l!==0?n=ig(l):(o&=s,o!==0&&(n=ig(o)))}else s=r&~i,s!==0?n=ig(s):o!==0&&(n=ig(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Pg(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Na(t),e[t]=r}function ipe(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=lg),pj=String.fromCharCode(32),mj=!1;function qV(e,t){switch(e){case"keyup":return Ppe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jV(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sp=!1;function Mpe(e,t){switch(e){case"compositionend":return jV(t);case"keypress":return t.which!==32?null:(mj=!0,pj);case"textInput":return e=t.data,e===pj&&mj?null:e;default:return null}}function Ipe(e,t){if(Sp)return e==="compositionend"||!yL&&qV(e,t)?(e=IV(),y1=hL=wu=null,Sp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gj(r)}}function GV(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GV(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zV(){for(var e=window,t=k1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=k1(e.document)}return t}function bL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Hpe(e){var t=zV(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GV(r.ownerDocument.documentElement,r)){if(n!==null&&bL(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=yj(r,o);var s=yj(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,kp=null,L2=null,cg=null,P2=!1;function bj(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;P2||kp==null||kp!==k1(n)||(n=kp,"selectionStart"in n&&bL(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),cg&&wg(cg,n)||(cg=n,n=M1(L2,"onSelect"),0Dp||(e.current=j2[Dp],j2[Dp]=null,Dp--)}function ur(e,t){Dp++,j2[Dp]=e.current,e.current=t}var Ru={},mi=Iu(Ru),Yi=Iu(!1),sf=Ru;function zp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ki(e){return e=e.childContextTypes,e!=null}function F1(){yr(Yi),yr(mi)}function Oj(e,t,r){if(mi.current!==Ru)throw Error(ke(168));ur(mi,t),ur(Yi,r)}function _V(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ke(108,Vde(e)||"Unknown",i));return Mr({},r,n)}function q1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,sf=mi.current,ur(mi,e),ur(Yi,Yi.current),!0}function Nj(e,t,r){var n=e.stateNode;if(!n)throw Error(ke(169));r?(e=_V(e,t,sf),n.__reactInternalMemoizedMergedChildContext=e,yr(Yi),yr(mi),ur(mi,e)):yr(Yi),ur(Yi,r)}var ll=null,rx=!1,n2=!1;function $V(e){ll===null?ll=[e]:ll.push(e)}function eme(e){rx=!0,$V(e)}function Fu(){if(!n2&&ll!==null){n2=!0;var e=0,t=Jt;try{var r=ll;for(Jt=1;e>=s,i-=s,ul=1<<32-Na(t)+i|r<N?(I=D,D=null):I=D.sibling;var V=g(A,D,C[N],x);if(V===null){D===null&&(D=I);break}e&&D&&V.alternate===null&&t(A,D),b=o(V,b,N),P===null?k=V:P.sibling=V,P=V,D=I}if(N===C.length)return r(A,D),Sr&&$c(A,N),k;if(D===null){for(;NN?(I=D,D=null):I=D.sibling;var G=g(A,D,V.value,x);if(G===null){D===null&&(D=I);break}e&&D&&G.alternate===null&&t(A,D),b=o(G,b,N),P===null?k=G:P.sibling=G,P=G,D=I}if(V.done)return r(A,D),Sr&&$c(A,N),k;if(D===null){for(;!V.done;N++,V=C.next())V=v(A,V.value,x),V!==null&&(b=o(V,b,N),P===null?k=V:P.sibling=V,P=V);return Sr&&$c(A,N),k}for(D=n(A,D);!V.done;N++,V=C.next())V=y(D,A,N,V.value,x),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?N:V.key),b=o(V,b,N),P===null?k=V:P.sibling=V,P=V);return e&&D.forEach(function(B){return t(A,B)}),Sr&&$c(A,N),k}function S(A,b,C,x){if(typeof C=="object"&&C!==null&&C.type===Cp&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case _A:e:{for(var k=C.key,P=b;P!==null;){if(P.key===k){if(k=C.type,k===Cp){if(P.tag===7){r(A,P.sibling),b=i(P,C.props.children),b.return=A,A=b;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===yu&&Fj(k)===P.type){r(A,P.sibling),b=i(P,C.props),b.ref=_v(A,P,C),b.return=A,A=b;break e}r(A,P);break}else t(A,P);P=P.sibling}C.type===Cp?(b=af(C.props.children,A.mode,x,C.key),b.return=A,A=b):(x=S1(C.type,C.key,C.props,null,A.mode,x),x.ref=_v(A,b,C),x.return=A,A=x)}return s(A);case Tp:e:{for(P=C.key;b!==null;){if(b.key===P)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){r(A,b.sibling),b=i(b,C.children||[]),b.return=A,A=b;break e}else{r(A,b);break}else t(A,b);b=b.sibling}b=f2(C,A.mode,x),b.return=A,A=b}return s(A);case yu:return P=C._init,S(A,b,P(C._payload),x)}if(ng(C))return w(A,b,C,x);if(Kv(C))return T(A,b,C,x);p1(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(r(A,b.sibling),b=i(b,C),b.return=A,A=b):(r(A,b),b=c2(C,A.mode,x),b.return=A,A=b),s(A)):r(A,b)}return S}var Qp=sU(!0),lU=sU(!1),Ig={},ys=Iu(Ig),Sg=Iu(Ig),kg=Iu(Ig);function nf(e){if(e===Ig)throw Error(ke(174));return e}function OL(e,t){switch(ur(kg,t),ur(Sg,e),ur(ys,Ig),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:x2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=x2(t,e)}yr(ys),ur(ys,t)}function Wp(){yr(ys),yr(Sg),yr(kg)}function uU(e){nf(kg.current);var t=nf(ys.current),r=x2(t,e.type);t!==r&&(ur(Sg,e),ur(ys,r))}function NL(e){Sg.current===e&&(yr(ys),yr(Sg))}var Pr=Iu(0);function z1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var i2=[];function DL(){for(var e=0;er?r:4,e(!0);var n=o2.transition;o2.transition={};try{e(!1),t()}finally{Jt=r,o2.transition=n}}function CU(){return Ko().memoizedState}function ime(e,t,r){var n=Du(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},SU(e))kU(t,r);else if(r=nU(e,t,r,n),r!==null){var i=Mi();Da(r,e,n,i),OU(r,t,n)}}function ome(e,t,r){var n=Du(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(SU(e))kU(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,r);if(i.hasEagerState=!0,i.eagerState=l,La(l,s)){var c=t.interleaved;c===null?(i.next=i,SL(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}r=nU(e,t,i,n),r!==null&&(i=Mi(),Da(r,e,n,i),OU(r,t,n))}}function SU(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function kU(e,t){fg=H1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function OU(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dL(e,r)}}var Q1={readContext:Yo,useCallback:fi,useContext:fi,useEffect:fi,useImperativeHandle:fi,useInsertionEffect:fi,useLayoutEffect:fi,useMemo:fi,useReducer:fi,useRef:fi,useState:fi,useDebugValue:fi,useDeferredValue:fi,useTransition:fi,useMutableSource:fi,useSyncExternalStore:fi,useId:fi,unstable_isNewReconciler:!1},ame={readContext:Yo,useCallback:function(e,t){return hs().memoizedState=[e,t===void 0?null:t],e},useContext:Yo,useEffect:jj,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,w1(4194308,4,AU.bind(null,t,e),r)},useLayoutEffect:function(e,t){return w1(4194308,4,e,t)},useInsertionEffect:function(e,t){return w1(4,2,e,t)},useMemo:function(e,t){var r=hs();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hs();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ime.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=hs();return e={current:e},t.memoizedState=e},useState:qj,useDebugValue:IL,useDeferredValue:function(e){return hs().memoizedState=e},useTransition:function(){var e=qj(!1),t=e[0];return e=nme.bind(null,e[1]),hs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,i=hs();if(Sr){if(r===void 0)throw Error(ke(407));r=r()}else{if(r=t(),Pn===null)throw Error(ke(349));uf&30||dU(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,jj(mU.bind(null,n,o,e),[e]),n.flags|=2048,Dg(9,pU.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=hs(),t=Pn.identifierPrefix;if(Sr){var r=cl,n=ul;r=(n&~(1<<32-Na(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Og++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[vs]=t,e[Cg]=n,qU(e,t,!1,!1),t.stateNode=e;e:{switch(s=E2(r,n),r){case"dialog":gr("cancel",e),gr("close",e),i=n;break;case"iframe":case"object":case"embed":gr("load",e),i=n;break;case"video":case"audio":for(i=0;iKp&&(t.flags|=128,n=!0,$v(o,!1),t.lanes=4194304)}else{if(!n)if(e=z1(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),$v(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Sr)return di(t),null}else 2*Kr()-o.renderingStartTime>Kp&&r!==1073741824&&(t.flags|=128,n=!0,$v(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Kr(),t.sibling=null,r=Pr.current,ur(Pr,n?r&1|2:r&1),t):(di(t),null);case 22:case 23:return BL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ho&1073741824&&(di(t),t.subtreeFlags&6&&(t.flags|=8192)):di(t),null;case 24:return null;case 25:return null}throw Error(ke(156,t.tag))}function mme(e,t){switch(xL(t),t.tag){case 1:return Ki(t.type)&&F1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wp(),yr(Yi),yr(mi),DL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return NL(t),null;case 13:if(yr(Pr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ke(340));Hp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Pr),null;case 4:return Wp(),null;case 10:return CL(t.type._context),null;case 22:case 23:return BL(),null;case 24:return null;default:return null}}var h1=!1,pi=!1,hme=typeof WeakSet=="function"?WeakSet:Set,We=null;function Mp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function Z2(e,t,r){try{r()}catch(n){Br(e,t,n)}}var Yj=!1;function vme(e,t){if(R2=P1,e=zV(),bL(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,c=-1,f=0,m=0,v=e,g=null;t:for(;;){for(var y;v!==r||i!==0&&v.nodeType!==3||(l=s+i),v!==o||n!==0&&v.nodeType!==3||(c=s+n),v.nodeType===3&&(s+=v.nodeValue.length),(y=v.firstChild)!==null;)g=v,v=y;for(;;){if(v===e)break t;if(g===r&&++f===i&&(l=s),g===o&&++m===n&&(c=s),(y=v.nextSibling)!==null)break;v=g,g=v.parentNode}v=y}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(M2={focusedElem:e,selectionRange:r},P1=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){t=We;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var T=w.memoizedProps,S=w.memoizedState,A=t.stateNode,b=A.getSnapshotBeforeUpdate(t.elementType===t.type?T:Sa(t.type,T),S);A.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163))}}catch(x){Br(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}return w=Yj,Yj=!1,w}function dg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Z2(t,r,o)}i=i.next}while(i!==n)}}function ox(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function J2(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function UU(e){var t=e.alternate;t!==null&&(e.alternate=null,UU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vs],delete t[Cg],delete t[q2],delete t[_pe],delete t[$pe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function BU(e){return e.tag===5||e.tag===3||e.tag===4}function Kj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BU(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=I1));else if(n!==4&&(e=e.child,e!==null))for(_2(e,t,r),e=e.sibling;e!==null;)_2(e,t,r),e=e.sibling}function $2(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for($2(e,t,r),e=e.sibling;e!==null;)$2(e,t,r),e=e.sibling}var Yn=null,ka=!1;function gu(e,t,r){for(r=r.child;r!==null;)GU(e,t,r),r=r.sibling}function GU(e,t,r){if(gs&&typeof gs.onCommitFiberUnmount=="function")try{gs.onCommitFiberUnmount(J1,r)}catch{}switch(r.tag){case 5:pi||Mp(r,t);case 6:var n=Yn,i=ka;Yn=null,gu(e,t,r),Yn=n,ka=i,Yn!==null&&(ka?(e=Yn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yn.removeChild(r.stateNode));break;case 18:Yn!==null&&(ka?(e=Yn,r=r.stateNode,e.nodeType===8?r2(e.parentNode,r):e.nodeType===1&&r2(e,r),Ag(e)):r2(Yn,r.stateNode));break;case 4:n=Yn,i=ka,Yn=r.stateNode.containerInfo,ka=!0,gu(e,t,r),Yn=n,ka=i;break;case 0:case 11:case 14:case 15:if(!pi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Z2(r,t,s),i=i.next}while(i!==n)}gu(e,t,r);break;case 1:if(!pi&&(Mp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}gu(e,t,r);break;case 21:gu(e,t,r);break;case 22:r.mode&1?(pi=(n=pi)||r.memoizedState!==null,gu(e,t,r),pi=n):gu(e,t,r);break;default:gu(e,t,r)}}function Xj(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hme),t.forEach(function(n){var i=Cme.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ca(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=s),n&=~o}if(n=i,n=Kr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yme(n/1960))-n,10e?16:e,Eu===null)var n=!1;else{if(e=Eu,Eu=null,K1=0,It&6)throw Error(ke(331));var i=It;for(It|=4,We=e.current;We!==null;){var o=We,s=o.child;if(We.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cKr()-VL?of(e,0):jL|=r),Xi(e,t)}function ZU(e,t){t===0&&(e.mode&1?(t=r1,r1<<=1,!(r1&130023424)&&(r1=4194304)):t=1);var r=Mi();e=ml(e,t),e!==null&&(Pg(e,t,r),Xi(e,r))}function Tme(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ZU(e,r)}function Cme(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ke(314))}n!==null&&n.delete(t),ZU(e,r)}var JU;JU=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yi.current)Wi=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Wi=!1,dme(e,t,r);Wi=!!(e.flags&131072)}else Wi=!1,Sr&&t.flags&1048576&&eU(t,V1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;E1(e,t),e=t.pendingProps;var i=zp(t,mi.current);Up(t,r),i=PL(null,t,n,e,i,r);var o=RL();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ki(n)?(o=!0,q1(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kL(t),i.updater=nx,t.stateNode=i,i._reactInternals=t,z2(t,n,e,r),t=W2(null,t,n,!0,o,r)):(t.tag=0,Sr&&o&&AL(t),Ri(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(E1(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=kme(n),e=Sa(n,e),i){case 0:t=Q2(null,t,n,e,r);break e;case 1:t=Hj(null,t,n,e,r);break e;case 11:t=Gj(null,t,n,e,r);break e;case 14:t=zj(null,t,n,Sa(n.type,e),r);break e}throw Error(ke(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Q2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Hj(e,t,n,i,r);case 3:e:{if(MU(t),e===null)throw Error(ke(387));n=t.pendingProps,o=t.memoizedState,i=o.element,iU(e,t),G1(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Yp(Error(ke(423)),t),t=Qj(e,t,n,r,i);break e}else if(n!==i){i=Yp(Error(ke(424)),t),t=Qj(e,t,n,r,i);break e}else for(vo=ku(t.stateNode.containerInfo.firstChild),go=t,Sr=!0,Oa=null,r=lU(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Hp(),n===i){t=hl(e,t,r);break e}Ri(e,t,n,r)}t=t.child}return t;case 5:return uU(t),e===null&&U2(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,I2(n,i)?s=null:o!==null&&I2(n,o)&&(t.flags|=32),RU(e,t),Ri(e,t,s,r),t.child;case 6:return e===null&&U2(t),null;case 13:return IU(e,t,r);case 4:return OL(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Qp(t,null,n,r):Ri(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Gj(e,t,n,i,r);case 7:return Ri(e,t,t.pendingProps,r),t.child;case 8:return Ri(e,t,t.pendingProps.children,r),t.child;case 12:return Ri(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ur(U1,n._currentValue),n._currentValue=s,o!==null)if(La(o.value,s)){if(o.children===i.children&&!Yi.current){t=hl(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(o.tag===1){c=fl(-1,r&-r),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var m=f.pending;m===null?c.next=c:(c.next=m.next,m.next=c),f.pending=c}}o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),B2(o.return,r,t),l.lanes|=r;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(ke(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),B2(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ri(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Up(t,r),i=Yo(i),n=n(i),t.flags|=1,Ri(e,t,n,r),t.child;case 14:return n=t.type,i=Sa(n,t.pendingProps),i=Sa(n.type,i),zj(e,t,n,i,r);case 15:return LU(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),E1(e,t),t.tag=1,Ki(n)?(e=!0,q1(t)):e=!1,Up(t,r),aU(t,n,i),z2(t,n,i,r),W2(null,t,n,!0,e,r);case 19:return FU(e,t,r);case 22:return PU(e,t,r)}throw Error(ke(156,t.tag))};function _U(e,t){return TV(e,t)}function Sme(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qo(e,t,r,n){return new Sme(e,t,r,n)}function zL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kme(e){if(typeof e=="function")return zL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lL)return 11;if(e===uL)return 14}return 2}function Lu(e,t){var r=e.alternate;return r===null?(r=Qo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function S1(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")zL(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cp:return af(r.children,i,o,t);case sL:s=8,i|=8;break;case p2:return e=Qo(12,r,t,i|2),e.elementType=p2,e.lanes=o,e;case m2:return e=Qo(13,r,t,i),e.elementType=m2,e.lanes=o,e;case h2:return e=Qo(19,r,t,i),e.elementType=h2,e.lanes=o,e;case sV:return sx(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oV:s=10;break e;case aV:s=9;break e;case lL:s=11;break e;case uL:s=14;break e;case yu:s=16,n=null;break e}throw Error(ke(130,e==null?e:typeof e,""))}return t=Qo(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function af(e,t,r,n){return e=Qo(7,e,n,t),e.lanes=r,e}function sx(e,t,r,n){return e=Qo(22,e,n,t),e.elementType=sV,e.lanes=r,e.stateNode={isHidden:!1},e}function c2(e,t,r){return e=Qo(6,e,null,t),e.lanes=r,e}function f2(e,t,r){return t=Qo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ome(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=KD(0),this.expirationTimes=KD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=KD(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function HL(e,t,r,n,i,o,s,l,c){return e=new Ome(e,t,r,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},kL(o),e}function Nme(e,t,r){var n=3{"use strict";function nB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nB)}catch(e){console.error(e)}}nB(),iB.exports=rB()});var nz=X((EPe,sge)=>{sge.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var LP=X((TPe,iz)=>{"use strict";iz.exports=nz()});var Xx=X((CPe,oz)=>{oz.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var lz=X((SPe,sz)=>{"use strict";var az={};function lge(e){var t,r,n=az[e];if(n)return n;for(n=az[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t"u"&&(r=!0),l=lge(t),n=0,i=e.length;n=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1=56320&&s<=57343)){c+=encodeURIComponent(e[n]+e[n+1]),n++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(e[n])}return c}Zx.defaultChars=";/?:@&=+$,-_.!~*'()#";Zx.componentChars="-_.!~*'()";sz.exports=Zx});var fz=X((kPe,cz)=>{"use strict";var uz={};function uge(e){var t,r,n=uz[e];if(n)return n;for(n=uz[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t=55296&&m<=57343?v+="\uFFFD\uFFFD\uFFFD":v+=String.fromCharCode(m),i+=6;continue}if((s&248)===240&&i+91114111?v+="\uFFFD\uFFFD\uFFFD\uFFFD":(m-=65536,v+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),i+=9;continue}v+="\uFFFD"}return v})}Jx.defaultChars=";/?:@&=+$,#";Jx.componentChars="";cz.exports=Jx});var pz=X((OPe,dz)=>{"use strict";dz.exports=function(t){var r="";return r+=t.protocol||"",r+=t.slashes?"//":"",r+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?r+="["+t.hostname+"]":r+=t.hostname||"",r+=t.port?":"+t.port:"",r+=t.pathname||"",r+=t.search||"",r+=t.hash||"",r}});var Az=X((NPe,bz)=>{"use strict";function _x(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var cge=/^([a-z0-9.+-]+:)/i,fge=/:[0-9]*$/,dge=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pge=["<",">",'"',"`"," ","\r",` -`," "],mge=["{","}","|","\\","^","`"].concat(pge),hge=["'"].concat(mge),mz=["%","/","?",";","#"].concat(hge),hz=["/","?","#"],vge=255,vz=/^[+a-z0-9A-Z_-]{0,63}$/,gge=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gz={javascript:!0,"javascript:":!0},yz={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yge(e,t){if(e&&e instanceof _x)return e;var r=new _x;return r.parse(e,t),r}_x.prototype.parse=function(e,t){var r,n,i,o,s,l=e;if(l=l.trim(),!t&&e.split("#").length===1){var c=dge.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var f=cge.exec(l);if(f&&(f=f[0],i=f.toLowerCase(),this.protocol=f,l=l.substr(f.length)),(t||f||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(f&&gz[f])&&(l=l.substr(2),this.slashes=!0)),!gz[f]&&(s||f&&!yz[f])){var m=-1;for(r=0;r127?A+="x":A+=S[b];if(!A.match(vz)){var x=T.slice(0,r),k=T.slice(r+1),P=S.match(gge);P&&(x.push(P[1]),k.unshift(P[2])),k.length&&(l=k.join(".")+l),this.hostname=x.join(".");break}}}}this.hostname.length>vge&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=l.indexOf("#");D!==-1&&(this.hash=l.substr(D),l=l.slice(0,D));var N=l.indexOf("?");return N!==-1&&(this.search=l.substr(N),l=l.slice(0,N)),l&&(this.pathname=l),yz[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};_x.prototype.parseHost=function(e){var t=fge.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};bz.exports=yge});var PP=X((DPe,Kg)=>{"use strict";Kg.exports.encode=lz();Kg.exports.decode=fz();Kg.exports.format=pz();Kg.exports.parse=Az()});var RP=X((LPe,xz)=>{xz.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var MP=X((PPe,wz)=>{wz.exports=/[\0-\x1F\x7F-\x9F]/});var Tz=X((RPe,Ez)=>{Ez.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var IP=X((MPe,Cz)=>{Cz.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Sz=X(sm=>{"use strict";sm.Any=RP();sm.Cc=MP();sm.Cf=Tz();sm.P=Xx();sm.Z=IP()});var Ht=X(En=>{"use strict";function bge(e){return Object.prototype.toString.call(e)}function Age(e){return bge(e)==="[object String]"}var xge=Object.prototype.hasOwnProperty;function Oz(e,t){return xge.call(e,t)}function wge(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function Ege(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function Nz(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Dz(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var Lz=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Tge=/&([a-z#][a-z0-9]{1,31});/gi,Cge=new RegExp(Lz.source+"|"+Tge.source,"gi"),Sge=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,kz=LP();function kge(e,t){var r=0;return Oz(kz,t)?kz[t]:t.charCodeAt(0)===35&&Sge.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Nz(r))?Dz(r):e}function Oge(e){return e.indexOf("\\")<0?e:e.replace(Lz,"$1")}function Nge(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Cge,function(t,r,n){return r||kge(t,n)})}var Dge=/[&<>"]/,Lge=/[&<>"]/g,Pge={"&":"&","<":"<",">":">",'"':"""};function Rge(e){return Pge[e]}function Mge(e){return Dge.test(e)?e.replace(Lge,Rge):e}var Ige=/[.?*+^$[\]\\(){}|-]/g;function Fge(e){return e.replace(Ige,"\\$&")}function qge(e){switch(e){case 9:case 32:return!0}return!1}function jge(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Vge=Xx();function Uge(e){return Vge.test(e)}function Bge(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Gge(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}En.lib={};En.lib.mdurl=PP();En.lib.ucmicro=Sz();En.assign=wge;En.isString=Age;En.has=Oz;En.unescapeMd=Oge;En.unescapeAll=Nge;En.isValidEntityCode=Nz;En.fromCodePoint=Dz;En.escapeHtml=Mge;En.arrayReplaceAt=Ege;En.isSpace=qge;En.isWhiteSpace=jge;En.isMdAsciiPunct=Bge;En.isPunctChar=Uge;En.escapeRE=Fge;En.normalizeReference=Gge});var Rz=X((qPe,Pz)=>{"use strict";Pz.exports=function(t,r,n){var i,o,s,l,c=-1,f=t.posMax,m=t.pos;for(t.pos=r+1,i=1;t.pos{"use strict";var Mz=Ht().unescapeAll;Iz.exports=function(t,r,n){var i,o,s=0,l=r,c={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r32))return c;if(i===41){if(o===0)break;o--}r++}return l===r||o!==0||(c.str=Mz(t.slice(l,r)),c.lines=s,c.pos=r,c.ok=!0),c}});var jz=X((VPe,qz)=>{"use strict";var zge=Ht().unescapeAll;qz.exports=function(t,r,n){var i,o,s=0,l=r,c={ok:!1,pos:0,lines:0,str:""};if(r>=n||(o=t.charCodeAt(r),o!==34&&o!==39&&o!==40))return c;for(r++,o===40&&(o=41);r{"use strict";$x.parseLinkLabel=Rz();$x.parseLinkDestination=Fz();$x.parseLinkTitle=jz()});var Bz=X((BPe,Uz)=>{"use strict";var Hge=Ht().assign,Qge=Ht().unescapeAll,Sf=Ht().escapeHtml,Ss={};Ss.code_inline=function(e,t,r,n,i){var o=e[t];return""+Sf(e[t].content)+""};Ss.code_block=function(e,t,r,n,i){var o=e[t];return""+Sf(e[t].content)+` -`};Ss.fence=function(e,t,r,n,i){var o=e[t],s=o.info?Qge(o.info).trim():"",l="",c="",f,m,v,g,y;return s&&(v=s.split(/(\s+)/g),l=v[0],c=v.slice(2).join("")),r.highlight?f=r.highlight(o.content,l,c)||Sf(o.content):f=Sf(o.content),f.indexOf(""+f+` -`):"
"+f+`
-`};Ss.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)};Ss.hardbreak=function(e,t,r){return r.xhtmlOut?`
-`:`
-`};Ss.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
-`:`
-`:` -`};Ss.text=function(e,t){return Sf(e[t].content)};Ss.html_block=function(e,t){return e[t].content};Ss.html_inline=function(e,t){return e[t].content};function lm(){this.rules=Hge({},Ss)}lm.prototype.renderAttrs=function(t){var r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r -`:">",o)};lm.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,s=0,l=e.length;s{"use strict";function Fa(){this.__rules__=[],this.__cache__=null}Fa.prototype.__find__=function(e){for(var t=0;t{"use strict";var Wge=/\r\n?|\n/g,Yge=/\0/g;zz.exports=function(t){var r;r=t.src.replace(Wge,` -`),r=r.replace(Yge,"\uFFFD"),t.src=r}});var Wz=X((HPe,Qz)=>{"use strict";Qz.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var Kz=X((QPe,Yz)=>{"use strict";Yz.exports=function(t){var r=t.tokens,n,i,o;for(i=0,o=r.length;i{"use strict";var Kge=Ht().arrayReplaceAt;function Xge(e){return/^\s]/i.test(e)}function Zge(e){return/^<\/a\s*>/i.test(e)}Xz.exports=function(t){var r,n,i,o,s,l,c,f,m,v,g,y,w,T,S,A,b=t.tokens,C;if(t.md.options.linkify){for(n=0,i=b.length;n=0;r--){if(l=o[r],l.type==="link_close"){for(r--;o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(Xge(l.content)&&w>0&&w--,Zge(l.content)&&w++),!(w>0)&&l.type==="text"&&t.md.linkify.test(l.content)){for(m=l.content,C=t.md.linkify.match(m),c=[],y=l.level,g=0,f=0;fg&&(s=new t.Token("text","",0),s.content=m.slice(g,v),s.level=y,c.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",S]],s.level=y++,s.markup="linkify",s.info="auto",c.push(s),s=new t.Token("text","",0),s.content=A,s.level=y,c.push(s),s=new t.Token("link_close","a",-1),s.level=--y,s.markup="linkify",s.info="auto",c.push(s),g=C[f].lastIndex);g{"use strict";var Jz=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Jge=/\((c|tm|r|p)\)/i,_ge=/\((c|tm|r|p)\)/ig,$ge={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function eye(e,t){return $ge[t.toLowerCase()]}function tye(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(_ge,eye)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function rye(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&Jz.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}_z.exports=function(t){var r;if(t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(Jge.test(t.tokens[r].content)&&tye(t.tokens[r].children),Jz.test(t.tokens[r].content)&&rye(t.tokens[r].children))}});var aH=X((KPe,oH)=>{"use strict";var eH=Ht().isWhiteSpace,tH=Ht().isPunctChar,rH=Ht().isMdAsciiPunct,nye=/['"]/,nH=/['"]/g,iH="\u2019";function tw(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function iye(e,t){var r,n,i,o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k,P;for(x=[],r=0;r=0&&!(x[b].level<=c);b--);if(x.length=b+1,n.type==="text"){i=n.content,s=0,l=i.length;e:for(;s=0)m=i.charCodeAt(o.index-1);else for(b=r-1;b>=0&&!(e[b].type==="softbreak"||e[b].type==="hardbreak");b--)if(e[b].content){m=e[b].content.charCodeAt(e[b].content.length-1);break}if(v=32,s=48&&m<=57&&(A=S=!1),S&&A&&(S=g,A=y),!S&&!A){C&&(n.content=tw(n.content,o.index,iH));continue}if(A){for(b=x.length-1;b>=0&&(f=x[b],!(x[b].level=0;r--)t.tokens[r].type!=="inline"||!nye.test(t.tokens[r].content)||iye(t.tokens[r].children,t)}});var rw=X((XPe,sH)=>{"use strict";function um(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}um.prototype.attrIndex=function(t){var r,n,i;if(!this.attrs)return-1;for(r=this.attrs,n=0,i=r.length;n=0&&(n=this.attrs[r][1]),n};um.prototype.attrJoin=function(t,r){var n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};sH.exports=um});var cH=X((ZPe,uH)=>{"use strict";var oye=rw();function lH(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}lH.prototype.Token=oye;uH.exports=lH});var dH=X((JPe,fH)=>{"use strict";var aye=ew(),FP=[["normalize",Hz()],["block",Wz()],["inline",Kz()],["linkify",Zz()],["replacements",$z()],["smartquotes",aH()]];function qP(){this.ruler=new aye;for(var e=0;e{"use strict";var jP=Ht().isSpace;function VP(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r)}function pH(e){var t=[],r=0,n=e.length,i,o=!1,s=0,l="";for(i=e.charCodeAt(r);rn||(m=r+1,t.sCount[m]=4||(l=t.bMarks[m]+t.tShift[m],l>=t.eMarks[m])||(k=t.src.charCodeAt(l++),k!==124&&k!==45&&k!==58)||l>=t.eMarks[m]||(P=t.src.charCodeAt(l++),P!==124&&P!==45&&P!==58&&!jP(P))||k===45&&jP(P))return!1;for(;l=4||(v=pH(s),v.length&&v[0]===""&&v.shift(),v.length&&v[v.length-1]===""&&v.pop(),g=v.length,g===0||g!==w.length))return!1;if(i)return!0;for(b=t.parentType,t.parentType="table",x=t.md.block.ruler.getRules("blockquote"),y=t.push("table_open","table",1),y.map=S=[r,0],y=t.push("thead_open","thead",1),y.map=[r,r+1],y=t.push("tr_open","tr",1),y.map=[r,r+1],c=0;c=4)break;for(v=pH(s),v.length&&v[0]===""&&v.shift(),v.length&&v[v.length-1]===""&&v.pop(),m===r+2&&(y=t.push("tbody_open","tbody",1),y.map=A=[r+2,0]),y=t.push("tr_open","tr",1),y.map=[m,m+1],c=0;c{"use strict";vH.exports=function(t,r,n){var i,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=i=r+1;i=4){i++,o=i;continue}break}return t.line=o,s=t.push("code_block","code",0),s.content=t.getLines(r,o,4+t.blkIndent,!1)+` -`,s.map=[r,t.line],!0}});var bH=X((eRe,yH)=>{"use strict";yH.exports=function(t,r,n,i){var o,s,l,c,f,m,v,g=!1,y=t.bMarks[r]+t.tShift[r],w=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||y+3>w||(o=t.src.charCodeAt(y),o!==126&&o!==96)||(f=y,y=t.skipChars(y,o),s=y-f,s<3)||(v=t.src.slice(f,y),l=t.src.slice(y,w),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(c=r;c++,!(c>=n||(y=f=t.bMarks[c]+t.tShift[c],w=t.eMarks[c],y=4)&&(y=t.skipChars(y,o),!(y-f{"use strict";var AH=Ht().isSpace;xH.exports=function(t,r,n,i){var o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k,P,D,N,I=t.lineMax,V=t.bMarks[r]+t.tShift[r],G=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(V++)!==62)return!1;if(i)return!0;for(c=y=t.sCount[r]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,x=!0):t.src.charCodeAt(V)===9?(x=!0,(t.bsCount[r]+y)%4===3?(V++,c++,y++,o=!1):o=!0):x=!1,w=[t.bMarks[r]],t.bMarks[r]=V;V=G,b=[t.sCount[r]],t.sCount[r]=y-c,C=[t.tShift[r]],t.tShift[r]=V-t.bMarks[r],P=t.md.block.ruler.getRules("blockquote"),A=t.parentType,t.parentType="blockquote",g=r+1;g=G));g++){if(t.src.charCodeAt(V++)===62&&!N){for(c=y=t.sCount[g]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,x=!0):t.src.charCodeAt(V)===9?(x=!0,(t.bsCount[g]+y)%4===3?(V++,c++,y++,o=!1):o=!0):x=!1,w.push(t.bMarks[g]),t.bMarks[g]=V;V=G,T.push(t.bsCount[g]),t.bsCount[g]=t.sCount[g]+1+(x?1:0),b.push(t.sCount[g]),t.sCount[g]=y-c,C.push(t.tShift[g]),t.tShift[g]=V-t.bMarks[g];continue}if(m)break;for(k=!1,l=0,f=P.length;l",D.map=v=[r,0],t.md.block.tokenize(t,r,g),D=t.push("blockquote_close","blockquote",-1),D.markup=">",t.lineMax=I,t.parentType=A,v[1]=t.line,l=0;l{"use strict";var sye=Ht().isSpace;EH.exports=function(t,r,n,i){var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(f++),o!==42&&o!==45&&o!==95))return!1;for(s=1;f{"use strict";var kH=Ht().isSpace;function CH(e,t){var r,n,i,o;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]=t.blkIndent&&(K=!0),(G=SH(t,r))>=0){if(v=!0,U=t.bMarks[r]+t.tShift[r],A=Number(t.src.slice(U,G-1)),K&&A!==1)return!1}else if((G=CH(t,r))>=0)v=!1;else return!1;if(K&&t.skipSpaces(G)>=t.eMarks[r])return!1;if(S=t.src.charCodeAt(G-1),i)return!0;for(T=t.tokens.length,v?(J=t.push("ordered_list_open","ol",1),A!==1&&(J.attrs=[["start",A]])):J=t.push("bullet_list_open","ul",1),J.map=w=[r,0],J.markup=String.fromCharCode(S),C=r,B=!1,j=t.md.block.ruler.getRules("list"),P=t.parentType,t.parentType="list";C=b?f=1:f=x-m,f>4&&(f=1),c=m+f,J=t.push("list_item_open","li",1),J.markup=String.fromCharCode(S),J.map=g=[r,0],v&&(J.info=t.src.slice(U,G-1)),I=t.tight,N=t.tShift[r],D=t.sCount[r],k=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=c,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=x,s>=b&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||B)&&(ee=!1),B=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=k,t.tShift[r]=N,t.sCount[r]=D,t.tight=I,J=t.push("list_item_close","li",-1),J.markup=String.fromCharCode(S),C=r=t.line,g[1]=C,s=t.bMarks[r],C>=n||t.sCount[C]=4)break;for(z=!1,l=0,y=j.length;l{"use strict";var uye=Ht().normalizeReference,nw=Ht().isSpace;DH.exports=function(t,r,n,i){var o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k=0,P=t.bMarks[r]+t.tShift[r],D=t.eMarks[r],N=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(P)!==91)return!1;for(;++P3)&&!(t.sCount[N]<0)){for(b=!1,m=0,v=C.length;m"u"&&(t.env.references={}),typeof t.env.references[g]>"u"&&(t.env.references[g]={title:x,href:f}),t.parentType=w,t.line=r+k+1),!0)}});var RH=X((oRe,PH)=>{"use strict";PH.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var BP=X((aRe,UP)=>{"use strict";var cye="[a-zA-Z_:][a-zA-Z0-9:._-]*",fye="[^\"'=<>`\\x00-\\x20]+",dye="'[^']*'",pye='"[^"]*"',mye="(?:"+fye+"|"+dye+"|"+pye+")",hye="(?:\\s+"+cye+"(?:\\s*=\\s*"+mye+")?)",MH="<[A-Za-z][A-Za-z0-9\\-]*"+hye+"*\\s*\\/?>",IH="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vye="|",gye="<[?][\\s\\S]*?[?]>",yye="]*>",bye="",Aye=new RegExp("^(?:"+MH+"|"+IH+"|"+vye+"|"+gye+"|"+yye+"|"+bye+")"),xye=new RegExp("^(?:"+MH+"|"+IH+")");UP.exports.HTML_TAG_RE=Aye;UP.exports.HTML_OPEN_CLOSE_TAG_RE=xye});var qH=X((sRe,FH)=>{"use strict";var wye=RH(),Eye=BP().HTML_OPEN_CLOSE_TAG_RE,cm=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Eye.source+"\\s*$"),/^$/,!1]];FH.exports=function(t,r,n,i){var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(f)!==60)return!1;for(c=t.src.slice(f,m),o=0;o{"use strict";var jH=Ht().isSpace;VH.exports=function(t,r,n,i){var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(f),o!==35||f>=m))return!1;for(s=1,o=t.src.charCodeAt(++f);o===35&&f6||ff&&jH(t.src.charCodeAt(l-1))&&(m=l),t.line=r+1,c=t.push("heading_open","h"+String(s),1),c.markup="########".slice(0,s),c.map=[r,t.line],c=t.push("inline","",0),c.content=t.src.slice(f,m).trim(),c.map=[r,t.line],c.children=[],c=t.push("heading_close","h"+String(s),-1),c.markup="########".slice(0,s)),!0)}});var GH=X((uRe,BH)=>{"use strict";BH.exports=function(t,r,n){var i,o,s,l,c,f,m,v,g,y=r+1,w,T=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(w=t.parentType,t.parentType="paragraph";y3)){if(t.sCount[y]>=t.blkIndent&&(f=t.bMarks[y]+t.tShift[y],m=t.eMarks[y],f=m)))){v=g===61?1:2;break}if(!(t.sCount[y]<0)){for(o=!1,s=0,l=T.length;s{"use strict";zH.exports=function(t,r){var n,i,o,s,l,c,f=r+1,m=t.md.block.ruler.getRules("paragraph"),v=t.lineMax;for(c=t.parentType,t.parentType="paragraph";f3)&&!(t.sCount[f]<0)){for(i=!1,o=0,s=m.length;o{"use strict";var QH=rw(),iw=Ht().isSpace;function ks(e,t,r,n){var i,o,s,l,c,f,m,v;for(this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,v=!1,s=l=f=m=0,c=o.length;l0&&this.level++,this.tokens.push(n),n};ks.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};ks.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;tr;)if(!iw(this.src.charCodeAt(--t)))return t+1;return t};ks.prototype.skipChars=function(t,r){for(var n=this.src.length;tn;)if(r!==this.src.charCodeAt(--t))return t+1;return t};ks.prototype.getLines=function(t,r,n,i){var o,s,l,c,f,m,v,g=t;if(t>=r)return"";for(m=new Array(r-t),o=0;gn?m[o]=new Array(s-n+1).join(" ")+this.src.slice(c,f):m[o]=this.src.slice(c,f)}return m.join("")};ks.prototype.Token=QH;WH.exports=ks});var XH=X((dRe,KH)=>{"use strict";var Tye=ew(),ow=[["table",hH(),["paragraph","reference"]],["code",gH()],["fence",bH(),["paragraph","reference","blockquote","list"]],["blockquote",wH(),["paragraph","reference","blockquote","list"]],["hr",TH(),["paragraph","reference","blockquote","list"]],["list",NH(),["paragraph","reference","blockquote"]],["reference",LH()],["html_block",qH(),["paragraph","reference","blockquote"]],["heading",UH(),["paragraph","reference","blockquote"]],["lheading",GH()],["paragraph",HH()]];function aw(){this.ruler=new Tye;for(var e=0;e=r||e.sCount[l]=f){e.line=r;break}for(i=0;i{"use strict";function Cye(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}ZH.exports=function(t,r){for(var n=t.pos;n{"use strict";var Sye=Ht().isSpace;_H.exports=function(t,r){var n,i,o,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(n=t.pending.length-1,i=t.posMax,!r)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){for(o=n-1;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s{"use strict";var kye=Ht().isSpace,zP=[];for(GP=0;GP<256;GP++)zP.push(0);var GP;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){zP[e.charCodeAt(0)]=1});eQ.exports=function(t,r){var n,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==92)return!1;if(i++,i{"use strict";rQ.exports=function(t,r){var n,i,o,s,l,c,f,m,v=t.pos,g=t.src.charCodeAt(v);if(g!==96)return!1;for(n=v,v++,i=t.posMax;v{"use strict";HP.exports.tokenize=function(t,r){var n,i,o,s,l,c=t.pos,f=t.src.charCodeAt(c);if(r||f!==126||(i=t.scanDelims(t.pos,!0),s=i.length,l=String.fromCharCode(f),s<2))return!1;for(s%2&&(o=t.push("text","",0),o.content=l,s--),n=0;n{"use strict";WP.exports.tokenize=function(t,r){var n,i,o,s=t.pos,l=t.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(i=t.scanDelims(t.pos,l===42),n=0;n=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=t[n.end],l=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=l?"strong_open":"em_open",o.tag=l?"strong":"em",o.nesting=1,o.markup=l?s+s:s,o.content="",o=e.tokens[i.token],o.type=l?"strong_close":"em_close",o.tag=l?"strong":"em",o.nesting=-1,o.markup=l?s+s:s,o.content="",l&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}WP.exports.postProcess=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(oQ(t,t.delimiters),r=0;r{"use strict";var Oye=Ht().normalizeReference,KP=Ht().isSpace;aQ.exports=function(t,r){var n,i,o,s,l,c,f,m,v,g="",y="",w=t.pos,T=t.posMax,S=t.pos,A=!0;if(t.src.charCodeAt(t.pos)!==91||(l=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(c=s+1,c=T)return!1;if(S=c,f=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),f.ok){for(g=t.md.normalizeLink(f.str),t.md.validateLink(g)?c=f.pos:g="",S=c;c=T||t.src.charCodeAt(c)!==41)&&(A=!0),c++}if(A){if(typeof t.env.references>"u")return!1;if(c=0?o=t.src.slice(S,c++):c=s+1):c=s+1,o||(o=t.src.slice(l,s)),m=t.env.references[Oye(o)],!m)return t.pos=w,!1;g=m.href,y=m.title}return r||(t.pos=l,t.posMax=s,v=t.push("link_open","a",1),v.attrs=n=[["href",g]],y&&n.push(["title",y]),t.md.inline.tokenize(t),v=t.push("link_close","a",-1)),t.pos=c,t.posMax=T,!0}});var uQ=X((ARe,lQ)=>{"use strict";var Nye=Ht().normalizeReference,XP=Ht().isSpace;lQ.exports=function(t,r){var n,i,o,s,l,c,f,m,v,g,y,w,T,S="",A=t.pos,b=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(c=t.pos+2,l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),l<0))return!1;if(f=l+1,f=b)return!1;for(T=f,v=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),v.ok&&(S=t.md.normalizeLink(v.str),t.md.validateLink(S)?f=v.pos:S=""),T=f;f=b||t.src.charCodeAt(f)!==41)return t.pos=A,!1;f++}else{if(typeof t.env.references>"u")return!1;if(f=0?s=t.src.slice(T,f++):f=l+1):f=l+1,s||(s=t.src.slice(c,l)),m=t.env.references[Nye(s)],!m)return t.pos=A,!1;S=m.href,g=m.title}return r||(o=t.src.slice(c,l),t.md.inline.parse(o,t.md,t.env,w=[]),y=t.push("image","img",0),y.attrs=n=[["src",S],["alt",""]],y.children=w,y.content=o,g&&n.push(["title",g])),t.pos=f,t.posMax=b,!0}});var fQ=X((xRe,cQ)=>{"use strict";var Dye=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Lye=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;cQ.exports=function(t,r){var n,i,o,s,l,c,f=t.pos;if(t.src.charCodeAt(f)!==60)return!1;for(l=t.pos,c=t.posMax;;){if(++f>=c||(s=t.src.charCodeAt(f),s===60))return!1;if(s===62)break}return n=t.src.slice(l+1,f),Lye.test(n)?(i=t.md.normalizeLink(n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):Dye.test(n)?(i=t.md.normalizeLink("mailto:"+n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):!1}});var pQ=X((wRe,dQ)=>{"use strict";var Pye=BP().HTML_TAG_RE;function Rye(e){var t=e|32;return t>=97&&t<=122}dQ.exports=function(t,r){var n,i,o,s,l=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(l)!==60||l+2>=o)||(n=t.src.charCodeAt(l+1),n!==33&&n!==63&&n!==47&&!Rye(n))||(i=t.src.slice(l).match(Pye),!i)?!1:(r||(s=t.push("html_inline","",0),s.content=t.src.slice(l,l+i[0].length)),t.pos+=i[0].length,!0)}});var gQ=X((ERe,vQ)=>{"use strict";var mQ=LP(),Mye=Ht().has,Iye=Ht().isValidEntityCode,hQ=Ht().fromCodePoint,Fye=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,qye=/^&([a-z][a-z0-9]{1,31});/i;vQ.exports=function(t,r){var n,i,o,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1{"use strict";function yQ(e,t){var r,n,i,o,s,l,c,f,m={},v=t.length;if(v){var g=0,y=-2,w=[];for(r=0;rs;n-=w[n]+1)if(o=t[n],o.marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(c=!0),!c)){f=n>0&&!t[n-1].open?w[n-1]+1:0,w[r]=r-n+f,w[n]=f,i.open=!1,o.end=r,o.close=!1,l=-1,y=-2;break}l!==-1&&(m[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}}bQ.exports=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(yQ(t,t.delimiters),r=0;r{"use strict";xQ.exports=function(t){var r,n,i=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r0&&i++,o[r].type==="text"&&r+1{"use strict";var ZP=rw(),EQ=Ht().isWhiteSpace,TQ=Ht().isPunctChar,CQ=Ht().isMdAsciiPunct;function Xg(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Xg.prototype.pushPending=function(){var e=new ZP("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Xg.prototype.push=function(e,t,r){this.pending&&this.pushPending();var n=new ZP(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};Xg.prototype.scanDelims=function(e,t){var r=e,n,i,o,s,l,c,f,m,v,g=!0,y=!0,w=this.posMax,T=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r{"use strict";var OQ=ew(),JP=[["text",JH()],["newline",$H()],["escape",tQ()],["backticks",nQ()],["strikethrough",QP().tokenize],["emphasis",YP().tokenize],["link",sQ()],["image",uQ()],["autolink",fQ()],["html_inline",pQ()],["entity",gQ()]],_P=[["balance_pairs",AQ()],["strikethrough",QP().postProcess],["emphasis",YP().postProcess],["text_collapse",wQ()]];function Zg(){var e;for(this.ruler=new OQ,e=0;e=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Zg.prototype.parse=function(e,t,r,n){var i,o,s,l=new this.State(e,t,r,n);for(this.tokenize(l),o=this.ruler2.getRules(""),s=o.length,i=0;i{"use strict";LQ.exports=function(e){var t={};t.src_Any=RP().source,t.src_Cc=MP().source,t.src_Z=IP().source,t.src_P=Xx().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var jQ=X((NRe,qQ)=>{"use strict";function $P(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function lw(e){return Object.prototype.toString.call(e)}function jye(e){return lw(e)==="[object String]"}function Vye(e){return lw(e)==="[object Object]"}function Uye(e){return lw(e)==="[object RegExp]"}function RQ(e){return lw(e)==="[object Function]"}function Bye(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var FQ={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gye(e){return Object.keys(e||{}).reduce(function(t,r){return t||FQ.hasOwnProperty(r)},!1)}var zye={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Hye="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Qye="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Wye(e){e.__index__=-1,e.__text_cache__=""}function Yye(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function MQ(){return function(e,t){t.normalize(e)}}function sw(e){var t=e.re=PQ()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Hye),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var i=[];e.__compiled__={};function o(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(e.__schemas__).forEach(function(l){var c=e.__schemas__[l];if(c!==null){var f={validate:null,link:null};if(e.__compiled__[l]=f,Vye(c)){Uye(c.validate)?f.validate=Yye(c.validate):RQ(c.validate)?f.validate=c.validate:o(l,c),RQ(c.normalize)?f.normalize=c.normalize:c.normalize?o(l,c):f.normalize=MQ();return}if(jye(c)){i.push(l);return}o(l,c)}}),i.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:MQ()};var s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(Bye).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Wye(e)}function Kye(e,t){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function IQ(e,t){var r=new Kye(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Xo(e,t){if(!(this instanceof Xo))return new Xo(e,t);t||Gye(e)&&(t=e,e={}),this.__opts__=$P({},FQ,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=$P({},zye,e),this.__compiled__={},this.__tlds__=Qye,this.__tlds_replaced__=!1,this.re={},sw(this)}Xo.prototype.add=function(t,r){return this.__schemas__[t]=r,sw(this),this};Xo.prototype.set=function(t){return this.__opts__=$P(this.__opts__,t),this};Xo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,i,o,s,l,c,f,m;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(r=c.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],c.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(f=t.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};Xo.prototype.pretest=function(t){return this.re.pretest.test(t)};Xo.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Xo.prototype.match=function(t){var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(IQ(this,r)),r=this.__last_index__);for(var i=r?t.slice(r):t;this.test(i);)n.push(IQ(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Xo.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),sw(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,sw(this),this)};Xo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Xo.prototype.onCompile=function(){};qQ.exports=Xo});var YQ=X((DRe,WQ)=>{"use strict";var UQ="-",Xye=/^xn--/,Zye=/[^\0-\x7E]/,Jye=/[\x2E\u3002\uFF0E\uFF61]/g,_ye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},eR=36-1,Os=Math.floor,tR=String.fromCharCode;function kf(e){throw new RangeError(_ye[e])}function $ye(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function BQ(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(Jye,".");let i=e.split("."),o=$ye(i,t).join(".");return n+o}function GQ(e){let t=[],r=0,n=e.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...e),t0e=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36},VQ=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},zQ=function(e,t,r){let n=0;for(e=r?Os(e/700):e>>1,e+=Os(e/t);e>eR*26>>1;n+=36)e=Os(e/eR);return Os(n+(eR+1)*e/(e+38))},HQ=function(e){let t=[],r=e.length,n=0,i=128,o=72,s=e.lastIndexOf(UQ);s<0&&(s=0);for(let l=0;l=128&&kf("not-basic"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l=r&&kf("invalid-input");let g=t0e(e.charCodeAt(l++));(g>=36||g>Os((2147483647-n)/m))&&kf("overflow"),n+=g*m;let y=v<=o?1:v>=o+26?26:v-o;if(gOs(2147483647/w)&&kf("overflow"),m*=w}let f=t.length+1;o=zQ(n-c,f,c==0),Os(n/f)>2147483647-i&&kf("overflow"),i+=Os(n/f),n%=f,t.splice(n++,0,i)}return String.fromCodePoint(...t)},QQ=function(e){let t=[];e=GQ(e);let r=e.length,n=128,i=0,o=72;for(let c of e)c<128&&t.push(tR(c));let s=t.length,l=s;for(s&&t.push(UQ);l=n&&mOs((2147483647-i)/f)&&kf("overflow"),i+=(c-n)*f,n=c;for(let m of e)if(m2147483647&&kf("overflow"),m==n){let v=i;for(let g=36;;g+=36){let y=g<=o?1:g>=o+26?26:g-o;if(v{"use strict";KQ.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var JQ=X((PRe,ZQ)=>{"use strict";ZQ.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var $Q=X((RRe,_Q)=>{"use strict";_Q.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var nW=X((MRe,rW)=>{"use strict";var Jg=Ht(),o0e=Vz(),a0e=Bz(),s0e=dH(),l0e=XH(),u0e=DQ(),c0e=jQ(),Of=PP(),eW=YQ(),f0e={default:XQ(),zero:JQ(),commonmark:$Q()},d0e=/^(vbscript|javascript|file|data):/,p0e=/^data:image\/(gif|png|jpeg|webp);/;function m0e(e){var t=e.trim().toLowerCase();return d0e.test(t)?!!p0e.test(t):!0}var tW=["http:","https:","mailto:"];function h0e(e){var t=Of.parse(e,!0);if(t.hostname&&(!t.protocol||tW.indexOf(t.protocol)>=0))try{t.hostname=eW.toASCII(t.hostname)}catch{}return Of.encode(Of.format(t))}function v0e(e){var t=Of.parse(e,!0);if(t.hostname&&(!t.protocol||tW.indexOf(t.protocol)>=0))try{t.hostname=eW.toUnicode(t.hostname)}catch{}return Of.decode(Of.format(t),Of.decode.defaultChars+"%")}function Zo(e,t){if(!(this instanceof Zo))return new Zo(e,t);t||Jg.isString(e)||(t=e||{},e="default"),this.inline=new u0e,this.block=new l0e,this.core=new s0e,this.renderer=new a0e,this.linkify=new c0e,this.validateLink=m0e,this.normalizeLink=h0e,this.normalizeLinkText=v0e,this.utils=Jg,this.helpers=Jg.assign({},o0e),this.options={},this.configure(e),t&&this.set(t)}Zo.prototype.set=function(e){return Jg.assign(this.options,e),this};Zo.prototype.configure=function(e){var t=this,r;if(Jg.isString(e)&&(r=e,e=f0e[r],!e))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Zo.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Zo.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Zo.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Zo.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};Zo.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Zo.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Zo.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};rW.exports=Zo});var oW=X((IRe,iW)=>{"use strict";iW.exports=nW()});var YW=X(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});function U0e(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}fR.default=U0e});var KW=X(dR=>{"use strict";Object.defineProperty(dR,"__esModule",{value:!0});function B0e(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var G0e=B0e(YW()),z0e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H0e=G0e(function(e){return z0e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});dR.default=H0e});function _t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kt(){return RZ||(RZ=1,function(e,t){(function(r,n){e.exports=n()})(hxe,function(){var r=navigator.userAgent,n=navigator.platform,i=/gecko\/\d/i.test(r),o=/MSIE \d/.test(r),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),l=/Edge\/(\d+)/.exec(r),c=o||s||l,f=c&&(o?document.documentMode||6:+(l||s)[1]),m=!l&&/WebKit\//.test(r),v=m&&/Qt\/\d+\.\d+/.test(r),g=!l&&/Chrome\//.test(r),y=/Opera\//.test(r),w=/Apple Computer/.test(navigator.vendor),T=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),S=/PhantomJS/.test(r),A=w&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),b=/Android/.test(r),C=A||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),x=A||/Mac/.test(n),k=/\bCrOS\b/.test(r),P=/win/i.test(n),D=y&&r.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(y=!1,m=!0);var N=x&&(v||y&&(D==null||D<12.11)),I=i||c&&f>=9;function V(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}M(V,"classTest");var G=M(function(a,u){var p=a.className,d=V(u).exec(p);if(d){var h=p.slice(d.index+d[0].length);a.className=p.slice(0,d.index)+(h?d[1]+h:"")}},"rmClass");function B(a){for(var u=a.childNodes.length;u>0;--u)a.removeChild(a.firstChild);return a}M(B,"removeChildren");function U(a,u){return B(a).appendChild(u)}M(U,"removeChildrenAndAdd");function z(a,u,p,d){var h=document.createElement(a);if(p&&(h.className=p),d&&(h.style.cssText=d),typeof u=="string")h.appendChild(document.createTextNode(u));else if(u)for(var E=0;E=u)return O+(u-E);O+=L-E,O+=p-O%p,E=L+1}}M(ie,"countColumn");var ye=M(function(){this.id=null,this.f=null,this.time=0,this.handler=Re(this.onTimeout,this)},"Delayed");ye.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ye.prototype.set=function(a,u){this.f=u;var p=+new Date+a;(!this.id||p=u)return d+Math.min(O,u-h);if(h+=E-d,h+=p-h%p,d=E+1,h>=u)return d}}M(bt,"findColumn");var he=[""];function Fe(a){for(;he.length<=a;)he.push(pe(he)+" ");return he[a]}M(Fe,"spaceStr");function pe(a){return a[a.length-1]}M(pe,"lst");function Me(a,u){for(var p=[],d=0;d"\x80"&&(a.toUpperCase()!=a.toLowerCase()||wt.test(a))}M(Or,"isWordCharBasic");function ua(a,u){return u?u.source.indexOf("\\w")>-1&&Or(a)?!0:u.test(a):Or(a)}M(ua,"isWordChar");function Rl(a){for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0}M(Rl,"isEmpty");var nc=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Vs(a){return a.charCodeAt(0)>=768&&nc.test(a)}M(Vs,"isExtendingChar");function Ml(a,u,p){for(;(p<0?u>0:up?-1:1;;){if(u==p)return u;var h=(u+p)/2,E=d<0?Math.ceil(h):Math.floor(h);if(E==u)return a(E)?u:p;a(E)?p=E:u=E+d}}M(xi,"findFirst");function ic(a,u,p,d){if(!a)return d(u,p,"ltr",0);for(var h=!1,E=0;Eu||u==p&&O.to==u)&&(d(Math.max(O.from,u),Math.min(O.to,p),O.level==1?"rtl":"ltr",E),h=!0)}h||d(u,p,"ltr")}M(ic,"iterateBidiSections");var tn=null;function pr(a,u,p){var d;tn=null;for(var h=0;hu)return h;E.to==u&&(E.from!=E.to&&p=="before"?d=h:tn=h),E.from==u&&(E.from!=E.to&&p!="before"?d=h:tn=h)}return d??tn}M(pr,"getBidiPartAt");var Il=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function p(F){return F<=247?a.charAt(F):1424<=F&&F<=1524?"R":1536<=F&&F<=1785?u.charAt(F-1536):1774<=F&&F<=2220?"r":8192<=F&&F<=8203?"w":F==8204?"b":"L"}M(p,"charType");var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,E=/[LRr]/,O=/[Lb1n]/,L=/[1n]/;function R(F,H,Q){this.level=F,this.from=H,this.to=Q}return M(R,"BidiSpan"),function(F,H){var Q=H=="ltr"?"L":"R";if(F.length==0||H=="ltr"&&!d.test(F))return!1;for(var $=F.length,Z=[],le=0;le<$;++le)Z.push(p(F.charCodeAt(le)));for(var ge=0,Te=Q;ge<$;++ge){var De=Z[ge];De=="m"?Z[ge]=Te:Te=De}for(var qe=0,Le=Q;qe<$;++qe){var Be=Z[qe];Be=="1"&&Le=="r"?Z[qe]="n":E.test(Be)&&(Le=Be,Be=="r"&&(Z[qe]="R"))}for(var it=1,Je=Z[0];it<$-1;++it){var Et=Z[it];Et=="+"&&Je=="1"&&Z[it+1]=="1"?Z[it]="1":Et==","&&Je==Z[it+1]&&(Je=="1"||Je=="n")&&(Z[it]=Je),Je=Et}for(var $t=0;$t<$;++$t){var hn=Z[$t];if(hn==",")Z[$t]="N";else if(hn=="%"){var mr=void 0;for(mr=$t+1;mr<$&&Z[mr]=="%";++mr);for(var Ci=$t&&Z[$t-1]=="!"||mr<$&&Z[mr]=="1"?"1":"N",Si=$t;Si-1&&(d[u]=h.slice(0,E).concat(h.slice(E+1)))}}}M(Vn,"off");function ut(a,u){var p=Fl(a,u);if(p.length)for(var d=Array.prototype.slice.call(arguments,2),h=0;h0}M(rn,"hasHandler");function ko(a){a.prototype.on=function(u,p){rt(this,u,p)},a.prototype.off=function(u,p){Vn(this,u,p)}}M(ko,"eventMixin");function mn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}M(mn,"e_preventDefault");function jl(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}M(jl,"e_stopPropagation");function wi(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}M(wi,"e_defaultPrevented");function Us(a){mn(a),jl(a)}M(Us,"e_stop");function Ka(a){return a.target||a.srcElement}M(Ka,"e_target");function td(a){var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),x&&a.ctrlKey&&u==1&&(u=3),u}M(td,"e_button");var rd=function(){if(c&&f<9)return!1;var a=z("div");return"draggable"in a||"dragDrop"in a}(),ni;function nd(a){if(ni==null){var u=z("span","\u200B");U(a,z("span",[u,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(ni=u.offsetWidth<=1&&u.offsetHeight>2&&!(c&&f<8))}var p=ni?z("span","\u200B"):z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return p.setAttribute("cm-text",""),p}M(nd,"zeroWidthElement");var id;function Oo(a){if(id!=null)return id;var u=U(a,document.createTextNode("A\u062EA")),p=J(u,0,1).getBoundingClientRect(),d=J(u,1,2).getBoundingClientRect();return B(a),!p||p.left==p.right?!1:id=d.right-p.right<3}M(Oo,"hasBadBidiRects");var od=` - -b`.split(/\n/).length!=3?function(a){for(var u=0,p=[],d=a.length;u<=d;){var h=a.indexOf(` -`,u);h==-1&&(h=a.length);var E=a.slice(u,a.charAt(h-1)=="\r"?h-1:h),O=E.indexOf("\r");O!=-1?(p.push(E.slice(0,O)),u+=O+1):(p.push(E),u=h+1)}return p}:function(a){return a.split(/\r\n?|\n/)},oh=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var u;try{u=a.ownerDocument.selection.createRange()}catch{}return!u||u.parentElement()!=a?!1:u.compareEndPoints("StartToEnd",u)!=0},ah=function(){var a=z("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),ad=null;function Xa(a){if(ad!=null)return ad;var u=U(a,z("span","x")),p=u.getBoundingClientRect(),d=J(u,0,1).getBoundingClientRect();return ad=Math.abs(p.left-d.left)>1}M(Xa,"hasBadZoomedRects");var ro={},qi={};function sd(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),ro[a]=u}M(sd,"defineMode");function ca(a,u){qi[a]=u}M(ca,"defineMIME");function Vl(a){if(typeof a=="string"&&qi.hasOwnProperty(a))a=qi[a];else if(a&&typeof a.name=="string"&&qi.hasOwnProperty(a.name)){var u=qi[a.name];typeof u=="string"&&(u={name:u}),a=lt(u,a),a.name=u.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Vl("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Vl("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}M(Vl,"resolveMode");function Ul(a,u){u=Vl(u);var p=ro[u.name];if(!p)return Ul(a,"text/plain");var d=p(a,u);if(No.hasOwnProperty(u.name)){var h=No[u.name];for(var E in h)h.hasOwnProperty(E)&&(d.hasOwnProperty(E)&&(d["_"+E]=d[E]),d[E]=h[E])}if(d.name=u.name,u.helperType&&(d.helperType=u.helperType),u.modeProps)for(var O in u.modeProps)d[O]=u.modeProps[O];return d}M(Ul,"getMode");var No={};function no(a,u){var p=No.hasOwnProperty(a)?No[a]:No[a]={};Se(u,p)}M(no,"extendMode");function ji(a,u){if(u===!0)return u;if(a.copyState)return a.copyState(u);var p={};for(var d in u){var h=u[d];h instanceof Array&&(h=h.concat([])),p[d]=h}return p}M(ji,"copyState");function oc(a,u){for(var p;a.innerMode&&(p=a.innerMode(u),!(!p||p.mode==a));)u=p.state,a=p.mode;return p||{mode:a,state:u}}M(oc,"innerMode");function ac(a,u,p){return a.startState?a.startState(u,p):!0}M(ac,"startState");var xr=M(function(a,u,p){this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p},"StringStream");xr.prototype.eol=function(){return this.pos>=this.string.length},xr.prototype.sol=function(){return this.pos==this.lineStart},xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xr.prototype.next=function(){if(this.posu},xr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},xr.prototype.skipToEnd=function(){this.pos=this.string.length},xr.prototype.skipTo=function(a){var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0},xr.prototype.backUp=function(a){this.pos-=a},xr.prototype.column=function(){return this.lastColumnPos0?null:(E&&u!==!1&&(this.pos+=E[0].length),E)}},xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},xr.prototype.hideFirstChars=function(a,u){this.lineStart+=a;try{return u()}finally{this.lineStart-=a}},xr.prototype.lookAhead=function(a){var u=this.lineOracle;return u&&u.lookAhead(a)},xr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Qe(a,u){if(u-=a.first,u<0||u>=a.size)throw new Error("There is no line "+(u+a.first)+" in the document.");for(var p=a;!p.lines;)for(var d=0;;++d){var h=p.children[d],E=h.chunkSize();if(u=a.first&&up?Ae(p,Qe(a,p).text.length):Sn(u,Qe(a,u.line).text.length)}M(Ve,"clipPos");function Sn(a,u){var p=a.ch;return p==null||p>u?Ae(a.line,u):p<0?Ae(a.line,0):a}M(Sn,"clipToLen");function Vi(a,u){for(var p=[],d=0;dthis.maxLookAhead&&(this.maxLookAhead=a),u},Za.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Za.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Za.fromSaved=function(a,u,p){return u instanceof ld?new Za(a,ji(a.mode,u.state),p,u.lookAhead):new Za(a,ji(a.mode,u),p)},Za.prototype.save=function(a){var u=a!==!1?ji(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ld(u,this.maxLookAhead):u};function dT(a,u,p,d){var h=[a.state.modeGen],E={};gT(a,u.text,a.doc.mode,p,function(F,H){return h.push(F,H)},E,d);for(var O=p.state,L=M(function(F){p.baseTokens=h;var H=a.state.overlays[F],Q=1,$=0;p.state=!0,gT(a,u.text,H.mode,p,function(Z,le){for(var ge=Q;$Z&&h.splice(Q,1,Z,h[Q+1],Te),Q+=2,$=Math.min(Z,Te)}if(le)if(H.opaque)h.splice(ge,Q-ge,Z,"overlay "+le),Q=ge+2;else for(;gea.options.maxHighlightLength&&ji(a.doc.mode,d.state),E=dT(a,u,d);h&&(d.state=h),u.stateAfter=d.save(!h),u.styles=E.styles,E.classes?u.styleClasses=E.classes:u.styleClasses&&(u.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return u.styles}M(pT,"getLineStyles");function ud(a,u,p){var d=a.doc,h=a.display;if(!d.mode.startState)return new Za(d,!0,u);var E=II(a,u,p),O=E>d.first&&Qe(d,E-1).stateAfter,L=O?Za.fromSaved(d,O,E):new Za(d,ac(d.mode),E);return d.iter(E,u,function(R){o0(a,R.text,L);var F=L.line;R.stateAfter=F==u-1||F%5==0||F>=h.viewFrom&&Fu.start)return E}throw new Error("Mode "+a.name+" failed to advance stream.")}M(a0,"readToken");var MI=M(function(a,u,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=u||null,this.state=p},"Token");function hT(a,u,p,d){var h=a.doc,E=h.mode,O;u=Ve(h,u);var L=Qe(h,u.line),R=ud(a,u.line,p),F=new xr(L.text,a.options.tabSize,R),H;for(d&&(H=[]);(d||F.posa.options.maxHighlightLength?(L=!1,O&&o0(a,u,d,H.pos),H.pos=u.length,Q=null):Q=vT(a0(p,H,d.state,$),E),$){var Z=$[0].name;Z&&(Q="m-"+(Q?Z+" "+Q:Z))}if(!L||F!=Q){for(;RO;--L){if(L<=E.first)return E.first;var R=Qe(E,L-1),F=R.stateAfter;if(F&&(!p||L+(F instanceof ld?F.lookAhead:0)<=E.modeFrontier))return L;var H=ie(R.text,null,a.options.tabSize);(h==null||d>H)&&(h=L-1,d=H)}return h}M(II,"findStartLine");function FI(a,u){if(a.modeFrontier=Math.min(a.modeFrontier,u),!(a.highlightFrontierp;d--){var h=Qe(a,d).stateAfter;if(h&&(!(h instanceof ld)||d+h.lookAhead=u:E.to>u);(d||(d=[])).push(new sh(O,E.from,R?null:E.to))}}return d}M(GI,"markedSpansBefore");function zI(a,u,p){var d;if(a)for(var h=0;h=u:E.to>u);if(L||E.from==u&&O.type=="bookmark"&&(!p||E.marker.insertLeft)){var R=E.from==null||(O.inclusiveLeft?E.from<=u:E.from0&&L)for(var Be=0;Be0)){var H=[R,1],Q=q(F.from,L.from),$=q(F.to,L.to);(Q<0||!O.inclusiveLeft&&!Q)&&H.push({from:F.from,to:L.from}),($>0||!O.inclusiveRight&&!$)&&H.push({from:L.to,to:F.to}),h.splice.apply(h,H),R+=H.length-3}}return h}M(HI,"removeReadOnlyRanges");function bT(a){var u=a.markedSpans;if(u){for(var p=0;pu)&&(!d||l0(d,E.marker)<0)&&(d=E.marker)}return d}M(QI,"collapsedSpanAround");function ET(a,u,p,d,h){var E=Qe(a,u),O=Gs&&E.markedSpans;if(O)for(var L=0;L=0&&Q<=0||H<=0&&Q>=0)&&(H<=0&&(R.marker.inclusiveRight&&h.inclusiveLeft?q(F.to,p)>=0:q(F.to,p)>0)||H>=0&&(R.marker.inclusiveRight&&h.inclusiveLeft?q(F.from,d)<=0:q(F.from,d)<0)))return!0}}}M(ET,"conflictingCollapsedRange");function Po(a){for(var u;u=wT(a);)a=u.find(-1,!0).line;return a}M(Po,"visualLine");function WI(a){for(var u;u=ch(a);)a=u.find(1,!0).line;return a}M(WI,"visualLineEnd");function YI(a){for(var u,p;u=ch(a);)a=u.find(1,!0).line,(p||(p=[])).push(a);return p}M(YI,"visualLineContinued");function u0(a,u){var p=Qe(a,u),d=Po(p);return p==d?u:Pt(d)}M(u0,"visualLineNo");function TT(a,u){if(u>a.lastLine())return u;var p=Qe(a,u),d;if(!zs(a,p))return u;for(;d=ch(p);)p=d.find(1,!0).line;return Pt(p)+1}M(TT,"visualLineEndNo");function zs(a,u){var p=Gs&&u.markedSpans;if(p){for(var d=void 0,h=0;hu.maxLineLength&&(u.maxLineLength=h,u.maxLine=d)})}M(f0,"findMaxLine");var fd=M(function(a,u,p){this.text=a,AT(this,u),this.height=p?p(this):1},"Line");fd.prototype.lineNo=function(){return Pt(this)},ko(fd);function KI(a,u,p,d){a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),bT(a),AT(a,p);var h=d?d(a):1;h!=a.height&&ii(a,h)}M(KI,"updateLine");function XI(a){a.parent=null,bT(a)}M(XI,"cleanUpLine");var G$={},z$={};function CT(a,u){if(!a||/^\s*$/.test(a))return null;var p=u.addModeClass?z$:G$;return p[a]||(p[a]=a.replace(/\S+/g,"cm-$&"))}M(CT,"interpretTokenStyle");function ST(a,u){var p=j("span",null,null,m?"padding-right: .1px":null),d={pre:j("pre",[p],"CodeMirror-line"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};u.measure={};for(var h=0;h<=(u.rest?u.rest.length:0);h++){var E=h?u.rest[h-1]:u.line,O=void 0;d.pos=0,d.addToken=JI,Oo(a.display.measure)&&(O=ri(E,a.doc.direction))&&(d.addToken=$I(d.addToken,O)),d.map=[];var L=u!=a.display.externalMeasured&&Pt(E);eF(E,d,pT(a,E,L)),E.styleClasses&&(E.styleClasses.bgClass&&(d.bgClass=se(E.styleClasses.bgClass,d.bgClass||"")),E.styleClasses.textClass&&(d.textClass=se(E.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(nd(a.display.measure))),h==0?(u.measure.map=d.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(d.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(m){var R=d.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ut(a,"renderLine",a,u.line,d.pre),d.pre.className&&(d.textClass=se(d.pre.className,d.textClass||"")),d}M(ST,"buildLineContent");function ZI(a){var u=z("span","\u2022","cm-invalidchar");return u.title="\\u"+a.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}M(ZI,"defaultSpecialCharPlaceholder");function JI(a,u,p,d,h,E,O){if(u){var L=a.splitSpaces?_I(u,a.trailingSpace):u,R=a.cm.state.specialChars,F=!1,H;if(!R.test(u))a.col+=u.length,H=document.createTextNode(L),a.map.push(a.pos,a.pos+u.length,H),c&&f<9&&(F=!0),a.pos+=u.length;else{H=document.createDocumentFragment();for(var Q=0;;){R.lastIndex=Q;var $=R.exec(u),Z=$?$.index-Q:u.length-Q;if(Z){var le=document.createTextNode(L.slice(Q,Q+Z));c&&f<9?H.appendChild(z("span",[le])):H.appendChild(le),a.map.push(a.pos,a.pos+Z,le),a.col+=Z,a.pos+=Z}if(!$)break;Q+=Z+1;var ge=void 0;if($[0]==" "){var Te=a.cm.options.tabSize,De=Te-a.col%Te;ge=H.appendChild(z("span",Fe(De),"cm-tab")),ge.setAttribute("role","presentation"),ge.setAttribute("cm-text"," "),a.col+=De}else $[0]=="\r"||$[0]==` -`?(ge=H.appendChild(z("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ge.setAttribute("cm-text",$[0]),a.col+=1):(ge=a.cm.options.specialCharPlaceholder($[0]),ge.setAttribute("cm-text",$[0]),c&&f<9?H.appendChild(z("span",[ge])):H.appendChild(ge),a.col+=1);a.map.push(a.pos,a.pos+1,ge),a.pos++}}if(a.trailingSpace=L.charCodeAt(u.length-1)==32,p||d||h||F||E||O){var qe=p||"";d&&(qe+=d),h&&(qe+=h);var Le=z("span",[H],qe,E);if(O)for(var Be in O)O.hasOwnProperty(Be)&&Be!="style"&&Be!="class"&&Le.setAttribute(Be,O[Be]);return a.content.appendChild(Le)}a.content.appendChild(H)}}M(JI,"buildToken");function _I(a,u){if(a.length>1&&!/ /.test(a))return a;for(var p=u,d="",h=0;hF&&Q.from<=F));$++);if(Q.to>=H)return a(p,d,h,E,O,L,R);a(p,d.slice(0,Q.to-F),h,E,null,L,R),E=null,d=d.slice(Q.to-F),F=Q.to}}}M($I,"buildTokenBadBidi");function kT(a,u,p,d){var h=!d&&p.widgetNode;h&&a.map.push(a.pos,a.pos+u,h),!d&&a.cm.display.input.needsContentAttribute&&(h||(h=a.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",p.id)),h&&(a.cm.display.input.setUneditable(h),a.content.appendChild(h)),a.pos+=u,a.trailingSpace=!1}M(kT,"buildCollapsedSpan");function eF(a,u,p){var d=a.markedSpans,h=a.text,E=0;if(!d){for(var O=1;OR||Et.collapsed&&Je.to==R&&Je.from==R)){if(Je.to!=null&&Je.to!=R&&Z>Je.to&&(Z=Je.to,ge=""),Et.className&&(le+=" "+Et.className),Et.css&&($=($?$+";":"")+Et.css),Et.startStyle&&Je.from==R&&(Te+=" "+Et.startStyle),Et.endStyle&&Je.to==Z&&(Be||(Be=[])).push(Et.endStyle,Je.to),Et.title&&((qe||(qe={})).title=Et.title),Et.attributes)for(var $t in Et.attributes)(qe||(qe={}))[$t]=Et.attributes[$t];Et.collapsed&&(!De||l0(De.marker,Et)<0)&&(De=Je)}else Je.from>R&&Z>Je.from&&(Z=Je.from)}if(Be)for(var hn=0;hn=L)break;for(var Ci=Math.min(L,Z);;){if(H){var Si=R+H.length;if(!De){var zr=Si>Ci?H.slice(0,Ci-R):H;u.addToken(u,zr,Q?Q+le:le,Te,R+zr.length==Z?ge:"",$,qe)}if(Si>=Ci){H=H.slice(Ci-R),R=Ci;break}R=Si,Te=""}H=h.slice(E,E=p[F++]),Q=CT(p[F++],u.cm.options)}}}M(eF,"insertLineContent");function OT(a,u,p){this.line=u,this.rest=YI(u),this.size=this.rest?Pt(pe(this.rest))-p+1:1,this.node=this.text=null,this.hidden=zs(a,u)}M(OT,"LineView");function dh(a,u,p){for(var d=[],h,E=u;E2&&E.push((R.bottom+F.top)/2-p.top)}}E.push(p.bottom-p.top)}}M(cF,"ensureLineHeights");function IT(a,u,p){if(a.line==u)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var d=0;dp)return{map:a.measure.maps[h],cache:a.measure.caches[h],before:!0}}}M(IT,"mapFromLineView");function fF(a,u){u=Po(u);var p=Pt(u),d=a.display.externalMeasured=new OT(a.doc,u,p);d.lineN=p;var h=d.built=ST(a,d);return d.text=h.pre,U(a.display.lineMeasure,h.pre),d}M(fF,"updateExternalMeasurement");function FT(a,u,p,d){return da(a,uc(a,u),p,d)}M(FT,"measureChar");function h0(a,u){if(u>=a.display.viewFrom&&u=p.lineN&&uu)&&(E=R-L,h=E-1,u>=R&&(O="right")),h!=null){if(d=a[F+2],L==R&&p==(d.insertLeft?"left":"right")&&(O=p),p=="left"&&h==0)for(;F&&a[F-2]==a[F-3]&&a[F-1].insertLeft;)d=a[(F-=3)+2],O="left";if(p=="right"&&h==R-L)for(;F=0&&(p=a[h]).left==p.right;h--);return p}M(pF,"getUsefulRect");function mF(a,u,p,d){var h=qT(u.map,p,d),E=h.node,O=h.start,L=h.end,R=h.collapse,F;if(E.nodeType==3){for(var H=0;H<4;H++){for(;O&&Vs(u.line.text.charAt(h.coverStart+O));)--O;for(;h.coverStart+L0&&(R=d="right");var Q;a.options.lineWrapping&&(Q=E.getClientRects()).length>1?F=Q[d=="right"?Q.length-1:0]:F=E.getBoundingClientRect()}if(c&&f<9&&!O&&(!F||!F.left&&!F.right)){var $=E.parentNode.getClientRects()[0];$?F={left:$.left,right:$.left+dc(a.display),top:$.top,bottom:$.bottom}:F=dF}for(var Z=F.top-u.rect.top,le=F.bottom-u.rect.top,ge=(Z+le)/2,Te=u.view.measure.heights,De=0;De=d.text.length?(R=d.text.length,F="before"):R<=0&&(R=0,F="after"),!L)return O(F=="before"?R-1:R,F=="before");function H(le,ge,Te){var De=L[ge],qe=De.level==1;return O(Te?le-1:le,qe!=Te)}M(H,"getBidi");var Q=pr(L,R,F),$=tn,Z=H(R,Q,F=="before");return $!=null&&(Z.other=H(R,$,F!="before")),Z}M(Ro,"cursorCoords");function zT(a,u){var p=0;u=Ve(a.doc,u),a.options.lineWrapping||(p=dc(a.display)*u.ch);var d=Qe(a.doc,u.line),h=Ja(d)+mh(a.display);return{left:p,right:p,top:h,bottom:h+d.height}}M(zT,"estimateCoords");function g0(a,u,p,d,h){var E=Ae(a,u,p);return E.xRel=h,d&&(E.outside=d),E}M(g0,"PosWithInfo");function y0(a,u,p){var d=a.doc;if(p+=a.display.viewOffset,p<0)return g0(d.first,0,null,-1,-1);var h=Lo(d,p),E=d.first+d.size-1;if(h>E)return g0(d.first+d.size-1,Qe(d,E).text.length,null,1,1);u<0&&(u=0);for(var O=Qe(d,h);;){var L=vF(a,O,h,u,p),R=QI(O,L.ch+(L.xRel>0||L.outside>0?1:0));if(!R)return L;var F=R.find(1);if(F.line==h)return F;O=Qe(d,h=F.line)}}M(y0,"coordsChar");function HT(a,u,p,d){d-=v0(u);var h=u.text.length,E=xi(function(O){return da(a,p,O-1).bottom<=d},h,0);return h=xi(function(O){return da(a,p,O).top>d},E,h),{begin:E,end:h}}M(HT,"wrappedLineExtent");function QT(a,u,p,d){p||(p=uc(a,u));var h=hh(a,u,da(a,p,d),"line").top;return HT(a,u,p,h)}M(QT,"wrappedLineExtentChar");function b0(a,u,p,d){return a.bottom<=p?!1:a.top>p?!0:(d?a.left:a.right)>u}M(b0,"boxIsAfter");function vF(a,u,p,d,h){h-=Ja(u);var E=uc(a,u),O=v0(u),L=0,R=u.text.length,F=!0,H=ri(u,a.doc.direction);if(H){var Q=(a.options.lineWrapping?yF:gF)(a,u,p,E,H,d,h);F=Q.level!=1,L=F?Q.from:Q.to-1,R=F?Q.to:Q.from-1}var $=null,Z=null,le=xi(function(it){var Je=da(a,E,it);return Je.top+=O,Je.bottom+=O,b0(Je,d,h,!1)?(Je.top<=h&&Je.left<=d&&($=it,Z=Je),!0):!1},L,R),ge,Te,De=!1;if(Z){var qe=d-Z.left=Be.bottom?1:0}return le=Ml(u.text,le,1),g0(p,le,Te,De,d-ge)}M(vF,"coordsCharInner");function gF(a,u,p,d,h,E,O){var L=xi(function(Q){var $=h[Q],Z=$.level!=1;return b0(Ro(a,Ae(p,Z?$.to:$.from,Z?"before":"after"),"line",u,d),E,O,!0)},0,h.length-1),R=h[L];if(L>0){var F=R.level!=1,H=Ro(a,Ae(p,F?R.from:R.to,F?"after":"before"),"line",u,d);b0(H,E,O,!0)&&H.top>O&&(R=h[L-1])}return R}M(gF,"coordsBidiPart");function yF(a,u,p,d,h,E,O){var L=HT(a,u,d,O),R=L.begin,F=L.end;/\s/.test(u.text.charAt(F-1))&&F--;for(var H=null,Q=null,$=0;$=F||Z.to<=R)){var le=Z.level!=1,ge=da(a,d,le?Math.min(F,Z.to)-1:Math.max(R,Z.from)).right,Te=geTe)&&(H=Z,Q=Te)}}return H||(H=h[h.length-1]),H.fromF&&(H={from:H.from,to:F,level:H.level}),H}M(yF,"coordsBidiPartWrapped");var cc;function fc(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(cc==null){cc=z("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)cc.appendChild(document.createTextNode("x")),cc.appendChild(z("br"));cc.appendChild(document.createTextNode("x"))}U(a.measure,cc);var p=cc.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),B(a.measure),p||1}M(fc,"textHeight");function dc(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var u=z("span","xxxxxxxxxx"),p=z("pre",[u],"CodeMirror-line-like");U(a.measure,p);var d=u.getBoundingClientRect(),h=(d.right-d.left)/10;return h>2&&(a.cachedCharWidth=h),h||10}M(dc,"charWidth");function A0(a){for(var u=a.display,p={},d={},h=u.gutters.clientLeft,E=u.gutters.firstChild,O=0;E;E=E.nextSibling,++O){var L=a.display.gutterSpecs[O].className;p[L]=E.offsetLeft+E.clientLeft+h,d[L]=E.clientWidth}return{fixedPos:x0(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:p,gutterWidth:d,wrapperWidth:u.wrapper.clientWidth}}M(A0,"getDimensions");function x0(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}M(x0,"compensateForHScroll");function WT(a){var u=fc(a.display),p=a.options.lineWrapping,d=p&&Math.max(5,a.display.scroller.clientWidth/dc(a.display)-3);return function(h){if(zs(a.doc,h))return 0;var E=0;if(h.widgets)for(var O=0;O0&&(F=Qe(a.doc,R.line).text).length==R.ch){var H=ie(F,F.length,a.options.tabSize)-F.length;R=Ae(R.line,Math.max(0,Math.round((E-MT(a.display).left)/dc(a.display))-H))}return R}M(Gl,"posFromMouse");function zl(a,u){if(u>=a.display.viewTo||(u-=a.display.viewFrom,u<0))return null;for(var p=a.display.view,d=0;du)&&(h.updateLineNumbers=u),a.curOp.viewChanged=!0,u>=h.viewTo)Gs&&u0(a.doc,u)h.viewFrom?Qs(a):(h.viewFrom+=d,h.viewTo+=d);else if(u<=h.viewFrom&&p>=h.viewTo)Qs(a);else if(u<=h.viewFrom){var E=gh(a,p,p+d,1);E?(h.view=h.view.slice(E.index),h.viewFrom=E.lineN,h.viewTo+=d):Qs(a)}else if(p>=h.viewTo){var O=gh(a,u,u,-1);O?(h.view=h.view.slice(0,O.index),h.viewTo=O.lineN):Qs(a)}else{var L=gh(a,u,u,-1),R=gh(a,p,p+d,1);L&&R?(h.view=h.view.slice(0,L.index).concat(dh(a,L.lineN,R.lineN)).concat(h.view.slice(R.index)),h.viewTo+=d):Qs(a)}var F=h.externalMeasured;F&&(p=h.lineN&&u=d.viewTo)){var E=d.view[zl(a,u)];if(E.node!=null){var O=E.changes||(E.changes=[]);me(O,p)==-1&&O.push(p)}}}M(Hs,"regLineChange");function Qs(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}M(Qs,"resetView");function gh(a,u,p,d){var h=zl(a,u),E,O=a.display.view;if(!Gs||p==a.doc.first+a.doc.size)return{index:h,lineN:p};for(var L=a.display.viewFrom,R=0;R0){if(h==O.length-1)return null;E=L+O[h].size-u,h++}else E=L-u;u+=E,p+=E}for(;u0(a.doc,p)!=p;){if(h==(d<0?0:O.length-1))return null;p+=d*O[h-(d<0?1:0)].size,h+=d}return{index:h,lineN:p}}M(gh,"viewCuttingPoint");function bF(a,u,p){var d=a.display,h=d.view;h.length==0||u>=d.viewTo||p<=d.viewFrom?(d.view=dh(a,u,p),d.viewFrom=u):(d.viewFrom>u?d.view=dh(a,u,d.viewFrom).concat(d.view):d.viewFromp&&(d.view=d.view.slice(0,zl(a,p)))),d.viewTo=p}M(bF,"adjustView");function YT(a){for(var u=a.display.view,p=0,d=0;d=a.display.viewTo||R.to().line0?O:a.defaultCharWidth())+"px"}if(d.other){var L=p.appendChild(z("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));L.style.display="",L.style.left=d.other.left+"px",L.style.top=d.other.top+"px",L.style.height=(d.other.bottom-d.other.top)*.85+"px"}}M(E0,"drawSelectionCursor");function yh(a,u){return a.top-u.top||a.left-u.left}M(yh,"cmpCoords");function AF(a,u,p){var d=a.display,h=a.doc,E=document.createDocumentFragment(),O=MT(a.display),L=O.left,R=Math.max(d.sizerWidth,Bl(a)-d.sizer.offsetLeft)-O.right,F=h.direction=="ltr";function H(Le,Be,it,Je){Be<0&&(Be=0),Be=Math.round(Be),Je=Math.round(Je),E.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+Le+`px; - top: `+Be+"px; width: "+(it??R-Le)+`px; - height: `+(Je-Be)+"px"))}M(H,"add");function Q(Le,Be,it){var Je=Qe(h,Le),Et=Je.text.length,$t,hn;function mr(zr,ki){return vh(a,Ae(Le,zr),"div",Je,ki)}M(mr,"coords");function Ci(zr,ki,On){var sn=QT(a,Je,null,zr),Hr=ki=="ltr"==(On=="after")?"left":"right",Dr=On=="after"?sn.begin:sn.end-(/\s/.test(Je.text.charAt(sn.end-1))?2:1);return mr(Dr,Hr)[Hr]}M(Ci,"wrapX");var Si=ri(Je,h.direction);return ic(Si,Be||0,it??Et,function(zr,ki,On,sn){var Hr=On=="ltr",Dr=mr(zr,Hr?"left":"right"),Oi=mr(ki-1,Hr?"right":"left"),Dd=Be==null&&zr==0,Xl=it==null&&ki==Et,Bn=sn==0,$a=!Si||sn==Si.length-1;if(Oi.top-Dr.top<=3){var vn=(F?Dd:Xl)&&Bn,oS=(F?Xl:Dd)&&$a,Js=vn?L:(Hr?Dr:Oi).left,Cc=oS?R:(Hr?Oi:Dr).right;H(Js,Dr.top,Cc-Js,Dr.bottom)}else{var Sc,ai,Ld,aS;Hr?(Sc=F&&Dd&&Bn?L:Dr.left,ai=F?R:Ci(zr,On,"before"),Ld=F?L:Ci(ki,On,"after"),aS=F&&Xl&&$a?R:Oi.right):(Sc=F?Ci(zr,On,"before"):L,ai=!F&&Dd&&Bn?R:Dr.right,Ld=!F&&Xl&&$a?L:Oi.left,aS=F?Ci(ki,On,"after"):R),H(Sc,Dr.top,ai-Sc,Dr.bottom),Dr.bottom0?u.blinker=setInterval(function(){a.hasFocus()||pc(a),u.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}M(T0,"restartBlink");function XT(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||S0(a))}M(XT,"ensureFocus");function C0(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&pc(a))},100)}M(C0,"delayBlurEvent");function S0(a,u){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ut(a,"focus",a,u),a.state.focused=!0,re(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),m&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),T0(a))}M(S0,"onFocus");function pc(a,u){a.state.delayingBlurEvent||(a.state.focused&&(ut(a,"blur",a,u),a.state.focused=!1,G(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}M(pc,"onBlur");function bh(a){for(var u=a.display,p=u.lineDiv.offsetTop,d=Math.max(0,u.scroller.getBoundingClientRect().top),h=u.lineDiv.getBoundingClientRect().top,E=0,O=0;O.005||Z<-.005)&&(ha.display.sizerWidth){var ge=Math.ceil(H/dc(a.display));ge>a.display.maxLineLength&&(a.display.maxLineLength=ge,a.display.maxLine=L.line,a.display.maxLineChanged=!0)}}}Math.abs(E)>2&&(u.scroller.scrollTop+=E)}M(bh,"updateHeightsInViewport");function ZT(a){if(a.widgets)for(var u=0;u=O&&(E=Lo(u,Ja(Qe(u,R))-a.wrapper.clientHeight),O=R)}return{from:E,to:Math.max(O,E+1)}}M(Ah,"visibleLines");function xF(a,u){if(!Nr(a,"scrollCursorIntoView")){var p=a.display,d=p.sizer.getBoundingClientRect(),h=null;if(u.top+d.top<0?h=!0:u.bottom+d.top>(window.innerHeight||document.documentElement.clientHeight)&&(h=!1),h!=null&&!S){var E=z("div","\u200B",null,`position: absolute; - top: `+(u.top-p.viewOffset-mh(a.display))+`px; - height: `+(u.bottom-u.top+fa(a)+p.barHeight)+`px; - left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");a.display.lineSpace.appendChild(E),E.scrollIntoView(h),a.display.lineSpace.removeChild(E)}}}M(xF,"maybeScrollWindow");function wF(a,u,p,d){d==null&&(d=0);var h;!a.options.lineWrapping&&u==p&&(p=u.sticky=="before"?Ae(u.line,u.ch+1,"before"):u,u=u.ch?Ae(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var E=0;E<5;E++){var O=!1,L=Ro(a,u),R=!p||p==u?L:Ro(a,p);h={left:Math.min(L.left,R.left),top:Math.min(L.top,R.top)-d,right:Math.max(L.left,R.left),bottom:Math.max(L.bottom,R.bottom)+d};var F=k0(a,h),H=a.doc.scrollTop,Q=a.doc.scrollLeft;if(F.scrollTop!=null&&(yd(a,F.scrollTop),Math.abs(a.doc.scrollTop-H)>1&&(O=!0)),F.scrollLeft!=null&&(Hl(a,F.scrollLeft),Math.abs(a.doc.scrollLeft-Q)>1&&(O=!0)),!O)break}return h}M(wF,"scrollPosIntoView");function EF(a,u){var p=k0(a,u);p.scrollTop!=null&&yd(a,p.scrollTop),p.scrollLeft!=null&&Hl(a,p.scrollLeft)}M(EF,"scrollIntoView");function k0(a,u){var p=a.display,d=fc(a.display);u.top<0&&(u.top=0);var h=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,E=m0(a),O={};u.bottom-u.top>E&&(u.bottom=u.top+E);var L=a.doc.height+p0(p),R=u.topL-d;if(u.toph+E){var H=Math.min(u.top,(F?L:u.bottom)-E);H!=h&&(O.scrollTop=H)}var Q=a.options.fixedGutter?0:p.gutters.offsetWidth,$=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-Q,Z=Bl(a)-p.gutters.offsetWidth,le=u.right-u.left>Z;return le&&(u.right=u.left+Z),u.left<10?O.scrollLeft=0:u.left<$?O.scrollLeft=Math.max(0,u.left+Q-(le?0:10)):u.right>Z+$-3&&(O.scrollLeft=u.right+(le?0:10)-Z),O}M(k0,"calculateScrollPos");function O0(a,u){u!=null&&(xh(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}M(O0,"addToScrollTop");function mc(a){xh(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}M(mc,"ensureCursorVisible");function gd(a,u,p){(u!=null||p!=null)&&xh(a),u!=null&&(a.curOp.scrollLeft=u),p!=null&&(a.curOp.scrollTop=p)}M(gd,"scrollToCoords");function TF(a,u){xh(a),a.curOp.scrollToPos=u}M(TF,"scrollToRange");function xh(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var p=zT(a,u.from),d=zT(a,u.to);JT(a,p,d,u.margin)}}M(xh,"resolveScrollToPos");function JT(a,u,p,d){var h=k0(a,{left:Math.min(u.left,p.left),top:Math.min(u.top,p.top)-d,right:Math.max(u.right,p.right),bottom:Math.max(u.bottom,p.bottom)+d});gd(a,h.scrollLeft,h.scrollTop)}M(JT,"scrollToCoordsRange");function yd(a,u){Math.abs(a.doc.scrollTop-u)<2||(i||L0(a,{top:u}),_T(a,u,!0),i&&L0(a),Ad(a,100))}M(yd,"updateScrollTop");function _T(a,u,p){u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!p)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u))}M(_T,"setScrollTop");function Hl(a,u,p,d){u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!d)&&(a.doc.scrollLeft=u,rC(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}M(Hl,"setScrollLeft");function bd(a){var u=a.display,p=u.gutters.offsetWidth,d=Math.round(a.doc.height+p0(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:d,scrollHeight:d+fa(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:p}}M(bd,"measureForScrollbars");var hc=M(function(a,u,p){this.cm=p;var d=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=h.tabIndex=-1,a(d),a(h),rt(d,"scroll",function(){d.clientHeight&&u(d.scrollTop,"vertical")}),rt(h,"scroll",function(){h.clientWidth&&u(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");hc.prototype.update=function(a){var u=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;if(p){this.vert.style.display="block",this.vert.style.bottom=u?d+"px":"0";var h=a.viewHeight-(u?d:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=p?d+"px":"0",this.horiz.style.left=a.barLeft+"px";var E=a.viewWidth-a.barLeft-(p?d:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+E)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?d:0,bottom:u?d:0}},hc.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hc.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hc.prototype.zeroWidthHack=function(){var a=x&&!T?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},hc.prototype.enableZeroWidthBar=function(a,u,p){a.style.pointerEvents="auto";function d(){var h=a.getBoundingClientRect(),E=p=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);E!=a?a.style.pointerEvents="none":u.set(1e3,d)}M(d,"maybeDisable"),u.set(1e3,d)},hc.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var wh=M(function(){},"NullScrollbars");wh.prototype.update=function(){return{bottom:0,right:0}},wh.prototype.setScrollLeft=function(){},wh.prototype.setScrollTop=function(){},wh.prototype.clear=function(){};function vc(a,u){u||(u=bd(a));var p=a.display.barWidth,d=a.display.barHeight;$T(a,u);for(var h=0;h<4&&p!=a.display.barWidth||d!=a.display.barHeight;h++)p!=a.display.barWidth&&a.options.lineWrapping&&bh(a),$T(a,bd(a)),p=a.display.barWidth,d=a.display.barHeight}M(vc,"updateScrollbars");function $T(a,u){var p=a.display,d=p.scrollbars.update(u);p.sizer.style.paddingRight=(p.barWidth=d.right)+"px",p.sizer.style.paddingBottom=(p.barHeight=d.bottom)+"px",p.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(p.scrollbarFiller.style.display="block",p.scrollbarFiller.style.height=d.bottom+"px",p.scrollbarFiller.style.width=d.right+"px"):p.scrollbarFiller.style.display="",d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display="block",p.gutterFiller.style.height=d.bottom+"px",p.gutterFiller.style.width=u.gutterWidth+"px"):p.gutterFiller.style.display=""}M($T,"updateScrollbarsInner");var CF={native:hc,null:wh};function eC(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&G(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new CF[a.options.scrollbarStyle](function(u){a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),rt(u,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,p){p=="horizontal"?Hl(a,u):yd(a,u)},a),a.display.scrollbars.addClass&&re(a.display.wrapper,a.display.scrollbars.addClass)}M(eC,"initScrollbars");var H$=0;function Ql(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++H$,markArrays:null},tF(a.curOp)}M(Ql,"startOperation");function Wl(a){var u=a.curOp;u&&nF(u,function(p){for(var d=0;d=p.viewTo)||p.maxLineChanged&&u.options.lineWrapping,a.update=a.mustUpdate&&new N0(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}M(kF,"endOperation_R1");function OF(a){a.updatedDisplay=a.mustUpdate&&D0(a.cm,a.update)}M(OF,"endOperation_W1");function NF(a){var u=a.cm,p=u.display;a.updatedDisplay&&bh(u),a.barMeasure=bd(u),p.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=FT(u,p.maxLine,p.maxLine.text.length).left+3,u.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+fa(u)+u.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-Bl(u))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}M(NF,"endOperation_R2");function DF(a){var u=a.cm;a.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var p=+new Date+a.options.workTime,d=ud(a,u.highlightFrontier),h=[];u.iter(d.line,Math.min(u.first+u.size,a.display.viewTo+500),function(E){if(d.line>=a.display.viewFrom){var O=E.styles,L=E.text.length>a.options.maxHighlightLength?ji(u.mode,d.state):null,R=dT(a,E,d,!0);L&&(d.state=L),E.styles=R.styles;var F=E.styleClasses,H=R.classes;H?E.styleClasses=H:F&&(E.styleClasses=null);for(var Q=!O||O.length!=E.styles.length||F!=H&&(!F||!H||F.bgClass!=H.bgClass||F.textClass!=H.textClass),$=0;!Q&&$p)return Ad(a,a.options.workDelay),!0}),u.highlightFrontier=d.line,u.modeFrontier=Math.max(u.modeFrontier,d.line),h.length&&Ei(a,function(){for(var E=0;E=p.viewFrom&&u.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&YT(a)==0)return!1;nC(a)&&(Qs(a),u.dims=A0(a));var h=d.first+d.size,E=Math.max(u.visible.from-a.options.viewportMargin,d.first),O=Math.min(h,u.visible.to+a.options.viewportMargin);p.viewFromO&&p.viewTo-O<20&&(O=Math.min(h,p.viewTo)),Gs&&(E=u0(a.doc,E),O=TT(a.doc,O));var L=E!=p.viewFrom||O!=p.viewTo||p.lastWrapHeight!=u.wrapperHeight||p.lastWrapWidth!=u.wrapperWidth;bF(a,E,O),p.viewOffset=Ja(Qe(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+"px";var R=YT(a);if(!L&&R==0&&!u.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var F=MF(a);return R>4&&(p.lineDiv.style.display="none"),FF(a,p.updateLineNumbers,u.dims),R>4&&(p.lineDiv.style.display=""),p.renderedView=p.view,IF(F),B(p.cursorDiv),B(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,L&&(p.lastWrapHeight=u.wrapperHeight,p.lastWrapWidth=u.wrapperWidth,Ad(a,400)),p.updateLineNumbers=null,!0}M(D0,"updateDisplayIfNeeded");function tC(a,u){for(var p=u.viewport,d=!0;;d=!1){if(!d||!a.options.lineWrapping||u.oldDisplayWidth==Bl(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+p0(a.display)-m0(a),p.top)}),u.visible=Ah(a.display,a.doc,p),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break}else d&&(u.visible=Ah(a.display,a.doc,p));if(!D0(a,u))break;bh(a);var h=bd(a);vd(a),vc(a,h),R0(a,h),u.force=!1}u.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(u.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}M(tC,"postUpdateDisplay");function L0(a,u){var p=new N0(a,u);if(D0(a,p)){bh(a),tC(a,p);var d=bd(a);vd(a),vc(a,d),R0(a,d),p.finish()}}M(L0,"updateDisplaySimple");function FF(a,u,p){var d=a.display,h=a.options.lineNumbers,E=d.lineDiv,O=E.firstChild;function L(le){var ge=le.nextSibling;return m&&x&&a.display.currentWheelTarget==le?le.style.display="none":le.parentNode.removeChild(le),ge}M(L,"rm");for(var R=d.view,F=d.viewFrom,H=0;H-1&&(Z=!1),NT(a,Q,F,p)),Z&&(B(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(lc(a.options,F)))),O=Q.node.nextSibling}F+=Q.size}for(;O;)O=L(O)}M(FF,"patchDisplay");function P0(a){var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+"px",nn(a,"gutterChanged",a)}M(P0,"updateGutterSpace");function R0(a,u){a.display.sizer.style.minHeight=u.docHeight+"px",a.display.heightForcer.style.top=u.docHeight+"px",a.display.gutters.style.height=u.docHeight+a.display.barHeight+fa(a)+"px"}M(R0,"setDocumentHeight");function rC(a){var u=a.display,p=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){for(var d=x0(u)-u.scroller.scrollLeft+a.doc.scrollLeft,h=u.gutters.offsetWidth,E=d+"px",O=0;OL.clientWidth,F=L.scrollHeight>L.clientHeight;if(d&&R||h&&F){if(h&&x&&m){e:for(var H=u.target,Q=O.view;H!=L;H=H.parentNode)for(var $=0;$=0&&q(a,d.to())<=0)return p}return-1};var qt=M(function(a,u){this.anchor=a,this.head=u},"Range");qt.prototype.from=function(){return ct(this.anchor,this.head)},qt.prototype.to=function(){return we(this.anchor,this.head)},qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Mo(a,u,p){var d=a&&a.options.selectionsMayTouch,h=u[p];u.sort(function($,Z){return q($.from(),Z.from())}),p=me(u,h);for(var E=1;E0:R>=0){var F=ct(L.from(),O.from()),H=we(L.to(),O.to()),Q=L.empty()?O.from()==O.head:L.from()==L.head;E<=p&&--p,u.splice(--E,2,new qt(Q?H:F,Q?F:H))}}return new io(u,p)}M(Mo,"normalizeSelection");function Ys(a,u){return new io([new qt(a,u||a)],0)}M(Ys,"simpleSelection");function Ks(a){return a.text?Ae(a.from.line+a.text.length-1,pe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}M(Ks,"changeEnd");function sC(a,u){if(q(a,u.from)<0)return a;if(q(a,u.to)<=0)return Ks(u);var p=a.line+u.text.length-(u.to.line-u.from.line)-1,d=a.ch;return a.line==u.to.line&&(d+=Ks(u).ch-u.to.ch),Ae(p,d)}M(sC,"adjustForChange");function F0(a,u){for(var p=[],d=0;d1&&a.remove(L.line+1,le-1),a.insert(L.line+1,De)}nn(a,"change",a,u)}M(j0,"updateDoc");function Xs(a,u,p){function d(h,E,O){if(h.linked)for(var L=0;L1&&!a.done[a.done.length-2].ranges)return a.done.pop(),pe(a.done)}M(BF,"lastChangeEvent");function pC(a,u,p,d){var h=a.history;h.undone.length=0;var E=+new Date,O,L;if((h.lastOp==d||h.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&h.lastModTime>E-(a.cm?a.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(O=BF(h,h.lastOp==d)))L=pe(O.changes),q(u.from,u.to)==0&&q(u.from,L.to)==0?L.to=Ks(u):O.changes.push(V0(a,u));else{var R=pe(h.done);for((!R||!R.ranges)&&Th(a.sel,h.done),O={changes:[V0(a,u)],generation:h.generation},h.done.push(O);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(p),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=E,h.lastOp=h.lastSelOp=d,h.lastOrigin=h.lastSelOrigin=u.origin,L||ut(a,"historyAdded")}M(pC,"addChangeToHistory");function GF(a,u,p,d){var h=u.charAt(0);return h=="*"||h=="+"&&p.ranges.length==d.ranges.length&&p.somethingSelected()==d.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}M(GF,"selectionEventCanBeMerged");function zF(a,u,p,d){var h=a.history,E=d&&d.origin;p==h.lastSelOp||E&&h.lastSelOrigin==E&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==E||GF(a,E,pe(h.done),u))?h.done[h.done.length-1]=u:Th(u,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=E,h.lastSelOp=p,d&&d.clearRedo!==!1&&dC(h.undone)}M(zF,"addSelectionToHistory");function Th(a,u){var p=pe(u);p&&p.ranges&&p.equals(a)||u.push(a)}M(Th,"pushSelectionToHistory");function mC(a,u,p,d){var h=u["spans_"+a.id],E=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,d),function(O){O.markedSpans&&((h||(h=u["spans_"+a.id]={}))[E]=O.markedSpans),++E})}M(mC,"attachLocalSpans");function HF(a){if(!a)return null;for(var u,p=0;p-1&&(pe(L)[Q]=F[Q],delete F[Q])}}return d}M(gc,"copyHistoryArray");function U0(a,u,p,d){if(d){var h=a.anchor;if(p){var E=q(u,h)<0;E!=q(p,h)<0?(h=u,u=p):E!=q(u,p)<0&&(u=p)}return new qt(h,u)}else return new qt(p||u,u)}M(U0,"extendRange");function Ch(a,u,p,d,h){h==null&&(h=a.cm&&(a.cm.display.shift||a.extend)),kn(a,new io([U0(a.sel.primary(),u,p,h)],0),d)}M(Ch,"extendSelection");function vC(a,u,p){for(var d=[],h=a.cm&&(a.cm.display.shift||a.extend),E=0;E=u.ch:L.to>u.ch))){if(h&&(ut(R,"beforeCursorEnter"),R.explicitlyCleared))if(E.markedSpans){--O;continue}else break;if(!R.atomic)continue;if(p){var Q=R.find(d<0?1:-1),$=void 0;if((d<0?H:F)&&(Q=wC(a,Q,-d,Q&&Q.line==u.line?E:null)),Q&&Q.line==u.line&&($=q(Q,p))&&(d<0?$<0:$>0))return yc(a,Q,u,d,h)}var Z=R.find(d<0?-1:1);return(d<0?F:H)&&(Z=wC(a,Z,d,Z.line==u.line?E:null)),Z?yc(a,Z,u,d,h):null}}return u}M(yc,"skipAtomicInner");function kh(a,u,p,d,h){var E=d||1,O=yc(a,u,p,E,h)||!h&&yc(a,u,p,E,!0)||yc(a,u,p,-E,h)||!h&&yc(a,u,p,-E,!0);return O||(a.cantEdit=!0,Ae(a.first,0))}M(kh,"skipAtomic");function wC(a,u,p,d){return p<0&&u.ch==0?u.line>a.first?Ve(a,Ae(u.line-1)):null:p>0&&u.ch==(d||Qe(a,u.line)).text.length?u.line=0;--h)CC(a,{from:d[h].from,to:d[h].to,text:h?[""]:u.text,origin:u.origin});else CC(a,u)}}M(bc,"makeChange");function CC(a,u){if(!(u.text.length==1&&u.text[0]==""&&q(u.from,u.to)==0)){var p=F0(a,u);pC(a,u,p,a.cm?a.cm.curOp.id:NaN),Ed(a,u,p,s0(a,u));var d=[];Xs(a,function(h,E){!E&&me(d,h.history)==-1&&(NC(h.history,u),d.push(h.history)),Ed(h,u,null,s0(h,u))})}}M(CC,"makeChangeInner");function Oh(a,u,p){var d=a.cm&&a.cm.state.suppressEdits;if(!(d&&!p)){for(var h=a.history,E,O=a.sel,L=u=="undo"?h.done:h.undone,R=u=="undo"?h.undone:h.done,F=0;F=0;--Z){var le=$(Z);if(le)return le.v}}}}M(Oh,"makeChangeFromHistory");function SC(a,u){if(u!=0&&(a.first+=u,a.sel=new io(Me(a.sel.ranges,function(h){return new qt(Ae(h.anchor.line+u,h.anchor.ch),Ae(h.head.line+u,h.head.ch))}),a.sel.primIndex),a.cm)){oi(a.cm,a.first,a.first-u,u);for(var p=a.cm.display,d=p.viewFrom;da.lastLine())){if(u.from.lineE&&(u={from:u.from,to:Ae(E,Qe(a,E).text.length),text:[u.text[0]],origin:u.origin}),u.removed=Do(a,u.from,u.to),p||(p=F0(a,u)),a.cm?YF(a.cm,u,d):j0(a,u,d),Sh(a,p,He),a.cantEdit&&kh(a,Ae(a.firstLine(),0))&&(a.cantEdit=!1)}}M(Ed,"makeChangeSingleDoc");function YF(a,u,p){var d=a.doc,h=a.display,E=u.from,O=u.to,L=!1,R=E.line;a.options.lineWrapping||(R=Pt(Po(Qe(d,E.line))),d.iter(R,O.line+1,function(Z){if(Z==h.maxLine)return L=!0,!0})),d.sel.contains(u.from,u.to)>-1&&ql(a),j0(d,u,p,WT(a)),a.options.lineWrapping||(d.iter(R,E.line+u.text.length,function(Z){var le=fh(Z);le>h.maxLineLength&&(h.maxLine=Z,h.maxLineLength=le,h.maxLineChanged=!0,L=!1)}),L&&(a.curOp.updateMaxLine=!0)),FI(d,E.line),Ad(a,400);var F=u.text.length-(O.line-E.line)-1;u.full?oi(a):E.line==O.line&&u.text.length==1&&!uC(a.doc,u)?Hs(a,E.line,"text"):oi(a,E.line,O.line+1,F);var H=rn(a,"changes"),Q=rn(a,"change");if(Q||H){var $={from:E,to:O,text:u.text,removed:u.removed,origin:u.origin};Q&&nn(a,"change",a,$),H&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push($)}a.display.selForContextMenu=null}M(YF,"makeChangeSingleDocInEditor");function Ac(a,u,p,d,h){var E;d||(d=p),q(d,p)<0&&(E=[d,p],p=E[0],d=E[1]),typeof u=="string"&&(u=a.splitLines(u)),bc(a,{from:p,to:d,text:u,origin:h})}M(Ac,"replaceRange");function kC(a,u,p,d){p1||!(this.children[0]instanceof Cd))){var L=[];this.collapse(L),this.children=[new Cd(L)],this.children[0].parent=this}},collapse:function(a){for(var u=0;u50){for(var O=h.lines.length%25+25,L=O;L10);a.parent.maybeSpill()}},iterN:function(a,u,p){for(var d=0;da.display.maxLineLength&&(a.display.maxLine=F,a.display.maxLineLength=H,a.display.maxLineChanged=!0)}d!=null&&a&&this.collapsed&&oi(a,d,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&AC(a.doc)),a&&nn(a,"markerCleared",a,this,d,h),u&&Wl(a),this.parent&&this.parent.clear()}},Yl.prototype.find=function(a,u){a==null&&this.type=="bookmark"&&(a=1);for(var p,d,h=0;h0||O==0&&E.clearWhenEmpty!==!1)return E;if(E.replacedWith&&(E.collapsed=!0,E.widgetNode=j("span",[E.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||E.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(E.widgetNode.insertLeft=!0)),E.collapsed){if(ET(a,u.line,u,p,E)||u.line!=p.line&&ET(a,p.line,u,p,E))throw new Error("Inserting collapsed marker partially overlapping an existing one");VI()}E.addToHistory&&pC(a,{from:u,to:p,origin:"markText"},a.sel,NaN);var L=u.line,R=a.cm,F;if(a.iter(L,p.line+1,function(Q){R&&E.collapsed&&!R.options.lineWrapping&&Po(Q)==R.display.maxLine&&(F=!0),E.collapsed&&L!=u.line&&ii(Q,0),BI(Q,new sh(E,L==u.line?u.ch:null,L==p.line?p.ch:null),a.cm&&a.cm.curOp),++L}),E.collapsed&&a.iter(u.line,p.line+1,function(Q){zs(a,Q)&&ii(Q,0)}),E.clearOnEnter&&rt(E,"beforeCursorEnter",function(){return E.clear()}),E.readOnly&&(jI(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),E.collapsed&&(E.id=++XF,E.atomic=!0),R){if(F&&(R.curOp.updateMaxLine=!0),E.collapsed)oi(R,u.line,p.line+1);else if(E.className||E.startStyle||E.endStyle||E.css||E.attributes||E.title)for(var H=u.line;H<=p.line;H++)Hs(R,H,"text");E.atomic&&AC(R.doc),nn(R,"markerAdded",R,E)}return E}M(xc,"markText");var Dh=M(function(a,u){this.markers=a,this.primary=u;for(var p=0;p=0;R--)bc(this,d[R]);L?yC(this,L):this.cm&&mc(this.cm)}),undo:an(function(){Oh(this,"undo")}),redo:an(function(){Oh(this,"redo")}),undoSelection:an(function(){Oh(this,"undo",!0)}),redoSelection:an(function(){Oh(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,u=0,p=0,d=0;d=a.ch)&&u.push(h.marker.parent||h.marker)}return u},findMarks:function(a,u,p){a=Ve(this,a),u=Ve(this,u);var d=[],h=a.line;return this.iter(a.line,u.line+1,function(E){var O=E.markedSpans;if(O)for(var L=0;L=R.to||R.from==null&&h!=a.line||R.from!=null&&h==u.line&&R.from>=u.ch)&&(!p||p(R.marker))&&d.push(R.marker.parent||R.marker)}++h}),d},getAllMarks:function(){var a=[];return this.iter(function(u){var p=u.markedSpans;if(p)for(var d=0;da)return u=a,!0;a-=E,++p}),Ve(this,Ae(p,u))},indexFromPos:function(a){a=Ve(this,a);var u=a.ch;if(a.lineu&&(u=a.from),a.to!=null&&a.to-1){u.state.draggingText(a),setTimeout(function(){return u.display.input.focus()},20);return}try{var H=a.dataTransfer.getData("Text");if(H){var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),Sh(u.doc,Ys(p,p)),Q)for(var $=0;$=0;L--)Ac(a.doc,"",d[L].from,d[L].to,"+delete");mc(a)})}M(Ec,"deleteNearSelection");function z0(a,u,p){var d=Ml(a.text,u+p,p);return d<0||d>a.text.length?null:d}M(z0,"moveCharLogically");function H0(a,u,p){var d=z0(a,u.ch,p);return d==null?null:new Ae(u.line,d,p<0?"after":"before")}M(H0,"moveLogically");function Q0(a,u,p,d,h){if(a){u.doc.direction=="rtl"&&(h=-h);var E=ri(p,u.doc.direction);if(E){var O=h<0?pe(E):E[0],L=h<0==(O.level==1),R=L?"after":"before",F;if(O.level>0||u.doc.direction=="rtl"){var H=uc(u,p);F=h<0?p.text.length-1:0;var Q=da(u,H,F).top;F=xi(function($){return da(u,H,$).top==Q},h<0==(O.level==1)?O.from:O.to-1,F),R=="before"&&(F=z0(p,F,1))}else F=h<0?O.to:O.from;return new Ae(d,F,R)}}return new Ae(d,h<0?p.text.length:0,h<0?"before":"after")}M(Q0,"endOfLine");function u3(a,u,p,d){var h=ri(u,a.doc.direction);if(!h)return H0(u,p,d);p.ch>=u.text.length?(p.ch=u.text.length,p.sticky="before"):p.ch<=0&&(p.ch=0,p.sticky="after");var E=pr(h,p.ch,p.sticky),O=h[E];if(a.doc.direction=="ltr"&&O.level%2==0&&(d>0?O.to>p.ch:O.from=O.from&&$>=H.begin)){var Z=Q?"before":"after";return new Ae(p.line,$,Z)}}var le=M(function(De,qe,Le){for(var Be=M(function($t,hn){return hn?new Ae(p.line,L($t,1),"before"):new Ae(p.line,$t,"after")},"getRes");De>=0&&De0==(it.level!=1),Et=Je?Le.begin:L(Le.end,-1);if(it.from<=Et&&Et0?H.end:L(H.begin,-1);return Te!=null&&!(d>0&&Te==u.text.length)&&(ge=le(d>0?0:h.length-1,d,F(Te)),ge)?ge:null}M(u3,"moveVisually");var Mh={selectAll:EC,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),He)},killLine:function(a){return Ec(a,function(u){if(u.empty()){var p=Qe(a.doc,u.head.line).text.length;return u.head.ch==p&&u.head.line0)h=new Ae(h.line,h.ch+1),a.replaceRange(E.charAt(h.ch-1)+E.charAt(h.ch-2),Ae(h.line,h.ch-2),h,"+transpose");else if(h.line>a.doc.first){var O=Qe(a.doc,h.line-1).text;O&&(h=new Ae(h.line,1),a.replaceRange(E.charAt(0)+a.doc.lineSeparator()+O.charAt(O.length-1),Ae(h.line-1,O.length-1),h,"+transpose"))}}p.push(new qt(h,h))}a.setSelections(p)})},newlineAndIndent:function(a){return Ei(a,function(){for(var u=a.listSelections(),p=u.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),u[p].anchor,u[p].head,"+input");u=a.listSelections();for(var d=0;da&&q(u,this.pos)==0&&p==this.button};var Fh,qh;function m3(a,u){var p=+new Date;return qh&&qh.compare(p,a,u)?(Fh=qh=null,"triple"):Fh&&Fh.compare(p,a,u)?(qh=new QC(p,a,u),Fh=null,"double"):(Fh=new QC(p,a,u),qh=null,"single")}M(m3,"clickRepeat");function WC(a){var u=this,p=u.display;if(!(Nr(u,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,_a(p,a)){m||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!W0(u,a)){var d=Gl(u,a),h=td(a),E=d?m3(d,h):"single";window.focus(),h==1&&u.state.selectingText&&u.state.selectingText(a),!(d&&h3(u,h,d,E,a))&&(h==1?d?g3(u,d,E,a):Ka(a)==p.scroller&&mn(a):h==2?(d&&Ch(u.doc,d),setTimeout(function(){return p.input.focus()},20)):h==3&&(I?u.display.input.onContextMenu(a):C0(u)))}}}M(WC,"onMouseDown");function h3(a,u,p,d,h){var E="Click";return d=="double"?E="Double"+E:d=="triple"&&(E="Triple"+E),E=(u==1?"Left":u==2?"Middle":"Right")+E,kd(a,IC(E,h),h,function(O){if(typeof O=="string"&&(O=Mh[O]),!O)return!1;var L=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),L=O(a,p)!=Ge}finally{a.state.suppressEdits=!1}return L})}M(h3,"handleMappedButton");function v3(a,u,p){var d=a.getOption("configureMouse"),h=d?d(a,u,p):{};if(h.unit==null){var E=k?p.shiftKey&&p.metaKey:p.altKey;h.unit=E?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(h.extend==null||a.doc.extend)&&(h.extend=a.doc.extend||p.shiftKey),h.addNew==null&&(h.addNew=x?p.metaKey:p.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(x?p.altKey:p.ctrlKey)),h}M(v3,"configureMouse");function g3(a,u,p,d){c?setTimeout(Re(XT,a),0):a.curOp.focus=ee();var h=v3(a,p,d),E=a.doc.sel,O;a.options.dragDrop&&rd&&!a.isReadOnly()&&p=="single"&&(O=E.contains(u))>-1&&(q((O=E.ranges[O]).from(),u)<0||u.xRel>0)&&(q(O.to(),u)>0||u.xRel<0)?y3(a,d,u,h):b3(a,d,u,h)}M(g3,"leftButtonDown");function y3(a,u,p,d){var h=a.display,E=!1,O=on(a,function(F){m&&(h.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:C0(a)),Vn(h.wrapper.ownerDocument,"mouseup",O),Vn(h.wrapper.ownerDocument,"mousemove",L),Vn(h.scroller,"dragstart",R),Vn(h.scroller,"drop",O),E||(mn(F),d.addNew||Ch(a.doc,p,null,null,d.extend),m&&!w||c&&f==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),L=M(function(F){E=E||Math.abs(u.clientX-F.clientX)+Math.abs(u.clientY-F.clientY)>=10},"mouseMove"),R=M(function(){return E=!0},"dragStart");m&&(h.scroller.draggable=!0),a.state.draggingText=O,O.copy=!d.moveOnDrag,rt(h.wrapper.ownerDocument,"mouseup",O),rt(h.wrapper.ownerDocument,"mousemove",L),rt(h.scroller,"dragstart",R),rt(h.scroller,"drop",O),a.state.delayingBlurEvent=!0,setTimeout(function(){return h.input.focus()},20),h.scroller.dragDrop&&h.scroller.dragDrop()}M(y3,"leftButtonStartDrag");function YC(a,u,p){if(p=="char")return new qt(u,u);if(p=="word")return a.findWordAt(u);if(p=="line")return new qt(Ae(u.line,0),Ve(a.doc,Ae(u.line+1,0)));var d=p(a,u);return new qt(d.from,d.to)}M(YC,"rangeForUnit");function b3(a,u,p,d){c&&C0(a);var h=a.display,E=a.doc;mn(u);var O,L,R=E.sel,F=R.ranges;if(d.addNew&&!d.extend?(L=E.sel.contains(p),L>-1?O=F[L]:O=new qt(p,p)):(O=E.sel.primary(),L=E.sel.primIndex),d.unit=="rectangle")d.addNew||(O=new qt(p,p)),p=Gl(a,u,!0,!0),L=-1;else{var H=YC(a,p,d.unit);d.extend?O=U0(O,H.anchor,H.head,d.extend):O=H}d.addNew?L==-1?(L=F.length,kn(E,Mo(a,F.concat([O]),L),{scroll:!1,origin:"*mouse"})):F.length>1&&F[L].empty()&&d.unit=="char"&&!d.extend?(kn(E,Mo(a,F.slice(0,L).concat(F.slice(L+1)),0),{scroll:!1,origin:"*mouse"}),R=E.sel):B0(E,L,O,dr):(L=0,kn(E,new io([O],0),dr),R=E.sel);var Q=p;function $(Le){if(q(Q,Le)!=0)if(Q=Le,d.unit=="rectangle"){for(var Be=[],it=a.options.tabSize,Je=ie(Qe(E,p.line).text,p.ch,it),Et=ie(Qe(E,Le.line).text,Le.ch,it),$t=Math.min(Je,Et),hn=Math.max(Je,Et),mr=Math.min(p.line,Le.line),Ci=Math.min(a.lastLine(),Math.max(p.line,Le.line));mr<=Ci;mr++){var Si=Qe(E,mr).text,zr=bt(Si,$t,it);$t==hn?Be.push(new qt(Ae(mr,zr),Ae(mr,zr))):Si.length>zr&&Be.push(new qt(Ae(mr,zr),Ae(mr,bt(Si,hn,it))))}Be.length||Be.push(new qt(p,p)),kn(E,Mo(a,R.ranges.slice(0,L).concat(Be),L),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Le)}else{var ki=O,On=YC(a,Le,d.unit),sn=ki.anchor,Hr;q(On.anchor,sn)>0?(Hr=On.head,sn=ct(ki.from(),On.anchor)):(Hr=On.anchor,sn=we(ki.to(),On.head));var Dr=R.ranges.slice(0);Dr[L]=A3(a,new qt(Ve(E,sn),Hr)),kn(E,Mo(a,Dr,L),dr)}}M($,"extendTo");var Z=h.wrapper.getBoundingClientRect(),le=0;function ge(Le){var Be=++le,it=Gl(a,Le,!0,d.unit=="rectangle");if(it)if(q(it,Q)!=0){a.curOp.focus=ee(),$(it);var Je=Ah(h,E);(it.line>=Je.to||it.lineZ.bottom?20:0;Et&&setTimeout(on(a,function(){le==Be&&(h.scroller.scrollTop+=Et,ge(Le))}),50)}}M(ge,"extend");function Te(Le){a.state.selectingText=!1,le=1/0,Le&&(mn(Le),h.input.focus()),Vn(h.wrapper.ownerDocument,"mousemove",De),Vn(h.wrapper.ownerDocument,"mouseup",qe),E.history.lastSelOrigin=null}M(Te,"done");var De=on(a,function(Le){Le.buttons===0||!td(Le)?Te(Le):ge(Le)}),qe=on(a,Te);a.state.selectingText=qe,rt(h.wrapper.ownerDocument,"mousemove",De),rt(h.wrapper.ownerDocument,"mouseup",qe)}M(b3,"leftButtonSelect");function A3(a,u){var p=u.anchor,d=u.head,h=Qe(a.doc,p.line);if(q(p,d)==0&&p.sticky==d.sticky)return u;var E=ri(h);if(!E)return u;var O=pr(E,p.ch,p.sticky),L=E[O];if(L.from!=p.ch&&L.to!=p.ch)return u;var R=O+(L.from==p.ch==(L.level!=1)?0:1);if(R==0||R==E.length)return u;var F;if(d.line!=p.line)F=(d.line-p.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var H=pr(E,d.ch,d.sticky),Q=H-O||(d.ch-p.ch)*(L.level==1?-1:1);H==R-1||H==R?F=Q<0:F=Q>0}var $=E[R+(F?-1:0)],Z=F==($.level==1),le=Z?$.from:$.to,ge=Z?"after":"before";return p.ch==le&&p.sticky==ge?u:new qt(new Ae(p.line,le,ge),d)}M(A3,"bidiSimplify");function KC(a,u,p,d){var h,E;if(u.touches)h=u.touches[0].clientX,E=u.touches[0].clientY;else try{h=u.clientX,E=u.clientY}catch{return!1}if(h>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&mn(u);var O=a.display,L=O.lineDiv.getBoundingClientRect();if(E>L.bottom||!rn(a,p))return wi(u);E-=L.top-O.viewOffset;for(var R=0;R=h){var H=Lo(a.doc,E),Q=a.display.gutterSpecs[R];return ut(a,p,a,H,Q.className,u),wi(u)}}}M(KC,"gutterEvent");function W0(a,u){return KC(a,u,"gutterClick",!0)}M(W0,"clickInGutter");function XC(a,u){_a(a.display,u)||x3(a,u)||Nr(a,u,"contextmenu")||I||a.display.input.onContextMenu(u)}M(XC,"onContextMenu");function x3(a,u){return rn(a,"gutterContextMenu")?KC(a,u,"gutterContextMenu",!1):!1}M(x3,"contextMenuInGutter");function ZC(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hd(a)}M(ZC,"themeChanged");var Od={toString:function(){return"CodeMirror.Init"}},w3={},Y0={};function E3(a){var u=a.optionHandlers;function p(d,h,E,O){a.defaults[d]=h,E&&(u[d]=O?function(L,R,F){F!=Od&&E(L,R,F)}:E)}M(p,"option"),a.defineOption=p,a.Init=Od,p("value","",function(d,h){return d.setValue(h)},!0),p("mode",null,function(d,h){d.doc.modeOption=h,q0(d)},!0),p("indentUnit",2,q0,!0),p("indentWithTabs",!1),p("smartIndent",!0),p("tabSize",4,function(d){wd(d),hd(d),oi(d)},!0),p("lineSeparator",null,function(d,h){if(d.doc.lineSep=h,!!h){var E=[],O=d.doc.first;d.doc.iter(function(R){for(var F=0;;){var H=R.text.indexOf(h,F);if(H==-1)break;F=H+h.length,E.push(Ae(O,H))}O++});for(var L=E.length-1;L>=0;L--)Ac(d.doc,h,E[L],Ae(E[L].line,E[L].ch+h.length))}}),p("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(d,h,E){d.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),E!=Od&&d.refresh()}),p("specialCharPlaceholder",ZI,function(d){return d.refresh()},!0),p("electricChars",!0),p("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),p("spellcheck",!1,function(d,h){return d.getInputField().spellcheck=h},!0),p("autocorrect",!1,function(d,h){return d.getInputField().autocorrect=h},!0),p("autocapitalize",!1,function(d,h){return d.getInputField().autocapitalize=h},!0),p("rtlMoveVisually",!P),p("wholeLineUpdateBefore",!0),p("theme","default",function(d){ZC(d),xd(d)},!0),p("keyMap","default",function(d,h,E){var O=Rh(h),L=E!=Od&&Rh(E);L&&L.detach&&L.detach(d,O),O.attach&&O.attach(d,L||null)}),p("extraKeys",null),p("configureMouse",null),p("lineWrapping",!1,C3,!0),p("gutters",[],function(d,h){d.display.gutterSpecs=M0(h,d.options.lineNumbers),xd(d)},!0),p("fixedGutter",!0,function(d,h){d.display.gutters.style.left=h?x0(d.display)+"px":"0",d.refresh()},!0),p("coverGutterNextToScrollbar",!1,function(d){return vc(d)},!0),p("scrollbarStyle","native",function(d){eC(d),vc(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),p("lineNumbers",!1,function(d,h){d.display.gutterSpecs=M0(d.options.gutters,h),xd(d)},!0),p("firstLineNumber",1,xd,!0),p("lineNumberFormatter",function(d){return d},xd,!0),p("showCursorWhenSelecting",!1,vd,!0),p("resetSelectionOnContextMenu",!0),p("lineWiseCopyCut",!0),p("pasteLinesPerSelection",!0),p("selectionsMayTouch",!1),p("readOnly",!1,function(d,h){h=="nocursor"&&(pc(d),d.display.input.blur()),d.display.input.readOnlyChanged(h)}),p("screenReaderLabel",null,function(d,h){h=h===""?null:h,d.display.input.screenReaderLabelChanged(h)}),p("disableInput",!1,function(d,h){h||d.display.input.reset()},!0),p("dragDrop",!0,T3),p("allowDropFileTypes",null),p("cursorBlinkRate",530),p("cursorScrollMargin",0),p("cursorHeight",1,vd,!0),p("singleCursorHeightPerLine",!0,vd,!0),p("workTime",100),p("workDelay",100),p("flattenSpans",!0,wd,!0),p("addModeClass",!1,wd,!0),p("pollInterval",100),p("undoDepth",200,function(d,h){return d.doc.history.undoDepth=h}),p("historyEventDelay",1250),p("viewportMargin",10,function(d){return d.refresh()},!0),p("maxHighlightLength",1e4,wd,!0),p("moveInputWithCursor",!0,function(d,h){h||d.display.input.resetPosition()}),p("tabindex",null,function(d,h){return d.display.input.getField().tabIndex=h||""}),p("autofocus",null),p("direction","ltr",function(d,h){return d.doc.setDirection(h)},!0),p("phrases",null)}M(E3,"defineOptions");function T3(a,u,p){var d=p&&p!=Od;if(!u!=!d){var h=a.display.dragFunctions,E=u?rt:Vn;E(a.display.scroller,"dragstart",h.start),E(a.display.scroller,"dragenter",h.enter),E(a.display.scroller,"dragover",h.over),E(a.display.scroller,"dragleave",h.leave),E(a.display.scroller,"drop",h.drop)}}M(T3,"dragDropChanged");function C3(a){a.options.lineWrapping?(re(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(G(a.display.wrapper,"CodeMirror-wrap"),f0(a)),w0(a),oi(a),hd(a),setTimeout(function(){return vc(a)},100)}M(C3,"wrappingChanged");function or(a,u){var p=this;if(!(this instanceof or))return new or(a,u);this.options=u=u?Se(u):{},Se(w3,u,!1);var d=u.value;typeof d=="string"?d=new Ti(d,u.mode,null,u.lineSeparator,u.direction):u.mode&&(d.modeOption=u.mode),this.doc=d;var h=new or.inputStyles[u.inputStyle](this),E=this.display=new qF(a,d,h,u);E.wrapper.CodeMirror=this,ZC(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),eC(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ye,keySeq:null,specialChars:null},u.autofocus&&!C&&E.input.focus(),c&&f<11&&setTimeout(function(){return p.display.input.reset(!0)},20),S3(this),i3(),Ql(this),this.curOp.forceUpdate=!0,cC(this,d),u.autofocus&&!C||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&S0(p)},20):pc(this);for(var O in Y0)Y0.hasOwnProperty(O)&&Y0[O](this,u[O],Od);nC(this),u.finishInit&&u.finishInit(this);for(var L=0;L20*20}M(O,"farAway"),rt(u.scroller,"touchstart",function(R){if(!Nr(a,R)&&!E(R)&&!W0(a,R)){u.input.ensurePolled(),clearTimeout(p);var F=+new Date;u.activeTouch={start:F,moved:!1,prev:F-d.end<=300?d:null},R.touches.length==1&&(u.activeTouch.left=R.touches[0].pageX,u.activeTouch.top=R.touches[0].pageY)}}),rt(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),rt(u.scroller,"touchend",function(R){var F=u.activeTouch;if(F&&!_a(u,R)&&F.left!=null&&!F.moved&&new Date-F.start<300){var H=a.coordsChar(u.activeTouch,"page"),Q;!F.prev||O(F,F.prev)?Q=new qt(H,H):!F.prev.prev||O(F,F.prev.prev)?Q=a.findWordAt(H):Q=new qt(Ae(H.line,0),Ve(a.doc,Ae(H.line+1,0))),a.setSelection(Q.anchor,Q.head),a.focus(),mn(R)}h()}),rt(u.scroller,"touchcancel",h),rt(u.scroller,"scroll",function(){u.scroller.clientHeight&&(yd(a,u.scroller.scrollTop),Hl(a,u.scroller.scrollLeft,!0),ut(a,"scroll",a))}),rt(u.scroller,"mousewheel",function(R){return aC(a,R)}),rt(u.scroller,"DOMMouseScroll",function(R){return aC(a,R)}),rt(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(R){Nr(a,R)||Us(R)},over:function(R){Nr(a,R)||(r3(a,R),Us(R))},start:function(R){return t3(a,R)},drop:on(a,e3),leave:function(R){Nr(a,R)||PC(a)}};var L=u.input.getField();rt(L,"keyup",function(R){return zC.call(a,R)}),rt(L,"keydown",on(a,GC)),rt(L,"keypress",on(a,HC)),rt(L,"focus",function(R){return S0(a,R)}),rt(L,"blur",function(R){return pc(a,R)})}M(S3,"registerEventHandlers");var JC=[];or.defineInitHook=function(a){return JC.push(a)};function Nd(a,u,p,d){var h=a.doc,E;p==null&&(p="add"),p=="smart"&&(h.mode.indent?E=ud(a,u).state:p="prev");var O=a.options.tabSize,L=Qe(h,u),R=ie(L.text,null,O);L.stateAfter&&(L.stateAfter=null);var F=L.text.match(/^\s*/)[0],H;if(!d&&!/\S/.test(L.text))H=0,p="not";else if(p=="smart"&&(H=h.mode.indent(E,L.text.slice(F.length),L.text),H==Ge||H>150)){if(!d)return;p="prev"}p=="prev"?u>h.first?H=ie(Qe(h,u-1).text,null,O):H=0:p=="add"?H=R+a.options.indentUnit:p=="subtract"?H=R-a.options.indentUnit:typeof p=="number"&&(H=R+p),H=Math.max(0,H);var Q="",$=0;if(a.options.indentWithTabs)for(var Z=Math.floor(H/O);Z;--Z)$+=O,Q+=" ";if($O,R=od(u),F=null;if(L&&d.ranges.length>1)if(pa&&pa.text.join(` -`)==u){if(d.ranges.length%pa.text.length==0){F=[];for(var H=0;H=0;$--){var Z=d.ranges[$],le=Z.from(),ge=Z.to();Z.empty()&&(p&&p>0?le=Ae(le.line,le.ch-p):a.state.overwrite&&!L?ge=Ae(ge.line,Math.min(Qe(E,ge.line).text.length,ge.ch+pe(R).length)):L&&pa&&pa.lineWise&&pa.text.join(` -`)==R.join(` -`)&&(le=ge=Ae(le.line,0)));var Te={from:le,to:ge,text:F?F[$%F.length]:R,origin:h||(L?"paste":a.state.cutIncoming>O?"cut":"+input")};bc(a.doc,Te),nn(a,"inputRead",a,Te)}u&&!L&&$C(a,u),mc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Q),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}M(K0,"applyTextInput");function _C(a,u){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ei(u,function(){return K0(u,p,0,null,"paste")}),!0}M(_C,"handlePaste");function $C(a,u){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,d=p.ranges.length-1;d>=0;d--){var h=p.ranges[d];if(!(h.head.ch>100||d&&p.ranges[d-1].head.line==h.head.line)){var E=a.getModeAt(h.head),O=!1;if(E.electricChars){for(var L=0;L-1){O=Nd(a,h.head.line,"smart");break}}else E.electricInput&&E.electricInput.test(Qe(a.doc,h.head.line).text.slice(0,h.head.ch))&&(O=Nd(a,h.head.line,"smart"));O&&nn(a,"electricInput",a,h.head.line)}}}M($C,"triggerElectric");function eS(a){for(var u=[],p=[],d=0;dE&&(Nd(this,L.head.line,d,!0),E=L.head.line,O==this.doc.sel.primIndex&&mc(this));else{var R=L.from(),F=L.to(),H=Math.max(E,R.line);E=Math.min(this.lastLine(),F.line-(F.ch?0:1))+1;for(var Q=H;Q0&&B0(this.doc,O,new qt(R,$[O].to()),He)}}}),getTokenAt:function(d,h){return hT(this,d,h)},getLineTokens:function(d,h){return hT(this,Ae(d),h,!0)},getTokenTypeAt:function(d){d=Ve(this.doc,d);var h=pT(this,Qe(this.doc,d.line)),E=0,O=(h.length-1)/2,L=d.ch,R;if(L==0)R=h[2];else for(;;){var F=E+O>>1;if((F?h[F*2-1]:0)>=L)O=F;else if(h[F*2+1]R&&(d=R,O=!0),L=Qe(this.doc,d)}else L=d;return hh(this,L,{top:0,left:0},h||"page",E||O).top+(O?this.doc.height-Ja(L):0)},defaultTextHeight:function(){return fc(this.display)},defaultCharWidth:function(){return dc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,h,E,O,L){var R=this.display;d=Ro(this,Ve(this.doc,d));var F=d.bottom,H=d.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),R.sizer.appendChild(h),O=="over")F=d.top;else if(O=="above"||O=="near"){var Q=Math.max(R.wrapper.clientHeight,this.doc.height),$=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(O=="above"||d.bottom+h.offsetHeight>Q)&&d.top>h.offsetHeight?F=d.top-h.offsetHeight:d.bottom+h.offsetHeight<=Q&&(F=d.bottom),H+h.offsetWidth>$&&(H=$-h.offsetWidth)}h.style.top=F+"px",h.style.left=h.style.right="",L=="right"?(H=R.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(L=="left"?H=0:L=="middle"&&(H=(R.sizer.clientWidth-h.offsetWidth)/2),h.style.left=H+"px"),E&&EF(this,{left:H,top:F,right:H+h.offsetWidth,bottom:F+h.offsetHeight})},triggerOnKeyDown:Un(GC),triggerOnKeyPress:Un(HC),triggerOnKeyUp:zC,triggerOnMouseDown:Un(WC),execCommand:function(d){if(Mh.hasOwnProperty(d))return Mh[d].call(null,this)},triggerElectric:Un(function(d){$C(this,d)}),findPosH:function(d,h,E,O){var L=1;h<0&&(L=-1,h=-h);for(var R=Ve(this.doc,d),F=0;F0&&H(E.charAt(O-1));)--O;for(;L.5||this.options.lineWrapping)&&w0(this),ut(this,"refresh",this)}),swapDoc:Un(function(d){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),cC(this,d),hd(this),this.display.input.reset(),gd(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,nn(this,"swapDoc",this,h),h}),phrase:function(d){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,d)?h[d]:d},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ko(a),a.registerHelper=function(d,h,E){p.hasOwnProperty(d)||(p[d]=a[d]={_global:[]}),p[d][h]=E},a.registerGlobalHelper=function(d,h,E,O){a.registerHelper(d,h,O),p[d]._global.push({pred:E,val:O})}}M(k3,"addEditorMethods");function X0(a,u,p,d,h){var E=u,O=p,L=Qe(a,u.line),R=h&&a.direction=="rtl"?-p:p;function F(){var qe=u.line+R;return qe=a.first+a.size?!1:(u=new Ae(qe,u.ch,u.sticky),L=Qe(a,qe))}M(F,"findNextLine");function H(qe){var Le;if(d=="codepoint"){var Be=L.text.charCodeAt(u.ch+(p>0?0:-1));if(isNaN(Be))Le=null;else{var it=p>0?Be>=55296&&Be<56320:Be>=56320&&Be<57343;Le=new Ae(u.line,Math.max(0,Math.min(L.text.length,u.ch+p*(it?2:1))),-p)}}else h?Le=u3(a.cm,L,u,p):Le=H0(L,u,p);if(Le==null)if(!qe&&F())u=Q0(h,a.cm,L,u.line,R);else return!1;else u=Le;return!0}if(M(H,"moveOnce"),d=="char"||d=="codepoint")H();else if(d=="column")H(!0);else if(d=="word"||d=="group")for(var Q=null,$=d=="group",Z=a.cm&&a.cm.getHelper(u,"wordChars"),le=!0;!(p<0&&!H(!le));le=!1){var ge=L.text.charAt(u.ch)||` -`,Te=ua(ge,Z)?"w":$&&ge==` -`?"n":!$||/\s/.test(ge)?null:"p";if($&&!le&&!Te&&(Te="s"),Q&&Q!=Te){p<0&&(p=1,H(),u.sticky="after");break}if(Te&&(Q=Te),p>0&&!H(!le))break}var De=kh(a,u,E,O,!0);return W(E,De)&&(De.hitSide=!0),De}M(X0,"findPosH");function nS(a,u,p,d){var h=a.doc,E=u.left,O;if(d=="page"){var L=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),R=Math.max(L-.5*fc(a.display),3);O=(p>0?u.bottom:u.top)+p*R}else d=="line"&&(O=p>0?u.bottom+3:u.top-3);for(var F;F=y0(a,E,O),!!F.outside;){if(p<0?O<=0:O>=h.height){F.hitSide=!0;break}O+=p*5}return F}M(nS,"findPosV");var Yt=M(function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");Yt.prototype.init=function(a){var u=this,p=this,d=p.cm,h=p.div=a.lineDiv;h.contentEditable=!0,tS(h,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function E(L){for(var R=L.target;R;R=R.parentNode){if(R==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}M(E,"belongsToInput"),rt(h,"paste",function(L){!E(L)||Nr(d,L)||_C(L,d)||f<=11&&setTimeout(on(d,function(){return u.updateFromDOM()}),20)}),rt(h,"compositionstart",function(L){u.composing={data:L.data,done:!1}}),rt(h,"compositionupdate",function(L){u.composing||(u.composing={data:L.data,done:!1})}),rt(h,"compositionend",function(L){u.composing&&(L.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),rt(h,"touchstart",function(){return p.forceCompositionEnd()}),rt(h,"input",function(){u.composing||u.readFromDOMSoon()});function O(L){if(!(!E(L)||Nr(d,L))){if(d.somethingSelected())jh({lineWise:!1,text:d.getSelections()}),L.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var R=eS(d);jh({lineWise:!0,text:R.text}),L.type=="cut"&&d.operation(function(){d.setSelections(R.ranges,0,He),d.replaceSelection("",null,"cut")})}else return;if(L.clipboardData){L.clipboardData.clearData();var F=pa.text.join(` -`);if(L.clipboardData.setData("Text",F),L.clipboardData.getData("Text")==F){L.preventDefault();return}}var H=rS(),Q=H.firstChild;d.display.lineSpace.insertBefore(H,d.display.lineSpace.firstChild),Q.value=pa.text.join(` -`);var $=ee();xe(Q),setTimeout(function(){d.display.lineSpace.removeChild(H),$.focus(),$==h&&p.showPrimarySelection()},50)}}M(O,"onCopyCut"),rt(h,"copy",O),rt(h,"cut",O)},Yt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Yt.prototype.prepareSelection=function(){var a=KT(this.cm,!1);return a.focus=ee()==this.div,a},Yt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Yt.prototype.showPrimarySelection=function(){var a=this.getSelection(),u=this.cm,p=u.doc.sel.primary(),d=p.from(),h=p.to();if(u.display.viewTo==u.display.viewFrom||d.line>=u.display.viewTo||h.line=u.display.viewFrom&&iS(u,d)||{node:L[0].measure.map[2],offset:0},F=h.linea.firstLine()&&(d=Ae(d.line-1,Qe(a.doc,d.line-1).length)),h.ch==Qe(a.doc,h.line).text.length&&h.lineu.viewTo-1)return!1;var E,O,L;d.line==u.viewFrom||(E=zl(a,d.line))==0?(O=Pt(u.view[0].line),L=u.view[0].node):(O=Pt(u.view[E].line),L=u.view[E-1].node.nextSibling);var R=zl(a,h.line),F,H;if(R==u.view.length-1?(F=u.viewTo-1,H=u.lineDiv.lastChild):(F=Pt(u.view[R+1].line)-1,H=u.view[R+1].node.previousSibling),!L)return!1;for(var Q=a.doc.splitLines(N3(a,L,H,O,F)),$=Do(a.doc,Ae(O,0),Ae(F,Qe(a.doc,F).text.length));Q.length>1&&$.length>1;)if(pe(Q)==pe($))Q.pop(),$.pop(),F--;else if(Q[0]==$[0])Q.shift(),$.shift(),O++;else break;for(var Z=0,le=0,ge=Q[0],Te=$[0],De=Math.min(ge.length,Te.length);Zd.ch&&qe.charCodeAt(qe.length-le-1)==Le.charCodeAt(Le.length-le-1);)Z--,le++;Q[Q.length-1]=qe.slice(0,qe.length-le).replace(/^\u200b+/,""),Q[0]=Q[0].slice(Z).replace(/\u200b+$/,"");var it=Ae(O,Z),Je=Ae(F,$.length?pe($).length-le:0);if(Q.length>1||Q[0]||q(it,Je))return Ac(a.doc,Q,it,Je,"+input"),!0},Yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Yt.prototype.reset=function(){this.forceCompositionEnd()},Yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Yt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Yt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ei(this.cm,function(){return oi(a.cm)})},Yt.prototype.setUneditable=function(a){a.contentEditable="false"},Yt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||on(this.cm,K0)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Yt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Yt.prototype.onContextMenu=function(){},Yt.prototype.resetPosition=function(){},Yt.prototype.needsContentAttribute=!0;function iS(a,u){var p=h0(a,u.line);if(!p||p.hidden)return null;var d=Qe(a.doc,u.line),h=IT(p,d,u.line),E=ri(d,a.doc.direction),O="left";if(E){var L=pr(E,u.ch);O=L%2?"right":"left"}var R=qT(h.map,u.ch,O);return R.offset=R.collapse=="right"?R.end:R.start,R}M(iS,"posToDOM");function O3(a){for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}M(O3,"isInGutter");function Tc(a,u){return u&&(a.bad=!0),a}M(Tc,"badPos");function N3(a,u,p,d,h){var E="",O=!1,L=a.doc.lineSeparator(),R=!1;function F(Z){return function(le){return le.id==Z}}M(F,"recognizeMarker");function H(){O&&(E+=L,R&&(E+=L),O=R=!1)}M(H,"close");function Q(Z){Z&&(H(),E+=Z)}M(Q,"addText");function $(Z){if(Z.nodeType==1){var le=Z.getAttribute("cm-text");if(le){Q(le);return}var ge=Z.getAttribute("cm-marker"),Te;if(ge){var De=a.findMarks(Ae(d,0),Ae(h+1,0),F(+ge));De.length&&(Te=De[0].find(0))&&Q(Do(a.doc,Te.from,Te.to).join(L));return}if(Z.getAttribute("contenteditable")=="false")return;var qe=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;qe&&H();for(var Le=0;Le=9&&u.hasSelection&&(u.hasSelection=null),p.poll()}),rt(h,"paste",function(O){Nr(d,O)||_C(O,d)||(d.state.pasteIncoming=+new Date,p.fastPoll())});function E(O){if(!Nr(d,O)){if(d.somethingSelected())jh({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var L=eS(d);jh({lineWise:!0,text:L.text}),O.type=="cut"?d.setSelections(L.ranges,null,He):(p.prevInput="",h.value=L.text.join(` -`),xe(h))}else return;O.type=="cut"&&(d.state.cutIncoming=+new Date)}}M(E,"prepareCopyCut"),rt(h,"cut",E),rt(h,"copy",E),rt(a.scroller,"paste",function(O){if(!(_a(a,O)||Nr(d,O))){if(!h.dispatchEvent){d.state.pasteIncoming=+new Date,p.focus();return}var L=new Event("paste");L.clipboardData=O.clipboardData,h.dispatchEvent(L)}}),rt(a.lineSpace,"selectstart",function(O){_a(a,O)||mn(O)}),rt(h,"compositionstart",function(){var O=d.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:O,range:d.markText(O,d.getCursor("to"),{className:"CodeMirror-composing"})}}),rt(h,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},qr.prototype.createField=function(a){this.wrapper=rS(),this.textarea=this.wrapper.firstChild},qr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},qr.prototype.prepareSelection=function(){var a=this.cm,u=a.display,p=a.doc,d=KT(a);if(a.options.moveInputWithCursor){var h=Ro(a,p.sel.primary().head,"div"),E=u.wrapper.getBoundingClientRect(),O=u.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,h.top+O.top-E.top)),d.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,h.left+O.left-E.left))}return d},qr.prototype.showSelection=function(a){var u=this.cm,p=u.display;U(p.cursorDiv,a.cursors),U(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},qr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput="";var p=u.getSelection();this.textarea.value=p,u.state.focused&&xe(this.textarea),c&&f>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",c&&f>=9&&(this.hasSelection=null))}},qr.prototype.getField=function(){return this.textarea},qr.prototype.supportsTouch=function(){return!1},qr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||ee()!=this.textarea))try{this.textarea.focus()}catch{}},qr.prototype.blur=function(){this.textarea.blur()},qr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qr.prototype.receivedFocus=function(){this.slowPoll()},qr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},qr.prototype.fastPoll=function(){var a=!1,u=this;u.pollingFast=!0;function p(){var d=u.poll();!d&&!a?(a=!0,u.polling.set(60,p)):(u.pollingFast=!1,u.slowPoll())}M(p,"p"),u.polling.set(20,p)},qr.prototype.poll=function(){var a=this,u=this.cm,p=this.textarea,d=this.prevInput;if(this.contextMenuPending||!u.state.focused||oh(p)&&!d&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var h=p.value;if(h==d&&!u.somethingSelected())return!1;if(c&&f>=9&&this.hasSelection===h||x&&/[\uf700-\uf7ff]/.test(h))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var E=h.charCodeAt(0);if(E==8203&&!d&&(d="\u200B"),E==8666)return this.reset(),this.cm.execCommand("undo")}for(var O=0,L=Math.min(d.length,h.length);O1e3||h.indexOf(` -`)>-1?p.value=a.prevInput="":a.prevInput=h,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qr.prototype.onKeyPress=function(){c&&f>=9&&(this.hasSelection=null),this.fastPoll()},qr.prototype.onContextMenu=function(a){var u=this,p=u.cm,d=p.display,h=u.textarea;u.contextMenuPending&&u.contextMenuPending();var E=Gl(p,a),O=d.scroller.scrollTop;if(!E||y)return;var L=p.options.resetSelectionOnContextMenu;L&&p.doc.sel.contains(E)==-1&&on(p,kn)(p.doc,Ys(E),He);var R=h.style.cssText,F=u.wrapper.style.cssText,H=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(a.clientY-H.top-5)+"px; left: "+(a.clientX-H.left-5)+`px; - z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;m&&(Q=window.scrollY),d.input.focus(),m&&window.scrollTo(null,Q),d.input.reset(),p.somethingSelected()||(h.value=u.prevInput=" "),u.contextMenuPending=Z,d.selForContextMenu=p.doc.sel,clearTimeout(d.detectingSelectAll);function $(){if(h.selectionStart!=null){var ge=p.somethingSelected(),Te="\u200B"+(ge?h.value:"");h.value="\u21DA",h.value=Te,u.prevInput=ge?"":"\u200B",h.selectionStart=1,h.selectionEnd=Te.length,d.selForContextMenu=p.doc.sel}}M($,"prepareSelectAllHack");function Z(){if(u.contextMenuPending==Z&&(u.contextMenuPending=!1,u.wrapper.style.cssText=F,h.style.cssText=R,c&&f<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=O),h.selectionStart!=null)){(!c||c&&f<9)&&$();var ge=0,Te=M(function(){d.selForContextMenu==p.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&u.prevInput=="\u200B"?on(p,EC)(p):ge++<10?d.detectingSelectAll=setTimeout(Te,500):(d.selForContextMenu=null,d.input.reset())},"poll");d.detectingSelectAll=setTimeout(Te,200)}}if(M(Z,"rehide"),c&&f>=9&&$(),I){Us(a);var le=M(function(){Vn(window,"mouseup",le),setTimeout(Z,20)},"mouseup");rt(window,"mouseup",le)}else setTimeout(Z,50)},qr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},qr.prototype.setUneditable=function(){},qr.prototype.needsContentAttribute=!1;function L3(a,u){if(u=u?Se(u):{},u.value=a.value,!u.tabindex&&a.tabIndex&&(u.tabindex=a.tabIndex),!u.placeholder&&a.placeholder&&(u.placeholder=a.placeholder),u.autofocus==null){var p=ee();u.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function d(){a.value=L.getValue()}M(d,"save");var h;if(a.form&&(rt(a.form,"submit",d),!u.leaveSubmitMethodAlone)){var E=a.form;h=E.submit;try{var O=E.submit=function(){d(),E.submit=h,E.submit(),E.submit=O}}catch{}}u.finishInit=function(R){R.save=d,R.getTextArea=function(){return a},R.toTextArea=function(){R.toTextArea=isNaN,d(),a.parentNode.removeChild(R.getWrapperElement()),a.style.display="",a.form&&(Vn(a.form,"submit",d),!u.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=h))}},a.style.display="none";var L=or(function(R){return a.parentNode.insertBefore(R,a.nextSibling)},u);return L}M(L3,"fromTextArea");function P3(a){a.off=Vn,a.on=rt,a.wheelEventPixels=jF,a.Doc=Ti,a.splitLines=od,a.countColumn=ie,a.findColumn=bt,a.isWordChar=Or,a.Pass=Ge,a.signal=ut,a.Line=fd,a.changeEnd=Ks,a.scrollbarModel=CF,a.Pos=Ae,a.cmpPos=q,a.modes=ro,a.mimeModes=qi,a.resolveMode=Vl,a.getMode=Ul,a.modeExtensions=No,a.extendMode=no,a.copyState=ji,a.startState=ac,a.innerMode=oc,a.commands=Mh,a.keyMap=Zs,a.keyName=FC,a.isModifierKey=MC,a.lookupKey=wc,a.normalizeKeyMap=l3,a.StringStream=xr,a.SharedTextMarker=Dh,a.TextMarker=Yl,a.LineWidget=Nh,a.e_preventDefault=mn,a.e_stopPropagation=jl,a.e_stop=Us,a.addClass=re,a.contains=K,a.rmClass=G,a.keyNames=Kl}M(P3,"addLegacyProps"),E3(or),k3(or);var K$="iter insert remove copy getEditor constructor".split(" ");for(var Z0 in Ti.prototype)Ti.prototype.hasOwnProperty(Z0)&&me(K$,Z0)<0&&(or.prototype[Z0]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Z0]));return ko(Ti),or.inputStyles={textarea:qr,contenteditable:Yt},or.defineMode=function(a){!or.defaults.mode&&a!="null"&&(or.defaults.mode=a),sd.apply(this,arguments)},or.defineMIME=ca,or.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),or.defineMIME("text/plain","null"),or.defineExtension=function(a,u){or.prototype[a]=u},or.defineDocExtension=function(a,u){Ti.prototype[a]=u},or.fromTextArea=L3,P3(or),or.version="5.65.3",or})}(PZ)),PZ.exports}var mxe,M,hxe,PZ,RZ,ir=at(()=>{mxe=Object.defineProperty,M=(e,t)=>mxe(e,"name",{value:t,configurable:!0}),hxe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};M(_t,"getDefaultExportFromCjs");PZ={exports:{}};M(Kt,"requireCodemirror")});var FZ={};Ui(FZ,{C:()=>tt,c:()=>yxe});function MZ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vxe,gxe,IZ,tt,yxe,ia=at(()=>{ir();vxe=Object.defineProperty,gxe=(e,t)=>vxe(e,"name",{value:t,configurable:!0});gxe(MZ,"_mergeNamespaces");IZ=Kt(),tt=_t(IZ),yxe=MZ({__proto__:null,default:tt},[IZ])});var VZ={};Ui(VZ,{s:()=>wxe});function qZ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var bxe,eo,Axe,jZ,xxe,wxe,OM=at(()=>{ir();bxe=Object.defineProperty,eo=(e,t)=>bxe(e,"name",{value:t,configurable:!0});eo(qZ,"_mergeNamespaces");Axe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){var n="CodeMirror-hint",i="CodeMirror-hint-active";r.showHint=function(A,b,C){if(!b)return A.showHint(C);C&&C.async&&(b.async=!0);var x={hint:b};if(C)for(var k in C)x[k]=C[k];return A.showHint(x)},r.defineExtension("showHint",function(A){A=c(this,this.getCursor("start"),A);var b=this.listSelections();if(!(b.length>1)){if(this.somethingSelected()){if(!A.hint.supportsSelection)return;for(var C=0;CD.clientHeight+1:!1,He;setTimeout(function(){He=x.getScrollInfo()});var dr=Oe.bottom-me;if(dr>0){var Ue=Oe.bottom-Oe.top,bt=j.top-(j.bottom-Oe.top);if(bt-Ue>0)D.style.top=(K=j.top-Ue-se)+"px",ee=!1;else if(Ue>me){D.style.height=me-5+"px",D.style.top=(K=j.bottom-Oe.top-se)+"px";var he=x.getCursor();b.from.ch!=he.ch&&(j=x.cursorCoords(he),D.style.left=(J=j.left-re)+"px",Oe=D.getBoundingClientRect())}}var Fe=Oe.right-ye;if(Ge&&(Fe+=x.display.nativeBarWidth),Fe>0&&(Oe.right-Oe.left>ye&&(D.style.width=ye-5+"px",Fe-=Oe.right-Oe.left-ye),D.style.left=(J=j.left-Fe-re)+"px"),Ge)for(var pe=D.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=x.display.nativeBarWidth+"px";if(x.addKeyMap(this.keyMap=m(A,{moveFocus:function(nt,lt){C.changeActive(C.selectedHint+nt,lt)},setFocus:function(nt){C.changeActive(nt)},menuSize:function(){return C.screenAmount()},length:I.length,close:function(){A.close()},pick:function(){C.pick()},data:b})),A.options.closeOnUnfocus){var Me;x.on("blur",this.onBlur=function(){Me=setTimeout(function(){A.close()},100)}),x.on("focus",this.onFocus=function(){clearTimeout(Me)})}x.on("scroll",this.onScroll=function(){var nt=x.getScrollInfo(),lt=x.getWrapperElement().getBoundingClientRect();He||(He=x.getScrollInfo());var wt=K+He.top-nt.top,Or=wt-(P.pageYOffset||(k.documentElement||k.body).scrollTop);if(ee||(Or+=D.offsetHeight),Or<=lt.top||Or>=lt.bottom)return A.close();D.style.top=wt+"px",D.style.left=J+He.left-nt.left+"px"}),r.on(D,"dblclick",function(nt){var lt=v(D,nt.target||nt.srcElement);lt&<.hintId!=null&&(C.changeActive(lt.hintId),C.pick())}),r.on(D,"click",function(nt){var lt=v(D,nt.target||nt.srcElement);lt&<.hintId!=null&&(C.changeActive(lt.hintId),A.options.completeOnSingleClick&&C.pick())}),r.on(D,"mousedown",function(){setTimeout(function(){x.focus()},20)});var st=this.getSelectedHintRange();return(st.from!==0||st.to!==0)&&this.scrollToActive(),r.signal(b,"select",I[this.selectedHint],D.childNodes[this.selectedHint]),!0}eo(g,"Widget"),g.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var A=this.completion.cm.getInputField();A.removeAttribute("aria-activedescendant"),A.removeAttribute("aria-owns");var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off("blur",this.onBlur),b.off("focus",this.onFocus)),b.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var A=this;this.keyMap={Enter:function(){A.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(A,b){if(A>=this.data.list.length?A=b?this.data.list.length-1:0:A<0&&(A=b?0:this.data.list.length-1),this.selectedHint!=A){var C=this.hints.childNodes[this.selectedHint];C&&(C.className=C.className.replace(" "+i,""),C.removeAttribute("aria-selected")),C=this.hints.childNodes[this.selectedHint=A],C.className+=" "+i,C.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",C.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],C)}},scrollToActive:function(){var A=this.getSelectedHintRange(),b=this.hints.childNodes[A.from],C=this.hints.childNodes[A.to],x=this.hints.firstChild;b.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=C.offsetTop+C.offsetHeight-this.hints.clientHeight+x.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var A=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-A),to:Math.min(this.data.list.length-1,this.selectedHint+A)}}};function y(A,b){if(!A.somethingSelected())return b;for(var C=[],x=0;x0?D(B):V(G+1)})}eo(V,"run"),V(0)},"resolved");return k.async=!0,k.supportsSelection=!0,k}else return(x=A.getHelper(A.getCursor(),"hintWords"))?function(P){return r.hint.fromList(P,{words:x})}:r.hint.anyword?function(P,D){return r.hint.anyword(P,D)}:function(){}}eo(T,"resolveAutoHints"),r.registerHelper("hint","auto",{resolve:T}),r.registerHelper("hint","fromList",function(A,b){var C=A.getCursor(),x=A.getTokenAt(C),k,P=r.Pos(C.line,x.start),D=C;x.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})();jZ=Axe.exports,xxe=_t(jZ),wxe=qZ({__proto__:null,default:xxe},[jZ])});function Sy(){return UZ||(UZ=1,function(e,t){(function(r){r(Kt())})(function(r){var n=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=r.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function s(g){return g&&g.bracketRegex||/[(){}[\]]/}Yu(s,"bracketRegex");function l(g,y,w){var T=g.getLineHandle(y.line),S=y.ch-1,A=w&&w.afterCursor;A==null&&(A=/(^| )cm-fat-cursor($| )/.test(g.getWrapperElement().className));var b=s(w),C=!A&&S>=0&&b.test(T.text.charAt(S))&&o[T.text.charAt(S)]||b.test(T.text.charAt(S+1))&&o[T.text.charAt(++S)];if(!C)return null;var x=C.charAt(1)==">"?1:-1;if(w&&w.strict&&x>0!=(S==y.ch))return null;var k=g.getTokenTypeAt(i(y.line,S+1)),P=c(g,i(y.line,S+(x>0?1:0)),x,k,w);return P==null?null:{from:i(y.line,S),to:P&&P.pos,match:P&&P.ch==C.charAt(0),forward:x>0}}Yu(l,"findMatchingBracket");function c(g,y,w,T,S){for(var A=S&&S.maxScanLineLength||1e4,b=S&&S.maxScanLines||1e3,C=[],x=s(S),k=w>0?Math.min(y.line+b,g.lastLine()+1):Math.max(g.firstLine()-1,y.line-b),P=y.line;P!=k;P+=w){var D=g.getLine(P);if(D){var N=w>0?0:D.length-1,I=w>0?D.length:-1;if(!(D.length>A))for(P==y.line&&(N=y.ch-(w<0?1:0));N!=I;N+=w){var V=D.charAt(N);if(x.test(V)&&(T===void 0||(g.getTokenTypeAt(i(P,N+1))||"")==(T||""))){var G=o[V];if(G&&G.charAt(1)==">"==w>0)C.push(V);else if(C.length)C.pop();else return{pos:i(P,N),ch:V}}}}}return P-w==(w>0?g.lastLine():g.firstLine())?!1:null}Yu(c,"scanForBracket");function f(g,y,w){for(var T=g.state.matchBrackets.maxHighlightLineLength||1e3,S=w&&w.highlightNonMatching,A=[],b=g.listSelections(),C=0;C{ir();Exe=Object.defineProperty,Yu=(e,t)=>Exe(e,"name",{value:t,configurable:!0}),Txe={exports:{}};Yu(Sy,"requireMatchbrackets")});var zZ={};Ui(zZ,{m:()=>Oxe});function BZ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Cxe,Sxe,GZ,kxe,Oxe,HZ=at(()=>{ir();NM();Cxe=Object.defineProperty,Sxe=(e,t)=>Cxe(e,"name",{value:t,configurable:!0});Sxe(BZ,"_mergeNamespaces");GZ=Sy(),kxe=_t(GZ),Oxe=BZ({__proto__:null,default:kxe},[GZ])});var YZ={};Ui(YZ,{c:()=>Pxe});function QZ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nxe,oa,Dxe,WZ,Lxe,Pxe,KZ=at(()=>{ir();Nxe=Object.defineProperty,oa=(e,t)=>Nxe(e,"name",{value:t,configurable:!0});oa(QZ,"_mergeNamespaces");Dxe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){var n={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=r.Pos;r.defineOption("autoCloseBrackets",!1,function(A,b,C){C&&C!=r.Init&&(A.removeKeyMap(s),A.state.closeBrackets=null),b&&(l(o(b,"pairs")),A.state.closeBrackets=b,A.addKeyMap(s))});function o(A,b){return b=="pairs"&&typeof A=="string"?A:typeof A=="object"&&A[b]!=null?A[b]:n[b]}oa(o,"getOption");var s={Backspace:m,Enter:v};function l(A){for(var b=0;b=0;k--){var D=x[k].head;A.replaceRange("",i(D.line,D.ch-1),i(D.line,D.ch+1),"+delete")}}oa(m,"handleBackspace");function v(A){var b=f(A),C=b&&o(b,"explode");if(!C||A.getOption("disableInput"))return r.Pass;for(var x=A.listSelections(),k=0;k0?{line:D.head.line,ch:D.head.ch+b}:{line:D.head.line-1};C.push({anchor:N,head:N})}A.setSelections(C,k)}oa(g,"moveSel");function y(A){var b=r.cmpPos(A.anchor,A.head)>0;return{anchor:new i(A.anchor.line,A.anchor.ch+(b?-1:1)),head:new i(A.head.line,A.head.ch+(b?1:-1))}}oa(y,"contractSelection");function w(A,b){var C=f(A);if(!C||A.getOption("disableInput"))return r.Pass;var x=o(C,"pairs"),k=x.indexOf(b);if(k==-1)return r.Pass;for(var P=o(C,"closeBefore"),D=o(C,"triples"),N=x.charAt(k+1)==b,I=A.listSelections(),V=k%2==0,G,B=0;B=0&&A.getRange(z,i(z.line,z.ch+3))==b+b+b?j="skipThree":j="skip";else if(N&&z.ch>1&&D.indexOf(b)>=0&&A.getRange(i(z.line,z.ch-2),z)==b+b){if(z.ch>2&&/\bstring/.test(A.getTokenTypeAt(i(z.line,z.ch-2))))return r.Pass;j="addFour"}else if(N){var K=z.ch==0?" ":A.getRange(i(z.line,z.ch-1),z);if(!r.isWordChar(J)&&K!=b&&!r.isWordChar(K))j="both";else return r.Pass}else if(V&&(J.length===0||/\s/.test(J)||P.indexOf(J)>-1))j="both";else return r.Pass;if(!G)G=j;else if(G!=j)return r.Pass}var ee=k%2?x.charAt(k-1):b,re=k%2?b:x.charAt(k+1);A.operation(function(){if(G=="skip")g(A,1);else if(G=="skipThree")g(A,3);else if(G=="surround"){for(var se=A.getSelections(),xe=0;xeFxe});function XZ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Rxe,Xm,Mxe,ZZ,Ixe,Fxe,LM=at(()=>{ir();Rxe=Object.defineProperty,Xm=(e,t)=>Rxe(e,"name",{value:t,configurable:!0});Xm(XZ,"_mergeNamespaces");Mxe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){function n(i){return function(o,s){var l=s.line,c=o.getLine(l);function f(T){for(var S,A=s.ch,b=0;;){var C=A<=0?-1:c.lastIndexOf(T[0],A-1);if(C==-1){if(b==1)break;b=1,A=c.length;continue}if(b==1&&Ci.lastLine())return null;var y=i.getTokenAt(r.Pos(g,1));if(/\S/.test(y.string)||(y=i.getTokenAt(r.Pos(g,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var w=g,T=Math.min(i.lastLine(),g+10);w<=T;++w){var S=i.getLine(w),A=S.indexOf(";");if(A!=-1)return{startCh:y.end,end:r.Pos(w,A)}}}Xm(s,"hasImport");var l=o.line,c=s(l),f;if(!c||s(l-1)||(f=s(l-2))&&f.end.line==l-1)return null;for(var m=c.end;;){var v=s(m.line+1);if(v==null)break;m=v.end}return{from:i.clipPos(r.Pos(l,c.startCh+1)),to:m}}),r.registerHelper("fold","include",function(i,o){function s(v){if(vi.lastLine())return null;var g=i.getTokenAt(r.Pos(v,1));if(/\S/.test(g.string)||(g=i.getTokenAt(r.Pos(v,g.end+1))),g.type=="meta"&&g.string.slice(0,8)=="#include")return g.start+8}Xm(s,"hasInclude");var l=o.line,c=s(l);if(c==null||s(l-1)!=null)return null;for(var f=l;;){var m=s(f+1);if(m==null)break;++f}return{from:r.Pos(l,c+1),to:i.clipPos(r.Pos(f))}})})})();ZZ=Mxe.exports,Ixe=_t(ZZ),Fxe=XZ({__proto__:null,default:Ixe},[ZZ])});var PM={};Ui(PM,{f:()=>Bxe});function _Z(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function $Z(){return JZ||(JZ=1,function(e,t){(function(r){r(Kt())})(function(r){function n(l,c,f,m){if(f&&f.call){var v=f;f=null}else var v=s(l,f,"rangeFinder");typeof c=="number"&&(c=r.Pos(c,0));var g=s(l,f,"minFoldSize");function y(A){var b=v(l,c);if(!b||b.to.line-b.from.linel.firstLine();)c=r.Pos(c.line-1,0),w=y(!1);if(!(!w||w.cleared||m==="unfold")){var T=i(l,f,w);r.on(T,"mousedown",function(A){S.clear(),r.e_preventDefault(A)});var S=l.markText(w.from,w.to,{replacedWith:T,clearOnEnter:s(l,f,"clearOnEnter"),__isFold:!0});S.on("clear",function(A,b){r.signal(l,"unfold",l,A,b)}),r.signal(l,"fold",l,w.from,w.to)}}$n(n,"doFold");function i(l,c,f){var m=s(l,c,"widget");if(typeof m=="function"&&(m=m(f.from,f.to)),typeof m=="string"){var v=document.createTextNode(m);m=document.createElement("span"),m.appendChild(v),m.className="CodeMirror-foldmarker"}else m&&(m=m.cloneNode(!0));return m}$n(i,"makeWidget"),r.newFoldFunction=function(l,c){return function(f,m){n(f,m,{rangeFinder:l,widget:c})}},r.defineExtension("foldCode",function(l,c,f){n(this,l,c,f)}),r.defineExtension("isFolded",function(l){for(var c=this.findMarksAt(l),f=0;f{ir();qxe=Object.defineProperty,$n=(e,t)=>qxe(e,"name",{value:t,configurable:!0});$n(_Z,"_mergeNamespaces");jxe={exports:{}},Vxe={exports:{}};$n($Z,"requireFoldcode");(function(e,t){(function(r){r(Kt(),$Z())})(function(r){r.defineOption("foldGutter",!1,function(T,S,A){A&&A!=r.Init&&(T.clearGutter(T.state.foldGutter.options.gutter),T.state.foldGutter=null,T.off("gutterClick",v),T.off("changes",g),T.off("viewportChange",y),T.off("fold",w),T.off("unfold",w),T.off("swapDoc",g)),S&&(T.state.foldGutter=new i(o(S)),m(T),T.on("gutterClick",v),T.on("changes",g),T.on("viewportChange",y),T.on("fold",w),T.on("unfold",w),T.on("swapDoc",g))});var n=r.Pos;function i(T){this.options=T,this.from=this.to=0}$n(i,"State");function o(T){return T===!0&&(T={}),T.gutter==null&&(T.gutter="CodeMirror-foldgutter"),T.indicatorOpen==null&&(T.indicatorOpen="CodeMirror-foldgutter-open"),T.indicatorFolded==null&&(T.indicatorFolded="CodeMirror-foldgutter-folded"),T}$n(o,"parseOptions");function s(T,S){for(var A=T.findMarks(n(S,0),n(S+1,0)),b=0;b=x){if(D&&V&&D.test(V.className))return;I=l(b.indicatorOpen)}}!I&&!V||T.setGutterMarker(N,b.gutter,I)})}$n(c,"updateFoldInfo");function f(T){return new RegExp("(^|\\s)"+T+"(?:$|\\s)\\s*")}$n(f,"classTest");function m(T){var S=T.getViewport(),A=T.state.foldGutter;A&&(T.operation(function(){c(T,S.from,S.to)}),A.from=S.from,A.to=S.to)}$n(m,"updateInViewport");function v(T,S,A){var b=T.state.foldGutter;if(b){var C=b.options;if(A==C.gutter){var x=s(T,S);x?x.clear():T.foldCode(n(S,0),C)}}}$n(v,"onGutterClick");function g(T){var S=T.state.foldGutter;if(S){var A=S.options;S.from=S.to=0,clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){m(T)},A.foldOnChangeTimeSpan||600)}}$n(g,"onChange");function y(T){var S=T.state.foldGutter;if(S){var A=S.options;clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){var b=T.getViewport();S.from==S.to||b.from-S.to>20||S.from-b.to>20?m(T):T.operation(function(){b.fromS.to&&(c(T,S.to,b.to),S.to=b.to)})},A.updateViewportTimeSpan||400)}}$n(y,"onViewportChange");function w(T,S){var A=T.state.foldGutter;if(A){var b=S.line;b>=A.from&&bQxe});function tJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Gxe,Jr,zxe,rJ,Hxe,Qxe,iJ=at(()=>{ir();Gxe=Object.defineProperty,Jr=(e,t)=>Gxe(e,"name",{value:t,configurable:!0});Jr(tJ,"_mergeNamespaces");zxe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){var n="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(D,N,I){var V=document.createElement("div");V.className="CodeMirror-lint-tooltip cm-s-"+D.options.theme,V.appendChild(I.cloneNode(!0)),D.state.lint.options.selfContain?D.getWrapperElement().appendChild(V):document.body.appendChild(V);function G(B){if(!V.parentNode)return r.off(document,"mousemove",G);V.style.top=Math.max(0,B.clientY-V.offsetHeight-5)+"px",V.style.left=B.clientX+5+"px"}return Jr(G,"position"),r.on(document,"mousemove",G),G(N),V.style.opacity!=null&&(V.style.opacity=1),V}Jr(o,"showTooltip");function s(D){D.parentNode&&D.parentNode.removeChild(D)}Jr(s,"rm");function l(D){D.parentNode&&(D.style.opacity==null&&s(D),D.style.opacity=0,setTimeout(function(){s(D)},600))}Jr(l,"hideTooltip");function c(D,N,I,V){var G=o(D,N,I);function B(){r.off(V,"mouseout",B),G&&(l(G),G=null)}Jr(B,"hide");var U=setInterval(function(){if(G)for(var z=V;;z=z.parentNode){if(z&&z.nodeType==11&&(z=z.host),z==document.body)return;if(!z){B();break}}if(!G)return clearInterval(U)},400);r.on(V,"mouseout",B)}Jr(c,"showTooltipFor");function f(D,N,I){this.marked=[],N instanceof Function&&(N={getAnnotations:N}),(!N||N===!0)&&(N={}),this.options={},this.linterOptions=N.options||{};for(var V in m)this.options[V]=m[V];for(var V in N)m.hasOwnProperty(V)?N[V]!=null&&(this.options[V]=N[V]):N.options||(this.linterOptions[V]=N[V]);this.timeout=null,this.hasGutter=I,this.onMouseOver=function(G){P(D,G)},this.waitingFor=0}Jr(f,"LintState");var m={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function v(D){var N=D.state.lint;N.hasGutter&&D.clearGutter(n),N.options.highlightLines&&g(D);for(var I=0;I-1?!1:z.push(se.message)});for(var j=null,J=I.hasGutter&&document.createDocumentFragment(),K=0;K1,V.tooltips)),V.highlightLines&&D.addLineClass(B,"wrap",i+j)}}V.onUpdateLinting&&V.onUpdateLinting(N,G,D)}}Jr(C,"updateLinting");function x(D){var N=D.state.lint;N&&(clearTimeout(N.timeout),N.timeout=setTimeout(function(){b(D)},N.options.delay))}Jr(x,"onChange");function k(D,N,I){for(var V=I.target||I.srcElement,G=document.createDocumentFragment(),B=0;BN);I++){var V=b.getLine(D++);k=k==null?V:k+` -`+V}P=P*2,C.lastIndex=x.ch;var G=C.exec(k);if(G){var B=k.slice(0,G.index).split(` -`),U=G[0].split(` -`),z=x.line+B.length-1,j=B[B.length-1].length;return{from:n(z,j),to:n(z+U.length-1,U.length==1?j+U[0].length:U[U.length-1].length),match:G}}}}ei(c,"searchRegexpForwardMultiline");function f(b,C,x){for(var k,P=0;P<=b.length;){C.lastIndex=P;var D=C.exec(b);if(!D)break;var N=D.index+D[0].length;if(N>b.length-x)break;(!k||N>k.index+k[0].length)&&(k=D),P=D.index+1}return k}ei(f,"lastMatchIn");function m(b,C,x){C=o(C,"g");for(var k=x.line,P=x.ch,D=b.firstLine();k>=D;k--,P=-1){var N=b.getLine(k),I=f(N,C,P<0?0:N.length-P);if(I)return{from:n(k,I.index),to:n(k,I.index+I[0].length),match:I}}}ei(m,"searchRegexpBackward");function v(b,C,x){if(!s(C))return m(b,C,x);C=o(C,"gm");for(var k,P=1,D=b.getLine(x.line).length-x.ch,N=x.line,I=b.firstLine();N>=I;){for(var V=0;V=I;V++){var G=b.getLine(N--);k=k==null?G:G+` -`+k}P*=2;var B=f(k,C,D);if(B){var U=k.slice(0,B.index).split(` +`; + } +});var c4=X(VN=>{ + 'use strict';Object.defineProperty(VN,'__esModule',{value:!0});VN.concatAST=Bce;function Bce(e){ + for(var t=[],r=0;r{ + 'use strict';Object.defineProperty(UN,'__esModule',{value:!0});UN.separateOperations=zce;var TA=tr(),Gce=Jl();function zce(e){ + for(var t=[],r=Object.create(null),n=0,i=e.definitions;n{ + 'use strict';Object.defineProperty(GN,'__esModule',{value:!0});GN.stripIgnoredCharacters=Hce;var m4=vb(),BN=Id(),h4=bb(),v4=qd();function Hce(e){ + for(var t=(0,m4.isSource)(e)?e:new m4.Source(e),r=t.body,n=new h4.Lexer(t),i='',o=!1;n.advance().kind!==BN.TokenKind.EOF;){ + var s=n.token,l=s.kind,c=!(0,h4.isPunctuatorTokenKind)(s.kind);o&&(c||s.kind===BN.TokenKind.SPREAD)&&(i+=' ');var f=r.slice(s.start,s.end);l===BN.TokenKind.BLOCK_STRING?i+=Qce(f):i+=f,o=c; + }return i; + }function Qce(e){ + var t=e.slice(3,-3),r=(0,v4.dedentBlockStringValue)(t);(0,v4.getBlockStringIndentation)(r)>0&&(r=` +`+r);var n=r[r.length-1],i=n==='"'&&r.slice(-4)!=='\\"""';return(i||n==='\\')&&(r+=` +`),'"""'+r+'"""'; + } +});var k4=X(du=>{ + 'use strict';Object.defineProperty(du,'__esModule',{value:!0});du.findBreakingChanges=$ce;du.findDangerousChanges=efe;du.DangerousChangeType=du.BreakingChangeType=void 0;var up=Fv(oo()),y4=Fv(_l()),Wce=Fv(jt()),C4=Fv(Gn()),Yce=Fv(Jh()),Kce=ao(),Xce=Jl(),Zce=is(),Bt=Rt(),Jce=lv();function Fv(e){ + return e&&e.__esModule?e:{default:e}; + }function b4(e,t){ + var r=Object.keys(e);if(Object.getOwnPropertySymbols){ + var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){ + return Object.getOwnPropertyDescriptor(e,i).enumerable; + })),r.push.apply(r,n); + }return r; + }function A4(e){ + for(var t=1;t{ + 'use strict';Object.defineProperty(zN,'__esModule',{value:!0});zN.findDeprecatedUsages=ufe;var sfe=ep(),lfe=yN();function ufe(e,t){ + return(0,sfe.validate)(e,t,[lfe.NoDeprecatedCustomRule]); + } +});var R4=X(Lt=>{ + 'use strict';Object.defineProperty(Lt,'__esModule',{value:!0});Object.defineProperty(Lt,'getIntrospectionQuery',{enumerable:!0,get:function(){ + return cfe.getIntrospectionQuery; + }});Object.defineProperty(Lt,'getOperationAST',{enumerable:!0,get:function(){ + return ffe.getOperationAST; + }});Object.defineProperty(Lt,'getOperationRootType',{enumerable:!0,get:function(){ + return dfe.getOperationRootType; + }});Object.defineProperty(Lt,'introspectionFromSchema',{enumerable:!0,get:function(){ + return pfe.introspectionFromSchema; + }});Object.defineProperty(Lt,'buildClientSchema',{enumerable:!0,get:function(){ + return mfe.buildClientSchema; + }});Object.defineProperty(Lt,'buildASTSchema',{enumerable:!0,get:function(){ + return N4.buildASTSchema; + }});Object.defineProperty(Lt,'buildSchema',{enumerable:!0,get:function(){ + return N4.buildSchema; + }});Object.defineProperty(Lt,'extendSchema',{enumerable:!0,get:function(){ + return D4.extendSchema; + }});Object.defineProperty(Lt,'getDescription',{enumerable:!0,get:function(){ + return D4.getDescription; + }});Object.defineProperty(Lt,'lexicographicSortSchema',{enumerable:!0,get:function(){ + return hfe.lexicographicSortSchema; + }});Object.defineProperty(Lt,'printSchema',{enumerable:!0,get:function(){ + return HN.printSchema; + }});Object.defineProperty(Lt,'printType',{enumerable:!0,get:function(){ + return HN.printType; + }});Object.defineProperty(Lt,'printIntrospectionSchema',{enumerable:!0,get:function(){ + return HN.printIntrospectionSchema; + }});Object.defineProperty(Lt,'typeFromAST',{enumerable:!0,get:function(){ + return vfe.typeFromAST; + }});Object.defineProperty(Lt,'valueFromAST',{enumerable:!0,get:function(){ + return gfe.valueFromAST; + }});Object.defineProperty(Lt,'valueFromASTUntyped',{enumerable:!0,get:function(){ + return yfe.valueFromASTUntyped; + }});Object.defineProperty(Lt,'astFromValue',{enumerable:!0,get:function(){ + return bfe.astFromValue; + }});Object.defineProperty(Lt,'TypeInfo',{enumerable:!0,get:function(){ + return L4.TypeInfo; + }});Object.defineProperty(Lt,'visitWithTypeInfo',{enumerable:!0,get:function(){ + return L4.visitWithTypeInfo; + }});Object.defineProperty(Lt,'coerceInputValue',{enumerable:!0,get:function(){ + return Afe.coerceInputValue; + }});Object.defineProperty(Lt,'concatAST',{enumerable:!0,get:function(){ + return xfe.concatAST; + }});Object.defineProperty(Lt,'separateOperations',{enumerable:!0,get:function(){ + return wfe.separateOperations; + }});Object.defineProperty(Lt,'stripIgnoredCharacters',{enumerable:!0,get:function(){ + return Efe.stripIgnoredCharacters; + }});Object.defineProperty(Lt,'isEqualType',{enumerable:!0,get:function(){ + return QN.isEqualType; + }});Object.defineProperty(Lt,'isTypeSubTypeOf',{enumerable:!0,get:function(){ + return QN.isTypeSubTypeOf; + }});Object.defineProperty(Lt,'doTypesOverlap',{enumerable:!0,get:function(){ + return QN.doTypesOverlap; + }});Object.defineProperty(Lt,'assertValidName',{enumerable:!0,get:function(){ + return P4.assertValidName; + }});Object.defineProperty(Lt,'isValidNameError',{enumerable:!0,get:function(){ + return P4.isValidNameError; + }});Object.defineProperty(Lt,'BreakingChangeType',{enumerable:!0,get:function(){ + return CA.BreakingChangeType; + }});Object.defineProperty(Lt,'DangerousChangeType',{enumerable:!0,get:function(){ + return CA.DangerousChangeType; + }});Object.defineProperty(Lt,'findBreakingChanges',{enumerable:!0,get:function(){ + return CA.findBreakingChanges; + }});Object.defineProperty(Lt,'findDangerousChanges',{enumerable:!0,get:function(){ + return CA.findDangerousChanges; + }});Object.defineProperty(Lt,'findDeprecatedUsages',{enumerable:!0,get:function(){ + return Tfe.findDeprecatedUsages; + }});var cfe=wN(),ffe=M8(),dfe=aA(),pfe=F8(),mfe=j8(),N4=$8(),D4=SN(),hfe=t4(),HN=u4(),vfe=os(),gfe=bv(),yfe=QS(),bfe=lv(),L4=Wb(),Afe=iN(),xfe=c4(),wfe=p4(),Efe=g4(),QN=rv(),P4=DS(),CA=k4(),Tfe=O4(); +});var Ur=X(_=>{ + 'use strict';Object.defineProperty(_,'__esModule',{value:!0});Object.defineProperty(_,'version',{enumerable:!0,get:function(){ + return M4.version; + }});Object.defineProperty(_,'versionInfo',{enumerable:!0,get:function(){ + return M4.versionInfo; + }});Object.defineProperty(_,'graphql',{enumerable:!0,get:function(){ + return I4.graphql; + }});Object.defineProperty(_,'graphqlSync',{enumerable:!0,get:function(){ + return I4.graphqlSync; + }});Object.defineProperty(_,'GraphQLSchema',{enumerable:!0,get:function(){ + return Ie.GraphQLSchema; + }});Object.defineProperty(_,'GraphQLDirective',{enumerable:!0,get:function(){ + return Ie.GraphQLDirective; + }});Object.defineProperty(_,'GraphQLScalarType',{enumerable:!0,get:function(){ + return Ie.GraphQLScalarType; + }});Object.defineProperty(_,'GraphQLObjectType',{enumerable:!0,get:function(){ + return Ie.GraphQLObjectType; + }});Object.defineProperty(_,'GraphQLInterfaceType',{enumerable:!0,get:function(){ + return Ie.GraphQLInterfaceType; + }});Object.defineProperty(_,'GraphQLUnionType',{enumerable:!0,get:function(){ + return Ie.GraphQLUnionType; + }});Object.defineProperty(_,'GraphQLEnumType',{enumerable:!0,get:function(){ + return Ie.GraphQLEnumType; + }});Object.defineProperty(_,'GraphQLInputObjectType',{enumerable:!0,get:function(){ + return Ie.GraphQLInputObjectType; + }});Object.defineProperty(_,'GraphQLList',{enumerable:!0,get:function(){ + return Ie.GraphQLList; + }});Object.defineProperty(_,'GraphQLNonNull',{enumerable:!0,get:function(){ + return Ie.GraphQLNonNull; + }});Object.defineProperty(_,'specifiedScalarTypes',{enumerable:!0,get:function(){ + return Ie.specifiedScalarTypes; + }});Object.defineProperty(_,'GraphQLInt',{enumerable:!0,get:function(){ + return Ie.GraphQLInt; + }});Object.defineProperty(_,'GraphQLFloat',{enumerable:!0,get:function(){ + return Ie.GraphQLFloat; + }});Object.defineProperty(_,'GraphQLString',{enumerable:!0,get:function(){ + return Ie.GraphQLString; + }});Object.defineProperty(_,'GraphQLBoolean',{enumerable:!0,get:function(){ + return Ie.GraphQLBoolean; + }});Object.defineProperty(_,'GraphQLID',{enumerable:!0,get:function(){ + return Ie.GraphQLID; + }});Object.defineProperty(_,'specifiedDirectives',{enumerable:!0,get:function(){ + return Ie.specifiedDirectives; + }});Object.defineProperty(_,'GraphQLIncludeDirective',{enumerable:!0,get:function(){ + return Ie.GraphQLIncludeDirective; + }});Object.defineProperty(_,'GraphQLSkipDirective',{enumerable:!0,get:function(){ + return Ie.GraphQLSkipDirective; + }});Object.defineProperty(_,'GraphQLDeprecatedDirective',{enumerable:!0,get:function(){ + return Ie.GraphQLDeprecatedDirective; + }});Object.defineProperty(_,'GraphQLSpecifiedByDirective',{enumerable:!0,get:function(){ + return Ie.GraphQLSpecifiedByDirective; + }});Object.defineProperty(_,'TypeKind',{enumerable:!0,get:function(){ + return Ie.TypeKind; + }});Object.defineProperty(_,'DEFAULT_DEPRECATION_REASON',{enumerable:!0,get:function(){ + return Ie.DEFAULT_DEPRECATION_REASON; + }});Object.defineProperty(_,'introspectionTypes',{enumerable:!0,get:function(){ + return Ie.introspectionTypes; + }});Object.defineProperty(_,'__Schema',{enumerable:!0,get:function(){ + return Ie.__Schema; + }});Object.defineProperty(_,'__Directive',{enumerable:!0,get:function(){ + return Ie.__Directive; + }});Object.defineProperty(_,'__DirectiveLocation',{enumerable:!0,get:function(){ + return Ie.__DirectiveLocation; + }});Object.defineProperty(_,'__Type',{enumerable:!0,get:function(){ + return Ie.__Type; + }});Object.defineProperty(_,'__Field',{enumerable:!0,get:function(){ + return Ie.__Field; + }});Object.defineProperty(_,'__InputValue',{enumerable:!0,get:function(){ + return Ie.__InputValue; + }});Object.defineProperty(_,'__EnumValue',{enumerable:!0,get:function(){ + return Ie.__EnumValue; + }});Object.defineProperty(_,'__TypeKind',{enumerable:!0,get:function(){ + return Ie.__TypeKind; + }});Object.defineProperty(_,'SchemaMetaFieldDef',{enumerable:!0,get:function(){ + return Ie.SchemaMetaFieldDef; + }});Object.defineProperty(_,'TypeMetaFieldDef',{enumerable:!0,get:function(){ + return Ie.TypeMetaFieldDef; + }});Object.defineProperty(_,'TypeNameMetaFieldDef',{enumerable:!0,get:function(){ + return Ie.TypeNameMetaFieldDef; + }});Object.defineProperty(_,'isSchema',{enumerable:!0,get:function(){ + return Ie.isSchema; + }});Object.defineProperty(_,'isDirective',{enumerable:!0,get:function(){ + return Ie.isDirective; + }});Object.defineProperty(_,'isType',{enumerable:!0,get:function(){ + return Ie.isType; + }});Object.defineProperty(_,'isScalarType',{enumerable:!0,get:function(){ + return Ie.isScalarType; + }});Object.defineProperty(_,'isObjectType',{enumerable:!0,get:function(){ + return Ie.isObjectType; + }});Object.defineProperty(_,'isInterfaceType',{enumerable:!0,get:function(){ + return Ie.isInterfaceType; + }});Object.defineProperty(_,'isUnionType',{enumerable:!0,get:function(){ + return Ie.isUnionType; + }});Object.defineProperty(_,'isEnumType',{enumerable:!0,get:function(){ + return Ie.isEnumType; + }});Object.defineProperty(_,'isInputObjectType',{enumerable:!0,get:function(){ + return Ie.isInputObjectType; + }});Object.defineProperty(_,'isListType',{enumerable:!0,get:function(){ + return Ie.isListType; + }});Object.defineProperty(_,'isNonNullType',{enumerable:!0,get:function(){ + return Ie.isNonNullType; + }});Object.defineProperty(_,'isInputType',{enumerable:!0,get:function(){ + return Ie.isInputType; + }});Object.defineProperty(_,'isOutputType',{enumerable:!0,get:function(){ + return Ie.isOutputType; + }});Object.defineProperty(_,'isLeafType',{enumerable:!0,get:function(){ + return Ie.isLeafType; + }});Object.defineProperty(_,'isCompositeType',{enumerable:!0,get:function(){ + return Ie.isCompositeType; + }});Object.defineProperty(_,'isAbstractType',{enumerable:!0,get:function(){ + return Ie.isAbstractType; + }});Object.defineProperty(_,'isWrappingType',{enumerable:!0,get:function(){ + return Ie.isWrappingType; + }});Object.defineProperty(_,'isNullableType',{enumerable:!0,get:function(){ + return Ie.isNullableType; + }});Object.defineProperty(_,'isNamedType',{enumerable:!0,get:function(){ + return Ie.isNamedType; + }});Object.defineProperty(_,'isRequiredArgument',{enumerable:!0,get:function(){ + return Ie.isRequiredArgument; + }});Object.defineProperty(_,'isRequiredInputField',{enumerable:!0,get:function(){ + return Ie.isRequiredInputField; + }});Object.defineProperty(_,'isSpecifiedScalarType',{enumerable:!0,get:function(){ + return Ie.isSpecifiedScalarType; + }});Object.defineProperty(_,'isIntrospectionType',{enumerable:!0,get:function(){ + return Ie.isIntrospectionType; + }});Object.defineProperty(_,'isSpecifiedDirective',{enumerable:!0,get:function(){ + return Ie.isSpecifiedDirective; + }});Object.defineProperty(_,'assertSchema',{enumerable:!0,get:function(){ + return Ie.assertSchema; + }});Object.defineProperty(_,'assertDirective',{enumerable:!0,get:function(){ + return Ie.assertDirective; + }});Object.defineProperty(_,'assertType',{enumerable:!0,get:function(){ + return Ie.assertType; + }});Object.defineProperty(_,'assertScalarType',{enumerable:!0,get:function(){ + return Ie.assertScalarType; + }});Object.defineProperty(_,'assertObjectType',{enumerable:!0,get:function(){ + return Ie.assertObjectType; + }});Object.defineProperty(_,'assertInterfaceType',{enumerable:!0,get:function(){ + return Ie.assertInterfaceType; + }});Object.defineProperty(_,'assertUnionType',{enumerable:!0,get:function(){ + return Ie.assertUnionType; + }});Object.defineProperty(_,'assertEnumType',{enumerable:!0,get:function(){ + return Ie.assertEnumType; + }});Object.defineProperty(_,'assertInputObjectType',{enumerable:!0,get:function(){ + return Ie.assertInputObjectType; + }});Object.defineProperty(_,'assertListType',{enumerable:!0,get:function(){ + return Ie.assertListType; + }});Object.defineProperty(_,'assertNonNullType',{enumerable:!0,get:function(){ + return Ie.assertNonNullType; + }});Object.defineProperty(_,'assertInputType',{enumerable:!0,get:function(){ + return Ie.assertInputType; + }});Object.defineProperty(_,'assertOutputType',{enumerable:!0,get:function(){ + return Ie.assertOutputType; + }});Object.defineProperty(_,'assertLeafType',{enumerable:!0,get:function(){ + return Ie.assertLeafType; + }});Object.defineProperty(_,'assertCompositeType',{enumerable:!0,get:function(){ + return Ie.assertCompositeType; + }});Object.defineProperty(_,'assertAbstractType',{enumerable:!0,get:function(){ + return Ie.assertAbstractType; + }});Object.defineProperty(_,'assertWrappingType',{enumerable:!0,get:function(){ + return Ie.assertWrappingType; + }});Object.defineProperty(_,'assertNullableType',{enumerable:!0,get:function(){ + return Ie.assertNullableType; + }});Object.defineProperty(_,'assertNamedType',{enumerable:!0,get:function(){ + return Ie.assertNamedType; + }});Object.defineProperty(_,'getNullableType',{enumerable:!0,get:function(){ + return Ie.getNullableType; + }});Object.defineProperty(_,'getNamedType',{enumerable:!0,get:function(){ + return Ie.getNamedType; + }});Object.defineProperty(_,'validateSchema',{enumerable:!0,get:function(){ + return Ie.validateSchema; + }});Object.defineProperty(_,'assertValidSchema',{enumerable:!0,get:function(){ + return Ie.assertValidSchema; + }});Object.defineProperty(_,'Token',{enumerable:!0,get:function(){ + return nr.Token; + }});Object.defineProperty(_,'Source',{enumerable:!0,get:function(){ + return nr.Source; + }});Object.defineProperty(_,'Location',{enumerable:!0,get:function(){ + return nr.Location; + }});Object.defineProperty(_,'getLocation',{enumerable:!0,get:function(){ + return nr.getLocation; + }});Object.defineProperty(_,'printLocation',{enumerable:!0,get:function(){ + return nr.printLocation; + }});Object.defineProperty(_,'printSourceLocation',{enumerable:!0,get:function(){ + return nr.printSourceLocation; + }});Object.defineProperty(_,'Lexer',{enumerable:!0,get:function(){ + return nr.Lexer; + }});Object.defineProperty(_,'TokenKind',{enumerable:!0,get:function(){ + return nr.TokenKind; + }});Object.defineProperty(_,'parse',{enumerable:!0,get:function(){ + return nr.parse; + }});Object.defineProperty(_,'parseValue',{enumerable:!0,get:function(){ + return nr.parseValue; + }});Object.defineProperty(_,'parseType',{enumerable:!0,get:function(){ + return nr.parseType; + }});Object.defineProperty(_,'print',{enumerable:!0,get:function(){ + return nr.print; + }});Object.defineProperty(_,'visit',{enumerable:!0,get:function(){ + return nr.visit; + }});Object.defineProperty(_,'visitInParallel',{enumerable:!0,get:function(){ + return nr.visitInParallel; + }});Object.defineProperty(_,'getVisitFn',{enumerable:!0,get:function(){ + return nr.getVisitFn; + }});Object.defineProperty(_,'BREAK',{enumerable:!0,get:function(){ + return nr.BREAK; + }});Object.defineProperty(_,'Kind',{enumerable:!0,get:function(){ + return nr.Kind; + }});Object.defineProperty(_,'DirectiveLocation',{enumerable:!0,get:function(){ + return nr.DirectiveLocation; + }});Object.defineProperty(_,'isDefinitionNode',{enumerable:!0,get:function(){ + return nr.isDefinitionNode; + }});Object.defineProperty(_,'isExecutableDefinitionNode',{enumerable:!0,get:function(){ + return nr.isExecutableDefinitionNode; + }});Object.defineProperty(_,'isSelectionNode',{enumerable:!0,get:function(){ + return nr.isSelectionNode; + }});Object.defineProperty(_,'isValueNode',{enumerable:!0,get:function(){ + return nr.isValueNode; + }});Object.defineProperty(_,'isTypeNode',{enumerable:!0,get:function(){ + return nr.isTypeNode; + }});Object.defineProperty(_,'isTypeSystemDefinitionNode',{enumerable:!0,get:function(){ + return nr.isTypeSystemDefinitionNode; + }});Object.defineProperty(_,'isTypeDefinitionNode',{enumerable:!0,get:function(){ + return nr.isTypeDefinitionNode; + }});Object.defineProperty(_,'isTypeSystemExtensionNode',{enumerable:!0,get:function(){ + return nr.isTypeSystemExtensionNode; + }});Object.defineProperty(_,'isTypeExtensionNode',{enumerable:!0,get:function(){ + return nr.isTypeExtensionNode; + }});Object.defineProperty(_,'execute',{enumerable:!0,get:function(){ + return cp.execute; + }});Object.defineProperty(_,'executeSync',{enumerable:!0,get:function(){ + return cp.executeSync; + }});Object.defineProperty(_,'defaultFieldResolver',{enumerable:!0,get:function(){ + return cp.defaultFieldResolver; + }});Object.defineProperty(_,'defaultTypeResolver',{enumerable:!0,get:function(){ + return cp.defaultTypeResolver; + }});Object.defineProperty(_,'responsePathAsArray',{enumerable:!0,get:function(){ + return cp.responsePathAsArray; + }});Object.defineProperty(_,'getDirectiveValues',{enumerable:!0,get:function(){ + return cp.getDirectiveValues; + }});Object.defineProperty(_,'subscribe',{enumerable:!0,get:function(){ + return F4.subscribe; + }});Object.defineProperty(_,'createSourceEventStream',{enumerable:!0,get:function(){ + return F4.createSourceEventStream; + }});Object.defineProperty(_,'validate',{enumerable:!0,get:function(){ + return St.validate; + }});Object.defineProperty(_,'ValidationContext',{enumerable:!0,get:function(){ + return St.ValidationContext; + }});Object.defineProperty(_,'specifiedRules',{enumerable:!0,get:function(){ + return St.specifiedRules; + }});Object.defineProperty(_,'ExecutableDefinitionsRule',{enumerable:!0,get:function(){ + return St.ExecutableDefinitionsRule; + }});Object.defineProperty(_,'FieldsOnCorrectTypeRule',{enumerable:!0,get:function(){ + return St.FieldsOnCorrectTypeRule; + }});Object.defineProperty(_,'FragmentsOnCompositeTypesRule',{enumerable:!0,get:function(){ + return St.FragmentsOnCompositeTypesRule; + }});Object.defineProperty(_,'KnownArgumentNamesRule',{enumerable:!0,get:function(){ + return St.KnownArgumentNamesRule; + }});Object.defineProperty(_,'KnownDirectivesRule',{enumerable:!0,get:function(){ + return St.KnownDirectivesRule; + }});Object.defineProperty(_,'KnownFragmentNamesRule',{enumerable:!0,get:function(){ + return St.KnownFragmentNamesRule; + }});Object.defineProperty(_,'KnownTypeNamesRule',{enumerable:!0,get:function(){ + return St.KnownTypeNamesRule; + }});Object.defineProperty(_,'LoneAnonymousOperationRule',{enumerable:!0,get:function(){ + return St.LoneAnonymousOperationRule; + }});Object.defineProperty(_,'NoFragmentCyclesRule',{enumerable:!0,get:function(){ + return St.NoFragmentCyclesRule; + }});Object.defineProperty(_,'NoUndefinedVariablesRule',{enumerable:!0,get:function(){ + return St.NoUndefinedVariablesRule; + }});Object.defineProperty(_,'NoUnusedFragmentsRule',{enumerable:!0,get:function(){ + return St.NoUnusedFragmentsRule; + }});Object.defineProperty(_,'NoUnusedVariablesRule',{enumerable:!0,get:function(){ + return St.NoUnusedVariablesRule; + }});Object.defineProperty(_,'OverlappingFieldsCanBeMergedRule',{enumerable:!0,get:function(){ + return St.OverlappingFieldsCanBeMergedRule; + }});Object.defineProperty(_,'PossibleFragmentSpreadsRule',{enumerable:!0,get:function(){ + return St.PossibleFragmentSpreadsRule; + }});Object.defineProperty(_,'ProvidedRequiredArgumentsRule',{enumerable:!0,get:function(){ + return St.ProvidedRequiredArgumentsRule; + }});Object.defineProperty(_,'ScalarLeafsRule',{enumerable:!0,get:function(){ + return St.ScalarLeafsRule; + }});Object.defineProperty(_,'SingleFieldSubscriptionsRule',{enumerable:!0,get:function(){ + return St.SingleFieldSubscriptionsRule; + }});Object.defineProperty(_,'UniqueArgumentNamesRule',{enumerable:!0,get:function(){ + return St.UniqueArgumentNamesRule; + }});Object.defineProperty(_,'UniqueDirectivesPerLocationRule',{enumerable:!0,get:function(){ + return St.UniqueDirectivesPerLocationRule; + }});Object.defineProperty(_,'UniqueFragmentNamesRule',{enumerable:!0,get:function(){ + return St.UniqueFragmentNamesRule; + }});Object.defineProperty(_,'UniqueInputFieldNamesRule',{enumerable:!0,get:function(){ + return St.UniqueInputFieldNamesRule; + }});Object.defineProperty(_,'UniqueOperationNamesRule',{enumerable:!0,get:function(){ + return St.UniqueOperationNamesRule; + }});Object.defineProperty(_,'UniqueVariableNamesRule',{enumerable:!0,get:function(){ + return St.UniqueVariableNamesRule; + }});Object.defineProperty(_,'ValuesOfCorrectTypeRule',{enumerable:!0,get:function(){ + return St.ValuesOfCorrectTypeRule; + }});Object.defineProperty(_,'VariablesAreInputTypesRule',{enumerable:!0,get:function(){ + return St.VariablesAreInputTypesRule; + }});Object.defineProperty(_,'VariablesInAllowedPositionRule',{enumerable:!0,get:function(){ + return St.VariablesInAllowedPositionRule; + }});Object.defineProperty(_,'LoneSchemaDefinitionRule',{enumerable:!0,get:function(){ + return St.LoneSchemaDefinitionRule; + }});Object.defineProperty(_,'UniqueOperationTypesRule',{enumerable:!0,get:function(){ + return St.UniqueOperationTypesRule; + }});Object.defineProperty(_,'UniqueTypeNamesRule',{enumerable:!0,get:function(){ + return St.UniqueTypeNamesRule; + }});Object.defineProperty(_,'UniqueEnumValueNamesRule',{enumerable:!0,get:function(){ + return St.UniqueEnumValueNamesRule; + }});Object.defineProperty(_,'UniqueFieldDefinitionNamesRule',{enumerable:!0,get:function(){ + return St.UniqueFieldDefinitionNamesRule; + }});Object.defineProperty(_,'UniqueDirectiveNamesRule',{enumerable:!0,get:function(){ + return St.UniqueDirectiveNamesRule; + }});Object.defineProperty(_,'PossibleTypeExtensionsRule',{enumerable:!0,get:function(){ + return St.PossibleTypeExtensionsRule; + }});Object.defineProperty(_,'NoDeprecatedCustomRule',{enumerable:!0,get:function(){ + return St.NoDeprecatedCustomRule; + }});Object.defineProperty(_,'NoSchemaIntrospectionCustomRule',{enumerable:!0,get:function(){ + return St.NoSchemaIntrospectionCustomRule; + }});Object.defineProperty(_,'GraphQLError',{enumerable:!0,get:function(){ + return qv.GraphQLError; + }});Object.defineProperty(_,'syntaxError',{enumerable:!0,get:function(){ + return qv.syntaxError; + }});Object.defineProperty(_,'locatedError',{enumerable:!0,get:function(){ + return qv.locatedError; + }});Object.defineProperty(_,'printError',{enumerable:!0,get:function(){ + return qv.printError; + }});Object.defineProperty(_,'formatError',{enumerable:!0,get:function(){ + return qv.formatError; + }});Object.defineProperty(_,'getIntrospectionQuery',{enumerable:!0,get:function(){ + return Mt.getIntrospectionQuery; + }});Object.defineProperty(_,'getOperationAST',{enumerable:!0,get:function(){ + return Mt.getOperationAST; + }});Object.defineProperty(_,'getOperationRootType',{enumerable:!0,get:function(){ + return Mt.getOperationRootType; + }});Object.defineProperty(_,'introspectionFromSchema',{enumerable:!0,get:function(){ + return Mt.introspectionFromSchema; + }});Object.defineProperty(_,'buildClientSchema',{enumerable:!0,get:function(){ + return Mt.buildClientSchema; + }});Object.defineProperty(_,'buildASTSchema',{enumerable:!0,get:function(){ + return Mt.buildASTSchema; + }});Object.defineProperty(_,'buildSchema',{enumerable:!0,get:function(){ + return Mt.buildSchema; + }});Object.defineProperty(_,'getDescription',{enumerable:!0,get:function(){ + return Mt.getDescription; + }});Object.defineProperty(_,'extendSchema',{enumerable:!0,get:function(){ + return Mt.extendSchema; + }});Object.defineProperty(_,'lexicographicSortSchema',{enumerable:!0,get:function(){ + return Mt.lexicographicSortSchema; + }});Object.defineProperty(_,'printSchema',{enumerable:!0,get:function(){ + return Mt.printSchema; + }});Object.defineProperty(_,'printType',{enumerable:!0,get:function(){ + return Mt.printType; + }});Object.defineProperty(_,'printIntrospectionSchema',{enumerable:!0,get:function(){ + return Mt.printIntrospectionSchema; + }});Object.defineProperty(_,'typeFromAST',{enumerable:!0,get:function(){ + return Mt.typeFromAST; + }});Object.defineProperty(_,'valueFromAST',{enumerable:!0,get:function(){ + return Mt.valueFromAST; + }});Object.defineProperty(_,'valueFromASTUntyped',{enumerable:!0,get:function(){ + return Mt.valueFromASTUntyped; + }});Object.defineProperty(_,'astFromValue',{enumerable:!0,get:function(){ + return Mt.astFromValue; + }});Object.defineProperty(_,'TypeInfo',{enumerable:!0,get:function(){ + return Mt.TypeInfo; + }});Object.defineProperty(_,'visitWithTypeInfo',{enumerable:!0,get:function(){ + return Mt.visitWithTypeInfo; + }});Object.defineProperty(_,'coerceInputValue',{enumerable:!0,get:function(){ + return Mt.coerceInputValue; + }});Object.defineProperty(_,'concatAST',{enumerable:!0,get:function(){ + return Mt.concatAST; + }});Object.defineProperty(_,'separateOperations',{enumerable:!0,get:function(){ + return Mt.separateOperations; + }});Object.defineProperty(_,'stripIgnoredCharacters',{enumerable:!0,get:function(){ + return Mt.stripIgnoredCharacters; + }});Object.defineProperty(_,'isEqualType',{enumerable:!0,get:function(){ + return Mt.isEqualType; + }});Object.defineProperty(_,'isTypeSubTypeOf',{enumerable:!0,get:function(){ + return Mt.isTypeSubTypeOf; + }});Object.defineProperty(_,'doTypesOverlap',{enumerable:!0,get:function(){ + return Mt.doTypesOverlap; + }});Object.defineProperty(_,'assertValidName',{enumerable:!0,get:function(){ + return Mt.assertValidName; + }});Object.defineProperty(_,'isValidNameError',{enumerable:!0,get:function(){ + return Mt.isValidNameError; + }});Object.defineProperty(_,'BreakingChangeType',{enumerable:!0,get:function(){ + return Mt.BreakingChangeType; + }});Object.defineProperty(_,'DangerousChangeType',{enumerable:!0,get:function(){ + return Mt.DangerousChangeType; + }});Object.defineProperty(_,'findBreakingChanges',{enumerable:!0,get:function(){ + return Mt.findBreakingChanges; + }});Object.defineProperty(_,'findDangerousChanges',{enumerable:!0,get:function(){ + return Mt.findDangerousChanges; + }});Object.defineProperty(_,'findDeprecatedUsages',{enumerable:!0,get:function(){ + return Mt.findDeprecatedUsages; + }});var M4=Z3(),I4=s8(),Ie=u8(),nr=d8(),cp=p8(),F4=k8(),St=N8(),qv=P8(),Mt=R4(); +});function _N(e){ + let t;return $N(e,r=>{ + switch(r.kind){ + case'Query':case'ShortQuery':case'Mutation':case'Subscription':case'FragmentDefinition':t=r;break; + } + }),t; +}function NA(e,t,r){ + return r===xa.SchemaMetaFieldDef.name&&e.getQueryType()===t?xa.SchemaMetaFieldDef:r===xa.TypeMetaFieldDef.name&&e.getQueryType()===t?xa.TypeMetaFieldDef:r===xa.TypeNameMetaFieldDef.name&&(0,xa.isCompositeType)(t)?xa.TypeNameMetaFieldDef:'getFields'in t?t.getFields()[r]:null; +}function $N(e,t){ + let r=[],n=e;for(;n?.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i]); +}function pu(e){ + let t=Object.keys(e),r=t.length,n=new Array(r);for(let i=0;i!n.isDeprecated);let r=e.map(n=>({proximity:Ffe(Q4(n.label),t),entry:n}));return JN(JN(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.label.length-i.entry.label.length).map(n=>n.entry); +}function JN(e,t){ + let r=e.filter(t);return r.length===0?e:r; +}function Q4(e){ + return e.toLowerCase().replaceAll(/\W/g,''); +}function Ffe(e,t){ + let r=qfe(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r; +}function qfe(e,t){ + let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){ + let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l)); + }return i[o][s]; +}var xa,eD=at(()=>{ + xa=fe(Ur()); +});var W4,tD,Y4,DA,wa,Yr,LA,K4,rD,X4,Z4,J4,_4,nD,$4,e6,t6,PA,pp,mp,iD,hp,r6,oD,aD,sD,lD,uD,n6,i6,cD,o6,fD,Vv,a6,Uv,s6,l6,u6,c6,f6,d6,RA,p6,m6,h6,v6,g6,y6,b6,A6,x6,w6,E6,MA,T6,C6,S6,k6,O6,N6,D6,L6,P6,R6,M6,I6,F6,dD,pD,q6,j6,V6,U6,B6,G6,z6,H6,Q6,mD,ne,W6=at(()=>{ + 'use strict';(function(e){ + function t(r){ + return typeof r=='string'; + }e.is=t; + })(W4||(W4={}));(function(e){ + function t(r){ + return typeof r=='string'; + }e.is=t; + })(tD||(tD={}));(function(e){ + e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){ + return typeof r=='number'&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE; + }e.is=t; + })(Y4||(Y4={}));(function(e){ + e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){ + return typeof r=='number'&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE; + }e.is=t; + })(DA||(DA={}));(function(e){ + function t(n,i){ + return n===Number.MAX_VALUE&&(n=DA.MAX_VALUE),i===Number.MAX_VALUE&&(i=DA.MAX_VALUE),{line:n,character:i}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&ne.uinteger(i.line)&&ne.uinteger(i.character); + }e.is=r; + })(wa||(wa={}));(function(e){ + function t(n,i,o,s){ + if(ne.uinteger(n)&&ne.uinteger(i)&&ne.uinteger(o)&&ne.uinteger(s))return{start:wa.create(n,i),end:wa.create(o,s)};if(wa.is(n)&&wa.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`); + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&wa.is(i.start)&&wa.is(i.end); + }e.is=r; + })(Yr||(Yr={}));(function(e){ + function t(n,i){ + return{uri:n,range:i}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&(ne.string(i.uri)||ne.undefined(i.uri)); + }e.is=r; + })(LA||(LA={}));(function(e){ + function t(n,i,o,s){ + return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&Yr.is(i.targetRange)&&ne.string(i.targetUri)&&Yr.is(i.targetSelectionRange)&&(Yr.is(i.originSelectionRange)||ne.undefined(i.originSelectionRange)); + }e.is=r; + })(K4||(K4={}));(function(e){ + function t(n,i,o,s){ + return{red:n,green:i,blue:o,alpha:s}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&ne.numberRange(i.red,0,1)&&ne.numberRange(i.green,0,1)&&ne.numberRange(i.blue,0,1)&&ne.numberRange(i.alpha,0,1); + }e.is=r; + })(rD||(rD={}));(function(e){ + function t(n,i){ + return{range:n,color:i}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&rD.is(i.color); + }e.is=r; + })(X4||(X4={}));(function(e){ + function t(n,i,o){ + return{label:n,textEdit:i,additionalTextEdits:o}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.undefined(i.textEdit)||mp.is(i))&&(ne.undefined(i.additionalTextEdits)||ne.typedArray(i.additionalTextEdits,mp.is)); + }e.is=r; + })(Z4||(Z4={}));(function(e){ + e.Comment='comment',e.Imports='imports',e.Region='region'; + })(J4||(J4={}));(function(e){ + function t(n,i,o,s,l,c){ + let f={startLine:n,endLine:i};return ne.defined(o)&&(f.startCharacter=o),ne.defined(s)&&(f.endCharacter=s),ne.defined(l)&&(f.kind=l),ne.defined(c)&&(f.collapsedText=c),f; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&ne.uinteger(i.startLine)&&ne.uinteger(i.startLine)&&(ne.undefined(i.startCharacter)||ne.uinteger(i.startCharacter))&&(ne.undefined(i.endCharacter)||ne.uinteger(i.endCharacter))&&(ne.undefined(i.kind)||ne.string(i.kind)); + }e.is=r; + })(_4||(_4={}));(function(e){ + function t(n,i){ + return{location:n,message:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&LA.is(i.location)&&ne.string(i.message); + }e.is=r; + })(nD||(nD={}));(function(e){ + e.Error=1,e.Warning=2,e.Information=3,e.Hint=4; + })($4||($4={}));(function(e){ + e.Unnecessary=1,e.Deprecated=2; + })(e6||(e6={}));(function(e){ + function t(r){ + let n=r;return ne.objectLiteral(n)&&ne.string(n.href); + }e.is=t; + })(t6||(t6={}));(function(e){ + function t(n,i,o,s,l,c){ + let f={range:n,message:i};return ne.defined(o)&&(f.severity=o),ne.defined(s)&&(f.code=s),ne.defined(l)&&(f.source=l),ne.defined(c)&&(f.relatedInformation=c),f; + }e.create=t;function r(n){ + var i;let o=n;return ne.defined(o)&&Yr.is(o.range)&&ne.string(o.message)&&(ne.number(o.severity)||ne.undefined(o.severity))&&(ne.integer(o.code)||ne.string(o.code)||ne.undefined(o.code))&&(ne.undefined(o.codeDescription)||ne.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(ne.string(o.source)||ne.undefined(o.source))&&(ne.undefined(o.relatedInformation)||ne.typedArray(o.relatedInformation,nD.is)); + }e.is=r; + })(PA||(PA={}));(function(e){ + function t(n,i,...o){ + let s={title:n,command:i};return ne.defined(o)&&o.length>0&&(s.arguments=o),s; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.string(i.title)&&ne.string(i.command); + }e.is=r; + })(pp||(pp={}));(function(e){ + function t(o,s){ + return{range:o,newText:s}; + }e.replace=t;function r(o,s){ + return{range:{start:o,end:o},newText:s}; + }e.insert=r;function n(o){ + return{range:o,newText:''}; + }e.del=n;function i(o){ + let s=o;return ne.objectLiteral(s)&&ne.string(s.newText)&&Yr.is(s.range); + }e.is=i; + })(mp||(mp={}));(function(e){ + function t(n,i,o){ + let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ne.string(i.description)||i.description===void 0); + }e.is=r; + })(iD||(iD={}));(function(e){ + function t(r){ + let n=r;return ne.string(n); + }e.is=t; + })(hp||(hp={}));(function(e){ + function t(o,s,l){ + return{range:o,newText:s,annotationId:l}; + }e.replace=t;function r(o,s,l){ + return{range:{start:o,end:o},newText:s,annotationId:l}; + }e.insert=r;function n(o,s){ + return{range:o,newText:'',annotationId:s}; + }e.del=n;function i(o){ + let s=o;return mp.is(s)&&(iD.is(s.annotationId)||hp.is(s.annotationId)); + }e.is=i; + })(r6||(r6={}));(function(e){ + function t(n,i){ + return{textDocument:n,edits:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&cD.is(i.textDocument)&&Array.isArray(i.edits); + }e.is=r; + })(oD||(oD={}));(function(e){ + function t(n,i,o){ + let s={kind:'create',uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s; + }e.create=t;function r(n){ + let i=n;return i&&i.kind==='create'&&ne.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||hp.is(i.annotationId)); + }e.is=r; + })(aD||(aD={}));(function(e){ + function t(n,i,o,s){ + let l={kind:'rename',oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),s!==void 0&&(l.annotationId=s),l; + }e.create=t;function r(n){ + let i=n;return i&&i.kind==='rename'&&ne.string(i.oldUri)&&ne.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||hp.is(i.annotationId)); + }e.is=r; + })(sD||(sD={}));(function(e){ + function t(n,i,o){ + let s={kind:'delete',uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s; + }e.create=t;function r(n){ + let i=n;return i&&i.kind==='delete'&&ne.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ne.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ne.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||hp.is(i.annotationId)); + }e.is=r; + })(lD||(lD={}));(function(e){ + function t(r){ + let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>ne.string(i.kind)?aD.is(i)||sD.is(i)||lD.is(i):oD.is(i))); + }e.is=t; + })(uD||(uD={}));(function(e){ + function t(n){ + return{uri:n}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.string(i.uri); + }e.is=r; + })(n6||(n6={}));(function(e){ + function t(n,i){ + return{uri:n,version:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.integer(i.version); + }e.is=r; + })(i6||(i6={}));(function(e){ + function t(n,i){ + return{uri:n,version:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.string(i.uri)&&(i.version===null||ne.integer(i.version)); + }e.is=r; + })(cD||(cD={}));(function(e){ + function t(n,i,o,s){ + return{uri:n,languageId:i,version:o,text:s}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.string(i.languageId)&&ne.integer(i.version)&&ne.string(i.text); + }e.is=r; + })(o6||(o6={}));(function(e){ + e.PlainText='plaintext',e.Markdown='markdown';function t(r){ + let n=r;return n===e.PlainText||n===e.Markdown; + }e.is=t; + })(fD||(fD={}));(function(e){ + function t(r){ + let n=r;return ne.objectLiteral(r)&&fD.is(n.kind)&&ne.string(n.value); + }e.is=t; + })(Vv||(Vv={}));(function(e){ + e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25; + })(a6||(a6={}));(function(e){ + e.PlainText=1,e.Snippet=2; + })(Uv||(Uv={}));(function(e){ + e.Deprecated=1; + })(s6||(s6={}));(function(e){ + function t(n,i,o){ + return{newText:n,insert:i,replace:o}; + }e.create=t;function r(n){ + let i=n;return i&&ne.string(i.newText)&&Yr.is(i.insert)&&Yr.is(i.replace); + }e.is=r; + })(l6||(l6={}));(function(e){ + e.asIs=1,e.adjustIndentation=2; + })(u6||(u6={}));(function(e){ + function t(r){ + let n=r;return n&&(ne.string(n.detail)||n.detail===void 0)&&(ne.string(n.description)||n.description===void 0); + }e.is=t; + })(c6||(c6={}));(function(e){ + function t(r){ + return{label:r}; + }e.create=t; + })(f6||(f6={}));(function(e){ + function t(r,n){ + return{items:r||[],isIncomplete:!!n}; + }e.create=t; + })(d6||(d6={}));(function(e){ + function t(n){ + return n.replace(/[\\`*_{}[\]()#+\-.!]/g,'\\$&'); + }e.fromPlainText=t;function r(n){ + let i=n;return ne.string(i)||ne.objectLiteral(i)&&ne.string(i.language)&&ne.string(i.value); + }e.is=r; + })(RA||(RA={}));(function(e){ + function t(r){ + let n=r;return!!n&&ne.objectLiteral(n)&&(Vv.is(n.contents)||RA.is(n.contents)||ne.typedArray(n.contents,RA.is))&&(r.range===void 0||Yr.is(r.range)); + }e.is=t; + })(p6||(p6={}));(function(e){ + function t(r,n){ + return n?{label:r,documentation:n}:{label:r}; + }e.create=t; + })(m6||(m6={}));(function(e){ + function t(r,n,...i){ + let o={label:r};return ne.defined(n)&&(o.documentation=n),ne.defined(i)?o.parameters=i:o.parameters=[],o; + }e.create=t; + })(h6||(h6={}));(function(e){ + e.Text=1,e.Read=2,e.Write=3; + })(v6||(v6={}));(function(e){ + function t(r,n){ + let i={range:r};return ne.number(n)&&(i.kind=n),i; + }e.create=t; + })(g6||(g6={}));(function(e){ + e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26; + })(y6||(y6={}));(function(e){ + e.Deprecated=1; + })(b6||(b6={}));(function(e){ + function t(r,n,i,o,s){ + let l={name:r,kind:n,location:{uri:o,range:i}};return s&&(l.containerName=s),l; + }e.create=t; + })(A6||(A6={}));(function(e){ + function t(r,n,i,o){ + return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}; + }e.create=t; + })(x6||(x6={}));(function(e){ + function t(n,i,o,s,l,c){ + let f={name:n,detail:i,kind:o,range:s,selectionRange:l};return c!==void 0&&(f.children=c),f; + }e.create=t;function r(n){ + let i=n;return i&&ne.string(i.name)&&ne.number(i.kind)&&Yr.is(i.range)&&Yr.is(i.selectionRange)&&(i.detail===void 0||ne.string(i.detail))&&(i.deprecated===void 0||ne.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags)); + }e.is=r; + })(w6||(w6={}));(function(e){ + e.Empty='',e.QuickFix='quickfix',e.Refactor='refactor',e.RefactorExtract='refactor.extract',e.RefactorInline='refactor.inline',e.RefactorRewrite='refactor.rewrite',e.Source='source',e.SourceOrganizeImports='source.organizeImports',e.SourceFixAll='source.fixAll'; + })(E6||(E6={}));(function(e){ + e.Invoked=1,e.Automatic=2; + })(MA||(MA={}));(function(e){ + function t(n,i,o){ + let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.typedArray(i.diagnostics,PA.is)&&(i.only===void 0||ne.typedArray(i.only,ne.string))&&(i.triggerKind===void 0||i.triggerKind===MA.Invoked||i.triggerKind===MA.Automatic); + }e.is=r; + })(T6||(T6={}));(function(e){ + function t(n,i,o){ + let s={title:n},l=!0;return typeof i=='string'?(l=!1,s.kind=i):pp.is(i)?s.command=i:s.edit=i,l&&o!==void 0&&(s.kind=o),s; + }e.create=t;function r(n){ + let i=n;return i&&ne.string(i.title)&&(i.diagnostics===void 0||ne.typedArray(i.diagnostics,PA.is))&&(i.kind===void 0||ne.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||pp.is(i.command))&&(i.isPreferred===void 0||ne.boolean(i.isPreferred))&&(i.edit===void 0||uD.is(i.edit)); + }e.is=r; + })(C6||(C6={}));(function(e){ + function t(n,i){ + let o={range:n};return ne.defined(i)&&(o.data=i),o; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&Yr.is(i.range)&&(ne.undefined(i.command)||pp.is(i.command)); + }e.is=r; + })(S6||(S6={}));(function(e){ + function t(n,i){ + return{tabSize:n,insertSpaces:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&ne.uinteger(i.tabSize)&&ne.boolean(i.insertSpaces); + }e.is=r; + })(k6||(k6={}));(function(e){ + function t(n,i,o){ + return{range:n,target:i,data:o}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&Yr.is(i.range)&&(ne.undefined(i.target)||ne.string(i.target)); + }e.is=r; + })(O6||(O6={}));(function(e){ + function t(n,i){ + return{range:n,parent:i}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&Yr.is(i.range)&&(i.parent===void 0||e.is(i.parent)); + }e.is=r; + })(N6||(N6={}));(function(e){ + e.namespace='namespace',e.type='type',e.class='class',e.enum='enum',e.interface='interface',e.struct='struct',e.typeParameter='typeParameter',e.parameter='parameter',e.variable='variable',e.property='property',e.enumMember='enumMember',e.event='event',e.function='function',e.method='method',e.macro='macro',e.keyword='keyword',e.modifier='modifier',e.comment='comment',e.string='string',e.number='number',e.regexp='regexp',e.operator='operator',e.decorator='decorator'; + })(D6||(D6={}));(function(e){ + e.declaration='declaration',e.definition='definition',e.readonly='readonly',e.static='static',e.deprecated='deprecated',e.abstract='abstract',e.async='async',e.modification='modification',e.documentation='documentation',e.defaultLibrary='defaultLibrary'; + })(L6||(L6={}));(function(e){ + function t(r){ + let n=r;return ne.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=='string')&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=='number'); + }e.is=t; + })(P6||(P6={}));(function(e){ + function t(n,i){ + return{range:n,text:i}; + }e.create=t;function r(n){ + let i=n;return i!=null&&Yr.is(i.range)&&ne.string(i.text); + }e.is=r; + })(R6||(R6={}));(function(e){ + function t(n,i,o){ + return{range:n,variableName:i,caseSensitiveLookup:o}; + }e.create=t;function r(n){ + let i=n;return i!=null&&Yr.is(i.range)&&ne.boolean(i.caseSensitiveLookup)&&(ne.string(i.variableName)||i.variableName===void 0); + }e.is=r; + })(M6||(M6={}));(function(e){ + function t(n,i){ + return{range:n,expression:i}; + }e.create=t;function r(n){ + let i=n;return i!=null&&Yr.is(i.range)&&(ne.string(i.expression)||i.expression===void 0); + }e.is=r; + })(I6||(I6={}));(function(e){ + function t(n,i){ + return{frameId:n,stoppedLocation:i}; + }e.create=t;function r(n){ + let i=n;return ne.defined(i)&&Yr.is(n.stoppedLocation); + }e.is=r; + })(F6||(F6={}));(function(e){ + e.Type=1,e.Parameter=2;function t(r){ + return r===1||r===2; + }e.is=t; + })(dD||(dD={}));(function(e){ + function t(n){ + return{value:n}; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&(i.tooltip===void 0||ne.string(i.tooltip)||Vv.is(i.tooltip))&&(i.location===void 0||LA.is(i.location))&&(i.command===void 0||pp.is(i.command)); + }e.is=r; + })(pD||(pD={}));(function(e){ + function t(n,i,o){ + let s={position:n,label:i};return o!==void 0&&(s.kind=o),s; + }e.create=t;function r(n){ + let i=n;return ne.objectLiteral(i)&&wa.is(i.position)&&(ne.string(i.label)||ne.typedArray(i.label,pD.is))&&(i.kind===void 0||dD.is(i.kind))&&i.textEdits===void 0||ne.typedArray(i.textEdits,mp.is)&&(i.tooltip===void 0||ne.string(i.tooltip)||Vv.is(i.tooltip))&&(i.paddingLeft===void 0||ne.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ne.boolean(i.paddingRight)); + }e.is=r; + })(q6||(q6={}));(function(e){ + function t(r){ + return{kind:'snippet',value:r}; + }e.createSnippet=t; + })(j6||(j6={}));(function(e){ + function t(r,n,i,o){ + return{insertText:r,filterText:n,range:i,command:o}; + }e.create=t; + })(V6||(V6={}));(function(e){ + function t(r){ + return{items:r}; + }e.create=t; + })(U6||(U6={}));(function(e){ + e.Invoked=0,e.Automatic=1; + })(B6||(B6={}));(function(e){ + function t(r,n){ + return{range:r,text:n}; + }e.create=t; + })(G6||(G6={}));(function(e){ + function t(r,n){ + return{triggerKind:r,selectedCompletionInfo:n}; + }e.create=t; + })(z6||(z6={}));(function(e){ + function t(r){ + let n=r;return ne.objectLiteral(n)&&tD.is(n.uri)&&ne.string(n.name); + }e.is=t; + })(H6||(H6={}));(function(e){ + function t(o,s,l,c){ + return new mD(o,s,l,c); + }e.create=t;function r(o){ + let s=o;return!!(ne.defined(s)&&ne.string(s.uri)&&(ne.undefined(s.languageId)||ne.string(s.languageId))&&ne.uinteger(s.lineCount)&&ne.func(s.getText)&&ne.func(s.positionAt)&&ne.func(s.offsetAt)); + }e.is=r;function n(o,s){ + let l=o.getText(),c=i(s,(m,v)=>{ + let g=m.range.start.line-v.range.start.line;return g===0?m.range.start.character-v.range.start.character:g; + }),f=l.length;for(let m=c.length-1;m>=0;m--){ + let v=c[m],g=o.offsetAt(v.range.start),y=o.offsetAt(v.range.end);if(y<=f)l=l.substring(0,g)+v.newText+l.substring(y,l.length);else throw new Error('Overlapping edit');f=g; + }return l; + }e.applyEdits=n;function i(o,s){ + if(o.length<=1)return o;let l=o.length/2|0,c=o.slice(0,l),f=o.slice(l);i(c,s),i(f,s);let m=0,v=0,g=0;for(;m0&&t.push(r.length),this._lineOffsets=t; + }return this._lineOffsets; + }positionAt(t){ + t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return wa.create(0,t);for(;nt?i=s:n=s+1; + }let o=n-1;return wa.create(o,t-r[o]); + }offsetAt(t){ + let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1'u'; + }e.undefined=n;function i(y){ + return y===!0||y===!1; + }e.boolean=i;function o(y){ + return t.call(y)==='[object String]'; + }e.string=o;function s(y){ + return t.call(y)==='[object Number]'; + }e.number=s;function l(y,w,T){ + return t.call(y)==='[object Number]'&&w<=y&&y<=T; + }e.numberRange=l;function c(y){ + return t.call(y)==='[object Number]'&&-2147483648<=y&&y<=2147483647; + }e.integer=c;function f(y){ + return t.call(y)==='[object Number]'&&0<=y&&y<=2147483647; + }e.uinteger=f;function m(y){ + return t.call(y)==='[object Function]'; + }e.func=m;function v(y){ + return y!==null&&typeof y=='object'; + }e.objectLiteral=v;function g(y,w){ + return Array.isArray(y)&&y.every(w); + }e.typedArray=g; + })(ne||(ne={})); +});var At,hD=at(()=>{ + W6();(function(e){ + e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25; + })(At||(At={})); +});var cs,Y6=at(()=>{ + cs=class{ + constructor(t){ + this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{ + let r=this._sourceText.charAt(this._pos);return this._pos++,r; + },this.eat=r=>{ + if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1); + },this.eatWhile=r=>{ + let n=this._testNextCharacter(r),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),i=!0;return i; + },this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{ + this._pos=this._sourceText.length; + },this.skipTo=r=>{ + this._pos=r; + },this.match=(r,n=!0,i=!1)=>{ + let o=null,s=null;return typeof r=='string'?(s=new RegExp(r,i?'i':'g').test(this._sourceText.slice(this._pos,this._pos+r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s?.[0]),s!=null&&(typeof r=='string'||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1; + },this.backUp=r=>{ + this._pos-=r; + },this.column=()=>this._pos,this.indentation=()=>{ + let r=this._sourceText.match(/\s*/),n=0;if(r&&r.length!==0){ + let i=r[0],o=0;for(;i.length>o;)i.charCodeAt(o)===9?n+=2:n++,o++; + }return n; + },this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t; + }_testNextCharacter(t){ + let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=='string'?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n; + } + }; +});function er(e){ + return{ofRule:e}; +}function gt(e,t){ + return{ofRule:e,isList:!0,separator:t}; +}function vD(e,t){ + let r=e.match;return e.match=n=>{ + let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n)); + },e; +}function Dn(e,t){ + return{style:t,match:r=>r.kind===e}; +}function ze(e,t){ + return{style:t||'punctuation',match:r=>r.kind==='Punctuation'&&r.value===e}; +}var gD=at(()=>{});function Qn(e){ + return{style:'keyword',match:t=>t.kind==='Name'&&t.value===e}; +}function ar(e){ + return{style:e,match:t=>t.kind==='Name',update(t,r){ + t.name=r.value; + }}; +}function jfe(e){ + return{style:e,match:t=>t.kind==='Name',update(t,r){ + var n;!((n=t.prevState)===null||n===void 0)&&n.prevState&&(t.name=r.value,t.prevState.prevState.type=r.value); + }}; +}var ui,vp,gp,yp,yD=at(()=>{ + gD();ui=fe(Ur()),vp=e=>e===' '||e===' '||e===','||e===` +`||e==='\r'||e==='\uFEFF'||e==='\xA0',gp={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},yp={Document:[gt('Definition')],Definition(e){ + switch(e.value){ + case'{':return'ShortQuery';case'query':return'Query';case'mutation':return'Mutation';case'subscription':return'Subscription';case'fragment':return ui.Kind.FRAGMENT_DEFINITION;case'schema':return'SchemaDef';case'scalar':return'ScalarDef';case'type':return'ObjectTypeDef';case'interface':return'InterfaceDef';case'union':return'UnionDef';case'enum':return'EnumDef';case'input':return'InputDef';case'extend':return'ExtendDef';case'directive':return'DirectiveDef'; + } + },ShortQuery:['SelectionSet'],Query:[Qn('query'),er(ar('def')),er('VariableDefinitions'),gt('Directive'),'SelectionSet'],Mutation:[Qn('mutation'),er(ar('def')),er('VariableDefinitions'),gt('Directive'),'SelectionSet'],Subscription:[Qn('subscription'),er(ar('def')),er('VariableDefinitions'),gt('Directive'),'SelectionSet'],VariableDefinitions:[ze('('),gt('VariableDefinition'),ze(')')],VariableDefinition:['Variable',ze(':'),'Type',er('DefaultValue')],Variable:[ze('$','variable'),ar('variable')],DefaultValue:[ze('='),'Value'],SelectionSet:[ze('{'),gt('Selection'),ze('}')],Selection(e,t){ + return e.value==='...'?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?'InlineFragment':'FragmentSpread':t.match(/[\s\u00a0,]*:/,!1)?'AliasedField':'Field'; + },AliasedField:[ar('property'),ze(':'),ar('qualifier'),er('Arguments'),gt('Directive'),er('SelectionSet')],Field:[ar('property'),er('Arguments'),gt('Directive'),er('SelectionSet')],Arguments:[ze('('),gt('Argument'),ze(')')],Argument:[ar('attribute'),ze(':'),'Value'],FragmentSpread:[ze('...'),ar('def'),gt('Directive')],InlineFragment:[ze('...'),er('TypeCondition'),gt('Directive'),'SelectionSet'],FragmentDefinition:[Qn('fragment'),er(vD(ar('def'),[Qn('on')])),'TypeCondition',gt('Directive'),'SelectionSet'],TypeCondition:[Qn('on'),'NamedType'],Value(e){ + switch(e.kind){ + case'Number':return'NumberValue';case'String':return'StringValue';case'Punctuation':switch(e.value){ + case'[':return'ListValue';case'{':return'ObjectValue';case'$':return'Variable';case'&':return'NamedType'; + }return null;case'Name':switch(e.value){ + case'true':case'false':return'BooleanValue'; + }return e.value==='null'?'NullValue':'EnumValue'; + } + },NumberValue:[Dn('Number','number')],StringValue:[{style:'string',match:e=>e.kind==='String',update(e,t){ + t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""')); + }}],BooleanValue:[Dn('Name','builtin')],NullValue:[Dn('Name','keyword')],EnumValue:[ar('string-2')],ListValue:[ze('['),gt('Value'),ze(']')],ObjectValue:[ze('{'),gt('ObjectField'),ze('}')],ObjectField:[ar('attribute'),ze(':'),'Value'],Type(e){ + return e.value==='['?'ListType':'NonNullType'; + },ListType:[ze('['),'Type',ze(']'),er(ze('!'))],NonNullType:['NamedType',er(ze('!'))],NamedType:[jfe('atom')],Directive:[ze('@','meta'),ar('meta'),er('Arguments')],DirectiveDef:[Qn('directive'),ze('@','meta'),ar('meta'),er('ArgumentsDef'),Qn('on'),gt('DirectiveLocation',ze('|'))],InterfaceDef:[Qn('interface'),ar('atom'),er('Implements'),gt('Directive'),ze('{'),gt('FieldDef'),ze('}')],Implements:[Qn('implements'),gt('NamedType',ze('&'))],DirectiveLocation:[ar('string-2')],SchemaDef:[Qn('schema'),gt('Directive'),ze('{'),gt('OperationTypeDef'),ze('}')],OperationTypeDef:[ar('keyword'),ze(':'),ar('atom')],ScalarDef:[Qn('scalar'),ar('atom'),gt('Directive')],ObjectTypeDef:[Qn('type'),ar('atom'),er('Implements'),gt('Directive'),ze('{'),gt('FieldDef'),ze('}')],FieldDef:[ar('property'),er('ArgumentsDef'),ze(':'),'Type',gt('Directive')],ArgumentsDef:[ze('('),gt('InputValueDef'),ze(')')],InputValueDef:[ar('attribute'),ze(':'),'Type',er('DefaultValue'),gt('Directive')],UnionDef:[Qn('union'),ar('atom'),gt('Directive'),ze('='),gt('UnionMember',ze('|'))],UnionMember:['NamedType'],EnumDef:[Qn('enum'),ar('atom'),gt('Directive'),ze('{'),gt('EnumValueDef'),ze('}')],EnumValueDef:[ar('string-2'),gt('Directive')],InputDef:[Qn('input'),ar('atom'),gt('Directive'),ze('{'),gt('InputValueDef'),ze('}')],ExtendDef:[Qn('extend'),'ExtensionDefinition'],ExtensionDefinition(e){ + switch(e.value){ + case'schema':return ui.Kind.SCHEMA_EXTENSION;case'scalar':return ui.Kind.SCALAR_TYPE_EXTENSION;case'type':return ui.Kind.OBJECT_TYPE_EXTENSION;case'interface':return ui.Kind.INTERFACE_TYPE_EXTENSION;case'union':return ui.Kind.UNION_TYPE_EXTENSION;case'enum':return ui.Kind.ENUM_TYPE_EXTENSION;case'input':return ui.Kind.INPUT_OBJECT_TYPE_EXTENSION; + } + },[ui.Kind.SCHEMA_EXTENSION]:['SchemaDef'],[ui.Kind.SCALAR_TYPE_EXTENSION]:['ScalarDef'],[ui.Kind.OBJECT_TYPE_EXTENSION]:['ObjectTypeDef'],[ui.Kind.INTERFACE_TYPE_EXTENSION]:['InterfaceDef'],[ui.Kind.UNION_TYPE_EXTENSION]:['UnionDef'],[ui.Kind.ENUM_TYPE_EXTENSION]:['EnumDef'],[ui.Kind.INPUT_OBJECT_TYPE_EXTENSION]:['InputDef']}; +});function po(e={eatWhitespace:t=>t.eatWhile(vp),lexRules:gp,parseRules:yp,editorConfig:{}}){ + return{startState(){ + let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Bv(e.parseRules,t,Z6.Kind.DOCUMENT),t; + },token(t,r){ + return Vfe(t,r,e); + }}; +}function Vfe(e,t,r){ + var n;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,'string'):(e.skipToEnd(),'string');let{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:l}=r;if(t.rule&&t.rule.length===0?xD(t):t.needsAdvance&&(t.needsAdvance=!1,AD(t,!0)),e.sol()){ + let m=l?.tabSize||2;t.indentLevel=Math.floor(e.indentation()/m); + }if(s(e))return'ws';let c=Bfe(i,e);if(!c)return e.match(/\S+/)||e.match(/\s/),Bv(bD,t,'Invalid'),'invalidchar';if(c.kind==='Comment')return Bv(bD,t,'Comment'),'comment';let f=K6({},t);if(c.kind==='Punctuation'){ + if(/^[{([]/.test(c.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(c.value)){ + let m=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&m.length>0&&m.at(-1){ + yD();Z6=fe(Ur());bD={Invalid:[],Comment:[]}; +});var _6,Gfe,Ne,$6=at(()=>{ + _6=fe(Ur()),Gfe={ALIASED_FIELD:'AliasedField',ARGUMENTS:'Arguments',SHORT_QUERY:'ShortQuery',QUERY:'Query',MUTATION:'Mutation',SUBSCRIPTION:'Subscription',TYPE_CONDITION:'TypeCondition',INVALID:'Invalid',COMMENT:'Comment',SCHEMA_DEF:'SchemaDef',SCALAR_DEF:'ScalarDef',OBJECT_TYPE_DEF:'ObjectTypeDef',OBJECT_VALUE:'ObjectValue',LIST_VALUE:'ListValue',INTERFACE_DEF:'InterfaceDef',UNION_DEF:'UnionDef',ENUM_DEF:'EnumDef',ENUM_VALUE:'EnumValue',FIELD_DEF:'FieldDef',INPUT_DEF:'InputDef',INPUT_VALUE_DEF:'InputValueDef',ARGUMENTS_DEF:'ArgumentsDef',EXTEND_DEF:'ExtendDef',EXTENSION_DEFINITION:'ExtensionDefinition',DIRECTIVE_DEF:'DirectiveDef',IMPLEMENTS:'Implements',VARIABLE_DEFINITIONS:'VariableDefinitions',TYPE:'Type'},Ne=Object.assign(Object.assign({},_6.Kind),Gfe); +});var IA=at(()=>{ + Y6();yD();gD();J6();$6(); +});function ED(e,t,r,n,i,o){ + var s;let l=Object.assign(Object.assign({},o),{schema:e}),c=n||CD(t,r,1),f=c.state.kind==='Invalid'?c.state.prevState:c.state,m=o?.mode||ide(t,o?.uri);if(!f)return[];let{kind:v,step:g,prevState:y}=f,w=SD(e,c.state);if(v===Ne.DOCUMENT)return m===Kc.TYPE_SYSTEM?Yfe(c):Kfe(c);if(v===Ne.EXTEND_DEF)return Xfe(c);if(((s=y?.prevState)===null||s===void 0?void 0:s.kind)===Ne.EXTENSION_DEFINITION&&f.name)return Cr(c,[]);if(y?.kind===de.Kind.SCALAR_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isScalarType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.OBJECT_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isObjectType)(S)&&!S.name.startsWith('__')).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.INTERFACE_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isInterfaceType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.UNION_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isUnionType).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.ENUM_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isEnumType)(S)&&!S.name.startsWith('__')).map(S=>({label:S.name,kind:At.Function})));if(y?.kind===de.Kind.INPUT_OBJECT_TYPE_EXTENSION)return Cr(c,Object.values(e.getTypeMap()).filter(de.isInputObjectType).map(S=>({label:S.name,kind:At.Function})));if(v===Ne.IMPLEMENTS||v===Ne.NAMED_TYPE&&y?.kind===Ne.IMPLEMENTS)return _fe(c,f,e,t,w);if(v===Ne.SELECTION_SET||v===Ne.FIELD||v===Ne.ALIASED_FIELD)return Zfe(c,w,l);if(v===Ne.ARGUMENTS||v===Ne.ARGUMENT&&g===0){ + let{argDefs:S}=w;if(S)return Cr(c,S.map(A=>{ + var b;return{label:A.name,insertText:A.name+': ',command:wD,detail:String(A.type),documentation:(b=A.description)!==null&&b!==void 0?b:void 0,kind:At.Variable,type:A.type}; + })); + }if((v===Ne.OBJECT_VALUE||v===Ne.OBJECT_FIELD&&g===0)&&w.objectFieldDefs){ + let S=pu(w.objectFieldDefs),A=v===Ne.OBJECT_VALUE?At.Value:At.Field;return Cr(c,S.map(b=>{ + var C;return{label:b.name,detail:String(b.type),documentation:(C=b.description)!==null&&C!==void 0?C:void 0,kind:A,type:b.type}; + })); + }if(v===Ne.ENUM_VALUE||v===Ne.LIST_VALUE&&g===1||v===Ne.OBJECT_FIELD&&g===2||v===Ne.ARGUMENT&&g===2)return Jfe(c,w,t,e);if(v===Ne.VARIABLE&&g===1){ + let S=(0,de.getNamedType)(w.inputType),A=TD(t,e,c);return Cr(c,A.filter(b=>b.detail===S?.name)); + }if(v===Ne.TYPE_CONDITION&&g===1||v===Ne.NAMED_TYPE&&y!=null&&y.kind===Ne.TYPE_CONDITION)return $fe(c,w,e,v);if(v===Ne.FRAGMENT_SPREAD&&g===1)return ede(c,w,e,t,Array.isArray(i)?i:zfe(i));let T=rq(f);if(m===Kc.TYPE_SYSTEM&&!T.needsAdvance&&v===Ne.NAMED_TYPE||v===Ne.LIST_TYPE){ + if(T.kind===Ne.FIELD_DEF)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isOutputType)(S)&&!S.name.startsWith('__')).map(S=>({label:S.name,kind:At.Function})));if(T.kind===Ne.INPUT_VALUE_DEF)return Cr(c,Object.values(e.getTypeMap()).filter(S=>(0,de.isInputType)(S)&&!S.name.startsWith('__')).map(S=>({label:S.name,kind:At.Function}))); + }return v===Ne.VARIABLE_DEFINITION&&g===2||v===Ne.LIST_TYPE&&g===1||v===Ne.NAMED_TYPE&&y&&(y.kind===Ne.VARIABLE_DEFINITION||y.kind===Ne.LIST_TYPE||y.kind===Ne.NON_NULL_TYPE)?rde(c,e,v):v===Ne.DIRECTIVE?nde(c,f,e,v):[]; +}function Yfe(e){ + return Cr(e,[{label:'extend',kind:At.Function},{label:'type',kind:At.Function},{label:'interface',kind:At.Function},{label:'union',kind:At.Function},{label:'input',kind:At.Function},{label:'scalar',kind:At.Function},{label:'schema',kind:At.Function}]); +}function Kfe(e){ + return Cr(e,[{label:'query',kind:At.Function},{label:'mutation',kind:At.Function},{label:'subscription',kind:At.Function},{label:'fragment',kind:At.Function},{label:'{',kind:At.Constructor}]); +}function Xfe(e){ + return Cr(e,[{label:'type',kind:At.Function},{label:'interface',kind:At.Function},{label:'union',kind:At.Function},{label:'input',kind:At.Function},{label:'scalar',kind:At.Function},{label:'schema',kind:At.Function}]); +}function Zfe(e,t,r){ + var n;if(t.parentType){ + let{parentType:i}=t,o=[];return'getFields'in i&&(o=pu(i.getFields())),(0,de.isCompositeType)(i)&&o.push(de.TypeNameMetaFieldDef),i===((n=r?.schema)===null||n===void 0?void 0:n.getQueryType())&&o.push(de.SchemaMetaFieldDef,de.TypeMetaFieldDef),Cr(e,o.map((s,l)=>{ + var c;let f={sortText:String(l)+s.name,label:s.name,detail:String(s.type),documentation:(c=s.description)!==null&&c!==void 0?c:void 0,deprecated:!!s.deprecationReason,isDeprecated:!!s.deprecationReason,deprecationReason:s.deprecationReason,kind:At.Field,type:s.type};if(r?.fillLeafsOnComplete){ + let m=Wfe(s);m&&(f.insertText=s.name+m,f.insertTextFormat=Uv.Snippet,f.command=wD); + }return f; + })); + }return[]; +}function Jfe(e,t,r,n){ + let i=(0,de.getNamedType)(t.inputType),o=TD(r,n,e).filter(s=>s.detail===i.name);if(i instanceof de.GraphQLEnumType){ + let s=i.getValues();return Cr(e,s.map(l=>{ + var c;return{label:l.name,detail:String(i),documentation:(c=l.description)!==null&&c!==void 0?c:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:At.EnumMember,type:i}; + }).concat(o)); + }return i===de.GraphQLBoolean?Cr(e,o.concat([{label:'true',detail:String(de.GraphQLBoolean),documentation:'Not false.',kind:At.Variable,type:de.GraphQLBoolean},{label:'false',detail:String(de.GraphQLBoolean),documentation:'Not true.',kind:At.Variable,type:de.GraphQLBoolean}])):o; +}function _fe(e,t,r,n,i){ + if(t.needsSeparator)return[];let o=r.getTypeMap(),s=pu(o).filter(de.isInterfaceType),l=s.map(({name:y})=>y),c=new Set;qA(n,(y,w)=>{ + var T,S,A,b,C;if(w.name&&(w.kind===Ne.INTERFACE_DEF&&!l.includes(w.name)&&c.add(w.name),w.kind===Ne.NAMED_TYPE&&((T=w.prevState)===null||T===void 0?void 0:T.kind)===Ne.IMPLEMENTS)){ + if(i.interfaceDef){ + if((S=i.interfaceDef)===null||S===void 0?void 0:S.getInterfaces().find(({name:D})=>D===w.name))return;let k=r.getType(w.name),P=(A=i.interfaceDef)===null||A===void 0?void 0:A.toConfig();i.interfaceDef=new de.GraphQLInterfaceType(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,k||new de.GraphQLInterfaceType({name:w.name,fields:{}})]})); + }else if(i.objectTypeDef){ + if((b=i.objectTypeDef)===null||b===void 0?void 0:b.getInterfaces().find(({name:D})=>D===w.name))return;let k=r.getType(w.name),P=(C=i.objectTypeDef)===null||C===void 0?void 0:C.toConfig();i.objectTypeDef=new de.GraphQLObjectType(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,k||new de.GraphQLInterfaceType({name:w.name,fields:{}})]})); + } + } + });let f=i.interfaceDef||i.objectTypeDef,v=(f?.getInterfaces()||[]).map(({name:y})=>y),g=s.concat([...c].map(y=>({name:y}))).filter(({name:y})=>y!==f?.name&&!v.includes(y));return Cr(e,g.map(y=>{ + let w={label:y.name,kind:At.Interface,type:y};return y?.description&&(w.documentation=y.description),w; + })); +}function $fe(e,t,r,n){ + let i;if(t.parentType)if((0,de.isAbstractType)(t.parentType)){ + let o=(0,de.assertAbstractType)(t.parentType),s=r.getPossibleTypes(o),l=Object.create(null);for(let c of s)for(let f of c.getInterfaces())l[f.name]=f;i=s.concat(pu(l)); + }else i=[t.parentType];else{ + let o=r.getTypeMap();i=pu(o).filter(s=>(0,de.isCompositeType)(s)&&!s.name.startsWith('__')); + }return Cr(e,i.map(o=>{ + let s=(0,de.getNamedType)(o);return{label:String(o),documentation:s?.description||'',kind:At.Field}; + })); +}function ede(e,t,r,n,i){ + if(!n)return[];let o=r.getTypeMap(),s=_N(e.state),l=eq(n);i&&i.length>0&&l.push(...i);let c=l.filter(f=>o[f.typeCondition.name.value]&&!(s&&s.kind===Ne.FRAGMENT_DEFINITION&&s.name===f.name.value)&&(0,de.isCompositeType)(t.parentType)&&(0,de.isCompositeType)(o[f.typeCondition.name.value])&&(0,de.doTypesOverlap)(r,t.parentType,o[f.typeCondition.name.value]));return Cr(e,c.map(f=>({label:f.name.value,detail:String(o[f.typeCondition.name.value]),documentation:`fragment ${f.name.value} on ${f.typeCondition.name.value}`,kind:At.Field,type:o[f.typeCondition.name.value]}))); +}function TD(e,t,r){ + let n=null,i,o=Object.create({});return qA(e,(s,l)=>{ + if(l?.kind===Ne.VARIABLE&&l.name&&(n=l.name),l?.kind===Ne.NAMED_TYPE&&n){ + let c=tde(l,Ne.TYPE);c?.type&&(i=t.getType(c?.type)); + }n&&i&&!o[n]&&(o[n]={detail:i.toString(),insertText:r.string==='$'?n:'$'+n,label:n,type:i,kind:At.Variable},n=null,i=null); + }),pu(o); +}function eq(e){ + let t=[];return qA(e,(r,n)=>{ + n.kind===Ne.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Ne.FRAGMENT_DEFINITION,name:{kind:de.Kind.NAME,value:n.name},selectionSet:{kind:Ne.SELECTION_SET,selections:[]},typeCondition:{kind:Ne.NAMED_TYPE,name:{kind:de.Kind.NAME,value:n.type}}}); + }),t; +}function rde(e,t,r){ + let n=t.getTypeMap(),i=pu(n).filter(de.isInputType);return Cr(e,i.map(o=>({label:o.name,documentation:o.description,kind:At.Variable}))); +}function nde(e,t,r,n){ + var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){ + let o=r.getDirectives().filter(s=>tq(t.prevState,s));return Cr(e,o.map(s=>({label:s.name,documentation:s.description||'',kind:At.Function}))); + }return[]; +}function CD(e,t,r=0){ + let n=null,i=null,o=null,s=qA(e,(l,c,f,m)=>{ + if(!(m!==t.line||l.getCurrentPosition()+r{ + var w;switch(y.kind){ + case Ne.QUERY:case'ShortQuery':v=e.getQueryType();break;case Ne.MUTATION:v=e.getMutationType();break;case Ne.SUBSCRIPTION:v=e.getSubscriptionType();break;case Ne.INLINE_FRAGMENT:case Ne.FRAGMENT_DEFINITION:y.type&&(v=e.getType(y.type));break;case Ne.FIELD:case Ne.ALIASED_FIELD:{!v||!y.name?s=null:(s=m?NA(e,m,y.name):null,v=s?s.type:null);break;}case Ne.SELECTION_SET:m=(0,de.getNamedType)(v);break;case Ne.DIRECTIVE:i=y.name?e.getDirective(y.name):null;break;case Ne.INTERFACE_DEF:y.name&&(c=null,g=new de.GraphQLInterfaceType({name:y.name,interfaces:[],fields:{}}));break;case Ne.OBJECT_TYPE_DEF:y.name&&(g=null,c=new de.GraphQLObjectType({name:y.name,interfaces:[],fields:{}}));break;case Ne.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){ + case Ne.FIELD:n=s&&s.args;break;case Ne.DIRECTIVE:n=i&&i.args;break;case Ne.ALIASED_FIELD:{let C=(w=y.prevState)===null||w===void 0?void 0:w.name;if(!C){ + n=null;break; + }let x=m?NA(e,m,C):null;if(!x){ + n=null;break; + }n=x.args;break;}default:n=null;break; + }else n=null;break;}case Ne.ARGUMENT:if(n){ + for(let C=0;CC.value===y.name):null;break;case Ne.LIST_VALUE:let S=(0,de.getNullableType)(l);l=S instanceof de.GraphQLList?S.ofType:null;break;case Ne.OBJECT_VALUE:let A=(0,de.getNamedType)(l);f=A instanceof de.GraphQLInputObjectType?A.getFields():null;break;case Ne.OBJECT_FIELD:let b=y.name&&f?f[y.name]:null;l=b?.type;break;case Ne.NAMED_TYPE:y.name&&(v=e.getType(y.name));break; + } + }),{argDef:r,argDefs:n,directiveDef:i,enumValue:o,fieldDef:s,inputType:l,objectFieldDefs:f,parentType:m,type:v,interfaceDef:g,objectTypeDef:c}; +}function ide(e,t){ + return t?.endsWith('.graphqls')||Qfe(e)?Kc.TYPE_SYSTEM:Kc.EXECUTABLE; +}function rq(e){ + return e.prevState&&e.kind&&[Ne.NAMED_TYPE,Ne.LIST_TYPE,Ne.TYPE,Ne.NON_NULL_TYPE].includes(e.kind)?rq(e.prevState):e; +}var de,wD,zfe,Hfe,Qfe,FA,Wfe,tde,Kc,kD=at(()=>{ + de=fe(Ur());hD();IA();eD();wD={command:'editor.action.triggerSuggest',title:'Suggestions'},zfe=e=>{ + let t=[];if(e)try{ + (0,de.visit)((0,de.parse)(e),{FragmentDefinition(r){ + t.push(r); + }}); + }catch{ + return[]; + }return t; + },Hfe=[de.Kind.SCHEMA_DEFINITION,de.Kind.OPERATION_TYPE_DEFINITION,de.Kind.SCALAR_TYPE_DEFINITION,de.Kind.OBJECT_TYPE_DEFINITION,de.Kind.INTERFACE_TYPE_DEFINITION,de.Kind.UNION_TYPE_DEFINITION,de.Kind.ENUM_TYPE_DEFINITION,de.Kind.INPUT_OBJECT_TYPE_DEFINITION,de.Kind.DIRECTIVE_DEFINITION,de.Kind.SCHEMA_EXTENSION,de.Kind.SCALAR_TYPE_EXTENSION,de.Kind.OBJECT_TYPE_EXTENSION,de.Kind.INTERFACE_TYPE_EXTENSION,de.Kind.UNION_TYPE_EXTENSION,de.Kind.ENUM_TYPE_EXTENSION,de.Kind.INPUT_OBJECT_TYPE_EXTENSION],Qfe=e=>{ + let t=!1;if(e)try{ + (0,de.visit)((0,de.parse)(e),{enter(r){ + if(r.kind!=='Document')return Hfe.includes(r.kind)?(t=!0,de.BREAK):!1; + }}); + }catch{ + return t; + }return t; + };FA=` { + $1 +}`,Wfe=e=>{ + let{type:t}=e;return(0,de.isCompositeType)(t)||(0,de.isListType)(t)&&(0,de.isCompositeType)(t.ofType)||(0,de.isNonNullType)(t)&&((0,de.isCompositeType)(t.ofType)||(0,de.isListType)(t.ofType)&&(0,de.isCompositeType)(t.ofType.ofType))?FA:null; + };tde=(e,t)=>{ + var r,n,i,o,s,l,c,f,m,v;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((i=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((l=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||l===void 0?void 0:l.kind)===t)return e.prevState.prevState.prevState;if(((v=(m=(f=(c=e.prevState)===null||c===void 0?void 0:c.prevState)===null||f===void 0?void 0:f.prevState)===null||m===void 0?void 0:m.prevState)===null||v===void 0?void 0:v.kind)===t)return e.prevState.prevState.prevState.prevState; + };(function(e){ + e.TYPE_SYSTEM='TYPE_SYSTEM',e.EXECUTABLE='EXECUTABLE'; + })(Kc||(Kc={})); +});var iq=X((OOe,jA)=>{ + 'use strict';function nq(e,t){ + if(e!=null)return e;var r=new Error(t!==void 0?t:'Got unexpected '+e);throw r.framesToPop=1,r; + }jA.exports=nq;jA.exports.default=nq;Object.defineProperty(jA.exports,'__esModule',{value:!0}); +});var VA,OD,UA,oq=at(()=>{ + VA=fe(Ur()),OD=fe(iq()),UA=(e,t)=>{ + if(!t)return[];let r=new Map,n=new Set;(0,VA.visit)(e,{FragmentDefinition(s){ + r.set(s.name.value,!0); + },FragmentSpread(s){ + n.has(s.name.value)||n.add(s.name.value); + }});let i=new Set;for(let s of n)!r.has(s)&&t.has(s)&&i.add((0,OD.default)(t.get(s)));let o=[];for(let s of i)(0,VA.visit)(s,{FragmentSpread(l){ + !n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,OD.default)(t.get(l.name.value))),n.add(l.name.value)); + }}),r.has(s.name.value)||o.push(s);return o; + }; +});var aq=at(()=>{});var sq=at(()=>{});var Xc,mo,lq=at(()=>{ + Xc=class{ + constructor(t,r){ + this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r; + }setStart(t,r){ + this.start=new mo(t,r); + }setEnd(t,r){ + this.end=new mo(t,r); + } + },mo=class{ + constructor(t,r){ + this.lessThanOrEqualTo=n=>this.line!(l===Nt.NoUnusedFragmentsRule||l===Nt.ExecutableDefinitionsRule||n&&l===Nt.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(o,r),i&&Array.prototype.push.apply(o,ode),(0,Nt.validate)(e,t,o).filter(l=>{ + if(l.message.includes('Unknown directive')&&l.nodes){ + let c=l.nodes[0];if(c&&c.kind===Nt.Kind.DIRECTIVE){ + let f=c.name.value;if(f==='arguments'||f==='argumentDefinitions')return!1; + } + }return!0; + }); +}var Nt,ode,uq=at(()=>{ + Nt=fe(Ur()),ode=[Nt.LoneSchemaDefinitionRule,Nt.UniqueOperationTypesRule,Nt.UniqueTypeNamesRule,Nt.UniqueEnumValueNamesRule,Nt.UniqueFieldDefinitionNamesRule,Nt.UniqueDirectiveNamesRule,Nt.KnownTypeNamesRule,Nt.KnownDirectivesRule,Nt.UniqueDirectivesPerLocationRule,Nt.PossibleTypeExtensionsRule,Nt.UniqueArgumentNamesRule,Nt.UniqueInputFieldNamesRule]; +});function GA(e,t){ + let r=Object.create(null);for(let n of t.definitions)if(n.kind==='OperationDefinition'){ + let{variableDefinitions:i}=n;if(i)for(let{variable:o,type:s}of i){ + let l=(0,bp.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===bp.Kind.NAMED_TYPE&&s.name.value==='Float'&&(r[o.name.value]=bp.GraphQLFloat); + } + }return r; +}var bp,ND=at(()=>{ + bp=fe(Ur()); +});function DD(e,t){ + let r=t?GA(t,e):void 0,n=[];return(0,zA.visit)(e,{OperationDefinition(i){ + n.push(i); + }}),{variableToType:r,operations:n}; +}function Gv(e,t){ + if(t)try{ + let r=(0,zA.parse)(t);return Object.assign(Object.assign({},DD(r,e)),{documentAST:r}); + }catch{ + return; + } +}var zA,cq=at(()=>{ + zA=fe(Ur());ND(); +});var zv=at(()=>{ + oq();aq();sq();lq();uq();ND();cq(); +});var fq=at(()=>{ + zv(); +});function PD(e,t=null,r,n,i){ + var o,s;let l=null,c='';i&&(c=typeof i=='string'?i:i.reduce((m,v)=>m+(0,fs.print)(v)+` + +`,''));let f=c?`${e} + +${c}`:e;try{ + l=(0,fs.parse)(f); + }catch(m){ + if(m instanceof fs.GraphQLError){ + let v=mq((s=(o=m.locations)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:{line:0,column:0},f);return[{severity:HA.Error,message:m.message,source:'GraphQL: Syntax',range:v}]; + }throw m; + }return pq(l,t,r,n); +}function pq(e,t=null,r,n){ + if(!t)return[];let i=BA(t,e,r,n).flatMap(s=>dq(s,HA.Error,'Validation')),o=(0,fs.validate)(t,e,[fs.NoDeprecatedCustomRule]).flatMap(s=>dq(s,HA.Warning,'Deprecation'));return i.concat(o); +}function dq(e,t,r){ + if(!e.nodes)return[];let n=[];for(let[i,o]of e.nodes.entries()){ + let s=o.kind!=='Variable'&&'name'in o&&o.name!==void 0?o.name:'variable'in o&&o.variable!==void 0?o.variable:o;if(s){ + QA(e.locations,'GraphQL validation error requires locations.');let l=e.locations[i],c=dde(s),f=l.column+(c.end-c.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new Xc(new mo(l.line-1,l.column-1),new mo(l.line-1,f))}); + } + }return n; +}function mq(e,t){ + let r=po(),n=r.startState(),i=t.split(` +`);QA(i.length>=e.line,'Query text must have more lines than where the error happened');let o=null;for(let f=0;f{ + fs=fe(Ur());IA();zv();Hv={Error:'Error',Warning:'Warning',Information:'Information',Hint:'Hint'},HA={[Hv.Error]:1,[Hv.Warning]:2,[Hv.Information]:3,[Hv.Hint]:4},QA=(e,t)=>{ + if(!e)throw new Error(t); + }; +});var WA,JOe,vq=at(()=>{ + WA=fe(Ur());zv();({INLINE_FRAGMENT:JOe}=WA.Kind); +});var gq=at(()=>{ + kD(); +});var yq=at(()=>{ + eD();kD();fq();hq();vq();gq(); +});var Zc=at(()=>{ + yq();IA();hD();zv(); +});var Aq=X((yNe,bq)=>{ + 'use strict';bq.exports=function(t){ + return typeof t=='object'?t===null:typeof t!='function'; + }; +});var wq=X((bNe,xq)=>{ + 'use strict';xq.exports=function(t){ + return t!=null&&typeof t=='object'&&Array.isArray(t)===!1; + }; +});var Cq=X((ANe,Tq)=>{ + 'use strict';var hde=wq();function Eq(e){ + return hde(e)===!0&&Object.prototype.toString.call(e)==='[object Object]'; + }Tq.exports=function(t){ + var r,n;return!(Eq(t)===!1||(r=t.constructor,typeof r!='function')||(n=r.prototype,Eq(n)===!1)||n.hasOwnProperty('isPrototypeOf')===!1); + }; +});var Dq=X((xNe,Nq)=>{ + 'use strict';var{deleteProperty:vde}=Reflect,gde=Aq(),Sq=Cq(),kq=e=>typeof e=='object'&&e!==null||typeof e=='function',yde=e=>e==='__proto__'||e==='constructor'||e==='prototype',RD=e=>{ + if(!gde(e))throw new TypeError('Object keys must be strings or symbols');if(yde(e))throw new Error(`Cannot set unsafe key: "${e}"`); + },bde=e=>Array.isArray(e)?e.flat().map(String).join(','):e,Ade=(e,t)=>{ + if(typeof e!='string'||!t)return e;let r=e+';';return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r; + },xde=(e,t,r)=>{ + let n=bde(t?Ade(e,t):e);RD(n);let i=Jc.cache.get(n)||r();return Jc.cache.set(n,i),i; + },wde=(e,t={})=>{ + let r=t.separator||'.',n=r==='/'?!1:t.preservePaths;if(typeof e=='string'&&n!==!1&&/\//.test(e))return[e];let i=[],o='',s=l=>{ + let c;l.trim()!==''&&Number.isInteger(c=Number(l))?i.push(c):i.push(l); + };for(let l=0;lt&&typeof t.split=='function'?t.split(e):typeof e=='symbol'?[e]:Array.isArray(e)?e:xde(e,t,()=>wde(e,t)),Ede=(e,t,r,n)=>{ + if(RD(t),r===void 0)vde(e,t);else if(n&&n.merge){ + let i=n.merge==='function'?n.merge:Object.assign;i&&Sq(e[t])&&Sq(r)?e[t]=i(e[t],r):e[t]=r; + }else e[t]=r;return e; + },Jc=(e,t,r,n)=>{ + if(!t||!kq(e))return e;let i=Oq(t,n),o=e;for(let s=0;s{ + Jc.cache=new Map; + };Nq.exports=Jc; +});var Pq=X((wNe,Lq)=>{ + Lq.exports=function(){ + var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{ + 'use strict';var Tde=Pq(),Rq={'text/plain':'Text','text/html':'Url',default:'Text'},Cde='Copy to clipboard: #{key}, Enter';function Sde(e){ + var t=(/mac os x/i.test(navigator.userAgent)?'\u2318':'Ctrl')+'+C';return e.replace(/#{\s*key\s*}/g,t); + }function kde(e,t){ + var r,n,i,o,s,l,c=!1;t||(t={}),r=t.debug||!1;try{ + i=Tde(),o=document.createRange(),s=document.getSelection(),l=document.createElement('span'),l.textContent=e,l.ariaHidden='true',l.style.all='unset',l.style.position='fixed',l.style.top=0,l.style.clip='rect(0, 0, 0, 0)',l.style.whiteSpace='pre',l.style.webkitUserSelect='text',l.style.MozUserSelect='text',l.style.msUserSelect='text',l.style.userSelect='text',l.addEventListener('copy',function(m){ + if(m.stopPropagation(),t.format)if(m.preventDefault(),typeof m.clipboardData>'u'){ + r&&console.warn('unable to use e.clipboardData'),r&&console.warn('trying IE specific stuff'),window.clipboardData.clearData();var v=Rq[t.format]||Rq.default;window.clipboardData.setData(v,e); + }else m.clipboardData.clearData(),m.clipboardData.setData(t.format,e);t.onCopy&&(m.preventDefault(),t.onCopy(m.clipboardData)); + }),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var f=document.execCommand('copy');if(!f)throw new Error('copy command was unsuccessful');c=!0; + }catch(m){ + r&&console.error('unable to copy using execCommand: ',m),r&&console.warn('trying IE specific stuff');try{ + window.clipboardData.setData(t.format||'text',e),t.onCopy&&t.onCopy(window.clipboardData),c=!0; + }catch(v){ + r&&console.error('unable to copy using clipboardData: ',v),r&&console.error('falling back to prompt'),n=Sde('message'in t?t.message:Cde),window.prompt(n,e); + } + }finally{ + s&&(typeof s.removeRange=='function'?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i(); + }return c; + }Mq.exports=kde; +});var Kq=X(lr=>{ + 'use strict';function jD(e,t){ + var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(0>>1;nYA(l,r))cYA(f,l)?(e[n]=f,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else if(cYA(f,r))e[n]=f,e[c]=r,n=c;else break e; + } + }return t; + }function YA(e,t){ + var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id; + }typeof performance=='object'&&typeof performance.now=='function'?(Vq=performance,lr.unstable_now=function(){ + return Vq.now(); + }):(ID=Date,Uq=ID.now(),lr.unstable_now=function(){ + return ID.now()-Uq; + });var Vq,ID,Uq,ps=[],vu=[],Rde=1,Go=null,ci=3,ZA=!1,_c=!1,Wv=!1,zq=typeof setTimeout=='function'?setTimeout:null,Hq=typeof clearTimeout=='function'?clearTimeout:null,Bq=typeof setImmediate<'u'?setImmediate:null;typeof navigator<'u'&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function VD(e){ + for(var t=Ta(vu);t!==null;){ + if(t.callback===null)XA(vu);else if(t.startTime<=e)XA(vu),t.sortIndex=t.expirationTime,jD(ps,t);else break;t=Ta(vu); + } + }function UD(e){ + if(Wv=!1,VD(e),!_c)if(Ta(ps)!==null)_c=!0,GD(BD);else{ + var t=Ta(vu);t!==null&&zD(UD,t.startTime-e); + } + }function BD(e,t){ + _c=!1,Wv&&(Wv=!1,Hq(Yv),Yv=-1),ZA=!0;var r=ci;try{ + for(VD(t),Go=Ta(ps);Go!==null&&(!(Go.expirationTime>t)||e&&!Yq());){ + var n=Go.callback;if(typeof n=='function'){ + Go.callback=null,ci=Go.priorityLevel;var i=n(Go.expirationTime<=t);t=lr.unstable_now(),typeof i=='function'?Go.callback=i:Go===Ta(ps)&&XA(ps),VD(t); + }else XA(ps);Go=Ta(ps); + }if(Go!==null)var o=!0;else{ + var s=Ta(vu);s!==null&&zD(UD,s.startTime-t),o=!1; + }return o; + }finally{ + Go=null,ci=r,ZA=!1; + } + }var JA=!1,KA=null,Yv=-1,Qq=5,Wq=-1;function Yq(){ + return!(lr.unstable_now()-Wqe||125n?(e.sortIndex=r,jD(vu,e),Ta(ps)===null&&e===Ta(vu)&&(Wv?(Hq(Yv),Yv=-1):Wv=!0,zD(UD,r-n))):(e.sortIndex=i,jD(ps,e),_c||ZA||(_c=!0,GD(BD))),e; + };lr.unstable_shouldYield=Yq;lr.unstable_wrapCallback=function(e){ + var t=ci;return function(){ + var r=ci;ci=t;try{ + return e.apply(this,arguments); + }finally{ + ci=r; + } + }; + }; +});var Zq=X((INe,Xq)=>{ + 'use strict';Xq.exports=Kq(); +});var rB=X(Ao=>{ + 'use strict';var nV=Ee(),yo=Zq();function ke(e){ + for(var t='https://reactjs.org/docs/error-decoder.html?invariant='+e,r=1;r'u'||typeof window.document>'u'||typeof window.document.createElement>'u'),d2=Object.prototype.hasOwnProperty,Mde=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Jq={},_q={};function Ide(e){ + return d2.call(_q,e)?!0:d2.call(Jq,e)?!1:Mde.test(e)?_q[e]=!0:(Jq[e]=!0,!1); + }function Fde(e,t,r,n){ + if(r!==null&&r.type===0)return!1;switch(typeof t){ + case'function':case'symbol':return!0;case'boolean':return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=='data-'&&e!=='aria-');default:return!1; + } + }function qde(e,t,r,n){ + if(t===null||typeof t>'u'||Fde(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){ + case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t; + }return!1; + }function Ii(e,t,r,n,i,o,s){ + this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s; + }var Xn={};'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style'.split(' ').forEach(function(e){ + Xn[e]=new Ii(e,0,!1,e,null,!1,!1); + });[['acceptCharset','accept-charset'],['className','class'],['htmlFor','for'],['httpEquiv','http-equiv']].forEach(function(e){ + var t=e[0];Xn[t]=new Ii(t,1,!1,e[1],null,!1,!1); + });['contentEditable','draggable','spellCheck','value'].forEach(function(e){ + Xn[e]=new Ii(e,2,!1,e.toLowerCase(),null,!1,!1); + });['autoReverse','externalResourcesRequired','focusable','preserveAlpha'].forEach(function(e){ + Xn[e]=new Ii(e,2,!1,e,null,!1,!1); + });'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope'.split(' ').forEach(function(e){ + Xn[e]=new Ii(e,3,!1,e.toLowerCase(),null,!1,!1); + });['checked','multiple','muted','selected'].forEach(function(e){ + Xn[e]=new Ii(e,3,!0,e,null,!1,!1); + });['capture','download'].forEach(function(e){ + Xn[e]=new Ii(e,4,!1,e,null,!1,!1); + });['cols','rows','size','span'].forEach(function(e){ + Xn[e]=new Ii(e,6,!1,e,null,!1,!1); + });['rowSpan','start'].forEach(function(e){ + Xn[e]=new Ii(e,5,!1,e.toLowerCase(),null,!1,!1); + });var iL=/[\-:]([a-z])/g;function oL(e){ + return e[1].toUpperCase(); + }'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height'.split(' ').forEach(function(e){ + var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,null,!1,!1); + });'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type'.split(' ').forEach(function(e){ + var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,'http://www.w3.org/1999/xlink',!1,!1); + });['xml:base','xml:lang','xml:space'].forEach(function(e){ + var t=e.replace(iL,oL);Xn[t]=new Ii(t,1,!1,e,'http://www.w3.org/XML/1998/namespace',!1,!1); + });['tabIndex','crossOrigin'].forEach(function(e){ + Xn[e]=new Ii(e,1,!1,e.toLowerCase(),null,!1,!1); + });Xn.xlinkHref=new Ii('xlinkHref',1,!1,'xlink:href','http://www.w3.org/1999/xlink',!0,!1);['src','href','action','formAction'].forEach(function(e){ + Xn[e]=new Ii(e,1,!1,e.toLowerCase(),null,!0,!0); + });function aL(e,t,r,n){ + var i=Xn.hasOwnProperty(t)?Xn[t]:null;(i!==null?i.type!==0:n||!(2l||i[s]!==o[l]){ + var c=` +`+i[s].replace(' at new ',' at ');return e.displayName&&c.includes('')&&(c=c.replace('',e.displayName)),c; + }while(1<=s&&0<=l);break; + } + } + }finally{ + QD=!1,Error.prepareStackTrace=r; + }return(e=e?e.displayName||e.name:'')?rg(e):''; + }function jde(e){ + switch(e.tag){ + case 5:return rg(e.type);case 16:return rg('Lazy');case 13:return rg('Suspense');case 19:return rg('SuspenseList');case 0:case 2:case 15:return e=WD(e.type,!1),e;case 11:return e=WD(e.type.render,!1),e;case 1:return e=WD(e.type,!0),e;default:return''; + } + }function v2(e){ + if(e==null)return null;if(typeof e=='function')return e.displayName||e.name||null;if(typeof e=='string')return e;switch(e){ + case Cp:return'Fragment';case Tp:return'Portal';case p2:return'Profiler';case sL:return'StrictMode';case m2:return'Suspense';case h2:return'SuspenseList'; + }if(typeof e=='object')switch(e.$$typeof){ + case aV:return(e.displayName||'Context')+'.Consumer';case oV:return(e._context.displayName||'Context')+'.Provider';case lL:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||'',e=e!==''?'ForwardRef('+e+')':'ForwardRef'),e;case uL:return t=e.displayName||null,t!==null?t:v2(e.type)||'Memo';case yu:t=e._payload,e=e._init;try{ + return v2(e(t)); + }catch{} + }return null; + }function Vde(e){ + var t=e.type;switch(e.tag){ + case 24:return'Cache';case 9:return(t.displayName||'Context')+'.Consumer';case 10:return(t._context.displayName||'Context')+'.Provider';case 18:return'DehydratedFragment';case 11:return e=t.render,e=e.displayName||e.name||'',t.displayName||(e!==''?'ForwardRef('+e+')':'ForwardRef');case 7:return'Fragment';case 5:return t;case 4:return'Portal';case 3:return'Root';case 6:return'Text';case 16:return v2(t);case 8:return t===sL?'StrictMode':'Mode';case 22:return'Offscreen';case 12:return'Profiler';case 21:return'Scope';case 13:return'Suspense';case 19:return'SuspenseList';case 25:return'TracingMarker';case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=='function')return t.displayName||t.name||null;if(typeof t=='string')return t; + }return null; + }function Pu(e){ + switch(typeof e){ + case'boolean':case'number':case'string':case'undefined':return e;case'object':return e;default:return''; + } + }function lV(e){ + var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==='input'&&(t==='checkbox'||t==='radio'); + }function Ude(e){ + var t=lV(e)?'checked':'value',r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=''+e[t];if(!e.hasOwnProperty(t)&&typeof r<'u'&&typeof r.get=='function'&&typeof r.set=='function'){ + var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){ + return i.call(this); + },set:function(s){ + n=''+s,o.call(this,s); + }}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){ + return n; + },setValue:function(s){ + n=''+s; + },stopTracking:function(){ + e._valueTracker=null,delete e[t]; + }}; + } + }function $A(e){ + e._valueTracker||(e._valueTracker=Ude(e)); + }function uV(e){ + if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n='';return e&&(n=lV(e)?e.checked?'true':'false':e.value),e=n,e!==r?(t.setValue(e),!0):!1; + }function k1(e){ + if(e=e||(typeof document<'u'?document:void 0),typeof e>'u')return null;try{ + return e.activeElement||e.body; + }catch{ + return e.body; + } + }function g2(e,t){ + var r=t.checked;return Mr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked}); + }function ej(e,t){ + var r=t.defaultValue==null?'':t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==='checkbox'||t.type==='radio'?t.checked!=null:t.value!=null}; + }function cV(e,t){ + t=t.checked,t!=null&&aL(e,'checked',t,!1); + }function y2(e,t){ + cV(e,t);var r=Pu(t.value),n=t.type;if(r!=null)n==='number'?(r===0&&e.value===''||e.value!=r)&&(e.value=''+r):e.value!==''+r&&(e.value=''+r);else if(n==='submit'||n==='reset'){ + e.removeAttribute('value');return; + }t.hasOwnProperty('value')?b2(e,t.type,r):t.hasOwnProperty('defaultValue')&&b2(e,t.type,Pu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked); + }function tj(e,t,r){ + if(t.hasOwnProperty('value')||t.hasOwnProperty('defaultValue')){ + var n=t.type;if(!(n!=='submit'&&n!=='reset'||t.value!==void 0&&t.value!==null))return;t=''+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t; + }r=e.name,r!==''&&(e.name=''),e.defaultChecked=!!e._wrapperState.initialChecked,r!==''&&(e.name=r); + }function b2(e,t,r){ + (t!=='number'||k1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=''+e._wrapperState.initialValue:e.defaultValue!==''+r&&(e.defaultValue=''+r)); + }var ng=Array.isArray;function Fp(e,t,r,n){ + if(e=e.options,t){ + t={};for(var i=0;i'+t.valueOf().toString()+'',t=e1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild); + } + });function vg(e,t){ + if(t){ + var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){ + r.nodeValue=t;return; + } + }e.textContent=t; + }var ag={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bde=['Webkit','ms','Moz','O'];Object.keys(ag).forEach(function(e){ + Bde.forEach(function(t){ + t=t+e.charAt(0).toUpperCase()+e.substring(1),ag[t]=ag[e]; + }); + });function mV(e,t,r){ + return t==null||typeof t=='boolean'||t===''?'':r||typeof t!='number'||t===0||ag.hasOwnProperty(e)&&ag[e]?(''+t).trim():t+'px'; + }function hV(e,t){ + e=e.style;for(var r in t)if(t.hasOwnProperty(r)){ + var n=r.indexOf('--')===0,i=mV(r,t[r],n);r==='float'&&(r='cssFloat'),n?e.setProperty(r,i):e[r]=i; + } + }var Gde=Mr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function w2(e,t){ + if(t){ + if(Gde[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ke(137,e));if(t.dangerouslySetInnerHTML!=null){ + if(t.children!=null)throw Error(ke(60));if(typeof t.dangerouslySetInnerHTML!='object'||!('__html'in t.dangerouslySetInnerHTML))throw Error(ke(61)); + }if(t.style!=null&&typeof t.style!='object')throw Error(ke(62)); + } + }function E2(e,t){ + if(e.indexOf('-')===-1)return typeof t.is=='string';switch(e){ + case'annotation-xml':case'color-profile':case'font-face':case'font-face-src':case'font-face-uri':case'font-face-format':case'font-face-name':case'missing-glyph':return!1;default:return!0; + } + }var T2=null;function cL(e){ + return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e; + }var C2=null,qp=null,jp=null;function ij(e){ + if(e=Mg(e)){ + if(typeof C2!='function')throw Error(ke(280));var t=e.stateNode;t&&(t=tx(t),C2(e.stateNode,e.type,t)); + } + }function vV(e){ + qp?jp?jp.push(e):jp=[e]:qp=e; + }function gV(){ + if(qp){ + var e=qp,t=jp;if(jp=qp=null,ij(e),t)for(e=0;e>>=0,e===0?32:31-($de(e)/epe|0)|0; + }var t1=64,r1=4194304;function ig(e){ + switch(e&-e){ + case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e; + } + }function L1(e,t){ + var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){ + var l=s&~i;l!==0?n=ig(l):(o&=s,o!==0&&(n=ig(o))); + }else s=r&~i,s!==0?n=ig(s):o!==0&&(n=ig(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t; + }function Pg(e,t,r){ + e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Na(t),e[t]=r; + }function ipe(e,t){ + var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=lg),pj=String.fromCharCode(32),mj=!1;function qV(e,t){ + switch(e){ + case'keyup':return Ppe.indexOf(t.keyCode)!==-1;case'keydown':return t.keyCode!==229;case'keypress':case'mousedown':case'focusout':return!0;default:return!1; + } + }function jV(e){ + return e=e.detail,typeof e=='object'&&'data'in e?e.data:null; + }var Sp=!1;function Mpe(e,t){ + switch(e){ + case'compositionend':return jV(t);case'keypress':return t.which!==32?null:(mj=!0,pj);case'textInput':return e=t.data,e===pj&&mj?null:e;default:return null; + } + }function Ipe(e,t){ + if(Sp)return e==='compositionend'||!yL&&qV(e,t)?(e=IV(),y1=hL=wu=null,Sp=!1,e):null;switch(e){ + case'paste':return null;case'keypress':if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){ + if(t.char&&1=t)return{node:r,offset:t-e};e=n; + }e:{ + for(;r;){ + if(r.nextSibling){ + r=r.nextSibling;break e; + }r=r.parentNode; + }r=void 0; + }r=gj(r); + } + }function GV(e,t){ + return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GV(e,t.parentNode):'contains'in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1; + }function zV(){ + for(var e=window,t=k1();t instanceof e.HTMLIFrameElement;){ + try{ + var r=typeof t.contentWindow.location.href=='string'; + }catch{ + r=!1; + }if(r)e=t.contentWindow;else break;t=k1(e.document); + }return t; + }function bL(e){ + var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==='input'&&(e.type==='text'||e.type==='search'||e.type==='tel'||e.type==='url'||e.type==='password')||t==='textarea'||e.contentEditable==='true'); + }function Hpe(e){ + var t=zV(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GV(r.ownerDocument.documentElement,r)){ + if(n!==null&&bL(r)){ + if(t=n.start,e=n.end,e===void 0&&(e=t),'selectionStart'in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){ + e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=yj(r,o);var s=yj(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t))); + } + }for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=='function'&&r.focus(),r=0;r=document.documentMode,kp=null,L2=null,cg=null,P2=!1;function bj(e,t,r){ + var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;P2||kp==null||kp!==k1(n)||(n=kp,'selectionStart'in n&&bL(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),cg&&wg(cg,n)||(cg=n,n=M1(L2,'onSelect'),0Dp||(e.current=j2[Dp],j2[Dp]=null,Dp--); + }function ur(e,t){ + Dp++,j2[Dp]=e.current,e.current=t; + }var Ru={},mi=Iu(Ru),Yi=Iu(!1),sf=Ru;function zp(e,t){ + var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i; + }function Ki(e){ + return e=e.childContextTypes,e!=null; + }function F1(){ + yr(Yi),yr(mi); + }function Oj(e,t,r){ + if(mi.current!==Ru)throw Error(ke(168));ur(mi,t),ur(Yi,r); + }function _V(e,t,r){ + var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!='function')return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ke(108,Vde(e)||'Unknown',i));return Mr({},r,n); + }function q1(e){ + return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,sf=mi.current,ur(mi,e),ur(Yi,Yi.current),!0; + }function Nj(e,t,r){ + var n=e.stateNode;if(!n)throw Error(ke(169));r?(e=_V(e,t,sf),n.__reactInternalMemoizedMergedChildContext=e,yr(Yi),yr(mi),ur(mi,e)):yr(Yi),ur(Yi,r); + }var ll=null,rx=!1,n2=!1;function $V(e){ + ll===null?ll=[e]:ll.push(e); + }function eme(e){ + rx=!0,$V(e); + }function Fu(){ + if(!n2&&ll!==null){ + n2=!0;var e=0,t=Jt;try{ + var r=ll;for(Jt=1;e>=s,i-=s,ul=1<<32-Na(t)+i|r<N?(I=D,D=null):I=D.sibling;var V=g(A,D,C[N],x);if(V===null){ + D===null&&(D=I);break; + }e&&D&&V.alternate===null&&t(A,D),b=o(V,b,N),P===null?k=V:P.sibling=V,P=V,D=I; + }if(N===C.length)return r(A,D),Sr&&$c(A,N),k;if(D===null){ + for(;NN?(I=D,D=null):I=D.sibling;var G=g(A,D,V.value,x);if(G===null){ + D===null&&(D=I);break; + }e&&D&&G.alternate===null&&t(A,D),b=o(G,b,N),P===null?k=G:P.sibling=G,P=G,D=I; + }if(V.done)return r(A,D),Sr&&$c(A,N),k;if(D===null){ + for(;!V.done;N++,V=C.next())V=v(A,V.value,x),V!==null&&(b=o(V,b,N),P===null?k=V:P.sibling=V,P=V);return Sr&&$c(A,N),k; + }for(D=n(A,D);!V.done;N++,V=C.next())V=y(D,A,N,V.value,x),V!==null&&(e&&V.alternate!==null&&D.delete(V.key===null?N:V.key),b=o(V,b,N),P===null?k=V:P.sibling=V,P=V);return e&&D.forEach(function(B){ + return t(A,B); + }),Sr&&$c(A,N),k; + }function S(A,b,C,x){ + if(typeof C=='object'&&C!==null&&C.type===Cp&&C.key===null&&(C=C.props.children),typeof C=='object'&&C!==null){ + switch(C.$$typeof){ + case _A:e:{ + for(var k=C.key,P=b;P!==null;){ + if(P.key===k){ + if(k=C.type,k===Cp){ + if(P.tag===7){ + r(A,P.sibling),b=i(P,C.props.children),b.return=A,A=b;break e; + } + }else if(P.elementType===k||typeof k=='object'&&k!==null&&k.$$typeof===yu&&Fj(k)===P.type){ + r(A,P.sibling),b=i(P,C.props),b.ref=_v(A,P,C),b.return=A,A=b;break e; + }r(A,P);break; + }else t(A,P);P=P.sibling; + }C.type===Cp?(b=af(C.props.children,A.mode,x,C.key),b.return=A,A=b):(x=S1(C.type,C.key,C.props,null,A.mode,x),x.ref=_v(A,b,C),x.return=A,A=x); + }return s(A);case Tp:e:{ + for(P=C.key;b!==null;){ + if(b.key===P)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){ + r(A,b.sibling),b=i(b,C.children||[]),b.return=A,A=b;break e; + }else{ + r(A,b);break; + }else t(A,b);b=b.sibling; + }b=f2(C,A.mode,x),b.return=A,A=b; + }return s(A);case yu:return P=C._init,S(A,b,P(C._payload),x); + }if(ng(C))return w(A,b,C,x);if(Kv(C))return T(A,b,C,x);p1(A,C); + }return typeof C=='string'&&C!==''||typeof C=='number'?(C=''+C,b!==null&&b.tag===6?(r(A,b.sibling),b=i(b,C),b.return=A,A=b):(r(A,b),b=c2(C,A.mode,x),b.return=A,A=b),s(A)):r(A,b); + }return S; + }var Qp=sU(!0),lU=sU(!1),Ig={},ys=Iu(Ig),Sg=Iu(Ig),kg=Iu(Ig);function nf(e){ + if(e===Ig)throw Error(ke(174));return e; + }function OL(e,t){ + switch(ur(kg,t),ur(Sg,e),ur(ys,Ig),e=t.nodeType,e){ + case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:x2(null,'');break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=x2(t,e); + }yr(ys),ur(ys,t); + }function Wp(){ + yr(ys),yr(Sg),yr(kg); + }function uU(e){ + nf(kg.current);var t=nf(ys.current),r=x2(t,e.type);t!==r&&(ur(Sg,e),ur(ys,r)); + }function NL(e){ + Sg.current===e&&(yr(ys),yr(Sg)); + }var Pr=Iu(0);function z1(e){ + for(var t=e;t!==null;){ + if(t.tag===13){ + var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==='$?'||r.data==='$!'))return t; + }else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){ + if(t.flags&128)return t; + }else if(t.child!==null){ + t.child.return=t,t=t.child;continue; + }if(t===e)break;for(;t.sibling===null;){ + if(t.return===null||t.return===e)return null;t=t.return; + }t.sibling.return=t.return,t=t.sibling; + }return null; + }var i2=[];function DL(){ + for(var e=0;er?r:4,e(!0);var n=o2.transition;o2.transition={};try{ + e(!1),t(); + }finally{ + Jt=r,o2.transition=n; + } + }function CU(){ + return Ko().memoizedState; + }function ime(e,t,r){ + var n=Du(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},SU(e))kU(t,r);else if(r=nU(e,t,r,n),r!==null){ + var i=Mi();Da(r,e,n,i),OU(r,t,n); + } + }function ome(e,t,r){ + var n=Du(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(SU(e))kU(t,i);else{ + var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{ + var s=t.lastRenderedState,l=o(s,r);if(i.hasEagerState=!0,i.eagerState=l,La(l,s)){ + var c=t.interleaved;c===null?(i.next=i,SL(t)):(i.next=c.next,c.next=i),t.interleaved=i;return; + } + }catch{}finally{}r=nU(e,t,i,n),r!==null&&(i=Mi(),Da(r,e,n,i),OU(r,t,n)); + } + }function SU(e){ + var t=e.alternate;return e===Rr||t!==null&&t===Rr; + }function kU(e,t){ + fg=H1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t; + }function OU(e,t,r){ + if(r&4194240){ + var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dL(e,r); + } + }var Q1={readContext:Yo,useCallback:fi,useContext:fi,useEffect:fi,useImperativeHandle:fi,useInsertionEffect:fi,useLayoutEffect:fi,useMemo:fi,useReducer:fi,useRef:fi,useState:fi,useDebugValue:fi,useDeferredValue:fi,useTransition:fi,useMutableSource:fi,useSyncExternalStore:fi,useId:fi,unstable_isNewReconciler:!1},ame={readContext:Yo,useCallback:function(e,t){ + return hs().memoizedState=[e,t===void 0?null:t],e; + },useContext:Yo,useEffect:jj,useImperativeHandle:function(e,t,r){ + return r=r!=null?r.concat([e]):null,w1(4194308,4,AU.bind(null,t,e),r); + },useLayoutEffect:function(e,t){ + return w1(4194308,4,e,t); + },useInsertionEffect:function(e,t){ + return w1(4,2,e,t); + },useMemo:function(e,t){ + var r=hs();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e; + },useReducer:function(e,t,r){ + var n=hs();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ime.bind(null,Rr,e),[n.memoizedState,e]; + },useRef:function(e){ + var t=hs();return e={current:e},t.memoizedState=e; + },useState:qj,useDebugValue:IL,useDeferredValue:function(e){ + return hs().memoizedState=e; + },useTransition:function(){ + var e=qj(!1),t=e[0];return e=nme.bind(null,e[1]),hs().memoizedState=e,[t,e]; + },useMutableSource:function(){},useSyncExternalStore:function(e,t,r){ + var n=Rr,i=hs();if(Sr){ + if(r===void 0)throw Error(ke(407));r=r(); + }else{ + if(r=t(),Pn===null)throw Error(ke(349));uf&30||dU(n,t,r); + }i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,jj(mU.bind(null,n,o,e),[e]),n.flags|=2048,Dg(9,pU.bind(null,n,o,r,t),void 0,null),r; + },useId:function(){ + var e=hs(),t=Pn.identifierPrefix;if(Sr){ + var r=cl,n=ul;r=(n&~(1<<32-Na(n)-1)).toString(32)+r,t=':'+t+'R'+r,r=Og++,0<\/script>',e=e.removeChild(e.firstChild)):typeof n.is=='string'?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==='select'&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[vs]=t,e[Cg]=n,qU(e,t,!1,!1),t.stateNode=e;e:{ + switch(s=E2(r,n),r){ + case'dialog':gr('cancel',e),gr('close',e),i=n;break;case'iframe':case'object':case'embed':gr('load',e),i=n;break;case'video':case'audio':for(i=0;iKp&&(t.flags|=128,n=!0,$v(o,!1),t.lanes=4194304); + }else{ + if(!n)if(e=z1(s),e!==null){ + if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),$v(o,!0),o.tail===null&&o.tailMode==='hidden'&&!s.alternate&&!Sr)return di(t),null; + }else 2*Kr()-o.renderingStartTime>Kp&&r!==1073741824&&(t.flags|=128,n=!0,$v(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s); + }return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Kr(),t.sibling=null,r=Pr.current,ur(Pr,n?r&1|2:r&1),t):(di(t),null);case 22:case 23:return BL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?ho&1073741824&&(di(t),t.subtreeFlags&6&&(t.flags|=8192)):di(t),null;case 24:return null;case 25:return null; + }throw Error(ke(156,t.tag)); + }function mme(e,t){ + switch(xL(t),t.tag){ + case 1:return Ki(t.type)&&F1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wp(),yr(Yi),yr(mi),DL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return NL(t),null;case 13:if(yr(Pr),e=t.memoizedState,e!==null&&e.dehydrated!==null){ + if(t.alternate===null)throw Error(ke(340));Hp(); + }return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Pr),null;case 4:return Wp(),null;case 10:return CL(t.type._context),null;case 22:case 23:return BL(),null;case 24:return null;default:return null; + } + }var h1=!1,pi=!1,hme=typeof WeakSet=='function'?WeakSet:Set,We=null;function Mp(e,t){ + var r=e.ref;if(r!==null)if(typeof r=='function')try{ + r(null); + }catch(n){ + Br(e,t,n); + }else r.current=null; + }function Z2(e,t,r){ + try{ + r(); + }catch(n){ + Br(e,t,n); + } + }var Yj=!1;function vme(e,t){ + if(R2=P1,e=zV(),bL(e)){ + if('selectionStart'in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{ + r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){ + r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{ + r.nodeType,o.nodeType; + }catch{ + r=null;break e; + }var s=0,l=-1,c=-1,f=0,m=0,v=e,g=null;t:for(;;){ + for(var y;v!==r||i!==0&&v.nodeType!==3||(l=s+i),v!==o||n!==0&&v.nodeType!==3||(c=s+n),v.nodeType===3&&(s+=v.nodeValue.length),(y=v.firstChild)!==null;)g=v,v=y;for(;;){ + if(v===e)break t;if(g===r&&++f===i&&(l=s),g===o&&++m===n&&(c=s),(y=v.nextSibling)!==null)break;v=g,g=v.parentNode; + }v=y; + }r=l===-1||c===-1?null:{start:l,end:c}; + }else r=null; + }r=r||{start:0,end:0}; + }else r=null;for(M2={focusedElem:e,selectionRange:r},P1=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){ + t=We;try{ + var w=t.alternate;if(t.flags&1024)switch(t.tag){ + case 0:case 11:case 15:break;case 1:if(w!==null){ + var T=w.memoizedProps,S=w.memoizedState,A=t.stateNode,b=A.getSnapshotBeforeUpdate(t.elementType===t.type?T:Sa(t.type,T),S);A.__reactInternalSnapshotBeforeUpdate=b; + }break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent='':C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ke(163)); + } + }catch(x){ + Br(t,t.return,x); + }if(e=t.sibling,e!==null){ + e.return=t.return,We=e;break; + }We=t.return; + }return w=Yj,Yj=!1,w; + }function dg(e,t,r){ + var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){ + var i=n=n.next;do{ + if((i.tag&e)===e){ + var o=i.destroy;i.destroy=void 0,o!==void 0&&Z2(t,r,o); + }i=i.next; + }while(i!==n); + } + }function ox(e,t){ + if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){ + var r=t=t.next;do{ + if((r.tag&e)===e){ + var n=r.create;r.destroy=n(); + }r=r.next; + }while(r!==t); + } + }function J2(e){ + var t=e.ref;if(t!==null){ + var r=e.stateNode;switch(e.tag){ + case 5:e=r;break;default:e=r; + }typeof t=='function'?t(e):t.current=e; + } + }function UU(e){ + var t=e.alternate;t!==null&&(e.alternate=null,UU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vs],delete t[Cg],delete t[q2],delete t[_pe],delete t[$pe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null; + }function BU(e){ + return e.tag===5||e.tag===3||e.tag===4; + }function Kj(e){ + e:for(;;){ + for(;e.sibling===null;){ + if(e.return===null||BU(e.return))return null;e=e.return; + }for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){ + if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child; + }if(!(e.flags&2))return e.stateNode; + } + }function _2(e,t,r){ + var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=I1));else if(n!==4&&(e=e.child,e!==null))for(_2(e,t,r),e=e.sibling;e!==null;)_2(e,t,r),e=e.sibling; + }function $2(e,t,r){ + var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for($2(e,t,r),e=e.sibling;e!==null;)$2(e,t,r),e=e.sibling; + }var Yn=null,ka=!1;function gu(e,t,r){ + for(r=r.child;r!==null;)GU(e,t,r),r=r.sibling; + }function GU(e,t,r){ + if(gs&&typeof gs.onCommitFiberUnmount=='function')try{ + gs.onCommitFiberUnmount(J1,r); + }catch{}switch(r.tag){ + case 5:pi||Mp(r,t);case 6:var n=Yn,i=ka;Yn=null,gu(e,t,r),Yn=n,ka=i,Yn!==null&&(ka?(e=Yn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yn.removeChild(r.stateNode));break;case 18:Yn!==null&&(ka?(e=Yn,r=r.stateNode,e.nodeType===8?r2(e.parentNode,r):e.nodeType===1&&r2(e,r),Ag(e)):r2(Yn,r.stateNode));break;case 4:n=Yn,i=ka,Yn=r.stateNode.containerInfo,ka=!0,gu(e,t,r),Yn=n,ka=i;break;case 0:case 11:case 14:case 15:if(!pi&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){ + i=n=n.next;do{ + var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Z2(r,t,s),i=i.next; + }while(i!==n); + }gu(e,t,r);break;case 1:if(!pi&&(Mp(r,t),n=r.stateNode,typeof n.componentWillUnmount=='function'))try{ + n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount(); + }catch(l){ + Br(r,t,l); + }gu(e,t,r);break;case 21:gu(e,t,r);break;case 22:r.mode&1?(pi=(n=pi)||r.memoizedState!==null,gu(e,t,r),pi=n):gu(e,t,r);break;default:gu(e,t,r); + } + }function Xj(e){ + var t=e.updateQueue;if(t!==null){ + e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hme),t.forEach(function(n){ + var i=Cme.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i)); + }); + } + }function Ca(e,t){ + var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=s),n&=~o; + }if(n=i,n=Kr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*yme(n/1960))-n,10e?16:e,Eu===null)var n=!1;else{ + if(e=Eu,Eu=null,K1=0,It&6)throw Error(ke(331));var i=It;for(It|=4,We=e.current;We!==null;){ + var o=We,s=o.child;if(We.flags&16){ + var l=o.deletions;if(l!==null){ + for(var c=0;cKr()-VL?of(e,0):jL|=r),Xi(e,t); + }function ZU(e,t){ + t===0&&(e.mode&1?(t=r1,r1<<=1,!(r1&130023424)&&(r1=4194304)):t=1);var r=Mi();e=ml(e,t),e!==null&&(Pg(e,t,r),Xi(e,r)); + }function Tme(e){ + var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ZU(e,r); + }function Cme(e,t){ + var r=0;switch(e.tag){ + case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ke(314)); + }n!==null&&n.delete(t),ZU(e,r); + }var JU;JU=function(e,t,r){ + if(e!==null)if(e.memoizedProps!==t.pendingProps||Yi.current)Wi=!0;else{ + if(!(e.lanes&r)&&!(t.flags&128))return Wi=!1,dme(e,t,r);Wi=!!(e.flags&131072); + }else Wi=!1,Sr&&t.flags&1048576&&eU(t,V1,t.index);switch(t.lanes=0,t.tag){ + case 2:var n=t.type;E1(e,t),e=t.pendingProps;var i=zp(t,mi.current);Up(t,r),i=PL(null,t,n,e,i,r);var o=RL();return t.flags|=1,typeof i=='object'&&i!==null&&typeof i.render=='function'&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ki(n)?(o=!0,q1(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kL(t),i.updater=nx,t.stateNode=i,i._reactInternals=t,z2(t,n,e,r),t=W2(null,t,n,!0,o,r)):(t.tag=0,Sr&&o&&AL(t),Ri(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{ + switch(E1(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=kme(n),e=Sa(n,e),i){ + case 0:t=Q2(null,t,n,e,r);break e;case 1:t=Hj(null,t,n,e,r);break e;case 11:t=Gj(null,t,n,e,r);break e;case 14:t=zj(null,t,n,Sa(n.type,e),r);break e; + }throw Error(ke(306,n,'')); + }return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Q2(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Hj(e,t,n,i,r);case 3:e:{ + if(MU(t),e===null)throw Error(ke(387));n=t.pendingProps,o=t.memoizedState,i=o.element,iU(e,t),G1(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){ + i=Yp(Error(ke(423)),t),t=Qj(e,t,n,r,i);break e; + }else if(n!==i){ + i=Yp(Error(ke(424)),t),t=Qj(e,t,n,r,i);break e; + }else for(vo=ku(t.stateNode.containerInfo.firstChild),go=t,Sr=!0,Oa=null,r=lU(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{ + if(Hp(),n===i){ + t=hl(e,t,r);break e; + }Ri(e,t,n,r); + }t=t.child; + }return t;case 5:return uU(t),e===null&&U2(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,I2(n,i)?s=null:o!==null&&I2(n,o)&&(t.flags|=32),RU(e,t),Ri(e,t,s,r),t.child;case 6:return e===null&&U2(t),null;case 13:return IU(e,t,r);case 4:return OL(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Qp(t,null,n,r):Ri(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),Gj(e,t,n,i,r);case 7:return Ri(e,t,t.pendingProps,r),t.child;case 8:return Ri(e,t,t.pendingProps.children,r),t.child;case 12:return Ri(e,t,t.pendingProps.children,r),t.child;case 10:e:{ + if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ur(U1,n._currentValue),n._currentValue=s,o!==null)if(La(o.value,s)){ + if(o.children===i.children&&!Yi.current){ + t=hl(e,t,r);break e; + } + }else for(o=t.child,o!==null&&(o.return=t);o!==null;){ + var l=o.dependencies;if(l!==null){ + s=o.child;for(var c=l.firstContext;c!==null;){ + if(c.context===n){ + if(o.tag===1){ + c=fl(-1,r&-r),c.tag=2;var f=o.updateQueue;if(f!==null){ + f=f.shared;var m=f.pending;m===null?c.next=c:(c.next=m.next,m.next=c),f.pending=c; + } + }o.lanes|=r,c=o.alternate,c!==null&&(c.lanes|=r),B2(o.return,r,t),l.lanes|=r;break; + }c=c.next; + } + }else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){ + if(s=o.return,s===null)throw Error(ke(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),B2(s,r,t),s=o.sibling; + }else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){ + if(s===t){ + s=null;break; + }if(o=s.sibling,o!==null){ + o.return=s.return,s=o;break; + }s=s.return; + }o=s; + }Ri(e,t,i.children,r),t=t.child; + }return t;case 9:return i=t.type,n=t.pendingProps.children,Up(t,r),i=Yo(i),n=n(i),t.flags|=1,Ri(e,t,n,r),t.child;case 14:return n=t.type,i=Sa(n,t.pendingProps),i=Sa(n.type,i),zj(e,t,n,i,r);case 15:return LU(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sa(n,i),E1(e,t),t.tag=1,Ki(n)?(e=!0,q1(t)):e=!1,Up(t,r),aU(t,n,i),z2(t,n,i,r),W2(null,t,n,!0,e,r);case 19:return FU(e,t,r);case 22:return PU(e,t,r); + }throw Error(ke(156,t.tag)); + };function _U(e,t){ + return TV(e,t); + }function Sme(e,t,r,n){ + this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null; + }function Qo(e,t,r,n){ + return new Sme(e,t,r,n); + }function zL(e){ + return e=e.prototype,!(!e||!e.isReactComponent); + }function kme(e){ + if(typeof e=='function')return zL(e)?1:0;if(e!=null){ + if(e=e.$$typeof,e===lL)return 11;if(e===uL)return 14; + }return 2; + }function Lu(e,t){ + var r=e.alternate;return r===null?(r=Qo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r; + }function S1(e,t,r,n,i,o){ + var s=2;if(n=e,typeof e=='function')zL(e)&&(s=1);else if(typeof e=='string')s=5;else e:switch(e){ + case Cp:return af(r.children,i,o,t);case sL:s=8,i|=8;break;case p2:return e=Qo(12,r,t,i|2),e.elementType=p2,e.lanes=o,e;case m2:return e=Qo(13,r,t,i),e.elementType=m2,e.lanes=o,e;case h2:return e=Qo(19,r,t,i),e.elementType=h2,e.lanes=o,e;case sV:return sx(r,i,o,t);default:if(typeof e=='object'&&e!==null)switch(e.$$typeof){ + case oV:s=10;break e;case aV:s=9;break e;case lL:s=11;break e;case uL:s=14;break e;case yu:s=16,n=null;break e; + }throw Error(ke(130,e==null?e:typeof e,'')); + }return t=Qo(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t; + }function af(e,t,r,n){ + return e=Qo(7,e,n,t),e.lanes=r,e; + }function sx(e,t,r,n){ + return e=Qo(22,e,n,t),e.elementType=sV,e.lanes=r,e.stateNode={isHidden:!1},e; + }function c2(e,t,r){ + return e=Qo(6,e,null,t),e.lanes=r,e; + }function f2(e,t,r){ + return t=Qo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t; + }function Ome(e,t,r,n,i){ + this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=KD(0),this.expirationTimes=KD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=KD(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null; + }function HL(e,t,r,n,i,o,s,l,c){ + return e=new Ome(e,t,r,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},kL(o),e; + }function Nme(e,t,r){ + var n=3{ + 'use strict';function nB(){ + if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>'u'||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!='function'))try{ + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nB); + }catch(e){ + console.error(e); + } + }nB(),iB.exports=rB(); +});var nz=X((EPe,sge)=>{ + sge.exports={Aacute:'\xC1',aacute:'\xE1',Abreve:'\u0102',abreve:'\u0103',ac:'\u223E',acd:'\u223F',acE:'\u223E\u0333',Acirc:'\xC2',acirc:'\xE2',acute:'\xB4',Acy:'\u0410',acy:'\u0430',AElig:'\xC6',aelig:'\xE6',af:'\u2061',Afr:'\u{1D504}',afr:'\u{1D51E}',Agrave:'\xC0',agrave:'\xE0',alefsym:'\u2135',aleph:'\u2135',Alpha:'\u0391',alpha:'\u03B1',Amacr:'\u0100',amacr:'\u0101',amalg:'\u2A3F',amp:'&',AMP:'&',andand:'\u2A55',And:'\u2A53',and:'\u2227',andd:'\u2A5C',andslope:'\u2A58',andv:'\u2A5A',ang:'\u2220',ange:'\u29A4',angle:'\u2220',angmsdaa:'\u29A8',angmsdab:'\u29A9',angmsdac:'\u29AA',angmsdad:'\u29AB',angmsdae:'\u29AC',angmsdaf:'\u29AD',angmsdag:'\u29AE',angmsdah:'\u29AF',angmsd:'\u2221',angrt:'\u221F',angrtvb:'\u22BE',angrtvbd:'\u299D',angsph:'\u2222',angst:'\xC5',angzarr:'\u237C',Aogon:'\u0104',aogon:'\u0105',Aopf:'\u{1D538}',aopf:'\u{1D552}',apacir:'\u2A6F',ap:'\u2248',apE:'\u2A70',ape:'\u224A',apid:'\u224B',apos:"'",ApplyFunction:'\u2061',approx:'\u2248',approxeq:'\u224A',Aring:'\xC5',aring:'\xE5',Ascr:'\u{1D49C}',ascr:'\u{1D4B6}',Assign:'\u2254',ast:'*',asymp:'\u2248',asympeq:'\u224D',Atilde:'\xC3',atilde:'\xE3',Auml:'\xC4',auml:'\xE4',awconint:'\u2233',awint:'\u2A11',backcong:'\u224C',backepsilon:'\u03F6',backprime:'\u2035',backsim:'\u223D',backsimeq:'\u22CD',Backslash:'\u2216',Barv:'\u2AE7',barvee:'\u22BD',barwed:'\u2305',Barwed:'\u2306',barwedge:'\u2305',bbrk:'\u23B5',bbrktbrk:'\u23B6',bcong:'\u224C',Bcy:'\u0411',bcy:'\u0431',bdquo:'\u201E',becaus:'\u2235',because:'\u2235',Because:'\u2235',bemptyv:'\u29B0',bepsi:'\u03F6',bernou:'\u212C',Bernoullis:'\u212C',Beta:'\u0392',beta:'\u03B2',beth:'\u2136',between:'\u226C',Bfr:'\u{1D505}',bfr:'\u{1D51F}',bigcap:'\u22C2',bigcirc:'\u25EF',bigcup:'\u22C3',bigodot:'\u2A00',bigoplus:'\u2A01',bigotimes:'\u2A02',bigsqcup:'\u2A06',bigstar:'\u2605',bigtriangledown:'\u25BD',bigtriangleup:'\u25B3',biguplus:'\u2A04',bigvee:'\u22C1',bigwedge:'\u22C0',bkarow:'\u290D',blacklozenge:'\u29EB',blacksquare:'\u25AA',blacktriangle:'\u25B4',blacktriangledown:'\u25BE',blacktriangleleft:'\u25C2',blacktriangleright:'\u25B8',blank:'\u2423',blk12:'\u2592',blk14:'\u2591',blk34:'\u2593',block:'\u2588',bne:'=\u20E5',bnequiv:'\u2261\u20E5',bNot:'\u2AED',bnot:'\u2310',Bopf:'\u{1D539}',bopf:'\u{1D553}',bot:'\u22A5',bottom:'\u22A5',bowtie:'\u22C8',boxbox:'\u29C9',boxdl:'\u2510',boxdL:'\u2555',boxDl:'\u2556',boxDL:'\u2557',boxdr:'\u250C',boxdR:'\u2552',boxDr:'\u2553',boxDR:'\u2554',boxh:'\u2500',boxH:'\u2550',boxhd:'\u252C',boxHd:'\u2564',boxhD:'\u2565',boxHD:'\u2566',boxhu:'\u2534',boxHu:'\u2567',boxhU:'\u2568',boxHU:'\u2569',boxminus:'\u229F',boxplus:'\u229E',boxtimes:'\u22A0',boxul:'\u2518',boxuL:'\u255B',boxUl:'\u255C',boxUL:'\u255D',boxur:'\u2514',boxuR:'\u2558',boxUr:'\u2559',boxUR:'\u255A',boxv:'\u2502',boxV:'\u2551',boxvh:'\u253C',boxvH:'\u256A',boxVh:'\u256B',boxVH:'\u256C',boxvl:'\u2524',boxvL:'\u2561',boxVl:'\u2562',boxVL:'\u2563',boxvr:'\u251C',boxvR:'\u255E',boxVr:'\u255F',boxVR:'\u2560',bprime:'\u2035',breve:'\u02D8',Breve:'\u02D8',brvbar:'\xA6',bscr:'\u{1D4B7}',Bscr:'\u212C',bsemi:'\u204F',bsim:'\u223D',bsime:'\u22CD',bsolb:'\u29C5',bsol:'\\',bsolhsub:'\u27C8',bull:'\u2022',bullet:'\u2022',bump:'\u224E',bumpE:'\u2AAE',bumpe:'\u224F',Bumpeq:'\u224E',bumpeq:'\u224F',Cacute:'\u0106',cacute:'\u0107',capand:'\u2A44',capbrcup:'\u2A49',capcap:'\u2A4B',cap:'\u2229',Cap:'\u22D2',capcup:'\u2A47',capdot:'\u2A40',CapitalDifferentialD:'\u2145',caps:'\u2229\uFE00',caret:'\u2041',caron:'\u02C7',Cayleys:'\u212D',ccaps:'\u2A4D',Ccaron:'\u010C',ccaron:'\u010D',Ccedil:'\xC7',ccedil:'\xE7',Ccirc:'\u0108',ccirc:'\u0109',Cconint:'\u2230',ccups:'\u2A4C',ccupssm:'\u2A50',Cdot:'\u010A',cdot:'\u010B',cedil:'\xB8',Cedilla:'\xB8',cemptyv:'\u29B2',cent:'\xA2',centerdot:'\xB7',CenterDot:'\xB7',cfr:'\u{1D520}',Cfr:'\u212D',CHcy:'\u0427',chcy:'\u0447',check:'\u2713',checkmark:'\u2713',Chi:'\u03A7',chi:'\u03C7',circ:'\u02C6',circeq:'\u2257',circlearrowleft:'\u21BA',circlearrowright:'\u21BB',circledast:'\u229B',circledcirc:'\u229A',circleddash:'\u229D',CircleDot:'\u2299',circledR:'\xAE',circledS:'\u24C8',CircleMinus:'\u2296',CirclePlus:'\u2295',CircleTimes:'\u2297',cir:'\u25CB',cirE:'\u29C3',cire:'\u2257',cirfnint:'\u2A10',cirmid:'\u2AEF',cirscir:'\u29C2',ClockwiseContourIntegral:'\u2232',CloseCurlyDoubleQuote:'\u201D',CloseCurlyQuote:'\u2019',clubs:'\u2663',clubsuit:'\u2663',colon:':',Colon:'\u2237',Colone:'\u2A74',colone:'\u2254',coloneq:'\u2254',comma:',',commat:'@',comp:'\u2201',compfn:'\u2218',complement:'\u2201',complexes:'\u2102',cong:'\u2245',congdot:'\u2A6D',Congruent:'\u2261',conint:'\u222E',Conint:'\u222F',ContourIntegral:'\u222E',copf:'\u{1D554}',Copf:'\u2102',coprod:'\u2210',Coproduct:'\u2210',copy:'\xA9',COPY:'\xA9',copysr:'\u2117',CounterClockwiseContourIntegral:'\u2233',crarr:'\u21B5',cross:'\u2717',Cross:'\u2A2F',Cscr:'\u{1D49E}',cscr:'\u{1D4B8}',csub:'\u2ACF',csube:'\u2AD1',csup:'\u2AD0',csupe:'\u2AD2',ctdot:'\u22EF',cudarrl:'\u2938',cudarrr:'\u2935',cuepr:'\u22DE',cuesc:'\u22DF',cularr:'\u21B6',cularrp:'\u293D',cupbrcap:'\u2A48',cupcap:'\u2A46',CupCap:'\u224D',cup:'\u222A',Cup:'\u22D3',cupcup:'\u2A4A',cupdot:'\u228D',cupor:'\u2A45',cups:'\u222A\uFE00',curarr:'\u21B7',curarrm:'\u293C',curlyeqprec:'\u22DE',curlyeqsucc:'\u22DF',curlyvee:'\u22CE',curlywedge:'\u22CF',curren:'\xA4',curvearrowleft:'\u21B6',curvearrowright:'\u21B7',cuvee:'\u22CE',cuwed:'\u22CF',cwconint:'\u2232',cwint:'\u2231',cylcty:'\u232D',dagger:'\u2020',Dagger:'\u2021',daleth:'\u2138',darr:'\u2193',Darr:'\u21A1',dArr:'\u21D3',dash:'\u2010',Dashv:'\u2AE4',dashv:'\u22A3',dbkarow:'\u290F',dblac:'\u02DD',Dcaron:'\u010E',dcaron:'\u010F',Dcy:'\u0414',dcy:'\u0434',ddagger:'\u2021',ddarr:'\u21CA',DD:'\u2145',dd:'\u2146',DDotrahd:'\u2911',ddotseq:'\u2A77',deg:'\xB0',Del:'\u2207',Delta:'\u0394',delta:'\u03B4',demptyv:'\u29B1',dfisht:'\u297F',Dfr:'\u{1D507}',dfr:'\u{1D521}',dHar:'\u2965',dharl:'\u21C3',dharr:'\u21C2',DiacriticalAcute:'\xB4',DiacriticalDot:'\u02D9',DiacriticalDoubleAcute:'\u02DD',DiacriticalGrave:'`',DiacriticalTilde:'\u02DC',diam:'\u22C4',diamond:'\u22C4',Diamond:'\u22C4',diamondsuit:'\u2666',diams:'\u2666',die:'\xA8',DifferentialD:'\u2146',digamma:'\u03DD',disin:'\u22F2',div:'\xF7',divide:'\xF7',divideontimes:'\u22C7',divonx:'\u22C7',DJcy:'\u0402',djcy:'\u0452',dlcorn:'\u231E',dlcrop:'\u230D',dollar:'$',Dopf:'\u{1D53B}',dopf:'\u{1D555}',Dot:'\xA8',dot:'\u02D9',DotDot:'\u20DC',doteq:'\u2250',doteqdot:'\u2251',DotEqual:'\u2250',dotminus:'\u2238',dotplus:'\u2214',dotsquare:'\u22A1',doublebarwedge:'\u2306',DoubleContourIntegral:'\u222F',DoubleDot:'\xA8',DoubleDownArrow:'\u21D3',DoubleLeftArrow:'\u21D0',DoubleLeftRightArrow:'\u21D4',DoubleLeftTee:'\u2AE4',DoubleLongLeftArrow:'\u27F8',DoubleLongLeftRightArrow:'\u27FA',DoubleLongRightArrow:'\u27F9',DoubleRightArrow:'\u21D2',DoubleRightTee:'\u22A8',DoubleUpArrow:'\u21D1',DoubleUpDownArrow:'\u21D5',DoubleVerticalBar:'\u2225',DownArrowBar:'\u2913',downarrow:'\u2193',DownArrow:'\u2193',Downarrow:'\u21D3',DownArrowUpArrow:'\u21F5',DownBreve:'\u0311',downdownarrows:'\u21CA',downharpoonleft:'\u21C3',downharpoonright:'\u21C2',DownLeftRightVector:'\u2950',DownLeftTeeVector:'\u295E',DownLeftVectorBar:'\u2956',DownLeftVector:'\u21BD',DownRightTeeVector:'\u295F',DownRightVectorBar:'\u2957',DownRightVector:'\u21C1',DownTeeArrow:'\u21A7',DownTee:'\u22A4',drbkarow:'\u2910',drcorn:'\u231F',drcrop:'\u230C',Dscr:'\u{1D49F}',dscr:'\u{1D4B9}',DScy:'\u0405',dscy:'\u0455',dsol:'\u29F6',Dstrok:'\u0110',dstrok:'\u0111',dtdot:'\u22F1',dtri:'\u25BF',dtrif:'\u25BE',duarr:'\u21F5',duhar:'\u296F',dwangle:'\u29A6',DZcy:'\u040F',dzcy:'\u045F',dzigrarr:'\u27FF',Eacute:'\xC9',eacute:'\xE9',easter:'\u2A6E',Ecaron:'\u011A',ecaron:'\u011B',Ecirc:'\xCA',ecirc:'\xEA',ecir:'\u2256',ecolon:'\u2255',Ecy:'\u042D',ecy:'\u044D',eDDot:'\u2A77',Edot:'\u0116',edot:'\u0117',eDot:'\u2251',ee:'\u2147',efDot:'\u2252',Efr:'\u{1D508}',efr:'\u{1D522}',eg:'\u2A9A',Egrave:'\xC8',egrave:'\xE8',egs:'\u2A96',egsdot:'\u2A98',el:'\u2A99',Element:'\u2208',elinters:'\u23E7',ell:'\u2113',els:'\u2A95',elsdot:'\u2A97',Emacr:'\u0112',emacr:'\u0113',empty:'\u2205',emptyset:'\u2205',EmptySmallSquare:'\u25FB',emptyv:'\u2205',EmptyVerySmallSquare:'\u25AB',emsp13:'\u2004',emsp14:'\u2005',emsp:'\u2003',ENG:'\u014A',eng:'\u014B',ensp:'\u2002',Eogon:'\u0118',eogon:'\u0119',Eopf:'\u{1D53C}',eopf:'\u{1D556}',epar:'\u22D5',eparsl:'\u29E3',eplus:'\u2A71',epsi:'\u03B5',Epsilon:'\u0395',epsilon:'\u03B5',epsiv:'\u03F5',eqcirc:'\u2256',eqcolon:'\u2255',eqsim:'\u2242',eqslantgtr:'\u2A96',eqslantless:'\u2A95',Equal:'\u2A75',equals:'=',EqualTilde:'\u2242',equest:'\u225F',Equilibrium:'\u21CC',equiv:'\u2261',equivDD:'\u2A78',eqvparsl:'\u29E5',erarr:'\u2971',erDot:'\u2253',escr:'\u212F',Escr:'\u2130',esdot:'\u2250',Esim:'\u2A73',esim:'\u2242',Eta:'\u0397',eta:'\u03B7',ETH:'\xD0',eth:'\xF0',Euml:'\xCB',euml:'\xEB',euro:'\u20AC',excl:'!',exist:'\u2203',Exists:'\u2203',expectation:'\u2130',exponentiale:'\u2147',ExponentialE:'\u2147',fallingdotseq:'\u2252',Fcy:'\u0424',fcy:'\u0444',female:'\u2640',ffilig:'\uFB03',fflig:'\uFB00',ffllig:'\uFB04',Ffr:'\u{1D509}',ffr:'\u{1D523}',filig:'\uFB01',FilledSmallSquare:'\u25FC',FilledVerySmallSquare:'\u25AA',fjlig:'fj',flat:'\u266D',fllig:'\uFB02',fltns:'\u25B1',fnof:'\u0192',Fopf:'\u{1D53D}',fopf:'\u{1D557}',forall:'\u2200',ForAll:'\u2200',fork:'\u22D4',forkv:'\u2AD9',Fouriertrf:'\u2131',fpartint:'\u2A0D',frac12:'\xBD',frac13:'\u2153',frac14:'\xBC',frac15:'\u2155',frac16:'\u2159',frac18:'\u215B',frac23:'\u2154',frac25:'\u2156',frac34:'\xBE',frac35:'\u2157',frac38:'\u215C',frac45:'\u2158',frac56:'\u215A',frac58:'\u215D',frac78:'\u215E',frasl:'\u2044',frown:'\u2322',fscr:'\u{1D4BB}',Fscr:'\u2131',gacute:'\u01F5',Gamma:'\u0393',gamma:'\u03B3',Gammad:'\u03DC',gammad:'\u03DD',gap:'\u2A86',Gbreve:'\u011E',gbreve:'\u011F',Gcedil:'\u0122',Gcirc:'\u011C',gcirc:'\u011D',Gcy:'\u0413',gcy:'\u0433',Gdot:'\u0120',gdot:'\u0121',ge:'\u2265',gE:'\u2267',gEl:'\u2A8C',gel:'\u22DB',geq:'\u2265',geqq:'\u2267',geqslant:'\u2A7E',gescc:'\u2AA9',ges:'\u2A7E',gesdot:'\u2A80',gesdoto:'\u2A82',gesdotol:'\u2A84',gesl:'\u22DB\uFE00',gesles:'\u2A94',Gfr:'\u{1D50A}',gfr:'\u{1D524}',gg:'\u226B',Gg:'\u22D9',ggg:'\u22D9',gimel:'\u2137',GJcy:'\u0403',gjcy:'\u0453',gla:'\u2AA5',gl:'\u2277',glE:'\u2A92',glj:'\u2AA4',gnap:'\u2A8A',gnapprox:'\u2A8A',gne:'\u2A88',gnE:'\u2269',gneq:'\u2A88',gneqq:'\u2269',gnsim:'\u22E7',Gopf:'\u{1D53E}',gopf:'\u{1D558}',grave:'`',GreaterEqual:'\u2265',GreaterEqualLess:'\u22DB',GreaterFullEqual:'\u2267',GreaterGreater:'\u2AA2',GreaterLess:'\u2277',GreaterSlantEqual:'\u2A7E',GreaterTilde:'\u2273',Gscr:'\u{1D4A2}',gscr:'\u210A',gsim:'\u2273',gsime:'\u2A8E',gsiml:'\u2A90',gtcc:'\u2AA7',gtcir:'\u2A7A',gt:'>',GT:'>',Gt:'\u226B',gtdot:'\u22D7',gtlPar:'\u2995',gtquest:'\u2A7C',gtrapprox:'\u2A86',gtrarr:'\u2978',gtrdot:'\u22D7',gtreqless:'\u22DB',gtreqqless:'\u2A8C',gtrless:'\u2277',gtrsim:'\u2273',gvertneqq:'\u2269\uFE00',gvnE:'\u2269\uFE00',Hacek:'\u02C7',hairsp:'\u200A',half:'\xBD',hamilt:'\u210B',HARDcy:'\u042A',hardcy:'\u044A',harrcir:'\u2948',harr:'\u2194',hArr:'\u21D4',harrw:'\u21AD',Hat:'^',hbar:'\u210F',Hcirc:'\u0124',hcirc:'\u0125',hearts:'\u2665',heartsuit:'\u2665',hellip:'\u2026',hercon:'\u22B9',hfr:'\u{1D525}',Hfr:'\u210C',HilbertSpace:'\u210B',hksearow:'\u2925',hkswarow:'\u2926',hoarr:'\u21FF',homtht:'\u223B',hookleftarrow:'\u21A9',hookrightarrow:'\u21AA',hopf:'\u{1D559}',Hopf:'\u210D',horbar:'\u2015',HorizontalLine:'\u2500',hscr:'\u{1D4BD}',Hscr:'\u210B',hslash:'\u210F',Hstrok:'\u0126',hstrok:'\u0127',HumpDownHump:'\u224E',HumpEqual:'\u224F',hybull:'\u2043',hyphen:'\u2010',Iacute:'\xCD',iacute:'\xED',ic:'\u2063',Icirc:'\xCE',icirc:'\xEE',Icy:'\u0418',icy:'\u0438',Idot:'\u0130',IEcy:'\u0415',iecy:'\u0435',iexcl:'\xA1',iff:'\u21D4',ifr:'\u{1D526}',Ifr:'\u2111',Igrave:'\xCC',igrave:'\xEC',ii:'\u2148',iiiint:'\u2A0C',iiint:'\u222D',iinfin:'\u29DC',iiota:'\u2129',IJlig:'\u0132',ijlig:'\u0133',Imacr:'\u012A',imacr:'\u012B',image:'\u2111',ImaginaryI:'\u2148',imagline:'\u2110',imagpart:'\u2111',imath:'\u0131',Im:'\u2111',imof:'\u22B7',imped:'\u01B5',Implies:'\u21D2',incare:'\u2105',in:'\u2208',infin:'\u221E',infintie:'\u29DD',inodot:'\u0131',intcal:'\u22BA',int:'\u222B',Int:'\u222C',integers:'\u2124',Integral:'\u222B',intercal:'\u22BA',Intersection:'\u22C2',intlarhk:'\u2A17',intprod:'\u2A3C',InvisibleComma:'\u2063',InvisibleTimes:'\u2062',IOcy:'\u0401',iocy:'\u0451',Iogon:'\u012E',iogon:'\u012F',Iopf:'\u{1D540}',iopf:'\u{1D55A}',Iota:'\u0399',iota:'\u03B9',iprod:'\u2A3C',iquest:'\xBF',iscr:'\u{1D4BE}',Iscr:'\u2110',isin:'\u2208',isindot:'\u22F5',isinE:'\u22F9',isins:'\u22F4',isinsv:'\u22F3',isinv:'\u2208',it:'\u2062',Itilde:'\u0128',itilde:'\u0129',Iukcy:'\u0406',iukcy:'\u0456',Iuml:'\xCF',iuml:'\xEF',Jcirc:'\u0134',jcirc:'\u0135',Jcy:'\u0419',jcy:'\u0439',Jfr:'\u{1D50D}',jfr:'\u{1D527}',jmath:'\u0237',Jopf:'\u{1D541}',jopf:'\u{1D55B}',Jscr:'\u{1D4A5}',jscr:'\u{1D4BF}',Jsercy:'\u0408',jsercy:'\u0458',Jukcy:'\u0404',jukcy:'\u0454',Kappa:'\u039A',kappa:'\u03BA',kappav:'\u03F0',Kcedil:'\u0136',kcedil:'\u0137',Kcy:'\u041A',kcy:'\u043A',Kfr:'\u{1D50E}',kfr:'\u{1D528}',kgreen:'\u0138',KHcy:'\u0425',khcy:'\u0445',KJcy:'\u040C',kjcy:'\u045C',Kopf:'\u{1D542}',kopf:'\u{1D55C}',Kscr:'\u{1D4A6}',kscr:'\u{1D4C0}',lAarr:'\u21DA',Lacute:'\u0139',lacute:'\u013A',laemptyv:'\u29B4',lagran:'\u2112',Lambda:'\u039B',lambda:'\u03BB',lang:'\u27E8',Lang:'\u27EA',langd:'\u2991',langle:'\u27E8',lap:'\u2A85',Laplacetrf:'\u2112',laquo:'\xAB',larrb:'\u21E4',larrbfs:'\u291F',larr:'\u2190',Larr:'\u219E',lArr:'\u21D0',larrfs:'\u291D',larrhk:'\u21A9',larrlp:'\u21AB',larrpl:'\u2939',larrsim:'\u2973',larrtl:'\u21A2',latail:'\u2919',lAtail:'\u291B',lat:'\u2AAB',late:'\u2AAD',lates:'\u2AAD\uFE00',lbarr:'\u290C',lBarr:'\u290E',lbbrk:'\u2772',lbrace:'{',lbrack:'[',lbrke:'\u298B',lbrksld:'\u298F',lbrkslu:'\u298D',Lcaron:'\u013D',lcaron:'\u013E',Lcedil:'\u013B',lcedil:'\u013C',lceil:'\u2308',lcub:'{',Lcy:'\u041B',lcy:'\u043B',ldca:'\u2936',ldquo:'\u201C',ldquor:'\u201E',ldrdhar:'\u2967',ldrushar:'\u294B',ldsh:'\u21B2',le:'\u2264',lE:'\u2266',LeftAngleBracket:'\u27E8',LeftArrowBar:'\u21E4',leftarrow:'\u2190',LeftArrow:'\u2190',Leftarrow:'\u21D0',LeftArrowRightArrow:'\u21C6',leftarrowtail:'\u21A2',LeftCeiling:'\u2308',LeftDoubleBracket:'\u27E6',LeftDownTeeVector:'\u2961',LeftDownVectorBar:'\u2959',LeftDownVector:'\u21C3',LeftFloor:'\u230A',leftharpoondown:'\u21BD',leftharpoonup:'\u21BC',leftleftarrows:'\u21C7',leftrightarrow:'\u2194',LeftRightArrow:'\u2194',Leftrightarrow:'\u21D4',leftrightarrows:'\u21C6',leftrightharpoons:'\u21CB',leftrightsquigarrow:'\u21AD',LeftRightVector:'\u294E',LeftTeeArrow:'\u21A4',LeftTee:'\u22A3',LeftTeeVector:'\u295A',leftthreetimes:'\u22CB',LeftTriangleBar:'\u29CF',LeftTriangle:'\u22B2',LeftTriangleEqual:'\u22B4',LeftUpDownVector:'\u2951',LeftUpTeeVector:'\u2960',LeftUpVectorBar:'\u2958',LeftUpVector:'\u21BF',LeftVectorBar:'\u2952',LeftVector:'\u21BC',lEg:'\u2A8B',leg:'\u22DA',leq:'\u2264',leqq:'\u2266',leqslant:'\u2A7D',lescc:'\u2AA8',les:'\u2A7D',lesdot:'\u2A7F',lesdoto:'\u2A81',lesdotor:'\u2A83',lesg:'\u22DA\uFE00',lesges:'\u2A93',lessapprox:'\u2A85',lessdot:'\u22D6',lesseqgtr:'\u22DA',lesseqqgtr:'\u2A8B',LessEqualGreater:'\u22DA',LessFullEqual:'\u2266',LessGreater:'\u2276',lessgtr:'\u2276',LessLess:'\u2AA1',lesssim:'\u2272',LessSlantEqual:'\u2A7D',LessTilde:'\u2272',lfisht:'\u297C',lfloor:'\u230A',Lfr:'\u{1D50F}',lfr:'\u{1D529}',lg:'\u2276',lgE:'\u2A91',lHar:'\u2962',lhard:'\u21BD',lharu:'\u21BC',lharul:'\u296A',lhblk:'\u2584',LJcy:'\u0409',ljcy:'\u0459',llarr:'\u21C7',ll:'\u226A',Ll:'\u22D8',llcorner:'\u231E',Lleftarrow:'\u21DA',llhard:'\u296B',lltri:'\u25FA',Lmidot:'\u013F',lmidot:'\u0140',lmoustache:'\u23B0',lmoust:'\u23B0',lnap:'\u2A89',lnapprox:'\u2A89',lne:'\u2A87',lnE:'\u2268',lneq:'\u2A87',lneqq:'\u2268',lnsim:'\u22E6',loang:'\u27EC',loarr:'\u21FD',lobrk:'\u27E6',longleftarrow:'\u27F5',LongLeftArrow:'\u27F5',Longleftarrow:'\u27F8',longleftrightarrow:'\u27F7',LongLeftRightArrow:'\u27F7',Longleftrightarrow:'\u27FA',longmapsto:'\u27FC',longrightarrow:'\u27F6',LongRightArrow:'\u27F6',Longrightarrow:'\u27F9',looparrowleft:'\u21AB',looparrowright:'\u21AC',lopar:'\u2985',Lopf:'\u{1D543}',lopf:'\u{1D55D}',loplus:'\u2A2D',lotimes:'\u2A34',lowast:'\u2217',lowbar:'_',LowerLeftArrow:'\u2199',LowerRightArrow:'\u2198',loz:'\u25CA',lozenge:'\u25CA',lozf:'\u29EB',lpar:'(',lparlt:'\u2993',lrarr:'\u21C6',lrcorner:'\u231F',lrhar:'\u21CB',lrhard:'\u296D',lrm:'\u200E',lrtri:'\u22BF',lsaquo:'\u2039',lscr:'\u{1D4C1}',Lscr:'\u2112',lsh:'\u21B0',Lsh:'\u21B0',lsim:'\u2272',lsime:'\u2A8D',lsimg:'\u2A8F',lsqb:'[',lsquo:'\u2018',lsquor:'\u201A',Lstrok:'\u0141',lstrok:'\u0142',ltcc:'\u2AA6',ltcir:'\u2A79',lt:'<',LT:'<',Lt:'\u226A',ltdot:'\u22D6',lthree:'\u22CB',ltimes:'\u22C9',ltlarr:'\u2976',ltquest:'\u2A7B',ltri:'\u25C3',ltrie:'\u22B4',ltrif:'\u25C2',ltrPar:'\u2996',lurdshar:'\u294A',luruhar:'\u2966',lvertneqq:'\u2268\uFE00',lvnE:'\u2268\uFE00',macr:'\xAF',male:'\u2642',malt:'\u2720',maltese:'\u2720',Map:'\u2905',map:'\u21A6',mapsto:'\u21A6',mapstodown:'\u21A7',mapstoleft:'\u21A4',mapstoup:'\u21A5',marker:'\u25AE',mcomma:'\u2A29',Mcy:'\u041C',mcy:'\u043C',mdash:'\u2014',mDDot:'\u223A',measuredangle:'\u2221',MediumSpace:'\u205F',Mellintrf:'\u2133',Mfr:'\u{1D510}',mfr:'\u{1D52A}',mho:'\u2127',micro:'\xB5',midast:'*',midcir:'\u2AF0',mid:'\u2223',middot:'\xB7',minusb:'\u229F',minus:'\u2212',minusd:'\u2238',minusdu:'\u2A2A',MinusPlus:'\u2213',mlcp:'\u2ADB',mldr:'\u2026',mnplus:'\u2213',models:'\u22A7',Mopf:'\u{1D544}',mopf:'\u{1D55E}',mp:'\u2213',mscr:'\u{1D4C2}',Mscr:'\u2133',mstpos:'\u223E',Mu:'\u039C',mu:'\u03BC',multimap:'\u22B8',mumap:'\u22B8',nabla:'\u2207',Nacute:'\u0143',nacute:'\u0144',nang:'\u2220\u20D2',nap:'\u2249',napE:'\u2A70\u0338',napid:'\u224B\u0338',napos:'\u0149',napprox:'\u2249',natural:'\u266E',naturals:'\u2115',natur:'\u266E',nbsp:'\xA0',nbump:'\u224E\u0338',nbumpe:'\u224F\u0338',ncap:'\u2A43',Ncaron:'\u0147',ncaron:'\u0148',Ncedil:'\u0145',ncedil:'\u0146',ncong:'\u2247',ncongdot:'\u2A6D\u0338',ncup:'\u2A42',Ncy:'\u041D',ncy:'\u043D',ndash:'\u2013',nearhk:'\u2924',nearr:'\u2197',neArr:'\u21D7',nearrow:'\u2197',ne:'\u2260',nedot:'\u2250\u0338',NegativeMediumSpace:'\u200B',NegativeThickSpace:'\u200B',NegativeThinSpace:'\u200B',NegativeVeryThinSpace:'\u200B',nequiv:'\u2262',nesear:'\u2928',nesim:'\u2242\u0338',NestedGreaterGreater:'\u226B',NestedLessLess:'\u226A',NewLine:` +`,nexist:'\u2204',nexists:'\u2204',Nfr:'\u{1D511}',nfr:'\u{1D52B}',ngE:'\u2267\u0338',nge:'\u2271',ngeq:'\u2271',ngeqq:'\u2267\u0338',ngeqslant:'\u2A7E\u0338',nges:'\u2A7E\u0338',nGg:'\u22D9\u0338',ngsim:'\u2275',nGt:'\u226B\u20D2',ngt:'\u226F',ngtr:'\u226F',nGtv:'\u226B\u0338',nharr:'\u21AE',nhArr:'\u21CE',nhpar:'\u2AF2',ni:'\u220B',nis:'\u22FC',nisd:'\u22FA',niv:'\u220B',NJcy:'\u040A',njcy:'\u045A',nlarr:'\u219A',nlArr:'\u21CD',nldr:'\u2025',nlE:'\u2266\u0338',nle:'\u2270',nleftarrow:'\u219A',nLeftarrow:'\u21CD',nleftrightarrow:'\u21AE',nLeftrightarrow:'\u21CE',nleq:'\u2270',nleqq:'\u2266\u0338',nleqslant:'\u2A7D\u0338',nles:'\u2A7D\u0338',nless:'\u226E',nLl:'\u22D8\u0338',nlsim:'\u2274',nLt:'\u226A\u20D2',nlt:'\u226E',nltri:'\u22EA',nltrie:'\u22EC',nLtv:'\u226A\u0338',nmid:'\u2224',NoBreak:'\u2060',NonBreakingSpace:'\xA0',nopf:'\u{1D55F}',Nopf:'\u2115',Not:'\u2AEC',not:'\xAC',NotCongruent:'\u2262',NotCupCap:'\u226D',NotDoubleVerticalBar:'\u2226',NotElement:'\u2209',NotEqual:'\u2260',NotEqualTilde:'\u2242\u0338',NotExists:'\u2204',NotGreater:'\u226F',NotGreaterEqual:'\u2271',NotGreaterFullEqual:'\u2267\u0338',NotGreaterGreater:'\u226B\u0338',NotGreaterLess:'\u2279',NotGreaterSlantEqual:'\u2A7E\u0338',NotGreaterTilde:'\u2275',NotHumpDownHump:'\u224E\u0338',NotHumpEqual:'\u224F\u0338',notin:'\u2209',notindot:'\u22F5\u0338',notinE:'\u22F9\u0338',notinva:'\u2209',notinvb:'\u22F7',notinvc:'\u22F6',NotLeftTriangleBar:'\u29CF\u0338',NotLeftTriangle:'\u22EA',NotLeftTriangleEqual:'\u22EC',NotLess:'\u226E',NotLessEqual:'\u2270',NotLessGreater:'\u2278',NotLessLess:'\u226A\u0338',NotLessSlantEqual:'\u2A7D\u0338',NotLessTilde:'\u2274',NotNestedGreaterGreater:'\u2AA2\u0338',NotNestedLessLess:'\u2AA1\u0338',notni:'\u220C',notniva:'\u220C',notnivb:'\u22FE',notnivc:'\u22FD',NotPrecedes:'\u2280',NotPrecedesEqual:'\u2AAF\u0338',NotPrecedesSlantEqual:'\u22E0',NotReverseElement:'\u220C',NotRightTriangleBar:'\u29D0\u0338',NotRightTriangle:'\u22EB',NotRightTriangleEqual:'\u22ED',NotSquareSubset:'\u228F\u0338',NotSquareSubsetEqual:'\u22E2',NotSquareSuperset:'\u2290\u0338',NotSquareSupersetEqual:'\u22E3',NotSubset:'\u2282\u20D2',NotSubsetEqual:'\u2288',NotSucceeds:'\u2281',NotSucceedsEqual:'\u2AB0\u0338',NotSucceedsSlantEqual:'\u22E1',NotSucceedsTilde:'\u227F\u0338',NotSuperset:'\u2283\u20D2',NotSupersetEqual:'\u2289',NotTilde:'\u2241',NotTildeEqual:'\u2244',NotTildeFullEqual:'\u2247',NotTildeTilde:'\u2249',NotVerticalBar:'\u2224',nparallel:'\u2226',npar:'\u2226',nparsl:'\u2AFD\u20E5',npart:'\u2202\u0338',npolint:'\u2A14',npr:'\u2280',nprcue:'\u22E0',nprec:'\u2280',npreceq:'\u2AAF\u0338',npre:'\u2AAF\u0338',nrarrc:'\u2933\u0338',nrarr:'\u219B',nrArr:'\u21CF',nrarrw:'\u219D\u0338',nrightarrow:'\u219B',nRightarrow:'\u21CF',nrtri:'\u22EB',nrtrie:'\u22ED',nsc:'\u2281',nsccue:'\u22E1',nsce:'\u2AB0\u0338',Nscr:'\u{1D4A9}',nscr:'\u{1D4C3}',nshortmid:'\u2224',nshortparallel:'\u2226',nsim:'\u2241',nsime:'\u2244',nsimeq:'\u2244',nsmid:'\u2224',nspar:'\u2226',nsqsube:'\u22E2',nsqsupe:'\u22E3',nsub:'\u2284',nsubE:'\u2AC5\u0338',nsube:'\u2288',nsubset:'\u2282\u20D2',nsubseteq:'\u2288',nsubseteqq:'\u2AC5\u0338',nsucc:'\u2281',nsucceq:'\u2AB0\u0338',nsup:'\u2285',nsupE:'\u2AC6\u0338',nsupe:'\u2289',nsupset:'\u2283\u20D2',nsupseteq:'\u2289',nsupseteqq:'\u2AC6\u0338',ntgl:'\u2279',Ntilde:'\xD1',ntilde:'\xF1',ntlg:'\u2278',ntriangleleft:'\u22EA',ntrianglelefteq:'\u22EC',ntriangleright:'\u22EB',ntrianglerighteq:'\u22ED',Nu:'\u039D',nu:'\u03BD',num:'#',numero:'\u2116',numsp:'\u2007',nvap:'\u224D\u20D2',nvdash:'\u22AC',nvDash:'\u22AD',nVdash:'\u22AE',nVDash:'\u22AF',nvge:'\u2265\u20D2',nvgt:'>\u20D2',nvHarr:'\u2904',nvinfin:'\u29DE',nvlArr:'\u2902',nvle:'\u2264\u20D2',nvlt:'<\u20D2',nvltrie:'\u22B4\u20D2',nvrArr:'\u2903',nvrtrie:'\u22B5\u20D2',nvsim:'\u223C\u20D2',nwarhk:'\u2923',nwarr:'\u2196',nwArr:'\u21D6',nwarrow:'\u2196',nwnear:'\u2927',Oacute:'\xD3',oacute:'\xF3',oast:'\u229B',Ocirc:'\xD4',ocirc:'\xF4',ocir:'\u229A',Ocy:'\u041E',ocy:'\u043E',odash:'\u229D',Odblac:'\u0150',odblac:'\u0151',odiv:'\u2A38',odot:'\u2299',odsold:'\u29BC',OElig:'\u0152',oelig:'\u0153',ofcir:'\u29BF',Ofr:'\u{1D512}',ofr:'\u{1D52C}',ogon:'\u02DB',Ograve:'\xD2',ograve:'\xF2',ogt:'\u29C1',ohbar:'\u29B5',ohm:'\u03A9',oint:'\u222E',olarr:'\u21BA',olcir:'\u29BE',olcross:'\u29BB',oline:'\u203E',olt:'\u29C0',Omacr:'\u014C',omacr:'\u014D',Omega:'\u03A9',omega:'\u03C9',Omicron:'\u039F',omicron:'\u03BF',omid:'\u29B6',ominus:'\u2296',Oopf:'\u{1D546}',oopf:'\u{1D560}',opar:'\u29B7',OpenCurlyDoubleQuote:'\u201C',OpenCurlyQuote:'\u2018',operp:'\u29B9',oplus:'\u2295',orarr:'\u21BB',Or:'\u2A54',or:'\u2228',ord:'\u2A5D',order:'\u2134',orderof:'\u2134',ordf:'\xAA',ordm:'\xBA',origof:'\u22B6',oror:'\u2A56',orslope:'\u2A57',orv:'\u2A5B',oS:'\u24C8',Oscr:'\u{1D4AA}',oscr:'\u2134',Oslash:'\xD8',oslash:'\xF8',osol:'\u2298',Otilde:'\xD5',otilde:'\xF5',otimesas:'\u2A36',Otimes:'\u2A37',otimes:'\u2297',Ouml:'\xD6',ouml:'\xF6',ovbar:'\u233D',OverBar:'\u203E',OverBrace:'\u23DE',OverBracket:'\u23B4',OverParenthesis:'\u23DC',para:'\xB6',parallel:'\u2225',par:'\u2225',parsim:'\u2AF3',parsl:'\u2AFD',part:'\u2202',PartialD:'\u2202',Pcy:'\u041F',pcy:'\u043F',percnt:'%',period:'.',permil:'\u2030',perp:'\u22A5',pertenk:'\u2031',Pfr:'\u{1D513}',pfr:'\u{1D52D}',Phi:'\u03A6',phi:'\u03C6',phiv:'\u03D5',phmmat:'\u2133',phone:'\u260E',Pi:'\u03A0',pi:'\u03C0',pitchfork:'\u22D4',piv:'\u03D6',planck:'\u210F',planckh:'\u210E',plankv:'\u210F',plusacir:'\u2A23',plusb:'\u229E',pluscir:'\u2A22',plus:'+',plusdo:'\u2214',plusdu:'\u2A25',pluse:'\u2A72',PlusMinus:'\xB1',plusmn:'\xB1',plussim:'\u2A26',plustwo:'\u2A27',pm:'\xB1',Poincareplane:'\u210C',pointint:'\u2A15',popf:'\u{1D561}',Popf:'\u2119',pound:'\xA3',prap:'\u2AB7',Pr:'\u2ABB',pr:'\u227A',prcue:'\u227C',precapprox:'\u2AB7',prec:'\u227A',preccurlyeq:'\u227C',Precedes:'\u227A',PrecedesEqual:'\u2AAF',PrecedesSlantEqual:'\u227C',PrecedesTilde:'\u227E',preceq:'\u2AAF',precnapprox:'\u2AB9',precneqq:'\u2AB5',precnsim:'\u22E8',pre:'\u2AAF',prE:'\u2AB3',precsim:'\u227E',prime:'\u2032',Prime:'\u2033',primes:'\u2119',prnap:'\u2AB9',prnE:'\u2AB5',prnsim:'\u22E8',prod:'\u220F',Product:'\u220F',profalar:'\u232E',profline:'\u2312',profsurf:'\u2313',prop:'\u221D',Proportional:'\u221D',Proportion:'\u2237',propto:'\u221D',prsim:'\u227E',prurel:'\u22B0',Pscr:'\u{1D4AB}',pscr:'\u{1D4C5}',Psi:'\u03A8',psi:'\u03C8',puncsp:'\u2008',Qfr:'\u{1D514}',qfr:'\u{1D52E}',qint:'\u2A0C',qopf:'\u{1D562}',Qopf:'\u211A',qprime:'\u2057',Qscr:'\u{1D4AC}',qscr:'\u{1D4C6}',quaternions:'\u210D',quatint:'\u2A16',quest:'?',questeq:'\u225F',quot:'"',QUOT:'"',rAarr:'\u21DB',race:'\u223D\u0331',Racute:'\u0154',racute:'\u0155',radic:'\u221A',raemptyv:'\u29B3',rang:'\u27E9',Rang:'\u27EB',rangd:'\u2992',range:'\u29A5',rangle:'\u27E9',raquo:'\xBB',rarrap:'\u2975',rarrb:'\u21E5',rarrbfs:'\u2920',rarrc:'\u2933',rarr:'\u2192',Rarr:'\u21A0',rArr:'\u21D2',rarrfs:'\u291E',rarrhk:'\u21AA',rarrlp:'\u21AC',rarrpl:'\u2945',rarrsim:'\u2974',Rarrtl:'\u2916',rarrtl:'\u21A3',rarrw:'\u219D',ratail:'\u291A',rAtail:'\u291C',ratio:'\u2236',rationals:'\u211A',rbarr:'\u290D',rBarr:'\u290F',RBarr:'\u2910',rbbrk:'\u2773',rbrace:'}',rbrack:']',rbrke:'\u298C',rbrksld:'\u298E',rbrkslu:'\u2990',Rcaron:'\u0158',rcaron:'\u0159',Rcedil:'\u0156',rcedil:'\u0157',rceil:'\u2309',rcub:'}',Rcy:'\u0420',rcy:'\u0440',rdca:'\u2937',rdldhar:'\u2969',rdquo:'\u201D',rdquor:'\u201D',rdsh:'\u21B3',real:'\u211C',realine:'\u211B',realpart:'\u211C',reals:'\u211D',Re:'\u211C',rect:'\u25AD',reg:'\xAE',REG:'\xAE',ReverseElement:'\u220B',ReverseEquilibrium:'\u21CB',ReverseUpEquilibrium:'\u296F',rfisht:'\u297D',rfloor:'\u230B',rfr:'\u{1D52F}',Rfr:'\u211C',rHar:'\u2964',rhard:'\u21C1',rharu:'\u21C0',rharul:'\u296C',Rho:'\u03A1',rho:'\u03C1',rhov:'\u03F1',RightAngleBracket:'\u27E9',RightArrowBar:'\u21E5',rightarrow:'\u2192',RightArrow:'\u2192',Rightarrow:'\u21D2',RightArrowLeftArrow:'\u21C4',rightarrowtail:'\u21A3',RightCeiling:'\u2309',RightDoubleBracket:'\u27E7',RightDownTeeVector:'\u295D',RightDownVectorBar:'\u2955',RightDownVector:'\u21C2',RightFloor:'\u230B',rightharpoondown:'\u21C1',rightharpoonup:'\u21C0',rightleftarrows:'\u21C4',rightleftharpoons:'\u21CC',rightrightarrows:'\u21C9',rightsquigarrow:'\u219D',RightTeeArrow:'\u21A6',RightTee:'\u22A2',RightTeeVector:'\u295B',rightthreetimes:'\u22CC',RightTriangleBar:'\u29D0',RightTriangle:'\u22B3',RightTriangleEqual:'\u22B5',RightUpDownVector:'\u294F',RightUpTeeVector:'\u295C',RightUpVectorBar:'\u2954',RightUpVector:'\u21BE',RightVectorBar:'\u2953',RightVector:'\u21C0',ring:'\u02DA',risingdotseq:'\u2253',rlarr:'\u21C4',rlhar:'\u21CC',rlm:'\u200F',rmoustache:'\u23B1',rmoust:'\u23B1',rnmid:'\u2AEE',roang:'\u27ED',roarr:'\u21FE',robrk:'\u27E7',ropar:'\u2986',ropf:'\u{1D563}',Ropf:'\u211D',roplus:'\u2A2E',rotimes:'\u2A35',RoundImplies:'\u2970',rpar:')',rpargt:'\u2994',rppolint:'\u2A12',rrarr:'\u21C9',Rrightarrow:'\u21DB',rsaquo:'\u203A',rscr:'\u{1D4C7}',Rscr:'\u211B',rsh:'\u21B1',Rsh:'\u21B1',rsqb:']',rsquo:'\u2019',rsquor:'\u2019',rthree:'\u22CC',rtimes:'\u22CA',rtri:'\u25B9',rtrie:'\u22B5',rtrif:'\u25B8',rtriltri:'\u29CE',RuleDelayed:'\u29F4',ruluhar:'\u2968',rx:'\u211E',Sacute:'\u015A',sacute:'\u015B',sbquo:'\u201A',scap:'\u2AB8',Scaron:'\u0160',scaron:'\u0161',Sc:'\u2ABC',sc:'\u227B',sccue:'\u227D',sce:'\u2AB0',scE:'\u2AB4',Scedil:'\u015E',scedil:'\u015F',Scirc:'\u015C',scirc:'\u015D',scnap:'\u2ABA',scnE:'\u2AB6',scnsim:'\u22E9',scpolint:'\u2A13',scsim:'\u227F',Scy:'\u0421',scy:'\u0441',sdotb:'\u22A1',sdot:'\u22C5',sdote:'\u2A66',searhk:'\u2925',searr:'\u2198',seArr:'\u21D8',searrow:'\u2198',sect:'\xA7',semi:';',seswar:'\u2929',setminus:'\u2216',setmn:'\u2216',sext:'\u2736',Sfr:'\u{1D516}',sfr:'\u{1D530}',sfrown:'\u2322',sharp:'\u266F',SHCHcy:'\u0429',shchcy:'\u0449',SHcy:'\u0428',shcy:'\u0448',ShortDownArrow:'\u2193',ShortLeftArrow:'\u2190',shortmid:'\u2223',shortparallel:'\u2225',ShortRightArrow:'\u2192',ShortUpArrow:'\u2191',shy:'\xAD',Sigma:'\u03A3',sigma:'\u03C3',sigmaf:'\u03C2',sigmav:'\u03C2',sim:'\u223C',simdot:'\u2A6A',sime:'\u2243',simeq:'\u2243',simg:'\u2A9E',simgE:'\u2AA0',siml:'\u2A9D',simlE:'\u2A9F',simne:'\u2246',simplus:'\u2A24',simrarr:'\u2972',slarr:'\u2190',SmallCircle:'\u2218',smallsetminus:'\u2216',smashp:'\u2A33',smeparsl:'\u29E4',smid:'\u2223',smile:'\u2323',smt:'\u2AAA',smte:'\u2AAC',smtes:'\u2AAC\uFE00',SOFTcy:'\u042C',softcy:'\u044C',solbar:'\u233F',solb:'\u29C4',sol:'/',Sopf:'\u{1D54A}',sopf:'\u{1D564}',spades:'\u2660',spadesuit:'\u2660',spar:'\u2225',sqcap:'\u2293',sqcaps:'\u2293\uFE00',sqcup:'\u2294',sqcups:'\u2294\uFE00',Sqrt:'\u221A',sqsub:'\u228F',sqsube:'\u2291',sqsubset:'\u228F',sqsubseteq:'\u2291',sqsup:'\u2290',sqsupe:'\u2292',sqsupset:'\u2290',sqsupseteq:'\u2292',square:'\u25A1',Square:'\u25A1',SquareIntersection:'\u2293',SquareSubset:'\u228F',SquareSubsetEqual:'\u2291',SquareSuperset:'\u2290',SquareSupersetEqual:'\u2292',SquareUnion:'\u2294',squarf:'\u25AA',squ:'\u25A1',squf:'\u25AA',srarr:'\u2192',Sscr:'\u{1D4AE}',sscr:'\u{1D4C8}',ssetmn:'\u2216',ssmile:'\u2323',sstarf:'\u22C6',Star:'\u22C6',star:'\u2606',starf:'\u2605',straightepsilon:'\u03F5',straightphi:'\u03D5',strns:'\xAF',sub:'\u2282',Sub:'\u22D0',subdot:'\u2ABD',subE:'\u2AC5',sube:'\u2286',subedot:'\u2AC3',submult:'\u2AC1',subnE:'\u2ACB',subne:'\u228A',subplus:'\u2ABF',subrarr:'\u2979',subset:'\u2282',Subset:'\u22D0',subseteq:'\u2286',subseteqq:'\u2AC5',SubsetEqual:'\u2286',subsetneq:'\u228A',subsetneqq:'\u2ACB',subsim:'\u2AC7',subsub:'\u2AD5',subsup:'\u2AD3',succapprox:'\u2AB8',succ:'\u227B',succcurlyeq:'\u227D',Succeeds:'\u227B',SucceedsEqual:'\u2AB0',SucceedsSlantEqual:'\u227D',SucceedsTilde:'\u227F',succeq:'\u2AB0',succnapprox:'\u2ABA',succneqq:'\u2AB6',succnsim:'\u22E9',succsim:'\u227F',SuchThat:'\u220B',sum:'\u2211',Sum:'\u2211',sung:'\u266A',sup1:'\xB9',sup2:'\xB2',sup3:'\xB3',sup:'\u2283',Sup:'\u22D1',supdot:'\u2ABE',supdsub:'\u2AD8',supE:'\u2AC6',supe:'\u2287',supedot:'\u2AC4',Superset:'\u2283',SupersetEqual:'\u2287',suphsol:'\u27C9',suphsub:'\u2AD7',suplarr:'\u297B',supmult:'\u2AC2',supnE:'\u2ACC',supne:'\u228B',supplus:'\u2AC0',supset:'\u2283',Supset:'\u22D1',supseteq:'\u2287',supseteqq:'\u2AC6',supsetneq:'\u228B',supsetneqq:'\u2ACC',supsim:'\u2AC8',supsub:'\u2AD4',supsup:'\u2AD6',swarhk:'\u2926',swarr:'\u2199',swArr:'\u21D9',swarrow:'\u2199',swnwar:'\u292A',szlig:'\xDF',Tab:' ',target:'\u2316',Tau:'\u03A4',tau:'\u03C4',tbrk:'\u23B4',Tcaron:'\u0164',tcaron:'\u0165',Tcedil:'\u0162',tcedil:'\u0163',Tcy:'\u0422',tcy:'\u0442',tdot:'\u20DB',telrec:'\u2315',Tfr:'\u{1D517}',tfr:'\u{1D531}',there4:'\u2234',therefore:'\u2234',Therefore:'\u2234',Theta:'\u0398',theta:'\u03B8',thetasym:'\u03D1',thetav:'\u03D1',thickapprox:'\u2248',thicksim:'\u223C',ThickSpace:'\u205F\u200A',ThinSpace:'\u2009',thinsp:'\u2009',thkap:'\u2248',thksim:'\u223C',THORN:'\xDE',thorn:'\xFE',tilde:'\u02DC',Tilde:'\u223C',TildeEqual:'\u2243',TildeFullEqual:'\u2245',TildeTilde:'\u2248',timesbar:'\u2A31',timesb:'\u22A0',times:'\xD7',timesd:'\u2A30',tint:'\u222D',toea:'\u2928',topbot:'\u2336',topcir:'\u2AF1',top:'\u22A4',Topf:'\u{1D54B}',topf:'\u{1D565}',topfork:'\u2ADA',tosa:'\u2929',tprime:'\u2034',trade:'\u2122',TRADE:'\u2122',triangle:'\u25B5',triangledown:'\u25BF',triangleleft:'\u25C3',trianglelefteq:'\u22B4',triangleq:'\u225C',triangleright:'\u25B9',trianglerighteq:'\u22B5',tridot:'\u25EC',trie:'\u225C',triminus:'\u2A3A',TripleDot:'\u20DB',triplus:'\u2A39',trisb:'\u29CD',tritime:'\u2A3B',trpezium:'\u23E2',Tscr:'\u{1D4AF}',tscr:'\u{1D4C9}',TScy:'\u0426',tscy:'\u0446',TSHcy:'\u040B',tshcy:'\u045B',Tstrok:'\u0166',tstrok:'\u0167',twixt:'\u226C',twoheadleftarrow:'\u219E',twoheadrightarrow:'\u21A0',Uacute:'\xDA',uacute:'\xFA',uarr:'\u2191',Uarr:'\u219F',uArr:'\u21D1',Uarrocir:'\u2949',Ubrcy:'\u040E',ubrcy:'\u045E',Ubreve:'\u016C',ubreve:'\u016D',Ucirc:'\xDB',ucirc:'\xFB',Ucy:'\u0423',ucy:'\u0443',udarr:'\u21C5',Udblac:'\u0170',udblac:'\u0171',udhar:'\u296E',ufisht:'\u297E',Ufr:'\u{1D518}',ufr:'\u{1D532}',Ugrave:'\xD9',ugrave:'\xF9',uHar:'\u2963',uharl:'\u21BF',uharr:'\u21BE',uhblk:'\u2580',ulcorn:'\u231C',ulcorner:'\u231C',ulcrop:'\u230F',ultri:'\u25F8',Umacr:'\u016A',umacr:'\u016B',uml:'\xA8',UnderBar:'_',UnderBrace:'\u23DF',UnderBracket:'\u23B5',UnderParenthesis:'\u23DD',Union:'\u22C3',UnionPlus:'\u228E',Uogon:'\u0172',uogon:'\u0173',Uopf:'\u{1D54C}',uopf:'\u{1D566}',UpArrowBar:'\u2912',uparrow:'\u2191',UpArrow:'\u2191',Uparrow:'\u21D1',UpArrowDownArrow:'\u21C5',updownarrow:'\u2195',UpDownArrow:'\u2195',Updownarrow:'\u21D5',UpEquilibrium:'\u296E',upharpoonleft:'\u21BF',upharpoonright:'\u21BE',uplus:'\u228E',UpperLeftArrow:'\u2196',UpperRightArrow:'\u2197',upsi:'\u03C5',Upsi:'\u03D2',upsih:'\u03D2',Upsilon:'\u03A5',upsilon:'\u03C5',UpTeeArrow:'\u21A5',UpTee:'\u22A5',upuparrows:'\u21C8',urcorn:'\u231D',urcorner:'\u231D',urcrop:'\u230E',Uring:'\u016E',uring:'\u016F',urtri:'\u25F9',Uscr:'\u{1D4B0}',uscr:'\u{1D4CA}',utdot:'\u22F0',Utilde:'\u0168',utilde:'\u0169',utri:'\u25B5',utrif:'\u25B4',uuarr:'\u21C8',Uuml:'\xDC',uuml:'\xFC',uwangle:'\u29A7',vangrt:'\u299C',varepsilon:'\u03F5',varkappa:'\u03F0',varnothing:'\u2205',varphi:'\u03D5',varpi:'\u03D6',varpropto:'\u221D',varr:'\u2195',vArr:'\u21D5',varrho:'\u03F1',varsigma:'\u03C2',varsubsetneq:'\u228A\uFE00',varsubsetneqq:'\u2ACB\uFE00',varsupsetneq:'\u228B\uFE00',varsupsetneqq:'\u2ACC\uFE00',vartheta:'\u03D1',vartriangleleft:'\u22B2',vartriangleright:'\u22B3',vBar:'\u2AE8',Vbar:'\u2AEB',vBarv:'\u2AE9',Vcy:'\u0412',vcy:'\u0432',vdash:'\u22A2',vDash:'\u22A8',Vdash:'\u22A9',VDash:'\u22AB',Vdashl:'\u2AE6',veebar:'\u22BB',vee:'\u2228',Vee:'\u22C1',veeeq:'\u225A',vellip:'\u22EE',verbar:'|',Verbar:'\u2016',vert:'|',Vert:'\u2016',VerticalBar:'\u2223',VerticalLine:'|',VerticalSeparator:'\u2758',VerticalTilde:'\u2240',VeryThinSpace:'\u200A',Vfr:'\u{1D519}',vfr:'\u{1D533}',vltri:'\u22B2',vnsub:'\u2282\u20D2',vnsup:'\u2283\u20D2',Vopf:'\u{1D54D}',vopf:'\u{1D567}',vprop:'\u221D',vrtri:'\u22B3',Vscr:'\u{1D4B1}',vscr:'\u{1D4CB}',vsubnE:'\u2ACB\uFE00',vsubne:'\u228A\uFE00',vsupnE:'\u2ACC\uFE00',vsupne:'\u228B\uFE00',Vvdash:'\u22AA',vzigzag:'\u299A',Wcirc:'\u0174',wcirc:'\u0175',wedbar:'\u2A5F',wedge:'\u2227',Wedge:'\u22C0',wedgeq:'\u2259',weierp:'\u2118',Wfr:'\u{1D51A}',wfr:'\u{1D534}',Wopf:'\u{1D54E}',wopf:'\u{1D568}',wp:'\u2118',wr:'\u2240',wreath:'\u2240',Wscr:'\u{1D4B2}',wscr:'\u{1D4CC}',xcap:'\u22C2',xcirc:'\u25EF',xcup:'\u22C3',xdtri:'\u25BD',Xfr:'\u{1D51B}',xfr:'\u{1D535}',xharr:'\u27F7',xhArr:'\u27FA',Xi:'\u039E',xi:'\u03BE',xlarr:'\u27F5',xlArr:'\u27F8',xmap:'\u27FC',xnis:'\u22FB',xodot:'\u2A00',Xopf:'\u{1D54F}',xopf:'\u{1D569}',xoplus:'\u2A01',xotime:'\u2A02',xrarr:'\u27F6',xrArr:'\u27F9',Xscr:'\u{1D4B3}',xscr:'\u{1D4CD}',xsqcup:'\u2A06',xuplus:'\u2A04',xutri:'\u25B3',xvee:'\u22C1',xwedge:'\u22C0',Yacute:'\xDD',yacute:'\xFD',YAcy:'\u042F',yacy:'\u044F',Ycirc:'\u0176',ycirc:'\u0177',Ycy:'\u042B',ycy:'\u044B',yen:'\xA5',Yfr:'\u{1D51C}',yfr:'\u{1D536}',YIcy:'\u0407',yicy:'\u0457',Yopf:'\u{1D550}',yopf:'\u{1D56A}',Yscr:'\u{1D4B4}',yscr:'\u{1D4CE}',YUcy:'\u042E',yucy:'\u044E',yuml:'\xFF',Yuml:'\u0178',Zacute:'\u0179',zacute:'\u017A',Zcaron:'\u017D',zcaron:'\u017E',Zcy:'\u0417',zcy:'\u0437',Zdot:'\u017B',zdot:'\u017C',zeetrf:'\u2128',ZeroWidthSpace:'\u200B',Zeta:'\u0396',zeta:'\u03B6',zfr:'\u{1D537}',Zfr:'\u2128',ZHcy:'\u0416',zhcy:'\u0436',zigrarr:'\u21DD',zopf:'\u{1D56B}',Zopf:'\u2124',Zscr:'\u{1D4B5}',zscr:'\u{1D4CF}',zwj:'\u200D',zwnj:'\u200C'}; +});var LP=X((TPe,iz)=>{ + 'use strict';iz.exports=nz(); +});var Xx=X((CPe,oz)=>{ + oz.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/; +});var lz=X((SPe,sz)=>{ + 'use strict';var az={};function lge(e){ + var t,r,n=az[e];if(n)return n;for(n=az[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push('%'+('0'+t.toString(16).toUpperCase()).slice(-2));for(t=0;t'u'&&(r=!0),l=lge(t),n=0,i=e.length;n=55296&&o<=57343){ + if(o>=55296&&o<=56319&&n+1=56320&&s<=57343)){ + c+=encodeURIComponent(e[n]+e[n+1]),n++;continue; + }c+='%EF%BF%BD';continue; + }c+=encodeURIComponent(e[n]); + }return c; + }Zx.defaultChars=";/?:@&=+$,-_.!~*'()#";Zx.componentChars="-_.!~*'()";sz.exports=Zx; +});var fz=X((kPe,cz)=>{ + 'use strict';var uz={};function uge(e){ + var t,r,n=uz[e];if(n)return n;for(n=uz[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t=55296&&m<=57343?v+='\uFFFD\uFFFD\uFFFD':v+=String.fromCharCode(m),i+=6;continue; + }if((s&248)===240&&i+91114111?v+='\uFFFD\uFFFD\uFFFD\uFFFD':(m-=65536,v+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),i+=9;continue; + }v+='\uFFFD'; + }return v; + }); + }Jx.defaultChars=';/?:@&=+$,#';Jx.componentChars='';cz.exports=Jx; +});var pz=X((OPe,dz)=>{ + 'use strict';dz.exports=function(t){ + var r='';return r+=t.protocol||'',r+=t.slashes?'//':'',r+=t.auth?t.auth+'@':'',t.hostname&&t.hostname.indexOf(':')!==-1?r+='['+t.hostname+']':r+=t.hostname||'',r+=t.port?':'+t.port:'',r+=t.pathname||'',r+=t.search||'',r+=t.hash||'',r; + }; +});var Az=X((NPe,bz)=>{ + 'use strict';function _x(){ + this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null; + }var cge=/^([a-z0-9.+-]+:)/i,fge=/:[0-9]*$/,dge=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pge=['<','>','"','`',' ','\r',` +`,' '],mge=['{','}','|','\\','^','`'].concat(pge),hge=["'"].concat(mge),mz=['%','/','?',';','#'].concat(hge),hz=['/','?','#'],vge=255,vz=/^[+a-z0-9A-Z_-]{0,63}$/,gge=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gz={javascript:!0,'javascript:':!0},yz={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,'http:':!0,'https:':!0,'ftp:':!0,'gopher:':!0,'file:':!0};function yge(e,t){ + if(e&&e instanceof _x)return e;var r=new _x;return r.parse(e,t),r; + }_x.prototype.parse=function(e,t){ + var r,n,i,o,s,l=e;if(l=l.trim(),!t&&e.split('#').length===1){ + var c=dge.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this; + }var f=cge.exec(l);if(f&&(f=f[0],i=f.toLowerCase(),this.protocol=f,l=l.substr(f.length)),(t||f||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==='//',s&&!(f&&gz[f])&&(l=l.substr(2),this.slashes=!0)),!gz[f]&&(s||f&&!yz[f])){ + var m=-1;for(r=0;r127?A+='x':A+=S[b];if(!A.match(vz)){ + var x=T.slice(0,r),k=T.slice(r+1),P=S.match(gge);P&&(x.push(P[1]),k.unshift(P[2])),k.length&&(l=k.join('.')+l),this.hostname=x.join('.');break; + } + } + } + }this.hostname.length>vge&&(this.hostname=''),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2)); + }var D=l.indexOf('#');D!==-1&&(this.hash=l.substr(D),l=l.slice(0,D));var N=l.indexOf('?');return N!==-1&&(this.search=l.substr(N),l=l.slice(0,N)),l&&(this.pathname=l),yz[i]&&this.hostname&&!this.pathname&&(this.pathname=''),this; + };_x.prototype.parseHost=function(e){ + var t=fge.exec(e);t&&(t=t[0],t!==':'&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e); + };bz.exports=yge; +});var PP=X((DPe,Kg)=>{ + 'use strict';Kg.exports.encode=lz();Kg.exports.decode=fz();Kg.exports.format=pz();Kg.exports.parse=Az(); +});var RP=X((LPe,xz)=>{ + xz.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; +});var MP=X((PPe,wz)=>{ + wz.exports=/[\0-\x1F\x7F-\x9F]/; +});var Tz=X((RPe,Ez)=>{ + Ez.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/; +});var IP=X((MPe,Cz)=>{ + Cz.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/; +});var Sz=X(sm=>{ + 'use strict';sm.Any=RP();sm.Cc=MP();sm.Cf=Tz();sm.P=Xx();sm.Z=IP(); +});var Ht=X(En=>{ + 'use strict';function bge(e){ + return Object.prototype.toString.call(e); + }function Age(e){ + return bge(e)==='[object String]'; + }var xge=Object.prototype.hasOwnProperty;function Oz(e,t){ + return xge.call(e,t); + }function wge(e){ + var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){ + if(r){ + if(typeof r!='object')throw new TypeError(r+'must be object');Object.keys(r).forEach(function(n){ + e[n]=r[n]; + }); + } + }),e; + }function Ege(e,t,r){ + return[].concat(e.slice(0,t),r,e.slice(t+1)); + }function Nz(e){ + return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111); + }function Dz(e){ + if(e>65535){ + e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r); + }return String.fromCharCode(e); + }var Lz=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Tge=/&([a-z#][a-z0-9]{1,31});/gi,Cge=new RegExp(Lz.source+'|'+Tge.source,'gi'),Sge=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,kz=LP();function kge(e,t){ + var r=0;return Oz(kz,t)?kz[t]:t.charCodeAt(0)===35&&Sge.test(t)&&(r=t[1].toLowerCase()==='x'?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Nz(r))?Dz(r):e; + }function Oge(e){ + return e.indexOf('\\')<0?e:e.replace(Lz,'$1'); + }function Nge(e){ + return e.indexOf('\\')<0&&e.indexOf('&')<0?e:e.replace(Cge,function(t,r,n){ + return r||kge(t,n); + }); + }var Dge=/[&<>"]/,Lge=/[&<>"]/g,Pge={'&':'&','<':'<','>':'>','"':'"'};function Rge(e){ + return Pge[e]; + }function Mge(e){ + return Dge.test(e)?e.replace(Lge,Rge):e; + }var Ige=/[.?*+^$[\]\\(){}|-]/g;function Fge(e){ + return e.replace(Ige,'\\$&'); + }function qge(e){ + switch(e){ + case 9:case 32:return!0; + }return!1; + }function jge(e){ + if(e>=8192&&e<=8202)return!0;switch(e){ + case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0; + }return!1; + }var Vge=Xx();function Uge(e){ + return Vge.test(e); + }function Bge(e){ + switch(e){ + case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1; + } + }function Gge(e){ + return e=e.trim().replace(/\s+/g,' '),'\u1E9E'.toLowerCase()==='\u1E7E'&&(e=e.replace(/ẞ/g,'\xDF')),e.toLowerCase().toUpperCase(); + }En.lib={};En.lib.mdurl=PP();En.lib.ucmicro=Sz();En.assign=wge;En.isString=Age;En.has=Oz;En.unescapeMd=Oge;En.unescapeAll=Nge;En.isValidEntityCode=Nz;En.fromCodePoint=Dz;En.escapeHtml=Mge;En.arrayReplaceAt=Ege;En.isSpace=qge;En.isWhiteSpace=jge;En.isMdAsciiPunct=Bge;En.isPunctChar=Uge;En.escapeRE=Fge;En.normalizeReference=Gge; +});var Rz=X((qPe,Pz)=>{ + 'use strict';Pz.exports=function(t,r,n){ + var i,o,s,l,c=-1,f=t.posMax,m=t.pos;for(t.pos=r+1,i=1;t.pos{ + 'use strict';var Mz=Ht().unescapeAll;Iz.exports=function(t,r,n){ + var i,o,s=0,l=r,c={ok:!1,pos:0,lines:0,str:''};if(t.charCodeAt(r)===60){ + for(r++;r32))return c;if(i===41){ + if(o===0)break;o--; + }r++; + }return l===r||o!==0||(c.str=Mz(t.slice(l,r)),c.lines=s,c.pos=r,c.ok=!0),c; + }; +});var jz=X((VPe,qz)=>{ + 'use strict';var zge=Ht().unescapeAll;qz.exports=function(t,r,n){ + var i,o,s=0,l=r,c={ok:!1,pos:0,lines:0,str:''};if(r>=n||(o=t.charCodeAt(r),o!==34&&o!==39&&o!==40))return c;for(r++,o===40&&(o=41);r{ + 'use strict';$x.parseLinkLabel=Rz();$x.parseLinkDestination=Fz();$x.parseLinkTitle=jz(); +});var Bz=X((BPe,Uz)=>{ + 'use strict';var Hge=Ht().assign,Qge=Ht().unescapeAll,Sf=Ht().escapeHtml,Ss={};Ss.code_inline=function(e,t,r,n,i){ + var o=e[t];return''+Sf(e[t].content)+''; + };Ss.code_block=function(e,t,r,n,i){ + var o=e[t];return''+Sf(e[t].content)+` +`; + };Ss.fence=function(e,t,r,n,i){ + var o=e[t],s=o.info?Qge(o.info).trim():'',l='',c='',f,m,v,g,y;return s&&(v=s.split(/(\s+)/g),l=v[0],c=v.slice(2).join('')),r.highlight?f=r.highlight(o.content,l,c)||Sf(o.content):f=Sf(o.content),f.indexOf(''+f+` +`):'
'+f+`
+`; + };Ss.image=function(e,t,r,n,i){ + var o=e[t];return o.attrs[o.attrIndex('alt')][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r); + };Ss.hardbreak=function(e,t,r){ + return r.xhtmlOut?`
+`:`
+`; + };Ss.softbreak=function(e,t,r){ + return r.breaks?r.xhtmlOut?`
+`:`
+`:` +`; + };Ss.text=function(e,t){ + return Sf(e[t].content); + };Ss.html_block=function(e,t){ + return e[t].content; + };Ss.html_inline=function(e,t){ + return e[t].content; + };function lm(){ + this.rules=Hge({},Ss); + }lm.prototype.renderAttrs=function(t){ + var r,n,i;if(!t.attrs)return'';for(i='',r=0,n=t.attrs.length;r +`:'>',o); + };lm.prototype.renderInline=function(e,t,r){ + for(var n,i='',o=this.rules,s=0,l=e.length;s{ + 'use strict';function Fa(){ + this.__rules__=[],this.__cache__=null; + }Fa.prototype.__find__=function(e){ + for(var t=0;t{ + 'use strict';var Wge=/\r\n?|\n/g,Yge=/\0/g;zz.exports=function(t){ + var r;r=t.src.replace(Wge,` +`),r=r.replace(Yge,'\uFFFD'),t.src=r; + }; +});var Wz=X((HPe,Qz)=>{ + 'use strict';Qz.exports=function(t){ + var r;t.inlineMode?(r=new t.Token('inline','',0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens); + }; +});var Kz=X((QPe,Yz)=>{ + 'use strict';Yz.exports=function(t){ + var r=t.tokens,n,i,o;for(i=0,o=r.length;i{ + 'use strict';var Kge=Ht().arrayReplaceAt;function Xge(e){ + return/^\s]/i.test(e); + }function Zge(e){ + return/^<\/a\s*>/i.test(e); + }Xz.exports=function(t){ + var r,n,i,o,s,l,c,f,m,v,g,y,w,T,S,A,b=t.tokens,C;if(t.md.options.linkify){ + for(n=0,i=b.length;n=0;r--){ + if(l=o[r],l.type==='link_close'){ + for(r--;o[r].level!==l.level&&o[r].type!=='link_open';)r--;continue; + }if(l.type==='html_inline'&&(Xge(l.content)&&w>0&&w--,Zge(l.content)&&w++),!(w>0)&&l.type==='text'&&t.md.linkify.test(l.content)){ + for(m=l.content,C=t.md.linkify.match(m),c=[],y=l.level,g=0,f=0;fg&&(s=new t.Token('text','',0),s.content=m.slice(g,v),s.level=y,c.push(s)),s=new t.Token('link_open','a',1),s.attrs=[['href',S]],s.level=y++,s.markup='linkify',s.info='auto',c.push(s),s=new t.Token('text','',0),s.content=A,s.level=y,c.push(s),s=new t.Token('link_close','a',-1),s.level=--y,s.markup='linkify',s.info='auto',c.push(s),g=C[f].lastIndex);g{ + 'use strict';var Jz=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Jge=/\((c|tm|r|p)\)/i,_ge=/\((c|tm|r|p)\)/ig,$ge={c:'\xA9',r:'\xAE',p:'\xA7',tm:'\u2122'};function eye(e,t){ + return $ge[t.toLowerCase()]; + }function tye(e){ + var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==='text'&&!n&&(r.content=r.content.replace(_ge,eye)),r.type==='link_open'&&r.info==='auto'&&n--,r.type==='link_close'&&r.info==='auto'&&n++; + }function rye(e){ + var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==='text'&&!n&&Jz.test(r.content)&&(r.content=r.content.replace(/\+-/g,'\xB1').replace(/\.{2,}/g,'\u2026').replace(/([?!])…/g,'$1..').replace(/([?!]){4,}/g,'$1$1$1').replace(/,{2,}/g,',').replace(/(^|[^-])---(?=[^-]|$)/mg,'$1\u2014').replace(/(^|\s)--(?=\s|$)/mg,'$1\u2013').replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,'$1\u2013')),r.type==='link_open'&&r.info==='auto'&&n--,r.type==='link_close'&&r.info==='auto'&&n++; + }_z.exports=function(t){ + var r;if(t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==='inline'&&(Jge.test(t.tokens[r].content)&&tye(t.tokens[r].children),Jz.test(t.tokens[r].content)&&rye(t.tokens[r].children)); + }; +});var aH=X((KPe,oH)=>{ + 'use strict';var eH=Ht().isWhiteSpace,tH=Ht().isPunctChar,rH=Ht().isMdAsciiPunct,nye=/['"]/,nH=/['"]/g,iH='\u2019';function tw(e,t,r){ + return e.substr(0,t)+r+e.substr(t+1); + }function iye(e,t){ + var r,n,i,o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k,P;for(x=[],r=0;r=0&&!(x[b].level<=c);b--);if(x.length=b+1,n.type==='text'){ + i=n.content,s=0,l=i.length;e:for(;s=0)m=i.charCodeAt(o.index-1);else for(b=r-1;b>=0&&!(e[b].type==='softbreak'||e[b].type==='hardbreak');b--)if(e[b].content){ + m=e[b].content.charCodeAt(e[b].content.length-1);break; + }if(v=32,s=48&&m<=57&&(A=S=!1),S&&A&&(S=g,A=y),!S&&!A){ + C&&(n.content=tw(n.content,o.index,iH));continue; + }if(A){ + for(b=x.length-1;b>=0&&(f=x[b],!(x[b].level=0;r--)t.tokens[r].type!=='inline'||!nye.test(t.tokens[r].content)||iye(t.tokens[r].children,t); + }; +});var rw=X((XPe,sH)=>{ + 'use strict';function um(e,t,r){ + this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content='',this.markup='',this.info='',this.meta=null,this.block=!1,this.hidden=!1; + }um.prototype.attrIndex=function(t){ + var r,n,i;if(!this.attrs)return-1;for(r=this.attrs,n=0,i=r.length;n=0&&(n=this.attrs[r][1]),n; + };um.prototype.attrJoin=function(t,r){ + var n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+' '+r; + };sH.exports=um; +});var cH=X((ZPe,uH)=>{ + 'use strict';var oye=rw();function lH(e,t,r){ + this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t; + }lH.prototype.Token=oye;uH.exports=lH; +});var dH=X((JPe,fH)=>{ + 'use strict';var aye=ew(),FP=[['normalize',Hz()],['block',Wz()],['inline',Kz()],['linkify',Zz()],['replacements',$z()],['smartquotes',aH()]];function qP(){ + this.ruler=new aye;for(var e=0;e{ + 'use strict';var jP=Ht().isSpace;function VP(e,t){ + var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r); + }function pH(e){ + var t=[],r=0,n=e.length,i,o=!1,s=0,l='';for(i=e.charCodeAt(r);rn||(m=r+1,t.sCount[m]=4||(l=t.bMarks[m]+t.tShift[m],l>=t.eMarks[m])||(k=t.src.charCodeAt(l++),k!==124&&k!==45&&k!==58)||l>=t.eMarks[m]||(P=t.src.charCodeAt(l++),P!==124&&P!==45&&P!==58&&!jP(P))||k===45&&jP(P))return!1;for(;l=4||(v=pH(s),v.length&&v[0]===''&&v.shift(),v.length&&v[v.length-1]===''&&v.pop(),g=v.length,g===0||g!==w.length))return!1;if(i)return!0;for(b=t.parentType,t.parentType='table',x=t.md.block.ruler.getRules('blockquote'),y=t.push('table_open','table',1),y.map=S=[r,0],y=t.push('thead_open','thead',1),y.map=[r,r+1],y=t.push('tr_open','tr',1),y.map=[r,r+1],c=0;c=4)break;for(v=pH(s),v.length&&v[0]===''&&v.shift(),v.length&&v[v.length-1]===''&&v.pop(),m===r+2&&(y=t.push('tbody_open','tbody',1),y.map=A=[r+2,0]),y=t.push('tr_open','tr',1),y.map=[m,m+1],c=0;c{ + 'use strict';vH.exports=function(t,r,n){ + var i,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=i=r+1;i=4){ + i++,o=i;continue; + }break; + }return t.line=o,s=t.push('code_block','code',0),s.content=t.getLines(r,o,4+t.blkIndent,!1)+` +`,s.map=[r,t.line],!0; + }; +});var bH=X((eRe,yH)=>{ + 'use strict';yH.exports=function(t,r,n,i){ + var o,s,l,c,f,m,v,g=!1,y=t.bMarks[r]+t.tShift[r],w=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||y+3>w||(o=t.src.charCodeAt(y),o!==126&&o!==96)||(f=y,y=t.skipChars(y,o),s=y-f,s<3)||(v=t.src.slice(f,y),l=t.src.slice(y,w),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(c=r;c++,!(c>=n||(y=f=t.bMarks[c]+t.tShift[c],w=t.eMarks[c],y=4)&&(y=t.skipChars(y,o),!(y-f{ + 'use strict';var AH=Ht().isSpace;xH.exports=function(t,r,n,i){ + var o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k,P,D,N,I=t.lineMax,V=t.bMarks[r]+t.tShift[r],G=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(V++)!==62)return!1;if(i)return!0;for(c=y=t.sCount[r]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,x=!0):t.src.charCodeAt(V)===9?(x=!0,(t.bsCount[r]+y)%4===3?(V++,c++,y++,o=!1):o=!0):x=!1,w=[t.bMarks[r]],t.bMarks[r]=V;V=G,b=[t.sCount[r]],t.sCount[r]=y-c,C=[t.tShift[r]],t.tShift[r]=V-t.bMarks[r],P=t.md.block.ruler.getRules('blockquote'),A=t.parentType,t.parentType='blockquote',g=r+1;g=G));g++){ + if(t.src.charCodeAt(V++)===62&&!N){ + for(c=y=t.sCount[g]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,x=!0):t.src.charCodeAt(V)===9?(x=!0,(t.bsCount[g]+y)%4===3?(V++,c++,y++,o=!1):o=!0):x=!1,w.push(t.bMarks[g]),t.bMarks[g]=V;V=G,T.push(t.bsCount[g]),t.bsCount[g]=t.sCount[g]+1+(x?1:0),b.push(t.sCount[g]),t.sCount[g]=y-c,C.push(t.tShift[g]),t.tShift[g]=V-t.bMarks[g];continue; + }if(m)break;for(k=!1,l=0,f=P.length;l',D.map=v=[r,0],t.md.block.tokenize(t,r,g),D=t.push('blockquote_close','blockquote',-1),D.markup='>',t.lineMax=I,t.parentType=A,v[1]=t.line,l=0;l{ + 'use strict';var sye=Ht().isSpace;EH.exports=function(t,r,n,i){ + var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(f++),o!==42&&o!==45&&o!==95))return!1;for(s=1;f{ + 'use strict';var kH=Ht().isSpace;function CH(e,t){ + var r,n,i,o;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){ + if(i>=o)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){ + if(i-n>=10)return-1;continue; + }if(r===41||r===46)break;return-1; + }return i=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]=t.blkIndent&&(K=!0),(G=SH(t,r))>=0){ + if(v=!0,U=t.bMarks[r]+t.tShift[r],A=Number(t.src.slice(U,G-1)),K&&A!==1)return!1; + }else if((G=CH(t,r))>=0)v=!1;else return!1;if(K&&t.skipSpaces(G)>=t.eMarks[r])return!1;if(S=t.src.charCodeAt(G-1),i)return!0;for(T=t.tokens.length,v?(J=t.push('ordered_list_open','ol',1),A!==1&&(J.attrs=[['start',A]])):J=t.push('bullet_list_open','ul',1),J.map=w=[r,0],J.markup=String.fromCharCode(S),C=r,B=!1,j=t.md.block.ruler.getRules('list'),P=t.parentType,t.parentType='list';C=b?f=1:f=x-m,f>4&&(f=1),c=m+f,J=t.push('list_item_open','li',1),J.markup=String.fromCharCode(S),J.map=g=[r,0],v&&(J.info=t.src.slice(U,G-1)),I=t.tight,N=t.tShift[r],D=t.sCount[r],k=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=c,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=x,s>=b&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||B)&&(ee=!1),B=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=k,t.tShift[r]=N,t.sCount[r]=D,t.tight=I,J=t.push('list_item_close','li',-1),J.markup=String.fromCharCode(S),C=r=t.line,g[1]=C,s=t.bMarks[r],C>=n||t.sCount[C]=4)break;for(z=!1,l=0,y=j.length;l{ + 'use strict';var uye=Ht().normalizeReference,nw=Ht().isSpace;DH.exports=function(t,r,n,i){ + var o,s,l,c,f,m,v,g,y,w,T,S,A,b,C,x,k=0,P=t.bMarks[r]+t.tShift[r],D=t.eMarks[r],N=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(P)!==91)return!1;for(;++P3)&&!(t.sCount[N]<0)){ + for(b=!1,m=0,v=C.length;m'u'&&(t.env.references={}),typeof t.env.references[g]>'u'&&(t.env.references[g]={title:x,href:f}),t.parentType=w,t.line=r+k+1),!0); + }; +});var RH=X((oRe,PH)=>{ + 'use strict';PH.exports=['address','article','aside','base','basefont','blockquote','body','caption','center','col','colgroup','dd','details','dialog','dir','div','dl','dt','fieldset','figcaption','figure','footer','form','frame','frameset','h1','h2','h3','h4','h5','h6','head','header','hr','html','iframe','legend','li','link','main','menu','menuitem','nav','noframes','ol','optgroup','option','p','param','section','source','summary','table','tbody','td','tfoot','th','thead','title','tr','track','ul']; +});var BP=X((aRe,UP)=>{ + 'use strict';var cye='[a-zA-Z_:][a-zA-Z0-9:._-]*',fye="[^\"'=<>`\\x00-\\x20]+",dye="'[^']*'",pye='"[^"]*"',mye='(?:'+fye+'|'+dye+'|'+pye+')',hye='(?:\\s+'+cye+'(?:\\s*=\\s*'+mye+')?)',MH='<[A-Za-z][A-Za-z0-9\\-]*'+hye+'*\\s*\\/?>',IH='<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>',vye='|',gye='<[?][\\s\\S]*?[?]>',yye=']*>',bye='',Aye=new RegExp('^(?:'+MH+'|'+IH+'|'+vye+'|'+gye+'|'+yye+'|'+bye+')'),xye=new RegExp('^(?:'+MH+'|'+IH+')');UP.exports.HTML_TAG_RE=Aye;UP.exports.HTML_OPEN_CLOSE_TAG_RE=xye; +});var qH=X((sRe,FH)=>{ + 'use strict';var wye=RH(),Eye=BP().HTML_OPEN_CLOSE_TAG_RE,cm=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp('^|$))','i'),/^$/,!0],[new RegExp(Eye.source+'\\s*$'),/^$/,!1]];FH.exports=function(t,r,n,i){ + var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(f)!==60)return!1;for(c=t.src.slice(f,m),o=0;o{ + 'use strict';var jH=Ht().isSpace;VH.exports=function(t,r,n,i){ + var o,s,l,c,f=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(f),o!==35||f>=m))return!1;for(s=1,o=t.src.charCodeAt(++f);o===35&&f6||ff&&jH(t.src.charCodeAt(l-1))&&(m=l),t.line=r+1,c=t.push('heading_open','h'+String(s),1),c.markup='########'.slice(0,s),c.map=[r,t.line],c=t.push('inline','',0),c.content=t.src.slice(f,m).trim(),c.map=[r,t.line],c.children=[],c=t.push('heading_close','h'+String(s),-1),c.markup='########'.slice(0,s)),!0); + }; +});var GH=X((uRe,BH)=>{ + 'use strict';BH.exports=function(t,r,n){ + var i,o,s,l,c,f,m,v,g,y=r+1,w,T=t.md.block.ruler.getRules('paragraph');if(t.sCount[r]-t.blkIndent>=4)return!1;for(w=t.parentType,t.parentType='paragraph';y3)){ + if(t.sCount[y]>=t.blkIndent&&(f=t.bMarks[y]+t.tShift[y],m=t.eMarks[y],f=m)))){ + v=g===61?1:2;break; + }if(!(t.sCount[y]<0)){ + for(o=!1,s=0,l=T.length;s{ + 'use strict';zH.exports=function(t,r){ + var n,i,o,s,l,c,f=r+1,m=t.md.block.ruler.getRules('paragraph'),v=t.lineMax;for(c=t.parentType,t.parentType='paragraph';f3)&&!(t.sCount[f]<0)){ + for(i=!1,o=0,s=m.length;o{ + 'use strict';var QH=rw(),iw=Ht().isSpace;function ks(e,t,r,n){ + var i,o,s,l,c,f,m,v;for(this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType='root',this.level=0,this.result='',o=this.src,v=!1,s=l=f=m=0,c=o.length;l0&&this.level++,this.tokens.push(n),n; + };ks.prototype.isEmpty=function(t){ + return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]; + };ks.prototype.skipEmptyLines=function(t){ + for(var r=this.lineMax;tr;)if(!iw(this.src.charCodeAt(--t)))return t+1;return t; + };ks.prototype.skipChars=function(t,r){ + for(var n=this.src.length;tn;)if(r!==this.src.charCodeAt(--t))return t+1;return t; + };ks.prototype.getLines=function(t,r,n,i){ + var o,s,l,c,f,m,v,g=t;if(t>=r)return'';for(m=new Array(r-t),o=0;gn?m[o]=new Array(s-n+1).join(' ')+this.src.slice(c,f):m[o]=this.src.slice(c,f); + }return m.join(''); + };ks.prototype.Token=QH;WH.exports=ks; +});var XH=X((dRe,KH)=>{ + 'use strict';var Tye=ew(),ow=[['table',hH(),['paragraph','reference']],['code',gH()],['fence',bH(),['paragraph','reference','blockquote','list']],['blockquote',wH(),['paragraph','reference','blockquote','list']],['hr',TH(),['paragraph','reference','blockquote','list']],['list',NH(),['paragraph','reference','blockquote']],['reference',LH()],['html_block',qH(),['paragraph','reference','blockquote']],['heading',UH(),['paragraph','reference','blockquote']],['lheading',GH()],['paragraph',HH()]];function aw(){ + this.ruler=new Tye;for(var e=0;e=r||e.sCount[l]=f){ + e.line=r;break; + }for(i=0;i{ + 'use strict';function Cye(e){ + switch(e){ + case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1; + } + }ZH.exports=function(t,r){ + for(var n=t.pos;n{ + 'use strict';var Sye=Ht().isSpace;_H.exports=function(t,r){ + var n,i,o,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(n=t.pending.length-1,i=t.posMax,!r)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){ + for(o=n-1;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push('hardbreak','br',0); + }else t.pending=t.pending.slice(0,-1),t.push('softbreak','br',0);else t.push('softbreak','br',0);for(s++;s{ + 'use strict';var kye=Ht().isSpace,zP=[];for(GP=0;GP<256;GP++)zP.push(0);var GP;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split('').forEach(function(e){ + zP[e.charCodeAt(0)]=1; + });eQ.exports=function(t,r){ + var n,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==92)return!1;if(i++,i{ + 'use strict';rQ.exports=function(t,r){ + var n,i,o,s,l,c,f,m,v=t.pos,g=t.src.charCodeAt(v);if(g!==96)return!1;for(n=v,v++,i=t.posMax;v{ + 'use strict';HP.exports.tokenize=function(t,r){ + var n,i,o,s,l,c=t.pos,f=t.src.charCodeAt(c);if(r||f!==126||(i=t.scanDelims(t.pos,!0),s=i.length,l=String.fromCharCode(f),s<2))return!1;for(s%2&&(o=t.push('text','',0),o.content=l,s--),n=0;n{ + 'use strict';WP.exports.tokenize=function(t,r){ + var n,i,o,s=t.pos,l=t.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(i=t.scanDelims(t.pos,l===42),n=0;n=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=t[n.end],l=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=l?'strong_open':'em_open',o.tag=l?'strong':'em',o.nesting=1,o.markup=l?s+s:s,o.content='',o=e.tokens[i.token],o.type=l?'strong_close':'em_close',o.tag=l?'strong':'em',o.nesting=-1,o.markup=l?s+s:s,o.content='',l&&(e.tokens[t[r-1].token].content='',e.tokens[t[n.end+1].token].content='',r--)); + }WP.exports.postProcess=function(t){ + var r,n=t.tokens_meta,i=t.tokens_meta.length;for(oQ(t,t.delimiters),r=0;r{ + 'use strict';var Oye=Ht().normalizeReference,KP=Ht().isSpace;aQ.exports=function(t,r){ + var n,i,o,s,l,c,f,m,v,g='',y='',w=t.pos,T=t.posMax,S=t.pos,A=!0;if(t.src.charCodeAt(t.pos)!==91||(l=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(c=s+1,c=T)return!1;if(S=c,f=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),f.ok){ + for(g=t.md.normalizeLink(f.str),t.md.validateLink(g)?c=f.pos:g='',S=c;c=T||t.src.charCodeAt(c)!==41)&&(A=!0),c++; + }if(A){ + if(typeof t.env.references>'u')return!1;if(c=0?o=t.src.slice(S,c++):c=s+1):c=s+1,o||(o=t.src.slice(l,s)),m=t.env.references[Oye(o)],!m)return t.pos=w,!1;g=m.href,y=m.title; + }return r||(t.pos=l,t.posMax=s,v=t.push('link_open','a',1),v.attrs=n=[['href',g]],y&&n.push(['title',y]),t.md.inline.tokenize(t),v=t.push('link_close','a',-1)),t.pos=c,t.posMax=T,!0; + }; +});var uQ=X((ARe,lQ)=>{ + 'use strict';var Nye=Ht().normalizeReference,XP=Ht().isSpace;lQ.exports=function(t,r){ + var n,i,o,s,l,c,f,m,v,g,y,w,T,S='',A=t.pos,b=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(c=t.pos+2,l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),l<0))return!1;if(f=l+1,f=b)return!1;for(T=f,v=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),v.ok&&(S=t.md.normalizeLink(v.str),t.md.validateLink(S)?f=v.pos:S=''),T=f;f=b||t.src.charCodeAt(f)!==41)return t.pos=A,!1;f++; + }else{ + if(typeof t.env.references>'u')return!1;if(f=0?s=t.src.slice(T,f++):f=l+1):f=l+1,s||(s=t.src.slice(c,l)),m=t.env.references[Nye(s)],!m)return t.pos=A,!1;S=m.href,g=m.title; + }return r||(o=t.src.slice(c,l),t.md.inline.parse(o,t.md,t.env,w=[]),y=t.push('image','img',0),y.attrs=n=[['src',S],['alt','']],y.children=w,y.content=o,g&&n.push(['title',g])),t.pos=f,t.posMax=b,!0; + }; +});var fQ=X((xRe,cQ)=>{ + 'use strict';var Dye=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Lye=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;cQ.exports=function(t,r){ + var n,i,o,s,l,c,f=t.pos;if(t.src.charCodeAt(f)!==60)return!1;for(l=t.pos,c=t.posMax;;){ + if(++f>=c||(s=t.src.charCodeAt(f),s===60))return!1;if(s===62)break; + }return n=t.src.slice(l+1,f),Lye.test(n)?(i=t.md.normalizeLink(n),t.md.validateLink(i)?(r||(o=t.push('link_open','a',1),o.attrs=[['href',i]],o.markup='autolink',o.info='auto',o=t.push('text','',0),o.content=t.md.normalizeLinkText(n),o=t.push('link_close','a',-1),o.markup='autolink',o.info='auto'),t.pos+=n.length+2,!0):!1):Dye.test(n)?(i=t.md.normalizeLink('mailto:'+n),t.md.validateLink(i)?(r||(o=t.push('link_open','a',1),o.attrs=[['href',i]],o.markup='autolink',o.info='auto',o=t.push('text','',0),o.content=t.md.normalizeLinkText(n),o=t.push('link_close','a',-1),o.markup='autolink',o.info='auto'),t.pos+=n.length+2,!0):!1):!1; + }; +});var pQ=X((wRe,dQ)=>{ + 'use strict';var Pye=BP().HTML_TAG_RE;function Rye(e){ + var t=e|32;return t>=97&&t<=122; + }dQ.exports=function(t,r){ + var n,i,o,s,l=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(l)!==60||l+2>=o)||(n=t.src.charCodeAt(l+1),n!==33&&n!==63&&n!==47&&!Rye(n))||(i=t.src.slice(l).match(Pye),!i)?!1:(r||(s=t.push('html_inline','',0),s.content=t.src.slice(l,l+i[0].length)),t.pos+=i[0].length,!0); + }; +});var gQ=X((ERe,vQ)=>{ + 'use strict';var mQ=LP(),Mye=Ht().has,Iye=Ht().isValidEntityCode,hQ=Ht().fromCodePoint,Fye=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,qye=/^&([a-z][a-z0-9]{1,31});/i;vQ.exports=function(t,r){ + var n,i,o,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1{ + 'use strict';function yQ(e,t){ + var r,n,i,o,s,l,c,f,m={},v=t.length;if(v){ + var g=0,y=-2,w=[];for(r=0;rs;n-=w[n]+1)if(o=t[n],o.marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(c=!0),!c)){ + f=n>0&&!t[n-1].open?w[n-1]+1:0,w[r]=r-n+f,w[n]=f,i.open=!1,o.end=r,o.close=!1,l=-1,y=-2;break; + }l!==-1&&(m[i.marker][(i.open?3:0)+(i.length||0)%3]=l); + } + } + }bQ.exports=function(t){ + var r,n=t.tokens_meta,i=t.tokens_meta.length;for(yQ(t,t.delimiters),r=0;r{ + 'use strict';xQ.exports=function(t){ + var r,n,i=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r0&&i++,o[r].type==='text'&&r+1{ + 'use strict';var ZP=rw(),EQ=Ht().isWhiteSpace,TQ=Ht().isPunctChar,CQ=Ht().isMdAsciiPunct;function Xg(e,t,r,n){ + this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending='',this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1; + }Xg.prototype.pushPending=function(){ + var e=new ZP('text','',0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending='',e; + };Xg.prototype.push=function(e,t,r){ + this.pending&&this.pushPending();var n=new ZP(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n; + };Xg.prototype.scanDelims=function(e,t){ + var r=e,n,i,o,s,l,c,f,m,v,g=!0,y=!0,w=this.posMax,T=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r{ + 'use strict';var OQ=ew(),JP=[['text',JH()],['newline',$H()],['escape',tQ()],['backticks',nQ()],['strikethrough',QP().tokenize],['emphasis',YP().tokenize],['link',sQ()],['image',uQ()],['autolink',fQ()],['html_inline',pQ()],['entity',gQ()]],_P=[['balance_pairs',AQ()],['strikethrough',QP().postProcess],['emphasis',YP().postProcess],['text_collapse',wQ()]];function Zg(){ + var e;for(this.ruler=new OQ,e=0;e=o)break;continue; + }e.pending+=e.src[e.pos++]; + }e.pending&&e.pushPending(); + };Zg.prototype.parse=function(e,t,r,n){ + var i,o,s,l=new this.State(e,t,r,n);for(this.tokenize(l),o=this.ruler2.getRules(''),s=o.length,i=0;i{ + 'use strict';LQ.exports=function(e){ + var t={};t.src_Any=RP().source,t.src_Cc=MP().source,t.src_Z=IP().source,t.src_P=Xx().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join('|'),t.src_ZCc=[t.src_Z,t.src_Cc].join('|');var r='[><\uFF5C]';return t.src_pseudo_letter='(?:(?!'+r+'|'+t.src_ZPCc+')'+t.src_Any+')',t.src_ip4='(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)',t.src_auth='(?:(?:(?!'+t.src_ZCc+'|[@/\\[\\]()]).)+@)?',t.src_port='(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?',t.src_host_terminator='(?=$|'+r+'|'+t.src_ZPCc+')(?!-|_|:\\d|\\.-|\\.(?!$|'+t.src_ZPCc+'))',t.src_path='(?:[/?#](?:(?!'+t.src_ZCc+'|'+r+'|[()[\\]{}.,"\'?!\\-;]).|\\[(?:(?!'+t.src_ZCc+'|\\]).)*\\]|\\((?:(?!'+t.src_ZCc+'|[)]).)*\\)|\\{(?:(?!'+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+'|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!'+t.src_ZCc+'|[.]).|'+(e&&e['---']?'\\-(?!--(?:[^-]|$))(?:-*)|':'\\-+|')+',(?!'+t.src_ZCc+').|;(?!'+t.src_ZCc+').|\\!+(?!'+t.src_ZCc+'|[!]).|\\?(?!'+t.src_ZCc+'|[?]).)+|\\/)?',t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn='xn--[a-z0-9\\-]{1,59}',t.src_domain_root='(?:'+t.src_xn+'|'+t.src_pseudo_letter+'{1,63})',t.src_domain='(?:'+t.src_xn+'|(?:'+t.src_pseudo_letter+')|(?:'+t.src_pseudo_letter+'(?:-|'+t.src_pseudo_letter+'){0,61}'+t.src_pseudo_letter+'))',t.src_host='(?:(?:(?:(?:'+t.src_domain+')\\.)*'+t.src_domain+'))',t.tpl_host_fuzzy='(?:'+t.src_ip4+'|(?:(?:(?:'+t.src_domain+')\\.)+(?:%TLDS%)))',t.tpl_host_no_ip_fuzzy='(?:(?:(?:'+t.src_domain+')\\.)+(?:%TLDS%))',t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test='localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:'+t.src_ZPCc+'|>|$))',t.tpl_email_fuzzy='(^|'+r+'|"|\\(|'+t.src_ZCc+')('+t.src_email_name+'@'+t.tpl_host_fuzzy_strict+')',t.tpl_link_fuzzy='(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|'+t.src_ZPCc+'))((?![$+<=>^`|\uFF5C])'+t.tpl_host_port_fuzzy_strict+t.src_path+')',t.tpl_link_no_ip_fuzzy='(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|'+t.src_ZPCc+'))((?![$+<=>^`|\uFF5C])'+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+')',t; + }; +});var jQ=X((NRe,qQ)=>{ + 'use strict';function $P(e){ + var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){ + r&&Object.keys(r).forEach(function(n){ + e[n]=r[n]; + }); + }),e; + }function lw(e){ + return Object.prototype.toString.call(e); + }function jye(e){ + return lw(e)==='[object String]'; + }function Vye(e){ + return lw(e)==='[object Object]'; + }function Uye(e){ + return lw(e)==='[object RegExp]'; + }function RQ(e){ + return lw(e)==='[object Function]'; + }function Bye(e){ + return e.replace(/[.?*+^$[\]\\(){}|-]/g,'\\$&'); + }var FQ={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gye(e){ + return Object.keys(e||{}).reduce(function(t,r){ + return t||FQ.hasOwnProperty(r); + },!1); + }var zye={'http:':{validate:function(e,t,r){ + var n=e.slice(t);return r.re.http||(r.re.http=new RegExp('^\\/\\/'+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,'i')),r.re.http.test(n)?n.match(r.re.http)[0].length:0; + }},'https:':'http:','ftp:':'http:','//':{validate:function(e,t,r){ + var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp('^'+r.re.src_auth+'(?:localhost|(?:(?:'+r.re.src_domain+')\\.)+'+r.re.src_domain_root+')'+r.re.src_port+r.re.src_host_terminator+r.re.src_path,'i')),r.re.no_http.test(n)?t>=3&&e[t-3]===':'||t>=3&&e[t-3]==='/'?0:n.match(r.re.no_http)[0].length:0; + }},'mailto:':{validate:function(e,t,r){ + var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp('^'+r.re.src_email_name+'@'+r.re.src_host_strict,'i')),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0; + }}},Hye='a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]',Qye='biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444'.split('|');function Wye(e){ + e.__index__=-1,e.__text_cache__=''; + }function Yye(e){ + return function(t,r){ + var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0; + }; + }function MQ(){ + return function(e,t){ + t.normalize(e); + }; + }function sw(e){ + var t=e.re=PQ()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Hye),r.push(t.src_xn),t.src_tlds=r.join('|');function n(l){ + return l.replace('%TLDS%',t.src_tlds); + }t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),'i'),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),'i'),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),'i'),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),'i');var i=[];e.__compiled__={};function o(l,c){ + throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c); + }Object.keys(e.__schemas__).forEach(function(l){ + var c=e.__schemas__[l];if(c!==null){ + var f={validate:null,link:null};if(e.__compiled__[l]=f,Vye(c)){ + Uye(c.validate)?f.validate=Yye(c.validate):RQ(c.validate)?f.validate=c.validate:o(l,c),RQ(c.normalize)?f.normalize=c.normalize:c.normalize?o(l,c):f.normalize=MQ();return; + }if(jye(c)){ + i.push(l);return; + }o(l,c); + } + }),i.forEach(function(l){ + e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize); + }),e.__compiled__['']={validate:null,normalize:MQ()};var s=Object.keys(e.__compiled__).filter(function(l){ + return l.length>0&&e.__compiled__[l]; + }).map(Bye).join('|');e.re.schema_test=RegExp('(^|(?!_)(?:[><\uFF5C]|'+t.src_ZPCc+'))('+s+')','i'),e.re.schema_search=RegExp('(^|(?!_)(?:[><\uFF5C]|'+t.src_ZPCc+'))('+s+')','ig'),e.re.pretest=RegExp('('+e.re.schema_test.source+')|('+e.re.host_fuzzy_test.source+')|@','i'),Wye(e); + }function Kye(e,t){ + var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i; + }function IQ(e,t){ + var r=new Kye(e,t);return e.__compiled__[r.schema].normalize(r,e),r; + }function Xo(e,t){ + if(!(this instanceof Xo))return new Xo(e,t);t||Gye(e)&&(t=e,e={}),this.__opts__=$P({},FQ,t),this.__index__=-1,this.__last_index__=-1,this.__schema__='',this.__text_cache__='',this.__schemas__=$P({},zye,e),this.__compiled__={},this.__tlds__=Qye,this.__tlds_replaced__=!1,this.re={},sw(this); + }Xo.prototype.add=function(t,r){ + return this.__schemas__[t]=r,sw(this),this; + };Xo.prototype.set=function(t){ + return this.__opts__=$P(this.__opts__,t),this; + };Xo.prototype.test=function(t){ + if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,i,o,s,l,c,f,m;if(this.re.schema_test.test(t)){ + for(c=this.re.schema_search,c.lastIndex=0;(r=c.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],c.lastIndex),o){ + this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break; + } + }return this.__opts__.fuzzyLink&&this.__compiled__['http:']&&(f=t.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__='mailto:',this.__index__=s,this.__last_index__=l))),this.__index__>=0; + };Xo.prototype.pretest=function(t){ + return this.re.pretest.test(t); + };Xo.prototype.testSchemaAt=function(t,r,n){ + return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0; + };Xo.prototype.match=function(t){ + var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(IQ(this,r)),r=this.__last_index__);for(var i=r?t.slice(r):t;this.test(i);)n.push(IQ(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null; + };Xo.prototype.tlds=function(t,r){ + return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,o){ + return n!==o[i-1]; + }).reverse(),sw(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,sw(this),this); + };Xo.prototype.normalize=function(t){ + t.schema||(t.url='http://'+t.url),t.schema==='mailto:'&&!/^mailto:/i.test(t.url)&&(t.url='mailto:'+t.url); + };Xo.prototype.onCompile=function(){};qQ.exports=Xo; +});var YQ=X((DRe,WQ)=>{ + 'use strict';var UQ='-',Xye=/^xn--/,Zye=/[^\0-\x7E]/,Jye=/[\x2E\u3002\uFF0E\uFF61]/g,_ye={overflow:'Overflow: input needs wider integers to process','not-basic':'Illegal input >= 0x80 (not a basic code point)','invalid-input':'Invalid input'},eR=36-1,Os=Math.floor,tR=String.fromCharCode;function kf(e){ + throw new RangeError(_ye[e]); + }function $ye(e,t){ + let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r; + }function BQ(e,t){ + let r=e.split('@'),n='';r.length>1&&(n=r[0]+'@',e=r[1]),e=e.replace(Jye,'.');let i=e.split('.'),o=$ye(i,t).join('.');return n+o; + }function GQ(e){ + let t=[],r=0,n=e.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...e),t0e=function(e){ + return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36; + },VQ=function(e,t){ + return e+22+75*(e<26)-((t!=0)<<5); + },zQ=function(e,t,r){ + let n=0;for(e=r?Os(e/700):e>>1,e+=Os(e/t);e>eR*26>>1;n+=36)e=Os(e/eR);return Os(n+(eR+1)*e/(e+38)); + },HQ=function(e){ + let t=[],r=e.length,n=0,i=128,o=72,s=e.lastIndexOf(UQ);s<0&&(s=0);for(let l=0;l=128&&kf('not-basic'),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l=r&&kf('invalid-input');let g=t0e(e.charCodeAt(l++));(g>=36||g>Os((2147483647-n)/m))&&kf('overflow'),n+=g*m;let y=v<=o?1:v>=o+26?26:v-o;if(gOs(2147483647/w)&&kf('overflow'),m*=w; + }let f=t.length+1;o=zQ(n-c,f,c==0),Os(n/f)>2147483647-i&&kf('overflow'),i+=Os(n/f),n%=f,t.splice(n++,0,i); + }return String.fromCodePoint(...t); + },QQ=function(e){ + let t=[];e=GQ(e);let r=e.length,n=128,i=0,o=72;for(let c of e)c<128&&t.push(tR(c));let s=t.length,l=s;for(s&&t.push(UQ);l=n&&mOs((2147483647-i)/f)&&kf('overflow'),i+=(c-n)*f,n=c;for(let m of e)if(m2147483647&&kf('overflow'),m==n){ + let v=i;for(let g=36;;g+=36){ + let y=g<=o?1:g>=o+26?26:g-o;if(v{ + 'use strict';KQ.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}; +});var JQ=X((PRe,ZQ)=>{ + 'use strict';ZQ.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:20},components:{core:{rules:['normalize','block','inline']},block:{rules:['paragraph']},inline:{rules:['text'],rules2:['balance_pairs','text_collapse']}}}; +});var $Q=X((RRe,_Q)=>{ + 'use strict';_Q.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:'language-',linkify:!1,typographer:!1,quotes:'\u201C\u201D\u2018\u2019',highlight:null,maxNesting:20},components:{core:{rules:['normalize','block','inline']},block:{rules:['blockquote','code','fence','heading','hr','html_block','lheading','list','reference','paragraph']},inline:{rules:['autolink','backticks','emphasis','entity','escape','html_inline','image','link','newline','text'],rules2:['balance_pairs','emphasis','text_collapse']}}}; +});var nW=X((MRe,rW)=>{ + 'use strict';var Jg=Ht(),o0e=Vz(),a0e=Bz(),s0e=dH(),l0e=XH(),u0e=DQ(),c0e=jQ(),Of=PP(),eW=YQ(),f0e={default:XQ(),zero:JQ(),commonmark:$Q()},d0e=/^(vbscript|javascript|file|data):/,p0e=/^data:image\/(gif|png|jpeg|webp);/;function m0e(e){ + var t=e.trim().toLowerCase();return d0e.test(t)?!!p0e.test(t):!0; + }var tW=['http:','https:','mailto:'];function h0e(e){ + var t=Of.parse(e,!0);if(t.hostname&&(!t.protocol||tW.indexOf(t.protocol)>=0))try{ + t.hostname=eW.toASCII(t.hostname); + }catch{}return Of.encode(Of.format(t)); + }function v0e(e){ + var t=Of.parse(e,!0);if(t.hostname&&(!t.protocol||tW.indexOf(t.protocol)>=0))try{ + t.hostname=eW.toUnicode(t.hostname); + }catch{}return Of.decode(Of.format(t),Of.decode.defaultChars+'%'); + }function Zo(e,t){ + if(!(this instanceof Zo))return new Zo(e,t);t||Jg.isString(e)||(t=e||{},e='default'),this.inline=new u0e,this.block=new l0e,this.core=new s0e,this.renderer=new a0e,this.linkify=new c0e,this.validateLink=m0e,this.normalizeLink=h0e,this.normalizeLinkText=v0e,this.utils=Jg,this.helpers=Jg.assign({},o0e),this.options={},this.configure(e),t&&this.set(t); + }Zo.prototype.set=function(e){ + return Jg.assign(this.options,e),this; + };Zo.prototype.configure=function(e){ + var t=this,r;if(Jg.isString(e)&&(r=e,e=f0e[r],!e))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){ + e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2); + }),this; + };Zo.prototype.enable=function(e,t){ + var r=[];Array.isArray(e)||(e=[e]),['core','block','inline'].forEach(function(i){ + r=r.concat(this[i].ruler.enable(e,!0)); + },this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(i){ + return r.indexOf(i)<0; + });if(n.length&&!t)throw new Error('MarkdownIt. Failed to enable unknown rule(s): '+n);return this; + };Zo.prototype.disable=function(e,t){ + var r=[];Array.isArray(e)||(e=[e]),['core','block','inline'].forEach(function(i){ + r=r.concat(this[i].ruler.disable(e,!0)); + },this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(i){ + return r.indexOf(i)<0; + });if(n.length&&!t)throw new Error('MarkdownIt. Failed to disable unknown rule(s): '+n);return this; + };Zo.prototype.use=function(e){ + var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this; + };Zo.prototype.parse=function(e,t){ + if(typeof e!='string')throw new Error('Input data should be a String');var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens; + };Zo.prototype.render=function(e,t){ + return t=t||{},this.renderer.render(this.parse(e,t),this.options,t); + };Zo.prototype.parseInline=function(e,t){ + var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens; + };Zo.prototype.renderInline=function(e,t){ + return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t); + };rW.exports=Zo; +});var oW=X((IRe,iW)=>{ + 'use strict';iW.exports=nW(); +});var YW=X(fR=>{ + 'use strict';Object.defineProperty(fR,'__esModule',{value:!0});function U0e(e){ + var t={};return function(r){ + return t[r]===void 0&&(t[r]=e(r)),t[r]; + }; + }fR.default=U0e; +});var KW=X(dR=>{ + 'use strict';Object.defineProperty(dR,'__esModule',{value:!0});function B0e(e){ + return e&&typeof e=='object'&&'default'in e?e.default:e; + }var G0e=B0e(YW()),z0e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H0e=G0e(function(e){ + return z0e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91; + });dR.default=H0e; +});function _t(e){ + return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,'default')?e.default:e; +}function Kt(){ + return RZ||(RZ=1,function(e,t){ + (function(r,n){ + e.exports=n(); + })(hxe,function(){ + var r=navigator.userAgent,n=navigator.platform,i=/gecko\/\d/i.test(r),o=/MSIE \d/.test(r),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),l=/Edge\/(\d+)/.exec(r),c=o||s||l,f=c&&(o?document.documentMode||6:+(l||s)[1]),m=!l&&/WebKit\//.test(r),v=m&&/Qt\/\d+\.\d+/.test(r),g=!l&&/Chrome\//.test(r),y=/Opera\//.test(r),w=/Apple Computer/.test(navigator.vendor),T=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),S=/PhantomJS/.test(r),A=w&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),b=/Android/.test(r),C=A||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),x=A||/Mac/.test(n),k=/\bCrOS\b/.test(r),P=/win/i.test(n),D=y&&r.match(/Version\/(\d*\.\d*)/);D&&(D=Number(D[1])),D&&D>=15&&(y=!1,m=!0);var N=x&&(v||y&&(D==null||D<12.11)),I=i||c&&f>=9;function V(a){ + return new RegExp('(^|\\s)'+a+'(?:$|\\s)\\s*'); + }M(V,'classTest');var G=M(function(a,u){ + var p=a.className,d=V(u).exec(p);if(d){ + var h=p.slice(d.index+d[0].length);a.className=p.slice(0,d.index)+(h?d[1]+h:''); + } + },'rmClass');function B(a){ + for(var u=a.childNodes.length;u>0;--u)a.removeChild(a.firstChild);return a; + }M(B,'removeChildren');function U(a,u){ + return B(a).appendChild(u); + }M(U,'removeChildrenAndAdd');function z(a,u,p,d){ + var h=document.createElement(a);if(p&&(h.className=p),d&&(h.style.cssText=d),typeof u=='string')h.appendChild(document.createTextNode(u));else if(u)for(var E=0;E=u)return O+(u-E);O+=L-E,O+=p-O%p,E=L+1; + } + }M(ie,'countColumn');var ye=M(function(){ + this.id=null,this.f=null,this.time=0,this.handler=Re(this.onTimeout,this); + },'Delayed');ye.prototype.onTimeout=function(a){ + a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date); + },ye.prototype.set=function(a,u){ + this.f=u;var p=+new Date+a;(!this.id||p=u)return d+Math.min(O,u-h);if(h+=E-d,h+=p-h%p,d=E+1,h>=u)return d; + } + }M(bt,'findColumn');var he=[''];function Fe(a){ + for(;he.length<=a;)he.push(pe(he)+' ');return he[a]; + }M(Fe,'spaceStr');function pe(a){ + return a[a.length-1]; + }M(pe,'lst');function Me(a,u){ + for(var p=[],d=0;d'\x80'&&(a.toUpperCase()!=a.toLowerCase()||wt.test(a)); + }M(Or,'isWordCharBasic');function ua(a,u){ + return u?u.source.indexOf('\\w')>-1&&Or(a)?!0:u.test(a):Or(a); + }M(ua,'isWordChar');function Rl(a){ + for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0; + }M(Rl,'isEmpty');var nc=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Vs(a){ + return a.charCodeAt(0)>=768&&nc.test(a); + }M(Vs,'isExtendingChar');function Ml(a,u,p){ + for(;(p<0?u>0:up?-1:1;;){ + if(u==p)return u;var h=(u+p)/2,E=d<0?Math.ceil(h):Math.floor(h);if(E==u)return a(E)?u:p;a(E)?p=E:u=E+d; + } + }M(xi,'findFirst');function ic(a,u,p,d){ + if(!a)return d(u,p,'ltr',0);for(var h=!1,E=0;Eu||u==p&&O.to==u)&&(d(Math.max(O.from,u),Math.min(O.to,p),O.level==1?'rtl':'ltr',E),h=!0); + }h||d(u,p,'ltr'); + }M(ic,'iterateBidiSections');var tn=null;function pr(a,u,p){ + var d;tn=null;for(var h=0;hu)return h;E.to==u&&(E.from!=E.to&&p=='before'?d=h:tn=h),E.from==u&&(E.from!=E.to&&p!='before'?d=h:tn=h); + }return d??tn; + }M(pr,'getBidiPartAt');var Il=function(){ + var a='bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN',u='nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111';function p(F){ + return F<=247?a.charAt(F):1424<=F&&F<=1524?'R':1536<=F&&F<=1785?u.charAt(F-1536):1774<=F&&F<=2220?'r':8192<=F&&F<=8203?'w':F==8204?'b':'L'; + }M(p,'charType');var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,E=/[LRr]/,O=/[Lb1n]/,L=/[1n]/;function R(F,H,Q){ + this.level=F,this.from=H,this.to=Q; + }return M(R,'BidiSpan'),function(F,H){ + var Q=H=='ltr'?'L':'R';if(F.length==0||H=='ltr'&&!d.test(F))return!1;for(var $=F.length,Z=[],le=0;le<$;++le)Z.push(p(F.charCodeAt(le)));for(var ge=0,Te=Q;ge<$;++ge){ + var De=Z[ge];De=='m'?Z[ge]=Te:Te=De; + }for(var qe=0,Le=Q;qe<$;++qe){ + var Be=Z[qe];Be=='1'&&Le=='r'?Z[qe]='n':E.test(Be)&&(Le=Be,Be=='r'&&(Z[qe]='R')); + }for(var it=1,Je=Z[0];it<$-1;++it){ + var Et=Z[it];Et=='+'&&Je=='1'&&Z[it+1]=='1'?Z[it]='1':Et==','&&Je==Z[it+1]&&(Je=='1'||Je=='n')&&(Z[it]=Je),Je=Et; + }for(var $t=0;$t<$;++$t){ + var hn=Z[$t];if(hn==',')Z[$t]='N';else if(hn=='%'){ + var mr=void 0;for(mr=$t+1;mr<$&&Z[mr]=='%';++mr);for(var Ci=$t&&Z[$t-1]=='!'||mr<$&&Z[mr]=='1'?'1':'N',Si=$t;Si-1&&(d[u]=h.slice(0,E).concat(h.slice(E+1))); + } + } + }M(Vn,'off');function ut(a,u){ + var p=Fl(a,u);if(p.length)for(var d=Array.prototype.slice.call(arguments,2),h=0;h0; + }M(rn,'hasHandler');function ko(a){ + a.prototype.on=function(u,p){ + rt(this,u,p); + },a.prototype.off=function(u,p){ + Vn(this,u,p); + }; + }M(ko,'eventMixin');function mn(a){ + a.preventDefault?a.preventDefault():a.returnValue=!1; + }M(mn,'e_preventDefault');function jl(a){ + a.stopPropagation?a.stopPropagation():a.cancelBubble=!0; + }M(jl,'e_stopPropagation');function wi(a){ + return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1; + }M(wi,'e_defaultPrevented');function Us(a){ + mn(a),jl(a); + }M(Us,'e_stop');function Ka(a){ + return a.target||a.srcElement; + }M(Ka,'e_target');function td(a){ + var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),x&&a.ctrlKey&&u==1&&(u=3),u; + }M(td,'e_button');var rd=function(){ + if(c&&f<9)return!1;var a=z('div');return'draggable'in a||'dragDrop'in a; + }(),ni;function nd(a){ + if(ni==null){ + var u=z('span','\u200B');U(a,z('span',[u,document.createTextNode('x')])),a.firstChild.offsetHeight!=0&&(ni=u.offsetWidth<=1&&u.offsetHeight>2&&!(c&&f<8)); + }var p=ni?z('span','\u200B'):z('span','\xA0',null,'display: inline-block; width: 1px; margin-right: -1px');return p.setAttribute('cm-text',''),p; + }M(nd,'zeroWidthElement');var id;function Oo(a){ + if(id!=null)return id;var u=U(a,document.createTextNode('A\u062EA')),p=J(u,0,1).getBoundingClientRect(),d=J(u,1,2).getBoundingClientRect();return B(a),!p||p.left==p.right?!1:id=d.right-p.right<3; + }M(Oo,'hasBadBidiRects');var od=` + +b`.split(/\n/).length!=3?function(a){ + for(var u=0,p=[],d=a.length;u<=d;){ + var h=a.indexOf(` +`,u);h==-1&&(h=a.length);var E=a.slice(u,a.charAt(h-1)=='\r'?h-1:h),O=E.indexOf('\r');O!=-1?(p.push(E.slice(0,O)),u+=O+1):(p.push(E),u=h+1); + }return p; + }:function(a){ + return a.split(/\r\n?|\n/); + },oh=window.getSelection?function(a){ + try{ + return a.selectionStart!=a.selectionEnd; + }catch{ + return!1; + } + }:function(a){ + var u;try{ + u=a.ownerDocument.selection.createRange(); + }catch{}return!u||u.parentElement()!=a?!1:u.compareEndPoints('StartToEnd',u)!=0; + },ah=function(){ + var a=z('div');return'oncopy'in a?!0:(a.setAttribute('oncopy','return;'),typeof a.oncopy=='function'); + }(),ad=null;function Xa(a){ + if(ad!=null)return ad;var u=U(a,z('span','x')),p=u.getBoundingClientRect(),d=J(u,0,1).getBoundingClientRect();return ad=Math.abs(p.left-d.left)>1; + }M(Xa,'hasBadZoomedRects');var ro={},qi={};function sd(a,u){ + arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),ro[a]=u; + }M(sd,'defineMode');function ca(a,u){ + qi[a]=u; + }M(ca,'defineMIME');function Vl(a){ + if(typeof a=='string'&&qi.hasOwnProperty(a))a=qi[a];else if(a&&typeof a.name=='string'&&qi.hasOwnProperty(a.name)){ + var u=qi[a.name];typeof u=='string'&&(u={name:u}),a=lt(u,a),a.name=u.name; + }else{ + if(typeof a=='string'&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Vl('application/xml');if(typeof a=='string'&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Vl('application/json'); + }return typeof a=='string'?{name:a}:a||{name:'null'}; + }M(Vl,'resolveMode');function Ul(a,u){ + u=Vl(u);var p=ro[u.name];if(!p)return Ul(a,'text/plain');var d=p(a,u);if(No.hasOwnProperty(u.name)){ + var h=No[u.name];for(var E in h)h.hasOwnProperty(E)&&(d.hasOwnProperty(E)&&(d['_'+E]=d[E]),d[E]=h[E]); + }if(d.name=u.name,u.helperType&&(d.helperType=u.helperType),u.modeProps)for(var O in u.modeProps)d[O]=u.modeProps[O];return d; + }M(Ul,'getMode');var No={};function no(a,u){ + var p=No.hasOwnProperty(a)?No[a]:No[a]={};Se(u,p); + }M(no,'extendMode');function ji(a,u){ + if(u===!0)return u;if(a.copyState)return a.copyState(u);var p={};for(var d in u){ + var h=u[d];h instanceof Array&&(h=h.concat([])),p[d]=h; + }return p; + }M(ji,'copyState');function oc(a,u){ + for(var p;a.innerMode&&(p=a.innerMode(u),!(!p||p.mode==a));)u=p.state,a=p.mode;return p||{mode:a,state:u}; + }M(oc,'innerMode');function ac(a,u,p){ + return a.startState?a.startState(u,p):!0; + }M(ac,'startState');var xr=M(function(a,u,p){ + this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p; + },'StringStream');xr.prototype.eol=function(){ + return this.pos>=this.string.length; + },xr.prototype.sol=function(){ + return this.pos==this.lineStart; + },xr.prototype.peek=function(){ + return this.string.charAt(this.pos)||void 0; + },xr.prototype.next=function(){ + if(this.posu; + },xr.prototype.eatSpace=function(){ + for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a; + },xr.prototype.skipToEnd=function(){ + this.pos=this.string.length; + },xr.prototype.skipTo=function(a){ + var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0; + },xr.prototype.backUp=function(a){ + this.pos-=a; + },xr.prototype.column=function(){ + return this.lastColumnPos0?null:(E&&u!==!1&&(this.pos+=E[0].length),E); + } + },xr.prototype.current=function(){ + return this.string.slice(this.start,this.pos); + },xr.prototype.hideFirstChars=function(a,u){ + this.lineStart+=a;try{ + return u(); + }finally{ + this.lineStart-=a; + } + },xr.prototype.lookAhead=function(a){ + var u=this.lineOracle;return u&&u.lookAhead(a); + },xr.prototype.baseToken=function(){ + var a=this.lineOracle;return a&&a.baseToken(this.pos); + };function Qe(a,u){ + if(u-=a.first,u<0||u>=a.size)throw new Error('There is no line '+(u+a.first)+' in the document.');for(var p=a;!p.lines;)for(var d=0;;++d){ + var h=p.children[d],E=h.chunkSize();if(u=a.first&&up?Ae(p,Qe(a,p).text.length):Sn(u,Qe(a,u.line).text.length); + }M(Ve,'clipPos');function Sn(a,u){ + var p=a.ch;return p==null||p>u?Ae(a.line,u):p<0?Ae(a.line,0):a; + }M(Sn,'clipToLen');function Vi(a,u){ + for(var p=[],d=0;dthis.maxLookAhead&&(this.maxLookAhead=a),u; + },Za.prototype.baseToken=function(a){ + if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,''),size:this.baseTokens[this.baseTokenPos]-a}; + },Za.prototype.nextLine=function(){ + this.line++,this.maxLookAhead>0&&this.maxLookAhead--; + },Za.fromSaved=function(a,u,p){ + return u instanceof ld?new Za(a,ji(a.mode,u.state),p,u.lookAhead):new Za(a,ji(a.mode,u),p); + },Za.prototype.save=function(a){ + var u=a!==!1?ji(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ld(u,this.maxLookAhead):u; + };function dT(a,u,p,d){ + var h=[a.state.modeGen],E={};gT(a,u.text,a.doc.mode,p,function(F,H){ + return h.push(F,H); + },E,d);for(var O=p.state,L=M(function(F){ + p.baseTokens=h;var H=a.state.overlays[F],Q=1,$=0;p.state=!0,gT(a,u.text,H.mode,p,function(Z,le){ + for(var ge=Q;$Z&&h.splice(Q,1,Z,h[Q+1],Te),Q+=2,$=Math.min(Z,Te); + }if(le)if(H.opaque)h.splice(ge,Q-ge,Z,'overlay '+le),Q=ge+2;else for(;gea.options.maxHighlightLength&&ji(a.doc.mode,d.state),E=dT(a,u,d);h&&(d.state=h),u.stateAfter=d.save(!h),u.styles=E.styles,E.classes?u.styleClasses=E.classes:u.styleClasses&&(u.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier)); + }return u.styles; + }M(pT,'getLineStyles');function ud(a,u,p){ + var d=a.doc,h=a.display;if(!d.mode.startState)return new Za(d,!0,u);var E=II(a,u,p),O=E>d.first&&Qe(d,E-1).stateAfter,L=O?Za.fromSaved(d,O,E):new Za(d,ac(d.mode),E);return d.iter(E,u,function(R){ + o0(a,R.text,L);var F=L.line;R.stateAfter=F==u-1||F%5==0||F>=h.viewFrom&&Fu.start)return E; + }throw new Error('Mode '+a.name+' failed to advance stream.'); + }M(a0,'readToken');var MI=M(function(a,u,p){ + this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=u||null,this.state=p; + },'Token');function hT(a,u,p,d){ + var h=a.doc,E=h.mode,O;u=Ve(h,u);var L=Qe(h,u.line),R=ud(a,u.line,p),F=new xr(L.text,a.options.tabSize,R),H;for(d&&(H=[]);(d||F.posa.options.maxHighlightLength?(L=!1,O&&o0(a,u,d,H.pos),H.pos=u.length,Q=null):Q=vT(a0(p,H,d.state,$),E),$){ + var Z=$[0].name;Z&&(Q='m-'+(Q?Z+' '+Q:Z)); + }if(!L||F!=Q){ + for(;RO;--L){ + if(L<=E.first)return E.first;var R=Qe(E,L-1),F=R.stateAfter;if(F&&(!p||L+(F instanceof ld?F.lookAhead:0)<=E.modeFrontier))return L;var H=ie(R.text,null,a.options.tabSize);(h==null||d>H)&&(h=L-1,d=H); + }return h; + }M(II,'findStartLine');function FI(a,u){ + if(a.modeFrontier=Math.min(a.modeFrontier,u),!(a.highlightFrontierp;d--){ + var h=Qe(a,d).stateAfter;if(h&&(!(h instanceof ld)||d+h.lookAhead=u:E.to>u);(d||(d=[])).push(new sh(O,E.from,R?null:E.to)); + } + }return d; + }M(GI,'markedSpansBefore');function zI(a,u,p){ + var d;if(a)for(var h=0;h=u:E.to>u);if(L||E.from==u&&O.type=='bookmark'&&(!p||E.marker.insertLeft)){ + var R=E.from==null||(O.inclusiveLeft?E.from<=u:E.from0&&L)for(var Be=0;Be0)){ + var H=[R,1],Q=q(F.from,L.from),$=q(F.to,L.to);(Q<0||!O.inclusiveLeft&&!Q)&&H.push({from:F.from,to:L.from}),($>0||!O.inclusiveRight&&!$)&&H.push({from:L.to,to:F.to}),h.splice.apply(h,H),R+=H.length-3; + } + }return h; + }M(HI,'removeReadOnlyRanges');function bT(a){ + var u=a.markedSpans;if(u){ + for(var p=0;pu)&&(!d||l0(d,E.marker)<0)&&(d=E.marker); + }return d; + }M(QI,'collapsedSpanAround');function ET(a,u,p,d,h){ + var E=Qe(a,u),O=Gs&&E.markedSpans;if(O)for(var L=0;L=0&&Q<=0||H<=0&&Q>=0)&&(H<=0&&(R.marker.inclusiveRight&&h.inclusiveLeft?q(F.to,p)>=0:q(F.to,p)>0)||H>=0&&(R.marker.inclusiveRight&&h.inclusiveLeft?q(F.from,d)<=0:q(F.from,d)<0)))return!0; + } + } + }M(ET,'conflictingCollapsedRange');function Po(a){ + for(var u;u=wT(a);)a=u.find(-1,!0).line;return a; + }M(Po,'visualLine');function WI(a){ + for(var u;u=ch(a);)a=u.find(1,!0).line;return a; + }M(WI,'visualLineEnd');function YI(a){ + for(var u,p;u=ch(a);)a=u.find(1,!0).line,(p||(p=[])).push(a);return p; + }M(YI,'visualLineContinued');function u0(a,u){ + var p=Qe(a,u),d=Po(p);return p==d?u:Pt(d); + }M(u0,'visualLineNo');function TT(a,u){ + if(u>a.lastLine())return u;var p=Qe(a,u),d;if(!zs(a,p))return u;for(;d=ch(p);)p=d.find(1,!0).line;return Pt(p)+1; + }M(TT,'visualLineEndNo');function zs(a,u){ + var p=Gs&&u.markedSpans;if(p){ + for(var d=void 0,h=0;hu.maxLineLength&&(u.maxLineLength=h,u.maxLine=d); + }); + }M(f0,'findMaxLine');var fd=M(function(a,u,p){ + this.text=a,AT(this,u),this.height=p?p(this):1; + },'Line');fd.prototype.lineNo=function(){ + return Pt(this); + },ko(fd);function KI(a,u,p,d){ + a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),bT(a),AT(a,p);var h=d?d(a):1;h!=a.height&&ii(a,h); + }M(KI,'updateLine');function XI(a){ + a.parent=null,bT(a); + }M(XI,'cleanUpLine');var G$={},z$={};function CT(a,u){ + if(!a||/^\s*$/.test(a))return null;var p=u.addModeClass?z$:G$;return p[a]||(p[a]=a.replace(/\S+/g,'cm-$&')); + }M(CT,'interpretTokenStyle');function ST(a,u){ + var p=j('span',null,null,m?'padding-right: .1px':null),d={pre:j('pre',[p],'CodeMirror-line'),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption('lineWrapping')};u.measure={};for(var h=0;h<=(u.rest?u.rest.length:0);h++){ + var E=h?u.rest[h-1]:u.line,O=void 0;d.pos=0,d.addToken=JI,Oo(a.display.measure)&&(O=ri(E,a.doc.direction))&&(d.addToken=$I(d.addToken,O)),d.map=[];var L=u!=a.display.externalMeasured&&Pt(E);eF(E,d,pT(a,E,L)),E.styleClasses&&(E.styleClasses.bgClass&&(d.bgClass=se(E.styleClasses.bgClass,d.bgClass||'')),E.styleClasses.textClass&&(d.textClass=se(E.styleClasses.textClass,d.textClass||''))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(nd(a.display.measure))),h==0?(u.measure.map=d.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(d.map),(u.measure.caches||(u.measure.caches=[])).push({})); + }if(m){ + var R=d.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector('.cm-tab'))&&(d.content.className='cm-tab-wrap-hack'); + }return ut(a,'renderLine',a,u.line,d.pre),d.pre.className&&(d.textClass=se(d.pre.className,d.textClass||'')),d; + }M(ST,'buildLineContent');function ZI(a){ + var u=z('span','\u2022','cm-invalidchar');return u.title='\\u'+a.charCodeAt(0).toString(16),u.setAttribute('aria-label',u.title),u; + }M(ZI,'defaultSpecialCharPlaceholder');function JI(a,u,p,d,h,E,O){ + if(u){ + var L=a.splitSpaces?_I(u,a.trailingSpace):u,R=a.cm.state.specialChars,F=!1,H;if(!R.test(u))a.col+=u.length,H=document.createTextNode(L),a.map.push(a.pos,a.pos+u.length,H),c&&f<9&&(F=!0),a.pos+=u.length;else{ + H=document.createDocumentFragment();for(var Q=0;;){ + R.lastIndex=Q;var $=R.exec(u),Z=$?$.index-Q:u.length-Q;if(Z){ + var le=document.createTextNode(L.slice(Q,Q+Z));c&&f<9?H.appendChild(z('span',[le])):H.appendChild(le),a.map.push(a.pos,a.pos+Z,le),a.col+=Z,a.pos+=Z; + }if(!$)break;Q+=Z+1;var ge=void 0;if($[0]==' '){ + var Te=a.cm.options.tabSize,De=Te-a.col%Te;ge=H.appendChild(z('span',Fe(De),'cm-tab')),ge.setAttribute('role','presentation'),ge.setAttribute('cm-text',' '),a.col+=De; + }else $[0]=='\r'||$[0]==` +`?(ge=H.appendChild(z('span',$[0]=='\r'?'\u240D':'\u2424','cm-invalidchar')),ge.setAttribute('cm-text',$[0]),a.col+=1):(ge=a.cm.options.specialCharPlaceholder($[0]),ge.setAttribute('cm-text',$[0]),c&&f<9?H.appendChild(z('span',[ge])):H.appendChild(ge),a.col+=1);a.map.push(a.pos,a.pos+1,ge),a.pos++; + } + }if(a.trailingSpace=L.charCodeAt(u.length-1)==32,p||d||h||F||E||O){ + var qe=p||'';d&&(qe+=d),h&&(qe+=h);var Le=z('span',[H],qe,E);if(O)for(var Be in O)O.hasOwnProperty(Be)&&Be!='style'&&Be!='class'&&Le.setAttribute(Be,O[Be]);return a.content.appendChild(Le); + }a.content.appendChild(H); + } + }M(JI,'buildToken');function _I(a,u){ + if(a.length>1&&!/ {2}/.test(a))return a;for(var p=u,d='',h=0;hF&&Q.from<=F));$++);if(Q.to>=H)return a(p,d,h,E,O,L,R);a(p,d.slice(0,Q.to-F),h,E,null,L,R),E=null,d=d.slice(Q.to-F),F=Q.to; + } + }; + }M($I,'buildTokenBadBidi');function kT(a,u,p,d){ + var h=!d&&p.widgetNode;h&&a.map.push(a.pos,a.pos+u,h),!d&&a.cm.display.input.needsContentAttribute&&(h||(h=a.content.appendChild(document.createElement('span'))),h.setAttribute('cm-marker',p.id)),h&&(a.cm.display.input.setUneditable(h),a.content.appendChild(h)),a.pos+=u,a.trailingSpace=!1; + }M(kT,'buildCollapsedSpan');function eF(a,u,p){ + var d=a.markedSpans,h=a.text,E=0;if(!d){ + for(var O=1;OR||Et.collapsed&&Je.to==R&&Je.from==R)){ + if(Je.to!=null&&Je.to!=R&&Z>Je.to&&(Z=Je.to,ge=''),Et.className&&(le+=' '+Et.className),Et.css&&($=($?$+';':'')+Et.css),Et.startStyle&&Je.from==R&&(Te+=' '+Et.startStyle),Et.endStyle&&Je.to==Z&&(Be||(Be=[])).push(Et.endStyle,Je.to),Et.title&&((qe||(qe={})).title=Et.title),Et.attributes)for(var $t in Et.attributes)(qe||(qe={}))[$t]=Et.attributes[$t];Et.collapsed&&(!De||l0(De.marker,Et)<0)&&(De=Je); + }else Je.from>R&&Z>Je.from&&(Z=Je.from); + }if(Be)for(var hn=0;hn=L)break;for(var Ci=Math.min(L,Z);;){ + if(H){ + var Si=R+H.length;if(!De){ + var zr=Si>Ci?H.slice(0,Ci-R):H;u.addToken(u,zr,Q?Q+le:le,Te,R+zr.length==Z?ge:'',$,qe); + }if(Si>=Ci){ + H=H.slice(Ci-R),R=Ci;break; + }R=Si,Te=''; + }H=h.slice(E,E=p[F++]),Q=CT(p[F++],u.cm.options); + } + } + }M(eF,'insertLineContent');function OT(a,u,p){ + this.line=u,this.rest=YI(u),this.size=this.rest?Pt(pe(this.rest))-p+1:1,this.node=this.text=null,this.hidden=zs(a,u); + }M(OT,'LineView');function dh(a,u,p){ + for(var d=[],h,E=u;E2&&E.push((R.bottom+F.top)/2-p.top); + } + }E.push(p.bottom-p.top); + } + }M(cF,'ensureLineHeights');function IT(a,u,p){ + if(a.line==u)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){ + for(var d=0;dp)return{map:a.measure.maps[h],cache:a.measure.caches[h],before:!0}; + } + }M(IT,'mapFromLineView');function fF(a,u){ + u=Po(u);var p=Pt(u),d=a.display.externalMeasured=new OT(a.doc,u,p);d.lineN=p;var h=d.built=ST(a,d);return d.text=h.pre,U(a.display.lineMeasure,h.pre),d; + }M(fF,'updateExternalMeasurement');function FT(a,u,p,d){ + return da(a,uc(a,u),p,d); + }M(FT,'measureChar');function h0(a,u){ + if(u>=a.display.viewFrom&&u=p.lineN&&uu)&&(E=R-L,h=E-1,u>=R&&(O='right')),h!=null){ + if(d=a[F+2],L==R&&p==(d.insertLeft?'left':'right')&&(O=p),p=='left'&&h==0)for(;F&&a[F-2]==a[F-3]&&a[F-1].insertLeft;)d=a[(F-=3)+2],O='left';if(p=='right'&&h==R-L)for(;F=0&&(p=a[h]).left==p.right;h--);return p; + }M(pF,'getUsefulRect');function mF(a,u,p,d){ + var h=qT(u.map,p,d),E=h.node,O=h.start,L=h.end,R=h.collapse,F;if(E.nodeType==3){ + for(var H=0;H<4;H++){ + for(;O&&Vs(u.line.text.charAt(h.coverStart+O));)--O;for(;h.coverStart+L0&&(R=d='right');var Q;a.options.lineWrapping&&(Q=E.getClientRects()).length>1?F=Q[d=='right'?Q.length-1:0]:F=E.getBoundingClientRect(); + }if(c&&f<9&&!O&&(!F||!F.left&&!F.right)){ + var $=E.parentNode.getClientRects()[0];$?F={left:$.left,right:$.left+dc(a.display),top:$.top,bottom:$.bottom}:F=dF; + }for(var Z=F.top-u.rect.top,le=F.bottom-u.rect.top,ge=(Z+le)/2,Te=u.view.measure.heights,De=0;De=d.text.length?(R=d.text.length,F='before'):R<=0&&(R=0,F='after'),!L)return O(F=='before'?R-1:R,F=='before');function H(le,ge,Te){ + var De=L[ge],qe=De.level==1;return O(Te?le-1:le,qe!=Te); + }M(H,'getBidi');var Q=pr(L,R,F),$=tn,Z=H(R,Q,F=='before');return $!=null&&(Z.other=H(R,$,F!='before')),Z; + }M(Ro,'cursorCoords');function zT(a,u){ + var p=0;u=Ve(a.doc,u),a.options.lineWrapping||(p=dc(a.display)*u.ch);var d=Qe(a.doc,u.line),h=Ja(d)+mh(a.display);return{left:p,right:p,top:h,bottom:h+d.height}; + }M(zT,'estimateCoords');function g0(a,u,p,d,h){ + var E=Ae(a,u,p);return E.xRel=h,d&&(E.outside=d),E; + }M(g0,'PosWithInfo');function y0(a,u,p){ + var d=a.doc;if(p+=a.display.viewOffset,p<0)return g0(d.first,0,null,-1,-1);var h=Lo(d,p),E=d.first+d.size-1;if(h>E)return g0(d.first+d.size-1,Qe(d,E).text.length,null,1,1);u<0&&(u=0);for(var O=Qe(d,h);;){ + var L=vF(a,O,h,u,p),R=QI(O,L.ch+(L.xRel>0||L.outside>0?1:0));if(!R)return L;var F=R.find(1);if(F.line==h)return F;O=Qe(d,h=F.line); + } + }M(y0,'coordsChar');function HT(a,u,p,d){ + d-=v0(u);var h=u.text.length,E=xi(function(O){ + return da(a,p,O-1).bottom<=d; + },h,0);return h=xi(function(O){ + return da(a,p,O).top>d; + },E,h),{begin:E,end:h}; + }M(HT,'wrappedLineExtent');function QT(a,u,p,d){ + p||(p=uc(a,u));var h=hh(a,u,da(a,p,d),'line').top;return HT(a,u,p,h); + }M(QT,'wrappedLineExtentChar');function b0(a,u,p,d){ + return a.bottom<=p?!1:a.top>p?!0:(d?a.left:a.right)>u; + }M(b0,'boxIsAfter');function vF(a,u,p,d,h){ + h-=Ja(u);var E=uc(a,u),O=v0(u),L=0,R=u.text.length,F=!0,H=ri(u,a.doc.direction);if(H){ + var Q=(a.options.lineWrapping?yF:gF)(a,u,p,E,H,d,h);F=Q.level!=1,L=F?Q.from:Q.to-1,R=F?Q.to:Q.from-1; + }var $=null,Z=null,le=xi(function(it){ + var Je=da(a,E,it);return Je.top+=O,Je.bottom+=O,b0(Je,d,h,!1)?(Je.top<=h&&Je.left<=d&&($=it,Z=Je),!0):!1; + },L,R),ge,Te,De=!1;if(Z){ + var qe=d-Z.left=Be.bottom?1:0; + }return le=Ml(u.text,le,1),g0(p,le,Te,De,d-ge); + }M(vF,'coordsCharInner');function gF(a,u,p,d,h,E,O){ + var L=xi(function(Q){ + var $=h[Q],Z=$.level!=1;return b0(Ro(a,Ae(p,Z?$.to:$.from,Z?'before':'after'),'line',u,d),E,O,!0); + },0,h.length-1),R=h[L];if(L>0){ + var F=R.level!=1,H=Ro(a,Ae(p,F?R.from:R.to,F?'after':'before'),'line',u,d);b0(H,E,O,!0)&&H.top>O&&(R=h[L-1]); + }return R; + }M(gF,'coordsBidiPart');function yF(a,u,p,d,h,E,O){ + var L=HT(a,u,d,O),R=L.begin,F=L.end;/\s/.test(u.text.charAt(F-1))&&F--;for(var H=null,Q=null,$=0;$=F||Z.to<=R)){ + var le=Z.level!=1,ge=da(a,d,le?Math.min(F,Z.to)-1:Math.max(R,Z.from)).right,Te=geTe)&&(H=Z,Q=Te); + } + }return H||(H=h[h.length-1]),H.fromF&&(H={from:H.from,to:F,level:H.level}),H; + }M(yF,'coordsBidiPartWrapped');var cc;function fc(a){ + if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(cc==null){ + cc=z('pre',null,'CodeMirror-line-like');for(var u=0;u<49;++u)cc.appendChild(document.createTextNode('x')),cc.appendChild(z('br'));cc.appendChild(document.createTextNode('x')); + }U(a.measure,cc);var p=cc.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),B(a.measure),p||1; + }M(fc,'textHeight');function dc(a){ + if(a.cachedCharWidth!=null)return a.cachedCharWidth;var u=z('span','xxxxxxxxxx'),p=z('pre',[u],'CodeMirror-line-like');U(a.measure,p);var d=u.getBoundingClientRect(),h=(d.right-d.left)/10;return h>2&&(a.cachedCharWidth=h),h||10; + }M(dc,'charWidth');function A0(a){ + for(var u=a.display,p={},d={},h=u.gutters.clientLeft,E=u.gutters.firstChild,O=0;E;E=E.nextSibling,++O){ + var L=a.display.gutterSpecs[O].className;p[L]=E.offsetLeft+E.clientLeft+h,d[L]=E.clientWidth; + }return{fixedPos:x0(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:p,gutterWidth:d,wrapperWidth:u.wrapper.clientWidth}; + }M(A0,'getDimensions');function x0(a){ + return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left; + }M(x0,'compensateForHScroll');function WT(a){ + var u=fc(a.display),p=a.options.lineWrapping,d=p&&Math.max(5,a.display.scroller.clientWidth/dc(a.display)-3);return function(h){ + if(zs(a.doc,h))return 0;var E=0;if(h.widgets)for(var O=0;O0&&(F=Qe(a.doc,R.line).text).length==R.ch){ + var H=ie(F,F.length,a.options.tabSize)-F.length;R=Ae(R.line,Math.max(0,Math.round((E-MT(a.display).left)/dc(a.display))-H)); + }return R; + }M(Gl,'posFromMouse');function zl(a,u){ + if(u>=a.display.viewTo||(u-=a.display.viewFrom,u<0))return null;for(var p=a.display.view,d=0;du)&&(h.updateLineNumbers=u),a.curOp.viewChanged=!0,u>=h.viewTo)Gs&&u0(a.doc,u)h.viewFrom?Qs(a):(h.viewFrom+=d,h.viewTo+=d);else if(u<=h.viewFrom&&p>=h.viewTo)Qs(a);else if(u<=h.viewFrom){ + var E=gh(a,p,p+d,1);E?(h.view=h.view.slice(E.index),h.viewFrom=E.lineN,h.viewTo+=d):Qs(a); + }else if(p>=h.viewTo){ + var O=gh(a,u,u,-1);O?(h.view=h.view.slice(0,O.index),h.viewTo=O.lineN):Qs(a); + }else{ + var L=gh(a,u,u,-1),R=gh(a,p,p+d,1);L&&R?(h.view=h.view.slice(0,L.index).concat(dh(a,L.lineN,R.lineN)).concat(h.view.slice(R.index)),h.viewTo+=d):Qs(a); + }var F=h.externalMeasured;F&&(p=h.lineN&&u=d.viewTo)){ + var E=d.view[zl(a,u)];if(E.node!=null){ + var O=E.changes||(E.changes=[]);me(O,p)==-1&&O.push(p); + } + } + }M(Hs,'regLineChange');function Qs(a){ + a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0; + }M(Qs,'resetView');function gh(a,u,p,d){ + var h=zl(a,u),E,O=a.display.view;if(!Gs||p==a.doc.first+a.doc.size)return{index:h,lineN:p};for(var L=a.display.viewFrom,R=0;R0){ + if(h==O.length-1)return null;E=L+O[h].size-u,h++; + }else E=L-u;u+=E,p+=E; + }for(;u0(a.doc,p)!=p;){ + if(h==(d<0?0:O.length-1))return null;p+=d*O[h-(d<0?1:0)].size,h+=d; + }return{index:h,lineN:p}; + }M(gh,'viewCuttingPoint');function bF(a,u,p){ + var d=a.display,h=d.view;h.length==0||u>=d.viewTo||p<=d.viewFrom?(d.view=dh(a,u,p),d.viewFrom=u):(d.viewFrom>u?d.view=dh(a,u,d.viewFrom).concat(d.view):d.viewFromp&&(d.view=d.view.slice(0,zl(a,p)))),d.viewTo=p; + }M(bF,'adjustView');function YT(a){ + for(var u=a.display.view,p=0,d=0;d=a.display.viewTo||R.to().line0?O:a.defaultCharWidth())+'px'; + }if(d.other){ + var L=p.appendChild(z('div','\xA0','CodeMirror-cursor CodeMirror-secondarycursor'));L.style.display='',L.style.left=d.other.left+'px',L.style.top=d.other.top+'px',L.style.height=(d.other.bottom-d.other.top)*.85+'px'; + } + }M(E0,'drawSelectionCursor');function yh(a,u){ + return a.top-u.top||a.left-u.left; + }M(yh,'cmpCoords');function AF(a,u,p){ + var d=a.display,h=a.doc,E=document.createDocumentFragment(),O=MT(a.display),L=O.left,R=Math.max(d.sizerWidth,Bl(a)-d.sizer.offsetLeft)-O.right,F=h.direction=='ltr';function H(Le,Be,it,Je){ + Be<0&&(Be=0),Be=Math.round(Be),Je=Math.round(Je),E.appendChild(z('div',null,'CodeMirror-selected','position: absolute; left: '+Le+`px; + top: `+Be+'px; width: '+(it??R-Le)+`px; + height: `+(Je-Be)+'px')); + }M(H,'add');function Q(Le,Be,it){ + var Je=Qe(h,Le),Et=Je.text.length,$t,hn;function mr(zr,ki){ + return vh(a,Ae(Le,zr),'div',Je,ki); + }M(mr,'coords');function Ci(zr,ki,On){ + var sn=QT(a,Je,null,zr),Hr=ki=='ltr'==(On=='after')?'left':'right',Dr=On=='after'?sn.begin:sn.end-(/\s/.test(Je.text.charAt(sn.end-1))?2:1);return mr(Dr,Hr)[Hr]; + }M(Ci,'wrapX');var Si=ri(Je,h.direction);return ic(Si,Be||0,it??Et,function(zr,ki,On,sn){ + var Hr=On=='ltr',Dr=mr(zr,Hr?'left':'right'),Oi=mr(ki-1,Hr?'right':'left'),Dd=Be==null&&zr==0,Xl=it==null&&ki==Et,Bn=sn==0,$a=!Si||sn==Si.length-1;if(Oi.top-Dr.top<=3){ + var vn=(F?Dd:Xl)&&Bn,oS=(F?Xl:Dd)&&$a,Js=vn?L:(Hr?Dr:Oi).left,Cc=oS?R:(Hr?Oi:Dr).right;H(Js,Dr.top,Cc-Js,Dr.bottom); + }else{ + var Sc,ai,Ld,aS;Hr?(Sc=F&&Dd&&Bn?L:Dr.left,ai=F?R:Ci(zr,On,'before'),Ld=F?L:Ci(ki,On,'after'),aS=F&&Xl&&$a?R:Oi.right):(Sc=F?Ci(zr,On,'before'):L,ai=!F&&Dd&&Bn?R:Dr.right,Ld=!F&&Xl&&$a?L:Oi.left,aS=F?Ci(ki,On,'after'):R),H(Sc,Dr.top,ai-Sc,Dr.bottom),Dr.bottom0?u.blinker=setInterval(function(){ + a.hasFocus()||pc(a),u.cursorDiv.style.visibility=(p=!p)?'':'hidden'; + },a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility='hidden'); + } + }M(T0,'restartBlink');function XT(a){ + a.hasFocus()||(a.display.input.focus(),a.state.focused||S0(a)); + }M(XT,'ensureFocus');function C0(a){ + a.state.delayingBlurEvent=!0,setTimeout(function(){ + a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&pc(a)); + },100); + }M(C0,'delayBlurEvent');function S0(a,u){ + a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!='nocursor'&&(a.state.focused||(ut(a,'focus',a,u),a.state.focused=!0,re(a.display.wrapper,'CodeMirror-focused'),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),m&&setTimeout(function(){ + return a.display.input.reset(!0); + },20)),a.display.input.receivedFocus()),T0(a)); + }M(S0,'onFocus');function pc(a,u){ + a.state.delayingBlurEvent||(a.state.focused&&(ut(a,'blur',a,u),a.state.focused=!1,G(a.display.wrapper,'CodeMirror-focused')),clearInterval(a.display.blinker),setTimeout(function(){ + a.state.focused||(a.display.shift=!1); + },150)); + }M(pc,'onBlur');function bh(a){ + for(var u=a.display,p=u.lineDiv.offsetTop,d=Math.max(0,u.scroller.getBoundingClientRect().top),h=u.lineDiv.getBoundingClientRect().top,E=0,O=0;O.005||Z<-.005)&&(ha.display.sizerWidth){ + var ge=Math.ceil(H/dc(a.display));ge>a.display.maxLineLength&&(a.display.maxLineLength=ge,a.display.maxLine=L.line,a.display.maxLineChanged=!0); + } + } + }Math.abs(E)>2&&(u.scroller.scrollTop+=E); + }M(bh,'updateHeightsInViewport');function ZT(a){ + if(a.widgets)for(var u=0;u=O&&(E=Lo(u,Ja(Qe(u,R))-a.wrapper.clientHeight),O=R); + }return{from:E,to:Math.max(O,E+1)}; + }M(Ah,'visibleLines');function xF(a,u){ + if(!Nr(a,'scrollCursorIntoView')){ + var p=a.display,d=p.sizer.getBoundingClientRect(),h=null;if(u.top+d.top<0?h=!0:u.bottom+d.top>(window.innerHeight||document.documentElement.clientHeight)&&(h=!1),h!=null&&!S){ + var E=z('div','\u200B',null,`position: absolute; + top: `+(u.top-p.viewOffset-mh(a.display))+`px; + height: `+(u.bottom-u.top+fa(a)+p.barHeight)+`px; + left: `+u.left+'px; width: '+Math.max(2,u.right-u.left)+'px;');a.display.lineSpace.appendChild(E),E.scrollIntoView(h),a.display.lineSpace.removeChild(E); + } + } + }M(xF,'maybeScrollWindow');function wF(a,u,p,d){ + d==null&&(d=0);var h;!a.options.lineWrapping&&u==p&&(p=u.sticky=='before'?Ae(u.line,u.ch+1,'before'):u,u=u.ch?Ae(u.line,u.sticky=='before'?u.ch-1:u.ch,'after'):u);for(var E=0;E<5;E++){ + var O=!1,L=Ro(a,u),R=!p||p==u?L:Ro(a,p);h={left:Math.min(L.left,R.left),top:Math.min(L.top,R.top)-d,right:Math.max(L.left,R.left),bottom:Math.max(L.bottom,R.bottom)+d};var F=k0(a,h),H=a.doc.scrollTop,Q=a.doc.scrollLeft;if(F.scrollTop!=null&&(yd(a,F.scrollTop),Math.abs(a.doc.scrollTop-H)>1&&(O=!0)),F.scrollLeft!=null&&(Hl(a,F.scrollLeft),Math.abs(a.doc.scrollLeft-Q)>1&&(O=!0)),!O)break; + }return h; + }M(wF,'scrollPosIntoView');function EF(a,u){ + var p=k0(a,u);p.scrollTop!=null&&yd(a,p.scrollTop),p.scrollLeft!=null&&Hl(a,p.scrollLeft); + }M(EF,'scrollIntoView');function k0(a,u){ + var p=a.display,d=fc(a.display);u.top<0&&(u.top=0);var h=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,E=m0(a),O={};u.bottom-u.top>E&&(u.bottom=u.top+E);var L=a.doc.height+p0(p),R=u.topL-d;if(u.toph+E){ + var H=Math.min(u.top,(F?L:u.bottom)-E);H!=h&&(O.scrollTop=H); + }var Q=a.options.fixedGutter?0:p.gutters.offsetWidth,$=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-Q,Z=Bl(a)-p.gutters.offsetWidth,le=u.right-u.left>Z;return le&&(u.right=u.left+Z),u.left<10?O.scrollLeft=0:u.left<$?O.scrollLeft=Math.max(0,u.left+Q-(le?0:10)):u.right>Z+$-3&&(O.scrollLeft=u.right+(le?0:10)-Z),O; + }M(k0,'calculateScrollPos');function O0(a,u){ + u!=null&&(xh(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u); + }M(O0,'addToScrollTop');function mc(a){ + xh(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}; + }M(mc,'ensureCursorVisible');function gd(a,u,p){ + (u!=null||p!=null)&&xh(a),u!=null&&(a.curOp.scrollLeft=u),p!=null&&(a.curOp.scrollTop=p); + }M(gd,'scrollToCoords');function TF(a,u){ + xh(a),a.curOp.scrollToPos=u; + }M(TF,'scrollToRange');function xh(a){ + var u=a.curOp.scrollToPos;if(u){ + a.curOp.scrollToPos=null;var p=zT(a,u.from),d=zT(a,u.to);JT(a,p,d,u.margin); + } + }M(xh,'resolveScrollToPos');function JT(a,u,p,d){ + var h=k0(a,{left:Math.min(u.left,p.left),top:Math.min(u.top,p.top)-d,right:Math.max(u.right,p.right),bottom:Math.max(u.bottom,p.bottom)+d});gd(a,h.scrollLeft,h.scrollTop); + }M(JT,'scrollToCoordsRange');function yd(a,u){ + Math.abs(a.doc.scrollTop-u)<2||(i||L0(a,{top:u}),_T(a,u,!0),i&&L0(a),Ad(a,100)); + }M(yd,'updateScrollTop');function _T(a,u,p){ + u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!p)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u)); + }M(_T,'setScrollTop');function Hl(a,u,p,d){ + u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!d)&&(a.doc.scrollLeft=u,rC(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u)); + }M(Hl,'setScrollLeft');function bd(a){ + var u=a.display,p=u.gutters.offsetWidth,d=Math.round(a.doc.height+p0(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:d,scrollHeight:d+fa(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:p}; + }M(bd,'measureForScrollbars');var hc=M(function(a,u,p){ + this.cm=p;var d=this.vert=z('div',[z('div',null,null,'min-width: 1px')],'CodeMirror-vscrollbar'),h=this.horiz=z('div',[z('div',null,null,'height: 100%; min-height: 1px')],'CodeMirror-hscrollbar');d.tabIndex=h.tabIndex=-1,a(d),a(h),rt(d,'scroll',function(){ + d.clientHeight&&u(d.scrollTop,'vertical'); + }),rt(h,'scroll',function(){ + h.clientWidth&&u(h.scrollLeft,'horizontal'); + }),this.checkedZeroWidth=!1,c&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth='18px'); + },'NativeScrollbars');hc.prototype.update=function(a){ + var u=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;if(p){ + this.vert.style.display='block',this.vert.style.bottom=u?d+'px':'0';var h=a.viewHeight-(u?d:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+h)+'px'; + }else this.vert.scrollTop=0,this.vert.style.display='',this.vert.firstChild.style.height='0';if(u){ + this.horiz.style.display='block',this.horiz.style.right=p?d+'px':'0',this.horiz.style.left=a.barLeft+'px';var E=a.viewWidth-a.barLeft-(p?d:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+E)+'px'; + }else this.horiz.style.display='',this.horiz.firstChild.style.width='0';return!this.checkedZeroWidth&&a.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?d:0,bottom:u?d:0}; + },hc.prototype.setScrollLeft=function(a){ + this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,'horiz'); + },hc.prototype.setScrollTop=function(a){ + this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,'vert'); + },hc.prototype.zeroWidthHack=function(){ + var a=x&&!T?'12px':'18px';this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents='none',this.disableHoriz=new ye,this.disableVert=new ye; + },hc.prototype.enableZeroWidthBar=function(a,u,p){ + a.style.pointerEvents='auto';function d(){ + var h=a.getBoundingClientRect(),E=p=='vert'?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);E!=a?a.style.pointerEvents='none':u.set(1e3,d); + }M(d,'maybeDisable'),u.set(1e3,d); + },hc.prototype.clear=function(){ + var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert); + };var wh=M(function(){},'NullScrollbars');wh.prototype.update=function(){ + return{bottom:0,right:0}; + },wh.prototype.setScrollLeft=function(){},wh.prototype.setScrollTop=function(){},wh.prototype.clear=function(){};function vc(a,u){ + u||(u=bd(a));var p=a.display.barWidth,d=a.display.barHeight;$T(a,u);for(var h=0;h<4&&p!=a.display.barWidth||d!=a.display.barHeight;h++)p!=a.display.barWidth&&a.options.lineWrapping&&bh(a),$T(a,bd(a)),p=a.display.barWidth,d=a.display.barHeight; + }M(vc,'updateScrollbars');function $T(a,u){ + var p=a.display,d=p.scrollbars.update(u);p.sizer.style.paddingRight=(p.barWidth=d.right)+'px',p.sizer.style.paddingBottom=(p.barHeight=d.bottom)+'px',p.heightForcer.style.borderBottom=d.bottom+'px solid transparent',d.right&&d.bottom?(p.scrollbarFiller.style.display='block',p.scrollbarFiller.style.height=d.bottom+'px',p.scrollbarFiller.style.width=d.right+'px'):p.scrollbarFiller.style.display='',d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display='block',p.gutterFiller.style.height=d.bottom+'px',p.gutterFiller.style.width=u.gutterWidth+'px'):p.gutterFiller.style.display=''; + }M($T,'updateScrollbarsInner');var CF={native:hc,null:wh};function eC(a){ + a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&G(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new CF[a.options.scrollbarStyle](function(u){ + a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),rt(u,'mousedown',function(){ + a.state.focused&&setTimeout(function(){ + return a.display.input.focus(); + },0); + }),u.setAttribute('cm-not-content','true'); + },function(u,p){ + p=='horizontal'?Hl(a,u):yd(a,u); + },a),a.display.scrollbars.addClass&&re(a.display.wrapper,a.display.scrollbars.addClass); + }M(eC,'initScrollbars');var H$=0;function Ql(a){ + a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++H$,markArrays:null},tF(a.curOp); + }M(Ql,'startOperation');function Wl(a){ + var u=a.curOp;u&&nF(u,function(p){ + for(var d=0;d=p.viewTo)||p.maxLineChanged&&u.options.lineWrapping,a.update=a.mustUpdate&&new N0(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate); + }M(kF,'endOperation_R1');function OF(a){ + a.updatedDisplay=a.mustUpdate&&D0(a.cm,a.update); + }M(OF,'endOperation_W1');function NF(a){ + var u=a.cm,p=u.display;a.updatedDisplay&&bh(u),a.barMeasure=bd(u),p.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=FT(u,p.maxLine,p.maxLine.text.length).left+3,u.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+fa(u)+u.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-Bl(u))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection()); + }M(NF,'endOperation_R2');function DF(a){ + var u=a.cm;a.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=a.adjustWidthTo+'px',a.maxScrollLeft=a.display.viewTo)){ + var p=+new Date+a.options.workTime,d=ud(a,u.highlightFrontier),h=[];u.iter(d.line,Math.min(u.first+u.size,a.display.viewTo+500),function(E){ + if(d.line>=a.display.viewFrom){ + var O=E.styles,L=E.text.length>a.options.maxHighlightLength?ji(u.mode,d.state):null,R=dT(a,E,d,!0);L&&(d.state=L),E.styles=R.styles;var F=E.styleClasses,H=R.classes;H?E.styleClasses=H:F&&(E.styleClasses=null);for(var Q=!O||O.length!=E.styles.length||F!=H&&(!F||!H||F.bgClass!=H.bgClass||F.textClass!=H.textClass),$=0;!Q&&$p)return Ad(a,a.options.workDelay),!0; + }),u.highlightFrontier=d.line,u.modeFrontier=Math.max(u.modeFrontier,d.line),h.length&&Ei(a,function(){ + for(var E=0;E=p.viewFrom&&u.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&YT(a)==0)return!1;nC(a)&&(Qs(a),u.dims=A0(a));var h=d.first+d.size,E=Math.max(u.visible.from-a.options.viewportMargin,d.first),O=Math.min(h,u.visible.to+a.options.viewportMargin);p.viewFromO&&p.viewTo-O<20&&(O=Math.min(h,p.viewTo)),Gs&&(E=u0(a.doc,E),O=TT(a.doc,O));var L=E!=p.viewFrom||O!=p.viewTo||p.lastWrapHeight!=u.wrapperHeight||p.lastWrapWidth!=u.wrapperWidth;bF(a,E,O),p.viewOffset=Ja(Qe(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+'px';var R=YT(a);if(!L&&R==0&&!u.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var F=MF(a);return R>4&&(p.lineDiv.style.display='none'),FF(a,p.updateLineNumbers,u.dims),R>4&&(p.lineDiv.style.display=''),p.renderedView=p.view,IF(F),B(p.cursorDiv),B(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,L&&(p.lastWrapHeight=u.wrapperHeight,p.lastWrapWidth=u.wrapperWidth,Ad(a,400)),p.updateLineNumbers=null,!0; + }M(D0,'updateDisplayIfNeeded');function tC(a,u){ + for(var p=u.viewport,d=!0;;d=!1){ + if(!d||!a.options.lineWrapping||u.oldDisplayWidth==Bl(a)){ + if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+p0(a.display)-m0(a),p.top)}),u.visible=Ah(a.display,a.doc,p),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break; + }else d&&(u.visible=Ah(a.display,a.doc,p));if(!D0(a,u))break;bh(a);var h=bd(a);vd(a),vc(a,h),R0(a,h),u.force=!1; + }u.signal(a,'update',a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(u.signal(a,'viewportChange',a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo); + }M(tC,'postUpdateDisplay');function L0(a,u){ + var p=new N0(a,u);if(D0(a,p)){ + bh(a),tC(a,p);var d=bd(a);vd(a),vc(a,d),R0(a,d),p.finish(); + } + }M(L0,'updateDisplaySimple');function FF(a,u,p){ + var d=a.display,h=a.options.lineNumbers,E=d.lineDiv,O=E.firstChild;function L(le){ + var ge=le.nextSibling;return m&&x&&a.display.currentWheelTarget==le?le.style.display='none':le.parentNode.removeChild(le),ge; + }M(L,'rm');for(var R=d.view,F=d.viewFrom,H=0;H-1&&(Z=!1),NT(a,Q,F,p)),Z&&(B(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(lc(a.options,F)))),O=Q.node.nextSibling; + }F+=Q.size; + }for(;O;)O=L(O); + }M(FF,'patchDisplay');function P0(a){ + var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+'px',nn(a,'gutterChanged',a); + }M(P0,'updateGutterSpace');function R0(a,u){ + a.display.sizer.style.minHeight=u.docHeight+'px',a.display.heightForcer.style.top=u.docHeight+'px',a.display.gutters.style.height=u.docHeight+a.display.barHeight+fa(a)+'px'; + }M(R0,'setDocumentHeight');function rC(a){ + var u=a.display,p=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){ + for(var d=x0(u)-u.scroller.scrollLeft+a.doc.scrollLeft,h=u.gutters.offsetWidth,E=d+'px',O=0;OL.clientWidth,F=L.scrollHeight>L.clientHeight;if(d&&R||h&&F){ + if(h&&x&&m){ + e:for(var H=u.target,Q=O.view;H!=L;H=H.parentNode)for(var $=0;$=0&&q(a,d.to())<=0)return p; + }return-1; + };var qt=M(function(a,u){ + this.anchor=a,this.head=u; + },'Range');qt.prototype.from=function(){ + return ct(this.anchor,this.head); + },qt.prototype.to=function(){ + return we(this.anchor,this.head); + },qt.prototype.empty=function(){ + return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch; + };function Mo(a,u,p){ + var d=a&&a.options.selectionsMayTouch,h=u[p];u.sort(function($,Z){ + return q($.from(),Z.from()); + }),p=me(u,h);for(var E=1;E0:R>=0){ + var F=ct(L.from(),O.from()),H=we(L.to(),O.to()),Q=L.empty()?O.from()==O.head:L.from()==L.head;E<=p&&--p,u.splice(--E,2,new qt(Q?H:F,Q?F:H)); + } + }return new io(u,p); + }M(Mo,'normalizeSelection');function Ys(a,u){ + return new io([new qt(a,u||a)],0); + }M(Ys,'simpleSelection');function Ks(a){ + return a.text?Ae(a.from.line+a.text.length-1,pe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to; + }M(Ks,'changeEnd');function sC(a,u){ + if(q(a,u.from)<0)return a;if(q(a,u.to)<=0)return Ks(u);var p=a.line+u.text.length-(u.to.line-u.from.line)-1,d=a.ch;return a.line==u.to.line&&(d+=Ks(u).ch-u.to.ch),Ae(p,d); + }M(sC,'adjustForChange');function F0(a,u){ + for(var p=[],d=0;d1&&a.remove(L.line+1,le-1),a.insert(L.line+1,De); + }nn(a,'change',a,u); + }M(j0,'updateDoc');function Xs(a,u,p){ + function d(h,E,O){ + if(h.linked)for(var L=0;L1&&!a.done[a.done.length-2].ranges)return a.done.pop(),pe(a.done); + }M(BF,'lastChangeEvent');function pC(a,u,p,d){ + var h=a.history;h.undone.length=0;var E=+new Date,O,L;if((h.lastOp==d||h.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=='+'&&h.lastModTime>E-(a.cm?a.cm.options.historyEventDelay:500)||u.origin.charAt(0)=='*'))&&(O=BF(h,h.lastOp==d)))L=pe(O.changes),q(u.from,u.to)==0&&q(u.from,L.to)==0?L.to=Ks(u):O.changes.push(V0(a,u));else{ + var R=pe(h.done);for((!R||!R.ranges)&&Th(a.sel,h.done),O={changes:[V0(a,u)],generation:h.generation},h.done.push(O);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift(); + }h.done.push(p),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=E,h.lastOp=h.lastSelOp=d,h.lastOrigin=h.lastSelOrigin=u.origin,L||ut(a,'historyAdded'); + }M(pC,'addChangeToHistory');function GF(a,u,p,d){ + var h=u.charAt(0);return h=='*'||h=='+'&&p.ranges.length==d.ranges.length&&p.somethingSelected()==d.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500); + }M(GF,'selectionEventCanBeMerged');function zF(a,u,p,d){ + var h=a.history,E=d&&d.origin;p==h.lastSelOp||E&&h.lastSelOrigin==E&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==E||GF(a,E,pe(h.done),u))?h.done[h.done.length-1]=u:Th(u,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=E,h.lastSelOp=p,d&&d.clearRedo!==!1&&dC(h.undone); + }M(zF,'addSelectionToHistory');function Th(a,u){ + var p=pe(u);p&&p.ranges&&p.equals(a)||u.push(a); + }M(Th,'pushSelectionToHistory');function mC(a,u,p,d){ + var h=u['spans_'+a.id],E=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,d),function(O){ + O.markedSpans&&((h||(h=u['spans_'+a.id]={}))[E]=O.markedSpans),++E; + }); + }M(mC,'attachLocalSpans');function HF(a){ + if(!a)return null;for(var u,p=0;p-1&&(pe(L)[Q]=F[Q],delete F[Q]); + } + }return d; + }M(gc,'copyHistoryArray');function U0(a,u,p,d){ + if(d){ + var h=a.anchor;if(p){ + var E=q(u,h)<0;E!=q(p,h)<0?(h=u,u=p):E!=q(u,p)<0&&(u=p); + }return new qt(h,u); + }else return new qt(p||u,u); + }M(U0,'extendRange');function Ch(a,u,p,d,h){ + h==null&&(h=a.cm&&(a.cm.display.shift||a.extend)),kn(a,new io([U0(a.sel.primary(),u,p,h)],0),d); + }M(Ch,'extendSelection');function vC(a,u,p){ + for(var d=[],h=a.cm&&(a.cm.display.shift||a.extend),E=0;E=u.ch:L.to>u.ch))){ + if(h&&(ut(R,'beforeCursorEnter'),R.explicitlyCleared))if(E.markedSpans){ + --O;continue; + }else break;if(!R.atomic)continue;if(p){ + var Q=R.find(d<0?1:-1),$=void 0;if((d<0?H:F)&&(Q=wC(a,Q,-d,Q&&Q.line==u.line?E:null)),Q&&Q.line==u.line&&($=q(Q,p))&&(d<0?$<0:$>0))return yc(a,Q,u,d,h); + }var Z=R.find(d<0?-1:1);return(d<0?F:H)&&(Z=wC(a,Z,d,Z.line==u.line?E:null)),Z?yc(a,Z,u,d,h):null; + } + }return u; + }M(yc,'skipAtomicInner');function kh(a,u,p,d,h){ + var E=d||1,O=yc(a,u,p,E,h)||!h&&yc(a,u,p,E,!0)||yc(a,u,p,-E,h)||!h&&yc(a,u,p,-E,!0);return O||(a.cantEdit=!0,Ae(a.first,0)); + }M(kh,'skipAtomic');function wC(a,u,p,d){ + return p<0&&u.ch==0?u.line>a.first?Ve(a,Ae(u.line-1)):null:p>0&&u.ch==(d||Qe(a,u.line)).text.length?u.line=0;--h)CC(a,{from:d[h].from,to:d[h].to,text:h?['']:u.text,origin:u.origin});else CC(a,u); + } + }M(bc,'makeChange');function CC(a,u){ + if(!(u.text.length==1&&u.text[0]==''&&q(u.from,u.to)==0)){ + var p=F0(a,u);pC(a,u,p,a.cm?a.cm.curOp.id:NaN),Ed(a,u,p,s0(a,u));var d=[];Xs(a,function(h,E){ + !E&&me(d,h.history)==-1&&(NC(h.history,u),d.push(h.history)),Ed(h,u,null,s0(h,u)); + }); + } + }M(CC,'makeChangeInner');function Oh(a,u,p){ + var d=a.cm&&a.cm.state.suppressEdits;if(!(d&&!p)){ + for(var h=a.history,E,O=a.sel,L=u=='undo'?h.done:h.undone,R=u=='undo'?h.undone:h.done,F=0;F=0;--Z){ + var le=$(Z);if(le)return le.v; + } + } + } + }M(Oh,'makeChangeFromHistory');function SC(a,u){ + if(u!=0&&(a.first+=u,a.sel=new io(Me(a.sel.ranges,function(h){ + return new qt(Ae(h.anchor.line+u,h.anchor.ch),Ae(h.head.line+u,h.head.ch)); + }),a.sel.primIndex),a.cm)){ + oi(a.cm,a.first,a.first-u,u);for(var p=a.cm.display,d=p.viewFrom;da.lastLine())){ + if(u.from.lineE&&(u={from:u.from,to:Ae(E,Qe(a,E).text.length),text:[u.text[0]],origin:u.origin}),u.removed=Do(a,u.from,u.to),p||(p=F0(a,u)),a.cm?YF(a.cm,u,d):j0(a,u,d),Sh(a,p,He),a.cantEdit&&kh(a,Ae(a.firstLine(),0))&&(a.cantEdit=!1); + } + }M(Ed,'makeChangeSingleDoc');function YF(a,u,p){ + var d=a.doc,h=a.display,E=u.from,O=u.to,L=!1,R=E.line;a.options.lineWrapping||(R=Pt(Po(Qe(d,E.line))),d.iter(R,O.line+1,function(Z){ + if(Z==h.maxLine)return L=!0,!0; + })),d.sel.contains(u.from,u.to)>-1&&ql(a),j0(d,u,p,WT(a)),a.options.lineWrapping||(d.iter(R,E.line+u.text.length,function(Z){ + var le=fh(Z);le>h.maxLineLength&&(h.maxLine=Z,h.maxLineLength=le,h.maxLineChanged=!0,L=!1); + }),L&&(a.curOp.updateMaxLine=!0)),FI(d,E.line),Ad(a,400);var F=u.text.length-(O.line-E.line)-1;u.full?oi(a):E.line==O.line&&u.text.length==1&&!uC(a.doc,u)?Hs(a,E.line,'text'):oi(a,E.line,O.line+1,F);var H=rn(a,'changes'),Q=rn(a,'change');if(Q||H){ + var $={from:E,to:O,text:u.text,removed:u.removed,origin:u.origin};Q&&nn(a,'change',a,$),H&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push($); + }a.display.selForContextMenu=null; + }M(YF,'makeChangeSingleDocInEditor');function Ac(a,u,p,d,h){ + var E;d||(d=p),q(d,p)<0&&(E=[d,p],p=E[0],d=E[1]),typeof u=='string'&&(u=a.splitLines(u)),bc(a,{from:p,to:d,text:u,origin:h}); + }M(Ac,'replaceRange');function kC(a,u,p,d){ + p1||!(this.children[0]instanceof Cd))){ + var L=[];this.collapse(L),this.children=[new Cd(L)],this.children[0].parent=this; + } + },collapse:function(a){ + for(var u=0;u50){ + for(var O=h.lines.length%25+25,L=O;L10);a.parent.maybeSpill(); + } + },iterN:function(a,u,p){ + for(var d=0;da.display.maxLineLength&&(a.display.maxLine=F,a.display.maxLineLength=H,a.display.maxLineChanged=!0); + }d!=null&&a&&this.collapsed&&oi(a,d,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&AC(a.doc)),a&&nn(a,'markerCleared',a,this,d,h),u&&Wl(a),this.parent&&this.parent.clear(); + } + },Yl.prototype.find=function(a,u){ + a==null&&this.type=='bookmark'&&(a=1);for(var p,d,h=0;h0||O==0&&E.clearWhenEmpty!==!1)return E;if(E.replacedWith&&(E.collapsed=!0,E.widgetNode=j('span',[E.replacedWith],'CodeMirror-widget'),d.handleMouseEvents||E.widgetNode.setAttribute('cm-ignore-events','true'),d.insertLeft&&(E.widgetNode.insertLeft=!0)),E.collapsed){ + if(ET(a,u.line,u,p,E)||u.line!=p.line&&ET(a,p.line,u,p,E))throw new Error('Inserting collapsed marker partially overlapping an existing one');VI(); + }E.addToHistory&&pC(a,{from:u,to:p,origin:'markText'},a.sel,NaN);var L=u.line,R=a.cm,F;if(a.iter(L,p.line+1,function(Q){ + R&&E.collapsed&&!R.options.lineWrapping&&Po(Q)==R.display.maxLine&&(F=!0),E.collapsed&&L!=u.line&&ii(Q,0),BI(Q,new sh(E,L==u.line?u.ch:null,L==p.line?p.ch:null),a.cm&&a.cm.curOp),++L; + }),E.collapsed&&a.iter(u.line,p.line+1,function(Q){ + zs(a,Q)&&ii(Q,0); + }),E.clearOnEnter&&rt(E,'beforeCursorEnter',function(){ + return E.clear(); + }),E.readOnly&&(jI(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),E.collapsed&&(E.id=++XF,E.atomic=!0),R){ + if(F&&(R.curOp.updateMaxLine=!0),E.collapsed)oi(R,u.line,p.line+1);else if(E.className||E.startStyle||E.endStyle||E.css||E.attributes||E.title)for(var H=u.line;H<=p.line;H++)Hs(R,H,'text');E.atomic&&AC(R.doc),nn(R,'markerAdded',R,E); + }return E; + }M(xc,'markText');var Dh=M(function(a,u){ + this.markers=a,this.primary=u;for(var p=0;p=0;R--)bc(this,d[R]);L?yC(this,L):this.cm&&mc(this.cm); + }),undo:an(function(){ + Oh(this,'undo'); + }),redo:an(function(){ + Oh(this,'redo'); + }),undoSelection:an(function(){ + Oh(this,'undo',!0); + }),redoSelection:an(function(){ + Oh(this,'redo',!0); + }),setExtending:function(a){ + this.extend=a; + },getExtending:function(){ + return this.extend; + },historySize:function(){ + for(var a=this.history,u=0,p=0,d=0;d=a.ch)&&u.push(h.marker.parent||h.marker); + }return u; + },findMarks:function(a,u,p){ + a=Ve(this,a),u=Ve(this,u);var d=[],h=a.line;return this.iter(a.line,u.line+1,function(E){ + var O=E.markedSpans;if(O)for(var L=0;L=R.to||R.from==null&&h!=a.line||R.from!=null&&h==u.line&&R.from>=u.ch)&&(!p||p(R.marker))&&d.push(R.marker.parent||R.marker); + }++h; + }),d; + },getAllMarks:function(){ + var a=[];return this.iter(function(u){ + var p=u.markedSpans;if(p)for(var d=0;da)return u=a,!0;a-=E,++p; + }),Ve(this,Ae(p,u)); + },indexFromPos:function(a){ + a=Ve(this,a);var u=a.ch;if(a.lineu&&(u=a.from),a.to!=null&&a.to-1){ + u.state.draggingText(a),setTimeout(function(){ + return u.display.input.focus(); + },20);return; + }try{ + var H=a.dataTransfer.getData('Text');if(H){ + var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),Sh(u.doc,Ys(p,p)),Q)for(var $=0;$=0;L--)Ac(a.doc,'',d[L].from,d[L].to,'+delete');mc(a); + }); + }M(Ec,'deleteNearSelection');function z0(a,u,p){ + var d=Ml(a.text,u+p,p);return d<0||d>a.text.length?null:d; + }M(z0,'moveCharLogically');function H0(a,u,p){ + var d=z0(a,u.ch,p);return d==null?null:new Ae(u.line,d,p<0?'after':'before'); + }M(H0,'moveLogically');function Q0(a,u,p,d,h){ + if(a){ + u.doc.direction=='rtl'&&(h=-h);var E=ri(p,u.doc.direction);if(E){ + var O=h<0?pe(E):E[0],L=h<0==(O.level==1),R=L?'after':'before',F;if(O.level>0||u.doc.direction=='rtl'){ + var H=uc(u,p);F=h<0?p.text.length-1:0;var Q=da(u,H,F).top;F=xi(function($){ + return da(u,H,$).top==Q; + },h<0==(O.level==1)?O.from:O.to-1,F),R=='before'&&(F=z0(p,F,1)); + }else F=h<0?O.to:O.from;return new Ae(d,F,R); + } + }return new Ae(d,h<0?p.text.length:0,h<0?'before':'after'); + }M(Q0,'endOfLine');function u3(a,u,p,d){ + var h=ri(u,a.doc.direction);if(!h)return H0(u,p,d);p.ch>=u.text.length?(p.ch=u.text.length,p.sticky='before'):p.ch<=0&&(p.ch=0,p.sticky='after');var E=pr(h,p.ch,p.sticky),O=h[E];if(a.doc.direction=='ltr'&&O.level%2==0&&(d>0?O.to>p.ch:O.from=O.from&&$>=H.begin)){ + var Z=Q?'before':'after';return new Ae(p.line,$,Z); + } + }var le=M(function(De,qe,Le){ + for(var Be=M(function($t,hn){ + return hn?new Ae(p.line,L($t,1),'before'):new Ae(p.line,$t,'after'); + },'getRes');De>=0&&De0==(it.level!=1),Et=Je?Le.begin:L(Le.end,-1);if(it.from<=Et&&Et0?H.end:L(H.begin,-1);return Te!=null&&!(d>0&&Te==u.text.length)&&(ge=le(d>0?0:h.length-1,d,F(Te)),ge)?ge:null; + }M(u3,'moveVisually');var Mh={selectAll:EC,singleSelection:function(a){ + return a.setSelection(a.getCursor('anchor'),a.getCursor('head'),He); + },killLine:function(a){ + return Ec(a,function(u){ + if(u.empty()){ + var p=Qe(a.doc,u.head.line).text.length;return u.head.ch==p&&u.head.line0)h=new Ae(h.line,h.ch+1),a.replaceRange(E.charAt(h.ch-1)+E.charAt(h.ch-2),Ae(h.line,h.ch-2),h,'+transpose');else if(h.line>a.doc.first){ + var O=Qe(a.doc,h.line-1).text;O&&(h=new Ae(h.line,1),a.replaceRange(E.charAt(0)+a.doc.lineSeparator()+O.charAt(O.length-1),Ae(h.line-1,O.length-1),h,'+transpose')); + } + }p.push(new qt(h,h)); + }a.setSelections(p); + }); + },newlineAndIndent:function(a){ + return Ei(a,function(){ + for(var u=a.listSelections(),p=u.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),u[p].anchor,u[p].head,'+input');u=a.listSelections();for(var d=0;da&&q(u,this.pos)==0&&p==this.button; + };var Fh,qh;function m3(a,u){ + var p=+new Date;return qh&&qh.compare(p,a,u)?(Fh=qh=null,'triple'):Fh&&Fh.compare(p,a,u)?(qh=new QC(p,a,u),Fh=null,'double'):(Fh=new QC(p,a,u),qh=null,'single'); + }M(m3,'clickRepeat');function WC(a){ + var u=this,p=u.display;if(!(Nr(u,a)||p.activeTouch&&p.input.supportsTouch())){ + if(p.input.ensurePolled(),p.shift=a.shiftKey,_a(p,a)){ + m||(p.scroller.draggable=!1,setTimeout(function(){ + return p.scroller.draggable=!0; + },100));return; + }if(!W0(u,a)){ + var d=Gl(u,a),h=td(a),E=d?m3(d,h):'single';window.focus(),h==1&&u.state.selectingText&&u.state.selectingText(a),!(d&&h3(u,h,d,E,a))&&(h==1?d?g3(u,d,E,a):Ka(a)==p.scroller&&mn(a):h==2?(d&&Ch(u.doc,d),setTimeout(function(){ + return p.input.focus(); + },20)):h==3&&(I?u.display.input.onContextMenu(a):C0(u))); + } + } + }M(WC,'onMouseDown');function h3(a,u,p,d,h){ + var E='Click';return d=='double'?E='Double'+E:d=='triple'&&(E='Triple'+E),E=(u==1?'Left':u==2?'Middle':'Right')+E,kd(a,IC(E,h),h,function(O){ + if(typeof O=='string'&&(O=Mh[O]),!O)return!1;var L=!1;try{ + a.isReadOnly()&&(a.state.suppressEdits=!0),L=O(a,p)!=Ge; + }finally{ + a.state.suppressEdits=!1; + }return L; + }); + }M(h3,'handleMappedButton');function v3(a,u,p){ + var d=a.getOption('configureMouse'),h=d?d(a,u,p):{};if(h.unit==null){ + var E=k?p.shiftKey&&p.metaKey:p.altKey;h.unit=E?'rectangle':u=='single'?'char':u=='double'?'word':'line'; + }return(h.extend==null||a.doc.extend)&&(h.extend=a.doc.extend||p.shiftKey),h.addNew==null&&(h.addNew=x?p.metaKey:p.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(x?p.altKey:p.ctrlKey)),h; + }M(v3,'configureMouse');function g3(a,u,p,d){ + c?setTimeout(Re(XT,a),0):a.curOp.focus=ee();var h=v3(a,p,d),E=a.doc.sel,O;a.options.dragDrop&&rd&&!a.isReadOnly()&&p=='single'&&(O=E.contains(u))>-1&&(q((O=E.ranges[O]).from(),u)<0||u.xRel>0)&&(q(O.to(),u)>0||u.xRel<0)?y3(a,d,u,h):b3(a,d,u,h); + }M(g3,'leftButtonDown');function y3(a,u,p,d){ + var h=a.display,E=!1,O=on(a,function(F){ + m&&(h.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:C0(a)),Vn(h.wrapper.ownerDocument,'mouseup',O),Vn(h.wrapper.ownerDocument,'mousemove',L),Vn(h.scroller,'dragstart',R),Vn(h.scroller,'drop',O),E||(mn(F),d.addNew||Ch(a.doc,p,null,null,d.extend),m&&!w||c&&f==9?setTimeout(function(){ + h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus(); + },20):h.input.focus()); + }),L=M(function(F){ + E=E||Math.abs(u.clientX-F.clientX)+Math.abs(u.clientY-F.clientY)>=10; + },'mouseMove'),R=M(function(){ + return E=!0; + },'dragStart');m&&(h.scroller.draggable=!0),a.state.draggingText=O,O.copy=!d.moveOnDrag,rt(h.wrapper.ownerDocument,'mouseup',O),rt(h.wrapper.ownerDocument,'mousemove',L),rt(h.scroller,'dragstart',R),rt(h.scroller,'drop',O),a.state.delayingBlurEvent=!0,setTimeout(function(){ + return h.input.focus(); + },20),h.scroller.dragDrop&&h.scroller.dragDrop(); + }M(y3,'leftButtonStartDrag');function YC(a,u,p){ + if(p=='char')return new qt(u,u);if(p=='word')return a.findWordAt(u);if(p=='line')return new qt(Ae(u.line,0),Ve(a.doc,Ae(u.line+1,0)));var d=p(a,u);return new qt(d.from,d.to); + }M(YC,'rangeForUnit');function b3(a,u,p,d){ + c&&C0(a);var h=a.display,E=a.doc;mn(u);var O,L,R=E.sel,F=R.ranges;if(d.addNew&&!d.extend?(L=E.sel.contains(p),L>-1?O=F[L]:O=new qt(p,p)):(O=E.sel.primary(),L=E.sel.primIndex),d.unit=='rectangle')d.addNew||(O=new qt(p,p)),p=Gl(a,u,!0,!0),L=-1;else{ + var H=YC(a,p,d.unit);d.extend?O=U0(O,H.anchor,H.head,d.extend):O=H; + }d.addNew?L==-1?(L=F.length,kn(E,Mo(a,F.concat([O]),L),{scroll:!1,origin:'*mouse'})):F.length>1&&F[L].empty()&&d.unit=='char'&&!d.extend?(kn(E,Mo(a,F.slice(0,L).concat(F.slice(L+1)),0),{scroll:!1,origin:'*mouse'}),R=E.sel):B0(E,L,O,dr):(L=0,kn(E,new io([O],0),dr),R=E.sel);var Q=p;function $(Le){ + if(q(Q,Le)!=0)if(Q=Le,d.unit=='rectangle'){ + for(var Be=[],it=a.options.tabSize,Je=ie(Qe(E,p.line).text,p.ch,it),Et=ie(Qe(E,Le.line).text,Le.ch,it),$t=Math.min(Je,Et),hn=Math.max(Je,Et),mr=Math.min(p.line,Le.line),Ci=Math.min(a.lastLine(),Math.max(p.line,Le.line));mr<=Ci;mr++){ + var Si=Qe(E,mr).text,zr=bt(Si,$t,it);$t==hn?Be.push(new qt(Ae(mr,zr),Ae(mr,zr))):Si.length>zr&&Be.push(new qt(Ae(mr,zr),Ae(mr,bt(Si,hn,it)))); + }Be.length||Be.push(new qt(p,p)),kn(E,Mo(a,R.ranges.slice(0,L).concat(Be),L),{origin:'*mouse',scroll:!1}),a.scrollIntoView(Le); + }else{ + var ki=O,On=YC(a,Le,d.unit),sn=ki.anchor,Hr;q(On.anchor,sn)>0?(Hr=On.head,sn=ct(ki.from(),On.anchor)):(Hr=On.anchor,sn=we(ki.to(),On.head));var Dr=R.ranges.slice(0);Dr[L]=A3(a,new qt(Ve(E,sn),Hr)),kn(E,Mo(a,Dr,L),dr); + } + }M($,'extendTo');var Z=h.wrapper.getBoundingClientRect(),le=0;function ge(Le){ + var Be=++le,it=Gl(a,Le,!0,d.unit=='rectangle');if(it)if(q(it,Q)!=0){ + a.curOp.focus=ee(),$(it);var Je=Ah(h,E);(it.line>=Je.to||it.lineZ.bottom?20:0;Et&&setTimeout(on(a,function(){ + le==Be&&(h.scroller.scrollTop+=Et,ge(Le)); + }),50); + } + }M(ge,'extend');function Te(Le){ + a.state.selectingText=!1,le=1/0,Le&&(mn(Le),h.input.focus()),Vn(h.wrapper.ownerDocument,'mousemove',De),Vn(h.wrapper.ownerDocument,'mouseup',qe),E.history.lastSelOrigin=null; + }M(Te,'done');var De=on(a,function(Le){ + Le.buttons===0||!td(Le)?Te(Le):ge(Le); + }),qe=on(a,Te);a.state.selectingText=qe,rt(h.wrapper.ownerDocument,'mousemove',De),rt(h.wrapper.ownerDocument,'mouseup',qe); + }M(b3,'leftButtonSelect');function A3(a,u){ + var p=u.anchor,d=u.head,h=Qe(a.doc,p.line);if(q(p,d)==0&&p.sticky==d.sticky)return u;var E=ri(h);if(!E)return u;var O=pr(E,p.ch,p.sticky),L=E[O];if(L.from!=p.ch&&L.to!=p.ch)return u;var R=O+(L.from==p.ch==(L.level!=1)?0:1);if(R==0||R==E.length)return u;var F;if(d.line!=p.line)F=(d.line-p.line)*(a.doc.direction=='ltr'?1:-1)>0;else{ + var H=pr(E,d.ch,d.sticky),Q=H-O||(d.ch-p.ch)*(L.level==1?-1:1);H==R-1||H==R?F=Q<0:F=Q>0; + }var $=E[R+(F?-1:0)],Z=F==($.level==1),le=Z?$.from:$.to,ge=Z?'after':'before';return p.ch==le&&p.sticky==ge?u:new qt(new Ae(p.line,le,ge),d); + }M(A3,'bidiSimplify');function KC(a,u,p,d){ + var h,E;if(u.touches)h=u.touches[0].clientX,E=u.touches[0].clientY;else try{ + h=u.clientX,E=u.clientY; + }catch{ + return!1; + }if(h>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&mn(u);var O=a.display,L=O.lineDiv.getBoundingClientRect();if(E>L.bottom||!rn(a,p))return wi(u);E-=L.top-O.viewOffset;for(var R=0;R=h){ + var H=Lo(a.doc,E),Q=a.display.gutterSpecs[R];return ut(a,p,a,H,Q.className,u),wi(u); + } + } + }M(KC,'gutterEvent');function W0(a,u){ + return KC(a,u,'gutterClick',!0); + }M(W0,'clickInGutter');function XC(a,u){ + _a(a.display,u)||x3(a,u)||Nr(a,u,'contextmenu')||I||a.display.input.onContextMenu(u); + }M(XC,'onContextMenu');function x3(a,u){ + return rn(a,'gutterContextMenu')?KC(a,u,'gutterContextMenu',!1):!1; + }M(x3,'contextMenuInGutter');function ZC(a){ + a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,'')+a.options.theme.replace(/(^|\s)\s*/g,' cm-s-'),hd(a); + }M(ZC,'themeChanged');var Od={toString:function(){ + return'CodeMirror.Init'; + }},w3={},Y0={};function E3(a){ + var u=a.optionHandlers;function p(d,h,E,O){ + a.defaults[d]=h,E&&(u[d]=O?function(L,R,F){ + F!=Od&&E(L,R,F); + }:E); + }M(p,'option'),a.defineOption=p,a.Init=Od,p('value','',function(d,h){ + return d.setValue(h); + },!0),p('mode',null,function(d,h){ + d.doc.modeOption=h,q0(d); + },!0),p('indentUnit',2,q0,!0),p('indentWithTabs',!1),p('smartIndent',!0),p('tabSize',4,function(d){ + wd(d),hd(d),oi(d); + },!0),p('lineSeparator',null,function(d,h){ + if(d.doc.lineSep=h,!!h){ + var E=[],O=d.doc.first;d.doc.iter(function(R){ + for(var F=0;;){ + var H=R.text.indexOf(h,F);if(H==-1)break;F=H+h.length,E.push(Ae(O,H)); + }O++; + });for(var L=E.length-1;L>=0;L--)Ac(d.doc,h,E[L],Ae(E[L].line,E[L].ch+h.length)); + } + }),p('specialChars',/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(d,h,E){ + d.state.specialChars=new RegExp(h.source+(h.test(' ')?'':'| '),'g'),E!=Od&&d.refresh(); + }),p('specialCharPlaceholder',ZI,function(d){ + return d.refresh(); + },!0),p('electricChars',!0),p('inputStyle',C?'contenteditable':'textarea',function(){ + throw new Error('inputStyle can not (yet) be changed in a running editor'); + },!0),p('spellcheck',!1,function(d,h){ + return d.getInputField().spellcheck=h; + },!0),p('autocorrect',!1,function(d,h){ + return d.getInputField().autocorrect=h; + },!0),p('autocapitalize',!1,function(d,h){ + return d.getInputField().autocapitalize=h; + },!0),p('rtlMoveVisually',!P),p('wholeLineUpdateBefore',!0),p('theme','default',function(d){ + ZC(d),xd(d); + },!0),p('keyMap','default',function(d,h,E){ + var O=Rh(h),L=E!=Od&&Rh(E);L&&L.detach&&L.detach(d,O),O.attach&&O.attach(d,L||null); + }),p('extraKeys',null),p('configureMouse',null),p('lineWrapping',!1,C3,!0),p('gutters',[],function(d,h){ + d.display.gutterSpecs=M0(h,d.options.lineNumbers),xd(d); + },!0),p('fixedGutter',!0,function(d,h){ + d.display.gutters.style.left=h?x0(d.display)+'px':'0',d.refresh(); + },!0),p('coverGutterNextToScrollbar',!1,function(d){ + return vc(d); + },!0),p('scrollbarStyle','native',function(d){ + eC(d),vc(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft); + },!0),p('lineNumbers',!1,function(d,h){ + d.display.gutterSpecs=M0(d.options.gutters,h),xd(d); + },!0),p('firstLineNumber',1,xd,!0),p('lineNumberFormatter',function(d){ + return d; + },xd,!0),p('showCursorWhenSelecting',!1,vd,!0),p('resetSelectionOnContextMenu',!0),p('lineWiseCopyCut',!0),p('pasteLinesPerSelection',!0),p('selectionsMayTouch',!1),p('readOnly',!1,function(d,h){ + h=='nocursor'&&(pc(d),d.display.input.blur()),d.display.input.readOnlyChanged(h); + }),p('screenReaderLabel',null,function(d,h){ + h=h===''?null:h,d.display.input.screenReaderLabelChanged(h); + }),p('disableInput',!1,function(d,h){ + h||d.display.input.reset(); + },!0),p('dragDrop',!0,T3),p('allowDropFileTypes',null),p('cursorBlinkRate',530),p('cursorScrollMargin',0),p('cursorHeight',1,vd,!0),p('singleCursorHeightPerLine',!0,vd,!0),p('workTime',100),p('workDelay',100),p('flattenSpans',!0,wd,!0),p('addModeClass',!1,wd,!0),p('pollInterval',100),p('undoDepth',200,function(d,h){ + return d.doc.history.undoDepth=h; + }),p('historyEventDelay',1250),p('viewportMargin',10,function(d){ + return d.refresh(); + },!0),p('maxHighlightLength',1e4,wd,!0),p('moveInputWithCursor',!0,function(d,h){ + h||d.display.input.resetPosition(); + }),p('tabindex',null,function(d,h){ + return d.display.input.getField().tabIndex=h||''; + }),p('autofocus',null),p('direction','ltr',function(d,h){ + return d.doc.setDirection(h); + },!0),p('phrases',null); + }M(E3,'defineOptions');function T3(a,u,p){ + var d=p&&p!=Od;if(!u!=!d){ + var h=a.display.dragFunctions,E=u?rt:Vn;E(a.display.scroller,'dragstart',h.start),E(a.display.scroller,'dragenter',h.enter),E(a.display.scroller,'dragover',h.over),E(a.display.scroller,'dragleave',h.leave),E(a.display.scroller,'drop',h.drop); + } + }M(T3,'dragDropChanged');function C3(a){ + a.options.lineWrapping?(re(a.display.wrapper,'CodeMirror-wrap'),a.display.sizer.style.minWidth='',a.display.sizerWidth=null):(G(a.display.wrapper,'CodeMirror-wrap'),f0(a)),w0(a),oi(a),hd(a),setTimeout(function(){ + return vc(a); + },100); + }M(C3,'wrappingChanged');function or(a,u){ + var p=this;if(!(this instanceof or))return new or(a,u);this.options=u=u?Se(u):{},Se(w3,u,!1);var d=u.value;typeof d=='string'?d=new Ti(d,u.mode,null,u.lineSeparator,u.direction):u.mode&&(d.modeOption=u.mode),this.doc=d;var h=new or.inputStyles[u.inputStyle](this),E=this.display=new qF(a,d,h,u);E.wrapper.CodeMirror=this,ZC(this),u.lineWrapping&&(this.display.wrapper.className+=' CodeMirror-wrap'),eC(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ye,keySeq:null,specialChars:null},u.autofocus&&!C&&E.input.focus(),c&&f<11&&setTimeout(function(){ + return p.display.input.reset(!0); + },20),S3(this),i3(),Ql(this),this.curOp.forceUpdate=!0,cC(this,d),u.autofocus&&!C||this.hasFocus()?setTimeout(function(){ + p.hasFocus()&&!p.state.focused&&S0(p); + },20):pc(this);for(var O in Y0)Y0.hasOwnProperty(O)&&Y0[O](this,u[O],Od);nC(this),u.finishInit&&u.finishInit(this);for(var L=0;L20*20; + }M(O,'farAway'),rt(u.scroller,'touchstart',function(R){ + if(!Nr(a,R)&&!E(R)&&!W0(a,R)){ + u.input.ensurePolled(),clearTimeout(p);var F=+new Date;u.activeTouch={start:F,moved:!1,prev:F-d.end<=300?d:null},R.touches.length==1&&(u.activeTouch.left=R.touches[0].pageX,u.activeTouch.top=R.touches[0].pageY); + } + }),rt(u.scroller,'touchmove',function(){ + u.activeTouch&&(u.activeTouch.moved=!0); + }),rt(u.scroller,'touchend',function(R){ + var F=u.activeTouch;if(F&&!_a(u,R)&&F.left!=null&&!F.moved&&new Date-F.start<300){ + var H=a.coordsChar(u.activeTouch,'page'),Q;!F.prev||O(F,F.prev)?Q=new qt(H,H):!F.prev.prev||O(F,F.prev.prev)?Q=a.findWordAt(H):Q=new qt(Ae(H.line,0),Ve(a.doc,Ae(H.line+1,0))),a.setSelection(Q.anchor,Q.head),a.focus(),mn(R); + }h(); + }),rt(u.scroller,'touchcancel',h),rt(u.scroller,'scroll',function(){ + u.scroller.clientHeight&&(yd(a,u.scroller.scrollTop),Hl(a,u.scroller.scrollLeft,!0),ut(a,'scroll',a)); + }),rt(u.scroller,'mousewheel',function(R){ + return aC(a,R); + }),rt(u.scroller,'DOMMouseScroll',function(R){ + return aC(a,R); + }),rt(u.wrapper,'scroll',function(){ + return u.wrapper.scrollTop=u.wrapper.scrollLeft=0; + }),u.dragFunctions={enter:function(R){ + Nr(a,R)||Us(R); + },over:function(R){ + Nr(a,R)||(r3(a,R),Us(R)); + },start:function(R){ + return t3(a,R); + },drop:on(a,e3),leave:function(R){ + Nr(a,R)||PC(a); + }};var L=u.input.getField();rt(L,'keyup',function(R){ + return zC.call(a,R); + }),rt(L,'keydown',on(a,GC)),rt(L,'keypress',on(a,HC)),rt(L,'focus',function(R){ + return S0(a,R); + }),rt(L,'blur',function(R){ + return pc(a,R); + }); + }M(S3,'registerEventHandlers');var JC=[];or.defineInitHook=function(a){ + return JC.push(a); + };function Nd(a,u,p,d){ + var h=a.doc,E;p==null&&(p='add'),p=='smart'&&(h.mode.indent?E=ud(a,u).state:p='prev');var O=a.options.tabSize,L=Qe(h,u),R=ie(L.text,null,O);L.stateAfter&&(L.stateAfter=null);var F=L.text.match(/^\s*/)[0],H;if(!d&&!/\S/.test(L.text))H=0,p='not';else if(p=='smart'&&(H=h.mode.indent(E,L.text.slice(F.length),L.text),H==Ge||H>150)){ + if(!d)return;p='prev'; + }p=='prev'?u>h.first?H=ie(Qe(h,u-1).text,null,O):H=0:p=='add'?H=R+a.options.indentUnit:p=='subtract'?H=R-a.options.indentUnit:typeof p=='number'&&(H=R+p),H=Math.max(0,H);var Q='',$=0;if(a.options.indentWithTabs)for(var Z=Math.floor(H/O);Z;--Z)$+=O,Q+=' ';if($O,R=od(u),F=null;if(L&&d.ranges.length>1)if(pa&&pa.text.join(` +`)==u){ + if(d.ranges.length%pa.text.length==0){ + F=[];for(var H=0;H=0;$--){ + var Z=d.ranges[$],le=Z.from(),ge=Z.to();Z.empty()&&(p&&p>0?le=Ae(le.line,le.ch-p):a.state.overwrite&&!L?ge=Ae(ge.line,Math.min(Qe(E,ge.line).text.length,ge.ch+pe(R).length)):L&&pa&&pa.lineWise&&pa.text.join(` +`)==R.join(` +`)&&(le=ge=Ae(le.line,0)));var Te={from:le,to:ge,text:F?F[$%F.length]:R,origin:h||(L?'paste':a.state.cutIncoming>O?'cut':'+input')};bc(a.doc,Te),nn(a,'inputRead',a,Te); + }u&&!L&&$C(a,u),mc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Q),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1; + }M(K0,'applyTextInput');function _C(a,u){ + var p=a.clipboardData&&a.clipboardData.getData('Text');if(p)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ei(u,function(){ + return K0(u,p,0,null,'paste'); + }),!0; + }M(_C,'handlePaste');function $C(a,u){ + if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,d=p.ranges.length-1;d>=0;d--){ + var h=p.ranges[d];if(!(h.head.ch>100||d&&p.ranges[d-1].head.line==h.head.line)){ + var E=a.getModeAt(h.head),O=!1;if(E.electricChars){ + for(var L=0;L-1){ + O=Nd(a,h.head.line,'smart');break; + } + }else E.electricInput&&E.electricInput.test(Qe(a.doc,h.head.line).text.slice(0,h.head.ch))&&(O=Nd(a,h.head.line,'smart'));O&&nn(a,'electricInput',a,h.head.line); + } + } + }M($C,'triggerElectric');function eS(a){ + for(var u=[],p=[],d=0;dE&&(Nd(this,L.head.line,d,!0),E=L.head.line,O==this.doc.sel.primIndex&&mc(this));else{ + var R=L.from(),F=L.to(),H=Math.max(E,R.line);E=Math.min(this.lastLine(),F.line-(F.ch?0:1))+1;for(var Q=H;Q0&&B0(this.doc,O,new qt(R,$[O].to()),He); + } + } + }),getTokenAt:function(d,h){ + return hT(this,d,h); + },getLineTokens:function(d,h){ + return hT(this,Ae(d),h,!0); + },getTokenTypeAt:function(d){ + d=Ve(this.doc,d);var h=pT(this,Qe(this.doc,d.line)),E=0,O=(h.length-1)/2,L=d.ch,R;if(L==0)R=h[2];else for(;;){ + var F=E+O>>1;if((F?h[F*2-1]:0)>=L)O=F;else if(h[F*2+1]R&&(d=R,O=!0),L=Qe(this.doc,d); + }else L=d;return hh(this,L,{top:0,left:0},h||'page',E||O).top+(O?this.doc.height-Ja(L):0); + },defaultTextHeight:function(){ + return fc(this.display); + },defaultCharWidth:function(){ + return dc(this.display); + },getViewport:function(){ + return{from:this.display.viewFrom,to:this.display.viewTo}; + },addWidget:function(d,h,E,O,L){ + var R=this.display;d=Ro(this,Ve(this.doc,d));var F=d.bottom,H=d.left;if(h.style.position='absolute',h.setAttribute('cm-ignore-events','true'),this.display.input.setUneditable(h),R.sizer.appendChild(h),O=='over')F=d.top;else if(O=='above'||O=='near'){ + var Q=Math.max(R.wrapper.clientHeight,this.doc.height),$=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(O=='above'||d.bottom+h.offsetHeight>Q)&&d.top>h.offsetHeight?F=d.top-h.offsetHeight:d.bottom+h.offsetHeight<=Q&&(F=d.bottom),H+h.offsetWidth>$&&(H=$-h.offsetWidth); + }h.style.top=F+'px',h.style.left=h.style.right='',L=='right'?(H=R.sizer.clientWidth-h.offsetWidth,h.style.right='0px'):(L=='left'?H=0:L=='middle'&&(H=(R.sizer.clientWidth-h.offsetWidth)/2),h.style.left=H+'px'),E&&EF(this,{left:H,top:F,right:H+h.offsetWidth,bottom:F+h.offsetHeight}); + },triggerOnKeyDown:Un(GC),triggerOnKeyPress:Un(HC),triggerOnKeyUp:zC,triggerOnMouseDown:Un(WC),execCommand:function(d){ + if(Mh.hasOwnProperty(d))return Mh[d].call(null,this); + },triggerElectric:Un(function(d){ + $C(this,d); + }),findPosH:function(d,h,E,O){ + var L=1;h<0&&(L=-1,h=-h);for(var R=Ve(this.doc,d),F=0;F0&&H(E.charAt(O-1));)--O;for(;L.5||this.options.lineWrapping)&&w0(this),ut(this,'refresh',this); + }),swapDoc:Un(function(d){ + var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),cC(this,d),hd(this),this.display.input.reset(),gd(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,nn(this,'swapDoc',this,h),h; + }),phrase:function(d){ + var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,d)?h[d]:d; + },getInputField:function(){ + return this.display.input.getField(); + },getWrapperElement:function(){ + return this.display.wrapper; + },getScrollerElement:function(){ + return this.display.scroller; + },getGutterElement:function(){ + return this.display.gutters; + }},ko(a),a.registerHelper=function(d,h,E){ + p.hasOwnProperty(d)||(p[d]=a[d]={_global:[]}),p[d][h]=E; + },a.registerGlobalHelper=function(d,h,E,O){ + a.registerHelper(d,h,O),p[d]._global.push({pred:E,val:O}); + }; + }M(k3,'addEditorMethods');function X0(a,u,p,d,h){ + var E=u,O=p,L=Qe(a,u.line),R=h&&a.direction=='rtl'?-p:p;function F(){ + var qe=u.line+R;return qe=a.first+a.size?!1:(u=new Ae(qe,u.ch,u.sticky),L=Qe(a,qe)); + }M(F,'findNextLine');function H(qe){ + var Le;if(d=='codepoint'){ + var Be=L.text.charCodeAt(u.ch+(p>0?0:-1));if(isNaN(Be))Le=null;else{ + var it=p>0?Be>=55296&&Be<56320:Be>=56320&&Be<57343;Le=new Ae(u.line,Math.max(0,Math.min(L.text.length,u.ch+p*(it?2:1))),-p); + } + }else h?Le=u3(a.cm,L,u,p):Le=H0(L,u,p);if(Le==null)if(!qe&&F())u=Q0(h,a.cm,L,u.line,R);else return!1;else u=Le;return!0; + }if(M(H,'moveOnce'),d=='char'||d=='codepoint')H();else if(d=='column')H(!0);else if(d=='word'||d=='group')for(var Q=null,$=d=='group',Z=a.cm&&a.cm.getHelper(u,'wordChars'),le=!0;!(p<0&&!H(!le));le=!1){ + var ge=L.text.charAt(u.ch)||` +`,Te=ua(ge,Z)?'w':$&&ge==` +`?'n':!$||/\s/.test(ge)?null:'p';if($&&!le&&!Te&&(Te='s'),Q&&Q!=Te){ + p<0&&(p=1,H(),u.sticky='after');break; + }if(Te&&(Q=Te),p>0&&!H(!le))break; + }var De=kh(a,u,E,O,!0);return W(E,De)&&(De.hitSide=!0),De; + }M(X0,'findPosH');function nS(a,u,p,d){ + var h=a.doc,E=u.left,O;if(d=='page'){ + var L=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),R=Math.max(L-.5*fc(a.display),3);O=(p>0?u.bottom:u.top)+p*R; + }else d=='line'&&(O=p>0?u.bottom+3:u.top-3);for(var F;F=y0(a,E,O),!!F.outside;){ + if(p<0?O<=0:O>=h.height){ + F.hitSide=!0;break; + }O+=p*5; + }return F; + }M(nS,'findPosV');var Yt=M(function(a){ + this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null; + },'ContentEditableInput');Yt.prototype.init=function(a){ + var u=this,p=this,d=p.cm,h=p.div=a.lineDiv;h.contentEditable=!0,tS(h,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function E(L){ + for(var R=L.target;R;R=R.parentNode){ + if(R==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break; + }return!1; + }M(E,'belongsToInput'),rt(h,'paste',function(L){ + !E(L)||Nr(d,L)||_C(L,d)||f<=11&&setTimeout(on(d,function(){ + return u.updateFromDOM(); + }),20); + }),rt(h,'compositionstart',function(L){ + u.composing={data:L.data,done:!1}; + }),rt(h,'compositionupdate',function(L){ + u.composing||(u.composing={data:L.data,done:!1}); + }),rt(h,'compositionend',function(L){ + u.composing&&(L.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0); + }),rt(h,'touchstart',function(){ + return p.forceCompositionEnd(); + }),rt(h,'input',function(){ + u.composing||u.readFromDOMSoon(); + });function O(L){ + if(!(!E(L)||Nr(d,L))){ + if(d.somethingSelected())jh({lineWise:!1,text:d.getSelections()}),L.type=='cut'&&d.replaceSelection('',null,'cut');else if(d.options.lineWiseCopyCut){ + var R=eS(d);jh({lineWise:!0,text:R.text}),L.type=='cut'&&d.operation(function(){ + d.setSelections(R.ranges,0,He),d.replaceSelection('',null,'cut'); + }); + }else return;if(L.clipboardData){ + L.clipboardData.clearData();var F=pa.text.join(` +`);if(L.clipboardData.setData('Text',F),L.clipboardData.getData('Text')==F){ + L.preventDefault();return; + } + }var H=rS(),Q=H.firstChild;d.display.lineSpace.insertBefore(H,d.display.lineSpace.firstChild),Q.value=pa.text.join(` +`);var $=ee();xe(Q),setTimeout(function(){ + d.display.lineSpace.removeChild(H),$.focus(),$==h&&p.showPrimarySelection(); + },50); + } + }M(O,'onCopyCut'),rt(h,'copy',O),rt(h,'cut',O); + },Yt.prototype.screenReaderLabelChanged=function(a){ + a?this.div.setAttribute('aria-label',a):this.div.removeAttribute('aria-label'); + },Yt.prototype.prepareSelection=function(){ + var a=KT(this.cm,!1);return a.focus=ee()==this.div,a; + },Yt.prototype.showSelection=function(a,u){ + !a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a)); + },Yt.prototype.getSelection=function(){ + return this.cm.display.wrapper.ownerDocument.getSelection(); + },Yt.prototype.showPrimarySelection=function(){ + var a=this.getSelection(),u=this.cm,p=u.doc.sel.primary(),d=p.from(),h=p.to();if(u.display.viewTo==u.display.viewFrom||d.line>=u.display.viewTo||h.line=u.display.viewFrom&&iS(u,d)||{node:L[0].measure.map[2],offset:0},F=h.linea.firstLine()&&(d=Ae(d.line-1,Qe(a.doc,d.line-1).length)),h.ch==Qe(a.doc,h.line).text.length&&h.lineu.viewTo-1)return!1;var E,O,L;d.line==u.viewFrom||(E=zl(a,d.line))==0?(O=Pt(u.view[0].line),L=u.view[0].node):(O=Pt(u.view[E].line),L=u.view[E-1].node.nextSibling);var R=zl(a,h.line),F,H;if(R==u.view.length-1?(F=u.viewTo-1,H=u.lineDiv.lastChild):(F=Pt(u.view[R+1].line)-1,H=u.view[R+1].node.previousSibling),!L)return!1;for(var Q=a.doc.splitLines(N3(a,L,H,O,F)),$=Do(a.doc,Ae(O,0),Ae(F,Qe(a.doc,F).text.length));Q.length>1&&$.length>1;)if(pe(Q)==pe($))Q.pop(),$.pop(),F--;else if(Q[0]==$[0])Q.shift(),$.shift(),O++;else break;for(var Z=0,le=0,ge=Q[0],Te=$[0],De=Math.min(ge.length,Te.length);Zd.ch&&qe.charCodeAt(qe.length-le-1)==Le.charCodeAt(Le.length-le-1);)Z--,le++;Q[Q.length-1]=qe.slice(0,qe.length-le).replace(/^\u200b+/,''),Q[0]=Q[0].slice(Z).replace(/\u200b+$/,'');var it=Ae(O,Z),Je=Ae(F,$.length?pe($).length-le:0);if(Q.length>1||Q[0]||q(it,Je))return Ac(a.doc,Q,it,Je,'+input'),!0; + },Yt.prototype.ensurePolled=function(){ + this.forceCompositionEnd(); + },Yt.prototype.reset=function(){ + this.forceCompositionEnd(); + },Yt.prototype.forceCompositionEnd=function(){ + this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()); + },Yt.prototype.readFromDOMSoon=function(){ + var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){ + if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM(); + },80)); + },Yt.prototype.updateFromDOM=function(){ + var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ei(this.cm,function(){ + return oi(a.cm); + }); + },Yt.prototype.setUneditable=function(a){ + a.contentEditable='false'; + },Yt.prototype.onKeyPress=function(a){ + a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||on(this.cm,K0)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0)); + },Yt.prototype.readOnlyChanged=function(a){ + this.div.contentEditable=String(a!='nocursor'); + },Yt.prototype.onContextMenu=function(){},Yt.prototype.resetPosition=function(){},Yt.prototype.needsContentAttribute=!0;function iS(a,u){ + var p=h0(a,u.line);if(!p||p.hidden)return null;var d=Qe(a.doc,u.line),h=IT(p,d,u.line),E=ri(d,a.doc.direction),O='left';if(E){ + var L=pr(E,u.ch);O=L%2?'right':'left'; + }var R=qT(h.map,u.ch,O);return R.offset=R.collapse=='right'?R.end:R.start,R; + }M(iS,'posToDOM');function O3(a){ + for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1; + }M(O3,'isInGutter');function Tc(a,u){ + return u&&(a.bad=!0),a; + }M(Tc,'badPos');function N3(a,u,p,d,h){ + var E='',O=!1,L=a.doc.lineSeparator(),R=!1;function F(Z){ + return function(le){ + return le.id==Z; + }; + }M(F,'recognizeMarker');function H(){ + O&&(E+=L,R&&(E+=L),O=R=!1); + }M(H,'close');function Q(Z){ + Z&&(H(),E+=Z); + }M(Q,'addText');function $(Z){ + if(Z.nodeType==1){ + var le=Z.getAttribute('cm-text');if(le){ + Q(le);return; + }var ge=Z.getAttribute('cm-marker'),Te;if(ge){ + var De=a.findMarks(Ae(d,0),Ae(h+1,0),F(+ge));De.length&&(Te=De[0].find(0))&&Q(Do(a.doc,Te.from,Te.to).join(L));return; + }if(Z.getAttribute('contenteditable')=='false')return;var qe=/^(pre|div|p|li|table|br)$/i.test(Z.nodeName);if(!/^br$/i.test(Z.nodeName)&&Z.textContent.length==0)return;qe&&H();for(var Le=0;Le=9&&u.hasSelection&&(u.hasSelection=null),p.poll(); + }),rt(h,'paste',function(O){ + Nr(d,O)||_C(O,d)||(d.state.pasteIncoming=+new Date,p.fastPoll()); + });function E(O){ + if(!Nr(d,O)){ + if(d.somethingSelected())jh({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){ + var L=eS(d);jh({lineWise:!0,text:L.text}),O.type=='cut'?d.setSelections(L.ranges,null,He):(p.prevInput='',h.value=L.text.join(` +`),xe(h)); + }else return;O.type=='cut'&&(d.state.cutIncoming=+new Date); + } + }M(E,'prepareCopyCut'),rt(h,'cut',E),rt(h,'copy',E),rt(a.scroller,'paste',function(O){ + if(!(_a(a,O)||Nr(d,O))){ + if(!h.dispatchEvent){ + d.state.pasteIncoming=+new Date,p.focus();return; + }var L=new Event('paste');L.clipboardData=O.clipboardData,h.dispatchEvent(L); + } + }),rt(a.lineSpace,'selectstart',function(O){ + _a(a,O)||mn(O); + }),rt(h,'compositionstart',function(){ + var O=d.getCursor('from');p.composing&&p.composing.range.clear(),p.composing={start:O,range:d.markText(O,d.getCursor('to'),{className:'CodeMirror-composing'})}; + }),rt(h,'compositionend',function(){ + p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null); + }); + },qr.prototype.createField=function(a){ + this.wrapper=rS(),this.textarea=this.wrapper.firstChild; + },qr.prototype.screenReaderLabelChanged=function(a){ + a?this.textarea.setAttribute('aria-label',a):this.textarea.removeAttribute('aria-label'); + },qr.prototype.prepareSelection=function(){ + var a=this.cm,u=a.display,p=a.doc,d=KT(a);if(a.options.moveInputWithCursor){ + var h=Ro(a,p.sel.primary().head,'div'),E=u.wrapper.getBoundingClientRect(),O=u.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,h.top+O.top-E.top)),d.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,h.left+O.left-E.left)); + }return d; + },qr.prototype.showSelection=function(a){ + var u=this.cm,p=u.display;U(p.cursorDiv,a.cursors),U(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+'px',this.wrapper.style.left=a.teLeft+'px'); + },qr.prototype.reset=function(a){ + if(!(this.contextMenuPending||this.composing)){ + var u=this.cm;if(u.somethingSelected()){ + this.prevInput='';var p=u.getSelection();this.textarea.value=p,u.state.focused&&xe(this.textarea),c&&f>=9&&(this.hasSelection=p); + }else a||(this.prevInput=this.textarea.value='',c&&f>=9&&(this.hasSelection=null)); + } + },qr.prototype.getField=function(){ + return this.textarea; + },qr.prototype.supportsTouch=function(){ + return!1; + },qr.prototype.focus=function(){ + if(this.cm.options.readOnly!='nocursor'&&(!C||ee()!=this.textarea))try{ + this.textarea.focus(); + }catch{} + },qr.prototype.blur=function(){ + this.textarea.blur(); + },qr.prototype.resetPosition=function(){ + this.wrapper.style.top=this.wrapper.style.left=0; + },qr.prototype.receivedFocus=function(){ + this.slowPoll(); + },qr.prototype.slowPoll=function(){ + var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ + a.poll(),a.cm.state.focused&&a.slowPoll(); + }); + },qr.prototype.fastPoll=function(){ + var a=!1,u=this;u.pollingFast=!0;function p(){ + var d=u.poll();!d&&!a?(a=!0,u.polling.set(60,p)):(u.pollingFast=!1,u.slowPoll()); + }M(p,'p'),u.polling.set(20,p); + },qr.prototype.poll=function(){ + var a=this,u=this.cm,p=this.textarea,d=this.prevInput;if(this.contextMenuPending||!u.state.focused||oh(p)&&!d&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var h=p.value;if(h==d&&!u.somethingSelected())return!1;if(c&&f>=9&&this.hasSelection===h||x&&/[\uf700-\uf7ff]/.test(h))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){ + var E=h.charCodeAt(0);if(E==8203&&!d&&(d='\u200B'),E==8666)return this.reset(),this.cm.execCommand('undo'); + }for(var O=0,L=Math.min(d.length,h.length);O1e3||h.indexOf(` +`)>-1?p.value=a.prevInput='':a.prevInput=h,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor('to'),{className:'CodeMirror-composing'})); + }),!0; + },qr.prototype.ensurePolled=function(){ + this.pollingFast&&this.poll()&&(this.pollingFast=!1); + },qr.prototype.onKeyPress=function(){ + c&&f>=9&&(this.hasSelection=null),this.fastPoll(); + },qr.prototype.onContextMenu=function(a){ + var u=this,p=u.cm,d=p.display,h=u.textarea;u.contextMenuPending&&u.contextMenuPending();var E=Gl(p,a),O=d.scroller.scrollTop;if(!E||y)return;var L=p.options.resetSelectionOnContextMenu;L&&p.doc.sel.contains(E)==-1&&on(p,kn)(p.doc,Ys(E),He);var R=h.style.cssText,F=u.wrapper.style.cssText,H=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText='position: static',h.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(a.clientY-H.top-5)+'px; left: '+(a.clientX-H.left-5)+`px; + z-index: 1000; background: `+(c?'rgba(255, 255, 255, .05)':'transparent')+`; + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;m&&(Q=window.scrollY),d.input.focus(),m&&window.scrollTo(null,Q),d.input.reset(),p.somethingSelected()||(h.value=u.prevInput=' '),u.contextMenuPending=Z,d.selForContextMenu=p.doc.sel,clearTimeout(d.detectingSelectAll);function $(){ + if(h.selectionStart!=null){ + var ge=p.somethingSelected(),Te='\u200B'+(ge?h.value:'');h.value='\u21DA',h.value=Te,u.prevInput=ge?'':'\u200B',h.selectionStart=1,h.selectionEnd=Te.length,d.selForContextMenu=p.doc.sel; + } + }M($,'prepareSelectAllHack');function Z(){ + if(u.contextMenuPending==Z&&(u.contextMenuPending=!1,u.wrapper.style.cssText=F,h.style.cssText=R,c&&f<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=O),h.selectionStart!=null)){ + (!c||c&&f<9)&&$();var ge=0,Te=M(function(){ + d.selForContextMenu==p.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&u.prevInput=='\u200B'?on(p,EC)(p):ge++<10?d.detectingSelectAll=setTimeout(Te,500):(d.selForContextMenu=null,d.input.reset()); + },'poll');d.detectingSelectAll=setTimeout(Te,200); + } + }if(M(Z,'rehide'),c&&f>=9&&$(),I){ + Us(a);var le=M(function(){ + Vn(window,'mouseup',le),setTimeout(Z,20); + },'mouseup');rt(window,'mouseup',le); + }else setTimeout(Z,50); + },qr.prototype.readOnlyChanged=function(a){ + a||this.reset(),this.textarea.disabled=a=='nocursor',this.textarea.readOnly=!!a; + },qr.prototype.setUneditable=function(){},qr.prototype.needsContentAttribute=!1;function L3(a,u){ + if(u=u?Se(u):{},u.value=a.value,!u.tabindex&&a.tabIndex&&(u.tabindex=a.tabIndex),!u.placeholder&&a.placeholder&&(u.placeholder=a.placeholder),u.autofocus==null){ + var p=ee();u.autofocus=p==a||a.getAttribute('autofocus')!=null&&p==document.body; + }function d(){ + a.value=L.getValue(); + }M(d,'save');var h;if(a.form&&(rt(a.form,'submit',d),!u.leaveSubmitMethodAlone)){ + var E=a.form;h=E.submit;try{ + var O=E.submit=function(){ + d(),E.submit=h,E.submit(),E.submit=O; + }; + }catch{} + }u.finishInit=function(R){ + R.save=d,R.getTextArea=function(){ + return a; + },R.toTextArea=function(){ + R.toTextArea=isNaN,d(),a.parentNode.removeChild(R.getWrapperElement()),a.style.display='',a.form&&(Vn(a.form,'submit',d),!u.leaveSubmitMethodAlone&&typeof a.form.submit=='function'&&(a.form.submit=h)); + }; + },a.style.display='none';var L=or(function(R){ + return a.parentNode.insertBefore(R,a.nextSibling); + },u);return L; + }M(L3,'fromTextArea');function P3(a){ + a.off=Vn,a.on=rt,a.wheelEventPixels=jF,a.Doc=Ti,a.splitLines=od,a.countColumn=ie,a.findColumn=bt,a.isWordChar=Or,a.Pass=Ge,a.signal=ut,a.Line=fd,a.changeEnd=Ks,a.scrollbarModel=CF,a.Pos=Ae,a.cmpPos=q,a.modes=ro,a.mimeModes=qi,a.resolveMode=Vl,a.getMode=Ul,a.modeExtensions=No,a.extendMode=no,a.copyState=ji,a.startState=ac,a.innerMode=oc,a.commands=Mh,a.keyMap=Zs,a.keyName=FC,a.isModifierKey=MC,a.lookupKey=wc,a.normalizeKeyMap=l3,a.StringStream=xr,a.SharedTextMarker=Dh,a.TextMarker=Yl,a.LineWidget=Nh,a.e_preventDefault=mn,a.e_stopPropagation=jl,a.e_stop=Us,a.addClass=re,a.contains=K,a.rmClass=G,a.keyNames=Kl; + }M(P3,'addLegacyProps'),E3(or),k3(or);var K$='iter insert remove copy getEditor constructor'.split(' ');for(var Z0 in Ti.prototype)Ti.prototype.hasOwnProperty(Z0)&&me(K$,Z0)<0&&(or.prototype[Z0]=function(a){ + return function(){ + return a.apply(this.doc,arguments); + }; + }(Ti.prototype[Z0]));return ko(Ti),or.inputStyles={textarea:qr,contenteditable:Yt},or.defineMode=function(a){ + !or.defaults.mode&&a!='null'&&(or.defaults.mode=a),sd.apply(this,arguments); + },or.defineMIME=ca,or.defineMode('null',function(){ + return{token:function(a){ + return a.skipToEnd(); + }}; + }),or.defineMIME('text/plain','null'),or.defineExtension=function(a,u){ + or.prototype[a]=u; + },or.defineDocExtension=function(a,u){ + Ti.prototype[a]=u; + },or.fromTextArea=L3,P3(or),or.version='5.65.3',or; + }); + }(PZ)),PZ.exports; +}var mxe,M,hxe,PZ,RZ,ir=at(()=>{ + mxe=Object.defineProperty,M=(e,t)=>mxe(e,'name',{value:t,configurable:!0}),hxe=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};M(_t,'getDefaultExportFromCjs');PZ={exports:{}};M(Kt,'requireCodemirror'); +});var FZ={};Ui(FZ,{C:()=>tt,c:()=>yxe});function MZ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var vxe,gxe,IZ,tt,yxe,ia=at(()=>{ + ir();vxe=Object.defineProperty,gxe=(e,t)=>vxe(e,'name',{value:t,configurable:!0});gxe(MZ,'_mergeNamespaces');IZ=Kt(),tt=_t(IZ),yxe=MZ({__proto__:null,default:tt},[IZ]); +});var VZ={};Ui(VZ,{s:()=>wxe});function qZ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var bxe,eo,Axe,jZ,xxe,wxe,OM=at(()=>{ + ir();bxe=Object.defineProperty,eo=(e,t)=>bxe(e,'name',{value:t,configurable:!0});eo(qZ,'_mergeNamespaces');Axe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + var n='CodeMirror-hint',i='CodeMirror-hint-active';r.showHint=function(A,b,C){ + if(!b)return A.showHint(C);C&&C.async&&(b.async=!0);var x={hint:b};if(C)for(var k in C)x[k]=C[k];return A.showHint(x); + },r.defineExtension('showHint',function(A){ + A=c(this,this.getCursor('start'),A);var b=this.listSelections();if(!(b.length>1)){ + if(this.somethingSelected()){ + if(!A.hint.supportsSelection)return;for(var C=0;CD.clientHeight+1:!1,He;setTimeout(function(){ + He=x.getScrollInfo(); + });var dr=Oe.bottom-me;if(dr>0){ + var Ue=Oe.bottom-Oe.top,bt=j.top-(j.bottom-Oe.top);if(bt-Ue>0)D.style.top=(K=j.top-Ue-se)+'px',ee=!1;else if(Ue>me){ + D.style.height=me-5+'px',D.style.top=(K=j.bottom-Oe.top-se)+'px';var he=x.getCursor();b.from.ch!=he.ch&&(j=x.cursorCoords(he),D.style.left=(J=j.left-re)+'px',Oe=D.getBoundingClientRect()); + } + }var Fe=Oe.right-ye;if(Ge&&(Fe+=x.display.nativeBarWidth),Fe>0&&(Oe.right-Oe.left>ye&&(D.style.width=ye-5+'px',Fe-=Oe.right-Oe.left-ye),D.style.left=(J=j.left-Fe-re)+'px'),Ge)for(var pe=D.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=x.display.nativeBarWidth+'px';if(x.addKeyMap(this.keyMap=m(A,{moveFocus:function(nt,lt){ + C.changeActive(C.selectedHint+nt,lt); + },setFocus:function(nt){ + C.changeActive(nt); + },menuSize:function(){ + return C.screenAmount(); + },length:I.length,close:function(){ + A.close(); + },pick:function(){ + C.pick(); + },data:b})),A.options.closeOnUnfocus){ + var Me;x.on('blur',this.onBlur=function(){ + Me=setTimeout(function(){ + A.close(); + },100); + }),x.on('focus',this.onFocus=function(){ + clearTimeout(Me); + }); + }x.on('scroll',this.onScroll=function(){ + var nt=x.getScrollInfo(),lt=x.getWrapperElement().getBoundingClientRect();He||(He=x.getScrollInfo());var wt=K+He.top-nt.top,Or=wt-(P.pageYOffset||(k.documentElement||k.body).scrollTop);if(ee||(Or+=D.offsetHeight),Or<=lt.top||Or>=lt.bottom)return A.close();D.style.top=wt+'px',D.style.left=J+He.left-nt.left+'px'; + }),r.on(D,'dblclick',function(nt){ + var lt=v(D,nt.target||nt.srcElement);lt&<.hintId!=null&&(C.changeActive(lt.hintId),C.pick()); + }),r.on(D,'click',function(nt){ + var lt=v(D,nt.target||nt.srcElement);lt&<.hintId!=null&&(C.changeActive(lt.hintId),A.options.completeOnSingleClick&&C.pick()); + }),r.on(D,'mousedown',function(){ + setTimeout(function(){ + x.focus(); + },20); + });var st=this.getSelectedHintRange();return(st.from!==0||st.to!==0)&&this.scrollToActive(),r.signal(b,'select',I[this.selectedHint],D.childNodes[this.selectedHint]),!0; + }eo(g,'Widget'),g.prototype={close:function(){ + if(this.completion.widget==this){ + this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var A=this.completion.cm.getInputField();A.removeAttribute('aria-activedescendant'),A.removeAttribute('aria-owns');var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off('blur',this.onBlur),b.off('focus',this.onFocus)),b.off('scroll',this.onScroll); + } + },disable:function(){ + this.completion.cm.removeKeyMap(this.keyMap);var A=this;this.keyMap={Enter:function(){ + A.picked=!0; + }},this.completion.cm.addKeyMap(this.keyMap); + },pick:function(){ + this.completion.pick(this.data,this.selectedHint); + },changeActive:function(A,b){ + if(A>=this.data.list.length?A=b?this.data.list.length-1:0:A<0&&(A=b?0:this.data.list.length-1),this.selectedHint!=A){ + var C=this.hints.childNodes[this.selectedHint];C&&(C.className=C.className.replace(' '+i,''),C.removeAttribute('aria-selected')),C=this.hints.childNodes[this.selectedHint=A],C.className+=' '+i,C.setAttribute('aria-selected','true'),this.completion.cm.getInputField().setAttribute('aria-activedescendant',C.id),this.scrollToActive(),r.signal(this.data,'select',this.data.list[this.selectedHint],C); + } + },scrollToActive:function(){ + var A=this.getSelectedHintRange(),b=this.hints.childNodes[A.from],C=this.hints.childNodes[A.to],x=this.hints.firstChild;b.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=C.offsetTop+C.offsetHeight-this.hints.clientHeight+x.offsetTop); + },screenAmount:function(){ + return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1; + },getSelectedHintRange:function(){ + var A=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-A),to:Math.min(this.data.list.length-1,this.selectedHint+A)}; + }};function y(A,b){ + if(!A.somethingSelected())return b;for(var C=[],x=0;x0?D(B):V(G+1); + }); + }eo(V,'run'),V(0); + },'resolved');return k.async=!0,k.supportsSelection=!0,k; + }else return(x=A.getHelper(A.getCursor(),'hintWords'))?function(P){ + return r.hint.fromList(P,{words:x}); + }:r.hint.anyword?function(P,D){ + return r.hint.anyword(P,D); + }:function(){}; + }eo(T,'resolveAutoHints'),r.registerHelper('hint','auto',{resolve:T}),r.registerHelper('hint','fromList',function(A,b){ + var C=A.getCursor(),x=A.getTokenAt(C),k,P=r.Pos(C.line,x.start),D=C;x.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption('hintOptions',null); + }); + })();jZ=Axe.exports,xxe=_t(jZ),wxe=qZ({__proto__:null,default:xxe},[jZ]); +});function Sy(){ + return UZ||(UZ=1,function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + var n=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=r.Pos,o={'(':')>',')':'(<','[':']>',']':'[<','{':'}>','}':'{<','<':'>>','>':'<<'};function s(g){ + return g&&g.bracketRegex||/[(){}[\]]/; + }Yu(s,'bracketRegex');function l(g,y,w){ + var T=g.getLineHandle(y.line),S=y.ch-1,A=w&&w.afterCursor;A==null&&(A=/(^| )cm-fat-cursor($| )/.test(g.getWrapperElement().className));var b=s(w),C=!A&&S>=0&&b.test(T.text.charAt(S))&&o[T.text.charAt(S)]||b.test(T.text.charAt(S+1))&&o[T.text.charAt(++S)];if(!C)return null;var x=C.charAt(1)=='>'?1:-1;if(w&&w.strict&&x>0!=(S==y.ch))return null;var k=g.getTokenTypeAt(i(y.line,S+1)),P=c(g,i(y.line,S+(x>0?1:0)),x,k,w);return P==null?null:{from:i(y.line,S),to:P&&P.pos,match:P&&P.ch==C.charAt(0),forward:x>0}; + }Yu(l,'findMatchingBracket');function c(g,y,w,T,S){ + for(var A=S&&S.maxScanLineLength||1e4,b=S&&S.maxScanLines||1e3,C=[],x=s(S),k=w>0?Math.min(y.line+b,g.lastLine()+1):Math.max(g.firstLine()-1,y.line-b),P=y.line;P!=k;P+=w){ + var D=g.getLine(P);if(D){ + var N=w>0?0:D.length-1,I=w>0?D.length:-1;if(!(D.length>A))for(P==y.line&&(N=y.ch-(w<0?1:0));N!=I;N+=w){ + var V=D.charAt(N);if(x.test(V)&&(T===void 0||(g.getTokenTypeAt(i(P,N+1))||'')==(T||''))){ + var G=o[V];if(G&&G.charAt(1)=='>'==w>0)C.push(V);else if(C.length)C.pop();else return{pos:i(P,N),ch:V}; + } + } + } + }return P-w==(w>0?g.lastLine():g.firstLine())?!1:null; + }Yu(c,'scanForBracket');function f(g,y,w){ + for(var T=g.state.matchBrackets.maxHighlightLineLength||1e3,S=w&&w.highlightNonMatching,A=[],b=g.listSelections(),C=0;C{ + ir();Exe=Object.defineProperty,Yu=(e,t)=>Exe(e,'name',{value:t,configurable:!0}),Txe={exports:{}};Yu(Sy,'requireMatchbrackets'); +});var zZ={};Ui(zZ,{m:()=>Oxe});function BZ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var Cxe,Sxe,GZ,kxe,Oxe,HZ=at(()=>{ + ir();NM();Cxe=Object.defineProperty,Sxe=(e,t)=>Cxe(e,'name',{value:t,configurable:!0});Sxe(BZ,'_mergeNamespaces');GZ=Sy(),kxe=_t(GZ),Oxe=BZ({__proto__:null,default:kxe},[GZ]); +});var YZ={};Ui(YZ,{c:()=>Pxe});function QZ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var Nxe,oa,Dxe,WZ,Lxe,Pxe,KZ=at(()=>{ + ir();Nxe=Object.defineProperty,oa=(e,t)=>Nxe(e,'name',{value:t,configurable:!0});oa(QZ,'_mergeNamespaces');Dxe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + var n={pairs:'()[]{}\'\'""',closeBefore:')]}\'":;>',triples:'',explode:'[]{}'},i=r.Pos;r.defineOption('autoCloseBrackets',!1,function(A,b,C){ + C&&C!=r.Init&&(A.removeKeyMap(s),A.state.closeBrackets=null),b&&(l(o(b,'pairs')),A.state.closeBrackets=b,A.addKeyMap(s)); + });function o(A,b){ + return b=='pairs'&&typeof A=='string'?A:typeof A=='object'&&A[b]!=null?A[b]:n[b]; + }oa(o,'getOption');var s={Backspace:m,Enter:v};function l(A){ + for(var b=0;b=0;k--){ + var D=x[k].head;A.replaceRange('',i(D.line,D.ch-1),i(D.line,D.ch+1),'+delete'); + } + }oa(m,'handleBackspace');function v(A){ + var b=f(A),C=b&&o(b,'explode');if(!C||A.getOption('disableInput'))return r.Pass;for(var x=A.listSelections(),k=0;k0?{line:D.head.line,ch:D.head.ch+b}:{line:D.head.line-1};C.push({anchor:N,head:N}); + }A.setSelections(C,k); + }oa(g,'moveSel');function y(A){ + var b=r.cmpPos(A.anchor,A.head)>0;return{anchor:new i(A.anchor.line,A.anchor.ch+(b?-1:1)),head:new i(A.head.line,A.head.ch+(b?1:-1))}; + }oa(y,'contractSelection');function w(A,b){ + var C=f(A);if(!C||A.getOption('disableInput'))return r.Pass;var x=o(C,'pairs'),k=x.indexOf(b);if(k==-1)return r.Pass;for(var P=o(C,'closeBefore'),D=o(C,'triples'),N=x.charAt(k+1)==b,I=A.listSelections(),V=k%2==0,G,B=0;B=0&&A.getRange(z,i(z.line,z.ch+3))==b+b+b?j='skipThree':j='skip';else if(N&&z.ch>1&&D.indexOf(b)>=0&&A.getRange(i(z.line,z.ch-2),z)==b+b){ + if(z.ch>2&&/\bstring/.test(A.getTokenTypeAt(i(z.line,z.ch-2))))return r.Pass;j='addFour'; + }else if(N){ + var K=z.ch==0?' ':A.getRange(i(z.line,z.ch-1),z);if(!r.isWordChar(J)&&K!=b&&!r.isWordChar(K))j='both';else return r.Pass; + }else if(V&&(J.length===0||/\s/.test(J)||P.indexOf(J)>-1))j='both';else return r.Pass;if(!G)G=j;else if(G!=j)return r.Pass; + }var ee=k%2?x.charAt(k-1):b,re=k%2?b:x.charAt(k+1);A.operation(function(){ + if(G=='skip')g(A,1);else if(G=='skipThree')g(A,3);else if(G=='surround'){ + for(var se=A.getSelections(),xe=0;xeFxe});function XZ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var Rxe,Xm,Mxe,ZZ,Ixe,Fxe,LM=at(()=>{ + ir();Rxe=Object.defineProperty,Xm=(e,t)=>Rxe(e,'name',{value:t,configurable:!0});Xm(XZ,'_mergeNamespaces');Mxe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + function n(i){ + return function(o,s){ + var l=s.line,c=o.getLine(l);function f(T){ + for(var S,A=s.ch,b=0;;){ + var C=A<=0?-1:c.lastIndexOf(T[0],A-1);if(C==-1){ + if(b==1)break;b=1,A=c.length;continue; + }if(b==1&&Ci.lastLine())return null;var y=i.getTokenAt(r.Pos(g,1));if(/\S/.test(y.string)||(y=i.getTokenAt(r.Pos(g,y.end+1))),y.type!='keyword'||y.string!='import')return null;for(var w=g,T=Math.min(i.lastLine(),g+10);w<=T;++w){ + var S=i.getLine(w),A=S.indexOf(';');if(A!=-1)return{startCh:y.end,end:r.Pos(w,A)}; + } + }Xm(s,'hasImport');var l=o.line,c=s(l),f;if(!c||s(l-1)||(f=s(l-2))&&f.end.line==l-1)return null;for(var m=c.end;;){ + var v=s(m.line+1);if(v==null)break;m=v.end; + }return{from:i.clipPos(r.Pos(l,c.startCh+1)),to:m}; + }),r.registerHelper('fold','include',function(i,o){ + function s(v){ + if(vi.lastLine())return null;var g=i.getTokenAt(r.Pos(v,1));if(/\S/.test(g.string)||(g=i.getTokenAt(r.Pos(v,g.end+1))),g.type=='meta'&&g.string.slice(0,8)=='#include')return g.start+8; + }Xm(s,'hasInclude');var l=o.line,c=s(l);if(c==null||s(l-1)!=null)return null;for(var f=l;;){ + var m=s(f+1);if(m==null)break;++f; + }return{from:r.Pos(l,c+1),to:i.clipPos(r.Pos(f))}; + }); + }); + })();ZZ=Mxe.exports,Ixe=_t(ZZ),Fxe=XZ({__proto__:null,default:Ixe},[ZZ]); +});var PM={};Ui(PM,{f:()=>Bxe});function _Z(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}function $Z(){ + return JZ||(JZ=1,function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + function n(l,c,f,m){ + if(f&&f.call){ + var v=f;f=null; + }else var v=s(l,f,'rangeFinder');typeof c=='number'&&(c=r.Pos(c,0));var g=s(l,f,'minFoldSize');function y(A){ + var b=v(l,c);if(!b||b.to.line-b.from.linel.firstLine();)c=r.Pos(c.line-1,0),w=y(!1);if(!(!w||w.cleared||m==='unfold')){ + var T=i(l,f,w);r.on(T,'mousedown',function(A){ + S.clear(),r.e_preventDefault(A); + });var S=l.markText(w.from,w.to,{replacedWith:T,clearOnEnter:s(l,f,'clearOnEnter'),__isFold:!0});S.on('clear',function(A,b){ + r.signal(l,'unfold',l,A,b); + }),r.signal(l,'fold',l,w.from,w.to); + } + }$n(n,'doFold');function i(l,c,f){ + var m=s(l,c,'widget');if(typeof m=='function'&&(m=m(f.from,f.to)),typeof m=='string'){ + var v=document.createTextNode(m);m=document.createElement('span'),m.appendChild(v),m.className='CodeMirror-foldmarker'; + }else m&&(m=m.cloneNode(!0));return m; + }$n(i,'makeWidget'),r.newFoldFunction=function(l,c){ + return function(f,m){ + n(f,m,{rangeFinder:l,widget:c}); + }; + },r.defineExtension('foldCode',function(l,c,f){ + n(this,l,c,f); + }),r.defineExtension('isFolded',function(l){ + for(var c=this.findMarksAt(l),f=0;f{ + ir();qxe=Object.defineProperty,$n=(e,t)=>qxe(e,'name',{value:t,configurable:!0});$n(_Z,'_mergeNamespaces');jxe={exports:{}},Vxe={exports:{}};$n($Z,'requireFoldcode');(function(e,t){ + (function(r){ + r(Kt(),$Z()); + })(function(r){ + r.defineOption('foldGutter',!1,function(T,S,A){ + A&&A!=r.Init&&(T.clearGutter(T.state.foldGutter.options.gutter),T.state.foldGutter=null,T.off('gutterClick',v),T.off('changes',g),T.off('viewportChange',y),T.off('fold',w),T.off('unfold',w),T.off('swapDoc',g)),S&&(T.state.foldGutter=new i(o(S)),m(T),T.on('gutterClick',v),T.on('changes',g),T.on('viewportChange',y),T.on('fold',w),T.on('unfold',w),T.on('swapDoc',g)); + });var n=r.Pos;function i(T){ + this.options=T,this.from=this.to=0; + }$n(i,'State');function o(T){ + return T===!0&&(T={}),T.gutter==null&&(T.gutter='CodeMirror-foldgutter'),T.indicatorOpen==null&&(T.indicatorOpen='CodeMirror-foldgutter-open'),T.indicatorFolded==null&&(T.indicatorFolded='CodeMirror-foldgutter-folded'),T; + }$n(o,'parseOptions');function s(T,S){ + for(var A=T.findMarks(n(S,0),n(S+1,0)),b=0;b=x){ + if(D&&V&&D.test(V.className))return;I=l(b.indicatorOpen); + } + }!I&&!V||T.setGutterMarker(N,b.gutter,I); + }); + }$n(c,'updateFoldInfo');function f(T){ + return new RegExp('(^|\\s)'+T+'(?:$|\\s)\\s*'); + }$n(f,'classTest');function m(T){ + var S=T.getViewport(),A=T.state.foldGutter;A&&(T.operation(function(){ + c(T,S.from,S.to); + }),A.from=S.from,A.to=S.to); + }$n(m,'updateInViewport');function v(T,S,A){ + var b=T.state.foldGutter;if(b){ + var C=b.options;if(A==C.gutter){ + var x=s(T,S);x?x.clear():T.foldCode(n(S,0),C); + } + } + }$n(v,'onGutterClick');function g(T){ + var S=T.state.foldGutter;if(S){ + var A=S.options;S.from=S.to=0,clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){ + m(T); + },A.foldOnChangeTimeSpan||600); + } + }$n(g,'onChange');function y(T){ + var S=T.state.foldGutter;if(S){ + var A=S.options;clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){ + var b=T.getViewport();S.from==S.to||b.from-S.to>20||S.from-b.to>20?m(T):T.operation(function(){ + b.fromS.to&&(c(T,S.to,b.to),S.to=b.to); + }); + },A.updateViewportTimeSpan||400); + } + }$n(y,'onViewportChange');function w(T,S){ + var A=T.state.foldGutter;if(A){ + var b=S.line;b>=A.from&&bQxe});function tJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var Gxe,Jr,zxe,rJ,Hxe,Qxe,iJ=at(()=>{ + ir();Gxe=Object.defineProperty,Jr=(e,t)=>Gxe(e,'name',{value:t,configurable:!0});Jr(tJ,'_mergeNamespaces');zxe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + var n='CodeMirror-lint-markers',i='CodeMirror-lint-line-';function o(D,N,I){ + var V=document.createElement('div');V.className='CodeMirror-lint-tooltip cm-s-'+D.options.theme,V.appendChild(I.cloneNode(!0)),D.state.lint.options.selfContain?D.getWrapperElement().appendChild(V):document.body.appendChild(V);function G(B){ + if(!V.parentNode)return r.off(document,'mousemove',G);V.style.top=Math.max(0,B.clientY-V.offsetHeight-5)+'px',V.style.left=B.clientX+5+'px'; + }return Jr(G,'position'),r.on(document,'mousemove',G),G(N),V.style.opacity!=null&&(V.style.opacity=1),V; + }Jr(o,'showTooltip');function s(D){ + D.parentNode&&D.parentNode.removeChild(D); + }Jr(s,'rm');function l(D){ + D.parentNode&&(D.style.opacity==null&&s(D),D.style.opacity=0,setTimeout(function(){ + s(D); + },600)); + }Jr(l,'hideTooltip');function c(D,N,I,V){ + var G=o(D,N,I);function B(){ + r.off(V,'mouseout',B),G&&(l(G),G=null); + }Jr(B,'hide');var U=setInterval(function(){ + if(G)for(var z=V;;z=z.parentNode){ + if(z&&z.nodeType==11&&(z=z.host),z==document.body)return;if(!z){ + B();break; + } + }if(!G)return clearInterval(U); + },400);r.on(V,'mouseout',B); + }Jr(c,'showTooltipFor');function f(D,N,I){ + this.marked=[],N instanceof Function&&(N={getAnnotations:N}),(!N||N===!0)&&(N={}),this.options={},this.linterOptions=N.options||{};for(var V in m)this.options[V]=m[V];for(var V in N)m.hasOwnProperty(V)?N[V]!=null&&(this.options[V]=N[V]):N.options||(this.linterOptions[V]=N[V]);this.timeout=null,this.hasGutter=I,this.onMouseOver=function(G){ + P(D,G); + },this.waitingFor=0; + }Jr(f,'LintState');var m={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function v(D){ + var N=D.state.lint;N.hasGutter&&D.clearGutter(n),N.options.highlightLines&&g(D);for(var I=0;I-1?!1:z.push(se.message); + });for(var j=null,J=I.hasGutter&&document.createDocumentFragment(),K=0;K1,V.tooltips)),V.highlightLines&&D.addLineClass(B,'wrap',i+j); + } + }V.onUpdateLinting&&V.onUpdateLinting(N,G,D); + } + }Jr(C,'updateLinting');function x(D){ + var N=D.state.lint;N&&(clearTimeout(N.timeout),N.timeout=setTimeout(function(){ + b(D); + },N.options.delay)); + }Jr(x,'onChange');function k(D,N,I){ + for(var V=I.target||I.srcElement,G=document.createDocumentFragment(),B=0;BN);I++){ + var V=b.getLine(D++);k=k==null?V:k+` +`+V; + }P=P*2,C.lastIndex=x.ch;var G=C.exec(k);if(G){ + var B=k.slice(0,G.index).split(` +`),U=G[0].split(` +`),z=x.line+B.length-1,j=B[B.length-1].length;return{from:n(z,j),to:n(z+U.length-1,U.length==1?j+U[0].length:U[U.length-1].length),match:G}; + } + } + }ei(c,'searchRegexpForwardMultiline');function f(b,C,x){ + for(var k,P=0;P<=b.length;){ + C.lastIndex=P;var D=C.exec(b);if(!D)break;var N=D.index+D[0].length;if(N>b.length-x)break;(!k||N>k.index+k[0].length)&&(k=D),P=D.index+1; + }return k; + }ei(f,'lastMatchIn');function m(b,C,x){ + C=o(C,'g');for(var k=x.line,P=x.ch,D=b.firstLine();k>=D;k--,P=-1){ + var N=b.getLine(k),I=f(N,C,P<0?0:N.length-P);if(I)return{from:n(k,I.index),to:n(k,I.index+I[0].length),match:I}; + } + }ei(m,'searchRegexpBackward');function v(b,C,x){ + if(!s(C))return m(b,C,x);C=o(C,'gm');for(var k,P=1,D=b.getLine(x.line).length-x.ch,N=x.line,I=b.firstLine();N>=I;){ + for(var V=0;V=I;V++){ + var G=b.getLine(N--);k=k==null?G:G+` +`+k; + }P*=2;var B=f(k,C,D);if(B){ + var U=k.slice(0,B.index).split(` `),z=B[0].split(` -`),j=N+U.length,J=U[U.length-1].length;return{from:n(j,J),to:n(j+z.length-1,z.length==1?J+z[0].length:z[z.length-1].length),match:B}}}}ei(v,"searchRegexpBackwardMultiline");var g,y;String.prototype.normalize?(g=ei(function(b){return b.normalize("NFD").toLowerCase()},"doFold"),y=ei(function(b){return b.normalize("NFD")},"noFold")):(g=ei(function(b){return b.toLowerCase()},"doFold"),y=ei(function(b){return b},"noFold"));function w(b,C,x,k){if(b.length==C.length)return x;for(var P=0,D=x+Math.max(0,b.length-C.length);;){if(P==D)return P;var N=P+D>>1,I=k(b.slice(0,N)).length;if(I==x)return N;I>x?D=N:P=N+1}}ei(w,"adjustPos");function T(b,C,x,k){if(!C.length)return null;var P=k?g:y,D=P(C).split(/\r|\n\r?/);e:for(var N=x.line,I=x.ch,V=b.lastLine()+1-D.length;N<=V;N++,I=0){var G=b.getLine(N).slice(I),B=P(G);if(D.length==1){var U=B.indexOf(D[0]);if(U==-1)continue e;var x=w(G,B,U,P)+I;return{from:n(N,w(G,B,U,P)+I),to:n(N,w(G,B,U+D[0].length,P)+I)}}else{var z=B.length-D[0].length;if(B.slice(z)!=D[0])continue e;for(var j=1;j=V;N--,I=-1){var G=b.getLine(N);I>-1&&(G=G.slice(0,I));var B=P(G);if(D.length==1){var U=B.lastIndexOf(D[0]);if(U==-1)continue e;return{from:n(N,w(G,B,U,P)),to:n(N,w(G,B,U+D[0].length,P))}}else{var z=D[D.length-1];if(B.slice(0,z.length)!=z)continue e;for(var j=1,x=N-D.length+1;j(this.doc.getLine(C.line)||"").length&&(C.ch=0,C.line++)),r.cmpPos(C,this.doc.clipPos(C))!=0))return this.atOccurrence=!1;var x=this.matches(b,C);if(this.afterEmptyMatch=x&&r.cmpPos(x.from,x.to)==0,x)return this.pos=x,this.atOccurrence=!0,this.pos.match||!0;var k=n(b?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:k,to:k},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(b,C){if(this.atOccurrence){var x=r.splitLines(b);this.doc.replaceRange(x,this.pos.from,this.pos.to,C),this.pos.to=n(this.pos.from.line+x.length-1,x[x.length-1].length+(x.length==1?this.pos.from.ch:0))}}},r.defineExtension("getSearchCursor",function(b,C,x){return new A(this.doc,b,C,x)}),r.defineDocExtension("getSearchCursor",function(b,C,x){return new A(this,b,C,x)}),r.defineExtension("selectMatches",function(b,C){for(var x=[],k=this.getSearchCursor(b,this.getCursor("from"),C);k.findNext()&&!(r.cmpPos(k.to(),this.getCursor("to"))>0);)x.push({anchor:k.from(),head:k.to()});x.length&&this.setSelections(x,0)})})}()),Yxe.exports}var Wxe,ei,Yxe,oJ,kE=at(()=>{ir();Wxe=Object.defineProperty,ei=(e,t)=>Wxe(e,"name",{value:t,configurable:!0}),Yxe={exports:{}};ei(Qf,"requireSearchcursor")});var MM={};Ui(MM,{s:()=>Jxe});function aJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Kxe,Xxe,sJ,Zxe,Jxe,IM=at(()=>{ir();kE();Kxe=Object.defineProperty,Xxe=(e,t)=>Kxe(e,"name",{value:t,configurable:!0});Xxe(aJ,"_mergeNamespaces");sJ=Qf(),Zxe=_t(sJ),Jxe=aJ({__proto__:null,default:Zxe},[sJ])});var FM={};Ui(FM,{a:()=>Wf,d:()=>twe});function lJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var _xe,Zm,$xe,Wf,ewe,twe,ky=at(()=>{ir();_xe=Object.defineProperty,Zm=(e,t)=>_xe(e,"name",{value:t,configurable:!0});Zm(lJ,"_mergeNamespaces");$xe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){function n(o,s,l){var c=o.getWrapperElement(),f;return f=c.appendChild(document.createElement("div")),l?f.className="CodeMirror-dialog CodeMirror-dialog-bottom":f.className="CodeMirror-dialog CodeMirror-dialog-top",typeof s=="string"?f.innerHTML=s:f.appendChild(s),r.addClass(c,"dialog-opened"),f}Zm(n,"dialogDiv");function i(o,s){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=s}Zm(i,"closeNotification"),r.defineExtension("openDialog",function(o,s,l){l||(l={}),i(this,null);var c=n(this,o,l.bottom),f=!1,m=this;function v(w){if(typeof w=="string")g.value=w;else{if(f)return;f=!0,r.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),m.focus(),l.onClose&&l.onClose(c)}}Zm(v,"close");var g=c.getElementsByTagName("input")[0],y;return g?(g.focus(),l.value&&(g.value=l.value,l.selectValueOnOpen!==!1&&g.select()),l.onInput&&r.on(g,"input",function(w){l.onInput(w,g.value,v)}),l.onKeyUp&&r.on(g,"keyup",function(w){l.onKeyUp(w,g.value,v)}),r.on(g,"keydown",function(w){l&&l.onKeyDown&&l.onKeyDown(w,g.value,v)||((w.keyCode==27||l.closeOnEnter!==!1&&w.keyCode==13)&&(g.blur(),r.e_stop(w),v()),w.keyCode==13&&s(g.value,w))}),l.closeOnBlur!==!1&&r.on(c,"focusout",function(w){w.relatedTarget!==null&&v()})):(y=c.getElementsByTagName("button")[0])&&(r.on(y,"click",function(){v(),m.focus()}),l.closeOnBlur!==!1&&r.on(y,"blur",v),y.focus()),v}),r.defineExtension("openConfirm",function(o,s,l){i(this,null);var c=n(this,o,l&&l.bottom),f=c.getElementsByTagName("button"),m=!1,v=this,g=1;function y(){m||(m=!0,r.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c),v.focus())}Zm(y,"close"),f[0].focus();for(var w=0;wowe});function uJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var rwe,OE,nwe,cJ,iwe,owe,jM=at(()=>{ir();ky();rwe=Object.defineProperty,OE=(e,t)=>rwe(e,"name",{value:t,configurable:!0});OE(uJ,"_mergeNamespaces");nwe={exports:{}};(function(e,t){(function(r){r(Kt(),Wf)})(function(r){r.defineOption("search",{bottom:!1});function n(s,l,c,f,m){s.openDialog?s.openDialog(l,m,{value:f,selectValueOnOpen:!0,bottom:s.options.search.bottom}):m(prompt(c,f))}OE(n,"dialog");function i(s){return s.phrase("Jump to line:")+' '+s.phrase("(Use line:column or scroll% syntax)")+""}OE(i,"getJumpDialog");function o(s,l){var c=Number(l);return/^[-+]/.test(l)?s.getCursor().line+c:c-1}OE(o,"interpretLine"),r.commands.jumpToLine=function(s){var l=s.getCursor();n(s,i(s),s.phrase("Jump to line:"),l.line+1+":"+l.ch,function(c){if(c){var f;if(f=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(c))s.setCursor(o(s,f[1]),Number(f[2]));else if(f=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(c)){var m=Math.round(s.lineCount()*Number(f[1])/100);/^[-+]/.test(f[1])&&(m=l.line+m+1),s.setCursor(m-1,l.ch)}else(f=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(c))&&s.setCursor(o(s,f[1]),l.ch)}})},r.keyMap.default["Alt-G"]="jumpToLine"})})();cJ=nwe.exports,iwe=_t(cJ),owe=uJ({__proto__:null,default:iwe},[cJ])});var VM={};Ui(VM,{s:()=>uwe});function fJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var awe,Eo,swe,dJ,lwe,uwe,UM=at(()=>{ir();kE();NM();awe=Object.defineProperty,Eo=(e,t)=>awe(e,"name",{value:t,configurable:!0});Eo(fJ,"_mergeNamespaces");swe={exports:{}};(function(e,t){(function(r){r(Kt(),Qf(),Sy())})(function(r){var n=r.commands,i=r.Pos;function o(x,k,P){if(P<0&&k.ch==0)return x.clipPos(i(k.line-1));var D=x.getLine(k.line);if(P>0&&k.ch>=D.length)return x.clipPos(i(k.line+1,0));for(var N="start",I,V=k.ch,G=V,B=P<0?0:D.length,U=0;G!=B;G+=P,U++){var z=D.charAt(P<0?G-1:G),j=z!="_"&&r.isWordChar(z)?"w":"o";if(j=="w"&&z.toUpperCase()==z&&(j="W"),N=="start")j!="o"?(N="in",I=j):V=G+P;else if(N=="in"&&I!=j){if(I=="w"&&j=="W"&&P<0&&G--,I=="W"&&j=="w"&&P>0)if(G==V+1){I="w";continue}else G--;break}}return i(k.line,G)}Eo(o,"findPosSubword");function s(x,k){x.extendSelectionsBy(function(P){return x.display.shift||x.doc.extend||P.empty()?o(x.doc,P.head,k):k<0?P.from():P.to()})}Eo(s,"moveSubword"),n.goSubwordLeft=function(x){s(x,-1)},n.goSubwordRight=function(x){s(x,1)},n.scrollLineUp=function(x){var k=x.getScrollInfo();if(!x.somethingSelected()){var P=x.lineAtHeight(k.top+k.clientHeight,"local");x.getCursor().line>=P&&x.execCommand("goLineUp")}x.scrollTo(null,k.top-x.defaultTextHeight())},n.scrollLineDown=function(x){var k=x.getScrollInfo();if(!x.somethingSelected()){var P=x.lineAtHeight(k.top,"local")+1;x.getCursor().line<=P&&x.execCommand("goLineDown")}x.scrollTo(null,k.top+x.defaultTextHeight())},n.splitSelectionByLine=function(x){for(var k=x.listSelections(),P=[],D=0;DN.line&&V==I.line&&I.ch==0||P.push({anchor:V==N.line?N:i(V,0),head:V==I.line?I:i(V)});x.setSelections(P,0)},n.singleSelectionTop=function(x){var k=x.listSelections()[0];x.setSelection(k.anchor,k.head,{scroll:!1})},n.selectLine=function(x){for(var k=x.listSelections(),P=[],D=0;DD?P.push(G,B):P.length&&(P[P.length-1]=B),D=B}x.operation(function(){for(var U=0;Ux.lastLine()?x.replaceRange(` -`+J,i(x.lastLine()),null,"+swapLine"):x.replaceRange(J+` -`,i(j,0),null,"+swapLine")}x.setSelections(N),x.scrollIntoView()})},n.swapLineDown=function(x){if(x.isReadOnly())return r.Pass;for(var k=x.listSelections(),P=[],D=x.lastLine()+1,N=k.length-1;N>=0;N--){var I=k[N],V=I.to().line+1,G=I.from().line;I.to().ch==0&&!I.empty()&&V--,V=0;B-=2){var U=P[B],z=P[B+1],j=x.getLine(U);U==x.lastLine()?x.replaceRange("",i(U-1),i(U),"+swapLine"):x.replaceRange("",i(U,0),i(U+1,0),"+swapLine"),x.replaceRange(j+` -`,i(z,0),null,"+swapLine")}x.scrollIntoView()})},n.toggleCommentIndented=function(x){x.toggleComment({indent:!0})},n.joinLines=function(x){for(var k=x.listSelections(),P=[],D=0;D=0;I--){var V=P[D[I]];if(!(G&&r.cmpPos(V.head,G)>0)){var B=c(x,V.head);G=B.from,x.replaceRange(k(B.word),B.from,B.to)}}})}Eo(T,"modifyWordOrSelection"),n.smartBackspace=function(x){if(x.somethingSelected())return r.Pass;x.operation(function(){for(var k=x.listSelections(),P=x.getOption("indentUnit"),D=k.length-1;D>=0;D--){var N=k[D].head,I=x.getRange({line:N.line,ch:0},N),V=r.countColumn(I,null,x.getOption("tabSize")),G=x.findPosH(N,-1,"char",!1);if(I&&!/\S/.test(I)&&V%P==0){var B=new i(N.line,r.findColumn(I,V-P,P));B.ch!=N.ch&&(G=B)}x.replaceRange("",G,N,"+delete")}})},n.delLineRight=function(x){x.operation(function(){for(var k=x.listSelections(),P=k.length-1;P>=0;P--)x.replaceRange("",k[P].anchor,i(k[P].to().line),"+delete");x.scrollIntoView()})},n.upcaseAtCursor=function(x){T(x,function(k){return k.toUpperCase()})},n.downcaseAtCursor=function(x){T(x,function(k){return k.toLowerCase()})},n.setSublimeMark=function(x){x.state.sublimeMark&&x.state.sublimeMark.clear(),x.state.sublimeMark=x.setBookmark(x.getCursor())},n.selectToSublimeMark=function(x){var k=x.state.sublimeMark&&x.state.sublimeMark.find();k&&x.setSelection(x.getCursor(),k)},n.deleteToSublimeMark=function(x){var k=x.state.sublimeMark&&x.state.sublimeMark.find();if(k){var P=x.getCursor(),D=k;if(r.cmpPos(P,D)>0){var N=D;D=P,P=N}x.state.sublimeKilled=x.getRange(P,D),x.replaceRange("",P,D)}},n.swapWithSublimeMark=function(x){var k=x.state.sublimeMark&&x.state.sublimeMark.find();k&&(x.state.sublimeMark.clear(),x.state.sublimeMark=x.setBookmark(x.getCursor()),x.setCursor(k))},n.sublimeYank=function(x){x.state.sublimeKilled!=null&&x.replaceSelection(x.state.sublimeKilled,null,"paste")},n.showInCenter=function(x){var k=x.cursorCoords(null,"local");x.scrollTo(null,(k.top+k.bottom)/2-x.getScrollInfo().clientHeight/2)};function S(x){var k=x.getCursor("from"),P=x.getCursor("to");if(r.cmpPos(k,P)==0){var D=c(x,k);if(!D.word)return;k=D.from,P=D.to}return{from:k,to:P,query:x.getRange(k,P),word:D}}Eo(S,"getTarget");function A(x,k){var P=S(x);if(P){var D=P.query,N=x.getSearchCursor(D,k?P.to:P.from);(k?N.findNext():N.findPrevious())?x.setSelection(N.from(),N.to()):(N=x.getSearchCursor(D,k?i(x.firstLine(),0):x.clipPos(i(x.lastLine()))),(k?N.findNext():N.findPrevious())?x.setSelection(N.from(),N.to()):P.word&&x.setSelection(P.from,P.to))}}Eo(A,"findAndGoTo"),n.findUnder=function(x){A(x,!0)},n.findUnderPrevious=function(x){A(x,!1)},n.findAllUnder=function(x){var k=S(x);if(k){for(var P=x.getSearchCursor(k.query),D=[],N=-1;P.findNext();)D.push({anchor:P.from(),head:P.to()}),P.from().line<=k.from.line&&P.from().ch<=k.from.ch&&N++;x.setSelections(D,N)}};var b=r.keyMap;b.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},r.normalizeKeyMap(b.macSublime),b.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},r.normalizeKeyMap(b.pcSublime);var C=b.default==b.macDefault;b.sublime=C?b.macSublime:b.pcSublime})})();dJ=swe.exports,lwe=_t(dJ),uwe=fJ({__proto__:null,default:lwe},[dJ])});var hJ={};Ui(hJ,{j:()=>pwe});function pJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var cwe,Ce,fwe,mJ,dwe,pwe,vJ=at(()=>{ir();cwe=Object.defineProperty,Ce=(e,t)=>cwe(e,"name",{value:t,configurable:!0});Ce(pJ,"_mergeNamespaces");fwe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){r.defineMode("javascript",function(n,i){var o=n.indentUnit,s=i.statementIndent,l=i.jsonld,c=i.json||l,f=i.trackScope!==!1,m=i.typescript,v=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function q(Sn){return{type:Sn,style:"keyword"}}Ce(q,"kw");var W=q("keyword a"),ce=q("keyword b"),we=q("keyword c"),ct=q("keyword d"),kt=q("operator"),Ve={type:"atom",style:"atom"};return{if:q("if"),while:W,with:W,else:ce,do:ce,try:ce,finally:ce,return:ct,break:ct,continue:ct,new:q("new"),delete:we,void:we,throw:we,debugger:q("debugger"),var:q("var"),const:q("var"),let:q("var"),function:q("function"),catch:q("catch"),for:q("for"),switch:q("switch"),case:q("case"),default:q("default"),in:kt,typeof:kt,instanceof:kt,true:Ve,false:Ve,null:Ve,undefined:Ve,NaN:Ve,Infinity:Ve,this:q("this"),class:q("class"),super:q("atom"),yield:we,export:q("export"),import:q("import"),extends:we,await:we}}(),y=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(q){for(var W=!1,ce,we=!1;(ce=q.next())!=null;){if(!W){if(ce=="/"&&!we)return;ce=="["?we=!0:we&&ce=="]"&&(we=!1)}W=!W&&ce=="\\"}}Ce(T,"readRegexp");var S,A;function b(q,W,ce){return S=q,A=ce,W}Ce(b,"ret");function C(q,W){var ce=q.next();if(ce=='"'||ce=="'")return W.tokenize=x(ce),W.tokenize(q,W);if(ce=="."&&q.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(ce=="."&&q.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ce))return b(ce);if(ce=="="&&q.eat(">"))return b("=>","operator");if(ce=="0"&&q.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(ce))return q.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(ce=="/")return q.eat("*")?(W.tokenize=k,k(q,W)):q.eat("/")?(q.skipToEnd(),b("comment","comment")):Ae(q,W,1)?(T(q),q.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(q.eat("="),b("operator","operator",q.current()));if(ce=="`")return W.tokenize=P,P(q,W);if(ce=="#"&&q.peek()=="!")return q.skipToEnd(),b("meta","meta");if(ce=="#"&&q.eatWhile(v))return b("variable","property");if(ce=="<"&&q.match("!--")||ce=="-"&&q.match("->")&&!/\S/.test(q.string.slice(0,q.start)))return q.skipToEnd(),b("comment","comment");if(y.test(ce))return(ce!=">"||!W.lexical||W.lexical.type!=">")&&(q.eat("=")?(ce=="!"||ce=="=")&&q.eat("="):/[<>*+\-|&?]/.test(ce)&&(q.eat(ce),ce==">"&&q.eat(ce))),ce=="?"&&q.eat(".")?b("."):b("operator","operator",q.current());if(v.test(ce)){q.eatWhile(v);var we=q.current();if(W.lastType!="."){if(g.propertyIsEnumerable(we)){var ct=g[we];return b(ct.type,ct.style,we)}if(we=="async"&&q.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",we)}return b("variable","variable",we)}}Ce(C,"tokenBase");function x(q){return function(W,ce){var we=!1,ct;if(l&&W.peek()=="@"&&W.match(w))return ce.tokenize=C,b("jsonld-keyword","meta");for(;(ct=W.next())!=null&&!(ct==q&&!we);)we=!we&&ct=="\\";return we||(ce.tokenize=C),b("string","string")}}Ce(x,"tokenString");function k(q,W){for(var ce=!1,we;we=q.next();){if(we=="/"&&ce){W.tokenize=C;break}ce=we=="*"}return b("comment","comment")}Ce(k,"tokenComment");function P(q,W){for(var ce=!1,we;(we=q.next())!=null;){if(!ce&&(we=="`"||we=="$"&&q.eat("{"))){W.tokenize=C;break}ce=!ce&&we=="\\"}return b("quasi","string-2",q.current())}Ce(P,"tokenQuasi");var D="([{}])";function N(q,W){W.fatArrowAt&&(W.fatArrowAt=null);var ce=q.string.indexOf("=>",q.start);if(!(ce<0)){if(m){var we=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(q.string.slice(q.start,ce));we&&(ce=we.index)}for(var ct=0,kt=!1,Ve=ce-1;Ve>=0;--Ve){var Sn=q.string.charAt(Ve),Vi=D.indexOf(Sn);if(Vi>=0&&Vi<3){if(!ct){++Ve;break}if(--ct==0){Sn=="("&&(kt=!0);break}}else if(Vi>=3&&Vi<6)++ct;else if(v.test(Sn))kt=!0;else if(/["'\/`]/.test(Sn))for(;;--Ve){if(Ve==0)return;var ld=q.string.charAt(Ve-1);if(ld==Sn&&q.string.charAt(Ve-2)!="\\"){Ve--;break}}else if(kt&&!ct){++Ve;break}}kt&&!ct&&(W.fatArrowAt=Ve)}}Ce(N,"findFatArrow");var I={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(q,W,ce,we,ct,kt){this.indented=q,this.column=W,this.type=ce,this.prev=ct,this.info=kt,we!=null&&(this.align=we)}Ce(V,"JSLexical");function G(q,W){if(!f)return!1;for(var ce=q.localVars;ce;ce=ce.next)if(ce.name==W)return!0;for(var we=q.context;we;we=we.prev)for(var ce=we.vars;ce;ce=ce.next)if(ce.name==W)return!0}Ce(G,"inScope");function B(q,W,ce,we,ct){var kt=q.cc;for(U.state=q,U.stream=ct,U.marked=null,U.cc=kt,U.style=W,q.lexical.hasOwnProperty("align")||(q.lexical.align=!0);;){var Ve=kt.length?kt.pop():c?Ue:He;if(Ve(ce,we)){for(;kt.length&&kt[kt.length-1].lex;)kt.pop()();return U.marked?U.marked:ce=="variable"&&G(q,we)?"variable-2":W}}}Ce(B,"parseJS");var U={state:null,column:null,marked:null,cc:null};function z(){for(var q=arguments.length-1;q>=0;q--)U.cc.push(arguments[q])}Ce(z,"pass");function j(){return z.apply(null,arguments),!0}Ce(j,"cont");function J(q,W){for(var ce=W;ce;ce=ce.next)if(ce.name==q)return!0;return!1}Ce(J,"inList");function K(q){var W=U.state;if(U.marked="def",!!f){if(W.context){if(W.lexical.info=="var"&&W.context&&W.context.block){var ce=ee(q,W.context);if(ce!=null){W.context=ce;return}}else if(!J(q,W.localVars)){W.localVars=new xe(q,W.localVars);return}}i.globalVars&&!J(q,W.globalVars)&&(W.globalVars=new xe(q,W.globalVars))}}Ce(K,"register");function ee(q,W){if(W)if(W.block){var ce=ee(q,W.prev);return ce?ce==W.prev?W:new se(ce,W.vars,!0):null}else return J(q,W.vars)?W:new se(W.prev,new xe(q,W.vars),!1);else return null}Ce(ee,"registerVarScoped");function re(q){return q=="public"||q=="private"||q=="protected"||q=="abstract"||q=="readonly"}Ce(re,"isModifier");function se(q,W,ce){this.prev=q,this.vars=W,this.block=ce}Ce(se,"Context");function xe(q,W){this.name=q,this.next=W}Ce(xe,"Var");var Re=new xe("this",new xe("arguments",null));function Se(){U.state.context=new se(U.state.context,U.state.localVars,!1),U.state.localVars=Re}Ce(Se,"pushcontext");function ie(){U.state.context=new se(U.state.context,U.state.localVars,!0),U.state.localVars=null}Ce(ie,"pushblockcontext"),Se.lex=ie.lex=!0;function ye(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Ce(ye,"popcontext"),ye.lex=!0;function me(q,W){var ce=Ce(function(){var we=U.state,ct=we.indented;if(we.lexical.type=="stat")ct=we.lexical.indented;else for(var kt=we.lexical;kt&&kt.type==")"&&kt.align;kt=kt.prev)ct=kt.indented;we.lexical=new V(ct,U.stream.column(),q,null,we.lexical,W)},"result");return ce.lex=!0,ce}Ce(me,"pushlex");function Oe(){var q=U.state;q.lexical.prev&&(q.lexical.type==")"&&(q.indented=q.lexical.indented),q.lexical=q.lexical.prev)}Ce(Oe,"poplex"),Oe.lex=!0;function Ge(q){function W(ce){return ce==q?j():q==";"||ce=="}"||ce==")"||ce=="]"?z():j(W)}return Ce(W,"exp"),W}Ce(Ge,"expect");function He(q,W){return q=="var"?j(me("vardef",W),rd,Ge(";"),Oe):q=="keyword a"?j(me("form"),he,He,Oe):q=="keyword b"?j(me("form"),He,Oe):q=="keyword d"?U.stream.match(/^\s*$/,!1)?j():j(me("stat"),pe,Ge(";"),Oe):q=="debugger"?j(Ge(";")):q=="{"?j(me("}"),ie,ri,Oe,ye):q==";"?j():q=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==Oe&&U.state.cc.pop()(),j(me("form"),he,He,Oe,oh)):q=="function"?j(ro):q=="for"?j(me("form"),ie,ah,He,ye,Oe):q=="class"||m&&W=="interface"?(U.marked="keyword",j(me("form",q=="class"?q:W),Ul,Oe)):q=="variable"?m&&W=="declare"?(U.marked="keyword",j(He)):m&&(W=="module"||W=="enum"||W=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",W=="enum"?j(Lo):W=="type"?j(sd,Ge("operator"),ut,Ge(";")):j(me("form"),ni,Ge("{"),me("}"),ri,Oe,Oe)):m&&W=="namespace"?(U.marked="keyword",j(me("form"),Ue,He,Oe)):m&&W=="abstract"?(U.marked="keyword",j(He)):j(me("stat"),Vs):q=="switch"?j(me("form"),he,Ge("{"),me("}","switch"),ie,ri,Oe,Oe,ye):q=="case"?j(Ue,Ge(":")):q=="default"?j(Ge(":")):q=="catch"?j(me("form"),Se,dr,He,Oe,ye):q=="export"?j(me("stat"),oc,Oe):q=="import"?j(me("stat"),xr,Oe):q=="async"?j(He):W=="@"?j(Ue,He):z(me("stat"),Ue,Ge(";"),Oe)}Ce(He,"statement");function dr(q){if(q=="(")return j(ca,Ge(")"))}Ce(dr,"maybeCatchBinding");function Ue(q,W){return Fe(q,W,!1)}Ce(Ue,"expression");function bt(q,W){return Fe(q,W,!0)}Ce(bt,"expressionNoComma");function he(q){return q!="("?z():j(me(")"),pe,Ge(")"),Oe)}Ce(he,"parenExpr");function Fe(q,W,ce){if(U.state.fatArrowAt==U.stream.start){var we=ce?Or:wt;if(q=="(")return j(Se,me(")"),pr(ca,")"),Oe,Ge("=>"),we,ye);if(q=="variable")return z(Se,ni,Ge("=>"),we,ye)}var ct=ce?st:Me;return I.hasOwnProperty(q)?j(ct):q=="function"?j(ro,ct):q=="class"||m&&W=="interface"?(U.marked="keyword",j(me("form"),Vl,Oe)):q=="keyword c"||q=="async"?j(ce?bt:Ue):q=="("?j(me(")"),pe,Ge(")"),Oe,ct):q=="operator"||q=="spread"?j(ce?bt:Ue):q=="["?j(me("]"),Pt,Oe,ct):q=="{"?Il(xi,"}",null,ct):q=="quasi"?z(nt,ct):q=="new"?j(ua(ce)):j()}Ce(Fe,"expressionInner");function pe(q){return q.match(/[;\}\)\],]/)?z():z(Ue)}Ce(pe,"maybeexpression");function Me(q,W){return q==","?j(pe):st(q,W,!1)}Ce(Me,"maybeoperatorComma");function st(q,W,ce){var we=ce==!1?Me:st,ct=ce==!1?Ue:bt;if(q=="=>")return j(Se,ce?Or:wt,ye);if(q=="operator")return/\+\+|--/.test(W)||m&&W=="!"?j(we):m&&W=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?j(me(">"),pr(ut,">"),Oe,we):W=="?"?j(Ue,Ge(":"),ct):j(ct);if(q=="quasi")return z(nt,we);if(q!=";"){if(q=="(")return Il(bt,")","call",we);if(q==".")return j(Ml,we);if(q=="[")return j(me("]"),pe,Ge("]"),Oe,we);if(m&&W=="as")return U.marked="keyword",j(ut,we);if(q=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),j(ct)}}Ce(st,"maybeoperatorNoComma");function nt(q,W){return q!="quasi"?z():W.slice(W.length-2)!="${"?j(nt):j(pe,lt)}Ce(nt,"quasi");function lt(q){if(q=="}")return U.marked="string-2",U.state.tokenize=P,j(nt)}Ce(lt,"continueQuasi");function wt(q){return N(U.stream,U.state),z(q=="{"?He:Ue)}Ce(wt,"arrowBody");function Or(q){return N(U.stream,U.state),z(q=="{"?He:bt)}Ce(Or,"arrowBodyNoComma");function ua(q){return function(W){return W=="."?j(q?nc:Rl):W=="variable"&&m?j(Us,q?st:Me):z(q?bt:Ue)}}Ce(ua,"maybeTarget");function Rl(q,W){if(W=="target")return U.marked="keyword",j(Me)}Ce(Rl,"target");function nc(q,W){if(W=="target")return U.marked="keyword",j(st)}Ce(nc,"targetNoComma");function Vs(q){return q==":"?j(Oe,He):z(Me,Ge(";"),Oe)}Ce(Vs,"maybelabel");function Ml(q){if(q=="variable")return U.marked="property",j()}Ce(Ml,"property");function xi(q,W){if(q=="async")return U.marked="property",j(xi);if(q=="variable"||U.style=="keyword"){if(U.marked="property",W=="get"||W=="set")return j(ic);var ce;return m&&U.state.fatArrowAt==U.stream.start&&(ce=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ce[0].length),j(tn)}else{if(q=="number"||q=="string")return U.marked=l?"property":U.style+" property",j(tn);if(q=="jsonld-keyword")return j(tn);if(m&&re(W))return U.marked="keyword",j(xi);if(q=="[")return j(Ue,Ya,Ge("]"),tn);if(q=="spread")return j(bt,tn);if(W=="*")return U.marked="keyword",j(xi);if(q==":")return z(tn)}}Ce(xi,"objprop");function ic(q){return q!="variable"?z(tn):(U.marked="property",j(ro))}Ce(ic,"getterSetter");function tn(q){if(q==":")return j(bt);if(q=="(")return z(ro)}Ce(tn,"afterprop");function pr(q,W,ce){function we(ct,kt){if(ce?ce.indexOf(ct)>-1:ct==","){var Ve=U.state.lexical;return Ve.info=="call"&&(Ve.pos=(Ve.pos||0)+1),j(function(Sn,Vi){return Sn==W||Vi==W?z():z(q)},we)}return ct==W||kt==W?j():ce&&ce.indexOf(";")>-1?z(q):j(Ge(W))}return Ce(we,"proceed"),function(ct,kt){return ct==W||kt==W?j():z(q,we)}}Ce(pr,"commasep");function Il(q,W,ce){for(var we=3;we"),ut);if(q=="quasi")return z(ko,wi)}Ce(ut,"typeexpr");function Nr(q){if(q=="=>")return j(ut)}Ce(Nr,"maybeReturnType");function ql(q){return q.match(/[\}\)\]]/)?j():q==","||q==";"?j(ql):z(rn,ql)}Ce(ql,"typeprops");function rn(q,W){if(q=="variable"||U.style=="keyword")return U.marked="property",j(rn);if(W=="?"||q=="number"||q=="string")return j(rn);if(q==":")return j(ut);if(q=="[")return j(Ge("variable"),rt,Ge("]"),rn);if(q=="(")return z(qi,rn);if(!q.match(/[;\}\)\],]/))return j()}Ce(rn,"typeprop");function ko(q,W){return q!="quasi"?z():W.slice(W.length-2)!="${"?j(ko):j(ut,mn)}Ce(ko,"quasiType");function mn(q){if(q=="}")return U.marked="string-2",U.state.tokenize=P,j(ko)}Ce(mn,"continueQuasiType");function jl(q,W){return q=="variable"&&U.stream.match(/^\s*[?:]/,!1)||W=="?"?j(jl):q==":"?j(ut):q=="spread"?j(jl):z(ut)}Ce(jl,"typearg");function wi(q,W){if(W=="<")return j(me(">"),pr(ut,">"),Oe,wi);if(W=="|"||q=="."||W=="&")return j(ut);if(q=="[")return j(ut,Ge("]"),wi);if(W=="extends"||W=="implements")return U.marked="keyword",j(ut);if(W=="?")return j(ut,Ge(":"),ut)}Ce(wi,"afterType");function Us(q,W){if(W=="<")return j(me(">"),pr(ut,">"),Oe,wi)}Ce(Us,"maybeTypeArgs");function Ka(){return z(ut,td)}Ce(Ka,"typeparam");function td(q,W){if(W=="=")return j(ut)}Ce(td,"maybeTypeDefault");function rd(q,W){return W=="enum"?(U.marked="keyword",j(Lo)):z(ni,Ya,Oo,od)}Ce(rd,"vardef");function ni(q,W){if(m&&re(W))return U.marked="keyword",j(ni);if(q=="variable")return K(W),j();if(q=="spread")return j(ni);if(q=="[")return Il(id,"]");if(q=="{")return Il(nd,"}")}Ce(ni,"pattern");function nd(q,W){return q=="variable"&&!U.stream.match(/^\s*:/,!1)?(K(W),j(Oo)):(q=="variable"&&(U.marked="property"),q=="spread"?j(ni):q=="}"?z():q=="["?j(Ue,Ge("]"),Ge(":"),nd):j(Ge(":"),ni,Oo))}Ce(nd,"proppattern");function id(){return z(ni,Oo)}Ce(id,"eltpattern");function Oo(q,W){if(W=="=")return j(bt)}Ce(Oo,"maybeAssign");function od(q){if(q==",")return j(rd)}Ce(od,"vardefCont");function oh(q,W){if(q=="keyword b"&&W=="else")return j(me("form","else"),He,Oe)}Ce(oh,"maybeelse");function ah(q,W){if(W=="await")return j(ah);if(q=="(")return j(me(")"),ad,Oe)}Ce(ah,"forspec");function ad(q){return q=="var"?j(rd,Xa):q=="variable"?j(Xa):z(Xa)}Ce(ad,"forspec1");function Xa(q,W){return q==")"?j():q==";"?j(Xa):W=="in"||W=="of"?(U.marked="keyword",j(Ue,Xa)):z(Ue,Xa)}Ce(Xa,"forspec2");function ro(q,W){if(W=="*")return U.marked="keyword",j(ro);if(q=="variable")return K(W),j(ro);if(q=="(")return j(Se,me(")"),pr(ca,")"),Oe,Fl,He,ye);if(m&&W=="<")return j(me(">"),pr(Ka,">"),Oe,ro)}Ce(ro,"functiondef");function qi(q,W){if(W=="*")return U.marked="keyword",j(qi);if(q=="variable")return K(W),j(qi);if(q=="(")return j(Se,me(")"),pr(ca,")"),Oe,Fl,ye);if(m&&W=="<")return j(me(">"),pr(Ka,">"),Oe,qi)}Ce(qi,"functiondecl");function sd(q,W){if(q=="keyword"||q=="variable")return U.marked="type",j(sd);if(W=="<")return j(me(">"),pr(Ka,">"),Oe)}Ce(sd,"typename");function ca(q,W){return W=="@"&&j(Ue,ca),q=="spread"?j(ca):m&&re(W)?(U.marked="keyword",j(ca)):m&&q=="this"?j(Ya,Oo):z(ni,Ya,Oo)}Ce(ca,"funarg");function Vl(q,W){return q=="variable"?Ul(q,W):No(q,W)}Ce(Vl,"classExpression");function Ul(q,W){if(q=="variable")return K(W),j(No)}Ce(Ul,"className");function No(q,W){if(W=="<")return j(me(">"),pr(Ka,">"),Oe,No);if(W=="extends"||W=="implements"||m&&q==",")return W=="implements"&&(U.marked="keyword"),j(m?ut:Ue,No);if(q=="{")return j(me("}"),no,Oe)}Ce(No,"classNameAfter");function no(q,W){if(q=="async"||q=="variable"&&(W=="static"||W=="get"||W=="set"||m&&re(W))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",j(no);if(q=="variable"||U.style=="keyword")return U.marked="property",j(ji,no);if(q=="number"||q=="string")return j(ji,no);if(q=="[")return j(Ue,Ya,Ge("]"),ji,no);if(W=="*")return U.marked="keyword",j(no);if(m&&q=="(")return z(qi,no);if(q==";"||q==",")return j(no);if(q=="}")return j();if(W=="@")return j(Ue,no)}Ce(no,"classBody");function ji(q,W){if(W=="!"||W=="?")return j(ji);if(q==":")return j(ut,Oo);if(W=="=")return j(bt);var ce=U.state.lexical.prev,we=ce&&ce.info=="interface";return z(we?qi:ro)}Ce(ji,"classfield");function oc(q,W){return W=="*"?(U.marked="keyword",j(ii,Ge(";"))):W=="default"?(U.marked="keyword",j(Ue,Ge(";"))):q=="{"?j(pr(ac,"}"),ii,Ge(";")):z(He)}Ce(oc,"afterExport");function ac(q,W){if(W=="as")return U.marked="keyword",j(Ge("variable"));if(q=="variable")return z(bt,ac)}Ce(ac,"exportField");function xr(q){return q=="string"?j():q=="("?z(Ue):q=="."?z(Me):z(Qe,Do,ii)}Ce(xr,"afterImport");function Qe(q,W){return q=="{"?Il(Qe,"}"):(q=="variable"&&K(W),W=="*"&&(U.marked="keyword"),j(sc))}Ce(Qe,"importSpec");function Do(q){if(q==",")return j(Qe,Do)}Ce(Do,"maybeMoreImports");function sc(q,W){if(W=="as")return U.marked="keyword",j(Qe)}Ce(sc,"maybeAs");function ii(q,W){if(W=="from")return U.marked="keyword",j(Ue)}Ce(ii,"maybeFrom");function Pt(q){return q=="]"?j():z(pr(bt,"]"))}Ce(Pt,"arrayLiteral");function Lo(){return z(me("form"),ni,Ge("{"),me("}"),pr(Bs,"}"),Oe,Oe)}Ce(Lo,"enumdef");function Bs(){return z(ni,Oo)}Ce(Bs,"enummember");function lc(q,W){return q.lastType=="operator"||q.lastType==","||y.test(W.charAt(0))||/[,.]/.test(W.charAt(0))}Ce(lc,"isContinuedStatement");function Ae(q,W,ce){return W.tokenize==C&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=="quasi"&&/\{\s*$/.test(q.string.slice(0,q.pos-(ce||0)))}return Ce(Ae,"expressionAllowed"),{startState:function(q){var W={tokenize:C,lastType:"sof",cc:[],lexical:new V((q||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new se(null,null,!1),indented:q||0};return i.globalVars&&typeof i.globalVars=="object"&&(W.globalVars=i.globalVars),W},token:function(q,W){if(q.sol()&&(W.lexical.hasOwnProperty("align")||(W.lexical.align=!1),W.indented=q.indentation(),N(q,W)),W.tokenize!=k&&q.eatSpace())return null;var ce=W.tokenize(q,W);return S=="comment"?ce:(W.lastType=S=="operator"&&(A=="++"||A=="--")?"incdec":S,B(W,ce,S,A,q))},indent:function(q,W){if(q.tokenize==k||q.tokenize==P)return r.Pass;if(q.tokenize!=C)return 0;var ce=W&&W.charAt(0),we=q.lexical,ct;if(!/^\s*else\b/.test(W))for(var kt=q.cc.length-1;kt>=0;--kt){var Ve=q.cc[kt];if(Ve==Oe)we=we.prev;else if(Ve!=oh&&Ve!=ye)break}for(;(we.type=="stat"||we.type=="form")&&(ce=="}"||(ct=q.cc[q.cc.length-1])&&(ct==Me||ct==st)&&!/^[,\.=+\-*:?[\(]/.test(W));)we=we.prev;s&&we.type==")"&&we.prev.type=="stat"&&(we=we.prev);var Sn=we.type,Vi=ce==Sn;return Sn=="vardef"?we.indented+(q.lastType=="operator"||q.lastType==","?we.info.length+1:0):Sn=="form"&&ce=="{"?we.indented:Sn=="form"?we.indented+o:Sn=="stat"?we.indented+(lc(q,W)?s||o:0):we.info=="switch"&&!Vi&&i.doubleIndentSwitch!=!1?we.indented+(/^(?:case|default)\b/.test(W)?o:2*o):we.align?we.column+(Vi?0:1):we.indented+(Vi?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:l,jsonMode:c,expressionAllowed:Ae,skipExpression:function(q){B(q,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();mJ=fwe.exports,dwe=_t(mJ),pwe=pJ({__proto__:null,default:dwe},[mJ])});var bJ={};Ui(bJ,{c:()=>gwe});function gJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var mwe,NE,hwe,yJ,vwe,gwe,AJ=at(()=>{ir();mwe=Object.defineProperty,NE=(e,t)=>mwe(e,"name",{value:t,configurable:!0});NE(gJ,"_mergeNamespaces");hwe={exports:{}};(function(e,t){(function(r){r(Kt())})(function(r){var n={},i=/[^\s\u00a0]/,o=r.Pos,s=r.cmpPos;function l(m){var v=m.search(i);return v==-1?0:v}NE(l,"firstNonWS"),r.commands.toggleComment=function(m){m.toggleComment()},r.defineExtension("toggleComment",function(m){m||(m=n);for(var v=this,g=1/0,y=this.listSelections(),w=null,T=y.length-1;T>=0;T--){var S=y[T].from(),A=y[T].to();S.line>=g||(A.line>=g&&(A=o(g,0)),g=S.line,w==null?v.uncomment(S,A,m)?w="un":(v.lineComment(S,A,m),w="line"):w=="un"?v.uncomment(S,A,m):v.lineComment(S,A,m))}});function c(m,v,g){return/\bstring\b/.test(m.getTokenTypeAt(o(v.line,0)))&&!/^[\'\"\`]/.test(g)}NE(c,"probablyInsideString");function f(m,v){var g=m.getMode();return g.useInnerComments===!1||!g.innerMode?g:m.getModeAt(v)}NE(f,"getMode"),r.defineExtension("lineComment",function(m,v,g){g||(g=n);var y=this,w=f(y,m),T=y.getLine(m.line);if(!(T==null||c(y,m,T))){var S=g.lineComment||w.lineComment;if(!S){(g.blockCommentStart||w.blockCommentStart)&&(g.fullLines=!0,y.blockComment(m,v,g));return}var A=Math.min(v.ch!=0||v.line==m.line?v.line+1:v.line,y.lastLine()+1),b=g.padding==null?" ":g.padding,C=g.commentBlankLines||m.line==v.line;y.operation(function(){if(g.indent){for(var x=null,k=m.line;kD.length)&&(x=D)}for(var k=m.line;kA||y.operation(function(){if(g.fullLines!=!1){var C=i.test(y.getLine(A));y.replaceRange(b+S,o(A)),y.replaceRange(T+b,o(m.line,0));var x=g.blockCommentLead||w.blockCommentLead;if(x!=null)for(var k=m.line+1;k<=A;++k)(k!=A||C)&&y.replaceRange(x+b,o(k,0))}else{var P=s(y.getCursor("to"),v)==0,D=!y.somethingSelected();y.replaceRange(S,v),P&&y.setSelection(D?v:y.getCursor("from"),v),y.replaceRange(T,m)}})}}),r.defineExtension("uncomment",function(m,v,g){g||(g=n);var y=this,w=f(y,m),T=Math.min(v.ch!=0||v.line==m.line?v.line:v.line-1,y.lastLine()),S=Math.min(m.line,T),A=g.lineComment||w.lineComment,b=[],C=g.padding==null?" ":g.padding,x;e:{if(!A)break e;for(var k=S;k<=T;++k){var P=y.getLine(k),D=P.indexOf(A);if(D>-1&&!/comment/.test(y.getTokenTypeAt(o(k,D+1)))&&(D=-1),D==-1&&i.test(P)||D>-1&&i.test(P.slice(0,D)))break e;b.push(P)}if(y.operation(function(){for(var se=S;se<=T;++se){var xe=b[se-S],Re=xe.indexOf(A),Se=Re+A.length;Re<0||(xe.slice(Se,Se+C.length)==C&&(Se+=C.length),x=!0,y.replaceRange("",o(se,Re),o(se,Se)))}}),x)return!0}var N=g.blockCommentStart||w.blockCommentStart,I=g.blockCommentEnd||w.blockCommentEnd;if(!N||!I)return!1;var V=g.blockCommentLead||w.blockCommentLead,G=y.getLine(S),B=G.indexOf(N);if(B==-1)return!1;var U=T==S?G:y.getLine(T),z=U.indexOf(I,T==S?B+N.length:0),j=o(S,B+1),J=o(T,z+1);if(z==-1||!/comment/.test(y.getTokenTypeAt(j))||!/comment/.test(y.getTokenTypeAt(J))||y.getRange(j,J,` -`).indexOf(I)>-1)return!1;var K=G.lastIndexOf(N,m.ch),ee=K==-1?-1:G.slice(0,m.ch).indexOf(I,K+N.length);if(K!=-1&&ee!=-1&&ee+I.length!=m.ch)return!1;ee=U.indexOf(I,v.ch);var re=U.slice(v.ch).lastIndexOf(N,ee-v.ch);return K=ee==-1||re==-1?-1:v.ch+re,ee!=-1&&K!=-1&&K!=v.ch?!1:(y.operation(function(){y.replaceRange("",o(T,z-(C&&U.slice(z-C.length,z)==C?C.length:0)),o(T,z+I.length));var se=B+N.length;if(C&&G.slice(se,se+C.length)==C&&(se+=C.length),y.replaceRange("",o(S,B),o(S,se)),V)for(var xe=S+1;xe<=T;++xe){var Re=y.getLine(xe),Se=Re.indexOf(V);if(!(Se==-1||i.test(Re.slice(0,Se)))){var ie=Se+V.length;C&&Re.slice(ie,ie+C.length)==C&&(ie+=C.length),y.replaceRange("",o(xe,Se),o(xe,ie))}}}),!0)})})})();yJ=hwe.exports,vwe=_t(yJ),gwe=gJ({__proto__:null,default:vwe},[yJ])});var BM={};Ui(BM,{s:()=>xwe});function xJ(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ywe,Ar,bwe,wJ,Awe,xwe,GM=at(()=>{ir();kE();ky();ywe=Object.defineProperty,Ar=(e,t)=>ywe(e,"name",{value:t,configurable:!0});Ar(xJ,"_mergeNamespaces");bwe={exports:{}};(function(e,t){(function(r){r(Kt(),Qf(),Wf)})(function(r){r.defineOption("search",{bottom:!1});function n(N,I){return typeof N=="string"?N=new RegExp(N.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),I?"gi":"g"):N.global||(N=new RegExp(N.source,N.ignoreCase?"gi":"g")),{token:function(V){N.lastIndex=V.pos;var G=N.exec(V.string);if(G&&G.index==V.pos)return V.pos+=G[0].length||1,"searching";G?V.pos=G.index:V.skipToEnd()}}}Ar(n,"searchOverlay");function i(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}Ar(i,"SearchState");function o(N){return N.state.search||(N.state.search=new i)}Ar(o,"getSearchState");function s(N){return typeof N=="string"&&N==N.toLowerCase()}Ar(s,"queryCaseInsensitive");function l(N,I,V){return N.getSearchCursor(I,V,{caseFold:s(I),multiline:!0})}Ar(l,"getSearchCursor");function c(N,I,V,G,B){N.openDialog(I,G,{value:V,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){S(N)},onKeyDown:B,bottom:N.options.search.bottom})}Ar(c,"persistentDialog");function f(N,I,V,G,B){N.openDialog?N.openDialog(I,B,{value:G,selectValueOnOpen:!0,bottom:N.options.search.bottom}):B(prompt(V,G))}Ar(f,"dialog");function m(N,I,V,G){N.openConfirm?N.openConfirm(I,G):confirm(V)&&G[0]()}Ar(m,"confirmDialog");function v(N){return N.replace(/\\([nrt\\])/g,function(I,V){return V=="n"?` -`:V=="r"?"\r":V=="t"?" ":V=="\\"?"\\":I})}Ar(v,"parseString");function g(N){var I=N.match(/^\/(.*)\/([a-z]*)$/);if(I)try{N=new RegExp(I[1],I[2].indexOf("i")==-1?"":"i")}catch{}else N=v(N);return(typeof N=="string"?N=="":N.test(""))&&(N=/x^/),N}Ar(g,"parseQuery");function y(N,I,V){I.queryText=V,I.query=g(V),N.removeOverlay(I.overlay,s(I.query)),I.overlay=n(I.query,s(I.query)),N.addOverlay(I.overlay),N.showMatchesOnScrollbar&&(I.annotate&&(I.annotate.clear(),I.annotate=null),I.annotate=N.showMatchesOnScrollbar(I.query,s(I.query)))}Ar(y,"startSearch");function w(N,I,V,G){var B=o(N);if(B.query)return T(N,I);var U=N.getSelection()||B.lastQuery;if(U instanceof RegExp&&U.source=="x^"&&(U=null),V&&N.openDialog){var z=null,j=Ar(function(J,K){r.e_stop(K),J&&(J!=B.queryText&&(y(N,B,J),B.posFrom=B.posTo=N.getCursor()),z&&(z.style.opacity=1),T(N,K.shiftKey,function(ee,re){var se;re.line<3&&document.querySelector&&(se=N.display.wrapper.querySelector(".CodeMirror-dialog"))&&se.getBoundingClientRect().bottom-4>N.cursorCoords(re,"window").top&&((z=se).style.opacity=.4)}))},"searchNext");c(N,b(N),U,j,function(J,K){var ee=r.keyName(J),re=N.getOption("extraKeys"),se=re&&re[ee]||r.keyMap[N.getOption("keyMap")][ee];se=="findNext"||se=="findPrev"||se=="findPersistentNext"||se=="findPersistentPrev"?(r.e_stop(J),y(N,o(N),K),N.execCommand(se)):(se=="find"||se=="findPersistent")&&(r.e_stop(J),j(K,J))}),G&&U&&(y(N,B,U),T(N,I))}else f(N,b(N),"Search for:",U,function(J){J&&!B.query&&N.operation(function(){y(N,B,J),B.posFrom=B.posTo=N.getCursor(),T(N,I)})})}Ar(w,"doSearch");function T(N,I,V){N.operation(function(){var G=o(N),B=l(N,G.query,I?G.posFrom:G.posTo);!B.find(I)&&(B=l(N,G.query,I?r.Pos(N.lastLine()):r.Pos(N.firstLine(),0)),!B.find(I))||(N.setSelection(B.from(),B.to()),N.scrollIntoView({from:B.from(),to:B.to()},20),G.posFrom=B.from(),G.posTo=B.to(),V&&V(B.from(),B.to()))})}Ar(T,"findNext");function S(N){N.operation(function(){var I=o(N);I.lastQuery=I.query,I.query&&(I.query=I.queryText=null,N.removeOverlay(I.overlay),I.annotate&&(I.annotate.clear(),I.annotate=null))})}Ar(S,"clearSearch");function A(N,I){var V=N?document.createElement(N):document.createDocumentFragment();for(var G in I)V[G]=I[G];for(var B=2;B{ia();OM();Zc();ir();tt.registerHelper("hint","graphql",(e,t)=>{let{schema:r,externalFragments:n}=t;if(!r)return;let i=e.getCursor(),o=e.getTokenAt(i),s=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,l=new mo(i.line,s),c={list:ED(r,e.getValue(),l,o,n).map(f=>({text:f.label,type:f.type,description:f.documentation,isDeprecated:f.isDeprecated,deprecationReason:f.deprecationReason})),from:{line:i.line,ch:s},to:{line:i.line,ch:o.end}};return c!=null&&c.list&&c.list.length>0&&(c.from=tt.Pos(c.from.line,c.from.ch),c.to=tt.Pos(c.to.line,c.to.ch),tt.signal(e,"hasCompletion",e,c,o)),c})});var Twe={};var TJ,Ewe,CJ=at(()=>{ia();Zc();ir();TJ=["error","warning","information","hint"],Ewe={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};tt.registerHelper("lint","graphql",(e,t)=>{let{schema:r,validationRules:n,externalFragments:i}=t;return PD(e,r,n,void 0,i).map(o=>({message:o.message,severity:o.severity?TJ[o.severity-1]:TJ[0],type:o.source?Ewe[o.source]:void 0,from:tt.Pos(o.range.start.line,o.range.start.character),to:tt.Pos(o.range.end.line,o.range.end.character)}))})});function Oy(e,t){let r=[],n=e;for(;n!=null&&n.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i])}var Cwe,Swe,Ny=at(()=>{Cwe=Object.defineProperty,Swe=(e,t)=>Cwe(e,"name",{value:t,configurable:!0});Swe(Oy,"forEachState")});function Dy(e,t){let r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return Oy(t,n=>{var i,o;switch(n.kind){case"Query":case"ShortQuery":r.type=e.getQueryType();break;case"Mutation":r.type=e.getMutationType();break;case"Subscription":r.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(r.type=e.getType(n.type));break;case"Field":case"AliasedField":r.fieldDef=r.type&&n.name?zM(e,r.parentType,n.name):null,r.type=(i=r.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":r.parentType=r.type?(0,kr.getNamedType)(r.type):null;break;case"Directive":r.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":let s=n.prevState?n.prevState.kind==="Field"?r.fieldDef:n.prevState.kind==="Directive"?r.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&zM(e,r.parentType,n.prevState.name):null:null;r.argDefs=s?s.args:null;break;case"Argument":if(r.argDef=null,r.argDefs){for(let v=0;vv.value===n.name):null;break;case"ListValue":let c=r.inputType?(0,kr.getNullableType)(r.inputType):null;r.inputType=c instanceof kr.GraphQLList?c.ofType:null;break;case"ObjectValue":let f=r.inputType?(0,kr.getNamedType)(r.inputType):null;r.objectFieldDefs=f instanceof kr.GraphQLInputObjectType?f.getFields():null;break;case"ObjectField":let m=n.name&&r.objectFieldDefs?r.objectFieldDefs[n.name]:null;r.inputType=m?.type;break;case"NamedType":r.type=n.name?e.getType(n.name):null;break}}),r}function zM(e,t,r){if(r===kr.SchemaMetaFieldDef.name&&e.getQueryType()===t)return kr.SchemaMetaFieldDef;if(r===kr.TypeMetaFieldDef.name&&e.getQueryType()===t)return kr.TypeMetaFieldDef;if(r===kr.TypeNameMetaFieldDef.name&&(0,kr.isCompositeType)(t))return kr.TypeNameMetaFieldDef;if(t&&t.getFields)return t.getFields()[r]}function SJ(e,t){for(let r=0;r{kr=fe(Ur());Ny();kwe=Object.defineProperty,Nl=(e,t)=>kwe(e,"name",{value:t,configurable:!0});Nl(Dy,"getTypeInfo");Nl(zM,"getFieldDef");Nl(SJ,"find");Nl(Ly,"getFieldReference");Nl(Py,"getDirectiveReference");Nl(Ry,"getArgumentReference");Nl(My,"getEnumValueReference");Nl(Jm,"getTypeReference");Nl(HM,"isMetaField")});var Nwe={};function kJ(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function OJ(e){let{options:t}=e.state.info;return t?.hoverTime||500}function NJ(e,t){let r=e.state.info,n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||n.nodeName!=="SPAN"||r.hoverTimeout!==void 0)return;let i=n.getBoundingClientRect(),o=Ua(function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(l,c)},"onMouseMove"),s=Ua(function(){tt.off(document,"mousemove",o),tt.off(e.getWrapperElement(),"mouseout",s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},"onMouseOut"),l=Ua(function(){tt.off(document,"mousemove",o),tt.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,DJ(e,i)},"onHover"),c=OJ(e);r.hoverTimeout=setTimeout(l,c),tt.on(document,"mousemove",o),tt.on(e.getWrapperElement(),"mouseout",s)}function DJ(e,t){let r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),n=e.state.info,{options:i}=n,o=i.render||e.getHelper(r,"info");if(o){let s=e.getTokenAt(r,!0);if(s){let l=o(s,i,e,r);l&&LJ(e,t,l)}}}function LJ(e,t,r){let n=document.createElement("div");n.className="CodeMirror-info",n.append(r),document.body.append(n);let i=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),c=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-l),c<0&&(c=t.bottom);let f=Math.max(0,window.innerWidth-s-15);f>t.left&&(f=t.left),n.style.opacity="1",n.style.top=c+"px",n.style.left=f+"px";let m,v=Ua(function(){clearTimeout(m)},"onMouseOverPopup"),g=Ua(function(){clearTimeout(m),m=setTimeout(y,200)},"onMouseOut"),y=Ua(function(){tt.off(n,"mouseover",v),tt.off(n,"mouseout",g),tt.off(e.getWrapperElement(),"mouseout",g),n.style.opacity?(n.style.opacity="0",setTimeout(()=>{n.parentNode&&n.remove()},600)):n.parentNode&&n.remove()},"hidePopup");tt.on(n,"mouseover",v),tt.on(n,"mouseout",g),tt.on(e.getWrapperElement(),"mouseout",g)}var Owe,Ua,WM=at(()=>{ia();ir();Owe=Object.defineProperty,Ua=(e,t)=>Owe(e,"name",{value:t,configurable:!0});tt.defineOption("info",!1,(e,t,r)=>{if(r&&r!==tt.Init){let n=e.state.info.onMouseOver;tt.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){let n=e.state.info=kJ(t);n.onMouseOver=NJ.bind(null,e),tt.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}});Ua(kJ,"createState");Ua(OJ,"getHoverTime");Ua(NJ,"onMouseOver");Ua(DJ,"onMouseHover");Ua(LJ,"showPopup")});var Lwe={};function PJ(e,t,r){RJ(e,t,r),YM(e,t,r,t.type)}function RJ(e,t,r){var n;let i=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||"";to(e,i,"field-name",r,Ly(t))}function MJ(e,t,r){var n;let i="@"+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||"");to(e,i,"directive-name",r,Py(t))}function IJ(e,t,r){var n;let i=((n=t.argDef)===null||n===void 0?void 0:n.name)||"";to(e,i,"arg-name",r,Ry(t)),YM(e,t,r,t.inputType)}function FJ(e,t,r){var n;let i=((n=t.enumValue)===null||n===void 0?void 0:n.name)||"";Yf(e,t,r,t.inputType),to(e,"."),to(e,i,"enum-value",r,My(t))}function YM(e,t,r,n){let i=document.createElement("span");i.className="type-name-pill",n instanceof $m.GraphQLNonNull?(Yf(i,t,r,n.ofType),to(i,"!")):n instanceof $m.GraphQLList?(to(i,"["),Yf(i,t,r,n.ofType),to(i,"]")):to(i,n?.name||"","type-name",r,Jm(t,n)),e.append(i)}function Yf(e,t,r,n){n instanceof $m.GraphQLNonNull?(Yf(e,t,r,n.ofType),to(e,"!")):n instanceof $m.GraphQLList?(to(e,"["),Yf(e,t,r,n.ofType),to(e,"]")):to(e,n?.name||"","type-name",r,Jm(t,n))}function _m(e,t,r){let{description:n}=r;if(n){let i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(n):i.append(document.createTextNode(n)),e.append(i)}qJ(e,t,r)}function qJ(e,t,r){let n=r.deprecationReason;if(n){let i=document.createElement("div");i.className="info-deprecation",e.append(i);let o=document.createElement("span");o.className="info-deprecation-label",o.append(document.createTextNode("Deprecated")),i.append(o);let s=document.createElement("div");s.className="info-deprecation-reason",t.renderDescription?s.innerHTML=t.renderDescription(n):s.append(document.createTextNode(n)),i.append(s)}}function to(e,t,r="",n={onClick:null},i=null){if(r){let{onClick:o}=n,s;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",l=>{o(i,l)})):s=document.createElement("span"),s.className=r,s.append(document.createTextNode(t)),e.append(s)}else e.append(document.createTextNode(t))}var $m,Dwe,Fs,jJ=at(()=>{$m=fe(Ur());ia();QM();WM();ir();Ny();Dwe=Object.defineProperty,Fs=(e,t)=>Dwe(e,"name",{value:t,configurable:!0});tt.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;let{kind:r,step:n}=e.state,i=Dy(t.schema,e.state);if(r==="Field"&&n===0&&i.fieldDef||r==="AliasedField"&&n===2&&i.fieldDef){let o=document.createElement("div");o.className="CodeMirror-info-header",PJ(o,i,t);let s=document.createElement("div");return s.append(o),_m(s,t,i.fieldDef),s}if(r==="Directive"&&n===1&&i.directiveDef){let o=document.createElement("div");o.className="CodeMirror-info-header",MJ(o,i,t);let s=document.createElement("div");return s.append(o),_m(s,t,i.directiveDef),s}if(r==="Argument"&&n===0&&i.argDef){let o=document.createElement("div");o.className="CodeMirror-info-header",IJ(o,i,t);let s=document.createElement("div");return s.append(o),_m(s,t,i.argDef),s}if(r==="EnumValue"&&i.enumValue&&i.enumValue.description){let o=document.createElement("div");o.className="CodeMirror-info-header",FJ(o,i,t);let s=document.createElement("div");return s.append(o),_m(s,t,i.enumValue),s}if(r==="NamedType"&&i.type&&i.type.description){let o=document.createElement("div");o.className="CodeMirror-info-header",Yf(o,i,t,i.type);let s=document.createElement("div");return s.append(o),_m(s,t,i.type),s}});Fs(PJ,"renderField");Fs(RJ,"renderQualifiedField");Fs(MJ,"renderDirective");Fs(IJ,"renderArg");Fs(FJ,"renderEnumValue");Fs(YM,"renderTypeAnnotation");Fs(Yf,"renderType");Fs(_m,"renderDescription");Fs(qJ,"renderDeprecation");Fs(to,"text")});var Mwe={};function VJ(e,t){let r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||r?.nodeName!=="SPAN")return;let n=r.getBoundingClientRect(),i={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&KM(e)}function UJ(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&XM(e)}function BJ(e,t){if(e.state.jump.isHoldingModifier||!GJ(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&KM(e);let r=Dl(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&XM(e),tt.off(document,"keyup",r),tt.off(document,"click",n),e.off("mousedown",i))},"onKeyUp"),n=Dl(o=>{let{destination:s,options:l}=e.state.jump;s&&l.onClick(s,o)},"onClick"),i=Dl((o,s)=>{e.state.jump.destination&&(s.codemirrorIgnore=!0)},"onMouseDown");tt.on(document,"keyup",r),tt.on(document,"click",n),e.on("mousedown",i)}function GJ(e){return e===(Rwe?"Meta":"Control")}function KM(e){if(e.state.jump.marker)return;let{cursor:t,options:r}=e.state.jump,n=e.coordsChar(t),i=e.getTokenAt(n,!0),o=r.getDestination||e.getHelper(n,"jump");if(o){let s=o(i,r,e);if(s){let l=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=s}}}function XM(e){let{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var Pwe,Dl,Rwe,zJ=at(()=>{ia();QM();ir();Ny();Pwe=Object.defineProperty,Dl=(e,t)=>Pwe(e,"name",{value:t,configurable:!0});tt.defineOption("jump",!1,(e,t,r)=>{if(r&&r!==tt.Init){let n=e.state.jump.onMouseOver;tt.off(e.getWrapperElement(),"mouseover",n);let i=e.state.jump.onMouseOut;tt.off(e.getWrapperElement(),"mouseout",i),tt.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){let n=e.state.jump={options:t,onMouseOver:VJ.bind(null,e),onMouseOut:UJ.bind(null,e),onKeyDown:BJ.bind(null,e)};tt.on(e.getWrapperElement(),"mouseover",n.onMouseOver),tt.on(e.getWrapperElement(),"mouseout",n.onMouseOut),tt.on(document,"keydown",n.onKeyDown)}});Dl(VJ,"onMouseOver");Dl(UJ,"onMouseOut");Dl(BJ,"onKeyDown");Rwe=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");Dl(GJ,"isJumpModifier");Dl(KM,"enableJumpMode");Dl(XM,"disableJumpMode");tt.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;let{state:r}=e,{kind:n,step:i}=r,o=Dy(t.schema,r);if(n==="Field"&&i===0&&o.fieldDef||n==="AliasedField"&&i===2&&o.fieldDef)return Ly(o);if(n==="Directive"&&i===1&&o.directiveDef)return Py(o);if(n==="Argument"&&i===0&&o.argDef)return Ry(o);if(n==="EnumValue"&&o.enumValue)return My(o);if(n==="NamedType"&&o.type)return Jm(o)})});function Kf(e,t){var r,n;let{levels:i,indentLevel:o}=e;return((!i||i.length===0?o:i.at(-1)-(!((r=this.electricInput)===null||r===void 0)&&r.test(t)?1:0))||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var Iwe,Fwe,DE=at(()=>{Iwe=Object.defineProperty,Fwe=(e,t)=>Iwe(e,"name",{value:t,configurable:!0});Fwe(Kf,"indent")});var Uwe={};var qwe,jwe,Vwe,HJ=at(()=>{ia();Zc();DE();ir();qwe=Object.defineProperty,jwe=(e,t)=>qwe(e,"name",{value:t,configurable:!0}),Vwe=jwe(e=>{let t=po({eatWhitespace:r=>r.eatWhile(vp),lexRules:gp,parseRules:yp,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");tt.defineMode("graphql",Vwe)});var Gwe={};function Xf(e,t,r){let n=QJ(r,ZM(t.string));if(!n)return;let i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function QJ(e,t){if(!t)return LE(e,n=>!n.isDeprecated);let r=e.map(n=>({proximity:WJ(ZM(n.text),t),entry:n}));return LE(LE(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.text.length-i.entry.text.length).map(n=>n.entry)}function LE(e,t){let r=e.filter(t);return r.length===0?e:r}function ZM(e){return e.toLowerCase().replaceAll(/\W/g,"")}function WJ(e,t){let r=YJ(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function YJ(e,t){let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}function KJ(e,t,r){let n=t.state.kind==="Invalid"?t.state.prevState:t.state,{kind:i,step:o}=n;if(i==="Document"&&o===0)return Xf(e,t,[{text:"{"}]);let{variableToType:s}=r;if(!s)return;let l=XJ(s,t.state);if(i==="Document"||i==="Variable"&&o===0){let c=Object.keys(s);return Xf(e,t,c.map(f=>({text:`"${f}": `,type:s[f]})))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&l.fields){let c=Object.keys(l.fields).map(f=>l.fields[f]);return Xf(e,t,c.map(f=>({text:`"${f.name}": `,type:f.type,description:f.description})))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){let c=l.type?(0,bi.getNamedType)(l.type):void 0;if(c instanceof bi.GraphQLInputObjectType)return Xf(e,t,[{text:"{"}]);if(c instanceof bi.GraphQLEnumType){let f=c.getValues();return Xf(e,t,f.map(m=>({text:`"${m.name}"`,type:c,description:m.description})))}if(c===bi.GraphQLBoolean)return Xf(e,t,[{text:"true",type:bi.GraphQLBoolean,description:"Not false."},{text:"false",type:bi.GraphQLBoolean,description:"Not true."}])}}function XJ(e,t){let r={type:null,fields:null};return Oy(t,n=>{switch(n.kind){case"Variable":{r.type=e[n.name];break}case"ListValue":{let i=r.type?(0,bi.getNullableType)(r.type):void 0;r.type=i instanceof bi.GraphQLList?i.ofType:null;break}case"ObjectValue":{let i=r.type?(0,bi.getNamedType)(r.type):void 0;r.fields=i instanceof bi.GraphQLInputObjectType?i.getFields():null;break}case"ObjectField":{let i=n.name&&r.fields?r.fields[n.name]:null;r.type=i?.type;break}}}),r}var bi,Bwe,Ku,ZJ=at(()=>{ia();bi=fe(Ur());Ny();ir();Bwe=Object.defineProperty,Ku=(e,t)=>Bwe(e,"name",{value:t,configurable:!0});Ku(Xf,"hintList");Ku(QJ,"filterAndSortList");Ku(LE,"filterNonEmpty");Ku(ZM,"normalizeText");Ku(WJ,"getProximity");Ku(YJ,"lexicalDistance");tt.registerHelper("hint","graphql-variables",(e,t)=>{let r=e.getCursor(),n=e.getTokenAt(r),i=KJ(r,n,t);return i!=null&&i.list&&i.list.length>0&&(i.from=tt.Pos(i.from.line,i.from.ch),i.to=tt.Pos(i.to.line,i.to.ch),tt.signal(e,"hasCompletion",e,i,n)),i});Ku(KJ,"getVariablesHint");Ku(XJ,"getTypeInfo")});var Hwe={};function JJ(e){qs=e,RE=e.length,Cn=Ai=jy=-1,dn(),Vy();let t=_M();return Ll("EOF"),t}function _M(){let e=Cn,t=[];if(Ll("{"),!qy("}")){do t.push(_J());while(qy(","));Ll("}")}return{kind:"Object",start:e,end:jy,members:t}}function _J(){let e=Cn,t=To==="String"?eI():null;Ll("String"),Ll(":");let r=$M();return{kind:"Member",start:e,end:jy,key:t,value:r}}function $J(){let e=Cn,t=[];if(Ll("["),!qy("]")){do t.push($M());while(qy(","));Ll("]")}return{kind:"Array",start:e,end:jy,values:t}}function $M(){switch(To){case"[":return $J();case"{":return _M();case"String":case"Number":case"Boolean":case"Null":let e=eI();return Vy(),e}Ll("Value")}function eI(){return{kind:To,start:Cn,end:Ai,value:JSON.parse(qs.slice(Cn,Ai))}}function Ll(e){if(To===e){Vy();return}let t;if(To==="EOF")t="[end of file]";else if(Ai-Cn>1)t="`"+qs.slice(Cn,Ai)+"`";else{let r=qs.slice(Cn).match(/^.+?\b/);t="`"+(r?r[0]:qs[Cn])+"`"}throw Zf(`Expected ${e} but found ${t}.`)}function Zf(e){return new Fy(e,{start:Cn,end:Ai})}function qy(e){if(To===e)return Vy(),!0}function dn(){return Ai31;)if(Gt===92)switch(Gt=dn(),Gt){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:dn();break;case 117:dn(),Iy(),Iy(),Iy(),Iy();break;default:throw Zf("Bad character escape sequence.")}else{if(Ai===RE)throw Zf("Unterminated string.");dn()}if(Gt===34){dn();return}throw Zf("Unterminated string.")}function Iy(){if(Gt>=48&&Gt<=57||Gt>=65&&Gt<=70||Gt>=97&&Gt<=102)return dn();throw Zf("Expected hexadecimal digit.")}function t_(){Gt===45&&dn(),Gt===48?dn():PE(),Gt===46&&(dn(),PE()),(Gt===69||Gt===101)&&(Gt=dn(),(Gt===43||Gt===45)&&dn(),PE())}function PE(){if(Gt<48||Gt>57)throw Zf("Expected decimal digit.");do dn();while(Gt>=48&&Gt<=57)}function r_(e,t,r){var n;let i=[];for(let o of r.members)if(o){let s=(n=o.key)===null||n===void 0?void 0:n.value,l=t[s];if(l)for(let[c,f]of eh(l,o.value))i.push(ME(e,c,f));else i.push(ME(e,o.key,`Variable "$${s}" does not appear in any GraphQL query.`))}return i}function eh(e,t){if(!e||!t)return[];if(e instanceof Ba.GraphQLNonNull)return t.kind==="Null"?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:eh(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof Ba.GraphQLList){let r=e.ofType;if(t.kind==="Array"){let n=t.values||[];return JM(n,i=>eh(r,i))}return eh(r,t)}if(e instanceof Ba.GraphQLInputObjectType){if(t.kind!=="Object")return[[t,`Type "${e}" must be an Object.`]];let r=Object.create(null),n=JM(t.members,i=>{var o;let s=(o=i?.key)===null||o===void 0?void 0:o.value;r[s]=!0;let l=e.getFields()[s];if(!l)return[[i.key,`Type "${e}" does not have a field "${s}".`]];let c=l?l.type:void 0;return eh(c,i.value)});for(let i of Object.keys(e.getFields())){let o=e.getFields()[i];!r[i]&&o.type instanceof Ba.GraphQLNonNull&&!o.defaultValue&&n.push([t,`Object of type "${e}" is missing required field "${i}".`])}return n}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,`Expected value of type "${e}".`]]:(e instanceof Ba.GraphQLEnumType||e instanceof Ba.GraphQLScalarType)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||n_(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function ME(e,t,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function n_(e){return e==null||e!==e}function JM(e,t){return Array.prototype.concat.apply([],e.map(t))}var Ba,zwe,_r,qs,RE,Cn,Ai,jy,Gt,To,Fy,i_=at(()=>{ia();Ba=fe(Ur());ir();zwe=Object.defineProperty,_r=(e,t)=>zwe(e,"name",{value:t,configurable:!0});_r(JJ,"jsonParse");_r(_M,"parseObj");_r(_J,"parseMember");_r($J,"parseArr");_r($M,"parseVal");_r(eI,"curToken");_r(Ll,"expect");Fy=class extends Error{constructor(t,r){super(t),this.position=r}};_r(Fy,"JSONSyntaxError");_r(Zf,"syntaxError");_r(qy,"skip");_r(dn,"ch");_r(Vy,"lex");_r(e_,"readString");_r(Iy,"readHex");_r(t_,"readNumber");_r(PE,"readDigits");tt.registerHelper("lint","graphql-variables",(e,t,r)=>{if(!e)return[];let n;try{n=JJ(e)}catch(o){if(o instanceof Fy)return[ME(r,o.position,o.message)];throw o}let{variableToType:i}=t;return i?r_(r,i,n):[]});_r(r_,"validateVariables");_r(eh,"validateValue");_r(ME,"lintError");_r(n_,"isNullish");_r(JM,"mapCat")});var Xwe={};function tI(e){return{style:e,match:t=>t.kind==="String",update(t,r){t.name=r.value.slice(1,-1)}}}var Qwe,Wwe,Ywe,Kwe,o_=at(()=>{ia();Zc();DE();ir();Qwe=Object.defineProperty,Wwe=(e,t)=>Qwe(e,"name",{value:t,configurable:!0});tt.defineMode("graphql-variables",e=>{let t=po({eatWhitespace:r=>r.eatSpace(),lexRules:Ywe,parseRules:Kwe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});Ywe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Kwe={Document:[ze("{"),gt("Variable",er(ze(","))),ze("}")],Variable:[tI("variable"),ze(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Dn("Number","number")],StringValue:[Dn("String","string")],BooleanValue:[Dn("Keyword","builtin")],NullValue:[Dn("Keyword","keyword")],ListValue:[ze("["),gt("Value",er(ze(","))),ze("]")],ObjectValue:[ze("{"),gt("ObjectField",er(ze(","))),ze("}")],ObjectField:[tI("attribute"),ze(":"),"Value"]};Wwe(tI,"namedKey")});var _we={};var Zwe,Jwe,a_=at(()=>{ia();Zc();DE();ir();tt.defineMode("graphql-results",e=>{let t=po({eatWhitespace:r=>r.eatSpace(),lexRules:Zwe,parseRules:Jwe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});Zwe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Jwe={Document:[ze("{"),gt("Entry",ze(",")),ze("}")],Entry:[Dn("String","def"),ze(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Dn("Number","number")],StringValue:[Dn("String","string")],BooleanValue:[Dn("Keyword","builtin")],NullValue:[Dn("Keyword","keyword")],ListValue:[ze("["),gt("Value",ze(",")),ze("]")],ObjectValue:[ze("{"),gt("ObjectField",ze(",")),ze("}")],ObjectField:[Dn("String","property"),ze(":"),"Value"]}});var N$=X(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});var uTe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y$=function(){function e(t,r){var n=[],i=!0,o=!1,s=void 0;try{for(var l=t[Symbol.iterator](),c;!(i=(c=l.next()).done)&&(n.push(c.value),!(r&&n.length===r));i=!0);}catch(f){o=!0,s=f}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Wt=Object.assign||function(e){for(var t=1;t"u"?v=!0:typeof f.kind=="string"&&(y=!0)}catch{}var w=i.props.selection,T=i._getArgSelection();if(!T){console.error("missing arg selection when setting arg value");return}var S=rc(i.props.arg.type),A=(0,vt.isLeafType)(S)||g||v||y;if(!A){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",f);return}var b=void 0,C=void 0;f===null||typeof f>"u"?C=null:!f.target&&f.kind&&f.kind==="VariableDefinition"?(b=f,C=b.variable):typeof f.kind=="string"?C=f:f.target&&typeof f.target.value=="string"&&(b=f.target.value,C=T$(S,b));var x=i.props.modifyFields((w.fields||[]).map(function(k){var P=k===T,D=P?Wt({},k,{value:C}):k;return D}),m);return x},i._modifyChildFields=function(f){return i.props.modifyFields(i.props.selection.fields.map(function(m){return m.name.value===i.props.arg.name?Wt({},m,{value:{kind:"ObjectValue",fields:f}}):m}),!0)},n),en(i,o)}return Ha(t,[{key:"render",value:function(){var n=this.props,i=n.arg,o=n.parentField,s=this._getArgSelection();return be.createElement(S$,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(be.PureComponent);function OI(e){if((0,vt.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function C$(e,t,r){return OI(r)}var bTe=function(e){Wa(t,e);function t(){var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c"u"?v=!0:typeof f.kind=="string"&&(y=!0)}catch{}var w=i.props.selection,T=i._getArgSelection();if(!T&&!g){console.error("missing arg selection when setting arg value");return}var S=rc(i.props.arg.type),A=(0,vt.isLeafType)(S)||g||v||y;if(!A){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var b=void 0,C=void 0;return f===null||typeof f>"u"?C=null:f.target&&typeof f.target.value=="string"?(b=f.target.value,C=T$(S,b)):!f.target&&f.kind==="VariableDefinition"?(b=f,C=b.variable):typeof f.kind=="string"&&(C=f),i.props.modifyArguments((w.arguments||[]).map(function(x){return x===T?Wt({},x,{value:C}):x}),m)},i._setArgFields=function(f,m){var v=i.props.selection,g=i._getArgSelection();if(!g){console.error("missing arg selection when setting arg value");return}return i.props.modifyArguments((v.arguments||[]).map(function(y){return y===g?Wt({},y,{value:{kind:"ObjectValue",fields:f}}):y}),m)},n),en(i,o)}return Ha(t,[{key:"render",value:function(){var n=this.props,i=n.arg,o=n.parentField,s=this._getArgSelection();return be.createElement(S$,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(be.PureComponent);function ATe(e){return e.ctrlKey&&e.key==="Enter"}function xTe(e){return e!=="FragmentDefinition"}var wTe=function(e){Wa(t,e);function t(){var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c0?b=""+S+A:b=S;var C=s.type.toString(),x=(0,vt.parseType)(C),k={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:b}},type:x,directives:[]},P=function(xe){return(n.props.definition.variableDefinitions||[]).find(function(Re){return Re.variable.name.value===xe})},D=void 0,N={};if(typeof o<"u"&&o!==null){var I=(0,vt.visit)(o,{Variable:function(xe){var Re=xe.name.value,Se=P(Re);if(N[Re]=N[Re]+1||1,!!Se)return Se.defaultValue}}),V=k.type.kind==="NonNullType",G=V?Wt({},k,{type:k.type.type}):k;D=Wt({},G,{defaultValue:I})}else D=k;var B=Object.entries(N).filter(function(se){var xe=y$(se,2),Re=xe[0],Se=xe[1];return Se<2}).map(function(se){var xe=y$(se,2),Re=xe[0],Se=xe[1];return Re});if(D){var U=n.props.setArgValue(D,!1);if(U){var z=U.definitions.find(function(se){return se.operation&&se.name&&se.name.value&&n.props.definition.name&&n.props.definition.name.value?se.name.value===n.props.definition.name.value:!1}),j=[].concat(sa(z.variableDefinitions||[]),[D]).filter(function(se){return B.indexOf(se.variable.name.value)===-1}),J=Wt({},z,{variableDefinitions:j}),K=U.definitions,ee=K.map(function(se){return z===se?J:se}),re=Wt({},U,{definitions:ee});n.props.onCommit(re)}}},g=function(){if(!(!o||!o.name||!o.name.value)){var S=o.name.value,A=(n.props.definition.variableDefinitions||[]).find(function(G){return G.variable.name.value===S});if(A){var b=A.defaultValue,C=n.props.setArgValue(b,{commit:!1});if(C){var x=C.definitions.find(function(G){return G.name.value===n.props.definition.name.value});if(!x)return;var k=0;(0,vt.visit)(x,{Variable:function(B){B.name.value===S&&(k=k+1)}});var P=x.variableDefinitions||[];k<2&&(P=P.filter(function(G){return G.variable.name.value!==S}));var D=Wt({},x,{variableDefinitions:P}),N=C.definitions,I=N.map(function(G){return x===G?D:G}),V=Wt({},C,{definitions:I});n.props.onCommit(V)}}}},y=o&&o.kind==="Variable",w=this.state.displayArgActions?be.createElement("button",{type:"submit",className:"toolbar-button",title:y?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(S){S.preventDefault(),S.stopPropagation(),y?g():v()},style:l.styles.actionButtonStyle},be.createElement("span",{style:{color:l.colors.variable}},"$")):null;return be.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":s.name,"data-arg-type":c.name,className:"graphiql-explorer-"+s.name},be.createElement("span",{style:{cursor:"pointer"},onClick:function(S){var A=!o;A?n.props.addArg(!0):n.props.removeArg(!0),n.setState({displayArgActions:A})}},(0,vt.isInputObjectType)(c)?be.createElement("span",null,o?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):be.createElement(sT,{checked:!!o,styleConfig:this.props.styleConfig}),be.createElement("span",{style:{color:l.colors.attribute},title:s.description,onMouseEnter:function(){o!==null&&typeof o<"u"&&n.setState({displayArgActions:!0})},onMouseLeave:function(){return n.setState({displayArgActions:!1})}},s.name,E$(s)?"*":"",": ",w," ")," "),f||be.createElement("span",null)," ")}}]),t}(be.PureComponent),ETe=function(e){Wa(t,e);function t(){var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c0;b&&n.setState({displayFieldActions:!0})},onMouseLeave:function(){return n.setState({displayFieldActions:!1})}},(0,vt.isObjectType)(m)?be.createElement("span",null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,vt.isObjectType)(m)?null:be.createElement(sT,{checked:!!f,styleConfig:this.props.styleConfig}),be.createElement("span",{style:{color:c.colors.property},className:"graphiql-explorer-field-view"},o.name),this.state.displayFieldActions?be.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(b){b.preventDefault(),b.stopPropagation();var C=m.name,x=C+"Fragment",k=(y||[]).filter(function(G){return G.name.value.startsWith(x)}).length;k>0&&(x=""+x+k);var P=f?f.selectionSet?f.selectionSet.selections:[]:[],D=[{kind:"FragmentSpread",name:{kind:"Name",value:x},directives:[]}],N={kind:"FragmentDefinition",name:{kind:"Name",value:x},typeCondition:{kind:"NamedType",name:{kind:"Name",value:m.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:P}},I=n._modifyChildSelections(D,!1);if(I){var V=Wt({},I,{definitions:[].concat(sa(I.definitions),[N])});n.props.onCommit(V)}else console.warn("Unable to complete extractFragment operation")},style:Wt({},c.styles.actionButtonStyle)},be.createElement("span",null,"\u2026")):null),f&&v.length?be.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},v.map(function(A){return be.createElement(bTe,{key:A.name,parentField:o,arg:A,selection:f,modifyArguments:n._setArguments,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition})})):null);if(f&&((0,vt.isObjectType)(m)||(0,vt.isInterfaceType)(m)||(0,vt.isUnionType)(m))){var T=(0,vt.isUnionType)(m)?{}:m.getFields(),S=f?f.selectionSet?f.selectionSet.selections:[]:[];return be.createElement("div",{className:"graphiql-explorer-"+o.name},w,be.createElement("div",{style:{marginLeft:16}},y?y.map(function(A){var b=s.getType(A.typeCondition.name.value),C=A.name.value;return b?be.createElement(TTe,{key:C,fragment:A,selections:S,modifySelections:n._modifyChildSelections,schema:s,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit}):null}):null,Object.keys(T).sort().map(function(A){return be.createElement(t,{key:A,field:T[A],selections:S,modifySelections:n._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition,availableFragments:n.props.availableFragments})}),(0,vt.isInterfaceType)(m)||(0,vt.isUnionType)(m)?s.getPossibleTypes(m).map(function(A){return be.createElement(ETe,{key:A.name,implementingType:A,selections:S,modifySelections:n._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition})}):null))}return w}}]),t}(be.PureComponent);function CTe(e){try{return e.trim()?(0,vt.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}var STe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},aT={kind:"Document",definitions:[STe]},ih=null;function kTe(e){if(ih&&ih[0]===e)return ih[1];var t=CTe(e);return t?t instanceof Error?ih?ih[1]:aT:(ih=[e,t],t):aT}var x$={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},OTe=function(e){Wa(t,e);function t(){var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c"u"?"undefined":uTe(He))==="object"&&typeof He.commit<"u"?dr=He.commit:dr=!0,Ge){var Ue=Wt({},T,{definitions:T.definitions.map(function(bt){return bt===j?Ge:bt})});return dr&&me(Ue),Ue}else return T},schema:o,getDefaultFieldNames:S,getDefaultScalarArgValue:A,makeDefaultArg:l,onRunOperation:function(){n.props.onRunOperation&&n.props.onRunOperation(K)},styleConfig:c,availableFragments:U})}),z),V)}}]),t}(be.PureComponent);O$.defaultProps={getDefaultFieldNames:w$,getDefaultScalarArgValue:C$};var DTe=function(e){Wa(t,e);function t(){var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.Explorer=void 0;var LTe=N$(),D$=PTe(LTe);function PTe(e){return e&&e.__esModule?e:{default:e}}r0.Explorer=D$.default;r0.default=D$.default});var V$=X(RI=>{"use strict";var j$=mf();RI.createRoot=j$.createRoot,RI.hydrateRoot=j$.hydrateRoot;var yGe});var Y=fe(K3(),1),ue=fe(Ee(),1),te=fe(Ee(),1);function X3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{let n=e.subscribe({next(i){t(i),n.unsubscribe()},error:r,complete(){r(new Error("no value resolved"))}})})}function YN(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function KN(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Sfe(e){var t;return q4(this,void 0,void 0,function*(){let r=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||t===void 0?void 0:t.bind(e),i=yield("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return r?.(),i.value})}function XN(e){return q4(this,void 0,void 0,function*(){let t=yield e;return KN(t)?Sfe(t):YN(t)?Cfe(t):t})}function ZN(e){return JSON.stringify(e,null,2)}function kfe(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function j4(e){return e instanceof Error?kfe(e):e}function fp(e){return Array.isArray(e)?ZN({errors:e.map(t=>j4(t))}):ZN({errors:[j4(e)]})}function SA(e){return ZN(e)}var Hn=fe(Ur());function V4(e,t,r){let n=[];if(!e||!t)return{insertions:n,result:t};let i;try{i=(0,Hn.parse)(t)}catch{return{insertions:n,result:t}}let o=r||Ofe,s=new Hn.TypeInfo(e);return(0,Hn.visit)(i,{leave(l){s.leave(l)},enter(l){if(s.enter(l),l.kind==="Field"&&!l.selectionSet){let c=s.getType(),f=U4(Lfe(c),o);if(f&&l.loc){let m=Dfe(t,l.loc.start);n.push({index:l.loc.end,string:" "+(0,Hn.print)(f).replaceAll(` +`),j=N+U.length,J=U[U.length-1].length;return{from:n(j,J),to:n(j+z.length-1,z.length==1?J+z[0].length:z[z.length-1].length),match:B}; + } + } + }ei(v,'searchRegexpBackwardMultiline');var g,y;String.prototype.normalize?(g=ei(function(b){ + return b.normalize('NFD').toLowerCase(); + },'doFold'),y=ei(function(b){ + return b.normalize('NFD'); + },'noFold')):(g=ei(function(b){ + return b.toLowerCase(); + },'doFold'),y=ei(function(b){ + return b; + },'noFold'));function w(b,C,x,k){ + if(b.length==C.length)return x;for(var P=0,D=x+Math.max(0,b.length-C.length);;){ + if(P==D)return P;var N=P+D>>1,I=k(b.slice(0,N)).length;if(I==x)return N;I>x?D=N:P=N+1; + } + }ei(w,'adjustPos');function T(b,C,x,k){ + if(!C.length)return null;var P=k?g:y,D=P(C).split(/\r|\n\r?/);e:for(var N=x.line,I=x.ch,V=b.lastLine()+1-D.length;N<=V;N++,I=0){ + var G=b.getLine(N).slice(I),B=P(G);if(D.length==1){ + var U=B.indexOf(D[0]);if(U==-1)continue e;var x=w(G,B,U,P)+I;return{from:n(N,w(G,B,U,P)+I),to:n(N,w(G,B,U+D[0].length,P)+I)}; + }else{ + var z=B.length-D[0].length;if(B.slice(z)!=D[0])continue e;for(var j=1;j=V;N--,I=-1){ + var G=b.getLine(N);I>-1&&(G=G.slice(0,I));var B=P(G);if(D.length==1){ + var U=B.lastIndexOf(D[0]);if(U==-1)continue e;return{from:n(N,w(G,B,U,P)),to:n(N,w(G,B,U+D[0].length,P))}; + }else{ + var z=D[D.length-1];if(B.slice(0,z.length)!=z)continue e;for(var j=1,x=N-D.length+1;j(this.doc.getLine(C.line)||'').length&&(C.ch=0,C.line++)),r.cmpPos(C,this.doc.clipPos(C))!=0))return this.atOccurrence=!1;var x=this.matches(b,C);if(this.afterEmptyMatch=x&&r.cmpPos(x.from,x.to)==0,x)return this.pos=x,this.atOccurrence=!0,this.pos.match||!0;var k=n(b?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:k,to:k},this.atOccurrence=!1; + },from:function(){ + if(this.atOccurrence)return this.pos.from; + },to:function(){ + if(this.atOccurrence)return this.pos.to; + },replace:function(b,C){ + if(this.atOccurrence){ + var x=r.splitLines(b);this.doc.replaceRange(x,this.pos.from,this.pos.to,C),this.pos.to=n(this.pos.from.line+x.length-1,x[x.length-1].length+(x.length==1?this.pos.from.ch:0)); + } + }},r.defineExtension('getSearchCursor',function(b,C,x){ + return new A(this.doc,b,C,x); + }),r.defineDocExtension('getSearchCursor',function(b,C,x){ + return new A(this,b,C,x); + }),r.defineExtension('selectMatches',function(b,C){ + for(var x=[],k=this.getSearchCursor(b,this.getCursor('from'),C);k.findNext()&&!(r.cmpPos(k.to(),this.getCursor('to'))>0);)x.push({anchor:k.from(),head:k.to()});x.length&&this.setSelections(x,0); + }); + }); + }()),Yxe.exports; +}var Wxe,ei,Yxe,oJ,kE=at(()=>{ + ir();Wxe=Object.defineProperty,ei=(e,t)=>Wxe(e,'name',{value:t,configurable:!0}),Yxe={exports:{}};ei(Qf,'requireSearchcursor'); +});var MM={};Ui(MM,{s:()=>Jxe});function aJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var Kxe,Xxe,sJ,Zxe,Jxe,IM=at(()=>{ + ir();kE();Kxe=Object.defineProperty,Xxe=(e,t)=>Kxe(e,'name',{value:t,configurable:!0});Xxe(aJ,'_mergeNamespaces');sJ=Qf(),Zxe=_t(sJ),Jxe=aJ({__proto__:null,default:Zxe},[sJ]); +});var FM={};Ui(FM,{a:()=>Wf,d:()=>twe});function lJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var _xe,Zm,$xe,Wf,ewe,twe,ky=at(()=>{ + ir();_xe=Object.defineProperty,Zm=(e,t)=>_xe(e,'name',{value:t,configurable:!0});Zm(lJ,'_mergeNamespaces');$xe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + function n(o,s,l){ + var c=o.getWrapperElement(),f;return f=c.appendChild(document.createElement('div')),l?f.className='CodeMirror-dialog CodeMirror-dialog-bottom':f.className='CodeMirror-dialog CodeMirror-dialog-top',typeof s=='string'?f.innerHTML=s:f.appendChild(s),r.addClass(c,'dialog-opened'),f; + }Zm(n,'dialogDiv');function i(o,s){ + o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=s; + }Zm(i,'closeNotification'),r.defineExtension('openDialog',function(o,s,l){ + l||(l={}),i(this,null);var c=n(this,o,l.bottom),f=!1,m=this;function v(w){ + if(typeof w=='string')g.value=w;else{ + if(f)return;f=!0,r.rmClass(c.parentNode,'dialog-opened'),c.parentNode.removeChild(c),m.focus(),l.onClose&&l.onClose(c); + } + }Zm(v,'close');var g=c.getElementsByTagName('input')[0],y;return g?(g.focus(),l.value&&(g.value=l.value,l.selectValueOnOpen!==!1&&g.select()),l.onInput&&r.on(g,'input',function(w){ + l.onInput(w,g.value,v); + }),l.onKeyUp&&r.on(g,'keyup',function(w){ + l.onKeyUp(w,g.value,v); + }),r.on(g,'keydown',function(w){ + l&&l.onKeyDown&&l.onKeyDown(w,g.value,v)||((w.keyCode==27||l.closeOnEnter!==!1&&w.keyCode==13)&&(g.blur(),r.e_stop(w),v()),w.keyCode==13&&s(g.value,w)); + }),l.closeOnBlur!==!1&&r.on(c,'focusout',function(w){ + w.relatedTarget!==null&&v(); + })):(y=c.getElementsByTagName('button')[0])&&(r.on(y,'click',function(){ + v(),m.focus(); + }),l.closeOnBlur!==!1&&r.on(y,'blur',v),y.focus()),v; + }),r.defineExtension('openConfirm',function(o,s,l){ + i(this,null);var c=n(this,o,l&&l.bottom),f=c.getElementsByTagName('button'),m=!1,v=this,g=1;function y(){ + m||(m=!0,r.rmClass(c.parentNode,'dialog-opened'),c.parentNode.removeChild(c),v.focus()); + }Zm(y,'close'),f[0].focus();for(var w=0;wowe});function uJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var rwe,OE,nwe,cJ,iwe,owe,jM=at(()=>{ + ir();ky();rwe=Object.defineProperty,OE=(e,t)=>rwe(e,'name',{value:t,configurable:!0});OE(uJ,'_mergeNamespaces');nwe={exports:{}};(function(e,t){ + (function(r){ + r(Kt(),Wf); + })(function(r){ + r.defineOption('search',{bottom:!1});function n(s,l,c,f,m){ + s.openDialog?s.openDialog(l,m,{value:f,selectValueOnOpen:!0,bottom:s.options.search.bottom}):m(prompt(c,f)); + }OE(n,'dialog');function i(s){ + return s.phrase('Jump to line:')+' '+s.phrase('(Use line:column or scroll% syntax)')+''; + }OE(i,'getJumpDialog');function o(s,l){ + var c=Number(l);return/^[-+]/.test(l)?s.getCursor().line+c:c-1; + }OE(o,'interpretLine'),r.commands.jumpToLine=function(s){ + var l=s.getCursor();n(s,i(s),s.phrase('Jump to line:'),l.line+1+':'+l.ch,function(c){ + if(c){ + var f;if(f=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(c))s.setCursor(o(s,f[1]),Number(f[2]));else if(f=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(c)){ + var m=Math.round(s.lineCount()*Number(f[1])/100);/^[-+]/.test(f[1])&&(m=l.line+m+1),s.setCursor(m-1,l.ch); + }else(f=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(c))&&s.setCursor(o(s,f[1]),l.ch); + } + }); + },r.keyMap.default['Alt-G']='jumpToLine'; + }); + })();cJ=nwe.exports,iwe=_t(cJ),owe=uJ({__proto__:null,default:iwe},[cJ]); +});var VM={};Ui(VM,{s:()=>uwe});function fJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var awe,Eo,swe,dJ,lwe,uwe,UM=at(()=>{ + ir();kE();NM();awe=Object.defineProperty,Eo=(e,t)=>awe(e,'name',{value:t,configurable:!0});Eo(fJ,'_mergeNamespaces');swe={exports:{}};(function(e,t){ + (function(r){ + r(Kt(),Qf(),Sy()); + })(function(r){ + var n=r.commands,i=r.Pos;function o(x,k,P){ + if(P<0&&k.ch==0)return x.clipPos(i(k.line-1));var D=x.getLine(k.line);if(P>0&&k.ch>=D.length)return x.clipPos(i(k.line+1,0));for(var N='start',I,V=k.ch,G=V,B=P<0?0:D.length,U=0;G!=B;G+=P,U++){ + var z=D.charAt(P<0?G-1:G),j=z!='_'&&r.isWordChar(z)?'w':'o';if(j=='w'&&z.toUpperCase()==z&&(j='W'),N=='start')j!='o'?(N='in',I=j):V=G+P;else if(N=='in'&&I!=j){ + if(I=='w'&&j=='W'&&P<0&&G--,I=='W'&&j=='w'&&P>0)if(G==V+1){ + I='w';continue; + }else G--;break; + } + }return i(k.line,G); + }Eo(o,'findPosSubword');function s(x,k){ + x.extendSelectionsBy(function(P){ + return x.display.shift||x.doc.extend||P.empty()?o(x.doc,P.head,k):k<0?P.from():P.to(); + }); + }Eo(s,'moveSubword'),n.goSubwordLeft=function(x){ + s(x,-1); + },n.goSubwordRight=function(x){ + s(x,1); + },n.scrollLineUp=function(x){ + var k=x.getScrollInfo();if(!x.somethingSelected()){ + var P=x.lineAtHeight(k.top+k.clientHeight,'local');x.getCursor().line>=P&&x.execCommand('goLineUp'); + }x.scrollTo(null,k.top-x.defaultTextHeight()); + },n.scrollLineDown=function(x){ + var k=x.getScrollInfo();if(!x.somethingSelected()){ + var P=x.lineAtHeight(k.top,'local')+1;x.getCursor().line<=P&&x.execCommand('goLineDown'); + }x.scrollTo(null,k.top+x.defaultTextHeight()); + },n.splitSelectionByLine=function(x){ + for(var k=x.listSelections(),P=[],D=0;DN.line&&V==I.line&&I.ch==0||P.push({anchor:V==N.line?N:i(V,0),head:V==I.line?I:i(V)});x.setSelections(P,0); + },n.singleSelectionTop=function(x){ + var k=x.listSelections()[0];x.setSelection(k.anchor,k.head,{scroll:!1}); + },n.selectLine=function(x){ + for(var k=x.listSelections(),P=[],D=0;DD?P.push(G,B):P.length&&(P[P.length-1]=B),D=B; + }x.operation(function(){ + for(var U=0;Ux.lastLine()?x.replaceRange(` +`+J,i(x.lastLine()),null,'+swapLine'):x.replaceRange(J+` +`,i(j,0),null,'+swapLine'); + }x.setSelections(N),x.scrollIntoView(); + }); + },n.swapLineDown=function(x){ + if(x.isReadOnly())return r.Pass;for(var k=x.listSelections(),P=[],D=x.lastLine()+1,N=k.length-1;N>=0;N--){ + var I=k[N],V=I.to().line+1,G=I.from().line;I.to().ch==0&&!I.empty()&&V--,V=0;B-=2){ + var U=P[B],z=P[B+1],j=x.getLine(U);U==x.lastLine()?x.replaceRange('',i(U-1),i(U),'+swapLine'):x.replaceRange('',i(U,0),i(U+1,0),'+swapLine'),x.replaceRange(j+` +`,i(z,0),null,'+swapLine'); + }x.scrollIntoView(); + }); + },n.toggleCommentIndented=function(x){ + x.toggleComment({indent:!0}); + },n.joinLines=function(x){ + for(var k=x.listSelections(),P=[],D=0;D=0;I--){ + var V=P[D[I]];if(!(G&&r.cmpPos(V.head,G)>0)){ + var B=c(x,V.head);G=B.from,x.replaceRange(k(B.word),B.from,B.to); + } + } + }); + }Eo(T,'modifyWordOrSelection'),n.smartBackspace=function(x){ + if(x.somethingSelected())return r.Pass;x.operation(function(){ + for(var k=x.listSelections(),P=x.getOption('indentUnit'),D=k.length-1;D>=0;D--){ + var N=k[D].head,I=x.getRange({line:N.line,ch:0},N),V=r.countColumn(I,null,x.getOption('tabSize')),G=x.findPosH(N,-1,'char',!1);if(I&&!/\S/.test(I)&&V%P==0){ + var B=new i(N.line,r.findColumn(I,V-P,P));B.ch!=N.ch&&(G=B); + }x.replaceRange('',G,N,'+delete'); + } + }); + },n.delLineRight=function(x){ + x.operation(function(){ + for(var k=x.listSelections(),P=k.length-1;P>=0;P--)x.replaceRange('',k[P].anchor,i(k[P].to().line),'+delete');x.scrollIntoView(); + }); + },n.upcaseAtCursor=function(x){ + T(x,function(k){ + return k.toUpperCase(); + }); + },n.downcaseAtCursor=function(x){ + T(x,function(k){ + return k.toLowerCase(); + }); + },n.setSublimeMark=function(x){ + x.state.sublimeMark&&x.state.sublimeMark.clear(),x.state.sublimeMark=x.setBookmark(x.getCursor()); + },n.selectToSublimeMark=function(x){ + var k=x.state.sublimeMark&&x.state.sublimeMark.find();k&&x.setSelection(x.getCursor(),k); + },n.deleteToSublimeMark=function(x){ + var k=x.state.sublimeMark&&x.state.sublimeMark.find();if(k){ + var P=x.getCursor(),D=k;if(r.cmpPos(P,D)>0){ + var N=D;D=P,P=N; + }x.state.sublimeKilled=x.getRange(P,D),x.replaceRange('',P,D); + } + },n.swapWithSublimeMark=function(x){ + var k=x.state.sublimeMark&&x.state.sublimeMark.find();k&&(x.state.sublimeMark.clear(),x.state.sublimeMark=x.setBookmark(x.getCursor()),x.setCursor(k)); + },n.sublimeYank=function(x){ + x.state.sublimeKilled!=null&&x.replaceSelection(x.state.sublimeKilled,null,'paste'); + },n.showInCenter=function(x){ + var k=x.cursorCoords(null,'local');x.scrollTo(null,(k.top+k.bottom)/2-x.getScrollInfo().clientHeight/2); + };function S(x){ + var k=x.getCursor('from'),P=x.getCursor('to');if(r.cmpPos(k,P)==0){ + var D=c(x,k);if(!D.word)return;k=D.from,P=D.to; + }return{from:k,to:P,query:x.getRange(k,P),word:D}; + }Eo(S,'getTarget');function A(x,k){ + var P=S(x);if(P){ + var D=P.query,N=x.getSearchCursor(D,k?P.to:P.from);(k?N.findNext():N.findPrevious())?x.setSelection(N.from(),N.to()):(N=x.getSearchCursor(D,k?i(x.firstLine(),0):x.clipPos(i(x.lastLine()))),(k?N.findNext():N.findPrevious())?x.setSelection(N.from(),N.to()):P.word&&x.setSelection(P.from,P.to)); + } + }Eo(A,'findAndGoTo'),n.findUnder=function(x){ + A(x,!0); + },n.findUnderPrevious=function(x){ + A(x,!1); + },n.findAllUnder=function(x){ + var k=S(x);if(k){ + for(var P=x.getSearchCursor(k.query),D=[],N=-1;P.findNext();)D.push({anchor:P.from(),head:P.to()}),P.from().line<=k.from.line&&P.from().ch<=k.from.ch&&N++;x.setSelections(D,N); + } + };var b=r.keyMap;b.macSublime={'Cmd-Left':'goLineStartSmart','Shift-Tab':'indentLess','Shift-Ctrl-K':'deleteLine','Alt-Q':'wrapLines','Ctrl-Left':'goSubwordLeft','Ctrl-Right':'goSubwordRight','Ctrl-Alt-Up':'scrollLineUp','Ctrl-Alt-Down':'scrollLineDown','Cmd-L':'selectLine','Shift-Cmd-L':'splitSelectionByLine',Esc:'singleSelectionTop','Cmd-Enter':'insertLineAfter','Shift-Cmd-Enter':'insertLineBefore','Cmd-D':'selectNextOccurrence','Shift-Cmd-Space':'selectScope','Shift-Cmd-M':'selectBetweenBrackets','Cmd-M':'goToBracket','Cmd-Ctrl-Up':'swapLineUp','Cmd-Ctrl-Down':'swapLineDown','Cmd-/':'toggleCommentIndented','Cmd-J':'joinLines','Shift-Cmd-D':'duplicateLine',F5:'sortLines','Shift-F5':'reverseSortLines','Cmd-F5':'sortLinesInsensitive','Shift-Cmd-F5':'reverseSortLinesInsensitive',F2:'nextBookmark','Shift-F2':'prevBookmark','Cmd-F2':'toggleBookmark','Shift-Cmd-F2':'clearBookmarks','Alt-F2':'selectBookmarks',Backspace:'smartBackspace','Cmd-K Cmd-D':'skipAndSelectNextOccurrence','Cmd-K Cmd-K':'delLineRight','Cmd-K Cmd-U':'upcaseAtCursor','Cmd-K Cmd-L':'downcaseAtCursor','Cmd-K Cmd-Space':'setSublimeMark','Cmd-K Cmd-A':'selectToSublimeMark','Cmd-K Cmd-W':'deleteToSublimeMark','Cmd-K Cmd-X':'swapWithSublimeMark','Cmd-K Cmd-Y':'sublimeYank','Cmd-K Cmd-C':'showInCenter','Cmd-K Cmd-G':'clearBookmarks','Cmd-K Cmd-Backspace':'delLineLeft','Cmd-K Cmd-1':'foldAll','Cmd-K Cmd-0':'unfoldAll','Cmd-K Cmd-J':'unfoldAll','Ctrl-Shift-Up':'addCursorToPrevLine','Ctrl-Shift-Down':'addCursorToNextLine','Cmd-F3':'findUnder','Shift-Cmd-F3':'findUnderPrevious','Alt-F3':'findAllUnder','Shift-Cmd-[':'fold','Shift-Cmd-]':'unfold','Cmd-I':'findIncremental','Shift-Cmd-I':'findIncrementalReverse','Cmd-H':'replace',F3:'findNext','Shift-F3':'findPrev',fallthrough:'macDefault'},r.normalizeKeyMap(b.macSublime),b.pcSublime={'Shift-Tab':'indentLess','Shift-Ctrl-K':'deleteLine','Alt-Q':'wrapLines','Ctrl-T':'transposeChars','Alt-Left':'goSubwordLeft','Alt-Right':'goSubwordRight','Ctrl-Up':'scrollLineUp','Ctrl-Down':'scrollLineDown','Ctrl-L':'selectLine','Shift-Ctrl-L':'splitSelectionByLine',Esc:'singleSelectionTop','Ctrl-Enter':'insertLineAfter','Shift-Ctrl-Enter':'insertLineBefore','Ctrl-D':'selectNextOccurrence','Shift-Ctrl-Space':'selectScope','Shift-Ctrl-M':'selectBetweenBrackets','Ctrl-M':'goToBracket','Shift-Ctrl-Up':'swapLineUp','Shift-Ctrl-Down':'swapLineDown','Ctrl-/':'toggleCommentIndented','Ctrl-J':'joinLines','Shift-Ctrl-D':'duplicateLine',F9:'sortLines','Shift-F9':'reverseSortLines','Ctrl-F9':'sortLinesInsensitive','Shift-Ctrl-F9':'reverseSortLinesInsensitive',F2:'nextBookmark','Shift-F2':'prevBookmark','Ctrl-F2':'toggleBookmark','Shift-Ctrl-F2':'clearBookmarks','Alt-F2':'selectBookmarks',Backspace:'smartBackspace','Ctrl-K Ctrl-D':'skipAndSelectNextOccurrence','Ctrl-K Ctrl-K':'delLineRight','Ctrl-K Ctrl-U':'upcaseAtCursor','Ctrl-K Ctrl-L':'downcaseAtCursor','Ctrl-K Ctrl-Space':'setSublimeMark','Ctrl-K Ctrl-A':'selectToSublimeMark','Ctrl-K Ctrl-W':'deleteToSublimeMark','Ctrl-K Ctrl-X':'swapWithSublimeMark','Ctrl-K Ctrl-Y':'sublimeYank','Ctrl-K Ctrl-C':'showInCenter','Ctrl-K Ctrl-G':'clearBookmarks','Ctrl-K Ctrl-Backspace':'delLineLeft','Ctrl-K Ctrl-1':'foldAll','Ctrl-K Ctrl-0':'unfoldAll','Ctrl-K Ctrl-J':'unfoldAll','Ctrl-Alt-Up':'addCursorToPrevLine','Ctrl-Alt-Down':'addCursorToNextLine','Ctrl-F3':'findUnder','Shift-Ctrl-F3':'findUnderPrevious','Alt-F3':'findAllUnder','Shift-Ctrl-[':'fold','Shift-Ctrl-]':'unfold','Ctrl-I':'findIncremental','Shift-Ctrl-I':'findIncrementalReverse','Ctrl-H':'replace',F3:'findNext','Shift-F3':'findPrev',fallthrough:'pcDefault'},r.normalizeKeyMap(b.pcSublime);var C=b.default==b.macDefault;b.sublime=C?b.macSublime:b.pcSublime; + }); + })();dJ=swe.exports,lwe=_t(dJ),uwe=fJ({__proto__:null,default:lwe},[dJ]); +});var hJ={};Ui(hJ,{j:()=>pwe});function pJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var cwe,Ce,fwe,mJ,dwe,pwe,vJ=at(()=>{ + ir();cwe=Object.defineProperty,Ce=(e,t)=>cwe(e,'name',{value:t,configurable:!0});Ce(pJ,'_mergeNamespaces');fwe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + r.defineMode('javascript',function(n,i){ + var o=n.indentUnit,s=i.statementIndent,l=i.jsonld,c=i.json||l,f=i.trackScope!==!1,m=i.typescript,v=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){ + function q(Sn){ + return{type:Sn,style:'keyword'}; + }Ce(q,'kw');var W=q('keyword a'),ce=q('keyword b'),we=q('keyword c'),ct=q('keyword d'),kt=q('operator'),Ve={type:'atom',style:'atom'};return{if:q('if'),while:W,with:W,else:ce,do:ce,try:ce,finally:ce,return:ct,break:ct,continue:ct,new:q('new'),delete:we,void:we,throw:we,debugger:q('debugger'),var:q('var'),const:q('var'),let:q('var'),function:q('function'),catch:q('catch'),for:q('for'),switch:q('switch'),case:q('case'),default:q('default'),in:kt,typeof:kt,instanceof:kt,true:Ve,false:Ve,null:Ve,undefined:Ve,NaN:Ve,Infinity:Ve,this:q('this'),class:q('class'),super:q('atom'),yield:we,export:q('export'),import:q('import'),extends:we,await:we}; + }(),y=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function T(q){ + for(var W=!1,ce,we=!1;(ce=q.next())!=null;){ + if(!W){ + if(ce=='/'&&!we)return;ce=='['?we=!0:we&&ce==']'&&(we=!1); + }W=!W&&ce=='\\'; + } + }Ce(T,'readRegexp');var S,A;function b(q,W,ce){ + return S=q,A=ce,W; + }Ce(b,'ret');function C(q,W){ + var ce=q.next();if(ce=='"'||ce=="'")return W.tokenize=x(ce),W.tokenize(q,W);if(ce=='.'&&q.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b('number','number');if(ce=='.'&&q.match('..'))return b('spread','meta');if(/[\[\]{}\(\),;\:\.]/.test(ce))return b(ce);if(ce=='='&&q.eat('>'))return b('=>','operator');if(ce=='0'&&q.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b('number','number');if(/\d/.test(ce))return q.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b('number','number');if(ce=='/')return q.eat('*')?(W.tokenize=k,k(q,W)):q.eat('/')?(q.skipToEnd(),b('comment','comment')):Ae(q,W,1)?(T(q),q.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b('regexp','string-2')):(q.eat('='),b('operator','operator',q.current()));if(ce=='`')return W.tokenize=P,P(q,W);if(ce=='#'&&q.peek()=='!')return q.skipToEnd(),b('meta','meta');if(ce=='#'&&q.eatWhile(v))return b('variable','property');if(ce=='<'&&q.match('!--')||ce=='-'&&q.match('->')&&!/\S/.test(q.string.slice(0,q.start)))return q.skipToEnd(),b('comment','comment');if(y.test(ce))return(ce!='>'||!W.lexical||W.lexical.type!='>')&&(q.eat('=')?(ce=='!'||ce=='=')&&q.eat('='):/[<>*+\-|&?]/.test(ce)&&(q.eat(ce),ce=='>'&&q.eat(ce))),ce=='?'&&q.eat('.')?b('.'):b('operator','operator',q.current());if(v.test(ce)){ + q.eatWhile(v);var we=q.current();if(W.lastType!='.'){ + if(g.propertyIsEnumerable(we)){ + var ct=g[we];return b(ct.type,ct.style,we); + }if(we=='async'&&q.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b('async','keyword',we); + }return b('variable','variable',we); + } + }Ce(C,'tokenBase');function x(q){ + return function(W,ce){ + var we=!1,ct;if(l&&W.peek()=='@'&&W.match(w))return ce.tokenize=C,b('jsonld-keyword','meta');for(;(ct=W.next())!=null&&!(ct==q&&!we);)we=!we&&ct=='\\';return we||(ce.tokenize=C),b('string','string'); + }; + }Ce(x,'tokenString');function k(q,W){ + for(var ce=!1,we;we=q.next();){ + if(we=='/'&&ce){ + W.tokenize=C;break; + }ce=we=='*'; + }return b('comment','comment'); + }Ce(k,'tokenComment');function P(q,W){ + for(var ce=!1,we;(we=q.next())!=null;){ + if(!ce&&(we=='`'||we=='$'&&q.eat('{'))){ + W.tokenize=C;break; + }ce=!ce&&we=='\\'; + }return b('quasi','string-2',q.current()); + }Ce(P,'tokenQuasi');var D='([{}])';function N(q,W){ + W.fatArrowAt&&(W.fatArrowAt=null);var ce=q.string.indexOf('=>',q.start);if(!(ce<0)){ + if(m){ + var we=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(q.string.slice(q.start,ce));we&&(ce=we.index); + }for(var ct=0,kt=!1,Ve=ce-1;Ve>=0;--Ve){ + var Sn=q.string.charAt(Ve),Vi=D.indexOf(Sn);if(Vi>=0&&Vi<3){ + if(!ct){ + ++Ve;break; + }if(--ct==0){ + Sn=='('&&(kt=!0);break; + } + }else if(Vi>=3&&Vi<6)++ct;else if(v.test(Sn))kt=!0;else if(/["'\/`]/.test(Sn))for(;;--Ve){ + if(Ve==0)return;var ld=q.string.charAt(Ve-1);if(ld==Sn&&q.string.charAt(Ve-2)!='\\'){ + Ve--;break; + } + }else if(kt&&!ct){ + ++Ve;break; + } + }kt&&!ct&&(W.fatArrowAt=Ve); + } + }Ce(N,'findFatArrow');var I={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,'jsonld-keyword':!0};function V(q,W,ce,we,ct,kt){ + this.indented=q,this.column=W,this.type=ce,this.prev=ct,this.info=kt,we!=null&&(this.align=we); + }Ce(V,'JSLexical');function G(q,W){ + if(!f)return!1;for(var ce=q.localVars;ce;ce=ce.next)if(ce.name==W)return!0;for(var we=q.context;we;we=we.prev)for(var ce=we.vars;ce;ce=ce.next)if(ce.name==W)return!0; + }Ce(G,'inScope');function B(q,W,ce,we,ct){ + var kt=q.cc;for(U.state=q,U.stream=ct,U.marked=null,U.cc=kt,U.style=W,q.lexical.hasOwnProperty('align')||(q.lexical.align=!0);;){ + var Ve=kt.length?kt.pop():c?Ue:He;if(Ve(ce,we)){ + for(;kt.length&&kt[kt.length-1].lex;)kt.pop()();return U.marked?U.marked:ce=='variable'&&G(q,we)?'variable-2':W; + } + } + }Ce(B,'parseJS');var U={state:null,column:null,marked:null,cc:null};function z(){ + for(var q=arguments.length-1;q>=0;q--)U.cc.push(arguments[q]); + }Ce(z,'pass');function j(){ + return z.apply(null,arguments),!0; + }Ce(j,'cont');function J(q,W){ + for(var ce=W;ce;ce=ce.next)if(ce.name==q)return!0;return!1; + }Ce(J,'inList');function K(q){ + var W=U.state;if(U.marked='def',!!f){ + if(W.context){ + if(W.lexical.info=='var'&&W.context&&W.context.block){ + var ce=ee(q,W.context);if(ce!=null){ + W.context=ce;return; + } + }else if(!J(q,W.localVars)){ + W.localVars=new xe(q,W.localVars);return; + } + }i.globalVars&&!J(q,W.globalVars)&&(W.globalVars=new xe(q,W.globalVars)); + } + }Ce(K,'register');function ee(q,W){ + if(W)if(W.block){ + var ce=ee(q,W.prev);return ce?ce==W.prev?W:new se(ce,W.vars,!0):null; + }else return J(q,W.vars)?W:new se(W.prev,new xe(q,W.vars),!1);else return null; + }Ce(ee,'registerVarScoped');function re(q){ + return q=='public'||q=='private'||q=='protected'||q=='abstract'||q=='readonly'; + }Ce(re,'isModifier');function se(q,W,ce){ + this.prev=q,this.vars=W,this.block=ce; + }Ce(se,'Context');function xe(q,W){ + this.name=q,this.next=W; + }Ce(xe,'Var');var Re=new xe('this',new xe('arguments',null));function Se(){ + U.state.context=new se(U.state.context,U.state.localVars,!1),U.state.localVars=Re; + }Ce(Se,'pushcontext');function ie(){ + U.state.context=new se(U.state.context,U.state.localVars,!0),U.state.localVars=null; + }Ce(ie,'pushblockcontext'),Se.lex=ie.lex=!0;function ye(){ + U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev; + }Ce(ye,'popcontext'),ye.lex=!0;function me(q,W){ + var ce=Ce(function(){ + var we=U.state,ct=we.indented;if(we.lexical.type=='stat')ct=we.lexical.indented;else for(var kt=we.lexical;kt&&kt.type==')'&&kt.align;kt=kt.prev)ct=kt.indented;we.lexical=new V(ct,U.stream.column(),q,null,we.lexical,W); + },'result');return ce.lex=!0,ce; + }Ce(me,'pushlex');function Oe(){ + var q=U.state;q.lexical.prev&&(q.lexical.type==')'&&(q.indented=q.lexical.indented),q.lexical=q.lexical.prev); + }Ce(Oe,'poplex'),Oe.lex=!0;function Ge(q){ + function W(ce){ + return ce==q?j():q==';'||ce=='}'||ce==')'||ce==']'?z():j(W); + }return Ce(W,'exp'),W; + }Ce(Ge,'expect');function He(q,W){ + return q=='var'?j(me('vardef',W),rd,Ge(';'),Oe):q=='keyword a'?j(me('form'),he,He,Oe):q=='keyword b'?j(me('form'),He,Oe):q=='keyword d'?U.stream.match(/^\s*$/,!1)?j():j(me('stat'),pe,Ge(';'),Oe):q=='debugger'?j(Ge(';')):q=='{'?j(me('}'),ie,ri,Oe,ye):q==';'?j():q=='if'?(U.state.lexical.info=='else'&&U.state.cc[U.state.cc.length-1]==Oe&&U.state.cc.pop()(),j(me('form'),he,He,Oe,oh)):q=='function'?j(ro):q=='for'?j(me('form'),ie,ah,He,ye,Oe):q=='class'||m&&W=='interface'?(U.marked='keyword',j(me('form',q=='class'?q:W),Ul,Oe)):q=='variable'?m&&W=='declare'?(U.marked='keyword',j(He)):m&&(W=='module'||W=='enum'||W=='type')&&U.stream.match(/^\s*\w/,!1)?(U.marked='keyword',W=='enum'?j(Lo):W=='type'?j(sd,Ge('operator'),ut,Ge(';')):j(me('form'),ni,Ge('{'),me('}'),ri,Oe,Oe)):m&&W=='namespace'?(U.marked='keyword',j(me('form'),Ue,He,Oe)):m&&W=='abstract'?(U.marked='keyword',j(He)):j(me('stat'),Vs):q=='switch'?j(me('form'),he,Ge('{'),me('}','switch'),ie,ri,Oe,Oe,ye):q=='case'?j(Ue,Ge(':')):q=='default'?j(Ge(':')):q=='catch'?j(me('form'),Se,dr,He,Oe,ye):q=='export'?j(me('stat'),oc,Oe):q=='import'?j(me('stat'),xr,Oe):q=='async'?j(He):W=='@'?j(Ue,He):z(me('stat'),Ue,Ge(';'),Oe); + }Ce(He,'statement');function dr(q){ + if(q=='(')return j(ca,Ge(')')); + }Ce(dr,'maybeCatchBinding');function Ue(q,W){ + return Fe(q,W,!1); + }Ce(Ue,'expression');function bt(q,W){ + return Fe(q,W,!0); + }Ce(bt,'expressionNoComma');function he(q){ + return q!='('?z():j(me(')'),pe,Ge(')'),Oe); + }Ce(he,'parenExpr');function Fe(q,W,ce){ + if(U.state.fatArrowAt==U.stream.start){ + var we=ce?Or:wt;if(q=='(')return j(Se,me(')'),pr(ca,')'),Oe,Ge('=>'),we,ye);if(q=='variable')return z(Se,ni,Ge('=>'),we,ye); + }var ct=ce?st:Me;return I.hasOwnProperty(q)?j(ct):q=='function'?j(ro,ct):q=='class'||m&&W=='interface'?(U.marked='keyword',j(me('form'),Vl,Oe)):q=='keyword c'||q=='async'?j(ce?bt:Ue):q=='('?j(me(')'),pe,Ge(')'),Oe,ct):q=='operator'||q=='spread'?j(ce?bt:Ue):q=='['?j(me(']'),Pt,Oe,ct):q=='{'?Il(xi,'}',null,ct):q=='quasi'?z(nt,ct):q=='new'?j(ua(ce)):j(); + }Ce(Fe,'expressionInner');function pe(q){ + return q.match(/[;\}\)\],]/)?z():z(Ue); + }Ce(pe,'maybeexpression');function Me(q,W){ + return q==','?j(pe):st(q,W,!1); + }Ce(Me,'maybeoperatorComma');function st(q,W,ce){ + var we=ce==!1?Me:st,ct=ce==!1?Ue:bt;if(q=='=>')return j(Se,ce?Or:wt,ye);if(q=='operator')return/\+\+|--/.test(W)||m&&W=='!'?j(we):m&&W=='<'&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?j(me('>'),pr(ut,'>'),Oe,we):W=='?'?j(Ue,Ge(':'),ct):j(ct);if(q=='quasi')return z(nt,we);if(q!=';'){ + if(q=='(')return Il(bt,')','call',we);if(q=='.')return j(Ml,we);if(q=='[')return j(me(']'),pe,Ge(']'),Oe,we);if(m&&W=='as')return U.marked='keyword',j(ut,we);if(q=='regexp')return U.state.lastType=U.marked='operator',U.stream.backUp(U.stream.pos-U.stream.start-1),j(ct); + } + }Ce(st,'maybeoperatorNoComma');function nt(q,W){ + return q!='quasi'?z():W.slice(W.length-2)!='${'?j(nt):j(pe,lt); + }Ce(nt,'quasi');function lt(q){ + if(q=='}')return U.marked='string-2',U.state.tokenize=P,j(nt); + }Ce(lt,'continueQuasi');function wt(q){ + return N(U.stream,U.state),z(q=='{'?He:Ue); + }Ce(wt,'arrowBody');function Or(q){ + return N(U.stream,U.state),z(q=='{'?He:bt); + }Ce(Or,'arrowBodyNoComma');function ua(q){ + return function(W){ + return W=='.'?j(q?nc:Rl):W=='variable'&&m?j(Us,q?st:Me):z(q?bt:Ue); + }; + }Ce(ua,'maybeTarget');function Rl(q,W){ + if(W=='target')return U.marked='keyword',j(Me); + }Ce(Rl,'target');function nc(q,W){ + if(W=='target')return U.marked='keyword',j(st); + }Ce(nc,'targetNoComma');function Vs(q){ + return q==':'?j(Oe,He):z(Me,Ge(';'),Oe); + }Ce(Vs,'maybelabel');function Ml(q){ + if(q=='variable')return U.marked='property',j(); + }Ce(Ml,'property');function xi(q,W){ + if(q=='async')return U.marked='property',j(xi);if(q=='variable'||U.style=='keyword'){ + if(U.marked='property',W=='get'||W=='set')return j(ic);var ce;return m&&U.state.fatArrowAt==U.stream.start&&(ce=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ce[0].length),j(tn); + }else{ + if(q=='number'||q=='string')return U.marked=l?'property':U.style+' property',j(tn);if(q=='jsonld-keyword')return j(tn);if(m&&re(W))return U.marked='keyword',j(xi);if(q=='[')return j(Ue,Ya,Ge(']'),tn);if(q=='spread')return j(bt,tn);if(W=='*')return U.marked='keyword',j(xi);if(q==':')return z(tn); + } + }Ce(xi,'objprop');function ic(q){ + return q!='variable'?z(tn):(U.marked='property',j(ro)); + }Ce(ic,'getterSetter');function tn(q){ + if(q==':')return j(bt);if(q=='(')return z(ro); + }Ce(tn,'afterprop');function pr(q,W,ce){ + function we(ct,kt){ + if(ce?ce.indexOf(ct)>-1:ct==','){ + var Ve=U.state.lexical;return Ve.info=='call'&&(Ve.pos=(Ve.pos||0)+1),j(function(Sn,Vi){ + return Sn==W||Vi==W?z():z(q); + },we); + }return ct==W||kt==W?j():ce&&ce.indexOf(';')>-1?z(q):j(Ge(W)); + }return Ce(we,'proceed'),function(ct,kt){ + return ct==W||kt==W?j():z(q,we); + }; + }Ce(pr,'commasep');function Il(q,W,ce){ + for(var we=3;we'),ut);if(q=='quasi')return z(ko,wi); + }Ce(ut,'typeexpr');function Nr(q){ + if(q=='=>')return j(ut); + }Ce(Nr,'maybeReturnType');function ql(q){ + return q.match(/[\}\)\]]/)?j():q==','||q==';'?j(ql):z(rn,ql); + }Ce(ql,'typeprops');function rn(q,W){ + if(q=='variable'||U.style=='keyword')return U.marked='property',j(rn);if(W=='?'||q=='number'||q=='string')return j(rn);if(q==':')return j(ut);if(q=='[')return j(Ge('variable'),rt,Ge(']'),rn);if(q=='(')return z(qi,rn);if(!q.match(/[;\}\)\],]/))return j(); + }Ce(rn,'typeprop');function ko(q,W){ + return q!='quasi'?z():W.slice(W.length-2)!='${'?j(ko):j(ut,mn); + }Ce(ko,'quasiType');function mn(q){ + if(q=='}')return U.marked='string-2',U.state.tokenize=P,j(ko); + }Ce(mn,'continueQuasiType');function jl(q,W){ + return q=='variable'&&U.stream.match(/^\s*[?:]/,!1)||W=='?'?j(jl):q==':'?j(ut):q=='spread'?j(jl):z(ut); + }Ce(jl,'typearg');function wi(q,W){ + if(W=='<')return j(me('>'),pr(ut,'>'),Oe,wi);if(W=='|'||q=='.'||W=='&')return j(ut);if(q=='[')return j(ut,Ge(']'),wi);if(W=='extends'||W=='implements')return U.marked='keyword',j(ut);if(W=='?')return j(ut,Ge(':'),ut); + }Ce(wi,'afterType');function Us(q,W){ + if(W=='<')return j(me('>'),pr(ut,'>'),Oe,wi); + }Ce(Us,'maybeTypeArgs');function Ka(){ + return z(ut,td); + }Ce(Ka,'typeparam');function td(q,W){ + if(W=='=')return j(ut); + }Ce(td,'maybeTypeDefault');function rd(q,W){ + return W=='enum'?(U.marked='keyword',j(Lo)):z(ni,Ya,Oo,od); + }Ce(rd,'vardef');function ni(q,W){ + if(m&&re(W))return U.marked='keyword',j(ni);if(q=='variable')return K(W),j();if(q=='spread')return j(ni);if(q=='[')return Il(id,']');if(q=='{')return Il(nd,'}'); + }Ce(ni,'pattern');function nd(q,W){ + return q=='variable'&&!U.stream.match(/^\s*:/,!1)?(K(W),j(Oo)):(q=='variable'&&(U.marked='property'),q=='spread'?j(ni):q=='}'?z():q=='['?j(Ue,Ge(']'),Ge(':'),nd):j(Ge(':'),ni,Oo)); + }Ce(nd,'proppattern');function id(){ + return z(ni,Oo); + }Ce(id,'eltpattern');function Oo(q,W){ + if(W=='=')return j(bt); + }Ce(Oo,'maybeAssign');function od(q){ + if(q==',')return j(rd); + }Ce(od,'vardefCont');function oh(q,W){ + if(q=='keyword b'&&W=='else')return j(me('form','else'),He,Oe); + }Ce(oh,'maybeelse');function ah(q,W){ + if(W=='await')return j(ah);if(q=='(')return j(me(')'),ad,Oe); + }Ce(ah,'forspec');function ad(q){ + return q=='var'?j(rd,Xa):q=='variable'?j(Xa):z(Xa); + }Ce(ad,'forspec1');function Xa(q,W){ + return q==')'?j():q==';'?j(Xa):W=='in'||W=='of'?(U.marked='keyword',j(Ue,Xa)):z(Ue,Xa); + }Ce(Xa,'forspec2');function ro(q,W){ + if(W=='*')return U.marked='keyword',j(ro);if(q=='variable')return K(W),j(ro);if(q=='(')return j(Se,me(')'),pr(ca,')'),Oe,Fl,He,ye);if(m&&W=='<')return j(me('>'),pr(Ka,'>'),Oe,ro); + }Ce(ro,'functiondef');function qi(q,W){ + if(W=='*')return U.marked='keyword',j(qi);if(q=='variable')return K(W),j(qi);if(q=='(')return j(Se,me(')'),pr(ca,')'),Oe,Fl,ye);if(m&&W=='<')return j(me('>'),pr(Ka,'>'),Oe,qi); + }Ce(qi,'functiondecl');function sd(q,W){ + if(q=='keyword'||q=='variable')return U.marked='type',j(sd);if(W=='<')return j(me('>'),pr(Ka,'>'),Oe); + }Ce(sd,'typename');function ca(q,W){ + return W=='@'&&j(Ue,ca),q=='spread'?j(ca):m&&re(W)?(U.marked='keyword',j(ca)):m&&q=='this'?j(Ya,Oo):z(ni,Ya,Oo); + }Ce(ca,'funarg');function Vl(q,W){ + return q=='variable'?Ul(q,W):No(q,W); + }Ce(Vl,'classExpression');function Ul(q,W){ + if(q=='variable')return K(W),j(No); + }Ce(Ul,'className');function No(q,W){ + if(W=='<')return j(me('>'),pr(Ka,'>'),Oe,No);if(W=='extends'||W=='implements'||m&&q==',')return W=='implements'&&(U.marked='keyword'),j(m?ut:Ue,No);if(q=='{')return j(me('}'),no,Oe); + }Ce(No,'classNameAfter');function no(q,W){ + if(q=='async'||q=='variable'&&(W=='static'||W=='get'||W=='set'||m&&re(W))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked='keyword',j(no);if(q=='variable'||U.style=='keyword')return U.marked='property',j(ji,no);if(q=='number'||q=='string')return j(ji,no);if(q=='[')return j(Ue,Ya,Ge(']'),ji,no);if(W=='*')return U.marked='keyword',j(no);if(m&&q=='(')return z(qi,no);if(q==';'||q==',')return j(no);if(q=='}')return j();if(W=='@')return j(Ue,no); + }Ce(no,'classBody');function ji(q,W){ + if(W=='!'||W=='?')return j(ji);if(q==':')return j(ut,Oo);if(W=='=')return j(bt);var ce=U.state.lexical.prev,we=ce&&ce.info=='interface';return z(we?qi:ro); + }Ce(ji,'classfield');function oc(q,W){ + return W=='*'?(U.marked='keyword',j(ii,Ge(';'))):W=='default'?(U.marked='keyword',j(Ue,Ge(';'))):q=='{'?j(pr(ac,'}'),ii,Ge(';')):z(He); + }Ce(oc,'afterExport');function ac(q,W){ + if(W=='as')return U.marked='keyword',j(Ge('variable'));if(q=='variable')return z(bt,ac); + }Ce(ac,'exportField');function xr(q){ + return q=='string'?j():q=='('?z(Ue):q=='.'?z(Me):z(Qe,Do,ii); + }Ce(xr,'afterImport');function Qe(q,W){ + return q=='{'?Il(Qe,'}'):(q=='variable'&&K(W),W=='*'&&(U.marked='keyword'),j(sc)); + }Ce(Qe,'importSpec');function Do(q){ + if(q==',')return j(Qe,Do); + }Ce(Do,'maybeMoreImports');function sc(q,W){ + if(W=='as')return U.marked='keyword',j(Qe); + }Ce(sc,'maybeAs');function ii(q,W){ + if(W=='from')return U.marked='keyword',j(Ue); + }Ce(ii,'maybeFrom');function Pt(q){ + return q==']'?j():z(pr(bt,']')); + }Ce(Pt,'arrayLiteral');function Lo(){ + return z(me('form'),ni,Ge('{'),me('}'),pr(Bs,'}'),Oe,Oe); + }Ce(Lo,'enumdef');function Bs(){ + return z(ni,Oo); + }Ce(Bs,'enummember');function lc(q,W){ + return q.lastType=='operator'||q.lastType==','||y.test(W.charAt(0))||/[,.]/.test(W.charAt(0)); + }Ce(lc,'isContinuedStatement');function Ae(q,W,ce){ + return W.tokenize==C&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(W.lastType)||W.lastType=='quasi'&&/\{\s*$/.test(q.string.slice(0,q.pos-(ce||0))); + }return Ce(Ae,'expressionAllowed'),{startState:function(q){ + var W={tokenize:C,lastType:'sof',cc:[],lexical:new V((q||0)-o,0,'block',!1),localVars:i.localVars,context:i.localVars&&new se(null,null,!1),indented:q||0};return i.globalVars&&typeof i.globalVars=='object'&&(W.globalVars=i.globalVars),W; + },token:function(q,W){ + if(q.sol()&&(W.lexical.hasOwnProperty('align')||(W.lexical.align=!1),W.indented=q.indentation(),N(q,W)),W.tokenize!=k&&q.eatSpace())return null;var ce=W.tokenize(q,W);return S=='comment'?ce:(W.lastType=S=='operator'&&(A=='++'||A=='--')?'incdec':S,B(W,ce,S,A,q)); + },indent:function(q,W){ + if(q.tokenize==k||q.tokenize==P)return r.Pass;if(q.tokenize!=C)return 0;var ce=W&&W.charAt(0),we=q.lexical,ct;if(!/^\s*else\b/.test(W))for(var kt=q.cc.length-1;kt>=0;--kt){ + var Ve=q.cc[kt];if(Ve==Oe)we=we.prev;else if(Ve!=oh&&Ve!=ye)break; + }for(;(we.type=='stat'||we.type=='form')&&(ce=='}'||(ct=q.cc[q.cc.length-1])&&(ct==Me||ct==st)&&!/^[,\.=+\-*:?[\(]/.test(W));)we=we.prev;s&&we.type==')'&&we.prev.type=='stat'&&(we=we.prev);var Sn=we.type,Vi=ce==Sn;return Sn=='vardef'?we.indented+(q.lastType=='operator'||q.lastType==','?we.info.length+1:0):Sn=='form'&&ce=='{'?we.indented:Sn=='form'?we.indented+o:Sn=='stat'?we.indented+(lc(q,W)?s||o:0):we.info=='switch'&&!Vi&&i.doubleIndentSwitch!=!1?we.indented+(/^(?:case|default)\b/.test(W)?o:2*o):we.align?we.column+(Vi?0:1):we.indented+(Vi?0:o); + },electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:'/*',blockCommentEnd:c?null:'*/',blockCommentContinue:c?null:' * ',lineComment:c?null:'//',fold:'brace',closeBrackets:"()[]{}''\"\"``",helperType:c?'json':'javascript',jsonldMode:l,jsonMode:c,expressionAllowed:Ae,skipExpression:function(q){ + B(q,'atom','atom','true',new r.StringStream('',2,null)); + }}; + }),r.registerHelper('wordChars','javascript',/[\w$]/),r.defineMIME('text/javascript','javascript'),r.defineMIME('text/ecmascript','javascript'),r.defineMIME('application/javascript','javascript'),r.defineMIME('application/x-javascript','javascript'),r.defineMIME('application/ecmascript','javascript'),r.defineMIME('application/json',{name:'javascript',json:!0}),r.defineMIME('application/x-json',{name:'javascript',json:!0}),r.defineMIME('application/manifest+json',{name:'javascript',json:!0}),r.defineMIME('application/ld+json',{name:'javascript',jsonld:!0}),r.defineMIME('text/typescript',{name:'javascript',typescript:!0}),r.defineMIME('application/typescript',{name:'javascript',typescript:!0}); + }); + })();mJ=fwe.exports,dwe=_t(mJ),pwe=pJ({__proto__:null,default:dwe},[mJ]); +});var bJ={};Ui(bJ,{c:()=>gwe});function gJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var mwe,NE,hwe,yJ,vwe,gwe,AJ=at(()=>{ + ir();mwe=Object.defineProperty,NE=(e,t)=>mwe(e,'name',{value:t,configurable:!0});NE(gJ,'_mergeNamespaces');hwe={exports:{}};(function(e,t){ + (function(r){ + r(Kt()); + })(function(r){ + var n={},i=/[^\s\u00a0]/,o=r.Pos,s=r.cmpPos;function l(m){ + var v=m.search(i);return v==-1?0:v; + }NE(l,'firstNonWS'),r.commands.toggleComment=function(m){ + m.toggleComment(); + },r.defineExtension('toggleComment',function(m){ + m||(m=n);for(var v=this,g=1/0,y=this.listSelections(),w=null,T=y.length-1;T>=0;T--){ + var S=y[T].from(),A=y[T].to();S.line>=g||(A.line>=g&&(A=o(g,0)),g=S.line,w==null?v.uncomment(S,A,m)?w='un':(v.lineComment(S,A,m),w='line'):w=='un'?v.uncomment(S,A,m):v.lineComment(S,A,m)); + } + });function c(m,v,g){ + return/\bstring\b/.test(m.getTokenTypeAt(o(v.line,0)))&&!/^[\'\"\`]/.test(g); + }NE(c,'probablyInsideString');function f(m,v){ + var g=m.getMode();return g.useInnerComments===!1||!g.innerMode?g:m.getModeAt(v); + }NE(f,'getMode'),r.defineExtension('lineComment',function(m,v,g){ + g||(g=n);var y=this,w=f(y,m),T=y.getLine(m.line);if(!(T==null||c(y,m,T))){ + var S=g.lineComment||w.lineComment;if(!S){ + (g.blockCommentStart||w.blockCommentStart)&&(g.fullLines=!0,y.blockComment(m,v,g));return; + }var A=Math.min(v.ch!=0||v.line==m.line?v.line+1:v.line,y.lastLine()+1),b=g.padding==null?' ':g.padding,C=g.commentBlankLines||m.line==v.line;y.operation(function(){ + if(g.indent){ + for(var x=null,k=m.line;kD.length)&&(x=D); + }for(var k=m.line;kA||y.operation(function(){ + if(g.fullLines!=!1){ + var C=i.test(y.getLine(A));y.replaceRange(b+S,o(A)),y.replaceRange(T+b,o(m.line,0));var x=g.blockCommentLead||w.blockCommentLead;if(x!=null)for(var k=m.line+1;k<=A;++k)(k!=A||C)&&y.replaceRange(x+b,o(k,0)); + }else{ + var P=s(y.getCursor('to'),v)==0,D=!y.somethingSelected();y.replaceRange(S,v),P&&y.setSelection(D?v:y.getCursor('from'),v),y.replaceRange(T,m); + } + }); + } + }),r.defineExtension('uncomment',function(m,v,g){ + g||(g=n);var y=this,w=f(y,m),T=Math.min(v.ch!=0||v.line==m.line?v.line:v.line-1,y.lastLine()),S=Math.min(m.line,T),A=g.lineComment||w.lineComment,b=[],C=g.padding==null?' ':g.padding,x;e:{ + if(!A)break e;for(var k=S;k<=T;++k){ + var P=y.getLine(k),D=P.indexOf(A);if(D>-1&&!/comment/.test(y.getTokenTypeAt(o(k,D+1)))&&(D=-1),D==-1&&i.test(P)||D>-1&&i.test(P.slice(0,D)))break e;b.push(P); + }if(y.operation(function(){ + for(var se=S;se<=T;++se){ + var xe=b[se-S],Re=xe.indexOf(A),Se=Re+A.length;Re<0||(xe.slice(Se,Se+C.length)==C&&(Se+=C.length),x=!0,y.replaceRange('',o(se,Re),o(se,Se))); + } + }),x)return!0; + }var N=g.blockCommentStart||w.blockCommentStart,I=g.blockCommentEnd||w.blockCommentEnd;if(!N||!I)return!1;var V=g.blockCommentLead||w.blockCommentLead,G=y.getLine(S),B=G.indexOf(N);if(B==-1)return!1;var U=T==S?G:y.getLine(T),z=U.indexOf(I,T==S?B+N.length:0),j=o(S,B+1),J=o(T,z+1);if(z==-1||!/comment/.test(y.getTokenTypeAt(j))||!/comment/.test(y.getTokenTypeAt(J))||y.getRange(j,J,` +`).indexOf(I)>-1)return!1;var K=G.lastIndexOf(N,m.ch),ee=K==-1?-1:G.slice(0,m.ch).indexOf(I,K+N.length);if(K!=-1&&ee!=-1&&ee+I.length!=m.ch)return!1;ee=U.indexOf(I,v.ch);var re=U.slice(v.ch).lastIndexOf(N,ee-v.ch);return K=ee==-1||re==-1?-1:v.ch+re,ee!=-1&&K!=-1&&K!=v.ch?!1:(y.operation(function(){ + y.replaceRange('',o(T,z-(C&&U.slice(z-C.length,z)==C?C.length:0)),o(T,z+I.length));var se=B+N.length;if(C&&G.slice(se,se+C.length)==C&&(se+=C.length),y.replaceRange('',o(S,B),o(S,se)),V)for(var xe=S+1;xe<=T;++xe){ + var Re=y.getLine(xe),Se=Re.indexOf(V);if(!(Se==-1||i.test(Re.slice(0,Se)))){ + var ie=Se+V.length;C&&Re.slice(ie,ie+C.length)==C&&(ie+=C.length),y.replaceRange('',o(xe,Se),o(xe,ie)); + } + } + }),!0); + }); + }); + })();yJ=hwe.exports,vwe=_t(yJ),gwe=gJ({__proto__:null,default:vwe},[yJ]); +});var BM={};Ui(BM,{s:()=>xwe});function xJ(e,t){ + for(var r=0;rn[i]}); + } + } + }return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:'Module'})); +}var ywe,Ar,bwe,wJ,Awe,xwe,GM=at(()=>{ + ir();kE();ky();ywe=Object.defineProperty,Ar=(e,t)=>ywe(e,'name',{value:t,configurable:!0});Ar(xJ,'_mergeNamespaces');bwe={exports:{}};(function(e,t){ + (function(r){ + r(Kt(),Qf(),Wf); + })(function(r){ + r.defineOption('search',{bottom:!1});function n(N,I){ + return typeof N=='string'?N=new RegExp(N.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&'),I?'gi':'g'):N.global||(N=new RegExp(N.source,N.ignoreCase?'gi':'g')),{token:function(V){ + N.lastIndex=V.pos;var G=N.exec(V.string);if(G&&G.index==V.pos)return V.pos+=G[0].length||1,'searching';G?V.pos=G.index:V.skipToEnd(); + }}; + }Ar(n,'searchOverlay');function i(){ + this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null; + }Ar(i,'SearchState');function o(N){ + return N.state.search||(N.state.search=new i); + }Ar(o,'getSearchState');function s(N){ + return typeof N=='string'&&N==N.toLowerCase(); + }Ar(s,'queryCaseInsensitive');function l(N,I,V){ + return N.getSearchCursor(I,V,{caseFold:s(I),multiline:!0}); + }Ar(l,'getSearchCursor');function c(N,I,V,G,B){ + N.openDialog(I,G,{value:V,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){ + S(N); + },onKeyDown:B,bottom:N.options.search.bottom}); + }Ar(c,'persistentDialog');function f(N,I,V,G,B){ + N.openDialog?N.openDialog(I,B,{value:G,selectValueOnOpen:!0,bottom:N.options.search.bottom}):B(prompt(V,G)); + }Ar(f,'dialog');function m(N,I,V,G){ + N.openConfirm?N.openConfirm(I,G):confirm(V)&&G[0](); + }Ar(m,'confirmDialog');function v(N){ + return N.replace(/\\([nrt\\])/g,function(I,V){ + return V=='n'?` +`:V=='r'?'\r':V=='t'?' ':V=='\\'?'\\':I; + }); + }Ar(v,'parseString');function g(N){ + var I=N.match(/^\/(.*)\/([a-z]*)$/);if(I)try{ + N=new RegExp(I[1],I[2].indexOf('i')==-1?'':'i'); + }catch{}else N=v(N);return(typeof N=='string'?N=='':N.test(''))&&(N=/x^/),N; + }Ar(g,'parseQuery');function y(N,I,V){ + I.queryText=V,I.query=g(V),N.removeOverlay(I.overlay,s(I.query)),I.overlay=n(I.query,s(I.query)),N.addOverlay(I.overlay),N.showMatchesOnScrollbar&&(I.annotate&&(I.annotate.clear(),I.annotate=null),I.annotate=N.showMatchesOnScrollbar(I.query,s(I.query))); + }Ar(y,'startSearch');function w(N,I,V,G){ + var B=o(N);if(B.query)return T(N,I);var U=N.getSelection()||B.lastQuery;if(U instanceof RegExp&&U.source=='x^'&&(U=null),V&&N.openDialog){ + var z=null,j=Ar(function(J,K){ + r.e_stop(K),J&&(J!=B.queryText&&(y(N,B,J),B.posFrom=B.posTo=N.getCursor()),z&&(z.style.opacity=1),T(N,K.shiftKey,function(ee,re){ + var se;re.line<3&&document.querySelector&&(se=N.display.wrapper.querySelector('.CodeMirror-dialog'))&&se.getBoundingClientRect().bottom-4>N.cursorCoords(re,'window').top&&((z=se).style.opacity=.4); + })); + },'searchNext');c(N,b(N),U,j,function(J,K){ + var ee=r.keyName(J),re=N.getOption('extraKeys'),se=re&&re[ee]||r.keyMap[N.getOption('keyMap')][ee];se=='findNext'||se=='findPrev'||se=='findPersistentNext'||se=='findPersistentPrev'?(r.e_stop(J),y(N,o(N),K),N.execCommand(se)):(se=='find'||se=='findPersistent')&&(r.e_stop(J),j(K,J)); + }),G&&U&&(y(N,B,U),T(N,I)); + }else f(N,b(N),'Search for:',U,function(J){ + J&&!B.query&&N.operation(function(){ + y(N,B,J),B.posFrom=B.posTo=N.getCursor(),T(N,I); + }); + }); + }Ar(w,'doSearch');function T(N,I,V){ + N.operation(function(){ + var G=o(N),B=l(N,G.query,I?G.posFrom:G.posTo);!B.find(I)&&(B=l(N,G.query,I?r.Pos(N.lastLine()):r.Pos(N.firstLine(),0)),!B.find(I))||(N.setSelection(B.from(),B.to()),N.scrollIntoView({from:B.from(),to:B.to()},20),G.posFrom=B.from(),G.posTo=B.to(),V&&V(B.from(),B.to())); + }); + }Ar(T,'findNext');function S(N){ + N.operation(function(){ + var I=o(N);I.lastQuery=I.query,I.query&&(I.query=I.queryText=null,N.removeOverlay(I.overlay),I.annotate&&(I.annotate.clear(),I.annotate=null)); + }); + }Ar(S,'clearSearch');function A(N,I){ + var V=N?document.createElement(N):document.createDocumentFragment();for(var G in I)V[G]=I[G];for(var B=2;B{ + ia();OM();Zc();ir();tt.registerHelper('hint','graphql',(e,t)=>{ + let{schema:r,externalFragments:n}=t;if(!r)return;let i=e.getCursor(),o=e.getTokenAt(i),s=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,l=new mo(i.line,s),c={list:ED(r,e.getValue(),l,o,n).map(f=>({text:f.label,type:f.type,description:f.documentation,isDeprecated:f.isDeprecated,deprecationReason:f.deprecationReason})),from:{line:i.line,ch:s},to:{line:i.line,ch:o.end}};return c!=null&&c.list&&c.list.length>0&&(c.from=tt.Pos(c.from.line,c.from.ch),c.to=tt.Pos(c.to.line,c.to.ch),tt.signal(e,'hasCompletion',e,c,o)),c; + }); +});var Twe={};var TJ,Ewe,CJ=at(()=>{ + ia();Zc();ir();TJ=['error','warning','information','hint'],Ewe={'GraphQL: Validation':'validation','GraphQL: Deprecation':'deprecation','GraphQL: Syntax':'syntax'};tt.registerHelper('lint','graphql',(e,t)=>{ + let{schema:r,validationRules:n,externalFragments:i}=t;return PD(e,r,n,void 0,i).map(o=>({message:o.message,severity:o.severity?TJ[o.severity-1]:TJ[0],type:o.source?Ewe[o.source]:void 0,from:tt.Pos(o.range.start.line,o.range.start.character),to:tt.Pos(o.range.end.line,o.range.end.character)})); + }); +});function Oy(e,t){ + let r=[],n=e;for(;n!=null&&n.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i]); +}var Cwe,Swe,Ny=at(()=>{ + Cwe=Object.defineProperty,Swe=(e,t)=>Cwe(e,'name',{value:t,configurable:!0});Swe(Oy,'forEachState'); +});function Dy(e,t){ + let r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return Oy(t,n=>{ + var i,o;switch(n.kind){ + case'Query':case'ShortQuery':r.type=e.getQueryType();break;case'Mutation':r.type=e.getMutationType();break;case'Subscription':r.type=e.getSubscriptionType();break;case'InlineFragment':case'FragmentDefinition':n.type&&(r.type=e.getType(n.type));break;case'Field':case'AliasedField':r.fieldDef=r.type&&n.name?zM(e,r.parentType,n.name):null,r.type=(i=r.fieldDef)===null||i===void 0?void 0:i.type;break;case'SelectionSet':r.parentType=r.type?(0,kr.getNamedType)(r.type):null;break;case'Directive':r.directiveDef=n.name?e.getDirective(n.name):null;break;case'Arguments':let s=n.prevState?n.prevState.kind==='Field'?r.fieldDef:n.prevState.kind==='Directive'?r.directiveDef:n.prevState.kind==='AliasedField'?n.prevState.name&&zM(e,r.parentType,n.prevState.name):null:null;r.argDefs=s?s.args:null;break;case'Argument':if(r.argDef=null,r.argDefs){ + for(let v=0;vv.value===n.name):null;break;case'ListValue':let c=r.inputType?(0,kr.getNullableType)(r.inputType):null;r.inputType=c instanceof kr.GraphQLList?c.ofType:null;break;case'ObjectValue':let f=r.inputType?(0,kr.getNamedType)(r.inputType):null;r.objectFieldDefs=f instanceof kr.GraphQLInputObjectType?f.getFields():null;break;case'ObjectField':let m=n.name&&r.objectFieldDefs?r.objectFieldDefs[n.name]:null;r.inputType=m?.type;break;case'NamedType':r.type=n.name?e.getType(n.name):null;break; + } + }),r; +}function zM(e,t,r){ + if(r===kr.SchemaMetaFieldDef.name&&e.getQueryType()===t)return kr.SchemaMetaFieldDef;if(r===kr.TypeMetaFieldDef.name&&e.getQueryType()===t)return kr.TypeMetaFieldDef;if(r===kr.TypeNameMetaFieldDef.name&&(0,kr.isCompositeType)(t))return kr.TypeNameMetaFieldDef;if(t&&t.getFields)return t.getFields()[r]; +}function SJ(e,t){ + for(let r=0;r{ + kr=fe(Ur());Ny();kwe=Object.defineProperty,Nl=(e,t)=>kwe(e,'name',{value:t,configurable:!0});Nl(Dy,'getTypeInfo');Nl(zM,'getFieldDef');Nl(SJ,'find');Nl(Ly,'getFieldReference');Nl(Py,'getDirectiveReference');Nl(Ry,'getArgumentReference');Nl(My,'getEnumValueReference');Nl(Jm,'getTypeReference');Nl(HM,'isMetaField'); +});var Nwe={};function kJ(e){ + return{options:e instanceof Function?{render:e}:e===!0?{}:e}; +}function OJ(e){ + let{options:t}=e.state.info;return t?.hoverTime||500; +}function NJ(e,t){ + let r=e.state.info,n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||n.nodeName!=='SPAN'||r.hoverTimeout!==void 0)return;let i=n.getBoundingClientRect(),o=Ua(function(){ + clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(l,c); + },'onMouseMove'),s=Ua(function(){ + tt.off(document,'mousemove',o),tt.off(e.getWrapperElement(),'mouseout',s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0; + },'onMouseOut'),l=Ua(function(){ + tt.off(document,'mousemove',o),tt.off(e.getWrapperElement(),'mouseout',s),r.hoverTimeout=void 0,DJ(e,i); + },'onHover'),c=OJ(e);r.hoverTimeout=setTimeout(l,c),tt.on(document,'mousemove',o),tt.on(e.getWrapperElement(),'mouseout',s); +}function DJ(e,t){ + let r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},'window'),n=e.state.info,{options:i}=n,o=i.render||e.getHelper(r,'info');if(o){ + let s=e.getTokenAt(r,!0);if(s){ + let l=o(s,i,e,r);l&&LJ(e,t,l); + } + } +}function LJ(e,t,r){ + let n=document.createElement('div');n.className='CodeMirror-info',n.append(r),document.body.append(n);let i=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),c=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-l),c<0&&(c=t.bottom);let f=Math.max(0,window.innerWidth-s-15);f>t.left&&(f=t.left),n.style.opacity='1',n.style.top=c+'px',n.style.left=f+'px';let m,v=Ua(function(){ + clearTimeout(m); + },'onMouseOverPopup'),g=Ua(function(){ + clearTimeout(m),m=setTimeout(y,200); + },'onMouseOut'),y=Ua(function(){ + tt.off(n,'mouseover',v),tt.off(n,'mouseout',g),tt.off(e.getWrapperElement(),'mouseout',g),n.style.opacity?(n.style.opacity='0',setTimeout(()=>{ + n.parentNode&&n.remove(); + },600)):n.parentNode&&n.remove(); + },'hidePopup');tt.on(n,'mouseover',v),tt.on(n,'mouseout',g),tt.on(e.getWrapperElement(),'mouseout',g); +}var Owe,Ua,WM=at(()=>{ + ia();ir();Owe=Object.defineProperty,Ua=(e,t)=>Owe(e,'name',{value:t,configurable:!0});tt.defineOption('info',!1,(e,t,r)=>{ + if(r&&r!==tt.Init){ + let n=e.state.info.onMouseOver;tt.off(e.getWrapperElement(),'mouseover',n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info; + }if(t){ + let n=e.state.info=kJ(t);n.onMouseOver=NJ.bind(null,e),tt.on(e.getWrapperElement(),'mouseover',n.onMouseOver); + } + });Ua(kJ,'createState');Ua(OJ,'getHoverTime');Ua(NJ,'onMouseOver');Ua(DJ,'onMouseHover');Ua(LJ,'showPopup'); +});var Lwe={};function PJ(e,t,r){ + RJ(e,t,r),YM(e,t,r,t.type); +}function RJ(e,t,r){ + var n;let i=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||'';to(e,i,'field-name',r,Ly(t)); +}function MJ(e,t,r){ + var n;let i='@'+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||'');to(e,i,'directive-name',r,Py(t)); +}function IJ(e,t,r){ + var n;let i=((n=t.argDef)===null||n===void 0?void 0:n.name)||'';to(e,i,'arg-name',r,Ry(t)),YM(e,t,r,t.inputType); +}function FJ(e,t,r){ + var n;let i=((n=t.enumValue)===null||n===void 0?void 0:n.name)||'';Yf(e,t,r,t.inputType),to(e,'.'),to(e,i,'enum-value',r,My(t)); +}function YM(e,t,r,n){ + let i=document.createElement('span');i.className='type-name-pill',n instanceof $m.GraphQLNonNull?(Yf(i,t,r,n.ofType),to(i,'!')):n instanceof $m.GraphQLList?(to(i,'['),Yf(i,t,r,n.ofType),to(i,']')):to(i,n?.name||'','type-name',r,Jm(t,n)),e.append(i); +}function Yf(e,t,r,n){ + n instanceof $m.GraphQLNonNull?(Yf(e,t,r,n.ofType),to(e,'!')):n instanceof $m.GraphQLList?(to(e,'['),Yf(e,t,r,n.ofType),to(e,']')):to(e,n?.name||'','type-name',r,Jm(t,n)); +}function _m(e,t,r){ + let{description:n}=r;if(n){ + let i=document.createElement('div');i.className='info-description',t.renderDescription?i.innerHTML=t.renderDescription(n):i.append(document.createTextNode(n)),e.append(i); + }qJ(e,t,r); +}function qJ(e,t,r){ + let n=r.deprecationReason;if(n){ + let i=document.createElement('div');i.className='info-deprecation',e.append(i);let o=document.createElement('span');o.className='info-deprecation-label',o.append(document.createTextNode('Deprecated')),i.append(o);let s=document.createElement('div');s.className='info-deprecation-reason',t.renderDescription?s.innerHTML=t.renderDescription(n):s.append(document.createTextNode(n)),i.append(s); + } +}function to(e,t,r='',n={onClick:null},i=null){ + if(r){ + let{onClick:o}=n,s;o?(s=document.createElement('a'),s.href='javascript:void 0',s.addEventListener('click',l=>{ + o(i,l); + })):s=document.createElement('span'),s.className=r,s.append(document.createTextNode(t)),e.append(s); + }else e.append(document.createTextNode(t)); +}var $m,Dwe,Fs,jJ=at(()=>{ + $m=fe(Ur());ia();QM();WM();ir();Ny();Dwe=Object.defineProperty,Fs=(e,t)=>Dwe(e,'name',{value:t,configurable:!0});tt.registerHelper('info','graphql',(e,t)=>{ + if(!t.schema||!e.state)return;let{kind:r,step:n}=e.state,i=Dy(t.schema,e.state);if(r==='Field'&&n===0&&i.fieldDef||r==='AliasedField'&&n===2&&i.fieldDef){ + let o=document.createElement('div');o.className='CodeMirror-info-header',PJ(o,i,t);let s=document.createElement('div');return s.append(o),_m(s,t,i.fieldDef),s; + }if(r==='Directive'&&n===1&&i.directiveDef){ + let o=document.createElement('div');o.className='CodeMirror-info-header',MJ(o,i,t);let s=document.createElement('div');return s.append(o),_m(s,t,i.directiveDef),s; + }if(r==='Argument'&&n===0&&i.argDef){ + let o=document.createElement('div');o.className='CodeMirror-info-header',IJ(o,i,t);let s=document.createElement('div');return s.append(o),_m(s,t,i.argDef),s; + }if(r==='EnumValue'&&i.enumValue&&i.enumValue.description){ + let o=document.createElement('div');o.className='CodeMirror-info-header',FJ(o,i,t);let s=document.createElement('div');return s.append(o),_m(s,t,i.enumValue),s; + }if(r==='NamedType'&&i.type&&i.type.description){ + let o=document.createElement('div');o.className='CodeMirror-info-header',Yf(o,i,t,i.type);let s=document.createElement('div');return s.append(o),_m(s,t,i.type),s; + } + });Fs(PJ,'renderField');Fs(RJ,'renderQualifiedField');Fs(MJ,'renderDirective');Fs(IJ,'renderArg');Fs(FJ,'renderEnumValue');Fs(YM,'renderTypeAnnotation');Fs(Yf,'renderType');Fs(_m,'renderDescription');Fs(qJ,'renderDeprecation');Fs(to,'text'); +});var Mwe={};function VJ(e,t){ + let r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||r?.nodeName!=='SPAN')return;let n=r.getBoundingClientRect(),i={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&KM(e); +}function UJ(e){ + if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){ + e.state.jump.cursor=null;return; + }e.state.jump.isHoldingModifier&&e.state.jump.marker&&XM(e); +}function BJ(e,t){ + if(e.state.jump.isHoldingModifier||!GJ(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&KM(e);let r=Dl(o=>{ + o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&XM(e),tt.off(document,'keyup',r),tt.off(document,'click',n),e.off('mousedown',i)); + },'onKeyUp'),n=Dl(o=>{ + let{destination:s,options:l}=e.state.jump;s&&l.onClick(s,o); + },'onClick'),i=Dl((o,s)=>{ + e.state.jump.destination&&(s.codemirrorIgnore=!0); + },'onMouseDown');tt.on(document,'keyup',r),tt.on(document,'click',n),e.on('mousedown',i); +}function GJ(e){ + return e===(Rwe?'Meta':'Control'); +}function KM(e){ + if(e.state.jump.marker)return;let{cursor:t,options:r}=e.state.jump,n=e.coordsChar(t),i=e.getTokenAt(n,!0),o=r.getDestination||e.getHelper(n,'jump');if(o){ + let s=o(i,r,e);if(s){ + let l=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:'CodeMirror-jump-token'});e.state.jump.marker=l,e.state.jump.destination=s; + } + } +}function XM(e){ + let{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear(); +}var Pwe,Dl,Rwe,zJ=at(()=>{ + ia();QM();ir();Ny();Pwe=Object.defineProperty,Dl=(e,t)=>Pwe(e,'name',{value:t,configurable:!0});tt.defineOption('jump',!1,(e,t,r)=>{ + if(r&&r!==tt.Init){ + let n=e.state.jump.onMouseOver;tt.off(e.getWrapperElement(),'mouseover',n);let i=e.state.jump.onMouseOut;tt.off(e.getWrapperElement(),'mouseout',i),tt.off(document,'keydown',e.state.jump.onKeyDown),delete e.state.jump; + }if(t){ + let n=e.state.jump={options:t,onMouseOver:VJ.bind(null,e),onMouseOut:UJ.bind(null,e),onKeyDown:BJ.bind(null,e)};tt.on(e.getWrapperElement(),'mouseover',n.onMouseOver),tt.on(e.getWrapperElement(),'mouseout',n.onMouseOut),tt.on(document,'keydown',n.onKeyDown); + } + });Dl(VJ,'onMouseOver');Dl(UJ,'onMouseOut');Dl(BJ,'onKeyDown');Rwe=typeof navigator<'u'&&navigator&&navigator.appVersion.includes('Mac');Dl(GJ,'isJumpModifier');Dl(KM,'enableJumpMode');Dl(XM,'disableJumpMode');tt.registerHelper('jump','graphql',(e,t)=>{ + if(!t.schema||!t.onClick||!e.state)return;let{state:r}=e,{kind:n,step:i}=r,o=Dy(t.schema,r);if(n==='Field'&&i===0&&o.fieldDef||n==='AliasedField'&&i===2&&o.fieldDef)return Ly(o);if(n==='Directive'&&i===1&&o.directiveDef)return Py(o);if(n==='Argument'&&i===0&&o.argDef)return Ry(o);if(n==='EnumValue'&&o.enumValue)return My(o);if(n==='NamedType'&&o.type)return Jm(o); + }); +});function Kf(e,t){ + var r,n;let{levels:i,indentLevel:o}=e;return((!i||i.length===0?o:i.at(-1)-(!((r=this.electricInput)===null||r===void 0)&&r.test(t)?1:0))||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0); +}var Iwe,Fwe,DE=at(()=>{ + Iwe=Object.defineProperty,Fwe=(e,t)=>Iwe(e,'name',{value:t,configurable:!0});Fwe(Kf,'indent'); +});var Uwe={};var qwe,jwe,Vwe,HJ=at(()=>{ + ia();Zc();DE();ir();qwe=Object.defineProperty,jwe=(e,t)=>qwe(e,'name',{value:t,configurable:!0}),Vwe=jwe(e=>{ + let t=po({eatWhitespace:r=>r.eatWhile(vp),lexRules:gp,parseRules:yp,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[})\]]/,fold:'brace',lineComment:'#',closeBrackets:{pairs:'()[]{}""',explode:'()[]{}'}}; + },'graphqlModeFactory');tt.defineMode('graphql',Vwe); +});var Gwe={};function Xf(e,t,r){ + let n=QJ(r,ZM(t.string));if(!n)return;let i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}; +}function QJ(e,t){ + if(!t)return LE(e,n=>!n.isDeprecated);let r=e.map(n=>({proximity:WJ(ZM(n.text),t),entry:n}));return LE(LE(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.text.length-i.entry.text.length).map(n=>n.entry); +}function LE(e,t){ + let r=e.filter(t);return r.length===0?e:r; +}function ZM(e){ + return e.toLowerCase().replaceAll(/\W/g,''); +}function WJ(e,t){ + let r=YJ(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r; +}function YJ(e,t){ + let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){ + let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l)); + }return i[o][s]; +}function KJ(e,t,r){ + let n=t.state.kind==='Invalid'?t.state.prevState:t.state,{kind:i,step:o}=n;if(i==='Document'&&o===0)return Xf(e,t,[{text:'{'}]);let{variableToType:s}=r;if(!s)return;let l=XJ(s,t.state);if(i==='Document'||i==='Variable'&&o===0){ + let c=Object.keys(s);return Xf(e,t,c.map(f=>({text:`"${f}": `,type:s[f]}))); + }if((i==='ObjectValue'||i==='ObjectField'&&o===0)&&l.fields){ + let c=Object.keys(l.fields).map(f=>l.fields[f]);return Xf(e,t,c.map(f=>({text:`"${f.name}": `,type:f.type,description:f.description}))); + }if(i==='StringValue'||i==='NumberValue'||i==='BooleanValue'||i==='NullValue'||i==='ListValue'&&o===1||i==='ObjectField'&&o===2||i==='Variable'&&o===2){ + let c=l.type?(0,bi.getNamedType)(l.type):void 0;if(c instanceof bi.GraphQLInputObjectType)return Xf(e,t,[{text:'{'}]);if(c instanceof bi.GraphQLEnumType){ + let f=c.getValues();return Xf(e,t,f.map(m=>({text:`"${m.name}"`,type:c,description:m.description}))); + }if(c===bi.GraphQLBoolean)return Xf(e,t,[{text:'true',type:bi.GraphQLBoolean,description:'Not false.'},{text:'false',type:bi.GraphQLBoolean,description:'Not true.'}]); + } +}function XJ(e,t){ + let r={type:null,fields:null};return Oy(t,n=>{ + switch(n.kind){ + case'Variable':{r.type=e[n.name];break;}case'ListValue':{let i=r.type?(0,bi.getNullableType)(r.type):void 0;r.type=i instanceof bi.GraphQLList?i.ofType:null;break;}case'ObjectValue':{let i=r.type?(0,bi.getNamedType)(r.type):void 0;r.fields=i instanceof bi.GraphQLInputObjectType?i.getFields():null;break;}case'ObjectField':{let i=n.name&&r.fields?r.fields[n.name]:null;r.type=i?.type;break;} + } + }),r; +}var bi,Bwe,Ku,ZJ=at(()=>{ + ia();bi=fe(Ur());Ny();ir();Bwe=Object.defineProperty,Ku=(e,t)=>Bwe(e,'name',{value:t,configurable:!0});Ku(Xf,'hintList');Ku(QJ,'filterAndSortList');Ku(LE,'filterNonEmpty');Ku(ZM,'normalizeText');Ku(WJ,'getProximity');Ku(YJ,'lexicalDistance');tt.registerHelper('hint','graphql-variables',(e,t)=>{ + let r=e.getCursor(),n=e.getTokenAt(r),i=KJ(r,n,t);return i!=null&&i.list&&i.list.length>0&&(i.from=tt.Pos(i.from.line,i.from.ch),i.to=tt.Pos(i.to.line,i.to.ch),tt.signal(e,'hasCompletion',e,i,n)),i; + });Ku(KJ,'getVariablesHint');Ku(XJ,'getTypeInfo'); +});var Hwe={};function JJ(e){ + qs=e,RE=e.length,Cn=Ai=jy=-1,dn(),Vy();let t=_M();return Ll('EOF'),t; +}function _M(){ + let e=Cn,t=[];if(Ll('{'),!qy('}')){ + do t.push(_J());while(qy(','));Ll('}'); + }return{kind:'Object',start:e,end:jy,members:t}; +}function _J(){ + let e=Cn,t=To==='String'?eI():null;Ll('String'),Ll(':');let r=$M();return{kind:'Member',start:e,end:jy,key:t,value:r}; +}function $J(){ + let e=Cn,t=[];if(Ll('['),!qy(']')){ + do t.push($M());while(qy(','));Ll(']'); + }return{kind:'Array',start:e,end:jy,values:t}; +}function $M(){ + switch(To){ + case'[':return $J();case'{':return _M();case'String':case'Number':case'Boolean':case'Null':let e=eI();return Vy(),e; + }Ll('Value'); +}function eI(){ + return{kind:To,start:Cn,end:Ai,value:JSON.parse(qs.slice(Cn,Ai))}; +}function Ll(e){ + if(To===e){ + Vy();return; + }let t;if(To==='EOF')t='[end of file]';else if(Ai-Cn>1)t='`'+qs.slice(Cn,Ai)+'`';else{ + let r=qs.slice(Cn).match(/^.+?\b/);t='`'+(r?r[0]:qs[Cn])+'`'; + }throw Zf(`Expected ${e} but found ${t}.`); +}function Zf(e){ + return new Fy(e,{start:Cn,end:Ai}); +}function qy(e){ + if(To===e)return Vy(),!0; +}function dn(){ + return Ai31;)if(Gt===92)switch(Gt=dn(),Gt){ + case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:dn();break;case 117:dn(),Iy(),Iy(),Iy(),Iy();break;default:throw Zf('Bad character escape sequence.'); + }else{ + if(Ai===RE)throw Zf('Unterminated string.');dn(); + }if(Gt===34){ + dn();return; + }throw Zf('Unterminated string.'); +}function Iy(){ + if(Gt>=48&&Gt<=57||Gt>=65&&Gt<=70||Gt>=97&&Gt<=102)return dn();throw Zf('Expected hexadecimal digit.'); +}function t_(){ + Gt===45&&dn(),Gt===48?dn():PE(),Gt===46&&(dn(),PE()),(Gt===69||Gt===101)&&(Gt=dn(),(Gt===43||Gt===45)&&dn(),PE()); +}function PE(){ + if(Gt<48||Gt>57)throw Zf('Expected decimal digit.');do dn();while(Gt>=48&&Gt<=57); +}function r_(e,t,r){ + var n;let i=[];for(let o of r.members)if(o){ + let s=(n=o.key)===null||n===void 0?void 0:n.value,l=t[s];if(l)for(let[c,f]of eh(l,o.value))i.push(ME(e,c,f));else i.push(ME(e,o.key,`Variable "$${s}" does not appear in any GraphQL query.`)); + }return i; +}function eh(e,t){ + if(!e||!t)return[];if(e instanceof Ba.GraphQLNonNull)return t.kind==='Null'?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:eh(e.ofType,t);if(t.kind==='Null')return[];if(e instanceof Ba.GraphQLList){ + let r=e.ofType;if(t.kind==='Array'){ + let n=t.values||[];return JM(n,i=>eh(r,i)); + }return eh(r,t); + }if(e instanceof Ba.GraphQLInputObjectType){ + if(t.kind!=='Object')return[[t,`Type "${e}" must be an Object.`]];let r=Object.create(null),n=JM(t.members,i=>{ + var o;let s=(o=i?.key)===null||o===void 0?void 0:o.value;r[s]=!0;let l=e.getFields()[s];if(!l)return[[i.key,`Type "${e}" does not have a field "${s}".`]];let c=l?l.type:void 0;return eh(c,i.value); + });for(let i of Object.keys(e.getFields())){ + let o=e.getFields()[i];!r[i]&&o.type instanceof Ba.GraphQLNonNull&&!o.defaultValue&&n.push([t,`Object of type "${e}" is missing required field "${i}".`]); + }return n; + }return e.name==='Boolean'&&t.kind!=='Boolean'||e.name==='String'&&t.kind!=='String'||e.name==='ID'&&t.kind!=='Number'&&t.kind!=='String'||e.name==='Float'&&t.kind!=='Number'||e.name==='Int'&&(t.kind!=='Number'||(t.value|0)!==t.value)?[[t,`Expected value of type "${e}".`]]:(e instanceof Ba.GraphQLEnumType||e instanceof Ba.GraphQLScalarType)&&(t.kind!=='String'&&t.kind!=='Number'&&t.kind!=='Boolean'&&t.kind!=='Null'||n_(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]; +}function ME(e,t,r){ + return{message:r,severity:'error',type:'validation',from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}; +}function n_(e){ + return e==null||e!==e; +}function JM(e,t){ + return Array.prototype.concat.apply([],e.map(t)); +}var Ba,zwe,_r,qs,RE,Cn,Ai,jy,Gt,To,Fy,i_=at(()=>{ + ia();Ba=fe(Ur());ir();zwe=Object.defineProperty,_r=(e,t)=>zwe(e,'name',{value:t,configurable:!0});_r(JJ,'jsonParse');_r(_M,'parseObj');_r(_J,'parseMember');_r($J,'parseArr');_r($M,'parseVal');_r(eI,'curToken');_r(Ll,'expect');Fy=class extends Error{ + constructor(t,r){ + super(t),this.position=r; + } + };_r(Fy,'JSONSyntaxError');_r(Zf,'syntaxError');_r(qy,'skip');_r(dn,'ch');_r(Vy,'lex');_r(e_,'readString');_r(Iy,'readHex');_r(t_,'readNumber');_r(PE,'readDigits');tt.registerHelper('lint','graphql-variables',(e,t,r)=>{ + if(!e)return[];let n;try{ + n=JJ(e); + }catch(o){ + if(o instanceof Fy)return[ME(r,o.position,o.message)];throw o; + }let{variableToType:i}=t;return i?r_(r,i,n):[]; + });_r(r_,'validateVariables');_r(eh,'validateValue');_r(ME,'lintError');_r(n_,'isNullish');_r(JM,'mapCat'); +});var Xwe={};function tI(e){ + return{style:e,match:t=>t.kind==='String',update(t,r){ + t.name=r.value.slice(1,-1); + }}; +}var Qwe,Wwe,Ywe,Kwe,o_=at(()=>{ + ia();Zc();DE();ir();Qwe=Object.defineProperty,Wwe=(e,t)=>Qwe(e,'name',{value:t,configurable:!0});tt.defineMode('graphql-variables',e=>{ + let t=po({eatWhitespace:r=>r.eatSpace(),lexRules:Ywe,parseRules:Kwe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[}\]]/,fold:'brace',closeBrackets:{pairs:'[]{}""',explode:'[]{}'}}; + });Ywe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Kwe={Document:[ze('{'),gt('Variable',er(ze(','))),ze('}')],Variable:[tI('variable'),ze(':'),'Value'],Value(e){ + switch(e.kind){ + case'Number':return'NumberValue';case'String':return'StringValue';case'Punctuation':switch(e.value){ + case'[':return'ListValue';case'{':return'ObjectValue'; + }return null;case'Keyword':switch(e.value){ + case'true':case'false':return'BooleanValue';case'null':return'NullValue'; + }return null; + } + },NumberValue:[Dn('Number','number')],StringValue:[Dn('String','string')],BooleanValue:[Dn('Keyword','builtin')],NullValue:[Dn('Keyword','keyword')],ListValue:[ze('['),gt('Value',er(ze(','))),ze(']')],ObjectValue:[ze('{'),gt('ObjectField',er(ze(','))),ze('}')],ObjectField:[tI('attribute'),ze(':'),'Value']};Wwe(tI,'namedKey'); +});var _we={};var Zwe,Jwe,a_=at(()=>{ + ia();Zc();DE();ir();tt.defineMode('graphql-results',e=>{ + let t=po({eatWhitespace:r=>r.eatSpace(),lexRules:Zwe,parseRules:Jwe,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Kf,electricInput:/^\s*[}\]]/,fold:'brace',closeBrackets:{pairs:'[]{}""',explode:'[]{}'}}; + });Zwe={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Jwe={Document:[ze('{'),gt('Entry',ze(',')),ze('}')],Entry:[Dn('String','def'),ze(':'),'Value'],Value(e){ + switch(e.kind){ + case'Number':return'NumberValue';case'String':return'StringValue';case'Punctuation':switch(e.value){ + case'[':return'ListValue';case'{':return'ObjectValue'; + }return null;case'Keyword':switch(e.value){ + case'true':case'false':return'BooleanValue';case'null':return'NullValue'; + }return null; + } + },NumberValue:[Dn('Number','number')],StringValue:[Dn('String','string')],BooleanValue:[Dn('Keyword','builtin')],NullValue:[Dn('Keyword','keyword')],ListValue:[ze('['),gt('Value',ze(',')),ze(']')],ObjectValue:[ze('{'),gt('ObjectField',ze(',')),ze('}')],ObjectField:[Dn('String','property'),ze(':'),'Value']}; +});var N$=X(uT=>{ + 'use strict';Object.defineProperty(uT,'__esModule',{value:!0});var uTe=typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?function(e){ + return typeof e; + }:function(e){ + return e&&typeof Symbol=='function'&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e; + },y$=function(){ + function e(t,r){ + var n=[],i=!0,o=!1,s=void 0;try{ + for(var l=t[Symbol.iterator](),c;!(i=(c=l.next()).done)&&(n.push(c.value),!(r&&n.length===r));i=!0); + }catch(f){ + o=!0,s=f; + }finally{ + try{ + !i&&l.return&&l.return(); + }finally{ + if(o)throw s; + } + }return n; + }return function(t,r){ + if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError('Invalid attempt to destructure non-iterable instance'); + }; + }(),Wt=Object.assign||function(e){ + for(var t=1;t'u'?v=!0:typeof f.kind=='string'&&(y=!0); + }catch{}var w=i.props.selection,T=i._getArgSelection();if(!T){ + console.error('missing arg selection when setting arg value');return; + }var S=rc(i.props.arg.type),A=(0,vt.isLeafType)(S)||g||v||y;if(!A){ + console.warn('Unable to handle non leaf types in InputArgView.setArgValue',f);return; + }var b=void 0,C=void 0;f===null||typeof f>'u'?C=null:!f.target&&f.kind&&f.kind==='VariableDefinition'?(b=f,C=b.variable):typeof f.kind=='string'?C=f:f.target&&typeof f.target.value=='string'&&(b=f.target.value,C=T$(S,b));var x=i.props.modifyFields((w.fields||[]).map(function(k){ + var P=k===T,D=P?Wt({},k,{value:C}):k;return D; + }),m);return x; + },i._modifyChildFields=function(f){ + return i.props.modifyFields(i.props.selection.fields.map(function(m){ + return m.name.value===i.props.arg.name?Wt({},m,{value:{kind:'ObjectValue',fields:f}}):m; + }),!0); + },n),en(i,o); + }return Ha(t,[{key:'render',value:function(){ + var n=this.props,i=n.arg,o=n.parentField,s=this._getArgSelection();return be.createElement(S$,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition}); + }}]),t; + }(be.PureComponent);function OI(e){ + if((0,vt.isEnumType)(e))return{kind:'EnumValue',value:e.getValues()[0].name};switch(e.name){ + case'String':return{kind:'StringValue',value:''};case'Float':return{kind:'FloatValue',value:'1.5'};case'Int':return{kind:'IntValue',value:'10'};case'Boolean':return{kind:'BooleanValue',value:!1};default:return{kind:'StringValue',value:''}; + } + }function C$(e,t,r){ + return OI(r); + }var bTe=function(e){ + Wa(t,e);function t(){ + var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c'u'?v=!0:typeof f.kind=='string'&&(y=!0); + }catch{}var w=i.props.selection,T=i._getArgSelection();if(!T&&!g){ + console.error('missing arg selection when setting arg value');return; + }var S=rc(i.props.arg.type),A=(0,vt.isLeafType)(S)||g||v||y;if(!A){ + console.warn('Unable to handle non leaf types in ArgView._setArgValue');return; + }var b=void 0,C=void 0;return f===null||typeof f>'u'?C=null:f.target&&typeof f.target.value=='string'?(b=f.target.value,C=T$(S,b)):!f.target&&f.kind==='VariableDefinition'?(b=f,C=b.variable):typeof f.kind=='string'&&(C=f),i.props.modifyArguments((w.arguments||[]).map(function(x){ + return x===T?Wt({},x,{value:C}):x; + }),m); + },i._setArgFields=function(f,m){ + var v=i.props.selection,g=i._getArgSelection();if(!g){ + console.error('missing arg selection when setting arg value');return; + }return i.props.modifyArguments((v.arguments||[]).map(function(y){ + return y===g?Wt({},y,{value:{kind:'ObjectValue',fields:f}}):y; + }),m); + },n),en(i,o); + }return Ha(t,[{key:'render',value:function(){ + var n=this.props,i=n.arg,o=n.parentField,s=this._getArgSelection();return be.createElement(S$,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition}); + }}]),t; + }(be.PureComponent);function ATe(e){ + return e.ctrlKey&&e.key==='Enter'; + }function xTe(e){ + return e!=='FragmentDefinition'; + }var wTe=function(e){ + Wa(t,e);function t(){ + var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c0?b=''+S+A:b=S;var C=s.type.toString(),x=(0,vt.parseType)(C),k={kind:'VariableDefinition',variable:{kind:'Variable',name:{kind:'Name',value:b}},type:x,directives:[]},P=function(xe){ + return(n.props.definition.variableDefinitions||[]).find(function(Re){ + return Re.variable.name.value===xe; + }); + },D=void 0,N={};if(typeof o<'u'&&o!==null){ + var I=(0,vt.visit)(o,{Variable:function(xe){ + var Re=xe.name.value,Se=P(Re);if(N[Re]=N[Re]+1||1,!!Se)return Se.defaultValue; + }}),V=k.type.kind==='NonNullType',G=V?Wt({},k,{type:k.type.type}):k;D=Wt({},G,{defaultValue:I}); + }else D=k;var B=Object.entries(N).filter(function(se){ + var xe=y$(se,2),Re=xe[0],Se=xe[1];return Se<2; + }).map(function(se){ + var xe=y$(se,2),Re=xe[0],Se=xe[1];return Re; + });if(D){ + var U=n.props.setArgValue(D,!1);if(U){ + var z=U.definitions.find(function(se){ + return se.operation&&se.name&&se.name.value&&n.props.definition.name&&n.props.definition.name.value?se.name.value===n.props.definition.name.value:!1; + }),j=[].concat(sa(z.variableDefinitions||[]),[D]).filter(function(se){ + return B.indexOf(se.variable.name.value)===-1; + }),J=Wt({},z,{variableDefinitions:j}),K=U.definitions,ee=K.map(function(se){ + return z===se?J:se; + }),re=Wt({},U,{definitions:ee});n.props.onCommit(re); + } + } + },g=function(){ + if(!(!o||!o.name||!o.name.value)){ + var S=o.name.value,A=(n.props.definition.variableDefinitions||[]).find(function(G){ + return G.variable.name.value===S; + });if(A){ + var b=A.defaultValue,C=n.props.setArgValue(b,{commit:!1});if(C){ + var x=C.definitions.find(function(G){ + return G.name.value===n.props.definition.name.value; + });if(!x)return;var k=0;(0,vt.visit)(x,{Variable:function(B){ + B.name.value===S&&(k=k+1); + }});var P=x.variableDefinitions||[];k<2&&(P=P.filter(function(G){ + return G.variable.name.value!==S; + }));var D=Wt({},x,{variableDefinitions:P}),N=C.definitions,I=N.map(function(G){ + return x===G?D:G; + }),V=Wt({},C,{definitions:I});n.props.onCommit(V); + } + } + } + },y=o&&o.kind==='Variable',w=this.state.displayArgActions?be.createElement('button',{type:'submit',className:'toolbar-button',title:y?'Remove the variable':'Extract the current value into a GraphQL variable',onClick:function(S){ + S.preventDefault(),S.stopPropagation(),y?g():v(); + },style:l.styles.actionButtonStyle},be.createElement('span',{style:{color:l.colors.variable}},'$')):null;return be.createElement('div',{style:{cursor:'pointer',minHeight:'16px',WebkitUserSelect:'none',userSelect:'none'},'data-arg-name':s.name,'data-arg-type':c.name,className:'graphiql-explorer-'+s.name},be.createElement('span',{style:{cursor:'pointer'},onClick:function(S){ + var A=!o;A?n.props.addArg(!0):n.props.removeArg(!0),n.setState({displayArgActions:A}); + }},(0,vt.isInputObjectType)(c)?be.createElement('span',null,o?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):be.createElement(sT,{checked:!!o,styleConfig:this.props.styleConfig}),be.createElement('span',{style:{color:l.colors.attribute},title:s.description,onMouseEnter:function(){ + o!==null&&typeof o<'u'&&n.setState({displayArgActions:!0}); + },onMouseLeave:function(){ + return n.setState({displayArgActions:!1}); + }},s.name,E$(s)?'*':'',': ',w,' '),' '),f||be.createElement('span',null),' '); + }}]),t; + }(be.PureComponent),ETe=function(e){ + Wa(t,e);function t(){ + var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c0;b&&n.setState({displayFieldActions:!0}); + },onMouseLeave:function(){ + return n.setState({displayFieldActions:!1}); + }},(0,vt.isObjectType)(m)?be.createElement('span',null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,vt.isObjectType)(m)?null:be.createElement(sT,{checked:!!f,styleConfig:this.props.styleConfig}),be.createElement('span',{style:{color:c.colors.property},className:'graphiql-explorer-field-view'},o.name),this.state.displayFieldActions?be.createElement('button',{type:'submit',className:'toolbar-button',title:'Extract selections into a new reusable fragment',onClick:function(b){ + b.preventDefault(),b.stopPropagation();var C=m.name,x=C+'Fragment',k=(y||[]).filter(function(G){ + return G.name.value.startsWith(x); + }).length;k>0&&(x=''+x+k);var P=f?f.selectionSet?f.selectionSet.selections:[]:[],D=[{kind:'FragmentSpread',name:{kind:'Name',value:x},directives:[]}],N={kind:'FragmentDefinition',name:{kind:'Name',value:x},typeCondition:{kind:'NamedType',name:{kind:'Name',value:m.name}},directives:[],selectionSet:{kind:'SelectionSet',selections:P}},I=n._modifyChildSelections(D,!1);if(I){ + var V=Wt({},I,{definitions:[].concat(sa(I.definitions),[N])});n.props.onCommit(V); + }else console.warn('Unable to complete extractFragment operation'); + },style:Wt({},c.styles.actionButtonStyle)},be.createElement('span',null,'\u2026')):null),f&&v.length?be.createElement('div',{style:{marginLeft:16},className:'graphiql-explorer-graphql-arguments'},v.map(function(A){ + return be.createElement(bTe,{key:A.name,parentField:o,arg:A,selection:f,modifyArguments:n._setArguments,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition}); + })):null);if(f&&((0,vt.isObjectType)(m)||(0,vt.isInterfaceType)(m)||(0,vt.isUnionType)(m))){ + var T=(0,vt.isUnionType)(m)?{}:m.getFields(),S=f?f.selectionSet?f.selectionSet.selections:[]:[];return be.createElement('div',{className:'graphiql-explorer-'+o.name},w,be.createElement('div',{style:{marginLeft:16}},y?y.map(function(A){ + var b=s.getType(A.typeCondition.name.value),C=A.name.value;return b?be.createElement(TTe,{key:C,fragment:A,selections:S,modifySelections:n._modifyChildSelections,schema:s,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit}):null; + }):null,Object.keys(T).sort().map(function(A){ + return be.createElement(t,{key:A,field:T[A],selections:S,modifySelections:n._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition,availableFragments:n.props.availableFragments}); + }),(0,vt.isInterfaceType)(m)||(0,vt.isUnionType)(m)?s.getPossibleTypes(m).map(function(A){ + return be.createElement(ETe,{key:A.name,implementingType:A,selections:S,modifySelections:n._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:n.props.getDefaultScalarArgValue,makeDefaultArg:n.props.makeDefaultArg,onRunOperation:n.props.onRunOperation,styleConfig:n.props.styleConfig,onCommit:n.props.onCommit,definition:n.props.definition}); + }):null)); + }return w; + }}]),t; + }(be.PureComponent);function CTe(e){ + try{ + return e.trim()?(0,vt.parse)(e,{noLocation:!0}):null; + }catch(t){ + return new Error(t); + } + }var STe={kind:'OperationDefinition',operation:'query',variableDefinitions:[],name:{kind:'Name',value:'MyQuery'},directives:[],selectionSet:{kind:'SelectionSet',selections:[]}},aT={kind:'Document',definitions:[STe]},ih=null;function kTe(e){ + if(ih&&ih[0]===e)return ih[1];var t=CTe(e);return t?t instanceof Error?ih?ih[1]:aT:(ih=[e,t],t):aT; + }var x$={buttonStyle:{fontSize:'1.2em',padding:'0px',backgroundColor:'white',border:'none',margin:'5px 0px',height:'40px',width:'100%',display:'block',maxWidth:'none'},actionButtonStyle:{padding:'0px',backgroundColor:'white',border:'none',margin:'0px',maxWidth:'none',height:'15px',width:'15px',display:'inline-block',fontSize:'smaller'},explorerActionsStyle:{margin:'4px -8px -8px',paddingLeft:'8px',bottom:'0px',width:'100%',textAlign:'center',background:'none',borderTop:'none',borderBottom:'none'}},OTe=function(e){ + Wa(t,e);function t(){ + var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c'u'?'undefined':uTe(He))==='object'&&typeof He.commit<'u'?dr=He.commit:dr=!0,Ge){ + var Ue=Wt({},T,{definitions:T.definitions.map(function(bt){ + return bt===j?Ge:bt; + })});return dr&&me(Ue),Ue; + }else return T; + },schema:o,getDefaultFieldNames:S,getDefaultScalarArgValue:A,makeDefaultArg:l,onRunOperation:function(){ + n.props.onRunOperation&&n.props.onRunOperation(K); + },styleConfig:c,availableFragments:U}); + }),z),V); + }}]),t; + }(be.PureComponent);O$.defaultProps={getDefaultFieldNames:w$,getDefaultScalarArgValue:C$};var DTe=function(e){ + Wa(t,e);function t(){ + var r,n,i,o;Qa(this,t);for(var s=arguments.length,l=Array(s),c=0;c{ + 'use strict';Object.defineProperty(r0,'__esModule',{value:!0});r0.Explorer=void 0;var LTe=N$(),D$=PTe(LTe);function PTe(e){ + return e&&e.__esModule?e:{default:e}; + }r0.Explorer=D$.default;r0.default=D$.default; +});var V$=X(RI=>{ + 'use strict';var j$=mf();RI.createRoot=j$.createRoot,RI.hydrateRoot=j$.hydrateRoot;var yGe; +});var Y=fe(K3(),1),ue=fe(Ee(),1),te=fe(Ee(),1);function X3(e){ + var t,r,n='';if(typeof e=='string'||typeof e=='number')n+=e;else if(typeof e=='object')if(Array.isArray(e))for(t=0;t{ + let n=e.subscribe({next(i){ + t(i),n.unsubscribe(); + },error:r,complete(){ + r(new Error('no value resolved')); + }}); + }); +}function YN(e){ + return typeof e=='object'&&e!==null&&'subscribe'in e&&typeof e.subscribe=='function'; +}function KN(e){ + return typeof e=='object'&&e!==null&&(e[Symbol.toStringTag]==='AsyncGenerator'||Symbol.asyncIterator in e); +}function Sfe(e){ + var t;return q4(this,void 0,void 0,function*(){ + let r=(t=('return'in e?e:e[Symbol.asyncIterator]()).return)===null||t===void 0?void 0:t.bind(e),i=yield('next'in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return r?.(),i.value; + }); +}function XN(e){ + return q4(this,void 0,void 0,function*(){ + let t=yield e;return KN(t)?Sfe(t):YN(t)?Cfe(t):t; + }); +}function ZN(e){ + return JSON.stringify(e,null,2); +}function kfe(e){ + return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack}); +}function j4(e){ + return e instanceof Error?kfe(e):e; +}function fp(e){ + return Array.isArray(e)?ZN({errors:e.map(t=>j4(t))}):ZN({errors:[j4(e)]}); +}function SA(e){ + return ZN(e); +}var Hn=fe(Ur());function V4(e,t,r){ + let n=[];if(!e||!t)return{insertions:n,result:t};let i;try{ + i=(0,Hn.parse)(t); + }catch{ + return{insertions:n,result:t}; + }let o=r||Ofe,s=new Hn.TypeInfo(e);return(0,Hn.visit)(i,{leave(l){ + s.leave(l); + },enter(l){ + if(s.enter(l),l.kind==='Field'&&!l.selectionSet){ + let c=s.getType(),f=U4(Lfe(c),o);if(f&&l.loc){ + let m=Dfe(t,l.loc.start);n.push({index:l.loc.end,string:' '+(0,Hn.print)(f).replaceAll(` `,` -`+m)})}}}}),{insertions:n,result:Nfe(t,n)}}function Ofe(e){if(!("getFields"in e))return[];let t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];let r=[];for(let n of Object.keys(t))(0,Hn.isLeafType)(t[n].type)&&r.push(n);return r}function U4(e,t){let r=(0,Hn.getNamedType)(e);if(!e||(0,Hn.isLeafType)(e))return;let n=t(r);if(!(!Array.isArray(n)||n.length===0||!("getFields"in r)))return{kind:Hn.Kind.SELECTION_SET,selections:n.map(i=>{let o=r.getFields()[i],s=o?o.type:null;return{kind:Hn.Kind.FIELD,name:{kind:Hn.Kind.NAME,value:i},selectionSet:U4(s,t)}})}}function Nfe(e,t){if(t.length===0)return e;let r="",n=0;for(let{index:i,string:o}of t)r+=e.slice(n,i)+o,n=i;return r+=e.slice(n),r}function Dfe(e,t){let r=t,n=t;for(;r;){let i=e.charCodeAt(r-1);if(i===10||i===13||i===8232||i===8233)break;r--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(n=r)}return e.slice(r,n)}function Lfe(e){if(e)return e}var fo=fe(Ur());function Pfe(e,t){var r;let n=new Map,i=[];for(let o of e)if(o.kind==="Field"){let s=t(o),l=n.get(s);if(!((r=o.directives)===null||r===void 0)&&r.length){let c=Object.assign({},o);i.push(c)}else if(l?.selectionSet&&o.selectionSet)l.selectionSet.selections=[...l.selectionSet.selections,...o.selectionSet.selections];else if(!l){let c=Object.assign({},o);n.set(s,c),i.push(c)}}else i.push(o);return i}function B4(e,t,r){var n;let i=r?(0,fo.getNamedType)(r).name:null,o=[],s=[];for(let l of t){if(l.kind==="FragmentSpread"){let c=l.name.value;if(!l.directives||l.directives.length===0){if(s.includes(c))continue;s.push(c)}let f=e[l.name.value];if(f){let{typeCondition:m,directives:v,selectionSet:g}=f;l={kind:fo.Kind.INLINE_FRAGMENT,typeCondition:m,directives:v,selectionSet:g}}}if(l.kind===fo.Kind.INLINE_FRAGMENT&&(!l.directives||((n=l.directives)===null||n===void 0?void 0:n.length)===0)){let c=l.typeCondition?l.typeCondition.name.value:null;if(!c||c===i){o.push(...B4(e,l.selectionSet.selections,r));continue}}o.push(l)}return o}function G4(e,t){let r=t?new fo.TypeInfo(t):null,n=Object.create(null);for(let l of e.definitions)l.kind===fo.Kind.FRAGMENT_DEFINITION&&(n[l.name.value]=l);let i={SelectionSet(l){let c=r?r.getParentType():null,{selections:f}=l;return f=B4(n,f,c),Object.assign(Object.assign({},l),{selections:f})},FragmentDefinition(){return null}},o=(0,fo.visit)(e,r?(0,fo.visitWithTypeInfo)(r,i):i);return(0,fo.visit)(o,{SelectionSet(l){let{selections:c}=l;return c=Pfe(c,f=>f.alias?f.alias.value:f.name.value),Object.assign(Object.assign({},l),{selections:c})},FragmentDefinition(){return null}})}function z4(e,t,r){if(!r||r.length<1)return;let n=r.map(i=>{var o;return(o=i.name)===null||o===void 0?void 0:o.value});if(t&&n.includes(t))return t;if(t&&e){let o=e.map(s=>{var l;return(l=s.name)===null||l===void 0?void 0:l.value}).indexOf(t);if(o!==-1&&o"u"?this.storage=null:this.storage={getItem:window.localStorage.getItem.bind(window.localStorage),setItem:window.localStorage.setItem.bind(window.localStorage),removeItem:window.localStorage.removeItem.bind(window.localStorage),get length(){let r=0;for(let n in window.localStorage)n.indexOf(`${kA}:`)===0&&(r+=1);return r},clear(){for(let r in window.localStorage)r.indexOf(`${kA}:`)===0&&window.localStorage.removeItem(r)}}}get(t){if(!this.storage)return null;let r=`${kA}:${t}`,n=this.storage.getItem(r);return n==="null"||n==="undefined"?(this.storage.removeItem(r),null):n||null}set(t,r){let n=!1,i=null;if(this.storage){let o=`${kA}:${t}`;if(r)try{this.storage.setItem(o,r)}catch(s){i=s instanceof Error?s:new Error(`${s}`),n=Rfe(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:n,error:i}}clear(){this.storage&&this.storage.clear()}},kA="graphiql";var H4=fe(Ur());var jv=class{constructor(t,r,n=null){this.key=t,this.storage=r,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName)}edit(t,r){if(typeof r=="number"&&this.items[r]){let i=this.items[r];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){this.items.splice(r,1,t),this.save();return}}let n=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);n!==-1&&(this.items.splice(n,1,t),this.save())}delete(t){let r=this.items.findIndex(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName);r!==-1&&(this.items.splice(r,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){let t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){let r=[...this.items,t];this.maxSize&&r.length>this.maxSize&&r.shift();for(let n=0;n<5;n++){let i=this.storage.set(this.key,JSON.stringify({[this.key]:r}));if(!i?.error)this.items=r;else if(i.isQuotaError&&this.maxSize)r.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}};var Mfe=1e5,OA=class{constructor(t,r){this.storage=t,this.maxHistoryLength=r,this.updateHistory=({query:n,variables:i,headers:o,operationName:s})=>{if(!this.shouldSaveQuery(n,i,o,this.history.fetchRecent()))return;this.history.push({query:n,variables:i,headers:o,operationName:s});let l=this.history.items,c=this.favorite.items;this.queries=l.concat(c)},this.deleteHistory=({query:n,variables:i,headers:o,operationName:s,favorite:l},c=!1)=>{function f(m){let v=m.items.find(g=>g.query===n&&g.variables===i&&g.headers===o&&g.operationName===s);v&&m.delete(v)}(l||c)&&f(this.favorite),(!l||c)&&f(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new jv("queries",this.storage,this.maxHistoryLength),this.favorite=new jv("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,r,n,i){if(!t)return!1;try{(0,H4.parse)(t)}catch{return!1}return t.length>Mfe?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(r)===JSON.stringify(i.variables)&&(JSON.stringify(n)===JSON.stringify(i.headers)||n&&!i.headers)||r&&!i.variables)):!0}toggleFavorite({query:t,variables:r,headers:n,operationName:i,label:o,favorite:s}){let l={query:t,variables:r,headers:n,operationName:i,label:o};s?(l.favorite=!1,this.favorite.delete(l),this.history.push(l)):(l.favorite=!0,this.favorite.push(l),this.history.delete(l)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:r,headers:n,operationName:i,label:o,favorite:s},l){let c={query:t,variables:r,headers:n,operationName:i,label:o};s?this.favorite.edit(Object.assign(Object.assign({},c),{favorite:s}),l):this.history.edit(c,l),this.queries=[...this.history.items,...this.favorite.items]}};Zc();var u_=fe(Dq(),1),c_=fe(Iq(),1);function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(r=>Ode(r,t))}function sr(...e){return(0,Fq.useCallback)(Ap(...e),e)}var Pi=fe(Ee(),1);function qq(e,t){let r=(0,Pi.createContext)(t);function n(o){let{children:s,...l}=o,c=(0,Pi.useMemo)(()=>l,Object.values(l));return(0,Pi.createElement)(r.Provider,{value:c},s)}function i(o){let s=(0,Pi.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function Hi(e,t=[]){let r=[];function n(o,s){let l=(0,Pi.createContext)(s),c=r.length;r=[...r,s];function f(v){let{scope:g,children:y,...w}=v,T=g?.[e][c]||l,S=(0,Pi.useMemo)(()=>w,Object.values(w));return(0,Pi.createElement)(T.Provider,{value:S},y)}function m(v,g){let y=g?.[e][c]||l,w=(0,Pi.useContext)(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${v}\` must be used within \`${o}\``)}return f.displayName=o+"Provider",[f,m]}let i=()=>{let o=r.map(s=>(0,Pi.createContext)(s));return function(l){let c=l?.[e]||o;return(0,Pi.useMemo)(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[n,Nde(i,...t)]}function Nde(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){let s=n.reduce((l,{useScope:c,scopeName:f})=>{let v=c(o)[`__scope${f}`];return{...l,...v}},{});return(0,Pi.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var MD=fe(Ee(),1);var jq=fe(Ee(),1),ds=globalThis?.document?jq.useLayoutEffect:()=>{};var Dde=MD["useId".toString()]||(()=>{}),Lde=0;function Ea(e){let[t,r]=MD.useState(Dde());return ds(()=>{e||r(n=>n??String(Lde++))},[e]),e||(t?`radix-${t}`:"")}var mu=fe(Ee(),1);var xp=fe(Ee(),1);function Wn(e){let t=(0,xp.useRef)(e);return(0,xp.useEffect)(()=>{t.current=e}),(0,xp.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function hu({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=Pde({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,l=Wn(r),c=(0,mu.useCallback)(f=>{if(o){let v=typeof f=="function"?f(e):f;v!==e&&l(v)}else i(f)},[o,e,i,l]);return[s,c]}function Pde({defaultProp:e,onChange:t}){let r=(0,mu.useState)(e),[n]=r,i=(0,mu.useRef)(n),o=Wn(t);return(0,mu.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}var Xr=fe(Ee(),1);var Jp=fe(Ee(),1),oB=fe(mf(),1);var Ir=fe(Ee(),1);var bs=(0,Ir.forwardRef)((e,t)=>{let{children:r,...n}=e,i=Ir.Children.toArray(r),o=i.find(Mme);if(o){let s=o.props.children,l=i.map(c=>c===o?Ir.Children.count(s)>1?Ir.Children.only(null):(0,Ir.isValidElement)(s)?s.props.children:null:c);return(0,Ir.createElement)(KL,Ze({},n,{ref:t}),(0,Ir.isValidElement)(s)?(0,Ir.cloneElement)(s,void 0,l):null)}return(0,Ir.createElement)(KL,Ze({},n,{ref:t}),r)});bs.displayName="Slot";var KL=(0,Ir.forwardRef)((e,t)=>{let{children:r,...n}=e;return(0,Ir.isValidElement)(r)?(0,Ir.cloneElement)(r,{...Ime(n,r.props),ref:t?Ap(t,r.ref):r.ref}):Ir.Children.count(r)>1?Ir.Children.only(null):null});KL.displayName="SlotClone";var XL=({children:e})=>(0,Ir.createElement)(Ir.Fragment,null,e);function Mme(e){return(0,Ir.isValidElement)(e)&&e.type===XL}function Ime(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...l)=>{o(...l),i(...l)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}var Fme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],cr=Fme.reduce((e,t)=>{let r=(0,Jp.forwardRef)((n,i)=>{let{asChild:o,...s}=n,l=o?bs:t;return(0,Jp.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Jp.createElement)(l,Ze({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dx(e,t){e&&(0,oB.flushSync)(()=>e.dispatchEvent(t))}var aB=fe(Ee(),1);function sB(e,t=globalThis?.document){let r=Wn(e);(0,aB.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var ZL="dismissableLayer.update",qme="dismissableLayer.pointerDownOutside",jme="dismissableLayer.focusOutside",lB,Vme=(0,Xr.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=(0,Xr.forwardRef)((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,m=(0,Xr.useContext)(Vme),[v,g]=(0,Xr.useState)(null),y=(r=v?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,w]=(0,Xr.useState)({}),T=sr(t,N=>g(N)),S=Array.from(m.layers),[A]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(A),C=v?S.indexOf(v):-1,x=m.layersWithOutsidePointerEventsDisabled.size>0,k=C>=b,P=Ume(N=>{let I=N.target,V=[...m.branches].some(G=>G.contains(I));!k||V||(o?.(N),l?.(N),N.defaultPrevented||c?.())},y),D=Bme(N=>{let I=N.target;[...m.branches].some(G=>G.contains(I))||(s?.(N),l?.(N),N.defaultPrevented||c?.())},y);return sB(N=>{C===m.layers.size-1&&(i?.(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},y),(0,Xr.useEffect)(()=>{if(v)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(lB=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),uB(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=lB)}},[v,y,n,m]),(0,Xr.useEffect)(()=>()=>{v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),uB())},[v,m]),(0,Xr.useEffect)(()=>{let N=()=>w({});return document.addEventListener(ZL,N),()=>document.removeEventListener(ZL,N)},[]),(0,Xr.createElement)(cr.div,Ze({},f,{ref:T,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:xt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:xt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:xt(e.onPointerDownCapture,P.onPointerDownCapture)}))});function Ume(e,t=globalThis?.document){let r=Wn(e),n=(0,Xr.useRef)(!1),i=(0,Xr.useRef)(()=>{});return(0,Xr.useEffect)(()=>{let o=l=>{if(l.target&&!n.current){let f=function(){cB(qme,r,c,{discrete:!0})},c={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Bme(e,t=globalThis?.document){let r=Wn(e),n=(0,Xr.useRef)(!1);return(0,Xr.useEffect)(()=>{let i=o=>{o.target&&!n.current&&cB(jme,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function uB(){let e=new CustomEvent(ZL);document.dispatchEvent(e)}function cB(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?dx(i,o):i.dispatchEvent(o)}var Zi=fe(Ee(),1);var JL="focusScope.autoFocusOnMount",_L="focusScope.autoFocusOnUnmount",fB={bubbles:!1,cancelable:!0};var px=(0,Zi.forwardRef)((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,c]=(0,Zi.useState)(null),f=Wn(i),m=Wn(o),v=(0,Zi.useRef)(null),g=sr(t,T=>c(T)),y=(0,Zi.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Zi.useEffect)(()=>{if(n){let T=function(C){if(y.paused||!l)return;let x=C.target;l.contains(x)?v.current=x:qu(v.current,{select:!0})},S=function(C){if(y.paused||!l)return;let x=C.relatedTarget;x!==null&&(l.contains(x)||qu(v.current,{select:!0}))},A=function(C){if(document.activeElement===document.body)for(let k of C)k.removedNodes.length>0&&qu(l)};document.addEventListener("focusin",T),document.addEventListener("focusout",S);let b=new MutationObserver(A);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",S),b.disconnect()}}},[n,l,y.paused]),(0,Zi.useEffect)(()=>{if(l){pB.add(y);let T=document.activeElement;if(!l.contains(T)){let A=new CustomEvent(JL,fB);l.addEventListener(JL,f),l.dispatchEvent(A),A.defaultPrevented||(Gme(Yme(hB(l)),{select:!0}),document.activeElement===T&&qu(l))}return()=>{l.removeEventListener(JL,f),setTimeout(()=>{let A=new CustomEvent(_L,fB);l.addEventListener(_L,m),l.dispatchEvent(A),A.defaultPrevented||qu(T??document.body,{select:!0}),l.removeEventListener(_L,m),pB.remove(y)},0)}}},[l,f,m,y]);let w=(0,Zi.useCallback)(T=>{if(!r&&!n||y.paused)return;let S=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,A=document.activeElement;if(S&&A){let b=T.currentTarget,[C,x]=zme(b);C&&x?!T.shiftKey&&A===x?(T.preventDefault(),r&&qu(C,{select:!0})):T.shiftKey&&A===C&&(T.preventDefault(),r&&qu(x,{select:!0})):A===b&&T.preventDefault()}},[r,n,y.paused]);return(0,Zi.createElement)(cr.div,Ze({tabIndex:-1},s,{ref:g,onKeyDown:w}))});function Gme(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(qu(n,{select:t}),document.activeElement!==r)return}function zme(e){let t=hB(e),r=dB(t,e),n=dB(t.reverse(),e);return[r,n]}function hB(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function dB(e,t){for(let r of e)if(!Hme(r,{upTo:t}))return r}function Hme(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Qme(e){return e instanceof HTMLInputElement&&"select"in e}function qu(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Qme(e)&&t&&e.select()}}var pB=Wme();function Wme(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=mB(e,t),e.unshift(t)},remove(t){var r;e=mB(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function mB(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Yme(e){return e.filter(t=>t.tagName!=="A")}var mx=fe(Ee(),1),vB=fe(mf(),1);var $p=(0,mx.forwardRef)((e,t)=>{var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?vB.default.createPortal((0,mx.createElement)(cr.div,Ze({},i,{ref:t})),n):null});var hi=fe(Ee(),1),gB=fe(mf(),1);function Kme(e,t){return(0,hi.useReducer)((r,n)=>{let i=t[r][n];return i??r},e)}var Pa=e=>{let{present:t,children:r}=e,n=Xme(t),i=typeof r=="function"?r({present:n.isPresent}):hi.Children.only(r),o=sr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,hi.cloneElement)(i,{ref:o}):null};Pa.displayName="Presence";function Xme(e){let[t,r]=(0,hi.useState)(),n=(0,hi.useRef)({}),i=(0,hi.useRef)(e),o=(0,hi.useRef)("none"),s=e?"mounted":"unmounted",[l,c]=Kme(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,hi.useEffect)(()=>{let f=hx(n.current);o.current=l==="mounted"?f:"none"},[l]),ds(()=>{let f=n.current,m=i.current;if(m!==e){let g=o.current,y=hx(f);e?c("MOUNT"):y==="none"||f?.display==="none"?c("UNMOUNT"):c(m&&g!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),ds(()=>{if(t){let f=v=>{let y=hx(n.current).includes(v.animationName);v.target===t&&y&&(0,gB.flushSync)(()=>c("ANIMATION_END"))},m=v=>{v.target===t&&(o.current=hx(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,hi.useCallback)(f=>{f&&(n.current=getComputedStyle(f)),r(f)},[])}}function hx(e){return e?.animationName||"none"}var bB=fe(Ee(),1),$L=0;function vx(){(0,bB.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:yB()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:yB()),$L++,()=>{$L===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),$L--}},[])}function yB(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var As=function(){return As=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u")return the;var t=rhe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var nhe=qg(),ihe=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),` +`+m)}); + } + } + }}),{insertions:n,result:Nfe(t,n)}; +}function Ofe(e){ + if(!('getFields'in e))return[];let t=e.getFields();if(t.id)return['id'];if(t.edges)return['edges'];if(t.node)return['node'];let r=[];for(let n of Object.keys(t))(0,Hn.isLeafType)(t[n].type)&&r.push(n);return r; +}function U4(e,t){ + let r=(0,Hn.getNamedType)(e);if(!e||(0,Hn.isLeafType)(e))return;let n=t(r);if(!(!Array.isArray(n)||n.length===0||!('getFields'in r)))return{kind:Hn.Kind.SELECTION_SET,selections:n.map(i=>{ + let o=r.getFields()[i],s=o?o.type:null;return{kind:Hn.Kind.FIELD,name:{kind:Hn.Kind.NAME,value:i},selectionSet:U4(s,t)}; + })}; +}function Nfe(e,t){ + if(t.length===0)return e;let r='',n=0;for(let{index:i,string:o}of t)r+=e.slice(n,i)+o,n=i;return r+=e.slice(n),r; +}function Dfe(e,t){ + let r=t,n=t;for(;r;){ + let i=e.charCodeAt(r-1);if(i===10||i===13||i===8232||i===8233)break;r--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(n=r); + }return e.slice(r,n); +}function Lfe(e){ + if(e)return e; +}var fo=fe(Ur());function Pfe(e,t){ + var r;let n=new Map,i=[];for(let o of e)if(o.kind==='Field'){ + let s=t(o),l=n.get(s);if(!((r=o.directives)===null||r===void 0)&&r.length){ + let c=Object.assign({},o);i.push(c); + }else if(l?.selectionSet&&o.selectionSet)l.selectionSet.selections=[...l.selectionSet.selections,...o.selectionSet.selections];else if(!l){ + let c=Object.assign({},o);n.set(s,c),i.push(c); + } + }else i.push(o);return i; +}function B4(e,t,r){ + var n;let i=r?(0,fo.getNamedType)(r).name:null,o=[],s=[];for(let l of t){ + if(l.kind==='FragmentSpread'){ + let c=l.name.value;if(!l.directives||l.directives.length===0){ + if(s.includes(c))continue;s.push(c); + }let f=e[l.name.value];if(f){ + let{typeCondition:m,directives:v,selectionSet:g}=f;l={kind:fo.Kind.INLINE_FRAGMENT,typeCondition:m,directives:v,selectionSet:g}; + } + }if(l.kind===fo.Kind.INLINE_FRAGMENT&&(!l.directives||((n=l.directives)===null||n===void 0?void 0:n.length)===0)){ + let c=l.typeCondition?l.typeCondition.name.value:null;if(!c||c===i){ + o.push(...B4(e,l.selectionSet.selections,r));continue; + } + }o.push(l); + }return o; +}function G4(e,t){ + let r=t?new fo.TypeInfo(t):null,n=Object.create(null);for(let l of e.definitions)l.kind===fo.Kind.FRAGMENT_DEFINITION&&(n[l.name.value]=l);let i={SelectionSet(l){ + let c=r?r.getParentType():null,{selections:f}=l;return f=B4(n,f,c),Object.assign(Object.assign({},l),{selections:f}); + },FragmentDefinition(){ + return null; + }},o=(0,fo.visit)(e,r?(0,fo.visitWithTypeInfo)(r,i):i);return(0,fo.visit)(o,{SelectionSet(l){ + let{selections:c}=l;return c=Pfe(c,f=>f.alias?f.alias.value:f.name.value),Object.assign(Object.assign({},l),{selections:c}); + },FragmentDefinition(){ + return null; + }}); +}function z4(e,t,r){ + if(!r||r.length<1)return;let n=r.map(i=>{ + var o;return(o=i.name)===null||o===void 0?void 0:o.value; + });if(t&&n.includes(t))return t;if(t&&e){ + let o=e.map(s=>{ + var l;return(l=s.name)===null||l===void 0?void 0:l.value; + }).indexOf(t);if(o!==-1&&o'u'?this.storage=null:this.storage={getItem:window.localStorage.getItem.bind(window.localStorage),setItem:window.localStorage.setItem.bind(window.localStorage),removeItem:window.localStorage.removeItem.bind(window.localStorage),get length(){ + let r=0;for(let n in window.localStorage)n.indexOf(`${kA}:`)===0&&(r+=1);return r; + },clear(){ + for(let r in window.localStorage)r.indexOf(`${kA}:`)===0&&window.localStorage.removeItem(r); + }}; + }get(t){ + if(!this.storage)return null;let r=`${kA}:${t}`,n=this.storage.getItem(r);return n==='null'||n==='undefined'?(this.storage.removeItem(r),null):n||null; + }set(t,r){ + let n=!1,i=null;if(this.storage){ + let o=`${kA}:${t}`;if(r)try{ + this.storage.setItem(o,r); + }catch(s){ + i=s instanceof Error?s:new Error(`${s}`),n=Rfe(this.storage,s); + }else this.storage.removeItem(o); + }return{isQuotaError:n,error:i}; + }clear(){ + this.storage&&this.storage.clear(); + } + },kA='graphiql';var H4=fe(Ur());var jv=class{ + constructor(t,r,n=null){ + this.key=t,this.storage=r,this.maxSize=n,this.items=this.fetchAll(); + }get length(){ + return this.items.length; + }contains(t){ + return this.items.some(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName); + }edit(t,r){ + if(typeof r=='number'&&this.items[r]){ + let i=this.items[r];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){ + this.items.splice(r,1,t),this.save();return; + } + }let n=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);n!==-1&&(this.items.splice(n,1,t),this.save()); + }delete(t){ + let r=this.items.findIndex(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName);r!==-1&&(this.items.splice(r,1),this.save()); + }fetchRecent(){ + return this.items.at(-1); + }fetchAll(){ + let t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]; + }push(t){ + let r=[...this.items,t];this.maxSize&&r.length>this.maxSize&&r.shift();for(let n=0;n<5;n++){ + let i=this.storage.set(this.key,JSON.stringify({[this.key]:r}));if(!i?.error)this.items=r;else if(i.isQuotaError&&this.maxSize)r.shift();else return; + } + }save(){ + this.storage.set(this.key,JSON.stringify({[this.key]:this.items})); + } +};var Mfe=1e5,OA=class{ + constructor(t,r){ + this.storage=t,this.maxHistoryLength=r,this.updateHistory=({query:n,variables:i,headers:o,operationName:s})=>{ + if(!this.shouldSaveQuery(n,i,o,this.history.fetchRecent()))return;this.history.push({query:n,variables:i,headers:o,operationName:s});let l=this.history.items,c=this.favorite.items;this.queries=l.concat(c); + },this.deleteHistory=({query:n,variables:i,headers:o,operationName:s,favorite:l},c=!1)=>{ + function f(m){ + let v=m.items.find(g=>g.query===n&&g.variables===i&&g.headers===o&&g.operationName===s);v&&m.delete(v); + }(l||c)&&f(this.favorite),(!l||c)&&f(this.history),this.queries=[...this.history.items,...this.favorite.items]; + },this.history=new jv('queries',this.storage,this.maxHistoryLength),this.favorite=new jv('favorites',this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]; + }shouldSaveQuery(t,r,n,i){ + if(!t)return!1;try{ + (0,H4.parse)(t); + }catch{ + return!1; + }return t.length>Mfe?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(r)===JSON.stringify(i.variables)&&(JSON.stringify(n)===JSON.stringify(i.headers)||n&&!i.headers)||r&&!i.variables)):!0; + }toggleFavorite({query:t,variables:r,headers:n,operationName:i,label:o,favorite:s}){ + let l={query:t,variables:r,headers:n,operationName:i,label:o};s?(l.favorite=!1,this.favorite.delete(l),this.history.push(l)):(l.favorite=!0,this.favorite.push(l),this.history.delete(l)),this.queries=[...this.history.items,...this.favorite.items]; + }editLabel({query:t,variables:r,headers:n,operationName:i,label:o,favorite:s},l){ + let c={query:t,variables:r,headers:n,operationName:i,label:o};s?this.favorite.edit(Object.assign(Object.assign({},c),{favorite:s}),l):this.history.edit(c,l),this.queries=[...this.history.items,...this.favorite.items]; + } +};Zc();var u_=fe(Dq(),1),c_=fe(Iq(),1);function Ze(){ + return Ze=Object.assign?Object.assign.bind():function(e){ + for(var t=1;te.forEach(r=>Ode(r,t)); +}function sr(...e){ + return(0,Fq.useCallback)(Ap(...e),e); +}var Pi=fe(Ee(),1);function qq(e,t){ + let r=(0,Pi.createContext)(t);function n(o){ + let{children:s,...l}=o,c=(0,Pi.useMemo)(()=>l,Object.values(l));return(0,Pi.createElement)(r.Provider,{value:c},s); + }function i(o){ + let s=(0,Pi.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``); + }return n.displayName=e+'Provider',[n,i]; +}function Hi(e,t=[]){ + let r=[];function n(o,s){ + let l=(0,Pi.createContext)(s),c=r.length;r=[...r,s];function f(v){ + let{scope:g,children:y,...w}=v,T=g?.[e][c]||l,S=(0,Pi.useMemo)(()=>w,Object.values(w));return(0,Pi.createElement)(T.Provider,{value:S},y); + }function m(v,g){ + let y=g?.[e][c]||l,w=(0,Pi.useContext)(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${v}\` must be used within \`${o}\``); + }return f.displayName=o+'Provider',[f,m]; + }let i=()=>{ + let o=r.map(s=>(0,Pi.createContext)(s));return function(l){ + let c=l?.[e]||o;return(0,Pi.useMemo)(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c]); + }; + };return i.scopeName=e,[n,Nde(i,...t)]; +}function Nde(...e){ + let t=e[0];if(e.length===1)return t;let r=()=>{ + let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){ + let s=n.reduce((l,{useScope:c,scopeName:f})=>{ + let v=c(o)[`__scope${f}`];return{...l,...v}; + },{});return(0,Pi.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s]); + }; + };return r.scopeName=t.scopeName,r; +}var MD=fe(Ee(),1);var jq=fe(Ee(),1),ds=globalThis?.document?jq.useLayoutEffect:()=>{};var Dde=MD['useId'.toString()]||(()=>{}),Lde=0;function Ea(e){ + let[t,r]=MD.useState(Dde());return ds(()=>{ + e||r(n=>n??String(Lde++)); + },[e]),e||(t?`radix-${t}`:''); +}var mu=fe(Ee(),1);var xp=fe(Ee(),1);function Wn(e){ + let t=(0,xp.useRef)(e);return(0,xp.useEffect)(()=>{ + t.current=e; + }),(0,xp.useMemo)(()=>(...r)=>{ + var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r); + },[]); +}function hu({prop:e,defaultProp:t,onChange:r=()=>{}}){ + let[n,i]=Pde({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,l=Wn(r),c=(0,mu.useCallback)(f=>{ + if(o){ + let v=typeof f=='function'?f(e):f;v!==e&&l(v); + }else i(f); + },[o,e,i,l]);return[s,c]; +}function Pde({defaultProp:e,onChange:t}){ + let r=(0,mu.useState)(e),[n]=r,i=(0,mu.useRef)(n),o=Wn(t);return(0,mu.useEffect)(()=>{ + i.current!==n&&(o(n),i.current=n); + },[n,i,o]),r; +}var Xr=fe(Ee(),1);var Jp=fe(Ee(),1),oB=fe(mf(),1);var Ir=fe(Ee(),1);var bs=(0,Ir.forwardRef)((e,t)=>{ + let{children:r,...n}=e,i=Ir.Children.toArray(r),o=i.find(Mme);if(o){ + let s=o.props.children,l=i.map(c=>c===o?Ir.Children.count(s)>1?Ir.Children.only(null):(0,Ir.isValidElement)(s)?s.props.children:null:c);return(0,Ir.createElement)(KL,Ze({},n,{ref:t}),(0,Ir.isValidElement)(s)?(0,Ir.cloneElement)(s,void 0,l):null); + }return(0,Ir.createElement)(KL,Ze({},n,{ref:t}),r); +});bs.displayName='Slot';var KL=(0,Ir.forwardRef)((e,t)=>{ + let{children:r,...n}=e;return(0,Ir.isValidElement)(r)?(0,Ir.cloneElement)(r,{...Ime(n,r.props),ref:t?Ap(t,r.ref):r.ref}):Ir.Children.count(r)>1?Ir.Children.only(null):null; +});KL.displayName='SlotClone';var XL=({children:e})=>(0,Ir.createElement)(Ir.Fragment,null,e);function Mme(e){ + return(0,Ir.isValidElement)(e)&&e.type===XL; +}function Ime(e,t){ + let r={...t};for(let n in t){ + let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...l)=>{ + o(...l),i(...l); + }:i&&(r[n]=i):n==='style'?r[n]={...i,...o}:n==='className'&&(r[n]=[i,o].filter(Boolean).join(' ')); + }return{...e,...r}; +}var Fme=['a','button','div','form','h2','h3','img','input','label','li','nav','ol','p','span','svg','ul'],cr=Fme.reduce((e,t)=>{ + let r=(0,Jp.forwardRef)((n,i)=>{ + let{asChild:o,...s}=n,l=o?bs:t;return(0,Jp.useEffect)(()=>{ + window[Symbol.for('radix-ui')]=!0; + },[]),(0,Jp.createElement)(l,Ze({},s,{ref:i})); + });return r.displayName=`Primitive.${t}`,{...e,[t]:r}; +},{});function dx(e,t){ + e&&(0,oB.flushSync)(()=>e.dispatchEvent(t)); +}var aB=fe(Ee(),1);function sB(e,t=globalThis?.document){ + let r=Wn(e);(0,aB.useEffect)(()=>{ + let n=i=>{ + i.key==='Escape'&&r(i); + };return t.addEventListener('keydown',n),()=>t.removeEventListener('keydown',n); + },[r,t]); +}var ZL='dismissableLayer.update',qme='dismissableLayer.pointerDownOutside',jme='dismissableLayer.focusOutside',lB,Vme=(0,Xr.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_p=(0,Xr.forwardRef)((e,t)=>{ + var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,m=(0,Xr.useContext)(Vme),[v,g]=(0,Xr.useState)(null),y=(r=v?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,w]=(0,Xr.useState)({}),T=sr(t,N=>g(N)),S=Array.from(m.layers),[A]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(A),C=v?S.indexOf(v):-1,x=m.layersWithOutsidePointerEventsDisabled.size>0,k=C>=b,P=Ume(N=>{ + let I=N.target,V=[...m.branches].some(G=>G.contains(I));!k||V||(o?.(N),l?.(N),N.defaultPrevented||c?.()); + },y),D=Bme(N=>{ + let I=N.target;[...m.branches].some(G=>G.contains(I))||(s?.(N),l?.(N),N.defaultPrevented||c?.()); + },y);return sB(N=>{ + C===m.layers.size-1&&(i?.(N),!N.defaultPrevented&&c&&(N.preventDefault(),c())); + },y),(0,Xr.useEffect)(()=>{ + if(v)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(lB=y.body.style.pointerEvents,y.body.style.pointerEvents='none'),m.layersWithOutsidePointerEventsDisabled.add(v)),m.layers.add(v),uB(),()=>{ + n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=lB); + }; + },[v,y,n,m]),(0,Xr.useEffect)(()=>()=>{ + v&&(m.layers.delete(v),m.layersWithOutsidePointerEventsDisabled.delete(v),uB()); + },[v,m]),(0,Xr.useEffect)(()=>{ + let N=()=>w({});return document.addEventListener(ZL,N),()=>document.removeEventListener(ZL,N); + },[]),(0,Xr.createElement)(cr.div,Ze({},f,{ref:T,style:{pointerEvents:x?k?'auto':'none':void 0,...e.style},onFocusCapture:xt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:xt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:xt(e.onPointerDownCapture,P.onPointerDownCapture)})); +});function Ume(e,t=globalThis?.document){ + let r=Wn(e),n=(0,Xr.useRef)(!1),i=(0,Xr.useRef)(()=>{});return(0,Xr.useEffect)(()=>{ + let o=l=>{ + if(l.target&&!n.current){ + let f=function(){ + cB(qme,r,c,{discrete:!0}); + },c={originalEvent:l};l.pointerType==='touch'?(t.removeEventListener('click',i.current),i.current=f,t.addEventListener('click',i.current,{once:!0})):f(); + }else t.removeEventListener('click',i.current);n.current=!1; + },s=window.setTimeout(()=>{ + t.addEventListener('pointerdown',o); + },0);return()=>{ + window.clearTimeout(s),t.removeEventListener('pointerdown',o),t.removeEventListener('click',i.current); + }; + },[t,r]),{onPointerDownCapture:()=>n.current=!0}; +}function Bme(e,t=globalThis?.document){ + let r=Wn(e),n=(0,Xr.useRef)(!1);return(0,Xr.useEffect)(()=>{ + let i=o=>{ + o.target&&!n.current&&cB(jme,r,{originalEvent:o},{discrete:!1}); + };return t.addEventListener('focusin',i),()=>t.removeEventListener('focusin',i); + },[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}; +}function uB(){ + let e=new CustomEvent(ZL);document.dispatchEvent(e); +}function cB(e,t,r,{discrete:n}){ + let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?dx(i,o):i.dispatchEvent(o); +}var Zi=fe(Ee(),1);var JL='focusScope.autoFocusOnMount',_L='focusScope.autoFocusOnUnmount',fB={bubbles:!1,cancelable:!0};var px=(0,Zi.forwardRef)((e,t)=>{ + let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[l,c]=(0,Zi.useState)(null),f=Wn(i),m=Wn(o),v=(0,Zi.useRef)(null),g=sr(t,T=>c(T)),y=(0,Zi.useRef)({paused:!1,pause(){ + this.paused=!0; + },resume(){ + this.paused=!1; + }}).current;(0,Zi.useEffect)(()=>{ + if(n){ + let T=function(C){ + if(y.paused||!l)return;let x=C.target;l.contains(x)?v.current=x:qu(v.current,{select:!0}); + },S=function(C){ + if(y.paused||!l)return;let x=C.relatedTarget;x!==null&&(l.contains(x)||qu(v.current,{select:!0})); + },A=function(C){ + if(document.activeElement===document.body)for(let k of C)k.removedNodes.length>0&&qu(l); + };document.addEventListener('focusin',T),document.addEventListener('focusout',S);let b=new MutationObserver(A);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{ + document.removeEventListener('focusin',T),document.removeEventListener('focusout',S),b.disconnect(); + }; + } + },[n,l,y.paused]),(0,Zi.useEffect)(()=>{ + if(l){ + pB.add(y);let T=document.activeElement;if(!l.contains(T)){ + let A=new CustomEvent(JL,fB);l.addEventListener(JL,f),l.dispatchEvent(A),A.defaultPrevented||(Gme(Yme(hB(l)),{select:!0}),document.activeElement===T&&qu(l)); + }return()=>{ + l.removeEventListener(JL,f),setTimeout(()=>{ + let A=new CustomEvent(_L,fB);l.addEventListener(_L,m),l.dispatchEvent(A),A.defaultPrevented||qu(T??document.body,{select:!0}),l.removeEventListener(_L,m),pB.remove(y); + },0); + }; + } + },[l,f,m,y]);let w=(0,Zi.useCallback)(T=>{ + if(!r&&!n||y.paused)return;let S=T.key==='Tab'&&!T.altKey&&!T.ctrlKey&&!T.metaKey,A=document.activeElement;if(S&&A){ + let b=T.currentTarget,[C,x]=zme(b);C&&x?!T.shiftKey&&A===x?(T.preventDefault(),r&&qu(C,{select:!0})):T.shiftKey&&A===C&&(T.preventDefault(),r&&qu(x,{select:!0})):A===b&&T.preventDefault(); + } + },[r,n,y.paused]);return(0,Zi.createElement)(cr.div,Ze({tabIndex:-1},s,{ref:g,onKeyDown:w})); +});function Gme(e,{select:t=!1}={}){ + let r=document.activeElement;for(let n of e)if(qu(n,{select:t}),document.activeElement!==r)return; +}function zme(e){ + let t=hB(e),r=dB(t,e),n=dB(t.reverse(),e);return[r,n]; +}function hB(e){ + let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{ + let i=n.tagName==='INPUT'&&n.type==='hidden';return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP; + }});for(;r.nextNode();)t.push(r.currentNode);return t; +}function dB(e,t){ + for(let r of e)if(!Hme(r,{upTo:t}))return r; +}function Hme(e,{upTo:t}){ + if(getComputedStyle(e).visibility==='hidden')return!0;for(;e;){ + if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==='none')return!0;e=e.parentElement; + }return!1; +}function Qme(e){ + return e instanceof HTMLInputElement&&'select'in e; +}function qu(e,{select:t=!1}={}){ + if(e&&e.focus){ + let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Qme(e)&&t&&e.select(); + } +}var pB=Wme();function Wme(){ + let e=[];return{add(t){ + let r=e[0];t!==r&&r?.pause(),e=mB(e,t),e.unshift(t); + },remove(t){ + var r;e=mB(e,t),(r=e[0])===null||r===void 0||r.resume(); + }}; +}function mB(e,t){ + let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r; +}function Yme(e){ + return e.filter(t=>t.tagName!=='A'); +}var mx=fe(Ee(),1),vB=fe(mf(),1);var $p=(0,mx.forwardRef)((e,t)=>{ + var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?vB.default.createPortal((0,mx.createElement)(cr.div,Ze({},i,{ref:t})),n):null; +});var hi=fe(Ee(),1),gB=fe(mf(),1);function Kme(e,t){ + return(0,hi.useReducer)((r,n)=>{ + let i=t[r][n];return i??r; + },e); +}var Pa=e=>{ + let{present:t,children:r}=e,n=Xme(t),i=typeof r=='function'?r({present:n.isPresent}):hi.Children.only(r),o=sr(n.ref,i.ref);return typeof r=='function'||n.isPresent?(0,hi.cloneElement)(i,{ref:o}):null; +};Pa.displayName='Presence';function Xme(e){ + let[t,r]=(0,hi.useState)(),n=(0,hi.useRef)({}),i=(0,hi.useRef)(e),o=(0,hi.useRef)('none'),s=e?'mounted':'unmounted',[l,c]=Kme(s,{mounted:{UNMOUNT:'unmounted',ANIMATION_OUT:'unmountSuspended'},unmountSuspended:{MOUNT:'mounted',ANIMATION_END:'unmounted'},unmounted:{MOUNT:'mounted'}});return(0,hi.useEffect)(()=>{ + let f=hx(n.current);o.current=l==='mounted'?f:'none'; + },[l]),ds(()=>{ + let f=n.current,m=i.current;if(m!==e){ + let g=o.current,y=hx(f);e?c('MOUNT'):y==='none'||f?.display==='none'?c('UNMOUNT'):c(m&&g!==y?'ANIMATION_OUT':'UNMOUNT'),i.current=e; + } + },[e,c]),ds(()=>{ + if(t){ + let f=v=>{ + let y=hx(n.current).includes(v.animationName);v.target===t&&y&&(0,gB.flushSync)(()=>c('ANIMATION_END')); + },m=v=>{ + v.target===t&&(o.current=hx(n.current)); + };return t.addEventListener('animationstart',m),t.addEventListener('animationcancel',f),t.addEventListener('animationend',f),()=>{ + t.removeEventListener('animationstart',m),t.removeEventListener('animationcancel',f),t.removeEventListener('animationend',f); + }; + }else c('ANIMATION_END'); + },[t,c]),{isPresent:['mounted','unmountSuspended'].includes(l),ref:(0,hi.useCallback)(f=>{ + f&&(n.current=getComputedStyle(f)),r(f); + },[])}; +}function hx(e){ + return e?.animationName||'none'; +}var bB=fe(Ee(),1),$L=0;function vx(){ + (0,bB.useEffect)(()=>{ + var e,t;let r=document.querySelectorAll('[data-radix-focus-guard]');return document.body.insertAdjacentElement('afterbegin',(e=r[0])!==null&&e!==void 0?e:yB()),document.body.insertAdjacentElement('beforeend',(t=r[1])!==null&&t!==void 0?t:yB()),$L++,()=>{ + $L===1&&document.querySelectorAll('[data-radix-focus-guard]').forEach(n=>n.remove()),$L--; + }; + },[]); +}function yB(){ + let e=document.createElement('span');return e.setAttribute('data-radix-focus-guard',''),e.tabIndex=0,e.style.cssText='outline: none; opacity: 0; position: fixed; pointer-events: none',e; +}var As=function(){ + return As=Object.assign||function(t){ + for(var r,n=1,i=arguments.length;n'u')return the;var t=rhe(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}; + };var nhe=qg(),ihe=function(e,t,r,n){ + var i=e.left,o=e.top,s=e.right,l=e.gap;return r===void 0&&(r='margin'),` .`.concat(eP,` { overflow: hidden `).concat(n,`; - padding-right: `).concat(l,"px ").concat(n,`; + padding-right: `).concat(l,'px ').concat(n,`; } body { overflow: hidden `).concat(n,`; overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + `).concat([t&&'position: relative '.concat(n,';'),r==='margin'&&` padding-left: `.concat(i,`px; padding-top: `).concat(o,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; - margin-right: `).concat(l,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),` + margin-right: `).concat(l,'px ').concat(n,`; + `),r==='padding'&&'padding-right: '.concat(l,'px ').concat(n,';')].filter(Boolean).join(''),` } .`).concat(hf,` { - right: `).concat(l,"px ").concat(n,`; + right: `).concat(l,'px ').concat(n,`; } .`).concat(vf,` { - margin-right: `).concat(l,"px ").concat(n,`; + margin-right: `).concat(l,'px ').concat(n,`; } - .`).concat(hf," .").concat(hf,` { + .`).concat(hf,' .').concat(hf,` { right: 0 `).concat(n,`; } - .`).concat(vf," .").concat(vf,` { + .`).concat(vf,' .').concat(vf,` { margin-right: 0 `).concat(n,`; } body { - `).concat(tP,": ").concat(l,`px; + `).concat(tP,': ').concat(l,`px; } -`)},cP=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=yx.useMemo(function(){return uP(i)},[i]);return yx.createElement(nhe,{styles:ihe(o,!t,i,r?"":"!important")})};var fP=!1;if(typeof window<"u")try{jg=Object.defineProperty({},"passive",{get:function(){return fP=!0,!0}}),window.addEventListener("test",jg,jg),window.removeEventListener("test",jg,jg)}catch{fP=!1}var jg,gf=fP?{passive:!1}:!1;var ohe=function(e){return e.tagName==="TEXTAREA"},LB=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ohe(e)&&r[t]==="visible")},ahe=function(e){return LB(e,"overflowY")},she=function(e){return LB(e,"overflowX")},dP=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=PB(e,r);if(n){var i=RB(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},lhe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},uhe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},PB=function(e,t){return e==="v"?ahe(t):she(t)},RB=function(e,t){return e==="v"?lhe(t):uhe(t)},che=function(e,t){return e==="h"&&t==="rtl"?-1:1},MB=function(e,t,r,n,i){var o=che(e,window.getComputedStyle(t).direction),s=o*n,l=r.target,c=t.contains(l),f=!1,m=s>0,v=0,g=0;do{var y=RB(e,l),w=y[0],T=y[1],S=y[2],A=T-S-o*w;(w||A)&&PB(e,l)&&(v+=A,g+=w),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(m&&(i&&v===0||!i&&s>v)||!m&&(i&&g===0||!i&&-s>g))&&(f=!0),f};var bx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},IB=function(e){return[e.deltaX,e.deltaY]},FB=function(e){return e&&"current"in e?e.current:e},fhe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dhe=function(e){return` +`); + },cP=function(e){ + var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?'margin':n,o=yx.useMemo(function(){ + return uP(i); + },[i]);return yx.createElement(nhe,{styles:ihe(o,!t,i,r?'':'!important')}); + };var fP=!1;if(typeof window<'u')try{ + jg=Object.defineProperty({},'passive',{get:function(){ + return fP=!0,!0; + }}),window.addEventListener('test',jg,jg),window.removeEventListener('test',jg,jg); +}catch{ + fP=!1; +}var jg,gf=fP?{passive:!1}:!1;var ohe=function(e){ + return e.tagName==='TEXTAREA'; + },LB=function(e,t){ + var r=window.getComputedStyle(e);return r[t]!=='hidden'&&!(r.overflowY===r.overflowX&&!ohe(e)&&r[t]==='visible'); + },ahe=function(e){ + return LB(e,'overflowY'); + },she=function(e){ + return LB(e,'overflowX'); + },dP=function(e,t){ + var r=t;do{ + typeof ShadowRoot<'u'&&r instanceof ShadowRoot&&(r=r.host);var n=PB(e,r);if(n){ + var i=RB(e,r),o=i[1],s=i[2];if(o>s)return!0; + }r=r.parentNode; + }while(r&&r!==document.body);return!1; + },lhe=function(e){ + var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]; + },uhe=function(e){ + var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]; + },PB=function(e,t){ + return e==='v'?ahe(t):she(t); + },RB=function(e,t){ + return e==='v'?lhe(t):uhe(t); + },che=function(e,t){ + return e==='h'&&t==='rtl'?-1:1; + },MB=function(e,t,r,n,i){ + var o=che(e,window.getComputedStyle(t).direction),s=o*n,l=r.target,c=t.contains(l),f=!1,m=s>0,v=0,g=0;do{ + var y=RB(e,l),w=y[0],T=y[1],S=y[2],A=T-S-o*w;(w||A)&&PB(e,l)&&(v+=A,g+=w),l=l.parentNode; + }while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(m&&(i&&v===0||!i&&s>v)||!m&&(i&&g===0||!i&&-s>g))&&(f=!0),f; + };var bx=function(e){ + return'changedTouches'in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]; + },IB=function(e){ + return[e.deltaX,e.deltaY]; + },FB=function(e){ + return e&&'current'in e?e.current:e; + },fhe=function(e,t){ + return e[0]===t[0]&&e[1]===t[1]; + },dhe=function(e){ + return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},phe=0,tm=[];function qB(e){var t=br.useRef([]),r=br.useRef([0,0]),n=br.useRef(),i=br.useState(phe++)[0],o=br.useState(function(){return qg()})[0],s=br.useRef(e);br.useEffect(function(){s.current=e},[e]),br.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var T=xB([e.lockRef.current],(e.shards||[]).map(FB),!0).filter(Boolean);return T.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),T.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=br.useCallback(function(T,S){if("touches"in T&&T.touches.length===2)return!s.current.allowPinchZoom;var A=bx(T),b=r.current,C="deltaX"in T?T.deltaX:b[0]-A[0],x="deltaY"in T?T.deltaY:b[1]-A[1],k,P=T.target,D=Math.abs(C)>Math.abs(x)?"h":"v";if("touches"in T&&D==="h"&&P.type==="range")return!1;var N=dP(D,P);if(!N)return!0;if(N?k=D:(k=D==="v"?"h":"v",N=dP(D,P)),!N)return!1;if(!n.current&&"changedTouches"in T&&(C||x)&&(n.current=k),!k)return!0;var I=n.current||k;return MB(I,S,T,I==="h"?C:x,!0)},[]),c=br.useCallback(function(T){var S=T;if(!(!tm.length||tm[tm.length-1]!==o)){var A="deltaY"in S?IB(S):bx(S),b=t.current.filter(function(k){return k.name===S.type&&k.target===S.target&&fhe(k.delta,A)})[0];if(b&&b.should){S.cancelable&&S.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(FB).filter(Boolean).filter(function(k){return k.contains(S.target)}),x=C.length>0?l(S,C[0]):!s.current.noIsolation;x&&S.cancelable&&S.preventDefault()}}},[]),f=br.useCallback(function(T,S,A,b){var C={name:T,delta:S,target:A,should:b};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(x){return x!==C})},1)},[]),m=br.useCallback(function(T){r.current=bx(T),n.current=void 0},[]),v=br.useCallback(function(T){f(T.type,IB(T),T.target,l(T,e.lockRef.current))},[]),g=br.useCallback(function(T){f(T.type,bx(T),T.target,l(T,e.lockRef.current))},[]);br.useEffect(function(){return tm.push(o),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:g}),document.addEventListener("wheel",c,gf),document.addEventListener("touchmove",c,gf),document.addEventListener("touchstart",m,gf),function(){tm=tm.filter(function(T){return T!==o}),document.removeEventListener("wheel",c,gf),document.removeEventListener("touchmove",c,gf),document.removeEventListener("touchstart",m,gf)}},[]);var y=e.removeScrollBar,w=e.inert;return br.createElement(br.Fragment,null,w?br.createElement(o,{styles:dhe(i)}):null,y?br.createElement(cP,{gapMode:"margin"}):null)}var jB=iP(gx,qB);var VB=Ax.forwardRef(function(e,t){return Ax.createElement(Fg,As({},e,{ref:t,sideCar:jB}))});VB.classNames=Fg.classNames;var Vg=VB;var mhe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rm=new WeakMap,xx=new WeakMap,wx={},pP=0,UB=function(e){return e&&(e.host||UB(e.parentNode))},hhe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=UB(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},vhe=function(e,t,r,n){var i=hhe(t,Array.isArray(e)?e:[e]);wx[r]||(wx[r]=new WeakMap);var o=wx[r],s=[],l=new Set,c=new Set(i),f=function(v){!v||l.has(v)||(l.add(v),f(v.parentNode))};i.forEach(f);var m=function(v){!v||c.has(v)||Array.prototype.forEach.call(v.children,function(g){if(l.has(g))m(g);else{var y=g.getAttribute(n),w=y!==null&&y!=="false",T=(rm.get(g)||0)+1,S=(o.get(g)||0)+1;rm.set(g,T),o.set(g,S),s.push(g),T===1&&w&&xx.set(g,!0),S===1&&g.setAttribute(r,"true"),w||g.setAttribute(n,"true")}})};return m(t),l.clear(),pP++,function(){s.forEach(function(v){var g=rm.get(v)-1,y=o.get(v)-1;rm.set(v,g),o.set(v,y),g||(xx.has(v)||v.removeAttribute(n),xx.delete(v)),y||v.removeAttribute(r)}),pP--,pP||(rm=new WeakMap,rm=new WeakMap,xx=new WeakMap,wx={})}},Ex=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||mhe(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),vhe(n,i,r,"aria-hidden")):function(){return null}};var BB="Dialog",[GB,F2e]=Hi(BB),[ghe,Ra]=GB(BB),yhe=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=(0,pt.useRef)(null),c=(0,pt.useRef)(null),[f=!1,m]=hu({prop:n,defaultProp:i,onChange:o});return(0,pt.createElement)(ghe,{scope:t,triggerRef:l,contentRef:c,contentId:Ea(),titleId:Ea(),descriptionId:Ea(),open:f,onOpenChange:m,onOpenToggle:(0,pt.useCallback)(()=>m(v=>!v),[m]),modal:s},r)},bhe="DialogTrigger",Ahe=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=Ra(bhe,r),o=sr(t,i.triggerRef);return(0,pt.createElement)(cr.button,Ze({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":hP(i.open)},n,{ref:o,onClick:xt(e.onClick,i.onOpenToggle)}))}),zB="DialogPortal",[xhe,HB]=GB(zB,{forceMount:void 0}),whe=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=Ra(zB,t);return(0,pt.createElement)(xhe,{scope:t,forceMount:r},pt.Children.map(n,s=>(0,pt.createElement)(Pa,{present:r||o.open},(0,pt.createElement)($p,{asChild:!0,container:i},s))))},mP="DialogOverlay",Ehe=(0,pt.forwardRef)((e,t)=>{let r=HB(mP,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ra(mP,e.__scopeDialog);return o.modal?(0,pt.createElement)(Pa,{present:n||o.open},(0,pt.createElement)(The,Ze({},i,{ref:t}))):null}),The=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=Ra(mP,r);return(0,pt.createElement)(Vg,{as:bs,allowPinchZoom:!0,shards:[i.contentRef]},(0,pt.createElement)(cr.div,Ze({"data-state":hP(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),nm="DialogContent",Che=(0,pt.forwardRef)((e,t)=>{let r=HB(nm,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ra(nm,e.__scopeDialog);return(0,pt.createElement)(Pa,{present:n||o.open},o.modal?(0,pt.createElement)(She,Ze({},i,{ref:t})):(0,pt.createElement)(khe,Ze({},i,{ref:t})))}),She=(0,pt.forwardRef)((e,t)=>{let r=Ra(nm,e.__scopeDialog),n=(0,pt.useRef)(null),i=sr(t,r.contentRef,n);return(0,pt.useEffect)(()=>{let o=n.current;if(o)return Ex(o)},[]),(0,pt.createElement)(QB,Ze({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:xt(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&o.preventDefault()}),onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault())}))}),khe=(0,pt.forwardRef)((e,t)=>{let r=Ra(nm,e.__scopeDialog),n=(0,pt.useRef)(!1),i=(0,pt.useRef)(!1);return(0,pt.createElement)(QB,Ze({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,o),!o.defaultPrevented){var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:o=>{var s,l;(s=e.onInteractOutside)===null||s===void 0||s.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));let c=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}}))}),QB=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,l=Ra(nm,r),c=(0,pt.useRef)(null),f=sr(t,c);return vx(),(0,pt.createElement)(pt.Fragment,null,(0,pt.createElement)(px,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,pt.createElement)(_p,Ze({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":hP(l.open)},s,{ref:f,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),WB="DialogTitle",Ohe=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=Ra(WB,r);return(0,pt.createElement)(cr.h2,Ze({id:i.titleId},n,{ref:t}))}),Nhe="DialogDescription",Dhe=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=Ra(Nhe,r);return(0,pt.createElement)(cr.p,Ze({id:i.descriptionId},n,{ref:t}))}),Lhe="DialogClose",Phe=(0,pt.forwardRef)((e,t)=>{let{__scopeDialog:r,...n}=e,i=Ra(Lhe,r);return(0,pt.createElement)(cr.button,Ze({type:"button"},n,{ref:t,onClick:xt(e.onClick,()=>i.onOpenChange(!1))}))});function hP(e){return e?"open":"closed"}var Rhe="DialogTitleWarning",[q2e,j2e]=qq(Rhe,{contentName:nm,titleName:WB,docsSlug:"dialog"});var YB=yhe,KB=Ahe,XB=whe,ZB=Ehe,JB=Che,_B=Ohe,$B=Dhe,eG=Phe;var Tx=fe(Ee(),1);var Ihe=(0,Tx.forwardRef)((e,t)=>(0,Tx.createElement)(cr.span,Ze({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Cx=Ihe;var Zn=fe(Ee(),1);var Ye=fe(Ee(),1);var Ma=fe(Ee(),1);function Sx(e){let t=e+"CollectionProvider",[r,n]=Hi(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{let{scope:w,children:T}=y,S=Ma.default.useRef(null),A=Ma.default.useRef(new Map).current;return Ma.default.createElement(i,{scope:w,itemMap:A,collectionRef:S},T)},l=e+"CollectionSlot",c=Ma.default.forwardRef((y,w)=>{let{scope:T,children:S}=y,A=o(l,T),b=sr(w,A.collectionRef);return Ma.default.createElement(bs,{ref:b},S)}),f=e+"CollectionItemSlot",m="data-radix-collection-item",v=Ma.default.forwardRef((y,w)=>{let{scope:T,children:S,...A}=y,b=Ma.default.useRef(null),C=sr(w,b),x=o(f,T);return Ma.default.useEffect(()=>(x.itemMap.set(b,{ref:b,...A}),()=>void x.itemMap.delete(b))),Ma.default.createElement(bs,{[m]:"",ref:C},S)});function g(y){let w=o(e+"CollectionConsumer",y);return Ma.default.useCallback(()=>{let S=w.collectionRef.current;if(!S)return[];let A=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((x,k)=>A.indexOf(x.ref.current)-A.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:c,ItemSlot:v},g,n]}var Ug=fe(Ee(),1),Fhe=(0,Ug.createContext)(void 0);function kx(e){let t=(0,Ug.useContext)(Fhe);return e||t||"ltr"}var Rn=fe(Ee(),1);var tG=["top","right","bottom","left"];var xs=Math.min,Fi=Math.max,Gg=Math.round,zg=Math.floor,gl=e=>({x:e,y:e}),qhe={left:"right",right:"left",bottom:"top",top:"bottom"},jhe={start:"end",end:"start"};function Nx(e,t,r){return Fi(e,xs(t,r))}function ws(e,t){return typeof e=="function"?e(t):e}function Es(e){return e.split("-")[0]}function yf(e){return e.split("-")[1]}function Dx(e){return e==="x"?"y":"x"}function Lx(e){return e==="y"?"height":"width"}function bf(e){return["top","bottom"].includes(Es(e))?"y":"x"}function Px(e){return Dx(bf(e))}function rG(e,t,r){r===void 0&&(r=!1);let n=yf(e),i=Px(e),o=Lx(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Bg(s)),[s,Bg(s)]}function nG(e){let t=Bg(e);return[Ox(e),t,Ox(t)]}function Ox(e){return e.replace(/start|end/g,t=>jhe[t])}function Vhe(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function iG(e,t,r,n){let i=yf(e),o=Vhe(Es(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ox)))),o}function Bg(e){return e.replace(/left|right|bottom|top/g,t=>qhe[t])}function Uhe(e){return{top:0,right:0,bottom:0,left:0,...e}}function vP(e){return typeof e!="number"?Uhe(e):{top:e,right:e,bottom:e,left:e}}function Af(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function oG(e,t,r){let{reference:n,floating:i}=e,o=bf(t),s=Px(t),l=Lx(s),c=Es(t),f=o==="y",m=n.x+n.width/2-i.width/2,v=n.y+n.height/2-i.height/2,g=n[l]/2-i[l]/2,y;switch(c){case"top":y={x:m,y:n.y-i.height};break;case"bottom":y={x:m,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:v};break;case"left":y={x:n.x-i.width,y:v};break;default:y={x:n.x,y:n.y}}switch(yf(t)){case"start":y[s]-=g*(r&&f?-1:1);break;case"end":y[s]+=g*(r&&f?-1:1);break}return y}var lG=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:v}=oG(f,n,c),g=n,y={},w=0;for(let T=0;T({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:m=0}=ws(e,t)||{};if(f==null)return{};let v=vP(m),g={x:r,y:n},y=Px(i),w=Lx(y),T=await s.getDimensions(f),S=y==="y",A=S?"top":"left",b=S?"bottom":"right",C=S?"clientHeight":"clientWidth",x=o.reference[w]+o.reference[y]-g[y]-o.floating[w],k=g[y]-o.reference[y],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f)),D=P?P[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(P)))&&(D=l.floating[C]||o.floating[w]);let N=x/2-k/2,I=D/2-T[w]/2-1,V=xs(v[A],I),G=xs(v[b],I),B=V,U=D-T[w]-G,z=D/2-T[w]/2+N,j=Nx(B,z,U),J=!c.arrow&&yf(i)!=null&&z!=j&&o.reference[w]/2-(zB<=0)){var I,V;let B=(((I=o.flip)==null?void 0:I.index)||0)+1,U=k[B];if(U)return{data:{index:B,overflows:N},reset:{placement:U}};let z=(V=N.filter(j=>j.overflows[0]<=0).sort((j,J)=>j.overflows[1]-J.overflows[1])[0])==null?void 0:V.placement;if(!z)switch(y){case"bestFit":{var G;let j=(G=N.map(J=>[J.placement,J.overflows.filter(K=>K>0).reduce((K,ee)=>K+ee,0)]).sort((J,K)=>J[1]-K[1])[0])==null?void 0:G[0];j&&(z=j);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};function aG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sG(e){return tG.some(t=>e[t]>=0)}var Ix=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=ws(e,t);switch(n){case"referenceHidden":{let o=await xf(t,{...i,elementContext:"reference"}),s=aG(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sG(s)}}}case"escaped":{let o=await xf(t,{...i,altBoundary:!0}),s=aG(o,r.floating);return{data:{escapedOffsets:s,escaped:sG(s)}}}default:return{}}}}};async function Bhe(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Es(r),l=yf(r),c=bf(r)==="y",f=["left","top"].includes(s)?-1:1,m=o&&c?-1:1,v=ws(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return l&&typeof w=="number"&&(y=l==="end"?w*-1:w),c?{x:y*m,y:g*f}:{x:g*f,y:y*m}}var Fx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:r,y:n}=t,i=await Bhe(t,e);return{x:r+i.x,y:n+i.y,data:i}}}},qx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:S=>{let{x:A,y:b}=S;return{x:A,y:b}}},...c}=ws(e,t),f={x:r,y:n},m=await xf(t,c),v=bf(Es(i)),g=Dx(v),y=f[g],w=f[v];if(o){let S=g==="y"?"top":"left",A=g==="y"?"bottom":"right",b=y+m[S],C=y-m[A];y=Nx(b,y,C)}if(s){let S=v==="y"?"top":"left",A=v==="y"?"bottom":"right",b=w+m[S],C=w-m[A];w=Nx(b,w,C)}let T=l.fn({...t,[g]:y,[v]:w});return{...T,data:{x:T.x-r,y:T.y-n}}}}},jx=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=ws(e,t),m={x:r,y:n},v=bf(i),g=Dx(v),y=m[g],w=m[v],T=ws(l,t),S=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(c){let C=g==="y"?"height":"width",x=o.reference[g]-o.floating[C]+S.mainAxis,k=o.reference[g]+o.reference[C]-S.mainAxis;yk&&(y=k)}if(f){var A,b;let C=g==="y"?"width":"height",x=["top","left"].includes(Es(i)),k=o.reference[v]-o.floating[C]+(x&&((A=s.offset)==null?void 0:A[v])||0)+(x?0:S.crossAxis),P=o.reference[v]+o.reference[C]+(x?0:((b=s.offset)==null?void 0:b[v])||0)-(x?S.crossAxis:0);wP&&(w=P)}return{[g]:y,[v]:w}}}},Vx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:i,elements:o}=t,{apply:s=()=>{},...l}=ws(e,t),c=await xf(t,l),f=Es(r),m=yf(r),v=bf(r)==="y",{width:g,height:y}=n.floating,w,T;f==="top"||f==="bottom"?(w=f,T=m===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(T=f,w=m==="end"?"top":"bottom");let S=y-c[w],A=g-c[T],b=!t.middlewareData.shift,C=S,x=A;if(v){let P=g-c.left-c.right;x=m||b?xs(A,P):P}else{let P=y-c.top-c.bottom;C=m||b?xs(S,P):P}if(b&&!m){let P=Fi(c.left,0),D=Fi(c.right,0),N=Fi(c.top,0),I=Fi(c.bottom,0);v?x=g-2*(P!==0||D!==0?P+D:Fi(c.left,c.right)):C=y-2*(N!==0||I!==0?N+I:Fi(c.top,c.bottom))}await s({...t,availableWidth:x,availableHeight:C});let k=await i.getDimensions(o.floating);return g!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function yl(e){return cG(e)?(e.nodeName||"").toLowerCase():"#document"}function Ji(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ts(e){var t;return(t=(cG(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cG(e){return e instanceof Node||e instanceof Ji(e).Node}function Cs(e){return e instanceof Element||e instanceof Ji(e).Element}function Ia(e){return e instanceof HTMLElement||e instanceof Ji(e).HTMLElement}function uG(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ji(e).ShadowRoot}function im(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=xo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function fG(e){return["table","td","th"].includes(yl(e))}function Ux(e){let t=Bx(),r=xo(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function dG(e){let t=wf(e);for(;Ia(t)&&!Hg(t);){if(Ux(t))return t;t=wf(t)}return null}function Bx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hg(e){return["html","body","#document"].includes(yl(e))}function xo(e){return Ji(e).getComputedStyle(e)}function Qg(e){return Cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wf(e){if(yl(e)==="html")return e;let t=e.assignedSlot||e.parentNode||uG(e)&&e.host||Ts(e);return uG(t)?t.host:t}function pG(e){let t=wf(e);return Hg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ia(t)&&im(t)?t:pG(t)}function Ef(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=pG(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ji(i);return o?t.concat(s,s.visualViewport||[],im(i)?i:[],s.frameElement&&r?Ef(s.frameElement):[]):t.concat(i,Ef(i,[],r))}function vG(e){let t=xo(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ia(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Gg(r)!==o||Gg(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function gP(e){return Cs(e)?e:e.contextElement}function om(e){let t=gP(e);if(!Ia(t))return gl(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=vG(t),s=(o?Gg(r.width):r.width)/n,l=(o?Gg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Hhe=gl(0);function gG(e){let t=Ji(e);return!Bx()||!t.visualViewport?Hhe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qhe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ji(e)?!1:t}function Tf(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=gP(e),s=gl(1);t&&(n?Cs(n)&&(s=om(n)):s=om(e));let l=Qhe(o,r,n)?gG(o):gl(0),c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,m=i.width/s.x,v=i.height/s.y;if(o){let g=Ji(o),y=n&&Cs(n)?Ji(n):n,w=g.frameElement;for(;w&&n&&y!==g;){let T=om(w),S=w.getBoundingClientRect(),A=xo(w),b=S.left+(w.clientLeft+parseFloat(A.paddingLeft))*T.x,C=S.top+(w.clientTop+parseFloat(A.paddingTop))*T.y;c*=T.x,f*=T.y,m*=T.x,v*=T.y,c+=b,f+=C,w=Ji(w).frameElement}}return Af({width:m,height:v,x:c,y:f})}function Whe(e){let{rect:t,offsetParent:r,strategy:n}=e,i=Ia(r),o=Ts(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},l=gl(1),c=gl(0);if((i||!i&&n!=="fixed")&&((yl(r)!=="body"||im(o))&&(s=Qg(r)),Ia(r))){let f=Tf(r);l=om(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function Yhe(e){return Array.from(e.getClientRects())}function yG(e){return Tf(Ts(e)).left+Qg(e).scrollLeft}function Khe(e){let t=Ts(e),r=Qg(e),n=e.ownerDocument.body,i=Fi(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Fi(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+yG(e),l=-r.scrollTop;return xo(n).direction==="rtl"&&(s+=Fi(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function Xhe(e,t){let r=Ji(e),n=Ts(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;let f=Bx();(!f||f&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l,y:c}}function Zhe(e,t){let r=Tf(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Ia(e)?om(e):gl(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,f=n*o.y;return{width:s,height:l,x:c,y:f}}function mG(e,t,r){let n;if(t==="viewport")n=Xhe(e,r);else if(t==="document")n=Khe(Ts(e));else if(Cs(t))n=Zhe(t,r);else{let i=gG(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Af(n)}function bG(e,t){let r=wf(e);return r===t||!Cs(r)||Hg(r)?!1:xo(r).position==="fixed"||bG(r,t)}function Jhe(e,t){let r=t.get(e);if(r)return r;let n=Ef(e,[],!1).filter(l=>Cs(l)&&yl(l)!=="body"),i=null,o=xo(e).position==="fixed",s=o?wf(e):e;for(;Cs(s)&&!Hg(s);){let l=xo(s),c=Ux(s);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||im(s)&&!c&&bG(e,s))?n=n.filter(m=>m!==s):i=l,s=wf(s)}return t.set(e,n),n}function _he(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Jhe(t,this._c):[].concat(r),n],l=s[0],c=s.reduce((f,m)=>{let v=mG(t,m,i);return f.top=Fi(v.top,f.top),f.right=xs(v.right,f.right),f.bottom=xs(v.bottom,f.bottom),f.left=Fi(v.left,f.left),f},mG(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $he(e){return vG(e)}function eve(e,t,r){let n=Ia(t),i=Ts(t),o=r==="fixed",s=Tf(e,!0,o,t),l={scrollLeft:0,scrollTop:0},c=gl(0);if(n||!n&&!o)if((yl(t)!=="body"||im(i))&&(l=Qg(t)),n){let f=Tf(t,!0,o,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else i&&(c.x=yG(i));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function hG(e,t){return!Ia(e)||xo(e).position==="fixed"?null:t?t(e):e.offsetParent}function AG(e,t){let r=Ji(e);if(!Ia(e))return r;let n=hG(e,t);for(;n&&fG(n)&&xo(n).position==="static";)n=hG(n,t);return n&&(yl(n)==="html"||yl(n)==="body"&&xo(n).position==="static"&&!Ux(n))?r:n||dG(e)||r}var tve=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||AG,o=this.getDimensions;return{reference:eve(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}};function rve(e){return xo(e).direction==="rtl"}var xG={convertOffsetParentRelativeRectToViewportRelativeRect:Whe,getDocumentElement:Ts,getClippingRect:_he,getOffsetParent:AG,getElementRects:tve,getClientRects:Yhe,getDimensions:$he,getScale:om,isElement:Cs,isRTL:rve};function nve(e,t){let r=null,n,i=Ts(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();let{left:f,top:m,width:v,height:g}=e.getBoundingClientRect();if(l||t(),!v||!g)return;let y=zg(m),w=zg(i.clientWidth-(f+v)),T=zg(i.clientHeight-(m+g)),S=zg(f),b={rootMargin:-y+"px "+-w+"px "+-T+"px "+-S+"px",threshold:Fi(0,xs(1,c))||1},C=!0;function x(k){let P=k[0].intersectionRatio;if(P!==c){if(!C)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{r=new IntersectionObserver(x,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(x,b)}r.observe(e)}return s(!0),o}function yP(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,f=gP(e),m=i||o?[...f?Ef(f):[],...Ef(t)]:[];m.forEach(A=>{i&&A.addEventListener("scroll",r,{passive:!0}),o&&A.addEventListener("resize",r)});let v=f&&l?nve(f,r):null,g=-1,y=null;s&&(y=new ResizeObserver(A=>{let[b]=A;b&&b.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{y&&y.observe(t)})),r()}),f&&!c&&y.observe(f),y.observe(t));let w,T=c?Tf(e):null;c&&S();function S(){let A=Tf(e);T&&(A.x!==T.x||A.y!==T.y||A.width!==T.width||A.height!==T.height)&&r(),T=A,w=requestAnimationFrame(S)}return r(),()=>{m.forEach(A=>{i&&A.removeEventListener("scroll",r),o&&A.removeEventListener("resize",r)}),v&&v(),y&&y.disconnect(),y=null,c&&cancelAnimationFrame(w)}}var bP=(e,t,r)=>{let n=new Map,i={platform:xG,...r},o={...i.platform,_c:n};return lG(e,t,{...i,platform:o})};var fn=fe(Ee(),1),Hx=fe(Ee(),1),TG=fe(mf(),1),CG=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Rx({element:n.current,padding:i}).fn(r):{}:n?Rx({element:n,padding:i}).fn(r):{}}}},Gx=typeof document<"u"?Hx.useLayoutEffect:Hx.useEffect;function zx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!zx(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!zx(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function SG(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wG(e,t){let r=SG(e);return Math.round(t*r)/r}function EG(e){let t=fn.useRef(e);return Gx(()=>{t.current=e}),t}function kG(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[m,v]=fn.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=fn.useState(n);zx(g,n)||y(n);let[w,T]=fn.useState(null),[S,A]=fn.useState(null),b=fn.useCallback(J=>{J!=P.current&&(P.current=J,T(J))},[T]),C=fn.useCallback(J=>{J!==D.current&&(D.current=J,A(J))},[A]),x=o||w,k=s||S,P=fn.useRef(null),D=fn.useRef(null),N=fn.useRef(m),I=EG(c),V=EG(i),G=fn.useCallback(()=>{if(!P.current||!D.current)return;let J={placement:t,strategy:r,middleware:g};V.current&&(J.platform=V.current),bP(P.current,D.current,J).then(K=>{let ee={...K,isPositioned:!0};B.current&&!zx(N.current,ee)&&(N.current=ee,TG.flushSync(()=>{v(ee)}))})},[g,t,r,V]);Gx(()=>{f===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,v(J=>({...J,isPositioned:!1})))},[f]);let B=fn.useRef(!1);Gx(()=>(B.current=!0,()=>{B.current=!1}),[]),Gx(()=>{if(x&&(P.current=x),k&&(D.current=k),x&&k){if(I.current)return I.current(x,k,G);G()}},[x,k,G,I]);let U=fn.useMemo(()=>({reference:P,floating:D,setReference:b,setFloating:C}),[b,C]),z=fn.useMemo(()=>({reference:x,floating:k}),[x,k]),j=fn.useMemo(()=>{let J={position:r,left:0,top:0};if(!z.floating)return J;let K=wG(z.floating,m.x),ee=wG(z.floating,m.y);return l?{...J,transform:"translate("+K+"px, "+ee+"px)",...SG(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:K,top:ee}},[r,l,z.floating,m.x,m.y]);return fn.useMemo(()=>({...m,update:G,refs:U,elements:z,floatingStyles:j}),[m,G,U,z,j])}var OG=fe(Ee(),1);function NG(e){let[t,r]=(0,OG.useState)(void 0);return ds(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;let o=i[0],s,l;if("borderBoxSize"in o){let c=o.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,l=f.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var DG="Popper",[LG,am]=Hi(DG),[ive,PG]=LG(DG),ove=e=>{let{__scopePopper:t,children:r}=e,[n,i]=(0,Rn.useState)(null);return(0,Rn.createElement)(ive,{scope:t,anchor:n,onAnchorChange:i},r)},ave="PopperAnchor",sve=(0,Rn.forwardRef)((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=PG(ave,r),s=(0,Rn.useRef)(null),l=sr(t,s);return(0,Rn.useEffect)(()=>{o.onAnchorChange(n?.current||s.current)}),n?null:(0,Rn.createElement)(cr.div,Ze({},i,{ref:l}))}),RG="PopperContent",[lve,gLe]=LG(RG),uve=(0,Rn.forwardRef)((e,t)=>{var r,n,i,o,s,l,c,f;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:y="center",alignOffset:w=0,arrowPadding:T=0,avoidCollisions:S=!0,collisionBoundary:A=[],collisionPadding:b=0,sticky:C="partial",hideWhenDetached:x=!1,updatePositionStrategy:k="optimized",onPlaced:P,...D}=e,N=PG(RG,m),[I,V]=(0,Rn.useState)(null),G=sr(t,pe=>V(pe)),[B,U]=(0,Rn.useState)(null),z=NG(B),j=(r=z?.width)!==null&&r!==void 0?r:0,J=(n=z?.height)!==null&&n!==void 0?n:0,K=v+(y!=="center"?"-"+y:""),ee=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},re=Array.isArray(A)?A:[A],se=re.length>0,xe={padding:ee,boundary:re.filter(cve),altBoundary:se},{refs:Re,floatingStyles:Se,placement:ie,isPositioned:ye,middlewareData:me}=kG({strategy:"fixed",placement:K,whileElementsMounted:(...pe)=>yP(...pe,{animationFrame:k==="always"}),elements:{reference:N.anchor},middleware:[Fx({mainAxis:g+J,alignmentAxis:w}),S&&qx({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?jx():void 0,...xe}),S&&Mx({...xe}),Vx({...xe,apply:({elements:pe,rects:Me,availableWidth:st,availableHeight:nt})=>{let{width:lt,height:wt}=Me.reference,Or=pe.floating.style;Or.setProperty("--radix-popper-available-width",`${st}px`),Or.setProperty("--radix-popper-available-height",`${nt}px`),Or.setProperty("--radix-popper-anchor-width",`${lt}px`),Or.setProperty("--radix-popper-anchor-height",`${wt}px`)}}),B&&CG({element:B,padding:T}),fve({arrowWidth:j,arrowHeight:J}),x&&Ix({strategy:"referenceHidden",...xe})]}),[Oe,Ge]=MG(ie),He=Wn(P);ds(()=>{ye&&He?.()},[ye,He]);let dr=(i=me.arrow)===null||i===void 0?void 0:i.x,Ue=(o=me.arrow)===null||o===void 0?void 0:o.y,bt=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[he,Fe]=(0,Rn.useState)();return ds(()=>{I&&Fe(window.getComputedStyle(I).zIndex)},[I]),(0,Rn.createElement)("div",{ref:Re.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:ye?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(l=me.transformOrigin)===null||l===void 0?void 0:l.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},(0,Rn.createElement)(lve,{scope:m,placedSide:Oe,onArrowChange:U,arrowX:dr,arrowY:Ue,shouldHideArrow:bt},(0,Rn.createElement)(cr.div,Ze({"data-side":Oe,"data-align":Ge},D,{ref:G,style:{...D.style,animation:ye?void 0:"none",opacity:(f=me.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))});function cve(e){return e!==null}var fve=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,s;let{placement:l,rects:c,middlewareData:f}=t,v=((r=f.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,g=v?0:e.arrowWidth,y=v?0:e.arrowHeight,[w,T]=MG(l),S={start:"0%",center:"50%",end:"100%"}[T],A=((n=(i=f.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+g/2,b=((o=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+y/2,C="",x="";return w==="bottom"?(C=v?S:`${A}px`,x=`${-y}px`):w==="top"?(C=v?S:`${A}px`,x=`${c.floating.height+y}px`):w==="right"?(C=`${-y}px`,x=v?S:`${b}px`):w==="left"&&(C=`${c.floating.width+y}px`,x=v?S:`${b}px`),{data:{x:C,y:x}}}});function MG(e){let[t,r="center"]=e.split("-");return[t,r]}var Qx=ove,Wx=sve,Yx=uve;var fr=fe(Ee(),1);var AP="rovingFocusGroup.onEntryFocus",dve={bubbles:!1,cancelable:!0},wP="RovingFocusGroup",[xP,IG,pve]=Sx(wP),[mve,EP]=Hi(wP,[pve]),[hve,vve]=mve(wP),gve=(0,fr.forwardRef)((e,t)=>(0,fr.createElement)(xP.Provider,{scope:e.__scopeRovingFocusGroup},(0,fr.createElement)(xP.Slot,{scope:e.__scopeRovingFocusGroup},(0,fr.createElement)(yve,Ze({},e,{ref:t}))))),yve=(0,fr.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:f,...m}=e,v=(0,fr.useRef)(null),g=sr(t,v),y=kx(o),[w=null,T]=hu({prop:s,defaultProp:l,onChange:c}),[S,A]=(0,fr.useState)(!1),b=Wn(f),C=IG(r),x=(0,fr.useRef)(!1),[k,P]=(0,fr.useState)(0);return(0,fr.useEffect)(()=>{let D=v.current;if(D)return D.addEventListener(AP,b),()=>D.removeEventListener(AP,b)},[b]),(0,fr.createElement)(hve,{scope:r,orientation:n,dir:y,loop:i,currentTabStopId:w,onItemFocus:(0,fr.useCallback)(D=>T(D),[T]),onItemShiftTab:(0,fr.useCallback)(()=>A(!0),[]),onFocusableItemAdd:(0,fr.useCallback)(()=>P(D=>D+1),[]),onFocusableItemRemove:(0,fr.useCallback)(()=>P(D=>D-1),[])},(0,fr.createElement)(cr.div,Ze({tabIndex:S||k===0?-1:0,"data-orientation":n},m,{ref:g,style:{outline:"none",...e.style},onMouseDown:xt(e.onMouseDown,()=>{x.current=!0}),onFocus:xt(e.onFocus,D=>{let N=!x.current;if(D.target===D.currentTarget&&N&&!S){let I=new CustomEvent(AP,dve);if(D.currentTarget.dispatchEvent(I),!I.defaultPrevented){let V=C().filter(j=>j.focusable),G=V.find(j=>j.active),B=V.find(j=>j.id===w),z=[G,B,...V].filter(Boolean).map(j=>j.ref.current);FG(z)}}x.current=!1}),onBlur:xt(e.onBlur,()=>A(!1))})))}),bve="RovingFocusGroupItem",Ave=(0,fr.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...s}=e,l=Ea(),c=o||l,f=vve(bve,r),m=f.currentTabStopId===c,v=IG(r),{onFocusableItemAdd:g,onFocusableItemRemove:y}=f;return(0,fr.useEffect)(()=>{if(n)return g(),()=>y()},[n,g,y]),(0,fr.createElement)(xP.ItemSlot,{scope:r,id:c,focusable:n,active:i},(0,fr.createElement)(cr.span,Ze({tabIndex:m?0:-1,"data-orientation":f.orientation},s,{ref:t,onMouseDown:xt(e.onMouseDown,w=>{n?f.onItemFocus(c):w.preventDefault()}),onFocus:xt(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:xt(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){f.onItemShiftTab();return}if(w.target!==w.currentTarget)return;let T=Eve(w,f.orientation,f.dir);if(T!==void 0){w.preventDefault();let A=v().filter(b=>b.focusable).map(b=>b.ref.current);if(T==="last")A.reverse();else if(T==="prev"||T==="next"){T==="prev"&&A.reverse();let b=A.indexOf(w.currentTarget);A=f.loop?Tve(A,b+1):A.slice(b+1)}setTimeout(()=>FG(A))}})})))}),xve={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wve(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Eve(e,t,r){let n=wve(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return xve[n]}function FG(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Tve(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qG=gve,jG=Ave;var TP=["Enter"," "],Sve=["ArrowDown","PageUp","Home"],UG=["ArrowUp","PageDown","End"],kve=[...Sve,...UG],KLe={ltr:[...TP,"ArrowRight"],rtl:[...TP,"ArrowLeft"]};var Kx="Menu",[CP,Ove,Nve]=Sx(Kx),[Cf,OP]=Hi(Kx,[Nve,am,EP]),NP=am(),BG=EP(),[Dve,Wg]=Cf(Kx),[Lve,DP]=Cf(Kx),Pve=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:s=!0}=e,l=NP(t),[c,f]=(0,Ye.useState)(null),m=(0,Ye.useRef)(!1),v=Wn(o),g=kx(i);return(0,Ye.useEffect)(()=>{let y=()=>{m.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),(0,Ye.createElement)(Qx,l,(0,Ye.createElement)(Dve,{scope:t,open:r,onOpenChange:v,content:c,onContentChange:f},(0,Ye.createElement)(Lve,{scope:t,onClose:(0,Ye.useCallback)(()=>v(!1),[v]),isUsingKeyboardRef:m,dir:g,modal:s},n)))};var Rve=(0,Ye.forwardRef)((e,t)=>{let{__scopeMenu:r,...n}=e,i=NP(r);return(0,Ye.createElement)(Wx,Ze({},i,n,{ref:t}))}),GG="MenuPortal",[Mve,Ive]=Cf(GG,{forceMount:void 0}),Fve=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=Wg(GG,t);return(0,Ye.createElement)(Mve,{scope:t,forceMount:r},(0,Ye.createElement)(Pa,{present:r||o.open},(0,Ye.createElement)($p,{asChild:!0,container:i},n)))},ju="MenuContent",[qve,zG]=Cf(ju),jve=(0,Ye.forwardRef)((e,t)=>{let r=Ive(ju,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=Wg(ju,e.__scopeMenu),s=DP(ju,e.__scopeMenu);return(0,Ye.createElement)(CP.Provider,{scope:e.__scopeMenu},(0,Ye.createElement)(Pa,{present:n||o.open},(0,Ye.createElement)(CP.Slot,{scope:e.__scopeMenu},s.modal?(0,Ye.createElement)(Vve,Ze({},i,{ref:t})):(0,Ye.createElement)(Uve,Ze({},i,{ref:t})))))}),Vve=(0,Ye.forwardRef)((e,t)=>{let r=Wg(ju,e.__scopeMenu),n=(0,Ye.useRef)(null),i=sr(t,n);return(0,Ye.useEffect)(()=>{let o=n.current;if(o)return Ex(o)},[]),(0,Ye.createElement)(HG,Ze({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),Uve=(0,Ye.forwardRef)((e,t)=>{let r=Wg(ju,e.__scopeMenu);return(0,Ye.createElement)(HG,Ze({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),HG=(0,Ye.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,disableOutsideScroll:w,...T}=e,S=Wg(ju,r),A=DP(ju,r),b=NP(r),C=BG(r),x=Ove(r),[k,P]=(0,Ye.useState)(null),D=(0,Ye.useRef)(null),N=sr(t,D,S.onContentChange),I=(0,Ye.useRef)(0),V=(0,Ye.useRef)(""),G=(0,Ye.useRef)(0),B=(0,Ye.useRef)(null),U=(0,Ye.useRef)("right"),z=(0,Ye.useRef)(0),j=w?Vg:Ye.Fragment,J=w?{as:bs,allowPinchZoom:!0}:void 0,K=re=>{var se,xe;let Re=V.current+re,Se=x().filter(He=>!He.disabled),ie=document.activeElement,ye=(se=Se.find(He=>He.ref.current===ie))===null||se===void 0?void 0:se.textValue,me=Se.map(He=>He.textValue),Oe=Xve(me,Re,ye),Ge=(xe=Se.find(He=>He.textValue===Oe))===null||xe===void 0?void 0:xe.ref.current;(function He(dr){V.current=dr,window.clearTimeout(I.current),dr!==""&&(I.current=window.setTimeout(()=>He(""),1e3))})(Re),Ge&&setTimeout(()=>Ge.focus())};(0,Ye.useEffect)(()=>()=>window.clearTimeout(I.current),[]),vx();let ee=(0,Ye.useCallback)(re=>{var se,xe;return U.current===((se=B.current)===null||se===void 0?void 0:se.side)&&Jve(re,(xe=B.current)===null||xe===void 0?void 0:xe.area)},[]);return(0,Ye.createElement)(qve,{scope:r,searchRef:V,onItemEnter:(0,Ye.useCallback)(re=>{ee(re)&&re.preventDefault()},[ee]),onItemLeave:(0,Ye.useCallback)(re=>{var se;ee(re)||((se=D.current)===null||se===void 0||se.focus(),P(null))},[ee]),onTriggerLeave:(0,Ye.useCallback)(re=>{ee(re)&&re.preventDefault()},[ee]),pointerGraceTimerRef:G,onPointerGraceIntentChange:(0,Ye.useCallback)(re=>{B.current=re},[])},(0,Ye.createElement)(j,J,(0,Ye.createElement)(px,{asChild:!0,trapped:i,onMountAutoFocus:xt(o,re=>{var se;re.preventDefault(),(se=D.current)===null||se===void 0||se.focus()}),onUnmountAutoFocus:s},(0,Ye.createElement)(_p,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y},(0,Ye.createElement)(qG,Ze({asChild:!0},C,{dir:A.dir,orientation:"vertical",loop:n,currentTabStopId:k,onCurrentTabStopIdChange:P,onEntryFocus:xt(c,re=>{A.isUsingKeyboardRef.current||re.preventDefault()})}),(0,Ye.createElement)(Yx,Ze({role:"menu","aria-orientation":"vertical","data-state":Wve(S.open),"data-radix-menu-content":"",dir:A.dir},b,T,{ref:N,style:{outline:"none",...T.style},onKeyDown:xt(T.onKeyDown,re=>{let xe=re.target.closest("[data-radix-menu-content]")===re.currentTarget,Re=re.ctrlKey||re.altKey||re.metaKey,Se=re.key.length===1;xe&&(re.key==="Tab"&&re.preventDefault(),!Re&&Se&&K(re.key));let ie=D.current;if(re.target!==ie||!kve.includes(re.key))return;re.preventDefault();let me=x().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);UG.includes(re.key)&&me.reverse(),Yve(me)}),onBlur:xt(e.onBlur,re=>{re.currentTarget.contains(re.target)||(window.clearTimeout(I.current),V.current="")}),onPointerMove:xt(e.onPointerMove,kP(re=>{let se=re.target,xe=z.current!==re.clientX;if(re.currentTarget.contains(se)&&xe){let Re=re.clientX>z.current?"right":"left";U.current=Re,z.current=re.clientX}}))})))))))});var SP="MenuItem",VG="menu.itemSelect",Bve=(0,Ye.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:n,...i}=e,o=(0,Ye.useRef)(null),s=DP(SP,e.__scopeMenu),l=zG(SP,e.__scopeMenu),c=sr(t,o),f=(0,Ye.useRef)(!1),m=()=>{let v=o.current;if(!r&&v){let g=new CustomEvent(VG,{bubbles:!0,cancelable:!0});v.addEventListener(VG,y=>n?.(y),{once:!0}),dx(v,g),g.defaultPrevented?f.current=!1:s.onClose()}};return(0,Ye.createElement)(Gve,Ze({},i,{ref:c,disabled:r,onClick:xt(e.onClick,m),onPointerDown:v=>{var g;(g=e.onPointerDown)===null||g===void 0||g.call(e,v),f.current=!0},onPointerUp:xt(e.onPointerUp,v=>{var g;f.current||(g=v.currentTarget)===null||g===void 0||g.click()}),onKeyDown:xt(e.onKeyDown,v=>{let g=l.searchRef.current!=="";r||g&&v.key===" "||TP.includes(v.key)&&(v.currentTarget.click(),v.preventDefault())})}))}),Gve=(0,Ye.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,s=zG(SP,r),l=BG(r),c=(0,Ye.useRef)(null),f=sr(t,c),[m,v]=(0,Ye.useState)(!1),[g,y]=(0,Ye.useState)("");return(0,Ye.useEffect)(()=>{let w=c.current;if(w){var T;y(((T=w.textContent)!==null&&T!==void 0?T:"").trim())}},[o.children]),(0,Ye.createElement)(CP.ItemSlot,{scope:r,disabled:n,textValue:i??g},(0,Ye.createElement)(jG,Ze({asChild:!0},l,{focusable:!n}),(0,Ye.createElement)(cr.div,Ze({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:f,onPointerMove:xt(e.onPointerMove,kP(w=>{n?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus())})),onPointerLeave:xt(e.onPointerLeave,kP(w=>s.onItemLeave(w))),onFocus:xt(e.onFocus,()=>v(!0)),onBlur:xt(e.onBlur,()=>v(!1))}))))});var zve="MenuRadioGroup",[XLe,ZLe]=Cf(zve,{value:void 0,onValueChange:()=>{}});var Hve="MenuItemIndicator",[JLe,_Le]=Cf(Hve,{checked:!1});var Qve="MenuSub",[$Le,ePe]=Cf(Qve);function Wve(e){return e?"open":"closed"}function Yve(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Kve(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Xve(e,t,r){let i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=Kve(e,Math.max(o,0));i.length===1&&(s=s.filter(f=>f!==r));let c=s.find(f=>f.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0}function Zve(e,t){let{x:r,y:n}=e,i=!1;for(let o=0,s=t.length-1;on!=m>n&&r<(f-l)*(n-c)/(m-c)+l&&(i=!i)}return i}function Jve(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return Zve(r,t)}function kP(e){return t=>t.pointerType==="mouse"?e(t):void 0}var QG=Pve,WG=Rve,YG=Fve,KG=jve;var XG=Bve;var ZG="DropdownMenu",[_ve,xPe]=Hi(ZG,[OP]),Yg=OP(),[$ve,JG]=_ve(ZG),ege=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,c=Yg(t),f=(0,Zn.useRef)(null),[m=!1,v]=hu({prop:i,defaultProp:o,onChange:s});return(0,Zn.createElement)($ve,{scope:t,triggerId:Ea(),triggerRef:f,contentId:Ea(),open:m,onOpenChange:v,onOpenToggle:(0,Zn.useCallback)(()=>v(g=>!g),[v]),modal:l},(0,Zn.createElement)(QG,Ze({},c,{open:m,onOpenChange:v,dir:n,modal:l}),r))},tge="DropdownMenuTrigger",rge=(0,Zn.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=JG(tge,r),s=Yg(r);return(0,Zn.createElement)(WG,Ze({asChild:!0},s),(0,Zn.createElement)(cr.button,Ze({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i,{ref:Ap(t,o.triggerRef),onPointerDown:xt(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:xt(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})))});var nge=e=>{let{__scopeDropdownMenu:t,...r}=e,n=Yg(t);return(0,Zn.createElement)(YG,Ze({},n,r))},ige="DropdownMenuContent",oge=(0,Zn.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=JG(ige,r),o=Yg(r),s=(0,Zn.useRef)(!1);return(0,Zn.createElement)(KG,Ze({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:xt(e.onCloseAutoFocus,l=>{var c;s.current||(c=i.triggerRef.current)===null||c===void 0||c.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:xt(e.onInteractOutside,l=>{let c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,m=c.button===2||f;(!i.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});var age=(0,Zn.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=Yg(r);return(0,Zn.createElement)(XG,Ze({},i,n,{ref:t}))});var _G=ege,$G=rge,ez=nge,tz=oge;var rz=age;var f_=fe(oW(),1);var rR=function(e,t){return rR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},rR(e,t)};function uw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ve=function(){return ve=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Jn(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n"u"||process.env===void 0?g0e:"production";var bl=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},Nf={measureLayout:bl(["layout","layoutId","drag"]),animation:bl(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:bl(["exit"]),drag:bl(["drag","dragControls"]),focus:bl(["whileFocus"]),hover:bl(["whileHover","onHoverStart","onHoverEnd"]),tap:bl(["whileTap","onTap","onTapStart","onTapCancel"]),pan:bl(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:bl(["whileInView","onViewportEnter","onViewportLeave"])};function aW(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Nf.projectionNodeConstructor=e[t]:Nf[t].Component=e[t])}var Df=function(){},Gr=function(){};var sW=fe(Ee(),1),fw=(0,sW.createContext)({strict:!1});var cW=Object.keys(Nf),y0e=cW.length;function fW(e,t,r){var n=[],i=(0,uW.useContext)(fw);if(!t)return null;cw!=="production"&&r&&i.strict&&Gr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o"u")return t;var r=new Map;return new Proxy(t,{get:function(n,i){return r.has(i)||r.set(i,t(i)),r.get(i)}})}var RW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function fm(e){return typeof e!="string"||e.includes("-")?!1:!!(RW.indexOf(e)>-1||/[A-Z]/.test(e))}var rY=fe(Ee(),1);var QW=fe(Ee(),1);var dm={};function MW(e){Object.assign(dm,e)}var bw=["","X","Y","Z"],C0e=["translate","scale","rotate","skew"],pm=["transformPerspective","x","y","z"];C0e.forEach(function(e){return bw.forEach(function(t){return pm.push(e+t)})});function IW(e,t){return pm.indexOf(e)-pm.indexOf(t)}var S0e=new Set(pm);function Ds(e){return S0e.has(e)}var k0e=new Set(["originX","originY","originZ"]);function Aw(e){return k0e.has(e)}function xw(e,t){var r=t.layout,n=t.layoutId;return Ds(e)||Aw(e)||(r||n!==void 0)&&(!!dm[e]||e==="opacity")}var Mn=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)};var O0e={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function FW(e,t,r,n){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,f=c===void 0?!0:c,m="";o.sort(IW);for(var v=!1,g=o.length,y=0;yr=>Math.max(Math.min(r,t),e),Gu=e=>e%1?Number(e.toFixed(5)):e,zu=/(-)?([\d]*\.?[\d])+/g,Tw=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,VW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function xl(e){return typeof e=="string"}var wo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wl=Object.assign(Object.assign({},wo),{transform:Ew(0,1)}),mm=Object.assign(Object.assign({},wo),{default:1});var ey=e=>({test:t=>xl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qa=ey("deg"),yi=ey("%"),et=ey("px"),sR=ey("vh"),lR=ey("vw"),Cw=Object.assign(Object.assign({},yi),{parse:e=>yi.parse(e)/100,transform:e=>yi.transform(e*100)});var hm=(e,t)=>r=>!!(xl(r)&&VW.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Sw=(e,t,r)=>n=>{if(!xl(n))return n;let[i,o,s,l]=n.match(zu);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}};var Ls={test:hm("hsl","hue"),parse:Sw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+yi.transform(Gu(t))+", "+yi.transform(Gu(r))+", "+Gu(wl.transform(n))+")"};var N0e=Ew(0,255),kw=Object.assign(Object.assign({},wo),{transform:e=>Math.round(N0e(e))}),Jo={test:hm("rgb","red"),parse:Sw("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kw.transform(e)+", "+kw.transform(t)+", "+kw.transform(r)+", "+Gu(wl.transform(n))+")"};function D0e(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var vm={test:hm("#"),parse:D0e,transform:Jo.transform};var Zr={test:e=>Jo.test(e)||vm.test(e)||Ls.test(e),parse:e=>Jo.test(e)?Jo.parse(e):Ls.test(e)?Ls.parse(e):vm.parse(e),transform:e=>xl(e)?e:e.hasOwnProperty("red")?Jo.transform(e):Ls.transform(e)};var UW="${c}",BW="${n}";function L0e(e){var t,r,n,i;return isNaN(e)&&xl(e)&&((r=(t=e.match(zu))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Tw))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function GW(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(Tw);n&&(r=n.length,e=e.replace(Tw,UW),t.push(...n.map(Zr.parse)));let i=e.match(zu);return i&&(e=e.replace(zu,BW),t.push(...i.map(wo.parse))),{values:t,numColors:r,tokenised:e}}function zW(e){return GW(e).values}function HW(e){let{values:t,numColors:r,tokenised:n}=GW(e),i=t.length;return o=>{let s=n;for(let l=0;ltypeof e=="number"?0:e;function R0e(e){let t=zW(e);return HW(e)(t.map(P0e))}var _n={test:L0e,parse:zW,createTransformer:HW,getAnimatableNone:R0e};var M0e=new Set(["brightness","contrast","saturate","opacity"]);function I0e(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(zu)||[];if(!n)return e;let i=r.replace(n,""),o=M0e.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var F0e=/([a-z-]*)\(.*?\)/g,gm=Object.assign(Object.assign({},_n),{getAnimatableNone:e=>{let t=e.match(F0e);return t?t.map(I0e).join(" "):e}});var uR=ve(ve({},wo),{transform:Math.round});var Ow={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:qa,rotateX:qa,rotateY:qa,rotateZ:qa,scale:mm,scaleX:mm,scaleY:mm,scaleZ:mm,skew:qa,skewX:qa,skewY:qa,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:wl,originX:Cw,originY:Cw,originZ:et,zIndex:uR,fillOpacity:wl,strokeOpacity:wl,numOctaves:uR};function ym(e,t,r,n){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,f=e.transformOrigin;c.length=0;var m=!1,v=!1,g=!0;for(var y in t){var w=t[y];if(ww(y)){s[y]=w;continue}var T=Ow[y],S=jW(w,T);if(Ds(y)){if(m=!0,l[y]=S,c.push(y),!g)continue;w!==((i=T.default)!==null&&i!==void 0?i:0)&&(g=!1)}else Aw(y)?(f[y]=S,v=!0):o[y]=S}m?o.transform=FW(e,r,g,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),v&&(o.transformOrigin=qW(f))}var bm=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function cR(e,t,r){for(var n in t)!Mn(t[n])&&!xw(n,r)&&(e[n]=t[n])}function q0e(e,t,r){var n=e.transformTemplate;return(0,QW.useMemo)(function(){var i=bm();ym(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,s=i.style;return ve(ve({},o),s)},[t])}function j0e(e,t,r){var n=e.style||{},i={};return cR(i,n,e),Object.assign(i,q0e(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function WW(e,t,r){var n={},i=j0e(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=i,n}var V0e=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function ty(e){return V0e.has(e)}var XW=function(e){return!ty(e)};function Q0e(e){e&&(XW=function(t){return t.startsWith("on")?!ty(t):e(t)})}try{Q0e(KW().default)}catch{}function ZW(e,t,r){var n={};for(var i in e)(XW(i)||r===!0&&ty(i)||!t&&!ty(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}var eY=fe(Ee(),1);function JW(e,t,r){return typeof e=="string"?e:et.transform(t+r*e)}function _W(e,t,r){var n=JW(t,e.x,e.width),i=JW(r,e.y,e.height);return"".concat(n," ").concat(i)}var W0e={offset:"stroke-dashoffset",array:"stroke-dasharray"},Y0e={offset:"strokeDashoffset",array:"strokeDasharray"};function $W(e,t,r,n,i){r===void 0&&(r=1),n===void 0&&(n=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?W0e:Y0e;e[o.offset]=et.transform(-n);var s=et.transform(t),l=et.transform(r);e[o.array]="".concat(s," ").concat(l)}function Am(e,t,r,n){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,f=t.pathSpacing,m=f===void 0?1:f,v=t.pathOffset,g=v===void 0?0:v,y=Fr(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ym(e,y,r,n),e.attrs=e.style,e.style={};var w=e.attrs,T=e.style,S=e.dimensions;w.transform&&(S&&(T.transform=w.transform),delete w.transform),S&&(s!==void 0||l!==void 0||T.transform)&&(T.transformOrigin=_W(S,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(w.x=i),o!==void 0&&(w.y=o),c!==void 0&&$W(w,c,m,g,!1)}var Nw=function(){return ve(ve({},bm()),{attrs:{}})};function tY(e,t){var r=(0,eY.useMemo)(function(){var i=Nw();return Am(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),ve(ve({},i.attrs),{style:ve({},i.style)})},[t]);if(e.style){var n={};cR(n,e.style,e),r.style=ve(ve({},n),r.style)}return r}function nY(e){e===void 0&&(e=!1);var t=function(r,n,i,o,s,l){var c=s.latestValues,f=fm(r)?tY:WW,m=f(n,c,l),v=ZW(n,typeof r=="string",e),g=ve(ve(ve({},v),m),{ref:o});return i&&(g["data-projection-id"]=i),(0,rY.createElement)(r,g)};return t}var K0e=/([a-z])([A-Z])/g,X0e="$1-$2",Dw=function(e){return e.replace(K0e,X0e).toLowerCase()};function Lw(e,t,r,n){var i=t.style,o=t.vars;Object.assign(e.style,i,n&&n.getProjectionStyles(r));for(var s in o)e.style.setProperty(s,o[s])}var Pw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Rw(e,t,r,n){Lw(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(Pw.has(i)?i:Dw(i),t.attrs[i])}function xm(e){var t=e.style,r={};for(var n in t)(Mn(t[n])||xw(n,e))&&(r[n]=t[n]);return r}function Mw(e){var t=xm(e);for(var r in e)if(Mn(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}var pR=fe(Ee(),1);function wm(e){return typeof e=="object"&&typeof e.start=="function"}var El=function(e){return Array.isArray(e)};var iY=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},Iw=function(e){return El(e)?e[e.length-1]||0:e};function Em(e){var t=Mn(e)?e.get():e;return iY(t)?t.toValue():t}function oY(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:Z0e(t,r,n,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var Fw=function(e){return function(t,r){var n=(0,pR.useContext)(Lf),i=(0,pR.useContext)(Uu);return r?oY(e,t,n,i):gi(function(){return oY(e,t,n,i)})}};function Z0e(e,t,r,n){var i={},o=r?.initial===!1,s=n(e);for(var l in s)i[l]=Em(s[l]);var c=e.initial,f=e.animate,m=Mf(e),v=hw(e);t&&v&&!m&&e.inherit!==!1&&(c??(c=t.initial),f??(f=t.animate));var g=o||c===!1,y=g?f:c;if(y&&typeof y!="boolean"&&!wm(y)){var w=Array.isArray(y)?y:[y];w.forEach(function(T){var S=oR(e,T);if(S){var A=S.transitionEnd;S.transition;var b=Fr(S,["transitionEnd","transition"]);for(var C in b){var x=b[C];if(Array.isArray(x)){var k=g?x.length-1:0;x=x[k]}x!==null&&(i[C]=x)}for(var C in A)i[C]=A[C]}})}return i}var aY={useVisualState:Fw({scrapeMotionValuesFromProps:Mw,createRenderState:Nw,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Am(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),Rw(t,n)}})};var sY={useVisualState:Fw({scrapeMotionValuesFromProps:xm,createRenderState:bm})};function lY(e,t,r,n,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=fm(e)?aY:sY;return ve(ve({},l),{preloadedFeatures:r,useRender:nY(s),createVisualElement:n,projectionNodeConstructor:i,Component:e})}var Ft;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Ft||(Ft={}));var uY=fe(Ee(),1);function If(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function ry(e,t,r,n){(0,uY.useEffect)(function(){var i=e.current;if(r&&i)return If(i,t,r,n)},[e,t,r,n])}function cY(e){var t=e.whileFocus,r=e.visualElement,n=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(Ft.Focus,!0)},i=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(Ft.Focus,!1)};ry(r,"focus",t?n:void 0),ry(r,"blur",t?i:void 0)}function qw(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function jw(e){var t=!!e.touches;return t}function J0e(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var _0e={pageX:0,pageY:0};function $0e(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||_0e;return{x:n[t+"X"],y:n[t+"Y"]}}function ebe(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ny(e,t){return t===void 0&&(t="page"),{point:jw(e)?$0e(e,t):ebe(e,t)}}var mR=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,ny(n))};return t?J0e(r):r};var fY=function(){return Ns&&window.onpointerdown===null},dY=function(){return Ns&&window.ontouchstart===null},pY=function(){return Ns&&window.onmousedown===null};var tbe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rbe={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mY(e){return fY()?e:dY()?rbe[e]:pY()?tbe[e]:e}function Tl(e,t,r,n){return If(e,mY(t),mR(r,t==="pointerdown"),n)}function Ff(e,t,r,n){return ry(e,mY(t),r&&mR(r,t==="pointerdown"),n)}function gY(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var hY=gY("dragHorizontal"),vY=gY("dragVertical");function hR(e){var t=!1;if(e==="y")t=vY();else if(e==="x")t=hY();else{var r=hY(),n=vY();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Vw(){var e=hR(!0);return e?(e(),!1):!0}function yY(e,t,r){return function(n,i){var o;!qw(n)||Vw()||((o=e.animationState)===null||o===void 0||o.setActive(Ft.Hover,t),r?.(n,i))}}function bY(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;Ff(i,"pointerenter",t||n?yY(i,!0,t):void 0,{passive:!t}),Ff(i,"pointerleave",r||n?yY(i,!1,r):void 0,{passive:!r})}var jR=fe(Ee(),1);var vR=function(e,t){return t?e===t?!0:vR(e,t.parentElement):!1};var AY=fe(Ee(),1);function Uw(e){return(0,AY.useEffect)(function(){return function(){return e()}},[])}function Bw(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t);var gR=.001,nbe=.01,xY=10,ibe=.05,obe=1;function wY({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Df(e<=xY*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=Hu(ibe,obe,s),e=Hu(nbe,xY,e/1e3),s<1?(i=f=>{let m=f*s,v=m*e,g=m-r,y=Gw(f,s),w=Math.exp(-v);return gR-g/y*w},o=f=>{let v=f*s*e,g=v*r+r,y=Math.pow(s,2)*Math.pow(f,2)*e,w=Math.exp(-v),T=Gw(Math.pow(f,2),s);return(-i(f)+gR>0?-1:1)*((g-y)*w)/T}):(i=f=>{let m=Math.exp(-f*e),v=(f-r)*e+1;return-gR+m*v},o=f=>{let m=Math.exp(-f*e),v=(r-f)*(e*e);return m*v});let l=5/e,c=sbe(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let f=Math.pow(c,2)*n;return{stiffness:f,damping:s*2*Math.sqrt(n*f),duration:e}}}var abe=12;function sbe(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function cbe(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!EY(e,ube)&&EY(e,lbe)){let r=wY(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function zw(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=Bw(e,["from","to","restSpeed","restDelta"]);let s={done:!1,value:t},{stiffness:l,damping:c,mass:f,velocity:m,duration:v,isResolvedFromDuration:g}=cbe(o),y=TY,w=TY;function T(){let S=m?-(m/1e3):0,A=r-t,b=c/(2*Math.sqrt(l*f)),C=Math.sqrt(l/f)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),b<1){let x=Gw(C,b);y=k=>{let P=Math.exp(-b*C*k);return r-P*((S+b*C*A)/x*Math.sin(x*k)+A*Math.cos(x*k))},w=k=>{let P=Math.exp(-b*C*k);return b*C*P*(Math.sin(x*k)*(S+b*C*A)/x+A*Math.cos(x*k))-P*(Math.cos(x*k)*(S+b*C*A)-x*A*Math.sin(x*k))}}else if(b===1)y=x=>r-Math.exp(-C*x)*(A+(S+C*A)*x);else{let x=C*Math.sqrt(b*b-1);y=k=>{let P=Math.exp(-b*C*k),D=Math.min(x*k,300);return r-P*((S+b*C*A)*Math.sinh(D)+x*A*Math.cosh(D))/x}}}return T(),{next:S=>{let A=y(S);if(g)s.done=S>=v;else{let b=w(S)*1e3,C=Math.abs(b)<=n,x=Math.abs(r-A)<=i;s.done=C&&x}return s.value=s.done?r:A,s},flipTarget:()=>{m=-m,[t,r]=[r,t],T()}}}zw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var TY=e=>0;var Cl=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var Dt=(e,t,r)=>-r*e+r*t+e;function yR(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bR({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;i=yR(c,l,e+1/3),o=yR(c,l,e),s=yR(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var fbe=(e,t,r)=>{let n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},dbe=[vm,Jo,Ls],CY=e=>dbe.find(t=>t.test(e)),SY=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Hw=(e,t)=>{let r=CY(e),n=CY(t);Gr(!!r,SY(e)),Gr(!!n,SY(t));let i=r.parse(e),o=n.parse(t);r===Ls&&(i=bR(i),r=Jo),n===Ls&&(o=bR(o),n=Jo);let s=Object.assign({},i);return l=>{for(let c in s)c!=="alpha"&&(s[c]=fbe(i[c],o[c],l));return s.alpha=Dt(i.alpha,o.alpha,l),r.transform(s)}};var iy=e=>typeof e=="number";var pbe=(e,t)=>r=>t(e(r)),Sl=(...e)=>e.reduce(pbe);function OY(e,t){return iy(e)?r=>Dt(e,t,r):Zr.test(e)?Hw(e,t):xR(e,t)}var AR=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>OY(o,t[s]));return o=>{for(let s=0;s{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=OY(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}};function kY(e){let t=_n.parse(e),r=t.length,n=0,i=0,o=0;for(let s=0;s{let r=_n.createTransformer(t),n=kY(e),i=kY(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Sl(AR(n.parsed,i.parsed),r):(Df(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};var mbe=(e,t)=>r=>Dt(e,t,r);function hbe(e){if(typeof e=="number")return mbe;if(typeof e=="string")return Zr.test(e)?Hw:xR;if(Array.isArray(e))return AR;if(typeof e=="object")return NY}function vbe(e,t,r){let n=[],i=r||hbe(e[0]),o=e.length-1;for(let s=0;sr(Cl(e,t,n))}function ybe(e,t){let r=e.length,n=r-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[n]&&(o=n-1,s=!0),!s){let c=1;for(;ci||c===n);c++);o=c-1}let l=Cl(e[o],e[o+1],i);return t[o](l)}}function qf(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;Gr(o===t.length,"Both input and output ranges must be the same length"),Gr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let s=vbe(t,n,i),l=o===2?gbe(e,s):ybe(e,s);return r?c=>l(Hu(e[0],e[o-1],c)):l}var oy=e=>t=>1-e(1-t),Qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,DY=e=>t=>Math.pow(t,e),wR=e=>t=>t*t*((e+1)*t-e),LY=e=>{let t=wR(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))};var PY=1.525,bbe=4/11,Abe=8/11,xbe=9/10,jf=e=>e,ay=DY(2),ER=oy(ay),sy=Qw(ay),Ww=e=>1-Math.sin(Math.acos(e)),Cm=oy(Ww),TR=Qw(Cm),ly=wR(PY),CR=oy(ly),SR=Qw(ly),kR=LY(PY),wbe=4356/361,Ebe=35442/1805,Tbe=16061/1805,Tm=e=>{if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-Tm(1-e*2)):.5*Tm(e*2-1)+.5;function Cbe(e,t){return e.map(()=>t||sy).splice(0,e.length-1)}function Sbe(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function kbe(e,t){return e.map(r=>r*t)}function uy({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=kbe(n&&n.length===s.length?n:Sbe(s),i);function c(){return qf(l,s,{ease:Array.isArray(r)?r:Cbe(s,r)})}let f=c();return{next:m=>(o.value=f(m),o.done=m>=i,o),flipTarget:()=>{s.reverse(),f=c()}}}function RY({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s={done:!1,value:t},l=r*e,c=t+l,f=o===void 0?c:o(c);return f!==c&&(l=f-t),{next:m=>{let v=-l*Math.exp(-m/n);return s.done=!(v>i||v<-i),s.value=s.done?f:f+v,s},flipTarget:()=>{}}}var MY={keyframes:uy,spring:zw,decay:RY};function IY(e){if(Array.isArray(e.to))return uy;if(MY[e.type])return MY[e.type];let t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?uy:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?zw:uy}var DR=16.666666666666668,Obe=typeof performance<"u"?()=>performance.now():()=>Date.now(),LR=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Obe()),DR);function FY(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,l={schedule:(c,f=!1,m=!1)=>{let v=m&&i,g=v?t:r;return f&&s.add(c),g.indexOf(c)===-1&&(g.push(c),v&&i&&(n=t.length)),c},cancel:c=>{let f=r.indexOf(c);f!==-1&&r.splice(f,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let f=0;f(e[t]=FY(()=>cy=!0),e),{}),Dbe=fy.reduce((e,t)=>{let r=Yw[t];return e[t]=(n,i=!1,o=!1)=>(cy||Pbe(),r.schedule(n,i,o)),e},{}),Ps=fy.reduce((e,t)=>(e[t]=Yw[t].cancel,e),{}),Kw=fy.reduce((e,t)=>(e[t]=()=>Yw[t].process(Sm),e),{}),Lbe=e=>Yw[e].process(Sm),qY=e=>{cy=!1,Sm.delta=PR?DR:Math.max(Math.min(e-Sm.timestamp,Nbe),1),Sm.timestamp=e,RR=!0,fy.forEach(Lbe),RR=!1,cy&&(PR=!1,LR(qY))},Pbe=()=>{cy=!0,PR=!0,RR||LR(qY)},Vf=()=>Sm,In=Dbe;function MR(e,t,r=0){return e-t-r}function jY(e,t,r=0,n=!0){return n?MR(t+-e,t,r):t-(e-t)+r}function VY(e,t,r,n){return n?e>=t+r:e<=-r}var Rbe=e=>{let t=({delta:r})=>e(r);return{start:()=>In.update(t,!0),stop:()=>Ps.update(t)}};function dy(e){var t,r,{from:n,autoplay:i=!0,driver:o=Rbe,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:f=0,onPlay:m,onStop:v,onComplete:g,onRepeat:y,onUpdate:w}=e,T=Bw(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:S}=T,A,b=0,C=T.duration,x,k=!1,P=!0,D,N=IY(T);!((r=(t=N).needsInterpolation)===null||r===void 0)&&r.call(t,n,S)&&(D=qf([0,100],[n,S],{clamp:!1}),n=0,S=100);let I=N(Object.assign(Object.assign({},T),{from:n,to:S}));function V(){b++,c==="reverse"?(P=b%2===0,s=jY(s,C,f,P)):(s=MR(s,C,f),c==="mirror"&&I.flipTarget()),k=!1,y&&y()}function G(){A.stop(),g&&g()}function B(z){if(P||(z=-z),s+=z,!k){let j=I.next(Math.max(0,s));x=j.value,D&&(x=D(x)),k=P?j.done:s<=0}w?.(x),k&&(b===0&&(C??(C=s)),b{v?.(),A.stop()}}}function py(e,t){return t?e*(1e3/t):0}function IR({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:f,driver:m,onUpdate:v,onComplete:g,onStop:y}){let w;function T(C){return r!==void 0&&Cn}function S(C){return r===void 0?n:n===void 0||Math.abs(r-C){var k;v?.(x),(k=C.onUpdate)===null||k===void 0||k.call(C,x)},onComplete:g,onStop:y}))}function b(C){A(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},C))}if(T(e))b({from:e,velocity:t,to:S(e)});else{let C=i*t+e;typeof f<"u"&&(C=f(C));let x=S(C),k=x===r?-1:1,P,D,N=I=>{P=D,D=I,t=py(I-P,Vf().delta),(k===1&&I>x||k===-1&&Iw?.stop()}}var my=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y");var FR=e=>my(e)&&e.hasOwnProperty("z");var Xw=(e,t)=>Math.abs(e-t);function hy(e,t){if(iy(e)&&iy(t))return Xw(e,t);if(my(e)&&my(t)){let r=Xw(e.x,t.x),n=Xw(e.y,t.y),i=FR(e)&&FR(t)?Xw(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var UY=(e,t)=>1-3*t+3*e,BY=(e,t)=>3*t-6*e,GY=e=>3*e,_w=(e,t,r)=>((UY(t,r)*e+BY(t,r))*e+GY(t))*e,zY=(e,t,r)=>3*UY(t,r)*e*e+2*BY(t,r)*e+GY(t),Mbe=1e-7,Ibe=10;function Fbe(e,t,r,n,i){let o,s,l=0;do s=t+(r-t)/2,o=_w(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>Mbe&&++l=jbe?Vbe(s,v,e,r):g===0?v:Fbe(s,l,l+Zw,e,r)}return s=>s===0||s===1?s:_w(o(s),t,n)}function HY(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||r||n||i,l=(0,jR.useRef)(!1),c=(0,jR.useRef)(null),f={passive:!(r||t||n||w)};function m(){var T;(T=c.current)===null||T===void 0||T.call(c),c.current=null}function v(){var T;return m(),l.current=!1,(T=o.animationState)===null||T===void 0||T.setActive(Ft.Tap,!1),!Vw()}function g(T,S){v()&&(vR(o.getInstance(),T.target)?t?.(T,S):n?.(T,S))}function y(T,S){v()&&n?.(T,S)}function w(T,S){var A;m(),!l.current&&(l.current=!0,c.current=Sl(Tl(window,"pointerup",g,f),Tl(window,"pointercancel",y,f)),(A=o.animationState)===null||A===void 0||A.setActive(Ft.Tap,!0),r?.(T,S))}Ff(o,"pointerdown",s?w:void 0,f),Uw(m)}var vy=fe(Ee(),1);var QY=new Set;function WY(e,t,r){e||QY.has(t)||(console.warn(t),r&&console.warn(r),QY.add(t))}var UR=new WeakMap,VR=new WeakMap,Ube=function(e){var t;(t=UR.get(e.target))===null||t===void 0||t(e)},Bbe=function(e){e.forEach(Ube)};function Gbe(e){var t=e.root,r=Fr(e,["root"]),n=t||document;VR.has(n)||VR.set(n,{});var i=VR.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(Bbe,ve({root:t},r))),i[o]}function YY(e,t,r){var n=Gbe(t);return UR.set(e,r),n.observe(e),function(){UR.delete(e),n.unobserve(e)}}function KY(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=(0,vy.useRef)({hasEnteredView:!1,isInView:!1}),c=!!(r||n||i);s.once&&l.current.hasEnteredView&&(c=!1);var f=typeof IntersectionObserver>"u"?Qbe:Hbe;f(c,l.current,t,s)}var zbe={some:0,all:1};function Hbe(e,t,r,n){var i=n.root,o=n.margin,s=n.amount,l=s===void 0?"some":s,c=n.once;(0,vy.useEffect)(function(){if(e){var f={root:i?.current,rootMargin:o,threshold:typeof l=="number"?l:zbe[l]},m=function(v){var g,y=v.isIntersecting;if(t.isInView!==y&&(t.isInView=y,!(c&&!y&&t.hasEnteredView))){y&&(t.hasEnteredView=!0),(g=r.animationState)===null||g===void 0||g.setActive(Ft.InView,y);var w=r.getProps(),T=y?w.onViewportEnter:w.onViewportLeave;T?.(v)}};return YY(r.getInstance(),f,m)}},[e,i,o,l])}function Qbe(e,t,r,n){var i=n.fallback,o=i===void 0?!0:i;(0,vy.useEffect)(function(){!e||!o||(cw!=="production"&&WY(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=r.getProps().onViewportEnter;l?.(null),(s=r.animationState)===null||s===void 0||s.setActive(Ft.InView,!0)}))},[e])}var ja=function(e){return function(t){return e(t),null}};var XY={inView:ja(KY),tap:ja(HY),focus:ja(cY),hover:ja(bY)};var yy=fe(Ee(),1);var $w=fe(Ee(),1);var Wbe=0,Ybe=function(){return Wbe++},ZY=function(){return gi(Ybe)};function eE(){var e=(0,$w.useContext)(Uu);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=ZY();(0,$w.useEffect)(function(){return n(i)},[]);var o=function(){return r?.(i)};return!t&&r?[!1,o]:[!0]}function BR(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n-1&&e.splice(r,1)}function sK(e,t,r){var n=ht(e),i=n.slice(0),o=t<0?i.length+t:t;if(o>=0&&ob&&G,J=Array.isArray(V)?V:[V],K=J.reduce(o,{});B===!1&&(K={});var ee=I.prevResolvedValues,re=ee===void 0?{}:ee,se=ve(ve({},re),K),xe=function(ye){j=!0,S.delete(ye),I.needsAnimating[ye]=!0};for(var Re in se){var Se=K[Re],ie=re[Re];A.hasOwnProperty(Re)||(Se!==ie?El(Se)&&El(ie)?!BR(Se,ie)||z?xe(Re):I.protectedKeys[Re]=!0:Se!==void 0?xe(Re):S.add(Re):Se!==void 0&&S.has(Re)?xe(Re):I.protectedKeys[Re]=!0)}I.prevProp=V,I.prevResolvedValues=K,I.isActive&&(A=ve(ve({},A),K)),i&&e.blockInitialAnimation&&(j=!1),j&&!U&&T.push.apply(T,Jn([],ht(J.map(function(ye){return{animation:ye,options:ve({type:N},m)}})),!1))},x=0;x=3;if(!(!y&&!w)){var T=g.point,S=Vf().timestamp;i.history.push(ve(ve({},T),{timestamp:S}));var A=i.handlers,b=A.onStart,C=A.onMove;y||(b&&b(i.lastMoveEvent,g),i.startEvent=i.lastMoveEvent),C&&C(i.lastMoveEvent,g)}}},this.handlePointerMove=function(g,y){if(i.lastMoveEvent=g,i.lastMoveEventInfo=YR(y,i.transformPagePoint),qw(g)&&g.buttons===0){i.handlePointerUp(g,y);return}In.update(i.updatePoint,!0)},this.handlePointerUp=function(g,y){i.end();var w=i.handlers,T=w.onEnd,S=w.onSessionEnd,A=KR(YR(y,i.transformPagePoint),i.history);i.startEvent&&T&&T(g,A),S&&S(g,A)},!(jw(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=s;var l=ny(t),c=YR(l,this.transformPagePoint),f=c.point,m=Vf().timestamp;this.history=[ve(ve({},f),{timestamp:m})];var v=r.onSessionStart;v&&v(t,KR(c,this.history)),this.removeListeners=Sl(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ps.update(this.updatePoint)},e}();function YR(e,t){return t?{point:t(e.point)}:e}function gK(e,t){return{x:e.x-t.x,y:e.y-t.y}}function KR(e,t){var r=e.point;return{point:r,delta:gK(r,yK(t)),offset:gK(r,hAe(t)),velocity:vAe(t,.1)}}function hAe(e){return e[0]}function yK(e){return e[e.length-1]}function vAe(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=yK(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>km(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function $o(e){return e.max-e.min}function bK(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),hy(e,t)i&&(e=r?Dt(i,e,r.max):Math.min(e,i)),e}function TK(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function NK(e,t){var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:TK(e.x,n,o),y:TK(e.y,r,i)}}function CK(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.minn?r=Cl(t.min,t.max-n,e.min):n>i&&(r=Cl(e.min,e.max-i,t.min)),Hu(0,1,r)}function PK(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var aE=.35;function RK(e){return e===void 0&&(e=aE),e===!1?e=0:e===!0&&(e=aE),{x:SK(e,"left","right"),y:SK(e,"top","bottom")}}function SK(e,t,r){return{min:kK(e,t),max:kK(e,r)}}function kK(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}var MK=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Im=function(){return{x:MK(),y:MK()}},IK=function(){return{min:0,max:0}},Fn=function(){return{x:IK(),y:IK()}};function ea(e){return[e("x"),e("y")]}function sE(e){var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}}function FK(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function qK(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function XR(e){return e===void 0||e===1}function ZR(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!XR(t)||!XR(r)||!XR(n)}function Rs(e){return ZR(e)||jK(e.x)||jK(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function jK(e){return e&&e!=="0%"}function by(e,t,r){var n=e-r,i=t*n;return r+i}function VK(e,t,r,n,i){return i!==void 0&&(e=by(e,i,n)),by(e,r,n)+t}function JR(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),e.min=VK(e.min,t,r,n,i),e.max=VK(e.max,t,r,n,i)}function _R(e,t){var r=t.x,n=t.y;JR(e.x,r.translate,r.scale,r.originPoint),JR(e.y,n.translate,n.scale,n.originPoint)}function BK(e,t,r,n){var i,o;n===void 0&&(n=!1);var s=r.length;if(s){t.x=t.y=1;for(var l,c,f=0;ft?r="y":Math.abs(e.x)>t&&(r="x"),r}function HK(e){var t=e.dragControls,r=e.visualElement,n=gi(function(){return new zK(r)});(0,eM.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,eM.useEffect)(function(){return n.addListeners()},[n])}var Fm=fe(Ee(),1);function QK(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||r||n||i,l=(0,Fm.useRef)(null),c=(0,Fm.useContext)(Vu).transformPagePoint,f={onSessionStart:i,onStart:r,onMove:t,onEnd:function(v,g){l.current=null,n&&n(v,g)}};(0,Fm.useEffect)(function(){l.current!==null&&l.current.updateHandlers(f)});function m(v){l.current=new oE(v,f,{transformPagePoint:c})}Ff(o,"pointerdown",s&&m),Uw(function(){return l.current&&l.current.end()})}var WK={pan:ja(QK),drag:ja(HK)};var uE=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function YK(){var e=uE.map(function(){return new Qu}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){uE.forEach(function(i){var o,s="on"+i,l=n[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=r[s](l))})}};return e.forEach(function(n,i){r["on"+uE[i]]=function(o){return n.add(o)},r["notify"+uE[i]]=function(){for(var o=[],s=0;s=0?window.pageYOffset:null,f=NAe(t,e,l);return o.length&&o.forEach(function(m){var v=ht(m,2),g=v[0],y=v[1];e.getValue(g).set(y)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:n}}else return{target:t,transitionEnd:n}};function nX(e,t,r,n){return CAe(t)?DAe(e,t,r,n):{target:t,transitionEnd:n}}var iX=function(e,t,r,n){var i=ZK(e,t,n);return t=i.target,n=i.transitionEnd,nX(e,t,r,n)};function LAe(e){return window.getComputedStyle(e)}var iM={treeType:"dom",readValueFromInstance:function(e,t){if(Ds(t)){var r=Om(t);return r&&r.default||0}else{var n=LAe(e);return(ww(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return $R(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;n===void 0&&(n=!0);var o=t.transition,s=t.transitionEnd,l=Fr(t,["transition","transitionEnd"]),c=dK(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),n){fK(e,l,c);var f=iX(e,l,c,s);s=f.transitionEnd,l=f.target}return ve({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:xm,build:function(e,t,r,n,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ym(t,r,n,i.transformTemplate)},render:Lw},oX=cE(iM);var aX=cE(ve(ve({},iM),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Ds(t)?((r=Om(t))===null||r===void 0?void 0:r.default)||0:(t=Pw.has(t)?t:Dw(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Mw,build:function(e,t,r,n,i){Am(t,r,n,i.transformTemplate)},render:Rw}));var sX=function(e,t){return fm(e)?aX(t,{enableHardwareAcceleration:!1}):oX(t,{enableHardwareAcceleration:!0})};var jm=fe(Ee(),1);function lX(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var qm={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(et.test(e))e=parseFloat(e);else return e;var r=lX(e,t.target.x),n=lX(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}};var uX="_$css",cX={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(nM,function(T){return s.push(T),uX}));var l=_n.parse(e);if(l.length>5)return i;var c=_n.createTransformer(e),f=typeof l[0]!="number"?1:0,m=n.x.scale*r.x,v=n.y.scale*r.y;l[0+f]/=m,l[1+f]/=v;var g=Dt(m,v,.5);typeof l[2+f]=="number"&&(l[2+f]/=g),typeof l[3+f]=="number"&&(l[3+f]/=g);var y=c(l);if(o){var w=0;y=y.replace(uX,function(){var T=s[w];return w++,T})}return y}};var PAe=function(e){uw(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,i=n.visualElement,o=n.layoutGroup,s=n.switchLayoutGroup,l=n.layoutId,c=i.projection;MW(RAe),c&&(o?.group&&o.group.add(c),s?.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){r.safeToRemove()}),c.setOptions(ve(ve({},c.options),{onExitComplete:function(){return r.safeToRemove()}}))),Bu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,f=s.projection;return f&&(f.isPresent=c,l||r.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),r.isPresent!==c&&(c?f.promote():f.relegate()||In.postRender(function(){var m;!((m=f.getStack())===null||m===void 0)&&m.members.length||n.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,i=r.layoutGroup,o=r.switchLayoutGroup,s=n.projection;s&&(s.scheduleCheckAfterUnmount(),i?.group&&i.group.remove(s),o?.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r?.()},t.prototype.render=function(){return null},t}(jm.default.Component);function fX(e){var t=ht(eE(),2),r=t[0],n=t[1],i=(0,jm.useContext)(gw);return jm.default.createElement(PAe,ve({},e,{layoutGroup:i,switchLayoutGroup:(0,jm.useContext)(yw),isPresent:r,safeToRemove:n}))}var RAe={borderRadius:ve(ve({},qm),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:qm,borderTopRightRadius:qm,borderBottomLeftRadius:qm,borderBottomRightRadius:qm,boxShadow:cX};var dX={measureLayout:fX};function pX(e,t,r){r===void 0&&(r={});var n=Mn(e)?e:_o(e);return Nm("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var gX=["TopLeft","TopRight","BottomLeft","BottomRight"],MAe=gX.length,mX=function(e){return typeof e=="string"?parseFloat(e):e},hX=function(e){return typeof e=="number"||et.test(e)};function yX(e,t,r,n,i,o){var s,l,c,f;i?(e.opacity=Dt(0,(s=r.opacity)!==null&&s!==void 0?s:1,IAe(n)),e.opacityExit=Dt((l=t.opacity)!==null&&l!==void 0?l:1,0,FAe(n))):o&&(e.opacity=Dt((c=t.opacity)!==null&&c!==void 0?c:1,(f=r.opacity)!==null&&f!==void 0?f:1,n));for(var m=0;mt?1:r(Cl(e,t,n))}}function AX(e,t){e.min=t.min,e.max=t.max}function ta(e,t){AX(e.x,t.x),AX(e.y,t.y)}function xX(e,t,r,n,i){return e-=t,e=by(e,1/r,n),i!==void 0&&(e=by(e,1/i,n)),e}function qAe(e,t,r,n,i,o,s){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),o===void 0&&(o=e),s===void 0&&(s=e),yi.test(t)){t=parseFloat(t);var l=Dt(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=Dt(o.min,o.max,n);e===o&&(c-=t),e.min=xX(e.min,t,r,c,i),e.max=xX(e.max,t,r,c,i)}}function wX(e,t,r,n,i){var o=ht(r,3),s=o[0],l=o[1],c=o[2];qAe(e,t[s],t[l],t[c],t.scale,n,i)}var jAe=["x","scaleX","originX"],VAe=["y","scaleY","originY"];function oM(e,t,r,n){wX(e.x,t,jAe,r?.x,n?.x),wX(e.y,t,VAe,r?.y,n?.y)}function EX(e){return e.translate===0&&e.scale===1}function aM(e){return EX(e.x)&&EX(e.y)}function sM(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var TX=function(){function e(){this.members=[]}return e.prototype.add=function(t){Dm(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(Lm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r)}},e.prototype.relegate=function(t){var r=this.members.findIndex(function(s){return t===s});if(r===0)return!1;for(var n,i=r;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();var UAe="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function lM(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var s=r.rotate,l=r.rotateX,c=r.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var f=e.x.scale*t.x,m=e.y.scale*t.y;return o+="scale(".concat(f,", ").concat(m,")"),o===UAe?"none":o}var CX=function(e,t){return e.depth-t.depth};var SX=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){Dm(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){Lm(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(CX),this.isDirty=!1,this.children.forEach(t)},e}();var kX=1e3;function dE(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,f){var m=this;c===void 0&&(c={}),f===void 0&&(f=r?.()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){m.isUpdating&&(m.isUpdating=!1,m.clearAllSnapshots())},this.updateProjection=function(){m.nodes.forEach(WAe),m.nodes.forEach(YAe)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?Jn(Jn([],ht(f.path),!1),[f],!1):[],this.parent=f,this.depth=f?f.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var v=0;v=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=r&&r!==e.root?r.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function LX(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function PX(e){LX(e.x),LX(e.y)}var RX=dE({attachResizeListener:function(e,t){return If(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}});var uM={current:void 0},MX=dE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!uM.current){var e=new RX(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),uM.current=e}return uM.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}});var e1e=ve(ve(ve(ve({},vK),XY),WK),dX),pE=PW(function(e,t){return lY(e,t,e1e,sX,MX)});var cM=fe(Ee(),1),Vm=fe(Ee(),1);var IX=fe(Ee(),1),mE=(0,IX.createContext)(null);function FX(e,t,r,n){if(!n)return e;var i=e.findIndex(function(m){return m.value===t});if(i===-1)return e;var o=n>0?1:-1,s=e[i+o];if(!s)return e;var l=e[i],c=s.layout,f=Dt(c.min,c.max,.5);return o===1&&l.layout.max+r>f||o===-1&&l.layout.min+r{let{__scopeTooltip:t,delayDuration:r=l1e,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[s,l]=(0,_e.useState)(!0),c=(0,_e.useRef)(!1),f=(0,_e.useRef)(0);return(0,_e.useEffect)(()=>{let m=f.current;return()=>window.clearTimeout(m)},[]),(0,_e.createElement)(u1e,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:(0,_e.useCallback)(()=>{window.clearTimeout(f.current),l(!1)},[]),onClose:(0,_e.useCallback)(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:(0,_e.useCallback)(m=>{c.current=m},[]),disableHoverableContent:i},o)},mM="Tooltip",[f1e,xy]=gE(mM),d1e=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:s,delayDuration:l}=e,c=pM(mM,e.__scopeTooltip),f=dM(t),[m,v]=(0,_e.useState)(null),g=Ea(),y=(0,_e.useRef)(0),w=s??c.disableHoverableContent,T=l??c.delayDuration,S=(0,_e.useRef)(!1),[A=!1,b]=hu({prop:n,defaultProp:i,onChange:D=>{D?(c.onOpen(),document.dispatchEvent(new CustomEvent(fM))):c.onClose(),o?.(D)}}),C=(0,_e.useMemo)(()=>A?S.current?"delayed-open":"instant-open":"closed",[A]),x=(0,_e.useCallback)(()=>{window.clearTimeout(y.current),S.current=!1,b(!0)},[b]),k=(0,_e.useCallback)(()=>{window.clearTimeout(y.current),b(!1)},[b]),P=(0,_e.useCallback)(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{S.current=!0,b(!0)},T)},[T,b]);return(0,_e.useEffect)(()=>()=>window.clearTimeout(y.current),[]),(0,_e.createElement)(Qx,f,(0,_e.createElement)(f1e,{scope:t,contentId:g,open:A,stateAttribute:C,trigger:m,onTriggerChange:v,onTriggerEnter:(0,_e.useCallback)(()=>{c.isOpenDelayed?P():x()},[c.isOpenDelayed,P,x]),onTriggerLeave:(0,_e.useCallback)(()=>{w?k():window.clearTimeout(y.current)},[k,w]),onOpen:x,onClose:k,disableHoverableContent:w},r))},WX="TooltipTrigger",p1e=(0,_e.forwardRef)((e,t)=>{let{__scopeTooltip:r,...n}=e,i=xy(WX,r),o=pM(WX,r),s=dM(r),l=(0,_e.useRef)(null),c=sr(t,l,i.onTriggerChange),f=(0,_e.useRef)(!1),m=(0,_e.useRef)(!1),v=(0,_e.useCallback)(()=>f.current=!1,[]);return(0,_e.useEffect)(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,_e.createElement)(Wx,Ze({asChild:!0},s),(0,_e.createElement)(cr.button,Ze({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},n,{ref:c,onPointerMove:xt(e.onPointerMove,g=>{g.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:xt(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:xt(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:xt(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:xt(e.onBlur,i.onClose),onClick:xt(e.onClick,i.onClose)})))}),YX="TooltipPortal",[m1e,h1e]=gE(YX,{forceMount:void 0}),v1e=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=xy(YX,t);return(0,_e.createElement)(m1e,{scope:t,forceMount:r},(0,_e.createElement)(Pa,{present:r||o.open},(0,_e.createElement)($p,{asChild:!0,container:i},n)))},Ay="TooltipContent",g1e=(0,_e.forwardRef)((e,t)=>{let r=h1e(Ay,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,s=xy(Ay,e.__scopeTooltip);return(0,_e.createElement)(Pa,{present:n||s.open},s.disableHoverableContent?(0,_e.createElement)(KX,Ze({side:i},o,{ref:t})):(0,_e.createElement)(y1e,Ze({side:i},o,{ref:t})))}),y1e=(0,_e.forwardRef)((e,t)=>{let r=xy(Ay,e.__scopeTooltip),n=pM(Ay,e.__scopeTooltip),i=(0,_e.useRef)(null),o=sr(t,i),[s,l]=(0,_e.useState)(null),{trigger:c,onClose:f}=r,m=i.current,{onPointerInTransitChange:v}=n,g=(0,_e.useCallback)(()=>{l(null),v(!1)},[v]),y=(0,_e.useCallback)((w,T)=>{let S=w.currentTarget,A={x:w.clientX,y:w.clientY},b=A1e(A,S.getBoundingClientRect()),C=x1e(A,b),x=w1e(T.getBoundingClientRect()),k=T1e([...C,...x]);l(k),v(!0)},[v]);return(0,_e.useEffect)(()=>()=>g(),[g]),(0,_e.useEffect)(()=>{if(c&&m){let w=S=>y(S,m),T=S=>y(S,c);return c.addEventListener("pointerleave",w),m.addEventListener("pointerleave",T),()=>{c.removeEventListener("pointerleave",w),m.removeEventListener("pointerleave",T)}}},[c,m,y,g]),(0,_e.useEffect)(()=>{if(s){let w=T=>{let S=T.target,A={x:T.clientX,y:T.clientY},b=c?.contains(S)||m?.contains(S),C=!E1e(A,s);b?g():C&&(g(),f())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,m,s,f,g]),(0,_e.createElement)(KX,Ze({},e,{ref:o}))}),[b1e,iVe]=gE(mM,{isInside:!1}),KX=(0,_e.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,c=xy(Ay,r),f=dM(r),{onClose:m}=c;return(0,_e.useEffect)(()=>(document.addEventListener(fM,m),()=>document.removeEventListener(fM,m)),[m]),(0,_e.useEffect)(()=>{if(c.trigger){let v=g=>{let y=g.target;y!=null&&y.contains(c.trigger)&&m()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[c.trigger,m]),(0,_e.createElement)(_p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:v=>v.preventDefault(),onDismiss:m},(0,_e.createElement)(Yx,Ze({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,_e.createElement)(XL,null,n),(0,_e.createElement)(b1e,{scope:r,isInside:!0},(0,_e.createElement)(Cx,{id:c.contentId,role:"tooltip"},i||n))))});function A1e(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function x1e(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function w1e(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function E1e(e,t){let{x:r,y:n}=e,i=!1;for(let o=0,s=t.length-1;on!=m>n&&r<(f-l)*(n-c)/(m-c)+l&&(i=!i)}return i}function T1e(e){let t=e.slice();return t.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),C1e(t)}function C1e(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();let r=[];for(let n=e.length-1;n>=0;n--){let i=e[n];for(;r.length>=2;){let o=r[r.length-1],s=r[r.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var XX=c1e,ZX=d1e,JX=p1e,_X=v1e,$X=g1e;var yt=fe(Ee(),1);var tZ=fe(Ee(),1);var yE=fe(Ee(),1);var k1e=Object.defineProperty,O1e=(e,t,r)=>t in e?k1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hM=(e,t,r)=>(O1e(e,typeof t!="symbol"?t+"":t,r),r),vM=class{constructor(){hM(this,"current",this.detect()),hM(this,"handoffState","pending"),hM(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Va=new vM;var Tn=(e,t)=>{Va.isServer?(0,yE.useEffect)(e,t):(0,yE.useLayoutEffect)(e,t)};var eZ=fe(Ee(),1);function Is(e){let t=(0,eZ.useRef)(e);return Tn(()=>{t.current=e},[e]),t}function bE(e,t){let[r,n]=(0,tZ.useState)(e),i=Is(e);return Tn(()=>n(i.current),[i,n,...t]),r}var AE=fe(Ee(),1);function rZ(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Bm(){let e=[],t={addEventListener(r,n,i,o){return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return rZ(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:o})})},group(r){let n=Bm();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function xE(){let[e]=(0,AE.useState)(Bm);return(0,AE.useEffect)(()=>()=>e.dispose(),[e]),e}var nZ=fe(Ee(),1);var Qt=function(e){let t=Is(e);return nZ.default.useCallback((...r)=>t.current(...r),[t])};var gM=fe(Ee(),1);var zf=fe(Ee(),1);function N1e(){let e=typeof document>"u";return"useSyncExternalStore"in zf?(t=>t.useSyncExternalStore)(zf)(()=>()=>{},()=>!1,()=>!e):!1}function iZ(){let e=N1e(),[t,r]=zf.useState(Va.isHandoffComplete);return t&&Va.isHandoffComplete===!1&&r(!1),zf.useEffect(()=>{t!==!0&&r(!0)},[t]),zf.useEffect(()=>Va.handoff(),[]),e?!1:t}var oZ,Gm=(oZ=gM.default.useId)!=null?oZ:function(){let e=iZ(),[t,r]=gM.default.useState(e?()=>Va.nextId():null);return Tn(()=>{t===null&&r(Va.nextId())},[t]),t!=null?""+t:void 0};var Ey=fe(Ee(),1);function ra(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ra),n}function zm(e){return Va.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var aZ=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),D1e=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(D1e||{}),L1e=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(L1e||{}),P1e=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(P1e||{});var yM=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(yM||{});function sZ(e,t=0){var r;return e===((r=zm(e))==null?void 0:r.body)?!1:ra(t,{0(){return e.matches(aZ)},1(){let n=e;for(;n!==null;){if(n.matches(aZ))return!0;n=n.parentElement}return!1}})}var R1e=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(R1e||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var LVe=["textarea","input"].join(",");function lZ(e,t=r=>r){return e.slice().sort((r,n)=>{let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}var uZ=fe(Ee(),1);function wy(e,t,r){let n=Is(t);(0,uZ.useEffect)(()=>{function i(o){n.current(o)}return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r)},[e,r])}var cZ=fe(Ee(),1);function fZ(e,t,r){let n=Is(t);(0,cZ.useEffect)(()=>{function i(o){n.current(o)}return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r)},[e,r])}function dZ(e,t,r=!0){let n=(0,Ey.useRef)(!1);(0,Ey.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function i(s,l){if(!n.current||s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function m(v){return typeof v=="function"?m(v()):Array.isArray(v)||v instanceof Set?v:[v]}(e);for(let m of f){if(m===null)continue;let v=m instanceof HTMLElement?m:m.current;if(v!=null&&v.contains(c)||s.composed&&s.composedPath().includes(v))return}return!sZ(c,yM.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c)}let o=(0,Ey.useRef)(null);wy("pointerdown",s=>{var l,c;n.current&&(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),wy("mousedown",s=>{var l,c;n.current&&(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),wy("click",s=>{o.current&&(i(s,()=>o.current),o.current=null)},!0),wy("touchend",s=>i(s,()=>s.target instanceof HTMLElement?s.target:null),!0),fZ("blur",s=>i(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var mZ=fe(Ee(),1);function pZ(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function hZ(e,t){let[r,n]=(0,mZ.useState)(()=>pZ(e));return Tn(()=>{n(pZ(e))},[e.type,e.as]),Tn(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}var wE=fe(Ee(),1);var M1e=Symbol();function Hm(...e){let t=(0,wE.useRef)(e);(0,wE.useEffect)(()=>{t.current=e},[e]);let r=Qt(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||n?.[M1e])?void 0:r}var Ty=fe(Ee(),1);function vZ({container:e,accept:t,walk:r,enabled:n=!0}){let i=(0,Ty.useRef)(t),o=(0,Ty.useRef)(r);(0,Ty.useEffect)(()=>{i.current=t,o.current=r},[t,r]),Tn(()=>{if(!e||!n)return;let s=zm(e);if(!s)return;let l=i.current,c=o.current,f=Object.assign(v=>l(v),{acceptNode:l}),m=s.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,f,!1);for(;m.nextNode();)c(m.currentNode)},[e,n,i,o])}function I1e(e){throw new Error("Unexpected object: "+e)}var qn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(qn||{});function gZ(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1,o=(()=>{switch(e.focus){case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((l,c,f)=>i!==-1&&f.length-c-1>=i?!1:!t.resolveDisabled(l));return s===-1?s:r.length-1-s}case 2:return r.findIndex((s,l)=>l<=i?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return s===-1?s:r.length-1-s}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:I1e(e)}})();return o===-1?n:o}var na=fe(Ee(),1);function bM(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var CE=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(CE||{}),F1e=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(F1e||{});function kl({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s}){let l=yZ(t,e);if(o)return EE(l,r,n,s);let c=i??0;if(c&2){let{static:f=!1,...m}=l;if(f)return EE(m,r,n,s)}if(c&1){let{unmount:f=!0,...m}=l;return ra(f?0:1,{0(){return null},1(){return EE({...m,hidden:!0,style:{display:"none"}},r,n,s)}})}return EE(l,r,n,s)}function EE(e,t={},r,n){let{as:i=r,children:o,refName:s="ref",...l}=AM(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},f=typeof o=="function"?o(t):o;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let m={};if(t){let v=!1,g=[];for(let[y,w]of Object.entries(t))typeof w=="boolean"&&(v=!0),w===!0&&g.push(y);v&&(m["data-headlessui-state"]=g.join(" "))}if(i===na.Fragment&&Object.keys(TE(l)).length>0){if(!(0,na.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(w=>` - ${w}`).join(` -`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(w=>` - ${w}`).join(` +`); + },phe=0,tm=[];function qB(e){ + var t=br.useRef([]),r=br.useRef([0,0]),n=br.useRef(),i=br.useState(phe++)[0],o=br.useState(function(){ + return qg(); + })[0],s=br.useRef(e);br.useEffect(function(){ + s.current=e; + },[e]),br.useEffect(function(){ + if(e.inert){ + document.body.classList.add('block-interactivity-'.concat(i));var T=xB([e.lockRef.current],(e.shards||[]).map(FB),!0).filter(Boolean);return T.forEach(function(S){ + return S.classList.add('allow-interactivity-'.concat(i)); + }),function(){ + document.body.classList.remove('block-interactivity-'.concat(i)),T.forEach(function(S){ + return S.classList.remove('allow-interactivity-'.concat(i)); + }); + }; + } + },[e.inert,e.lockRef.current,e.shards]);var l=br.useCallback(function(T,S){ + if('touches'in T&&T.touches.length===2)return!s.current.allowPinchZoom;var A=bx(T),b=r.current,C='deltaX'in T?T.deltaX:b[0]-A[0],x='deltaY'in T?T.deltaY:b[1]-A[1],k,P=T.target,D=Math.abs(C)>Math.abs(x)?'h':'v';if('touches'in T&&D==='h'&&P.type==='range')return!1;var N=dP(D,P);if(!N)return!0;if(N?k=D:(k=D==='v'?'h':'v',N=dP(D,P)),!N)return!1;if(!n.current&&'changedTouches'in T&&(C||x)&&(n.current=k),!k)return!0;var I=n.current||k;return MB(I,S,T,I==='h'?C:x,!0); + },[]),c=br.useCallback(function(T){ + var S=T;if(!(!tm.length||tm[tm.length-1]!==o)){ + var A='deltaY'in S?IB(S):bx(S),b=t.current.filter(function(k){ + return k.name===S.type&&k.target===S.target&&fhe(k.delta,A); + })[0];if(b&&b.should){ + S.cancelable&&S.preventDefault();return; + }if(!b){ + var C=(s.current.shards||[]).map(FB).filter(Boolean).filter(function(k){ + return k.contains(S.target); + }),x=C.length>0?l(S,C[0]):!s.current.noIsolation;x&&S.cancelable&&S.preventDefault(); + } + } + },[]),f=br.useCallback(function(T,S,A,b){ + var C={name:T,delta:S,target:A,should:b};t.current.push(C),setTimeout(function(){ + t.current=t.current.filter(function(x){ + return x!==C; + }); + },1); + },[]),m=br.useCallback(function(T){ + r.current=bx(T),n.current=void 0; + },[]),v=br.useCallback(function(T){ + f(T.type,IB(T),T.target,l(T,e.lockRef.current)); + },[]),g=br.useCallback(function(T){ + f(T.type,bx(T),T.target,l(T,e.lockRef.current)); + },[]);br.useEffect(function(){ + return tm.push(o),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:g}),document.addEventListener('wheel',c,gf),document.addEventListener('touchmove',c,gf),document.addEventListener('touchstart',m,gf),function(){ + tm=tm.filter(function(T){ + return T!==o; + }),document.removeEventListener('wheel',c,gf),document.removeEventListener('touchmove',c,gf),document.removeEventListener('touchstart',m,gf); + }; + },[]);var y=e.removeScrollBar,w=e.inert;return br.createElement(br.Fragment,null,w?br.createElement(o,{styles:dhe(i)}):null,y?br.createElement(cP,{gapMode:'margin'}):null); +}var jB=iP(gx,qB);var VB=Ax.forwardRef(function(e,t){ + return Ax.createElement(Fg,As({},e,{ref:t,sideCar:jB})); +});VB.classNames=Fg.classNames;var Vg=VB;var mhe=function(e){ + if(typeof document>'u')return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body; + },rm=new WeakMap,xx=new WeakMap,wx={},pP=0,UB=function(e){ + return e&&(e.host||UB(e.parentNode)); + },hhe=function(e,t){ + return t.map(function(r){ + if(e.contains(r))return r;var n=UB(r);return n&&e.contains(n)?n:(console.error('aria-hidden',r,'in not contained inside',e,'. Doing nothing'),null); + }).filter(function(r){ + return!!r; + }); + },vhe=function(e,t,r,n){ + var i=hhe(t,Array.isArray(e)?e:[e]);wx[r]||(wx[r]=new WeakMap);var o=wx[r],s=[],l=new Set,c=new Set(i),f=function(v){ + !v||l.has(v)||(l.add(v),f(v.parentNode)); + };i.forEach(f);var m=function(v){ + !v||c.has(v)||Array.prototype.forEach.call(v.children,function(g){ + if(l.has(g))m(g);else{ + var y=g.getAttribute(n),w=y!==null&&y!=='false',T=(rm.get(g)||0)+1,S=(o.get(g)||0)+1;rm.set(g,T),o.set(g,S),s.push(g),T===1&&w&&xx.set(g,!0),S===1&&g.setAttribute(r,'true'),w||g.setAttribute(n,'true'); + } + }); + };return m(t),l.clear(),pP++,function(){ + s.forEach(function(v){ + var g=rm.get(v)-1,y=o.get(v)-1;rm.set(v,g),o.set(v,y),g||(xx.has(v)||v.removeAttribute(n),xx.delete(v)),y||v.removeAttribute(r); + }),pP--,pP||(rm=new WeakMap,rm=new WeakMap,xx=new WeakMap,wx={}); + }; + },Ex=function(e,t,r){ + r===void 0&&(r='data-aria-hidden');var n=Array.from(Array.isArray(e)?e:[e]),i=t||mhe(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll('[aria-live]'))),vhe(n,i,r,'aria-hidden')):function(){ + return null; + }; + };var BB='Dialog',[GB,F2e]=Hi(BB),[ghe,Ra]=GB(BB),yhe=e=>{ + let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=(0,pt.useRef)(null),c=(0,pt.useRef)(null),[f=!1,m]=hu({prop:n,defaultProp:i,onChange:o});return(0,pt.createElement)(ghe,{scope:t,triggerRef:l,contentRef:c,contentId:Ea(),titleId:Ea(),descriptionId:Ea(),open:f,onOpenChange:m,onOpenToggle:(0,pt.useCallback)(()=>m(v=>!v),[m]),modal:s},r); + },bhe='DialogTrigger',Ahe=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,...n}=e,i=Ra(bhe,r),o=sr(t,i.triggerRef);return(0,pt.createElement)(cr.button,Ze({type:'button','aria-haspopup':'dialog','aria-expanded':i.open,'aria-controls':i.contentId,'data-state':hP(i.open)},n,{ref:o,onClick:xt(e.onClick,i.onOpenToggle)})); + }),zB='DialogPortal',[xhe,HB]=GB(zB,{forceMount:void 0}),whe=e=>{ + let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=Ra(zB,t);return(0,pt.createElement)(xhe,{scope:t,forceMount:r},pt.Children.map(n,s=>(0,pt.createElement)(Pa,{present:r||o.open},(0,pt.createElement)($p,{asChild:!0,container:i},s)))); + },mP='DialogOverlay',Ehe=(0,pt.forwardRef)((e,t)=>{ + let r=HB(mP,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ra(mP,e.__scopeDialog);return o.modal?(0,pt.createElement)(Pa,{present:n||o.open},(0,pt.createElement)(The,Ze({},i,{ref:t}))):null; + }),The=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,...n}=e,i=Ra(mP,r);return(0,pt.createElement)(Vg,{as:bs,allowPinchZoom:!0,shards:[i.contentRef]},(0,pt.createElement)(cr.div,Ze({'data-state':hP(i.open)},n,{ref:t,style:{pointerEvents:'auto',...n.style}}))); + }),nm='DialogContent',Che=(0,pt.forwardRef)((e,t)=>{ + let r=HB(nm,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Ra(nm,e.__scopeDialog);return(0,pt.createElement)(Pa,{present:n||o.open},o.modal?(0,pt.createElement)(She,Ze({},i,{ref:t})):(0,pt.createElement)(khe,Ze({},i,{ref:t}))); + }),She=(0,pt.forwardRef)((e,t)=>{ + let r=Ra(nm,e.__scopeDialog),n=(0,pt.useRef)(null),i=sr(t,r.contentRef,n);return(0,pt.useEffect)(()=>{ + let o=n.current;if(o)return Ex(o); + },[]),(0,pt.createElement)(QB,Ze({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xt(e.onCloseAutoFocus,o=>{ + var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus(); + }),onPointerDownOutside:xt(e.onPointerDownOutside,o=>{ + let s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&o.preventDefault(); + }),onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault())})); + }),khe=(0,pt.forwardRef)((e,t)=>{ + let r=Ra(nm,e.__scopeDialog),n=(0,pt.useRef)(!1),i=(0,pt.useRef)(!1);return(0,pt.createElement)(QB,Ze({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{ + var s;if((s=e.onCloseAutoFocus)===null||s===void 0||s.call(e,o),!o.defaultPrevented){ + var l;n.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),o.preventDefault(); + }n.current=!1,i.current=!1; + },onInteractOutside:o=>{ + var s,l;(s=e.onInteractOutside)===null||s===void 0||s.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==='pointerdown'&&(i.current=!0));let c=o.target;((l=r.triggerRef.current)===null||l===void 0?void 0:l.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==='focusin'&&i.current&&o.preventDefault(); + }})); + }),QB=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,l=Ra(nm,r),c=(0,pt.useRef)(null),f=sr(t,c);return vx(),(0,pt.createElement)(pt.Fragment,null,(0,pt.createElement)(px,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,pt.createElement)(_p,Ze({role:'dialog',id:l.contentId,'aria-describedby':l.descriptionId,'aria-labelledby':l.titleId,'data-state':hP(l.open)},s,{ref:f,onDismiss:()=>l.onOpenChange(!1)}))),!1); + }),WB='DialogTitle',Ohe=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,...n}=e,i=Ra(WB,r);return(0,pt.createElement)(cr.h2,Ze({id:i.titleId},n,{ref:t})); + }),Nhe='DialogDescription',Dhe=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,...n}=e,i=Ra(Nhe,r);return(0,pt.createElement)(cr.p,Ze({id:i.descriptionId},n,{ref:t})); + }),Lhe='DialogClose',Phe=(0,pt.forwardRef)((e,t)=>{ + let{__scopeDialog:r,...n}=e,i=Ra(Lhe,r);return(0,pt.createElement)(cr.button,Ze({type:'button'},n,{ref:t,onClick:xt(e.onClick,()=>i.onOpenChange(!1))})); + });function hP(e){ + return e?'open':'closed'; +}var Rhe='DialogTitleWarning',[q2e,j2e]=qq(Rhe,{contentName:nm,titleName:WB,docsSlug:'dialog'});var YB=yhe,KB=Ahe,XB=whe,ZB=Ehe,JB=Che,_B=Ohe,$B=Dhe,eG=Phe;var Tx=fe(Ee(),1);var Ihe=(0,Tx.forwardRef)((e,t)=>(0,Tx.createElement)(cr.span,Ze({},e,{ref:t,style:{position:'absolute',border:0,width:1,height:1,padding:0,margin:-1,overflow:'hidden',clip:'rect(0, 0, 0, 0)',whiteSpace:'nowrap',wordWrap:'normal',...e.style}}))),Cx=Ihe;var Zn=fe(Ee(),1);var Ye=fe(Ee(),1);var Ma=fe(Ee(),1);function Sx(e){ + let t=e+'CollectionProvider',[r,n]=Hi(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{ + let{scope:w,children:T}=y,S=Ma.default.useRef(null),A=Ma.default.useRef(new Map).current;return Ma.default.createElement(i,{scope:w,itemMap:A,collectionRef:S},T); + },l=e+'CollectionSlot',c=Ma.default.forwardRef((y,w)=>{ + let{scope:T,children:S}=y,A=o(l,T),b=sr(w,A.collectionRef);return Ma.default.createElement(bs,{ref:b},S); + }),f=e+'CollectionItemSlot',m='data-radix-collection-item',v=Ma.default.forwardRef((y,w)=>{ + let{scope:T,children:S,...A}=y,b=Ma.default.useRef(null),C=sr(w,b),x=o(f,T);return Ma.default.useEffect(()=>(x.itemMap.set(b,{ref:b,...A}),()=>void x.itemMap.delete(b))),Ma.default.createElement(bs,{[m]:'',ref:C},S); + });function g(y){ + let w=o(e+'CollectionConsumer',y);return Ma.default.useCallback(()=>{ + let S=w.collectionRef.current;if(!S)return[];let A=Array.from(S.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((x,k)=>A.indexOf(x.ref.current)-A.indexOf(k.ref.current)); + },[w.collectionRef,w.itemMap]); + }return[{Provider:s,Slot:c,ItemSlot:v},g,n]; +}var Ug=fe(Ee(),1),Fhe=(0,Ug.createContext)(void 0);function kx(e){ + let t=(0,Ug.useContext)(Fhe);return e||t||'ltr'; +}var Rn=fe(Ee(),1);var tG=['top','right','bottom','left'];var xs=Math.min,Fi=Math.max,Gg=Math.round,zg=Math.floor,gl=e=>({x:e,y:e}),qhe={left:'right',right:'left',bottom:'top',top:'bottom'},jhe={start:'end',end:'start'};function Nx(e,t,r){ + return Fi(e,xs(t,r)); +}function ws(e,t){ + return typeof e=='function'?e(t):e; +}function Es(e){ + return e.split('-')[0]; +}function yf(e){ + return e.split('-')[1]; +}function Dx(e){ + return e==='x'?'y':'x'; +}function Lx(e){ + return e==='y'?'height':'width'; +}function bf(e){ + return['top','bottom'].includes(Es(e))?'y':'x'; +}function Px(e){ + return Dx(bf(e)); +}function rG(e,t,r){ + r===void 0&&(r=!1);let n=yf(e),i=Px(e),o=Lx(i),s=i==='x'?n===(r?'end':'start')?'right':'left':n==='start'?'bottom':'top';return t.reference[o]>t.floating[o]&&(s=Bg(s)),[s,Bg(s)]; +}function nG(e){ + let t=Bg(e);return[Ox(e),t,Ox(t)]; +}function Ox(e){ + return e.replace(/start|end/g,t=>jhe[t]); +}function Vhe(e,t,r){ + let n=['left','right'],i=['right','left'],o=['top','bottom'],s=['bottom','top'];switch(e){ + case'top':case'bottom':return r?t?i:n:t?n:i;case'left':case'right':return t?o:s;default:return[]; + } +}function iG(e,t,r,n){ + let i=yf(e),o=Vhe(Es(e),r==='start',n);return i&&(o=o.map(s=>s+'-'+i),t&&(o=o.concat(o.map(Ox)))),o; +}function Bg(e){ + return e.replace(/left|right|bottom|top/g,t=>qhe[t]); +}function Uhe(e){ + return{top:0,right:0,bottom:0,left:0,...e}; +}function vP(e){ + return typeof e!='number'?Uhe(e):{top:e,right:e,bottom:e,left:e}; +}function Af(e){ + return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}; +}function oG(e,t,r){ + let{reference:n,floating:i}=e,o=bf(t),s=Px(t),l=Lx(s),c=Es(t),f=o==='y',m=n.x+n.width/2-i.width/2,v=n.y+n.height/2-i.height/2,g=n[l]/2-i[l]/2,y;switch(c){ + case'top':y={x:m,y:n.y-i.height};break;case'bottom':y={x:m,y:n.y+n.height};break;case'right':y={x:n.x+n.width,y:v};break;case'left':y={x:n.x-i.width,y:v};break;default:y={x:n.x,y:n.y}; + }switch(yf(t)){ + case'start':y[s]-=g*(r&&f?-1:1);break;case'end':y[s]+=g*(r&&f?-1:1);break; + }return y; +}var lG=async(e,t,r)=>{ + let{placement:n='bottom',strategy:i='absolute',middleware:o=[],platform:s}=r,l=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:v}=oG(f,n,c),g=n,y={},w=0;for(let T=0;T({name:'arrow',options:e,async fn(t){ + let{x:r,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:m=0}=ws(e,t)||{};if(f==null)return{};let v=vP(m),g={x:r,y:n},y=Px(i),w=Lx(y),T=await s.getDimensions(f),S=y==='y',A=S?'top':'left',b=S?'bottom':'right',C=S?'clientHeight':'clientWidth',x=o.reference[w]+o.reference[y]-g[y]-o.floating[w],k=g[y]-o.reference[y],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f)),D=P?P[C]:0;(!D||!await(s.isElement==null?void 0:s.isElement(P)))&&(D=l.floating[C]||o.floating[w]);let N=x/2-k/2,I=D/2-T[w]/2-1,V=xs(v[A],I),G=xs(v[b],I),B=V,U=D-T[w]-G,z=D/2-T[w]/2+N,j=Nx(B,z,U),J=!c.arrow&&yf(i)!=null&&z!=j&&o.reference[w]/2-(zB<=0)){ + var I,V;let B=(((I=o.flip)==null?void 0:I.index)||0)+1,U=k[B];if(U)return{data:{index:B,overflows:N},reset:{placement:U}};let z=(V=N.filter(j=>j.overflows[0]<=0).sort((j,J)=>j.overflows[1]-J.overflows[1])[0])==null?void 0:V.placement;if(!z)switch(y){ + case'bestFit':{var G;let j=(G=N.map(J=>[J.placement,J.overflows.filter(K=>K>0).reduce((K,ee)=>K+ee,0)]).sort((J,K)=>J[1]-K[1])[0])==null?void 0:G[0];j&&(z=j);break;}case'initialPlacement':z=l;break; + }if(i!==z)return{reset:{placement:z}}; + }return{}; + }}; +};function aG(e,t){ + return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}; +}function sG(e){ + return tG.some(t=>e[t]>=0); +}var Ix=function(e){ + return e===void 0&&(e={}),{name:'hide',options:e,async fn(t){ + let{rects:r}=t,{strategy:n='referenceHidden',...i}=ws(e,t);switch(n){ + case'referenceHidden':{let o=await xf(t,{...i,elementContext:'reference'}),s=aG(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:sG(s)}};}case'escaped':{let o=await xf(t,{...i,altBoundary:!0}),s=aG(o,r.floating);return{data:{escapedOffsets:s,escaped:sG(s)}};}default:return{}; + } + }}; +};async function Bhe(e,t){ + let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Es(r),l=yf(r),c=bf(r)==='y',f=['left','top'].includes(s)?-1:1,m=o&&c?-1:1,v=ws(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:w}=typeof v=='number'?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return l&&typeof w=='number'&&(y=l==='end'?w*-1:w),c?{x:y*m,y:g*f}:{x:g*f,y:y*m}; +}var Fx=function(e){ + return e===void 0&&(e=0),{name:'offset',options:e,async fn(t){ + let{x:r,y:n}=t,i=await Bhe(t,e);return{x:r+i.x,y:n+i.y,data:i}; + }}; + },qx=function(e){ + return e===void 0&&(e={}),{name:'shift',options:e,async fn(t){ + let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:S=>{ + let{x:A,y:b}=S;return{x:A,y:b}; + }},...c}=ws(e,t),f={x:r,y:n},m=await xf(t,c),v=bf(Es(i)),g=Dx(v),y=f[g],w=f[v];if(o){ + let S=g==='y'?'top':'left',A=g==='y'?'bottom':'right',b=y+m[S],C=y-m[A];y=Nx(b,y,C); + }if(s){ + let S=v==='y'?'top':'left',A=v==='y'?'bottom':'right',b=w+m[S],C=w-m[A];w=Nx(b,w,C); + }let T=l.fn({...t,[g]:y,[v]:w});return{...T,data:{x:T.x-r,y:T.y-n}}; + }}; + },jx=function(e){ + return e===void 0&&(e={}),{options:e,fn(t){ + let{x:r,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=ws(e,t),m={x:r,y:n},v=bf(i),g=Dx(v),y=m[g],w=m[v],T=ws(l,t),S=typeof T=='number'?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(c){ + let C=g==='y'?'height':'width',x=o.reference[g]-o.floating[C]+S.mainAxis,k=o.reference[g]+o.reference[C]-S.mainAxis;yk&&(y=k); + }if(f){ + var A,b;let C=g==='y'?'width':'height',x=['top','left'].includes(Es(i)),k=o.reference[v]-o.floating[C]+(x&&((A=s.offset)==null?void 0:A[v])||0)+(x?0:S.crossAxis),P=o.reference[v]+o.reference[C]+(x?0:((b=s.offset)==null?void 0:b[v])||0)-(x?S.crossAxis:0);wP&&(w=P); + }return{[g]:y,[v]:w}; + }}; + },Vx=function(e){ + return e===void 0&&(e={}),{name:'size',options:e,async fn(t){ + let{placement:r,rects:n,platform:i,elements:o}=t,{apply:s=()=>{},...l}=ws(e,t),c=await xf(t,l),f=Es(r),m=yf(r),v=bf(r)==='y',{width:g,height:y}=n.floating,w,T;f==='top'||f==='bottom'?(w=f,T=m===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?'start':'end')?'left':'right'):(T=f,w=m==='end'?'top':'bottom');let S=y-c[w],A=g-c[T],b=!t.middlewareData.shift,C=S,x=A;if(v){ + let P=g-c.left-c.right;x=m||b?xs(A,P):P; + }else{ + let P=y-c.top-c.bottom;C=m||b?xs(S,P):P; + }if(b&&!m){ + let P=Fi(c.left,0),D=Fi(c.right,0),N=Fi(c.top,0),I=Fi(c.bottom,0);v?x=g-2*(P!==0||D!==0?P+D:Fi(c.left,c.right)):C=y-2*(N!==0||I!==0?N+I:Fi(c.top,c.bottom)); + }await s({...t,availableWidth:x,availableHeight:C});let k=await i.getDimensions(o.floating);return g!==k.width||y!==k.height?{reset:{rects:!0}}:{}; + }}; + };function yl(e){ + return cG(e)?(e.nodeName||'').toLowerCase():'#document'; +}function Ji(e){ + var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window; +}function Ts(e){ + var t;return(t=(cG(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement; +}function cG(e){ + return e instanceof Node||e instanceof Ji(e).Node; +}function Cs(e){ + return e instanceof Element||e instanceof Ji(e).Element; +}function Ia(e){ + return e instanceof HTMLElement||e instanceof Ji(e).HTMLElement; +}function uG(e){ + return typeof ShadowRoot>'u'?!1:e instanceof ShadowRoot||e instanceof Ji(e).ShadowRoot; +}function im(e){ + let{overflow:t,overflowX:r,overflowY:n,display:i}=xo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!['inline','contents'].includes(i); +}function fG(e){ + return['table','td','th'].includes(yl(e)); +}function Ux(e){ + let t=Bx(),r=xo(e);return r.transform!=='none'||r.perspective!=='none'||(r.containerType?r.containerType!=='normal':!1)||!t&&(r.backdropFilter?r.backdropFilter!=='none':!1)||!t&&(r.filter?r.filter!=='none':!1)||['transform','perspective','filter'].some(n=>(r.willChange||'').includes(n))||['paint','layout','strict','content'].some(n=>(r.contain||'').includes(n)); +}function dG(e){ + let t=wf(e);for(;Ia(t)&&!Hg(t);){ + if(Ux(t))return t;t=wf(t); + }return null; +}function Bx(){ + return typeof CSS>'u'||!CSS.supports?!1:CSS.supports('-webkit-backdrop-filter','none'); +}function Hg(e){ + return['html','body','#document'].includes(yl(e)); +}function xo(e){ + return Ji(e).getComputedStyle(e); +}function Qg(e){ + return Cs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}; +}function wf(e){ + if(yl(e)==='html')return e;let t=e.assignedSlot||e.parentNode||uG(e)&&e.host||Ts(e);return uG(t)?t.host:t; +}function pG(e){ + let t=wf(e);return Hg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ia(t)&&im(t)?t:pG(t); +}function Ef(e,t,r){ + var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=pG(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ji(i);return o?t.concat(s,s.visualViewport||[],im(i)?i:[],s.frameElement&&r?Ef(s.frameElement):[]):t.concat(i,Ef(i,[],r)); +}function vG(e){ + let t=xo(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ia(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Gg(r)!==o||Gg(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}; +}function gP(e){ + return Cs(e)?e:e.contextElement; +}function om(e){ + let t=gP(e);if(!Ia(t))return gl(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=vG(t),s=(o?Gg(r.width):r.width)/n,l=(o?Gg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}; +}var Hhe=gl(0);function gG(e){ + let t=Ji(e);return!Bx()||!t.visualViewport?Hhe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}; +}function Qhe(e,t,r){ + return t===void 0&&(t=!1),!r||t&&r!==Ji(e)?!1:t; +}function Tf(e,t,r,n){ + t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=gP(e),s=gl(1);t&&(n?Cs(n)&&(s=om(n)):s=om(e));let l=Qhe(o,r,n)?gG(o):gl(0),c=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,m=i.width/s.x,v=i.height/s.y;if(o){ + let g=Ji(o),y=n&&Cs(n)?Ji(n):n,w=g.frameElement;for(;w&&n&&y!==g;){ + let T=om(w),S=w.getBoundingClientRect(),A=xo(w),b=S.left+(w.clientLeft+parseFloat(A.paddingLeft))*T.x,C=S.top+(w.clientTop+parseFloat(A.paddingTop))*T.y;c*=T.x,f*=T.y,m*=T.x,v*=T.y,c+=b,f+=C,w=Ji(w).frameElement; + } + }return Af({width:m,height:v,x:c,y:f}); +}function Whe(e){ + let{rect:t,offsetParent:r,strategy:n}=e,i=Ia(r),o=Ts(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0},l=gl(1),c=gl(0);if((i||!i&&n!=='fixed')&&((yl(r)!=='body'||im(o))&&(s=Qg(r)),Ia(r))){ + let f=Tf(r);l=om(r),c.x=f.x+r.clientLeft,c.y=f.y+r.clientTop; + }return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}; +}function Yhe(e){ + return Array.from(e.getClientRects()); +}function yG(e){ + return Tf(Ts(e)).left+Qg(e).scrollLeft; +}function Khe(e){ + let t=Ts(e),r=Qg(e),n=e.ownerDocument.body,i=Fi(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Fi(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+yG(e),l=-r.scrollTop;return xo(n).direction==='rtl'&&(s+=Fi(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}; +}function Xhe(e,t){ + let r=Ji(e),n=Ts(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,c=0;if(i){ + o=i.width,s=i.height;let f=Bx();(!f||f&&t==='fixed')&&(l=i.offsetLeft,c=i.offsetTop); + }return{width:o,height:s,x:l,y:c}; +}function Zhe(e,t){ + let r=Tf(e,!0,t==='fixed'),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Ia(e)?om(e):gl(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,f=n*o.y;return{width:s,height:l,x:c,y:f}; +}function mG(e,t,r){ + let n;if(t==='viewport')n=Xhe(e,r);else if(t==='document')n=Khe(Ts(e));else if(Cs(t))n=Zhe(t,r);else{ + let i=gG(e);n={...t,x:t.x-i.x,y:t.y-i.y}; + }return Af(n); +}function bG(e,t){ + let r=wf(e);return r===t||!Cs(r)||Hg(r)?!1:xo(r).position==='fixed'||bG(r,t); +}function Jhe(e,t){ + let r=t.get(e);if(r)return r;let n=Ef(e,[],!1).filter(l=>Cs(l)&&yl(l)!=='body'),i=null,o=xo(e).position==='fixed',s=o?wf(e):e;for(;Cs(s)&&!Hg(s);){ + let l=xo(s),c=Ux(s);!c&&l.position==='fixed'&&(i=null),(o?!c&&!i:!c&&l.position==='static'&&!!i&&['absolute','fixed'].includes(i.position)||im(s)&&!c&&bG(e,s))?n=n.filter(m=>m!==s):i=l,s=wf(s); + }return t.set(e,n),n; +}function _he(e){ + let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==='clippingAncestors'?Jhe(t,this._c):[].concat(r),n],l=s[0],c=s.reduce((f,m)=>{ + let v=mG(t,m,i);return f.top=Fi(v.top,f.top),f.right=xs(v.right,f.right),f.bottom=xs(v.bottom,f.bottom),f.left=Fi(v.left,f.left),f; + },mG(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}; +}function $he(e){ + return vG(e); +}function eve(e,t,r){ + let n=Ia(t),i=Ts(t),o=r==='fixed',s=Tf(e,!0,o,t),l={scrollLeft:0,scrollTop:0},c=gl(0);if(n||!n&&!o)if((yl(t)!=='body'||im(i))&&(l=Qg(t)),n){ + let f=Tf(t,!0,o,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop; + }else i&&(c.x=yG(i));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}; +}function hG(e,t){ + return!Ia(e)||xo(e).position==='fixed'?null:t?t(e):e.offsetParent; +}function AG(e,t){ + let r=Ji(e);if(!Ia(e))return r;let n=hG(e,t);for(;n&&fG(n)&&xo(n).position==='static';)n=hG(n,t);return n&&(yl(n)==='html'||yl(n)==='body'&&xo(n).position==='static'&&!Ux(n))?r:n||dG(e)||r; +}var tve=async function(e){ + let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||AG,o=this.getDimensions;return{reference:eve(t,await i(r),n),floating:{x:0,y:0,...await o(r)}}; +};function rve(e){ + return xo(e).direction==='rtl'; +}var xG={convertOffsetParentRelativeRectToViewportRelativeRect:Whe,getDocumentElement:Ts,getClippingRect:_he,getOffsetParent:AG,getElementRects:tve,getClientRects:Yhe,getDimensions:$he,getScale:om,isElement:Cs,isRTL:rve};function nve(e,t){ + let r=null,n,i=Ts(e);function o(){ + clearTimeout(n),r&&r.disconnect(),r=null; + }function s(l,c){ + l===void 0&&(l=!1),c===void 0&&(c=1),o();let{left:f,top:m,width:v,height:g}=e.getBoundingClientRect();if(l||t(),!v||!g)return;let y=zg(m),w=zg(i.clientWidth-(f+v)),T=zg(i.clientHeight-(m+g)),S=zg(f),b={rootMargin:-y+'px '+-w+'px '+-T+'px '+-S+'px',threshold:Fi(0,xs(1,c))||1},C=!0;function x(k){ + let P=k[0].intersectionRatio;if(P!==c){ + if(!C)return s();P?s(!1,P):n=setTimeout(()=>{ + s(!1,1e-7); + },100); + }C=!1; + }try{ + r=new IntersectionObserver(x,{...b,root:i.ownerDocument}); + }catch{ + r=new IntersectionObserver(x,b); + }r.observe(e); + }return s(!0),o; +}function yP(e,t,r,n){ + n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=='function',layoutShift:l=typeof IntersectionObserver=='function',animationFrame:c=!1}=n,f=gP(e),m=i||o?[...f?Ef(f):[],...Ef(t)]:[];m.forEach(A=>{ + i&&A.addEventListener('scroll',r,{passive:!0}),o&&A.addEventListener('resize',r); + });let v=f&&l?nve(f,r):null,g=-1,y=null;s&&(y=new ResizeObserver(A=>{ + let[b]=A;b&&b.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{ + y&&y.observe(t); + })),r(); + }),f&&!c&&y.observe(f),y.observe(t));let w,T=c?Tf(e):null;c&&S();function S(){ + let A=Tf(e);T&&(A.x!==T.x||A.y!==T.y||A.width!==T.width||A.height!==T.height)&&r(),T=A,w=requestAnimationFrame(S); + }return r(),()=>{ + m.forEach(A=>{ + i&&A.removeEventListener('scroll',r),o&&A.removeEventListener('resize',r); + }),v&&v(),y&&y.disconnect(),y=null,c&&cancelAnimationFrame(w); + }; +}var bP=(e,t,r)=>{ + let n=new Map,i={platform:xG,...r},o={...i.platform,_c:n};return lG(e,t,{...i,platform:o}); +};var fn=fe(Ee(),1),Hx=fe(Ee(),1),TG=fe(mf(),1),CG=e=>{ + function t(r){ + return{}.hasOwnProperty.call(r,'current'); + }return{name:'arrow',options:e,fn(r){ + let{element:n,padding:i}=typeof e=='function'?e(r):e;return n&&t(n)?n.current!=null?Rx({element:n.current,padding:i}).fn(r):{}:n?Rx({element:n,padding:i}).fn(r):{}; + }}; + },Gx=typeof document<'u'?Hx.useLayoutEffect:Hx.useEffect;function zx(e,t){ + if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=='function'&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=='object'){ + if(Array.isArray(e)){ + if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!zx(e[n],t[n]))return!1;return!0; + }if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){ + let o=i[n];if(!(o==='_owner'&&e.$$typeof)&&!zx(e[o],t[o]))return!1; + }return!0; + }return e!==e&&t!==t; +}function SG(e){ + return typeof window>'u'?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1; +}function wG(e,t){ + let r=SG(e);return Math.round(t*r)/r; +}function EG(e){ + let t=fn.useRef(e);return Gx(()=>{ + t.current=e; + }),t; +}function kG(e){ + e===void 0&&(e={});let{placement:t='bottom',strategy:r='absolute',middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[m,v]=fn.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=fn.useState(n);zx(g,n)||y(n);let[w,T]=fn.useState(null),[S,A]=fn.useState(null),b=fn.useCallback(J=>{ + J!=P.current&&(P.current=J,T(J)); + },[T]),C=fn.useCallback(J=>{ + J!==D.current&&(D.current=J,A(J)); + },[A]),x=o||w,k=s||S,P=fn.useRef(null),D=fn.useRef(null),N=fn.useRef(m),I=EG(c),V=EG(i),G=fn.useCallback(()=>{ + if(!P.current||!D.current)return;let J={placement:t,strategy:r,middleware:g};V.current&&(J.platform=V.current),bP(P.current,D.current,J).then(K=>{ + let ee={...K,isPositioned:!0};B.current&&!zx(N.current,ee)&&(N.current=ee,TG.flushSync(()=>{ + v(ee); + })); + }); + },[g,t,r,V]);Gx(()=>{ + f===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,v(J=>({...J,isPositioned:!1}))); + },[f]);let B=fn.useRef(!1);Gx(()=>(B.current=!0,()=>{ + B.current=!1; + }),[]),Gx(()=>{ + if(x&&(P.current=x),k&&(D.current=k),x&&k){ + if(I.current)return I.current(x,k,G);G(); + } + },[x,k,G,I]);let U=fn.useMemo(()=>({reference:P,floating:D,setReference:b,setFloating:C}),[b,C]),z=fn.useMemo(()=>({reference:x,floating:k}),[x,k]),j=fn.useMemo(()=>{ + let J={position:r,left:0,top:0};if(!z.floating)return J;let K=wG(z.floating,m.x),ee=wG(z.floating,m.y);return l?{...J,transform:'translate('+K+'px, '+ee+'px)',...SG(z.floating)>=1.5&&{willChange:'transform'}}:{position:r,left:K,top:ee}; + },[r,l,z.floating,m.x,m.y]);return fn.useMemo(()=>({...m,update:G,refs:U,elements:z,floatingStyles:j}),[m,G,U,z,j]); +}var OG=fe(Ee(),1);function NG(e){ + let[t,r]=(0,OG.useState)(void 0);return ds(()=>{ + if(e){ + r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(i=>{ + if(!Array.isArray(i)||!i.length)return;let o=i[0],s,l;if('borderBoxSize'in o){ + let c=o.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,l=f.blockSize; + }else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l}); + });return n.observe(e,{box:'border-box'}),()=>n.unobserve(e); + }else r(void 0); + },[e]),t; +}var DG='Popper',[LG,am]=Hi(DG),[ive,PG]=LG(DG),ove=e=>{ + let{__scopePopper:t,children:r}=e,[n,i]=(0,Rn.useState)(null);return(0,Rn.createElement)(ive,{scope:t,anchor:n,onAnchorChange:i},r); + },ave='PopperAnchor',sve=(0,Rn.forwardRef)((e,t)=>{ + let{__scopePopper:r,virtualRef:n,...i}=e,o=PG(ave,r),s=(0,Rn.useRef)(null),l=sr(t,s);return(0,Rn.useEffect)(()=>{ + o.onAnchorChange(n?.current||s.current); + }),n?null:(0,Rn.createElement)(cr.div,Ze({},i,{ref:l})); + }),RG='PopperContent',[lve,gLe]=LG(RG),uve=(0,Rn.forwardRef)((e,t)=>{ + var r,n,i,o,s,l,c,f;let{__scopePopper:m,side:v='bottom',sideOffset:g=0,align:y='center',alignOffset:w=0,arrowPadding:T=0,avoidCollisions:S=!0,collisionBoundary:A=[],collisionPadding:b=0,sticky:C='partial',hideWhenDetached:x=!1,updatePositionStrategy:k='optimized',onPlaced:P,...D}=e,N=PG(RG,m),[I,V]=(0,Rn.useState)(null),G=sr(t,pe=>V(pe)),[B,U]=(0,Rn.useState)(null),z=NG(B),j=(r=z?.width)!==null&&r!==void 0?r:0,J=(n=z?.height)!==null&&n!==void 0?n:0,K=v+(y!=='center'?'-'+y:''),ee=typeof b=='number'?b:{top:0,right:0,bottom:0,left:0,...b},re=Array.isArray(A)?A:[A],se=re.length>0,xe={padding:ee,boundary:re.filter(cve),altBoundary:se},{refs:Re,floatingStyles:Se,placement:ie,isPositioned:ye,middlewareData:me}=kG({strategy:'fixed',placement:K,whileElementsMounted:(...pe)=>yP(...pe,{animationFrame:k==='always'}),elements:{reference:N.anchor},middleware:[Fx({mainAxis:g+J,alignmentAxis:w}),S&&qx({mainAxis:!0,crossAxis:!1,limiter:C==='partial'?jx():void 0,...xe}),S&&Mx({...xe}),Vx({...xe,apply:({elements:pe,rects:Me,availableWidth:st,availableHeight:nt})=>{ + let{width:lt,height:wt}=Me.reference,Or=pe.floating.style;Or.setProperty('--radix-popper-available-width',`${st}px`),Or.setProperty('--radix-popper-available-height',`${nt}px`),Or.setProperty('--radix-popper-anchor-width',`${lt}px`),Or.setProperty('--radix-popper-anchor-height',`${wt}px`); + }}),B&&CG({element:B,padding:T}),fve({arrowWidth:j,arrowHeight:J}),x&&Ix({strategy:'referenceHidden',...xe})]}),[Oe,Ge]=MG(ie),He=Wn(P);ds(()=>{ + ye&&He?.(); + },[ye,He]);let dr=(i=me.arrow)===null||i===void 0?void 0:i.x,Ue=(o=me.arrow)===null||o===void 0?void 0:o.y,bt=((s=me.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[he,Fe]=(0,Rn.useState)();return ds(()=>{ + I&&Fe(window.getComputedStyle(I).zIndex); + },[I]),(0,Rn.createElement)('div',{ref:Re.setFloating,'data-radix-popper-content-wrapper':'',style:{...Se,transform:ye?Se.transform:'translate(0, -200%)',minWidth:'max-content',zIndex:he,'--radix-popper-transform-origin':[(l=me.transformOrigin)===null||l===void 0?void 0:l.x,(c=me.transformOrigin)===null||c===void 0?void 0:c.y].join(' ')},dir:e.dir},(0,Rn.createElement)(lve,{scope:m,placedSide:Oe,onArrowChange:U,arrowX:dr,arrowY:Ue,shouldHideArrow:bt},(0,Rn.createElement)(cr.div,Ze({'data-side':Oe,'data-align':Ge},D,{ref:G,style:{...D.style,animation:ye?void 0:'none',opacity:(f=me.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}})))); + });function cve(e){ + return e!==null; +}var fve=e=>({name:'transformOrigin',options:e,fn(t){ + var r,n,i,o,s;let{placement:l,rects:c,middlewareData:f}=t,v=((r=f.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,g=v?0:e.arrowWidth,y=v?0:e.arrowHeight,[w,T]=MG(l),S={start:'0%',center:'50%',end:'100%'}[T],A=((n=(i=f.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+g/2,b=((o=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+y/2,C='',x='';return w==='bottom'?(C=v?S:`${A}px`,x=`${-y}px`):w==='top'?(C=v?S:`${A}px`,x=`${c.floating.height+y}px`):w==='right'?(C=`${-y}px`,x=v?S:`${b}px`):w==='left'&&(C=`${c.floating.width+y}px`,x=v?S:`${b}px`),{data:{x:C,y:x}}; +}});function MG(e){ + let[t,r='center']=e.split('-');return[t,r]; +}var Qx=ove,Wx=sve,Yx=uve;var fr=fe(Ee(),1);var AP='rovingFocusGroup.onEntryFocus',dve={bubbles:!1,cancelable:!0},wP='RovingFocusGroup',[xP,IG,pve]=Sx(wP),[mve,EP]=Hi(wP,[pve]),[hve,vve]=mve(wP),gve=(0,fr.forwardRef)((e,t)=>(0,fr.createElement)(xP.Provider,{scope:e.__scopeRovingFocusGroup},(0,fr.createElement)(xP.Slot,{scope:e.__scopeRovingFocusGroup},(0,fr.createElement)(yve,Ze({},e,{ref:t}))))),yve=(0,fr.forwardRef)((e,t)=>{ + let{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:f,...m}=e,v=(0,fr.useRef)(null),g=sr(t,v),y=kx(o),[w=null,T]=hu({prop:s,defaultProp:l,onChange:c}),[S,A]=(0,fr.useState)(!1),b=Wn(f),C=IG(r),x=(0,fr.useRef)(!1),[k,P]=(0,fr.useState)(0);return(0,fr.useEffect)(()=>{ + let D=v.current;if(D)return D.addEventListener(AP,b),()=>D.removeEventListener(AP,b); + },[b]),(0,fr.createElement)(hve,{scope:r,orientation:n,dir:y,loop:i,currentTabStopId:w,onItemFocus:(0,fr.useCallback)(D=>T(D),[T]),onItemShiftTab:(0,fr.useCallback)(()=>A(!0),[]),onFocusableItemAdd:(0,fr.useCallback)(()=>P(D=>D+1),[]),onFocusableItemRemove:(0,fr.useCallback)(()=>P(D=>D-1),[])},(0,fr.createElement)(cr.div,Ze({tabIndex:S||k===0?-1:0,'data-orientation':n},m,{ref:g,style:{outline:'none',...e.style},onMouseDown:xt(e.onMouseDown,()=>{ + x.current=!0; + }),onFocus:xt(e.onFocus,D=>{ + let N=!x.current;if(D.target===D.currentTarget&&N&&!S){ + let I=new CustomEvent(AP,dve);if(D.currentTarget.dispatchEvent(I),!I.defaultPrevented){ + let V=C().filter(j=>j.focusable),G=V.find(j=>j.active),B=V.find(j=>j.id===w),z=[G,B,...V].filter(Boolean).map(j=>j.ref.current);FG(z); + } + }x.current=!1; + }),onBlur:xt(e.onBlur,()=>A(!1))}))); + }),bve='RovingFocusGroupItem',Ave=(0,fr.forwardRef)((e,t)=>{ + let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...s}=e,l=Ea(),c=o||l,f=vve(bve,r),m=f.currentTabStopId===c,v=IG(r),{onFocusableItemAdd:g,onFocusableItemRemove:y}=f;return(0,fr.useEffect)(()=>{ + if(n)return g(),()=>y(); + },[n,g,y]),(0,fr.createElement)(xP.ItemSlot,{scope:r,id:c,focusable:n,active:i},(0,fr.createElement)(cr.span,Ze({tabIndex:m?0:-1,'data-orientation':f.orientation},s,{ref:t,onMouseDown:xt(e.onMouseDown,w=>{ + n?f.onItemFocus(c):w.preventDefault(); + }),onFocus:xt(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:xt(e.onKeyDown,w=>{ + if(w.key==='Tab'&&w.shiftKey){ + f.onItemShiftTab();return; + }if(w.target!==w.currentTarget)return;let T=Eve(w,f.orientation,f.dir);if(T!==void 0){ + w.preventDefault();let A=v().filter(b=>b.focusable).map(b=>b.ref.current);if(T==='last')A.reverse();else if(T==='prev'||T==='next'){ + T==='prev'&&A.reverse();let b=A.indexOf(w.currentTarget);A=f.loop?Tve(A,b+1):A.slice(b+1); + }setTimeout(()=>FG(A)); + } + })}))); + }),xve={ArrowLeft:'prev',ArrowUp:'prev',ArrowRight:'next',ArrowDown:'next',PageUp:'first',Home:'first',PageDown:'last',End:'last'};function wve(e,t){ + return t!=='rtl'?e:e==='ArrowLeft'?'ArrowRight':e==='ArrowRight'?'ArrowLeft':e; +}function Eve(e,t,r){ + let n=wve(e.key,r);if(!(t==='vertical'&&['ArrowLeft','ArrowRight'].includes(n))&&!(t==='horizontal'&&['ArrowUp','ArrowDown'].includes(n)))return xve[n]; +}function FG(e){ + let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return; +}function Tve(e,t){ + return e.map((r,n)=>e[(t+n)%e.length]); +}var qG=gve,jG=Ave;var TP=['Enter',' '],Sve=['ArrowDown','PageUp','Home'],UG=['ArrowUp','PageDown','End'],kve=[...Sve,...UG],KLe={ltr:[...TP,'ArrowRight'],rtl:[...TP,'ArrowLeft']};var Kx='Menu',[CP,Ove,Nve]=Sx(Kx),[Cf,OP]=Hi(Kx,[Nve,am,EP]),NP=am(),BG=EP(),[Dve,Wg]=Cf(Kx),[Lve,DP]=Cf(Kx),Pve=e=>{ + let{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:s=!0}=e,l=NP(t),[c,f]=(0,Ye.useState)(null),m=(0,Ye.useRef)(!1),v=Wn(o),g=kx(i);return(0,Ye.useEffect)(()=>{ + let y=()=>{ + m.current=!0,document.addEventListener('pointerdown',w,{capture:!0,once:!0}),document.addEventListener('pointermove',w,{capture:!0,once:!0}); + },w=()=>m.current=!1;return document.addEventListener('keydown',y,{capture:!0}),()=>{ + document.removeEventListener('keydown',y,{capture:!0}),document.removeEventListener('pointerdown',w,{capture:!0}),document.removeEventListener('pointermove',w,{capture:!0}); + }; + },[]),(0,Ye.createElement)(Qx,l,(0,Ye.createElement)(Dve,{scope:t,open:r,onOpenChange:v,content:c,onContentChange:f},(0,Ye.createElement)(Lve,{scope:t,onClose:(0,Ye.useCallback)(()=>v(!1),[v]),isUsingKeyboardRef:m,dir:g,modal:s},n))); +};var Rve=(0,Ye.forwardRef)((e,t)=>{ + let{__scopeMenu:r,...n}=e,i=NP(r);return(0,Ye.createElement)(Wx,Ze({},i,n,{ref:t})); + }),GG='MenuPortal',[Mve,Ive]=Cf(GG,{forceMount:void 0}),Fve=e=>{ + let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=Wg(GG,t);return(0,Ye.createElement)(Mve,{scope:t,forceMount:r},(0,Ye.createElement)(Pa,{present:r||o.open},(0,Ye.createElement)($p,{asChild:!0,container:i},n))); + },ju='MenuContent',[qve,zG]=Cf(ju),jve=(0,Ye.forwardRef)((e,t)=>{ + let r=Ive(ju,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=Wg(ju,e.__scopeMenu),s=DP(ju,e.__scopeMenu);return(0,Ye.createElement)(CP.Provider,{scope:e.__scopeMenu},(0,Ye.createElement)(Pa,{present:n||o.open},(0,Ye.createElement)(CP.Slot,{scope:e.__scopeMenu},s.modal?(0,Ye.createElement)(Vve,Ze({},i,{ref:t})):(0,Ye.createElement)(Uve,Ze({},i,{ref:t}))))); + }),Vve=(0,Ye.forwardRef)((e,t)=>{ + let r=Wg(ju,e.__scopeMenu),n=(0,Ye.useRef)(null),i=sr(t,n);return(0,Ye.useEffect)(()=>{ + let o=n.current;if(o)return Ex(o); + },[]),(0,Ye.createElement)(HG,Ze({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:xt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})); + }),Uve=(0,Ye.forwardRef)((e,t)=>{ + let r=Wg(ju,e.__scopeMenu);return(0,Ye.createElement)(HG,Ze({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})); + }),HG=(0,Ye.forwardRef)((e,t)=>{ + let{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,disableOutsideScroll:w,...T}=e,S=Wg(ju,r),A=DP(ju,r),b=NP(r),C=BG(r),x=Ove(r),[k,P]=(0,Ye.useState)(null),D=(0,Ye.useRef)(null),N=sr(t,D,S.onContentChange),I=(0,Ye.useRef)(0),V=(0,Ye.useRef)(''),G=(0,Ye.useRef)(0),B=(0,Ye.useRef)(null),U=(0,Ye.useRef)('right'),z=(0,Ye.useRef)(0),j=w?Vg:Ye.Fragment,J=w?{as:bs,allowPinchZoom:!0}:void 0,K=re=>{ + var se,xe;let Re=V.current+re,Se=x().filter(He=>!He.disabled),ie=document.activeElement,ye=(se=Se.find(He=>He.ref.current===ie))===null||se===void 0?void 0:se.textValue,me=Se.map(He=>He.textValue),Oe=Xve(me,Re,ye),Ge=(xe=Se.find(He=>He.textValue===Oe))===null||xe===void 0?void 0:xe.ref.current;(function He(dr){ + V.current=dr,window.clearTimeout(I.current),dr!==''&&(I.current=window.setTimeout(()=>He(''),1e3)); + })(Re),Ge&&setTimeout(()=>Ge.focus()); + };(0,Ye.useEffect)(()=>()=>window.clearTimeout(I.current),[]),vx();let ee=(0,Ye.useCallback)(re=>{ + var se,xe;return U.current===((se=B.current)===null||se===void 0?void 0:se.side)&&Jve(re,(xe=B.current)===null||xe===void 0?void 0:xe.area); + },[]);return(0,Ye.createElement)(qve,{scope:r,searchRef:V,onItemEnter:(0,Ye.useCallback)(re=>{ + ee(re)&&re.preventDefault(); + },[ee]),onItemLeave:(0,Ye.useCallback)(re=>{ + var se;ee(re)||((se=D.current)===null||se===void 0||se.focus(),P(null)); + },[ee]),onTriggerLeave:(0,Ye.useCallback)(re=>{ + ee(re)&&re.preventDefault(); + },[ee]),pointerGraceTimerRef:G,onPointerGraceIntentChange:(0,Ye.useCallback)(re=>{ + B.current=re; + },[])},(0,Ye.createElement)(j,J,(0,Ye.createElement)(px,{asChild:!0,trapped:i,onMountAutoFocus:xt(o,re=>{ + var se;re.preventDefault(),(se=D.current)===null||se===void 0||se.focus(); + }),onUnmountAutoFocus:s},(0,Ye.createElement)(_p,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y},(0,Ye.createElement)(qG,Ze({asChild:!0},C,{dir:A.dir,orientation:'vertical',loop:n,currentTabStopId:k,onCurrentTabStopIdChange:P,onEntryFocus:xt(c,re=>{ + A.isUsingKeyboardRef.current||re.preventDefault(); + })}),(0,Ye.createElement)(Yx,Ze({role:'menu','aria-orientation':'vertical','data-state':Wve(S.open),'data-radix-menu-content':'',dir:A.dir},b,T,{ref:N,style:{outline:'none',...T.style},onKeyDown:xt(T.onKeyDown,re=>{ + let xe=re.target.closest('[data-radix-menu-content]')===re.currentTarget,Re=re.ctrlKey||re.altKey||re.metaKey,Se=re.key.length===1;xe&&(re.key==='Tab'&&re.preventDefault(),!Re&&Se&&K(re.key));let ie=D.current;if(re.target!==ie||!kve.includes(re.key))return;re.preventDefault();let me=x().filter(Oe=>!Oe.disabled).map(Oe=>Oe.ref.current);UG.includes(re.key)&&me.reverse(),Yve(me); + }),onBlur:xt(e.onBlur,re=>{ + re.currentTarget.contains(re.target)||(window.clearTimeout(I.current),V.current=''); + }),onPointerMove:xt(e.onPointerMove,kP(re=>{ + let se=re.target,xe=z.current!==re.clientX;if(re.currentTarget.contains(se)&&xe){ + let Re=re.clientX>z.current?'right':'left';U.current=Re,z.current=re.clientX; + } + }))}))))))); + });var SP='MenuItem',VG='menu.itemSelect',Bve=(0,Ye.forwardRef)((e,t)=>{ + let{disabled:r=!1,onSelect:n,...i}=e,o=(0,Ye.useRef)(null),s=DP(SP,e.__scopeMenu),l=zG(SP,e.__scopeMenu),c=sr(t,o),f=(0,Ye.useRef)(!1),m=()=>{ + let v=o.current;if(!r&&v){ + let g=new CustomEvent(VG,{bubbles:!0,cancelable:!0});v.addEventListener(VG,y=>n?.(y),{once:!0}),dx(v,g),g.defaultPrevented?f.current=!1:s.onClose(); + } + };return(0,Ye.createElement)(Gve,Ze({},i,{ref:c,disabled:r,onClick:xt(e.onClick,m),onPointerDown:v=>{ + var g;(g=e.onPointerDown)===null||g===void 0||g.call(e,v),f.current=!0; + },onPointerUp:xt(e.onPointerUp,v=>{ + var g;f.current||(g=v.currentTarget)===null||g===void 0||g.click(); + }),onKeyDown:xt(e.onKeyDown,v=>{ + let g=l.searchRef.current!=='';r||g&&v.key===' '||TP.includes(v.key)&&(v.currentTarget.click(),v.preventDefault()); + })})); + }),Gve=(0,Ye.forwardRef)((e,t)=>{ + let{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,s=zG(SP,r),l=BG(r),c=(0,Ye.useRef)(null),f=sr(t,c),[m,v]=(0,Ye.useState)(!1),[g,y]=(0,Ye.useState)('');return(0,Ye.useEffect)(()=>{ + let w=c.current;if(w){ + var T;y(((T=w.textContent)!==null&&T!==void 0?T:'').trim()); + } + },[o.children]),(0,Ye.createElement)(CP.ItemSlot,{scope:r,disabled:n,textValue:i??g},(0,Ye.createElement)(jG,Ze({asChild:!0},l,{focusable:!n}),(0,Ye.createElement)(cr.div,Ze({role:'menuitem','data-highlighted':m?'':void 0,'aria-disabled':n||void 0,'data-disabled':n?'':void 0},o,{ref:f,onPointerMove:xt(e.onPointerMove,kP(w=>{ + n?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus()); + })),onPointerLeave:xt(e.onPointerLeave,kP(w=>s.onItemLeave(w))),onFocus:xt(e.onFocus,()=>v(!0)),onBlur:xt(e.onBlur,()=>v(!1))})))); + });var zve='MenuRadioGroup',[XLe,ZLe]=Cf(zve,{value:void 0,onValueChange:()=>{}});var Hve='MenuItemIndicator',[JLe,_Le]=Cf(Hve,{checked:!1});var Qve='MenuSub',[$Le,ePe]=Cf(Qve);function Wve(e){ + return e?'open':'closed'; +}function Yve(e){ + let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return; +}function Kve(e,t){ + return e.map((r,n)=>e[(t+n)%e.length]); +}function Xve(e,t,r){ + let i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=Kve(e,Math.max(o,0));i.length===1&&(s=s.filter(f=>f!==r));let c=s.find(f=>f.toLowerCase().startsWith(i.toLowerCase()));return c!==r?c:void 0; +}function Zve(e,t){ + let{x:r,y:n}=e,i=!1;for(let o=0,s=t.length-1;on!=m>n&&r<(f-l)*(n-c)/(m-c)+l&&(i=!i); + }return i; +}function Jve(e,t){ + if(!t)return!1;let r={x:e.clientX,y:e.clientY};return Zve(r,t); +}function kP(e){ + return t=>t.pointerType==='mouse'?e(t):void 0; +}var QG=Pve,WG=Rve,YG=Fve,KG=jve;var XG=Bve;var ZG='DropdownMenu',[_ve,xPe]=Hi(ZG,[OP]),Yg=OP(),[$ve,JG]=_ve(ZG),ege=e=>{ + let{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,c=Yg(t),f=(0,Zn.useRef)(null),[m=!1,v]=hu({prop:i,defaultProp:o,onChange:s});return(0,Zn.createElement)($ve,{scope:t,triggerId:Ea(),triggerRef:f,contentId:Ea(),open:m,onOpenChange:v,onOpenToggle:(0,Zn.useCallback)(()=>v(g=>!g),[v]),modal:l},(0,Zn.createElement)(QG,Ze({},c,{open:m,onOpenChange:v,dir:n,modal:l}),r)); + },tge='DropdownMenuTrigger',rge=(0,Zn.forwardRef)((e,t)=>{ + let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=JG(tge,r),s=Yg(r);return(0,Zn.createElement)(WG,Ze({asChild:!0},s),(0,Zn.createElement)(cr.button,Ze({type:'button',id:o.triggerId,'aria-haspopup':'menu','aria-expanded':o.open,'aria-controls':o.open?o.contentId:void 0,'data-state':o.open?'open':'closed','data-disabled':n?'':void 0,disabled:n},i,{ref:Ap(t,o.triggerRef),onPointerDown:xt(e.onPointerDown,l=>{ + !n&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault()); + }),onKeyDown:xt(e.onKeyDown,l=>{ + n||(['Enter',' '].includes(l.key)&&o.onOpenToggle(),l.key==='ArrowDown'&&o.onOpenChange(!0),['Enter',' ','ArrowDown'].includes(l.key)&&l.preventDefault()); + })}))); + });var nge=e=>{ + let{__scopeDropdownMenu:t,...r}=e,n=Yg(t);return(0,Zn.createElement)(YG,Ze({},n,r)); + },ige='DropdownMenuContent',oge=(0,Zn.forwardRef)((e,t)=>{ + let{__scopeDropdownMenu:r,...n}=e,i=JG(ige,r),o=Yg(r),s=(0,Zn.useRef)(!1);return(0,Zn.createElement)(KG,Ze({id:i.contentId,'aria-labelledby':i.triggerId},o,n,{ref:t,onCloseAutoFocus:xt(e.onCloseAutoFocus,l=>{ + var c;s.current||(c=i.triggerRef.current)===null||c===void 0||c.focus(),s.current=!1,l.preventDefault(); + }),onInteractOutside:xt(e.onInteractOutside,l=>{ + let c=l.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,m=c.button===2||f;(!i.modal||m)&&(s.current=!0); + }),style:{...e.style,'--radix-dropdown-menu-content-transform-origin':'var(--radix-popper-transform-origin)','--radix-dropdown-menu-content-available-width':'var(--radix-popper-available-width)','--radix-dropdown-menu-content-available-height':'var(--radix-popper-available-height)','--radix-dropdown-menu-trigger-width':'var(--radix-popper-anchor-width)','--radix-dropdown-menu-trigger-height':'var(--radix-popper-anchor-height)'}})); + });var age=(0,Zn.forwardRef)((e,t)=>{ + let{__scopeDropdownMenu:r,...n}=e,i=Yg(r);return(0,Zn.createElement)(XG,Ze({},i,n,{ref:t})); +});var _G=ege,$G=rge,ez=nge,tz=oge;var rz=age;var f_=fe(oW(),1);var rR=function(e,t){ + return rR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){ + r.__proto__=n; + }||function(r,n){ + for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]); + },rR(e,t); +};function uw(e,t){ + if(typeof t!='function'&&t!==null)throw new TypeError('Class extends value '+String(t)+' is not a constructor or null');rR(e,t);function r(){ + this.constructor=e; + }e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r); +}var ve=function(){ + return ve=Object.assign||function(t){ + for(var r,n=1,i=arguments.length;n0)&&!(i=n.next()).done;)o.push(i.value); + }catch(l){ + s={error:l}; + }finally{ + try{ + i&&!i.done&&(r=n.return)&&r.call(n); + }finally{ + if(s)throw s.error; + } + }return o; +}function Jn(e,t,r){ + if(r||arguments.length===2)for(var n=0,i=t.length,o;n'u'||process.env===void 0?g0e:'production';var bl=function(e){ + return{isEnabled:function(t){ + return e.some(function(r){ + return!!t[r]; + }); + }}; + },Nf={measureLayout:bl(['layout','layoutId','drag']),animation:bl(['animate','exit','variants','whileHover','whileTap','whileFocus','whileDrag','whileInView']),exit:bl(['exit']),drag:bl(['drag','dragControls']),focus:bl(['whileFocus']),hover:bl(['whileHover','onHoverStart','onHoverEnd']),tap:bl(['whileTap','onTap','onTapStart','onTapCancel']),pan:bl(['onPan','onPanStart','onPanSessionStart','onPanEnd']),inView:bl(['whileInView','onViewportEnter','onViewportLeave'])};function aW(e){ + for(var t in e)e[t]!==null&&(t==='projectionNodeConstructor'?Nf.projectionNodeConstructor=e[t]:Nf[t].Component=e[t]); +}var Df=function(){},Gr=function(){};var sW=fe(Ee(),1),fw=(0,sW.createContext)({strict:!1});var cW=Object.keys(Nf),y0e=cW.length;function fW(e,t,r){ + var n=[],i=(0,uW.useContext)(fw);if(!t)return null;cw!=='production'&&r&&i.strict&&Gr(!1,'You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.');for(var o=0;o'u')return t;var r=new Map;return new Proxy(t,{get:function(n,i){ + return r.has(i)||r.set(i,t(i)),r.get(i); + }}); +}var RW=['animate','circle','defs','desc','ellipse','g','image','line','filter','marker','mask','metadata','path','pattern','polygon','polyline','rect','stop','svg','switch','symbol','text','tspan','use','view'];function fm(e){ + return typeof e!='string'||e.includes('-')?!1:!!(RW.indexOf(e)>-1||/[A-Z]/.test(e)); +}var rY=fe(Ee(),1);var QW=fe(Ee(),1);var dm={};function MW(e){ + Object.assign(dm,e); +}var bw=['','X','Y','Z'],C0e=['translate','scale','rotate','skew'],pm=['transformPerspective','x','y','z'];C0e.forEach(function(e){ + return bw.forEach(function(t){ + return pm.push(e+t); + }); +});function IW(e,t){ + return pm.indexOf(e)-pm.indexOf(t); +}var S0e=new Set(pm);function Ds(e){ + return S0e.has(e); +}var k0e=new Set(['originX','originY','originZ']);function Aw(e){ + return k0e.has(e); +}function xw(e,t){ + var r=t.layout,n=t.layoutId;return Ds(e)||Aw(e)||(r||n!==void 0)&&(!!dm[e]||e==='opacity'); +}var Mn=function(e){ + return!!(e!==null&&typeof e=='object'&&e.getVelocity); +};var O0e={x:'translateX',y:'translateY',z:'translateZ',transformPerspective:'perspective'};function FW(e,t,r,n){ + var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,f=c===void 0?!0:c,m='';o.sort(IW);for(var v=!1,g=o.length,y=0;yr=>Math.max(Math.min(r,t),e),Gu=e=>e%1?Number(e.toFixed(5)):e,zu=/(-)?([\d]*\.?[\d])+/g,Tw=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,VW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function xl(e){ + return typeof e=='string'; +}var wo={test:e=>typeof e=='number',parse:parseFloat,transform:e=>e},wl=Object.assign(Object.assign({},wo),{transform:Ew(0,1)}),mm=Object.assign(Object.assign({},wo),{default:1});var ey=e=>({test:t=>xl(t)&&t.endsWith(e)&&t.split(' ').length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qa=ey('deg'),yi=ey('%'),et=ey('px'),sR=ey('vh'),lR=ey('vw'),Cw=Object.assign(Object.assign({},yi),{parse:e=>yi.parse(e)/100,transform:e=>yi.transform(e*100)});var hm=(e,t)=>r=>!!(xl(r)&&VW.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Sw=(e,t,r)=>n=>{ + if(!xl(n))return n;let[i,o,s,l]=n.match(zu);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}; +};var Ls={test:hm('hsl','hue'),parse:Sw('hue','saturation','lightness'),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>'hsla('+Math.round(e)+', '+yi.transform(Gu(t))+', '+yi.transform(Gu(r))+', '+Gu(wl.transform(n))+')'};var N0e=Ew(0,255),kw=Object.assign(Object.assign({},wo),{transform:e=>Math.round(N0e(e))}),Jo={test:hm('rgb','red'),parse:Sw('red','green','blue'),transform:({red:e,green:t,blue:r,alpha:n=1})=>'rgba('+kw.transform(e)+', '+kw.transform(t)+', '+kw.transform(r)+', '+Gu(wl.transform(n))+')'};function D0e(e){ + let t='',r='',n='',i='';return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}; +}var vm={test:hm('#'),parse:D0e,transform:Jo.transform};var Zr={test:e=>Jo.test(e)||vm.test(e)||Ls.test(e),parse:e=>Jo.test(e)?Jo.parse(e):Ls.test(e)?Ls.parse(e):vm.parse(e),transform:e=>xl(e)?e:e.hasOwnProperty('red')?Jo.transform(e):Ls.transform(e)};var UW='${c}',BW='${n}';function L0e(e){ + var t,r,n,i;return isNaN(e)&&xl(e)&&((r=(t=e.match(zu))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(Tw))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0; +}function GW(e){ + typeof e=='number'&&(e=`${e}`);let t=[],r=0,n=e.match(Tw);n&&(r=n.length,e=e.replace(Tw,UW),t.push(...n.map(Zr.parse)));let i=e.match(zu);return i&&(e=e.replace(zu,BW),t.push(...i.map(wo.parse))),{values:t,numColors:r,tokenised:e}; +}function zW(e){ + return GW(e).values; +}function HW(e){ + let{values:t,numColors:r,tokenised:n}=GW(e),i=t.length;return o=>{ + let s=n;for(let l=0;ltypeof e=='number'?0:e;function R0e(e){ + let t=zW(e);return HW(e)(t.map(P0e)); +}var _n={test:L0e,parse:zW,createTransformer:HW,getAnimatableNone:R0e};var M0e=new Set(['brightness','contrast','saturate','opacity']);function I0e(e){ + let[t,r]=e.slice(0,-1).split('(');if(t==='drop-shadow')return e;let[n]=r.match(zu)||[];if(!n)return e;let i=r.replace(n,''),o=M0e.has(t)?1:0;return n!==r&&(o*=100),t+'('+o+i+')'; +}var F0e=/([a-z-]*)\(.*?\)/g,gm=Object.assign(Object.assign({},_n),{getAnimatableNone:e=>{ + let t=e.match(F0e);return t?t.map(I0e).join(' '):e; +}});var uR=ve(ve({},wo),{transform:Math.round});var Ow={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,size:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,rotate:qa,rotateX:qa,rotateY:qa,rotateZ:qa,scale:mm,scaleX:mm,scaleY:mm,scaleZ:mm,skew:qa,skewX:qa,skewY:qa,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:wl,originX:Cw,originY:Cw,originZ:et,zIndex:uR,fillOpacity:wl,strokeOpacity:wl,numOctaves:uR};function ym(e,t,r,n){ + var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,f=e.transformOrigin;c.length=0;var m=!1,v=!1,g=!0;for(var y in t){ + var w=t[y];if(ww(y)){ + s[y]=w;continue; + }var T=Ow[y],S=jW(w,T);if(Ds(y)){ + if(m=!0,l[y]=S,c.push(y),!g)continue;w!==((i=T.default)!==null&&i!==void 0?i:0)&&(g=!1); + }else Aw(y)?(f[y]=S,v=!0):o[y]=S; + }m?o.transform=FW(e,r,g,n):n?o.transform=n({},''):!t.transform&&o.transform&&(o.transform='none'),v&&(o.transformOrigin=qW(f)); +}var bm=function(){ + return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}; +};function cR(e,t,r){ + for(var n in t)!Mn(t[n])&&!xw(n,r)&&(e[n]=t[n]); +}function q0e(e,t,r){ + var n=e.transformTemplate;return(0,QW.useMemo)(function(){ + var i=bm();ym(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,s=i.style;return ve(ve({},o),s); + },[t]); +}function j0e(e,t,r){ + var n=e.style||{},i={};return cR(i,n,e),Object.assign(i,q0e(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i; +}function WW(e,t,r){ + var n={},i=j0e(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout='none',i.touchAction=e.drag===!0?'none':'pan-'.concat(e.drag==='x'?'y':'x')),n.style=i,n; +}var V0e=new Set(['initial','animate','exit','style','variants','transition','transformTemplate','transformValues','custom','inherit','layout','layoutId','layoutDependency','onLayoutAnimationStart','onLayoutAnimationComplete','onLayoutMeasure','onBeforeLayoutMeasure','onAnimationStart','onAnimationComplete','onUpdate','onDragStart','onDrag','onDragEnd','onMeasureDragConstraints','onDirectionLock','onDragTransitionEnd','drag','dragControls','dragListener','dragConstraints','dragDirectionLock','dragSnapToOrigin','_dragX','_dragY','dragElastic','dragMomentum','dragPropagation','dragTransition','whileDrag','onPan','onPanStart','onPanEnd','onPanSessionStart','onTap','onTapStart','onTapCancel','onHoverStart','onHoverEnd','whileFocus','whileTap','whileHover','whileInView','onViewportEnter','onViewportLeave','viewport','layoutScroll']);function ty(e){ + return V0e.has(e); +}var XW=function(e){ + return!ty(e); +};function Q0e(e){ + e&&(XW=function(t){ + return t.startsWith('on')?!ty(t):e(t); + }); +}try{ + Q0e(KW().default); +}catch{}function ZW(e,t,r){ + var n={};for(var i in e)(XW(i)||r===!0&&ty(i)||!t&&!ty(i)||e.draggable&&i.startsWith('onDrag'))&&(n[i]=e[i]);return n; +}var eY=fe(Ee(),1);function JW(e,t,r){ + return typeof e=='string'?e:et.transform(t+r*e); +}function _W(e,t,r){ + var n=JW(t,e.x,e.width),i=JW(r,e.y,e.height);return''.concat(n,' ').concat(i); +}var W0e={offset:'stroke-dashoffset',array:'stroke-dasharray'},Y0e={offset:'strokeDashoffset',array:'strokeDasharray'};function $W(e,t,r,n,i){ + r===void 0&&(r=1),n===void 0&&(n=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?W0e:Y0e;e[o.offset]=et.transform(-n);var s=et.transform(t),l=et.transform(r);e[o.array]=''.concat(s,' ').concat(l); +}function Am(e,t,r,n){ + var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,f=t.pathSpacing,m=f===void 0?1:f,v=t.pathOffset,g=v===void 0?0:v,y=Fr(t,['attrX','attrY','originX','originY','pathLength','pathSpacing','pathOffset']);ym(e,y,r,n),e.attrs=e.style,e.style={};var w=e.attrs,T=e.style,S=e.dimensions;w.transform&&(S&&(T.transform=w.transform),delete w.transform),S&&(s!==void 0||l!==void 0||T.transform)&&(T.transformOrigin=_W(S,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(w.x=i),o!==void 0&&(w.y=o),c!==void 0&&$W(w,c,m,g,!1); +}var Nw=function(){ + return ve(ve({},bm()),{attrs:{}}); +};function tY(e,t){ + var r=(0,eY.useMemo)(function(){ + var i=Nw();return Am(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),ve(ve({},i.attrs),{style:ve({},i.style)}); + },[t]);if(e.style){ + var n={};cR(n,e.style,e),r.style=ve(ve({},n),r.style); + }return r; +}function nY(e){ + e===void 0&&(e=!1);var t=function(r,n,i,o,s,l){ + var c=s.latestValues,f=fm(r)?tY:WW,m=f(n,c,l),v=ZW(n,typeof r=='string',e),g=ve(ve(ve({},v),m),{ref:o});return i&&(g['data-projection-id']=i),(0,rY.createElement)(r,g); + };return t; +}var K0e=/([a-z])([A-Z])/g,X0e='$1-$2',Dw=function(e){ + return e.replace(K0e,X0e).toLowerCase(); +};function Lw(e,t,r,n){ + var i=t.style,o=t.vars;Object.assign(e.style,i,n&&n.getProjectionStyles(r));for(var s in o)e.style.setProperty(s,o[s]); +}var Pw=new Set(['baseFrequency','diffuseConstant','kernelMatrix','kernelUnitLength','keySplines','keyTimes','limitingConeAngle','markerHeight','markerWidth','numOctaves','targetX','targetY','surfaceScale','specularConstant','specularExponent','stdDeviation','tableValues','viewBox','gradientTransform','pathLength']);function Rw(e,t,r,n){ + Lw(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(Pw.has(i)?i:Dw(i),t.attrs[i]); +}function xm(e){ + var t=e.style,r={};for(var n in t)(Mn(t[n])||xw(n,e))&&(r[n]=t[n]);return r; +}function Mw(e){ + var t=xm(e);for(var r in e)if(Mn(e[r])){ + var n=r==='x'||r==='y'?'attr'+r.toUpperCase():r;t[n]=e[r]; + }return t; +}var pR=fe(Ee(),1);function wm(e){ + return typeof e=='object'&&typeof e.start=='function'; +}var El=function(e){ + return Array.isArray(e); +};var iY=function(e){ + return!!(e&&typeof e=='object'&&e.mix&&e.toValue); + },Iw=function(e){ + return El(e)?e[e.length-1]||0:e; + };function Em(e){ + var t=Mn(e)?e.get():e;return iY(t)?t.toValue():t; +}function oY(e,t,r,n){ + var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:Z0e(t,r,n,i),renderState:o()};return s&&(l.mount=function(c){ + return s(t,c,l); + }),l; +}var Fw=function(e){ + return function(t,r){ + var n=(0,pR.useContext)(Lf),i=(0,pR.useContext)(Uu);return r?oY(e,t,n,i):gi(function(){ + return oY(e,t,n,i); + }); + }; +};function Z0e(e,t,r,n){ + var i={},o=r?.initial===!1,s=n(e);for(var l in s)i[l]=Em(s[l]);var c=e.initial,f=e.animate,m=Mf(e),v=hw(e);t&&v&&!m&&e.inherit!==!1&&(c??(c=t.initial),f??(f=t.animate));var g=o||c===!1,y=g?f:c;if(y&&typeof y!='boolean'&&!wm(y)){ + var w=Array.isArray(y)?y:[y];w.forEach(function(T){ + var S=oR(e,T);if(S){ + var A=S.transitionEnd;S.transition;var b=Fr(S,['transitionEnd','transition']);for(var C in b){ + var x=b[C];if(Array.isArray(x)){ + var k=g?x.length-1:0;x=x[k]; + }x!==null&&(i[C]=x); + }for(var C in A)i[C]=A[C]; + } + }); + }return i; +}var aY={useVisualState:Fw({scrapeMotionValuesFromProps:Mw,createRenderState:Nw,onMount:function(e,t,r){ + var n=r.renderState,i=r.latestValues;try{ + n.dimensions=typeof t.getBBox=='function'?t.getBBox():t.getBoundingClientRect(); + }catch{ + n.dimensions={x:0,y:0,width:0,height:0}; + }Am(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),Rw(t,n); +}})};var sY={useVisualState:Fw({scrapeMotionValuesFromProps:xm,createRenderState:bm})};function lY(e,t,r,n,i){ + var o=t.forwardMotionProps,s=o===void 0?!1:o,l=fm(e)?aY:sY;return ve(ve({},l),{preloadedFeatures:r,useRender:nY(s),createVisualElement:n,projectionNodeConstructor:i,Component:e}); +}var Ft;(function(e){ + e.Animate='animate',e.Hover='whileHover',e.Tap='whileTap',e.Drag='whileDrag',e.Focus='whileFocus',e.InView='whileInView',e.Exit='exit'; +})(Ft||(Ft={}));var uY=fe(Ee(),1);function If(e,t,r,n){ + return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){ + return e.removeEventListener(t,r); + }; +}function ry(e,t,r,n){ + (0,uY.useEffect)(function(){ + var i=e.current;if(r&&i)return If(i,t,r,n); + },[e,t,r,n]); +}function cY(e){ + var t=e.whileFocus,r=e.visualElement,n=function(){ + var o;(o=r.animationState)===null||o===void 0||o.setActive(Ft.Focus,!0); + },i=function(){ + var o;(o=r.animationState)===null||o===void 0||o.setActive(Ft.Focus,!1); + };ry(r,'focus',t?n:void 0),ry(r,'blur',t?i:void 0); +}function qw(e){ + return typeof PointerEvent<'u'&&e instanceof PointerEvent?e.pointerType==='mouse':e instanceof MouseEvent; +}function jw(e){ + var t=!!e.touches;return t; +}function J0e(e){ + return function(t){ + var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t); + }; +}var _0e={pageX:0,pageY:0};function $0e(e,t){ + t===void 0&&(t='page');var r=e.touches[0]||e.changedTouches[0],n=r||_0e;return{x:n[t+'X'],y:n[t+'Y']}; +}function ebe(e,t){ + return t===void 0&&(t='page'),{x:e[t+'X'],y:e[t+'Y']}; +}function ny(e,t){ + return t===void 0&&(t='page'),{point:jw(e)?$0e(e,t):ebe(e,t)}; +}var mR=function(e,t){ + t===void 0&&(t=!1);var r=function(n){ + return e(n,ny(n)); + };return t?J0e(r):r; +};var fY=function(){ + return Ns&&window.onpointerdown===null; + },dY=function(){ + return Ns&&window.ontouchstart===null; + },pY=function(){ + return Ns&&window.onmousedown===null; + };var tbe={pointerdown:'mousedown',pointermove:'mousemove',pointerup:'mouseup',pointercancel:'mousecancel',pointerover:'mouseover',pointerout:'mouseout',pointerenter:'mouseenter',pointerleave:'mouseleave'},rbe={pointerdown:'touchstart',pointermove:'touchmove',pointerup:'touchend',pointercancel:'touchcancel'};function mY(e){ + return fY()?e:dY()?rbe[e]:pY()?tbe[e]:e; +}function Tl(e,t,r,n){ + return If(e,mY(t),mR(r,t==='pointerdown'),n); +}function Ff(e,t,r,n){ + return ry(e,mY(t),r&&mR(r,t==='pointerdown'),n); +}function gY(e){ + var t=null;return function(){ + var r=function(){ + t=null; + };return t===null?(t=e,r):!1; + }; +}var hY=gY('dragHorizontal'),vY=gY('dragVertical');function hR(e){ + var t=!1;if(e==='y')t=vY();else if(e==='x')t=hY();else{ + var r=hY(),n=vY();r&&n?t=function(){ + r(),n(); + }:(r&&r(),n&&n()); + }return t; +}function Vw(){ + var e=hR(!0);return e?(e(),!1):!0; +}function yY(e,t,r){ + return function(n,i){ + var o;!qw(n)||Vw()||((o=e.animationState)===null||o===void 0||o.setActive(Ft.Hover,t),r?.(n,i)); + }; +}function bY(e){ + var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;Ff(i,'pointerenter',t||n?yY(i,!0,t):void 0,{passive:!t}),Ff(i,'pointerleave',r||n?yY(i,!1,r):void 0,{passive:!r}); +}var jR=fe(Ee(),1);var vR=function(e,t){ + return t?e===t?!0:vR(e,t.parentElement):!1; +};var AY=fe(Ee(),1);function Uw(e){ + return(0,AY.useEffect)(function(){ + return function(){ + return e(); + }; + },[]); +}function Bw(e,t){ + var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=='function')for(var i=0,n=Object.getOwnPropertySymbols(e);iMath.min(Math.max(r,e),t);var gR=.001,nbe=.01,xY=10,ibe=.05,obe=1;function wY({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){ + let i,o;Df(e<=xY*1e3,'Spring duration must be 10 seconds or less');let s=1-t;s=Hu(ibe,obe,s),e=Hu(nbe,xY,e/1e3),s<1?(i=f=>{ + let m=f*s,v=m*e,g=m-r,y=Gw(f,s),w=Math.exp(-v);return gR-g/y*w; + },o=f=>{ + let v=f*s*e,g=v*r+r,y=Math.pow(s,2)*Math.pow(f,2)*e,w=Math.exp(-v),T=Gw(Math.pow(f,2),s);return(-i(f)+gR>0?-1:1)*((g-y)*w)/T; + }):(i=f=>{ + let m=Math.exp(-f*e),v=(f-r)*e+1;return-gR+m*v; + },o=f=>{ + let m=Math.exp(-f*e),v=(r-f)*(e*e);return m*v; + });let l=5/e,c=sbe(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let f=Math.pow(c,2)*n;return{stiffness:f,damping:s*2*Math.sqrt(n*f),duration:e};} +}var abe=12;function sbe(e,t,r){ + let n=r;for(let i=1;ie[r]!==void 0); +}function cbe(e){ + let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!EY(e,ube)&&EY(e,lbe)){ + let r=wY(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0; + }return t; +}function zw(e){ + var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=Bw(e,['from','to','restSpeed','restDelta']);let s={done:!1,value:t},{stiffness:l,damping:c,mass:f,velocity:m,duration:v,isResolvedFromDuration:g}=cbe(o),y=TY,w=TY;function T(){ + let S=m?-(m/1e3):0,A=r-t,b=c/(2*Math.sqrt(l*f)),C=Math.sqrt(l/f)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),b<1){ + let x=Gw(C,b);y=k=>{ + let P=Math.exp(-b*C*k);return r-P*((S+b*C*A)/x*Math.sin(x*k)+A*Math.cos(x*k)); + },w=k=>{ + let P=Math.exp(-b*C*k);return b*C*P*(Math.sin(x*k)*(S+b*C*A)/x+A*Math.cos(x*k))-P*(Math.cos(x*k)*(S+b*C*A)-x*A*Math.sin(x*k)); + }; + }else if(b===1)y=x=>r-Math.exp(-C*x)*(A+(S+C*A)*x);else{ + let x=C*Math.sqrt(b*b-1);y=k=>{ + let P=Math.exp(-b*C*k),D=Math.min(x*k,300);return r-P*((S+b*C*A)*Math.sinh(D)+x*A*Math.cosh(D))/x; + }; + } + }return T(),{next:S=>{ + let A=y(S);if(g)s.done=S>=v;else{ + let b=w(S)*1e3,C=Math.abs(b)<=n,x=Math.abs(r-A)<=i;s.done=C&&x; + }return s.value=s.done?r:A,s; + },flipTarget:()=>{ + m=-m,[t,r]=[r,t],T(); + }}; +}zw.needsInterpolation=(e,t)=>typeof e=='string'||typeof t=='string';var TY=e=>0;var Cl=(e,t,r)=>{ + let n=t-e;return n===0?1:(r-e)/n; +};var Dt=(e,t,r)=>-r*e+r*t+e;function yR(e,t,r){ + return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e; +}function bR({hue:e,saturation:t,lightness:r,alpha:n}){ + e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{ + let l=r<.5?r*(1+t):r+t-r*t,c=2*r-l;i=yR(c,l,e+1/3),o=yR(c,l,e),s=yR(c,l,e-1/3); + }return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}; +}var fbe=(e,t,r)=>{ + let n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n)); + },dbe=[vm,Jo,Ls],CY=e=>dbe.find(t=>t.test(e)),SY=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Hw=(e,t)=>{ + let r=CY(e),n=CY(t);Gr(!!r,SY(e)),Gr(!!n,SY(t));let i=r.parse(e),o=n.parse(t);r===Ls&&(i=bR(i),r=Jo),n===Ls&&(o=bR(o),n=Jo);let s=Object.assign({},i);return l=>{ + for(let c in s)c!=='alpha'&&(s[c]=fbe(i[c],o[c],l));return s.alpha=Dt(i.alpha,o.alpha,l),r.transform(s); + }; + };var iy=e=>typeof e=='number';var pbe=(e,t)=>r=>t(e(r)),Sl=(...e)=>e.reduce(pbe);function OY(e,t){ + return iy(e)?r=>Dt(e,t,r):Zr.test(e)?Hw(e,t):xR(e,t); +}var AR=(e,t)=>{ + let r=[...e],n=r.length,i=e.map((o,s)=>OY(o,t[s]));return o=>{ + for(let s=0;s{ + let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=OY(e[i],t[i]));return i=>{ + for(let o in n)r[o]=n[o](i);return r; + }; + };function kY(e){ + let t=_n.parse(e),r=t.length,n=0,i=0,o=0;for(let s=0;s{ + let r=_n.createTransformer(t),n=kY(e),i=kY(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Sl(AR(n.parsed,i.parsed),r):(Df(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`); +};var mbe=(e,t)=>r=>Dt(e,t,r);function hbe(e){ + if(typeof e=='number')return mbe;if(typeof e=='string')return Zr.test(e)?Hw:xR;if(Array.isArray(e))return AR;if(typeof e=='object')return NY; +}function vbe(e,t,r){ + let n=[],i=r||hbe(e[0]),o=e.length-1;for(let s=0;sr(Cl(e,t,n)); +}function ybe(e,t){ + let r=e.length,n=r-1;return i=>{ + let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[n]&&(o=n-1,s=!0),!s){ + let c=1;for(;ci||c===n);c++);o=c-1; + }let l=Cl(e[o],e[o+1],i);return t[o](l); + }; +}function qf(e,t,{clamp:r=!0,ease:n,mixer:i}={}){ + let o=e.length;Gr(o===t.length,'Both input and output ranges must be the same length'),Gr(!n||!Array.isArray(n)||n.length===o-1,'Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values.'),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let s=vbe(t,n,i),l=o===2?gbe(e,s):ybe(e,s);return r?c=>l(Hu(e[0],e[o-1],c)):l; +}var oy=e=>t=>1-e(1-t),Qw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,DY=e=>t=>Math.pow(t,e),wR=e=>t=>t*t*((e+1)*t-e),LY=e=>{ + let t=wR(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1))); +};var PY=1.525,bbe=4/11,Abe=8/11,xbe=9/10,jf=e=>e,ay=DY(2),ER=oy(ay),sy=Qw(ay),Ww=e=>1-Math.sin(Math.acos(e)),Cm=oy(Ww),TR=Qw(Cm),ly=wR(PY),CR=oy(ly),SR=Qw(ly),kR=LY(PY),wbe=4356/361,Ebe=35442/1805,Tbe=16061/1805,Tm=e=>{ + if(e===1||e===0)return e;let t=e*e;return ee<.5?.5*(1-Tm(1-e*2)):.5*Tm(e*2-1)+.5;function Cbe(e,t){ + return e.map(()=>t||sy).splice(0,e.length-1); +}function Sbe(e){ + let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0); +}function kbe(e,t){ + return e.map(r=>r*t); +}function uy({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){ + let o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=kbe(n&&n.length===s.length?n:Sbe(s),i);function c(){ + return qf(l,s,{ease:Array.isArray(r)?r:Cbe(s,r)}); + }let f=c();return{next:m=>(o.value=f(m),o.done=m>=i,o),flipTarget:()=>{ + s.reverse(),f=c(); + }}; +}function RY({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){ + let s={done:!1,value:t},l=r*e,c=t+l,f=o===void 0?c:o(c);return f!==c&&(l=f-t),{next:m=>{ + let v=-l*Math.exp(-m/n);return s.done=!(v>i||v<-i),s.value=s.done?f:f+v,s; + },flipTarget:()=>{}}; +}var MY={keyframes:uy,spring:zw,decay:RY};function IY(e){ + if(Array.isArray(e.to))return uy;if(MY[e.type])return MY[e.type];let t=new Set(Object.keys(e));return t.has('ease')||t.has('duration')&&!t.has('dampingRatio')?uy:t.has('dampingRatio')||t.has('stiffness')||t.has('mass')||t.has('damping')||t.has('restSpeed')||t.has('restDelta')?zw:uy; +}var DR=16.666666666666668,Obe=typeof performance<'u'?()=>performance.now():()=>Date.now(),LR=typeof window<'u'?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Obe()),DR);function FY(e){ + let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,l={schedule:(c,f=!1,m=!1)=>{ + let v=m&&i,g=v?t:r;return f&&s.add(c),g.indexOf(c)===-1&&(g.push(c),v&&i&&(n=t.length)),c; + },cancel:c=>{ + let f=r.indexOf(c);f!==-1&&r.splice(f,1),s.delete(c); + },process:c=>{ + if(i){ + o=!0;return; + }if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let f=0;f(e[t]=FY(()=>cy=!0),e),{}),Dbe=fy.reduce((e,t)=>{ + let r=Yw[t];return e[t]=(n,i=!1,o=!1)=>(cy||Pbe(),r.schedule(n,i,o)),e; + },{}),Ps=fy.reduce((e,t)=>(e[t]=Yw[t].cancel,e),{}),Kw=fy.reduce((e,t)=>(e[t]=()=>Yw[t].process(Sm),e),{}),Lbe=e=>Yw[e].process(Sm),qY=e=>{ + cy=!1,Sm.delta=PR?DR:Math.max(Math.min(e-Sm.timestamp,Nbe),1),Sm.timestamp=e,RR=!0,fy.forEach(Lbe),RR=!1,cy&&(PR=!1,LR(qY)); + },Pbe=()=>{ + cy=!0,PR=!0,RR||LR(qY); + },Vf=()=>Sm,In=Dbe;function MR(e,t,r=0){ + return e-t-r; +}function jY(e,t,r=0,n=!0){ + return n?MR(t+-e,t,r):t-(e-t)+r; +}function VY(e,t,r,n){ + return n?e>=t+r:e<=-r; +}var Rbe=e=>{ + let t=({delta:r})=>e(r);return{start:()=>In.update(t,!0),stop:()=>Ps.update(t)}; +};function dy(e){ + var t,r,{from:n,autoplay:i=!0,driver:o=Rbe,elapsed:s=0,repeat:l=0,repeatType:c='loop',repeatDelay:f=0,onPlay:m,onStop:v,onComplete:g,onRepeat:y,onUpdate:w}=e,T=Bw(e,['from','autoplay','driver','elapsed','repeat','repeatType','repeatDelay','onPlay','onStop','onComplete','onRepeat','onUpdate']);let{to:S}=T,A,b=0,C=T.duration,x,k=!1,P=!0,D,N=IY(T);!((r=(t=N).needsInterpolation)===null||r===void 0)&&r.call(t,n,S)&&(D=qf([0,100],[n,S],{clamp:!1}),n=0,S=100);let I=N(Object.assign(Object.assign({},T),{from:n,to:S}));function V(){ + b++,c==='reverse'?(P=b%2===0,s=jY(s,C,f,P)):(s=MR(s,C,f),c==='mirror'&&I.flipTarget()),k=!1,y&&y(); + }function G(){ + A.stop(),g&&g(); + }function B(z){ + if(P||(z=-z),s+=z,!k){ + let j=I.next(Math.max(0,s));x=j.value,D&&(x=D(x)),k=P?j.done:s<=0; + }w?.(x),k&&(b===0&&(C??(C=s)),b{ + v?.(),A.stop(); + }}; +}function py(e,t){ + return t?e*(1e3/t):0; +}function IR({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:f,driver:m,onUpdate:v,onComplete:g,onStop:y}){ + let w;function T(C){ + return r!==void 0&&Cn; + }function S(C){ + return r===void 0?n:n===void 0||Math.abs(r-C){ + var k;v?.(x),(k=C.onUpdate)===null||k===void 0||k.call(C,x); + },onComplete:g,onStop:y})); + }function b(C){ + A(Object.assign({type:'spring',stiffness:s,damping:l,restDelta:c},C)); + }if(T(e))b({from:e,velocity:t,to:S(e)});else{ + let C=i*t+e;typeof f<'u'&&(C=f(C));let x=S(C),k=x===r?-1:1,P,D,N=I=>{ + P=D,D=I,t=py(I-P,Vf().delta),(k===1&&I>x||k===-1&&Iw?.stop()}; +}var my=e=>e.hasOwnProperty('x')&&e.hasOwnProperty('y');var FR=e=>my(e)&&e.hasOwnProperty('z');var Xw=(e,t)=>Math.abs(e-t);function hy(e,t){ + if(iy(e)&&iy(t))return Xw(e,t);if(my(e)&&my(t)){ + let r=Xw(e.x,t.x),n=Xw(e.y,t.y),i=FR(e)&&FR(t)?Xw(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2)); + } +}var UY=(e,t)=>1-3*t+3*e,BY=(e,t)=>3*t-6*e,GY=e=>3*e,_w=(e,t,r)=>((UY(t,r)*e+BY(t,r))*e+GY(t))*e,zY=(e,t,r)=>3*UY(t,r)*e*e+2*BY(t,r)*e+GY(t),Mbe=1e-7,Ibe=10;function Fbe(e,t,r,n,i){ + let o,s,l=0;do s=t+(r-t)/2,o=_w(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>Mbe&&++l=jbe?Vbe(s,v,e,r):g===0?v:Fbe(s,l,l+Zw,e,r); + }return s=>s===0||s===1?s:_w(o(s),t,n); +}function HY(e){ + var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||r||n||i,l=(0,jR.useRef)(!1),c=(0,jR.useRef)(null),f={passive:!(r||t||n||w)};function m(){ + var T;(T=c.current)===null||T===void 0||T.call(c),c.current=null; + }function v(){ + var T;return m(),l.current=!1,(T=o.animationState)===null||T===void 0||T.setActive(Ft.Tap,!1),!Vw(); + }function g(T,S){ + v()&&(vR(o.getInstance(),T.target)?t?.(T,S):n?.(T,S)); + }function y(T,S){ + v()&&n?.(T,S); + }function w(T,S){ + var A;m(),!l.current&&(l.current=!0,c.current=Sl(Tl(window,'pointerup',g,f),Tl(window,'pointercancel',y,f)),(A=o.animationState)===null||A===void 0||A.setActive(Ft.Tap,!0),r?.(T,S)); + }Ff(o,'pointerdown',s?w:void 0,f),Uw(m); +}var vy=fe(Ee(),1);var QY=new Set;function WY(e,t,r){ + e||QY.has(t)||(console.warn(t),r&&console.warn(r),QY.add(t)); +}var UR=new WeakMap,VR=new WeakMap,Ube=function(e){ + var t;(t=UR.get(e.target))===null||t===void 0||t(e); + },Bbe=function(e){ + e.forEach(Ube); + };function Gbe(e){ + var t=e.root,r=Fr(e,['root']),n=t||document;VR.has(n)||VR.set(n,{});var i=VR.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(Bbe,ve({root:t},r))),i[o]; +}function YY(e,t,r){ + var n=Gbe(t);return UR.set(e,r),n.observe(e),function(){ + UR.delete(e),n.unobserve(e); + }; +}function KY(e){ + var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=(0,vy.useRef)({hasEnteredView:!1,isInView:!1}),c=!!(r||n||i);s.once&&l.current.hasEnteredView&&(c=!1);var f=typeof IntersectionObserver>'u'?Qbe:Hbe;f(c,l.current,t,s); +}var zbe={some:0,all:1};function Hbe(e,t,r,n){ + var i=n.root,o=n.margin,s=n.amount,l=s===void 0?'some':s,c=n.once;(0,vy.useEffect)(function(){ + if(e){ + var f={root:i?.current,rootMargin:o,threshold:typeof l=='number'?l:zbe[l]},m=function(v){ + var g,y=v.isIntersecting;if(t.isInView!==y&&(t.isInView=y,!(c&&!y&&t.hasEnteredView))){ + y&&(t.hasEnteredView=!0),(g=r.animationState)===null||g===void 0||g.setActive(Ft.InView,y);var w=r.getProps(),T=y?w.onViewportEnter:w.onViewportLeave;T?.(v); + } + };return YY(r.getInstance(),f,m); + } + },[e,i,o,l]); +}function Qbe(e,t,r,n){ + var i=n.fallback,o=i===void 0?!0:i;(0,vy.useEffect)(function(){ + !e||!o||(cw!=='production'&&WY(!1,'IntersectionObserver not available on this device. whileInView animations will trigger on mount.'),requestAnimationFrame(function(){ + var s;t.hasEnteredView=!0;var l=r.getProps().onViewportEnter;l?.(null),(s=r.animationState)===null||s===void 0||s.setActive(Ft.InView,!0); + })); + },[e]); +}var ja=function(e){ + return function(t){ + return e(t),null; + }; +};var XY={inView:ja(KY),tap:ja(HY),focus:ja(cY),hover:ja(bY)};var yy=fe(Ee(),1);var $w=fe(Ee(),1);var Wbe=0,Ybe=function(){ + return Wbe++; + },ZY=function(){ + return gi(Ybe); + };function eE(){ + var e=(0,$w.useContext)(Uu);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=ZY();(0,$w.useEffect)(function(){ + return n(i); + },[]);var o=function(){ + return r?.(i); + };return!t&&r?[!1,o]:[!0]; +}function BR(e,t){ + if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n-1&&e.splice(r,1); +}function sK(e,t,r){ + var n=ht(e),i=n.slice(0),o=t<0?i.length+t:t;if(o>=0&&ob&&G,J=Array.isArray(V)?V:[V],K=J.reduce(o,{});B===!1&&(K={});var ee=I.prevResolvedValues,re=ee===void 0?{}:ee,se=ve(ve({},re),K),xe=function(ye){ + j=!0,S.delete(ye),I.needsAnimating[ye]=!0; + };for(var Re in se){ + var Se=K[Re],ie=re[Re];A.hasOwnProperty(Re)||(Se!==ie?El(Se)&&El(ie)?!BR(Se,ie)||z?xe(Re):I.protectedKeys[Re]=!0:Se!==void 0?xe(Re):S.add(Re):Se!==void 0&&S.has(Re)?xe(Re):I.protectedKeys[Re]=!0); + }I.prevProp=V,I.prevResolvedValues=K,I.isActive&&(A=ve(ve({},A),K)),i&&e.blockInitialAnimation&&(j=!1),j&&!U&&T.push.apply(T,Jn([],ht(J.map(function(ye){ + return{animation:ye,options:ve({type:N},m)}; + })),!1)); + },x=0;x=3;if(!(!y&&!w)){ + var T=g.point,S=Vf().timestamp;i.history.push(ve(ve({},T),{timestamp:S}));var A=i.handlers,b=A.onStart,C=A.onMove;y||(b&&b(i.lastMoveEvent,g),i.startEvent=i.lastMoveEvent),C&&C(i.lastMoveEvent,g); + } + } + },this.handlePointerMove=function(g,y){ + if(i.lastMoveEvent=g,i.lastMoveEventInfo=YR(y,i.transformPagePoint),qw(g)&&g.buttons===0){ + i.handlePointerUp(g,y);return; + }In.update(i.updatePoint,!0); + },this.handlePointerUp=function(g,y){ + i.end();var w=i.handlers,T=w.onEnd,S=w.onSessionEnd,A=KR(YR(y,i.transformPagePoint),i.history);i.startEvent&&T&&T(g,A),S&&S(g,A); + },!(jw(t)&&t.touches.length>1)){ + this.handlers=r,this.transformPagePoint=s;var l=ny(t),c=YR(l,this.transformPagePoint),f=c.point,m=Vf().timestamp;this.history=[ve(ve({},f),{timestamp:m})];var v=r.onSessionStart;v&&v(t,KR(c,this.history)),this.removeListeners=Sl(Tl(window,'pointermove',this.handlePointerMove),Tl(window,'pointerup',this.handlePointerUp),Tl(window,'pointercancel',this.handlePointerUp)); + } + }return e.prototype.updateHandlers=function(t){ + this.handlers=t; + },e.prototype.end=function(){ + this.removeListeners&&this.removeListeners(),Ps.update(this.updatePoint); + },e; +}();function YR(e,t){ + return t?{point:t(e.point)}:e; +}function gK(e,t){ + return{x:e.x-t.x,y:e.y-t.y}; +}function KR(e,t){ + var r=e.point;return{point:r,delta:gK(r,yK(t)),offset:gK(r,hAe(t)),velocity:vAe(t,.1)}; +}function hAe(e){ + return e[0]; +}function yK(e){ + return e[e.length-1]; +}function vAe(e,t){ + if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=yK(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>km(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s; +}function $o(e){ + return e.max-e.min; +}function bK(e,t,r){ + return t===void 0&&(t=0),r===void 0&&(r=.01),hy(e,t)i&&(e=r?Dt(i,e,r.max):Math.min(e,i)),e; +}function TK(e,t,r){ + return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}; +}function NK(e,t){ + var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:TK(e.x,n,o),y:TK(e.y,r,i)}; +}function CK(e,t){ + var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.minn?r=Cl(t.min,t.max-n,e.min):n>i&&(r=Cl(e.min,e.max-i,t.min)),Hu(0,1,r); +}function PK(e,t){ + var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r; +}var aE=.35;function RK(e){ + return e===void 0&&(e=aE),e===!1?e=0:e===!0&&(e=aE),{x:SK(e,'left','right'),y:SK(e,'top','bottom')}; +}function SK(e,t,r){ + return{min:kK(e,t),max:kK(e,r)}; +}function kK(e,t){ + var r;return typeof e=='number'?e:(r=e[t])!==null&&r!==void 0?r:0; +}var MK=function(){ + return{translate:0,scale:1,origin:0,originPoint:0}; + },Im=function(){ + return{x:MK(),y:MK()}; + },IK=function(){ + return{min:0,max:0}; + },Fn=function(){ + return{x:IK(),y:IK()}; + };function ea(e){ + return[e('x'),e('y')]; +}function sE(e){ + var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}; +}function FK(e){ + var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}; +}function qK(e,t){ + if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}; +}function XR(e){ + return e===void 0||e===1; +}function ZR(e){ + var t=e.scale,r=e.scaleX,n=e.scaleY;return!XR(t)||!XR(r)||!XR(n); +}function Rs(e){ + return ZR(e)||jK(e.x)||jK(e.y)||e.z||e.rotate||e.rotateX||e.rotateY; +}function jK(e){ + return e&&e!=='0%'; +}function by(e,t,r){ + var n=e-r,i=t*n;return r+i; +}function VK(e,t,r,n,i){ + return i!==void 0&&(e=by(e,i,n)),by(e,r,n)+t; +}function JR(e,t,r,n,i){ + t===void 0&&(t=0),r===void 0&&(r=1),e.min=VK(e.min,t,r,n,i),e.max=VK(e.max,t,r,n,i); +}function _R(e,t){ + var r=t.x,n=t.y;JR(e.x,r.translate,r.scale,r.originPoint),JR(e.y,n.translate,n.scale,n.originPoint); +}function BK(e,t,r,n){ + var i,o;n===void 0&&(n=!1);var s=r.length;if(s){ + t.x=t.y=1;for(var l,c,f=0;ft?r='y':Math.abs(e.x)>t&&(r='x'),r; +}function HK(e){ + var t=e.dragControls,r=e.visualElement,n=gi(function(){ + return new zK(r); + });(0,eM.useEffect)(function(){ + return t&&t.subscribe(n); + },[n,t]),(0,eM.useEffect)(function(){ + return n.addListeners(); + },[n]); +}var Fm=fe(Ee(),1);function QK(e){ + var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||r||n||i,l=(0,Fm.useRef)(null),c=(0,Fm.useContext)(Vu).transformPagePoint,f={onSessionStart:i,onStart:r,onMove:t,onEnd:function(v,g){ + l.current=null,n&&n(v,g); + }};(0,Fm.useEffect)(function(){ + l.current!==null&&l.current.updateHandlers(f); + });function m(v){ + l.current=new oE(v,f,{transformPagePoint:c}); + }Ff(o,'pointerdown',s&&m),Uw(function(){ + return l.current&&l.current.end(); + }); +}var WK={pan:ja(QK),drag:ja(HK)};var uE=['LayoutMeasure','BeforeLayoutMeasure','LayoutUpdate','ViewportBoxUpdate','Update','Render','AnimationComplete','LayoutAnimationComplete','AnimationStart','LayoutAnimationStart','SetAxisTarget','Unmount'];function YK(){ + var e=uE.map(function(){ + return new Qu; + }),t={},r={clearAllListeners:function(){ + return e.forEach(function(n){ + return n.clear(); + }); + },updatePropListeners:function(n){ + uE.forEach(function(i){ + var o,s='on'+i,l=n[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=r[s](l)); + }); + }};return e.forEach(function(n,i){ + r['on'+uE[i]]=function(o){ + return n.add(o); + },r['notify'+uE[i]]=function(){ + for(var o=[],s=0;s=0?window.pageYOffset:null,f=NAe(t,e,l);return o.length&&o.forEach(function(m){ + var v=ht(m,2),g=v[0],y=v[1];e.getValue(g).set(y); + }),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:n}; + }else return{target:t,transitionEnd:n}; + };function nX(e,t,r,n){ + return CAe(t)?DAe(e,t,r,n):{target:t,transitionEnd:n}; +}var iX=function(e,t,r,n){ + var i=ZK(e,t,n);return t=i.target,n=i.transitionEnd,nX(e,t,r,n); +};function LAe(e){ + return window.getComputedStyle(e); +}var iM={treeType:'dom',readValueFromInstance:function(e,t){ + if(Ds(t)){ + var r=Om(t);return r&&r.default||0; + }else{ + var n=LAe(e);return(ww(t)?n.getPropertyValue(t):n[t])||0; + } + },sortNodePosition:function(e,t){ + return e.compareDocumentPosition(t)&2?1:-1; + },getBaseTarget:function(e,t){ + var r;return(r=e.style)===null||r===void 0?void 0:r[t]; + },measureViewportBox:function(e,t){ + var r=t.transformPagePoint;return $R(e,r); + },resetTransform:function(e,t,r){ + var n=r.transformTemplate;t.style.transform=n?n({},''):'none',e.scheduleRender(); + },restoreTransform:function(e,t){ + e.style.transform=t.style.transform; + },removeValueFromRenderState:function(e,t){ + var r=t.vars,n=t.style;delete r[e],delete n[e]; + },makeTargetAnimatable:function(e,t,r,n){ + var i=r.transformValues;n===void 0&&(n=!0);var o=t.transition,s=t.transitionEnd,l=Fr(t,['transition','transitionEnd']),c=dK(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),n){ + fK(e,l,c);var f=iX(e,l,c,s);s=f.transitionEnd,l=f.target; + }return ve({transition:o,transitionEnd:s},l); + },scrapeMotionValuesFromProps:xm,build:function(e,t,r,n,i){ + e.isVisible!==void 0&&(t.style.visibility=e.isVisible?'visible':'hidden'),ym(t,r,n,i.transformTemplate); + },render:Lw},oX=cE(iM);var aX=cE(ve(ve({},iM),{getBaseTarget:function(e,t){ + return e[t]; +},readValueFromInstance:function(e,t){ + var r;return Ds(t)?((r=Om(t))===null||r===void 0?void 0:r.default)||0:(t=Pw.has(t)?t:Dw(t),e.getAttribute(t)); +},scrapeMotionValuesFromProps:Mw,build:function(e,t,r,n,i){ + Am(t,r,n,i.transformTemplate); +},render:Rw}));var sX=function(e,t){ + return fm(e)?aX(t,{enableHardwareAcceleration:!1}):oX(t,{enableHardwareAcceleration:!0}); +};var jm=fe(Ee(),1);function lX(e,t){ + return t.max===t.min?0:e/(t.max-t.min)*100; +}var qm={correct:function(e,t){ + if(!t.target)return e;if(typeof e=='string')if(et.test(e))e=parseFloat(e);else return e;var r=lX(e,t.target.x),n=lX(e,t.target.y);return''.concat(r,'% ').concat(n,'%'); +}};var uX='_$css',cX={correct:function(e,t){ + var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes('var('),s=[];o&&(e=e.replace(nM,function(T){ + return s.push(T),uX; + }));var l=_n.parse(e);if(l.length>5)return i;var c=_n.createTransformer(e),f=typeof l[0]!='number'?1:0,m=n.x.scale*r.x,v=n.y.scale*r.y;l[0+f]/=m,l[1+f]/=v;var g=Dt(m,v,.5);typeof l[2+f]=='number'&&(l[2+f]/=g),typeof l[3+f]=='number'&&(l[3+f]/=g);var y=c(l);if(o){ + var w=0;y=y.replace(uX,function(){ + var T=s[w];return w++,T; + }); + }return y; +}};var PAe=function(e){ + uw(t,e);function t(){ + return e!==null&&e.apply(this,arguments)||this; + }return t.prototype.componentDidMount=function(){ + var r=this,n=this.props,i=n.visualElement,o=n.layoutGroup,s=n.switchLayoutGroup,l=n.layoutId,c=i.projection;MW(RAe),c&&(o?.group&&o.group.add(c),s?.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener('animationComplete',function(){ + r.safeToRemove(); + }),c.setOptions(ve(ve({},c.options),{onExitComplete:function(){ + return r.safeToRemove(); + }}))),Bu.hasEverUpdated=!0; + },t.prototype.getSnapshotBeforeUpdate=function(r){ + var n=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,f=s.projection;return f&&(f.isPresent=c,l||r.layoutDependency!==o||o===void 0?f.willUpdate():this.safeToRemove(),r.isPresent!==c&&(c?f.promote():f.relegate()||In.postRender(function(){ + var m;!((m=f.getStack())===null||m===void 0)&&m.members.length||n.safeToRemove(); + }))),null; + },t.prototype.componentDidUpdate=function(){ + var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove()); + },t.prototype.componentWillUnmount=function(){ + var r=this.props,n=r.visualElement,i=r.layoutGroup,o=r.switchLayoutGroup,s=n.projection;s&&(s.scheduleCheckAfterUnmount(),i?.group&&i.group.remove(s),o?.deregister&&o.deregister(s)); + },t.prototype.safeToRemove=function(){ + var r=this.props.safeToRemove;r?.(); + },t.prototype.render=function(){ + return null; + },t; +}(jm.default.Component);function fX(e){ + var t=ht(eE(),2),r=t[0],n=t[1],i=(0,jm.useContext)(gw);return jm.default.createElement(PAe,ve({},e,{layoutGroup:i,switchLayoutGroup:(0,jm.useContext)(yw),isPresent:r,safeToRemove:n})); +}var RAe={borderRadius:ve(ve({},qm),{applyTo:['borderTopLeftRadius','borderTopRightRadius','borderBottomLeftRadius','borderBottomRightRadius']}),borderTopLeftRadius:qm,borderTopRightRadius:qm,borderBottomLeftRadius:qm,borderBottomRightRadius:qm,boxShadow:cX};var dX={measureLayout:fX};function pX(e,t,r){ + r===void 0&&(r={});var n=Mn(e)?e:_o(e);return Nm('',n,t,r),{stop:function(){ + return n.stop(); + },isAnimating:function(){ + return n.isAnimating(); + }}; +}var gX=['TopLeft','TopRight','BottomLeft','BottomRight'],MAe=gX.length,mX=function(e){ + return typeof e=='string'?parseFloat(e):e; + },hX=function(e){ + return typeof e=='number'||et.test(e); + };function yX(e,t,r,n,i,o){ + var s,l,c,f;i?(e.opacity=Dt(0,(s=r.opacity)!==null&&s!==void 0?s:1,IAe(n)),e.opacityExit=Dt((l=t.opacity)!==null&&l!==void 0?l:1,0,FAe(n))):o&&(e.opacity=Dt((c=t.opacity)!==null&&c!==void 0?c:1,(f=r.opacity)!==null&&f!==void 0?f:1,n));for(var m=0;mt?1:r(Cl(e,t,n)); + }; +}function AX(e,t){ + e.min=t.min,e.max=t.max; +}function ta(e,t){ + AX(e.x,t.x),AX(e.y,t.y); +}function xX(e,t,r,n,i){ + return e-=t,e=by(e,1/r,n),i!==void 0&&(e=by(e,1/i,n)),e; +}function qAe(e,t,r,n,i,o,s){ + if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),o===void 0&&(o=e),s===void 0&&(s=e),yi.test(t)){ + t=parseFloat(t);var l=Dt(s.min,s.max,t/100);t=l-s.min; + }if(typeof t=='number'){ + var c=Dt(o.min,o.max,n);e===o&&(c-=t),e.min=xX(e.min,t,r,c,i),e.max=xX(e.max,t,r,c,i); + } +}function wX(e,t,r,n,i){ + var o=ht(r,3),s=o[0],l=o[1],c=o[2];qAe(e,t[s],t[l],t[c],t.scale,n,i); +}var jAe=['x','scaleX','originX'],VAe=['y','scaleY','originY'];function oM(e,t,r,n){ + wX(e.x,t,jAe,r?.x,n?.x),wX(e.y,t,VAe,r?.y,n?.y); +}function EX(e){ + return e.translate===0&&e.scale===1; +}function aM(e){ + return EX(e.x)&&EX(e.y); +}function sM(e,t){ + return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max; +}var TX=function(){ + function e(){ + this.members=[]; + }return e.prototype.add=function(t){ + Dm(this.members,t),t.scheduleRender(); + },e.prototype.remove=function(t){ + if(Lm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){ + var r=this.members[this.members.length-1];r&&this.promote(r); + } + },e.prototype.relegate=function(t){ + var r=this.members.findIndex(function(s){ + return t===s; + });if(r===0)return!1;for(var n,i=r;i>=0;i--){ + var o=this.members[i];if(o.isPresent!==!1){ + n=o;break; + } + }return n?(this.promote(n),!0):!1; + },e.prototype.promote=function(t,r){ + var n,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){ + i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide(); + } + },e.prototype.exitAnimationComplete=function(){ + this.members.forEach(function(t){ + var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o); + }); + },e.prototype.scheduleRender=function(){ + this.members.forEach(function(t){ + t.instance&&t.scheduleRender(!1); + }); + },e.prototype.removeLeadSnapshot=function(){ + this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0); + },e; +}();var UAe='translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)';function lM(e,t,r){ + var n=e.x.translate/t.x,i=e.y.translate/t.y,o='translate3d('.concat(n,'px, ').concat(i,'px, 0) ');if(o+='scale('.concat(1/t.x,', ').concat(1/t.y,') '),r){ + var s=r.rotate,l=r.rotateX,c=r.rotateY;s&&(o+='rotate('.concat(s,'deg) ')),l&&(o+='rotateX('.concat(l,'deg) ')),c&&(o+='rotateY('.concat(c,'deg) ')); + }var f=e.x.scale*t.x,m=e.y.scale*t.y;return o+='scale('.concat(f,', ').concat(m,')'),o===UAe?'none':o; +}var CX=function(e,t){ + return e.depth-t.depth; +};var SX=function(){ + function e(){ + this.children=[],this.isDirty=!1; + }return e.prototype.add=function(t){ + Dm(this.children,t),this.isDirty=!0; + },e.prototype.remove=function(t){ + Lm(this.children,t),this.isDirty=!0; + },e.prototype.forEach=function(t){ + this.isDirty&&this.children.sort(CX),this.isDirty=!1,this.children.forEach(t); + },e; +}();var kX=1e3;function dE(e){ + var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){ + function s(l,c,f){ + var m=this;c===void 0&&(c={}),f===void 0&&(f=r?.()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ + m.isUpdating&&(m.isUpdating=!1,m.clearAllSnapshots()); + },this.updateProjection=function(){ + m.nodes.forEach(WAe),m.nodes.forEach(YAe); + },this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?Jn(Jn([],ht(f.path),!1),[f],!1):[],this.parent=f,this.depth=f?f.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var v=0;v=0;n--)if(e.path[n].instance){ + r=e.path[n];break; + }var i=r&&r!==e.root?r.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0); +}function LX(e){ + e.min=Math.round(e.min),e.max=Math.round(e.max); +}function PX(e){ + LX(e.x),LX(e.y); +}var RX=dE({attachResizeListener:function(e,t){ + return If(e,'resize',t); +},measureScroll:function(){ + return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}; +},checkIsScrollRoot:function(){ + return!0; +}});var uM={current:void 0},MX=dE({measureScroll:function(e){ + return{x:e.scrollLeft,y:e.scrollTop}; +},defaultParent:function(){ + if(!uM.current){ + var e=new RX(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),uM.current=e; + }return uM.current; +},resetTransform:function(e,t){ + e.style.transform=t??'none'; +},checkIsScrollRoot:function(e){ + return window.getComputedStyle(e).position==='fixed'; +}});var e1e=ve(ve(ve(ve({},vK),XY),WK),dX),pE=PW(function(e,t){ + return lY(e,t,e1e,sX,MX); +});var cM=fe(Ee(),1),Vm=fe(Ee(),1);var IX=fe(Ee(),1),mE=(0,IX.createContext)(null);function FX(e,t,r,n){ + if(!n)return e;var i=e.findIndex(function(m){ + return m.value===t; + });if(i===-1)return e;var o=n>0?1:-1,s=e[i+o];if(!s)return e;var l=e[i],c=s.layout,f=Dt(c.min,c.max,.5);return o===1&&l.layout.max+r>f||o===-1&&l.layout.min+r{ + let{__scopeTooltip:t,delayDuration:r=l1e,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,[s,l]=(0,_e.useState)(!0),c=(0,_e.useRef)(!1),f=(0,_e.useRef)(0);return(0,_e.useEffect)(()=>{ + let m=f.current;return()=>window.clearTimeout(m); + },[]),(0,_e.createElement)(u1e,{scope:t,isOpenDelayed:s,delayDuration:r,onOpen:(0,_e.useCallback)(()=>{ + window.clearTimeout(f.current),l(!1); + },[]),onClose:(0,_e.useCallback)(()=>{ + window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),n); + },[n]),isPointerInTransitRef:c,onPointerInTransitChange:(0,_e.useCallback)(m=>{ + c.current=m; + },[]),disableHoverableContent:i},o); + },mM='Tooltip',[f1e,xy]=gE(mM),d1e=e=>{ + let{__scopeTooltip:t,children:r,open:n,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:s,delayDuration:l}=e,c=pM(mM,e.__scopeTooltip),f=dM(t),[m,v]=(0,_e.useState)(null),g=Ea(),y=(0,_e.useRef)(0),w=s??c.disableHoverableContent,T=l??c.delayDuration,S=(0,_e.useRef)(!1),[A=!1,b]=hu({prop:n,defaultProp:i,onChange:D=>{ + D?(c.onOpen(),document.dispatchEvent(new CustomEvent(fM))):c.onClose(),o?.(D); + }}),C=(0,_e.useMemo)(()=>A?S.current?'delayed-open':'instant-open':'closed',[A]),x=(0,_e.useCallback)(()=>{ + window.clearTimeout(y.current),S.current=!1,b(!0); + },[b]),k=(0,_e.useCallback)(()=>{ + window.clearTimeout(y.current),b(!1); + },[b]),P=(0,_e.useCallback)(()=>{ + window.clearTimeout(y.current),y.current=window.setTimeout(()=>{ + S.current=!0,b(!0); + },T); + },[T,b]);return(0,_e.useEffect)(()=>()=>window.clearTimeout(y.current),[]),(0,_e.createElement)(Qx,f,(0,_e.createElement)(f1e,{scope:t,contentId:g,open:A,stateAttribute:C,trigger:m,onTriggerChange:v,onTriggerEnter:(0,_e.useCallback)(()=>{ + c.isOpenDelayed?P():x(); + },[c.isOpenDelayed,P,x]),onTriggerLeave:(0,_e.useCallback)(()=>{ + w?k():window.clearTimeout(y.current); + },[k,w]),onOpen:x,onClose:k,disableHoverableContent:w},r)); + },WX='TooltipTrigger',p1e=(0,_e.forwardRef)((e,t)=>{ + let{__scopeTooltip:r,...n}=e,i=xy(WX,r),o=pM(WX,r),s=dM(r),l=(0,_e.useRef)(null),c=sr(t,l,i.onTriggerChange),f=(0,_e.useRef)(!1),m=(0,_e.useRef)(!1),v=(0,_e.useCallback)(()=>f.current=!1,[]);return(0,_e.useEffect)(()=>()=>document.removeEventListener('pointerup',v),[v]),(0,_e.createElement)(Wx,Ze({asChild:!0},s),(0,_e.createElement)(cr.button,Ze({'aria-describedby':i.open?i.contentId:void 0,'data-state':i.stateAttribute},n,{ref:c,onPointerMove:xt(e.onPointerMove,g=>{ + g.pointerType!=='touch'&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0); + }),onPointerLeave:xt(e.onPointerLeave,()=>{ + i.onTriggerLeave(),m.current=!1; + }),onPointerDown:xt(e.onPointerDown,()=>{ + f.current=!0,document.addEventListener('pointerup',v,{once:!0}); + }),onFocus:xt(e.onFocus,()=>{ + f.current||i.onOpen(); + }),onBlur:xt(e.onBlur,i.onClose),onClick:xt(e.onClick,i.onClose)}))); + }),YX='TooltipPortal',[m1e,h1e]=gE(YX,{forceMount:void 0}),v1e=e=>{ + let{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=xy(YX,t);return(0,_e.createElement)(m1e,{scope:t,forceMount:r},(0,_e.createElement)(Pa,{present:r||o.open},(0,_e.createElement)($p,{asChild:!0,container:i},n))); + },Ay='TooltipContent',g1e=(0,_e.forwardRef)((e,t)=>{ + let r=h1e(Ay,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i='top',...o}=e,s=xy(Ay,e.__scopeTooltip);return(0,_e.createElement)(Pa,{present:n||s.open},s.disableHoverableContent?(0,_e.createElement)(KX,Ze({side:i},o,{ref:t})):(0,_e.createElement)(y1e,Ze({side:i},o,{ref:t}))); + }),y1e=(0,_e.forwardRef)((e,t)=>{ + let r=xy(Ay,e.__scopeTooltip),n=pM(Ay,e.__scopeTooltip),i=(0,_e.useRef)(null),o=sr(t,i),[s,l]=(0,_e.useState)(null),{trigger:c,onClose:f}=r,m=i.current,{onPointerInTransitChange:v}=n,g=(0,_e.useCallback)(()=>{ + l(null),v(!1); + },[v]),y=(0,_e.useCallback)((w,T)=>{ + let S=w.currentTarget,A={x:w.clientX,y:w.clientY},b=A1e(A,S.getBoundingClientRect()),C=x1e(A,b),x=w1e(T.getBoundingClientRect()),k=T1e([...C,...x]);l(k),v(!0); + },[v]);return(0,_e.useEffect)(()=>()=>g(),[g]),(0,_e.useEffect)(()=>{ + if(c&&m){ + let w=S=>y(S,m),T=S=>y(S,c);return c.addEventListener('pointerleave',w),m.addEventListener('pointerleave',T),()=>{ + c.removeEventListener('pointerleave',w),m.removeEventListener('pointerleave',T); + }; + } + },[c,m,y,g]),(0,_e.useEffect)(()=>{ + if(s){ + let w=T=>{ + let S=T.target,A={x:T.clientX,y:T.clientY},b=c?.contains(S)||m?.contains(S),C=!E1e(A,s);b?g():C&&(g(),f()); + };return document.addEventListener('pointermove',w),()=>document.removeEventListener('pointermove',w); + } + },[c,m,s,f,g]),(0,_e.createElement)(KX,Ze({},e,{ref:o})); + }),[b1e,iVe]=gE(mM,{isInside:!1}),KX=(0,_e.forwardRef)((e,t)=>{ + let{__scopeTooltip:r,children:n,'aria-label':i,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,c=xy(Ay,r),f=dM(r),{onClose:m}=c;return(0,_e.useEffect)(()=>(document.addEventListener(fM,m),()=>document.removeEventListener(fM,m)),[m]),(0,_e.useEffect)(()=>{ + if(c.trigger){ + let v=g=>{ + let y=g.target;y!=null&&y.contains(c.trigger)&&m(); + };return window.addEventListener('scroll',v,{capture:!0}),()=>window.removeEventListener('scroll',v,{capture:!0}); + } + },[c.trigger,m]),(0,_e.createElement)(_p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:v=>v.preventDefault(),onDismiss:m},(0,_e.createElement)(Yx,Ze({'data-state':c.stateAttribute},f,l,{ref:t,style:{...l.style,'--radix-tooltip-content-transform-origin':'var(--radix-popper-transform-origin)','--radix-tooltip-content-available-width':'var(--radix-popper-available-width)','--radix-tooltip-content-available-height':'var(--radix-popper-available-height)','--radix-tooltip-trigger-width':'var(--radix-popper-anchor-width)','--radix-tooltip-trigger-height':'var(--radix-popper-anchor-height)'}}),(0,_e.createElement)(XL,null,n),(0,_e.createElement)(b1e,{scope:r,isInside:!0},(0,_e.createElement)(Cx,{id:c.contentId,role:'tooltip'},i||n)))); + });function A1e(e,t){ + let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){ + case o:return'left';case i:return'right';case r:return'top';case n:return'bottom';default:throw new Error('unreachable'); + } +}function x1e(e,t,r=5){ + let n=[];switch(t){ + case'top':n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case'bottom':n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case'left':n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case'right':n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break; + }return n; +}function w1e(e){ + let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]; +}function E1e(e,t){ + let{x:r,y:n}=e,i=!1;for(let o=0,s=t.length-1;on!=m>n&&r<(f-l)*(n-c)/(m-c)+l&&(i=!i); + }return i; +}function T1e(e){ + let t=e.slice();return t.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),C1e(t); +}function C1e(e){ + if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){ + let o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break; + }t.push(i); + }t.pop();let r=[];for(let n=e.length-1;n>=0;n--){ + let i=e[n];for(;r.length>=2;){ + let o=r[r.length-1],s=r[r.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))r.pop();else break; + }r.push(i); + }return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r); +}var XX=c1e,ZX=d1e,JX=p1e,_X=v1e,$X=g1e;var yt=fe(Ee(),1);var tZ=fe(Ee(),1);var yE=fe(Ee(),1);var k1e=Object.defineProperty,O1e=(e,t,r)=>t in e?k1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hM=(e,t,r)=>(O1e(e,typeof t!='symbol'?t+'':t,r),r),vM=class{ + constructor(){ + hM(this,'current',this.detect()),hM(this,'handoffState','pending'),hM(this,'currentId',0); + }set(t){ + this.current!==t&&(this.handoffState='pending',this.currentId=0,this.current=t); + }reset(){ + this.set(this.detect()); + }nextId(){ + return++this.currentId; + }get isServer(){ + return this.current==='server'; + }get isClient(){ + return this.current==='client'; + }detect(){ + return typeof window>'u'||typeof document>'u'?'server':'client'; + }handoff(){ + this.handoffState==='pending'&&(this.handoffState='complete'); + }get isHandoffComplete(){ + return this.handoffState==='complete'; + } + },Va=new vM;var Tn=(e,t)=>{ + Va.isServer?(0,yE.useEffect)(e,t):(0,yE.useLayoutEffect)(e,t); +};var eZ=fe(Ee(),1);function Is(e){ + let t=(0,eZ.useRef)(e);return Tn(()=>{ + t.current=e; + },[e]),t; +}function bE(e,t){ + let[r,n]=(0,tZ.useState)(e),i=Is(e);return Tn(()=>n(i.current),[i,n,...t]),r; +}var AE=fe(Ee(),1);function rZ(e){ + typeof queueMicrotask=='function'?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{ + throw t; + })); +}function Bm(){ + let e=[],t={addEventListener(r,n,i,o){ + return r.addEventListener(n,i,o),t.add(()=>r.removeEventListener(n,i,o)); + },requestAnimationFrame(...r){ + let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n)); + },nextFrame(...r){ + return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r)); + },setTimeout(...r){ + let n=setTimeout(...r);return t.add(()=>clearTimeout(n)); + },microTask(...r){ + let n={current:!0};return rZ(()=>{ + n.current&&r[0](); + }),t.add(()=>{ + n.current=!1; + }); + },style(r,n,i){ + let o=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{ + Object.assign(r.style,{[n]:o}); + }); + },group(r){ + let n=Bm();return r(n),this.add(()=>n.dispose()); + },add(r){ + return e.push(r),()=>{ + let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i(); + }; + },dispose(){ + for(let r of e.splice(0))r(); + }};return t; +}function xE(){ + let[e]=(0,AE.useState)(Bm);return(0,AE.useEffect)(()=>()=>e.dispose(),[e]),e; +}var nZ=fe(Ee(),1);var Qt=function(e){ + let t=Is(e);return nZ.default.useCallback((...r)=>t.current(...r),[t]); +};var gM=fe(Ee(),1);var zf=fe(Ee(),1);function N1e(){ + let e=typeof document>'u';return'useSyncExternalStore'in zf?(t=>t.useSyncExternalStore)(zf)(()=>()=>{},()=>!1,()=>!e):!1; +}function iZ(){ + let e=N1e(),[t,r]=zf.useState(Va.isHandoffComplete);return t&&Va.isHandoffComplete===!1&&r(!1),zf.useEffect(()=>{ + t!==!0&&r(!0); + },[t]),zf.useEffect(()=>Va.handoff(),[]),e?!1:t; +}var oZ,Gm=(oZ=gM.default.useId)!=null?oZ:function(){ + let e=iZ(),[t,r]=gM.default.useState(e?()=>Va.nextId():null);return Tn(()=>{ + t===null&&r(Va.nextId()); + },[t]),t!=null?''+t:void 0; +};var Ey=fe(Ee(),1);function ra(e,t,...r){ + if(e in t){ + let i=t[e];return typeof i=='function'?i(...r):i; + }let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(', ')}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ra),n; +}function zm(e){ + return Va.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty('current')&&e.current instanceof Node?e.current.ownerDocument:document; +}var aZ=['[contentEditable=true]','[tabindex]','a[href]','area[href]','button:not([disabled])','iframe','input:not([disabled])','select:not([disabled])','textarea:not([disabled])'].map(e=>`${e}:not([tabindex='-1'])`).join(','),D1e=(e=>(e[e.First=1]='First',e[e.Previous=2]='Previous',e[e.Next=4]='Next',e[e.Last=8]='Last',e[e.WrapAround=16]='WrapAround',e[e.NoScroll=32]='NoScroll',e))(D1e||{}),L1e=(e=>(e[e.Error=0]='Error',e[e.Overflow=1]='Overflow',e[e.Success=2]='Success',e[e.Underflow=3]='Underflow',e))(L1e||{}),P1e=(e=>(e[e.Previous=-1]='Previous',e[e.Next=1]='Next',e))(P1e||{});var yM=(e=>(e[e.Strict=0]='Strict',e[e.Loose=1]='Loose',e))(yM||{});function sZ(e,t=0){ + var r;return e===((r=zm(e))==null?void 0:r.body)?!1:ra(t,{0(){ + return e.matches(aZ); + },1(){ + let n=e;for(;n!==null;){ + if(n.matches(aZ))return!0;n=n.parentElement; + }return!1; + }}); +}var R1e=(e=>(e[e.Keyboard=0]='Keyboard',e[e.Mouse=1]='Mouse',e))(R1e||{});typeof window<'u'&&typeof document<'u'&&(document.addEventListener('keydown',e=>{ + e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=''); +},!0),document.addEventListener('click',e=>{ + e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible=''); +},!0));var LVe=['textarea','input'].join(',');function lZ(e,t=r=>r){ + return e.slice().sort((r,n)=>{ + let i=t(r),o=t(n);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0; + }); +}var uZ=fe(Ee(),1);function wy(e,t,r){ + let n=Is(t);(0,uZ.useEffect)(()=>{ + function i(o){ + n.current(o); + }return document.addEventListener(e,i,r),()=>document.removeEventListener(e,i,r); + },[e,r]); +}var cZ=fe(Ee(),1);function fZ(e,t,r){ + let n=Is(t);(0,cZ.useEffect)(()=>{ + function i(o){ + n.current(o); + }return window.addEventListener(e,i,r),()=>window.removeEventListener(e,i,r); + },[e,r]); +}function dZ(e,t,r=!0){ + let n=(0,Ey.useRef)(!1);(0,Ey.useEffect)(()=>{ + requestAnimationFrame(()=>{ + n.current=r; + }); + },[r]);function i(s,l){ + if(!n.current||s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function m(v){ + return typeof v=='function'?m(v()):Array.isArray(v)||v instanceof Set?v:[v]; + }(e);for(let m of f){ + if(m===null)continue;let v=m instanceof HTMLElement?m:m.current;if(v!=null&&v.contains(c)||s.composed&&s.composedPath().includes(v))return; + }return!sZ(c,yM.Loose)&&c.tabIndex!==-1&&s.preventDefault(),t(s,c); + }let o=(0,Ey.useRef)(null);wy('pointerdown',s=>{ + var l,c;n.current&&(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target); + },!0),wy('mousedown',s=>{ + var l,c;n.current&&(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target); + },!0),wy('click',s=>{ + o.current&&(i(s,()=>o.current),o.current=null); + },!0),wy('touchend',s=>i(s,()=>s.target instanceof HTMLElement?s.target:null),!0),fZ('blur',s=>i(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0); +}var mZ=fe(Ee(),1);function pZ(e){ + var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:'button';if(typeof r=='string'&&r.toLowerCase()==='button')return'button'; +}function hZ(e,t){ + let[r,n]=(0,mZ.useState)(()=>pZ(e));return Tn(()=>{ + n(pZ(e)); + },[e.type,e.as]),Tn(()=>{ + r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute('type')&&n('button'); + },[r,t]),r; +}var wE=fe(Ee(),1);var M1e=Symbol();function Hm(...e){ + let t=(0,wE.useRef)(e);(0,wE.useEffect)(()=>{ + t.current=e; + },[e]);let r=Qt(n=>{ + for(let i of t.current)i!=null&&(typeof i=='function'?i(n):i.current=n); + });return e.every(n=>n==null||n?.[M1e])?void 0:r; +}var Ty=fe(Ee(),1);function vZ({container:e,accept:t,walk:r,enabled:n=!0}){ + let i=(0,Ty.useRef)(t),o=(0,Ty.useRef)(r);(0,Ty.useEffect)(()=>{ + i.current=t,o.current=r; + },[t,r]),Tn(()=>{ + if(!e||!n)return;let s=zm(e);if(!s)return;let l=i.current,c=o.current,f=Object.assign(v=>l(v),{acceptNode:l}),m=s.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,f,!1);for(;m.nextNode();)c(m.currentNode); + },[e,n,i,o]); +}function I1e(e){ + throw new Error('Unexpected object: '+e); +}var qn=(e=>(e[e.First=0]='First',e[e.Previous=1]='Previous',e[e.Next=2]='Next',e[e.Last=3]='Last',e[e.Specific=4]='Specific',e[e.Nothing=5]='Nothing',e))(qn||{});function gZ(e,t){ + let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=n??-1,o=(()=>{ + switch(e.focus){ + case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((l,c,f)=>i!==-1&&f.length-c-1>=i?!1:!t.resolveDisabled(l));return s===-1?s:r.length-1-s;}case 2:return r.findIndex((s,l)=>l<=i?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(l=>!t.resolveDisabled(l));return s===-1?s:r.length-1-s;}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:I1e(e); + } + })();return o===-1?n:o; +}var na=fe(Ee(),1);function bM(...e){ + return Array.from(new Set(e.flatMap(t=>typeof t=='string'?t.split(' '):[]))).filter(Boolean).join(' '); +}var CE=(e=>(e[e.None=0]='None',e[e.RenderStrategy=1]='RenderStrategy',e[e.Static=2]='Static',e))(CE||{}),F1e=(e=>(e[e.Unmount=0]='Unmount',e[e.Hidden=1]='Hidden',e))(F1e||{});function kl({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s}){ + let l=yZ(t,e);if(o)return EE(l,r,n,s);let c=i??0;if(c&2){ + let{static:f=!1,...m}=l;if(f)return EE(m,r,n,s); + }if(c&1){ + let{unmount:f=!0,...m}=l;return ra(f?0:1,{0(){ + return null; + },1(){ + return EE({...m,hidden:!0,style:{display:'none'}},r,n,s); + }}); + }return EE(l,r,n,s); +}function EE(e,t={},r,n){ + let{as:i=r,children:o,refName:s='ref',...l}=AM(e,['unmount','static']),c=e.ref!==void 0?{[s]:e.ref}:{},f=typeof o=='function'?o(t):o;'className'in l&&l.className&&typeof l.className=='function'&&(l.className=l.className(t));let m={};if(t){ + let v=!1,g=[];for(let[y,w]of Object.entries(t))typeof w=='boolean'&&(v=!0),w===!0&&g.push(y);v&&(m['data-headlessui-state']=g.join(' ')); + }if(i===na.Fragment&&Object.keys(TE(l)).length>0){ + if(!(0,na.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!','',`The current component <${n} /> is rendering a "Fragment".`,'However we need to passthrough the following props:',Object.keys(l).map(w=>` - ${w}`).join(` +`),'','You can apply a few solutions:',['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".','Render a single element as the child so that we can forward the props onto that element.'].map(w=>` - ${w}`).join(` `)].join(` -`));let v=f.props,g=typeof v?.className=="function"?(...w)=>bM(v?.className(...w),l.className):bM(v?.className,l.className),y=g?{className:g}:{};return(0,na.cloneElement)(f,Object.assign({},yZ(f.props,TE(AM(l,["ref"]))),m,c,q1e(f.ref,c.ref),y))}return(0,na.createElement)(i,Object.assign({},AM(l,["ref"]),i!==na.Fragment&&c,i!==na.Fragment&&m),f)}function q1e(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function yZ(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let i of e)for(let o in i)o.startsWith("on")&&typeof i[o]=="function"?((t=n[o])!=null||(n[o]=[]),n[o].push(i[o])):r[o]=i[o];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(r,{[i](o,...s){let l=n[i];for(let c of l){if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;c(o,...s)}}});return r}function Ol(e){var t;return Object.assign((0,na.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function TE(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function AM(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function bZ(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=t?.getAttribute("disabled")==="";return n&&j1e(r)?!1:n}function j1e(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function xM(e={},t=null,r=[]){for(let[n,i]of Object.entries(e))xZ(r,AZ(t,n),i);return r}function AZ(e,t){return e?e+"["+t+"]":t}function xZ(e,t,r){if(Array.isArray(r))for(let[n,i]of r.entries())xZ(e,AZ(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):xM(r,t,e)}var V1e="div",wM=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wM||{});function U1e(e,t){let{features:r=1,...n}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return kl({ourProps:i,theirProps:n,slot:{},defaultTag:V1e,name:"Hidden"})}var wZ=Ol(U1e);var Qm=fe(Ee(),1),EM=(0,Qm.createContext)(null);EM.displayName="OpenClosedContext";var Wm=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Wm||{});function EZ(){return(0,Qm.useContext)(EM)}function TZ({value:e,children:t}){return Qm.default.createElement(EM.Provider,{value:e},t)}var $i=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))($i||{});var Ym=fe(Ee(),1);function CZ(e,t,r){let[n,i]=(0,Ym.useState)(r),o=e!==void 0,s=(0,Ym.useRef)(o),l=(0,Ym.useRef)(!1),c=(0,Ym.useRef)(!1);return o&&!s.current&&!l.current?(l.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!c.current&&(c.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:n,Qt(f=>(o||i(f),t?.(f)))]}var SE=fe(Ee(),1);function TM(e,t){let r=(0,SE.useRef)([]),n=Qt(e);(0,SE.useEffect)(()=>{let i=[...r.current];for(let[o,s]of t.entries())if(r.current[o]!==s){let l=n(t,i);return r.current=t,l}},[n,...t])}var kZ=fe(Ee(),1);function SZ(e){return[e.screenX,e.screenY]}function OZ(){let e=(0,kZ.useRef)([-1,-1]);return{wasMoved(t){let r=SZ(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=SZ(t)}}}function B1e(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function G1e(){return/Android/gi.test(window.navigator.userAgent)}function NZ(){return B1e()||G1e()}var DZ=fe(Ee(),1);function LZ(...e){return(0,DZ.useMemo)(()=>zm(...e),[...e])}var z1e=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(z1e||{}),H1e=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(H1e||{}),Q1e=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Q1e||{}),W1e=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(W1e||{});function CM(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=lZ(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}}var Y1e={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let r=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:n}=e.dataRef.current,i=e.options.findIndex(o=>n(o.dataRef.current.value));i!==-1&&(r=i)}return{...e,comboboxState:0,activeOptionIndex:r}},2(e,t){var r,n,i,o;if((r=e.dataRef.current)!=null&&r.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let s=CM(e);if(s.activeOptionIndex===null){let c=s.options.findIndex(f=>!f.dataRef.current.disabled);c!==-1&&(s.activeOptionIndex=c)}let l=gZ(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...e,...s,activeOptionIndex:l,activationTrigger:(o=t.trigger)!=null?o:1}},3:(e,t)=>{var r,n;let i={id:t.id,dataRef:t.dataRef},o=CM(e,l=>[...l,i]);e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(i));let s={...e,...o,activationTrigger:1};return(n=e.dataRef.current)!=null&&n.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,t)=>{let r=CM(e,n=>{let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n});return{...e,...r,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},SM=(0,yt.createContext)(null);SM.displayName="ComboboxActionsContext";function Cy(e){let t=(0,yt.useContext)(SM);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cy),r}return t}var kM=(0,yt.createContext)(null);kM.displayName="ComboboxDataContext";function Km(e){let t=(0,yt.useContext)(kM);if(t===null){let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Km),r}return t}function K1e(e,t){return ra(t.type,Y1e,e,t)}var X1e=yt.Fragment;function Z1e(e,t){let{value:r,defaultValue:n,onChange:i,form:o,name:s,by:l=(ie,ye)=>ie===ye,disabled:c=!1,__demoMode:f=!1,nullable:m=!1,multiple:v=!1,...g}=e,[y=v?[]:void 0,w]=CZ(r,i,n),[T,S]=(0,yt.useReducer)(K1e,{dataRef:(0,yt.createRef)(),comboboxState:f?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),A=(0,yt.useRef)(!1),b=(0,yt.useRef)({static:!1,hold:!1}),C=(0,yt.useRef)(null),x=(0,yt.useRef)(null),k=(0,yt.useRef)(null),P=(0,yt.useRef)(null),D=Qt(typeof l=="string"?(ie,ye)=>{let me=l;return ie?.[me]===ye?.[me]}:l),N=(0,yt.useCallback)(ie=>ra(I.mode,{1:()=>y.some(ye=>D(ye,ie)),0:()=>D(y,ie)}),[y]),I=(0,yt.useMemo)(()=>({...T,optionsPropsRef:b,labelRef:C,inputRef:x,buttonRef:k,optionsRef:P,value:y,defaultValue:n,disabled:c,mode:v?1:0,get activeOptionIndex(){if(A.current&&T.activeOptionIndex===null&&T.options.length>0){let ie=T.options.findIndex(ye=>!ye.dataRef.current.disabled);if(ie!==-1)return ie}return T.activeOptionIndex},compare:D,isSelected:N,nullable:m,__demoMode:f}),[y,n,c,v,m,f,T]),V=(0,yt.useRef)(I.activeOptionIndex!==null?I.options[I.activeOptionIndex]:null);(0,yt.useEffect)(()=>{let ie=I.activeOptionIndex!==null?I.options[I.activeOptionIndex]:null;V.current!==ie&&(V.current=ie)}),Tn(()=>{T.dataRef.current=I},[I]),dZ([I.buttonRef,I.inputRef,I.optionsRef],()=>se.closeCombobox(),I.comboboxState===0);let G=(0,yt.useMemo)(()=>({open:I.comboboxState===0,disabled:c,activeIndex:I.activeOptionIndex,activeOption:I.activeOptionIndex===null?null:I.options[I.activeOptionIndex].dataRef.current.value,value:y}),[I,c,y]),B=Qt(ie=>{let ye=I.options.find(me=>me.id===ie);ye&&re(ye.dataRef.current.value)}),U=Qt(()=>{if(I.activeOptionIndex!==null){let{dataRef:ie,id:ye}=I.options[I.activeOptionIndex];re(ie.current.value),se.goToOption(qn.Specific,ye)}}),z=Qt(()=>{S({type:0}),A.current=!0}),j=Qt(()=>{S({type:1}),A.current=!1}),J=Qt((ie,ye,me)=>(A.current=!1,ie===qn.Specific?S({type:2,focus:qn.Specific,id:ye,trigger:me}):S({type:2,focus:ie,trigger:me}))),K=Qt((ie,ye)=>(S({type:3,id:ie,dataRef:ye}),()=>{var me;((me=V.current)==null?void 0:me.id)===ie&&(A.current=!0),S({type:4,id:ie})})),ee=Qt(ie=>(S({type:5,id:ie}),()=>S({type:5,id:null}))),re=Qt(ie=>ra(I.mode,{0(){return w?.(ie)},1(){let ye=I.value.slice(),me=ye.findIndex(Oe=>D(Oe,ie));return me===-1?ye.push(ie):ye.splice(me,1),w?.(ye)}})),se=(0,yt.useMemo)(()=>({onChange:re,registerOption:K,registerLabel:ee,goToOption:J,closeCombobox:j,openCombobox:z,selectActiveOption:U,selectOption:B}),[]),xe=t===null?{}:{ref:t},Re=(0,yt.useRef)(null),Se=xE();return(0,yt.useEffect)(()=>{Re.current&&n!==void 0&&Se.addEventListener(Re.current,"reset",()=>{w?.(n)})},[Re,w]),yt.default.createElement(SM.Provider,{value:se},yt.default.createElement(kM.Provider,{value:I},yt.default.createElement(TZ,{value:ra(I.comboboxState,{0:Wm.Open,1:Wm.Closed})},s!=null&&y!=null&&xM({[s]:y}).map(([ie,ye],me)=>yt.default.createElement(wZ,{features:wM.Hidden,ref:me===0?Oe=>{var Ge;Re.current=(Ge=Oe?.closest("form"))!=null?Ge:null}:void 0,...TE({key:ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:ie,value:ye})})),kl({ourProps:xe,theirProps:g,slot:G,defaultTag:X1e,name:"Combobox"}))))}var J1e="input";function _1e(e,t){var r,n,i,o;let s=Gm(),{id:l=`headlessui-combobox-input-${s}`,onChange:c,displayValue:f,type:m="text",...v}=e,g=Km("Combobox.Input"),y=Cy("Combobox.Input"),w=Hm(g.inputRef,t),T=LZ(g.inputRef),S=(0,yt.useRef)(!1),A=xE(),b=Qt(()=>{y.onChange(null),g.optionsRef.current&&(g.optionsRef.current.scrollTop=0),y.goToOption(qn.Nothing)}),C=function(){var U;return typeof f=="function"&&g.value!==void 0?(U=f(g.value))!=null?U:"":typeof g.value=="string"?g.value:""}();TM(([U,z],[j,J])=>{if(S.current)return;let K=g.inputRef.current;K&&((J===0&&z===1||U!==j)&&(K.value=U),requestAnimationFrame(()=>{if(S.current||!K||T?.activeElement!==K)return;let{selectionStart:ee,selectionEnd:re}=K;Math.abs((re??0)-(ee??0))===0&&ee===0&&K.setSelectionRange(K.value.length,K.value.length)}))},[C,g.comboboxState,T]),TM(([U],[z])=>{if(U===0&&z===1){if(S.current)return;let j=g.inputRef.current;if(!j)return;let J=j.value,{selectionStart:K,selectionEnd:ee,selectionDirection:re}=j;j.value="",j.value=J,re!==null?j.setSelectionRange(K,ee,re):j.setSelectionRange(K,ee)}},[g.comboboxState]);let x=(0,yt.useRef)(!1),k=Qt(()=>{x.current=!0}),P=Qt(()=>{A.nextFrame(()=>{x.current=!1})}),D=Qt(U=>{switch(S.current=!0,U.key){case $i.Enter:if(S.current=!1,g.comboboxState!==0||x.current)return;if(U.preventDefault(),U.stopPropagation(),g.activeOptionIndex===null){y.closeCombobox();return}y.selectActiveOption(),g.mode===0&&y.closeCombobox();break;case $i.ArrowDown:return S.current=!1,U.preventDefault(),U.stopPropagation(),ra(g.comboboxState,{0:()=>{y.goToOption(qn.Next)},1:()=>{y.openCombobox()}});case $i.ArrowUp:return S.current=!1,U.preventDefault(),U.stopPropagation(),ra(g.comboboxState,{0:()=>{y.goToOption(qn.Previous)},1:()=>{y.openCombobox(),A.nextFrame(()=>{g.value||y.goToOption(qn.Last)})}});case $i.Home:if(U.shiftKey)break;return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.First);case $i.PageUp:return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.First);case $i.End:if(U.shiftKey)break;return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.Last);case $i.PageDown:return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.Last);case $i.Escape:return S.current=!1,g.comboboxState!==0?void 0:(U.preventDefault(),g.optionsRef.current&&!g.optionsPropsRef.current.static&&U.stopPropagation(),g.nullable&&g.mode===0&&g.value===null&&b(),y.closeCombobox());case $i.Tab:if(S.current=!1,g.comboboxState!==0)return;g.mode===0&&y.selectActiveOption(),y.closeCombobox();break}}),N=Qt(U=>{c?.(U),g.nullable&&g.mode===0&&U.target.value===""&&b(),y.openCombobox()}),I=Qt(()=>{S.current=!1}),V=bE(()=>{if(g.labelId)return[g.labelId].join(" ")},[g.labelId]),G=(0,yt.useMemo)(()=>({open:g.comboboxState===0,disabled:g.disabled}),[g]),B={ref:w,id:l,role:"combobox",type:m,"aria-controls":(r=g.optionsRef.current)==null?void 0:r.id,"aria-expanded":g.comboboxState===0,"aria-activedescendant":g.activeOptionIndex===null||(n=g.options[g.activeOptionIndex])==null?void 0:n.id,"aria-labelledby":V,"aria-autocomplete":"list",defaultValue:(o=(i=e.defaultValue)!=null?i:g.defaultValue!==void 0?f?.(g.defaultValue):null)!=null?o:g.defaultValue,disabled:g.disabled,onCompositionStart:k,onCompositionEnd:P,onKeyDown:D,onChange:N,onBlur:I};return kl({ourProps:B,theirProps:v,slot:G,defaultTag:J1e,name:"Combobox.Input"})}var $1e="button";function exe(e,t){var r;let n=Km("Combobox.Button"),i=Cy("Combobox.Button"),o=Hm(n.buttonRef,t),s=Gm(),{id:l=`headlessui-combobox-button-${s}`,...c}=e,f=xE(),m=Qt(T=>{switch(T.key){case $i.ArrowDown:return T.preventDefault(),T.stopPropagation(),n.comboboxState===1&&i.openCombobox(),f.nextFrame(()=>{var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0})});case $i.ArrowUp:return T.preventDefault(),T.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),f.nextFrame(()=>{n.value||i.goToOption(qn.Last)})),f.nextFrame(()=>{var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0})});case $i.Escape:return n.comboboxState!==0?void 0:(T.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&T.stopPropagation(),i.closeCombobox(),f.nextFrame(()=>{var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0})}));default:return}}),v=Qt(T=>{if(bZ(T.currentTarget))return T.preventDefault();n.comboboxState===0?i.closeCombobox():(T.preventDefault(),i.openCombobox()),f.nextFrame(()=>{var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0})})}),g=bE(()=>{if(n.labelId)return[n.labelId,l].join(" ")},[n.labelId,l]),y=(0,yt.useMemo)(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),w={ref:o,id:l,type:hZ(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(r=n.optionsRef.current)==null?void 0:r.id,"aria-expanded":n.comboboxState===0,"aria-labelledby":g,disabled:n.disabled,onClick:v,onKeyDown:m};return kl({ourProps:w,theirProps:c,slot:y,defaultTag:$1e,name:"Combobox.Button"})}var txe="label";function rxe(e,t){let r=Gm(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=Km("Combobox.Label"),s=Cy("Combobox.Label"),l=Hm(o.labelRef,t);Tn(()=>s.registerLabel(n),[n]);let c=Qt(()=>{var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),f=(0,yt.useMemo)(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return kl({ourProps:{ref:l,id:n,onClick:c},theirProps:i,slot:f,defaultTag:txe,name:"Combobox.Label"})}var nxe="ul",ixe=CE.RenderStrategy|CE.Static;function oxe(e,t){let r=Gm(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,s=Km("Combobox.Options"),l=Hm(s.optionsRef,t),c=EZ(),f=(()=>c!==null?(c&Wm.Open)===Wm.Open:s.comboboxState===0)();Tn(()=>{var y;s.optionsPropsRef.current.static=(y=e.static)!=null?y:!1},[s.optionsPropsRef,e.static]),Tn(()=>{s.optionsPropsRef.current.hold=i},[s.optionsPropsRef,i]),vZ({container:s.optionsRef.current,enabled:s.comboboxState===0,accept(y){return y.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:y.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(y){y.setAttribute("role","none")}});let m=bE(()=>{var y,w;return(w=s.labelId)!=null?w:(y=s.buttonRef.current)==null?void 0:y.id},[s.labelId,s.buttonRef.current]),v=(0,yt.useMemo)(()=>({open:s.comboboxState===0}),[s]),g={"aria-labelledby":m,role:"listbox","aria-multiselectable":s.mode===1?!0:void 0,id:n,ref:l};return kl({ourProps:g,theirProps:o,slot:v,defaultTag:nxe,features:ixe,visible:f,name:"Combobox.Options"})}var axe="li";function sxe(e,t){var r,n;let i=Gm(),{id:o=`headlessui-combobox-option-${i}`,disabled:s=!1,value:l,...c}=e,f=Km("Combobox.Option"),m=Cy("Combobox.Option"),v=f.activeOptionIndex!==null?f.options[f.activeOptionIndex].id===o:!1,g=f.isSelected(l),y=(0,yt.useRef)(null),w=Is({disabled:s,value:l,domRef:y,textValue:(n=(r=y.current)==null?void 0:r.textContent)==null?void 0:n.toLowerCase()}),T=Hm(t,y),S=Qt(()=>m.selectOption(o));Tn(()=>m.registerOption(o,w),[w,o]);let A=(0,yt.useRef)(!f.__demoMode);Tn(()=>{if(!f.__demoMode)return;let I=Bm();return I.requestAnimationFrame(()=>{A.current=!0}),I.dispose},[]),Tn(()=>{if(f.comboboxState!==0||!v||!A.current||f.activationTrigger===0)return;let I=Bm();return I.requestAnimationFrame(()=>{var V,G;(G=(V=y.current)==null?void 0:V.scrollIntoView)==null||G.call(V,{block:"nearest"})}),I.dispose},[y,v,f.comboboxState,f.activationTrigger,f.activeOptionIndex]);let b=Qt(I=>{if(s)return I.preventDefault();S(),f.mode===0&&m.closeCombobox(),NZ()||requestAnimationFrame(()=>{var V;return(V=f.inputRef.current)==null?void 0:V.focus()})}),C=Qt(()=>{if(s)return m.goToOption(qn.Nothing);m.goToOption(qn.Specific,o)}),x=OZ(),k=Qt(I=>x.update(I)),P=Qt(I=>{x.wasMoved(I)&&(s||v||m.goToOption(qn.Specific,o,0))}),D=Qt(I=>{x.wasMoved(I)&&(s||v&&(f.optionsPropsRef.current.hold||m.goToOption(qn.Nothing)))}),N=(0,yt.useMemo)(()=>({active:v,selected:g,disabled:s}),[v,g,s]);return kl({ourProps:{id:o,ref:T,role:"option",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-selected":g,disabled:void 0,onClick:b,onFocus:C,onPointerEnter:k,onMouseEnter:k,onPointerMove:P,onMouseMove:P,onPointerLeave:D,onMouseLeave:D},theirProps:c,slot:N,defaultTag:axe,name:"Combobox.Option"})}var lxe=Ol(Z1e),uxe=Ol(exe),cxe=Ol(_1e),fxe=Ol(rxe),dxe=Ol(oxe),pxe=Ol(sxe),Hf=Object.assign(lxe,{Input:cxe,Button:uxe,Label:fxe,Options:dxe,Option:pxe});var iI=fe(mf(),1),$we=Object.defineProperty,oe=(e,t)=>$we(e,"name",{value:t,configurable:!0});function _u(e){let t=(0,te.createContext)(null);return t.displayName=e,t}oe(_u,"createNullableContext");function $u(e){function t(r){var n;let i=(0,te.useContext)(e);if(i===null&&r!=null&&r.nonNull)throw new Error(`Tried to use \`${((n=r.caller)==null?void 0:n.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return oe(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}oe($u,"createContextHook");var d_=_u("StorageContext");function p_(e){let t=(0,te.useRef)(!0),[r,n]=(0,te.useState)(new dp(e.storage));return(0,te.useEffect)(()=>{t.current?t.current=!1:n(new dp(e.storage))},[e.storage]),(0,Y.jsx)(d_.Provider,{value:r,children:e.children})}oe(p_,"StorageContextProvider");var Pl=$u(d_),eEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),tEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),rEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),nEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),iEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5})),"SvgClose"),oEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),aEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),sEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgDeprecatedEnumValue"),lEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),uEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),"SvgDirective"),cEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),"SvgDocsFilled"),fEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),dEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),"SvgEnumValue"),pEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),ue.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),mEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),ue.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),ue.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),"SvgHistory"),hEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5)","transform-origin":"center"}),ue.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),vEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgKeyboardShortcut"),gEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),ue.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),yEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),ue.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),bEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),ue.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),AEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),"SvgPlay"),xEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z",fill:"currentColor"})),"SvgPlus"),wEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),ue.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),ue.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),ue.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),ue.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),"SvgPrettify"),EEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),ue.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),ue.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),ue.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),"SvgReload"),TEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),ue.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),"SvgRootType"),CEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),"SvgSettings"),SEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),"SvgStarFilled"),kEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),"SvgStar"),OEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),NEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...r},e===void 0?ue.createElement("title",{id:t},"trash icon"):e?ue.createElement("title",{id:t},e):null,ue.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),"SvgTrash"),DEe=oe(({title:e,titleId:t,...r})=>ue.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r},e?ue.createElement("title",{id:t},e):null,ue.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),ue.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),LEe=zt(eEe),m_=zt(tEe),PEe=zt(rEe),h_=zt(nEe),cI=zt(iEe),v_=zt(oEe),REe=zt(aEe),MEe=zt(sEe),IEe=zt(lEe),FEe=zt(uEe),qEe=zt(cEe,"filled docs icon"),jEe=zt(fEe),VEe=zt(dEe),UEe=zt(pEe),BEe=zt(mEe),GEe=zt(hEe),g_=zt(vEe),zEe=zt(gEe),y_=zt(yEe),HEe=zt(bEe),QEe=zt(AEe),b_=zt(xEe),A_=zt(wEe),x_=zt(EEe),WEe=zt(TEe),w_=zt(CEe),YEe=zt(SEe,"filled star icon"),KEe=zt(kEe),XEe=zt(OEe),ZEe=zt(NEe,"trash icon"),IE=zt(DEe);function zt(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){return e.defaultProps={title:t},e}oe(zt,"generateIcon");var pn=(0,te.forwardRef)((e,t)=>(0,Y.jsx)("button",{...e,ref:t,className:gn("graphiql-un-styled",e.className)}));pn.displayName="UnStyledButton";var aa=(0,te.forwardRef)((e,t)=>(0,Y.jsx)("button",{...e,ref:t,className:gn("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));aa.displayName="Button";var XE=(0,te.forwardRef)((e,t)=>(0,Y.jsx)("div",{...e,ref:t,className:gn("graphiql-button-group",e.className)}));XE.displayName="ButtonGroup";var Zy=oe((e,t)=>Object.entries(t).reduce((r,[n,i])=>(r[n]=i,r),e),"createComponentGroup"),E_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(eG,{asChild:!0,children:(0,Y.jsxs)(pn,{...e,ref:t,type:"button",className:gn("graphiql-dialog-close",e.className),children:[(0,Y.jsx)(Cx,{children:"Close dialog"}),(0,Y.jsx)(cI,{})]})}));E_.displayName="Dialog.Close";function T_({children:e,...t}){return(0,Y.jsx)(YB,{...t,children:(0,Y.jsxs)(XB,{children:[(0,Y.jsx)(ZB,{className:"graphiql-dialog-overlay"}),(0,Y.jsx)(JB,{className:"graphiql-dialog",children:e})]})})}oe(T_,"DialogRoot");var $f=Zy(T_,{Close:E_,Title:_B,Trigger:KB,Description:$B}),C_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)($G,{asChild:!0,children:(0,Y.jsx)("button",{...e,ref:t,className:gn("graphiql-un-styled",e.className)})}));C_.displayName="DropdownMenuButton";function S_({children:e,align:t="start",sideOffset:r=5,className:n,...i}){return(0,Y.jsx)(ez,{children:(0,Y.jsx)(tz,{align:t,sideOffset:r,className:gn("graphiql-dropdown-content",n),...i,children:e})})}oe(S_,"Content");var JEe=oe(({className:e,children:t,...r})=>(0,Y.jsx)(rz,{className:gn("graphiql-dropdown-item",e),...r,children:t}),"Item"),Zu=Zy(_G,{Button:C_,Item:JEe,Content:S_}),BE=new f_.default({breaks:!0,linkify:!0}),js=(0,te.forwardRef)(({children:e,onlyShowFirstChild:t,type:r,...n},i)=>(0,Y.jsx)("div",{...n,ref:i,className:gn(`graphiql-markdown-${r}`,t&&"graphiql-markdown-preview",n.className),dangerouslySetInnerHTML:{__html:BE.render(e)}}));js.displayName="MarkdownContent";var ZE=(0,te.forwardRef)((e,t)=>(0,Y.jsx)("div",{...e,ref:t,className:gn("graphiql-spinner",e.className)}));ZE.displayName="Spinner";function k_({children:e,align:t="start",side:r="bottom",sideOffset:n=5,label:i}){return(0,Y.jsxs)(ZX,{children:[(0,Y.jsx)(JX,{asChild:!0,children:e}),(0,Y.jsx)(_X,{children:(0,Y.jsx)($X,{className:"graphiql-tooltip",align:t,side:r,sideOffset:n,children:i})})]})}oe(k_,"TooltipRoot");var ti=Zy(k_,{Provider:XX}),O_=(0,te.forwardRef)(({isActive:e,value:t,children:r,className:n,...i},o)=>(0,Y.jsx)(vE.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:gn("graphiql-tab",e&&"graphiql-tab-active",n),children:r}));O_.displayName="Tab";var N_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(pn,{...e,ref:t,type:"button",className:gn("graphiql-tab-button",e.className),children:e.children}));N_.displayName="Tab.Button";var D_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(ti,{label:"Close Tab",children:(0,Y.jsx)(pn,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:gn("graphiql-tab-close",e.className),children:(0,Y.jsx)(cI,{})})}));D_.displayName="Tab.Close";var JE=Zy(O_,{Button:N_,Close:D_}),fI=(0,te.forwardRef)(({values:e,onReorder:t,children:r,className:n,...i},o)=>(0,Y.jsx)(vE.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:gn("graphiql-tabs",n),children:r}));fI.displayName="Tabs";var L_=_u("HistoryContext");function P_(e){var t;let r=Pl(),n=(0,te.useRef)(new OA(r||new dp(null),e.maxHistoryLength||_Ee)),[i,o]=(0,te.useState)(((t=n.current)==null?void 0:t.queries)||[]),s=(0,te.useCallback)(g=>{var y;(y=n.current)==null||y.updateHistory(g),o(n.current.queries)},[]),l=(0,te.useCallback)((g,y)=>{n.current.editLabel(g,y),o(n.current.queries)},[]),c=(0,te.useCallback)(g=>{n.current.toggleFavorite(g),o(n.current.queries)},[]),f=(0,te.useCallback)(g=>g,[]),m=(0,te.useCallback)((g,y=!1)=>{n.current.deleteHistory(g,y),o(n.current.queries)},[]),v=(0,te.useMemo)(()=>({addToHistory:s,editLabel:l,items:i,toggleFavorite:c,setActive:f,deleteFromHistory:m}),[s,l,i,c,f,m]);return(0,Y.jsx)(L_.Provider,{value:v,children:e.children})}oe(P_,"HistoryContextProvider");var _E=$u(L_),_Ee=20;function R_(){let{items:e,deleteFromHistory:t}=_E({nonNull:!0}),r=e.slice().map((l,c)=>({...l,index:c})).reverse(),n=r.filter(l=>l.favorite);n.length&&(r=r.filter(l=>!l.favorite));let[i,o]=(0,te.useState)(null);(0,te.useEffect)(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);let s=(0,te.useCallback)(()=>{try{for(let l of r)t(l,!0);o("success")}catch{o("error")}},[t,r]);return(0,Y.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[(0,Y.jsxs)("div",{className:"graphiql-history-header",children:["History",(i||r.length>0)&&(0,Y.jsx)(aa,{type:"button",state:i||void 0,disabled:!r.length,onClick:s,children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),!!n.length&&(0,Y.jsx)("ul",{className:"graphiql-history-items",children:n.map(l=>(0,Y.jsx)(By,{item:l},l.index))}),!!n.length&&!!r.length&&(0,Y.jsx)("div",{className:"graphiql-history-item-spacer"}),!!r.length&&(0,Y.jsx)("ul",{className:"graphiql-history-items",children:r.map(l=>(0,Y.jsx)(By,{item:l},l.index))})]})}oe(R_,"History");function By(e){let{editLabel:t,toggleFavorite:r,deleteFromHistory:n,setActive:i}=_E({nonNull:!0,caller:By}),{headerEditor:o,queryEditor:s,variableEditor:l}=$r({nonNull:!0,caller:By}),c=(0,te.useRef)(null),f=(0,te.useRef)(null),[m,v]=(0,te.useState)(!1);(0,te.useEffect)(()=>{var C;m&&((C=c.current)==null||C.focus())},[m]);let g=e.item.label||e.item.operationName||M_(e.item.query),y=(0,te.useCallback)(()=>{var C;v(!1);let{index:x,...k}=e.item;t({...k,label:(C=c.current)==null?void 0:C.value},x)},[t,e.item]),w=(0,te.useCallback)(()=>{v(!1)},[]),T=(0,te.useCallback)(C=>{C.stopPropagation(),v(!0)},[]),S=(0,te.useCallback)(()=>{let{query:C,variables:x,headers:k}=e.item;s?.setValue(C??""),l?.setValue(x??""),o?.setValue(k??""),i(e.item)},[o,e.item,s,i,l]),A=(0,te.useCallback)(C=>{C.stopPropagation(),n(e.item)},[e.item,n]),b=(0,te.useCallback)(C=>{C.stopPropagation(),r(e.item)},[e.item,r]);return(0,Y.jsx)("li",{className:gn("graphiql-history-item",m&&"editable"),children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("input",{type:"text",defaultValue:e.item.label,ref:c,onKeyDown:C=>{C.key==="Esc"?v(!1):C.key==="Enter"&&(v(!1),t({...e.item,label:C.currentTarget.value}))},placeholder:"Type a label"}),(0,Y.jsx)(pn,{type:"button",ref:f,onClick:y,children:"Save"}),(0,Y.jsx)(pn,{type:"button",ref:f,onClick:w,children:(0,Y.jsx)(cI,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ti,{label:"Set active",children:(0,Y.jsx)(pn,{type:"button",className:"graphiql-history-item-label",onClick:S,"aria-label":"Set active",children:g})}),(0,Y.jsx)(ti,{label:"Edit label",children:(0,Y.jsx)(pn,{type:"button",className:"graphiql-history-item-action",onClick:T,"aria-label":"Edit label",children:(0,Y.jsx)(HEe,{"aria-hidden":"true"})})}),(0,Y.jsx)(ti,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,Y.jsx)(pn,{type:"button",className:"graphiql-history-item-action",onClick:b,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,Y.jsx)(YEe,{"aria-hidden":"true"}):(0,Y.jsx)(KEe,{"aria-hidden":"true"})})}),(0,Y.jsx)(ti,{label:"Delete from history",children:(0,Y.jsx)(pn,{type:"button",className:"graphiql-history-item-action",onClick:A,"aria-label":"Delete from history",children:(0,Y.jsx)(ZEe,{"aria-hidden":"true"})})})]})})}oe(By,"HistoryItem");function M_(e){return e?.split(` -`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}oe(M_,"formatQuery");var I_=_u("ExecutionContext");function GE({fetcher:e,getDefaultFieldNames:t,children:r,operationName:n}){if(!e)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let{externalFragments:i,headerEditor:o,queryEditor:s,responseEditor:l,variableEditor:c,updateActiveTabValues:f}=$r({nonNull:!0,caller:GE}),m=_E(),v=WE({getDefaultFieldNames:t,caller:GE}),[g,y]=(0,te.useState)(!1),[w,T]=(0,te.useState)(null),S=(0,te.useRef)(0),A=(0,te.useCallback)(()=>{w?.unsubscribe(),y(!1),T(null)},[w]),b=(0,te.useCallback)(async()=>{if(!s||!l)return;if(w){A();return}let k=oe(U=>{l.setValue(U),f({response:U})},"setResponse");S.current+=1;let P=S.current,D=v()||s.getValue(),N=c?.getValue(),I;try{I=oI({json:N,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(U){k(U instanceof Error?U.message:`${U}`);return}let V=o?.getValue(),G;try{G=oI({json:V,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(U){k(U instanceof Error?U.message:`${U}`);return}if(i){let U=s.documentAST?UA(s.documentAST,i):[];U.length>0&&(D+=` +`));let v=f.props,g=typeof v?.className=='function'?(...w)=>bM(v?.className(...w),l.className):bM(v?.className,l.className),y=g?{className:g}:{};return(0,na.cloneElement)(f,Object.assign({},yZ(f.props,TE(AM(l,['ref']))),m,c,q1e(f.ref,c.ref),y)); + }return(0,na.createElement)(i,Object.assign({},AM(l,['ref']),i!==na.Fragment&&c,i!==na.Fragment&&m),f); +}function q1e(...e){ + return{ref:e.every(t=>t==null)?void 0:t=>{ + for(let r of e)r!=null&&(typeof r=='function'?r(t):r.current=t); + }}; +}function yZ(...e){ + var t;if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let i of e)for(let o in i)o.startsWith('on')&&typeof i[o]=='function'?((t=n[o])!=null||(n[o]=[]),n[o].push(i[o])):r[o]=i[o];if(r.disabled||r['aria-disabled'])return Object.assign(r,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(r,{[i](o,...s){ + let l=n[i];for(let c of l){ + if((o instanceof Event||o?.nativeEvent instanceof Event)&&o.defaultPrevented)return;c(o,...s); + } + }});return r; +}function Ol(e){ + var t;return Object.assign((0,na.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name}); +}function TE(e){ + let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t; +}function AM(e,t=[]){ + let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r; +}function bZ(e){ + let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=t?.getAttribute('disabled')==='';return n&&j1e(r)?!1:n; +}function j1e(e){ + if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){ + if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling; + }return!0; +}function xM(e={},t=null,r=[]){ + for(let[n,i]of Object.entries(e))xZ(r,AZ(t,n),i);return r; +}function AZ(e,t){ + return e?e+'['+t+']':t; +}function xZ(e,t,r){ + if(Array.isArray(r))for(let[n,i]of r.entries())xZ(e,AZ(t,n.toString()),i);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=='boolean'?e.push([t,r?'1':'0']):typeof r=='string'?e.push([t,r]):typeof r=='number'?e.push([t,`${r}`]):r==null?e.push([t,'']):xM(r,t,e); +}var V1e='div',wM=(e=>(e[e.None=1]='None',e[e.Focusable=2]='Focusable',e[e.Hidden=4]='Hidden',e))(wM||{});function U1e(e,t){ + let{features:r=1,...n}=e,i={ref:t,'aria-hidden':(r&2)===2?!0:void 0,style:{position:'fixed',top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:'hidden',clip:'rect(0, 0, 0, 0)',whiteSpace:'nowrap',borderWidth:'0',...(r&4)===4&&(r&2)!==2&&{display:'none'}}};return kl({ourProps:i,theirProps:n,slot:{},defaultTag:V1e,name:'Hidden'}); +}var wZ=Ol(U1e);var Qm=fe(Ee(),1),EM=(0,Qm.createContext)(null);EM.displayName='OpenClosedContext';var Wm=(e=>(e[e.Open=1]='Open',e[e.Closed=2]='Closed',e[e.Closing=4]='Closing',e[e.Opening=8]='Opening',e))(Wm||{});function EZ(){ + return(0,Qm.useContext)(EM); +}function TZ({value:e,children:t}){ + return Qm.default.createElement(EM.Provider,{value:e},t); +}var $i=(e=>(e.Space=' ',e.Enter='Enter',e.Escape='Escape',e.Backspace='Backspace',e.Delete='Delete',e.ArrowLeft='ArrowLeft',e.ArrowUp='ArrowUp',e.ArrowRight='ArrowRight',e.ArrowDown='ArrowDown',e.Home='Home',e.End='End',e.PageUp='PageUp',e.PageDown='PageDown',e.Tab='Tab',e))($i||{});var Ym=fe(Ee(),1);function CZ(e,t,r){ + let[n,i]=(0,Ym.useState)(r),o=e!==void 0,s=(0,Ym.useRef)(o),l=(0,Ym.useRef)(!1),c=(0,Ym.useRef)(!1);return o&&!s.current&&!l.current?(l.current=!0,s.current=o,console.error('A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.')):!o&&s.current&&!c.current&&(c.current=!0,s.current=o,console.error('A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.')),[o?e:n,Qt(f=>(o||i(f),t?.(f)))]; +}var SE=fe(Ee(),1);function TM(e,t){ + let r=(0,SE.useRef)([]),n=Qt(e);(0,SE.useEffect)(()=>{ + let i=[...r.current];for(let[o,s]of t.entries())if(r.current[o]!==s){ + let l=n(t,i);return r.current=t,l; + } + },[n,...t]); +}var kZ=fe(Ee(),1);function SZ(e){ + return[e.screenX,e.screenY]; +}function OZ(){ + let e=(0,kZ.useRef)([-1,-1]);return{wasMoved(t){ + let r=SZ(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0); + },update(t){ + e.current=SZ(t); + }}; +}function B1e(){ + return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0; +}function G1e(){ + return/Android/gi.test(window.navigator.userAgent); +}function NZ(){ + return B1e()||G1e(); +}var DZ=fe(Ee(),1);function LZ(...e){ + return(0,DZ.useMemo)(()=>zm(...e),[...e]); +}var z1e=(e=>(e[e.Open=0]='Open',e[e.Closed=1]='Closed',e))(z1e||{}),H1e=(e=>(e[e.Single=0]='Single',e[e.Multi=1]='Multi',e))(H1e||{}),Q1e=(e=>(e[e.Pointer=0]='Pointer',e[e.Other=1]='Other',e))(Q1e||{}),W1e=(e=>(e[e.OpenCombobox=0]='OpenCombobox',e[e.CloseCombobox=1]='CloseCombobox',e[e.GoToOption=2]='GoToOption',e[e.RegisterOption=3]='RegisterOption',e[e.UnregisterOption=4]='UnregisterOption',e[e.RegisterLabel=5]='RegisterLabel',e))(W1e||{});function CM(e,t=r=>r){ + let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=lZ(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return i===-1&&(i=null),{options:n,activeOptionIndex:i}; +}var Y1e={1(e){ + var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}; + },0(e){ + var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let r=e.activeOptionIndex;if(e.dataRef.current){ + let{isSelected:n}=e.dataRef.current,i=e.options.findIndex(o=>n(o.dataRef.current.value));i!==-1&&(r=i); + }return{...e,comboboxState:0,activeOptionIndex:r}; + },2(e,t){ + var r,n,i,o;if((r=e.dataRef.current)!=null&&r.disabled||(n=e.dataRef.current)!=null&&n.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let s=CM(e);if(s.activeOptionIndex===null){ + let c=s.options.findIndex(f=>!f.dataRef.current.disabled);c!==-1&&(s.activeOptionIndex=c); + }let l=gZ(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...e,...s,activeOptionIndex:l,activationTrigger:(o=t.trigger)!=null?o:1}; + },3:(e,t)=>{ + var r,n;let i={id:t.id,dataRef:t.dataRef},o=CM(e,l=>[...l,i]);e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(i));let s={...e,...o,activationTrigger:1};return(n=e.dataRef.current)!=null&&n.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s; + },4:(e,t)=>{ + let r=CM(e,n=>{ + let i=n.findIndex(o=>o.id===t.id);return i!==-1&&n.splice(i,1),n; + });return{...e,...r,activationTrigger:1}; + },5:(e,t)=>({...e,labelId:t.id})},SM=(0,yt.createContext)(null);SM.displayName='ComboboxActionsContext';function Cy(e){ + let t=(0,yt.useContext)(SM);if(t===null){ + let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Cy),r; + }return t; +}var kM=(0,yt.createContext)(null);kM.displayName='ComboboxDataContext';function Km(e){ + let t=(0,yt.useContext)(kM);if(t===null){ + let r=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Km),r; + }return t; +}function K1e(e,t){ + return ra(t.type,Y1e,e,t); +}var X1e=yt.Fragment;function Z1e(e,t){ + let{value:r,defaultValue:n,onChange:i,form:o,name:s,by:l=(ie,ye)=>ie===ye,disabled:c=!1,__demoMode:f=!1,nullable:m=!1,multiple:v=!1,...g}=e,[y=v?[]:void 0,w]=CZ(r,i,n),[T,S]=(0,yt.useReducer)(K1e,{dataRef:(0,yt.createRef)(),comboboxState:f?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),A=(0,yt.useRef)(!1),b=(0,yt.useRef)({static:!1,hold:!1}),C=(0,yt.useRef)(null),x=(0,yt.useRef)(null),k=(0,yt.useRef)(null),P=(0,yt.useRef)(null),D=Qt(typeof l=='string'?(ie,ye)=>{ + let me=l;return ie?.[me]===ye?.[me]; + }:l),N=(0,yt.useCallback)(ie=>ra(I.mode,{1:()=>y.some(ye=>D(ye,ie)),0:()=>D(y,ie)}),[y]),I=(0,yt.useMemo)(()=>({...T,optionsPropsRef:b,labelRef:C,inputRef:x,buttonRef:k,optionsRef:P,value:y,defaultValue:n,disabled:c,mode:v?1:0,get activeOptionIndex(){ + if(A.current&&T.activeOptionIndex===null&&T.options.length>0){ + let ie=T.options.findIndex(ye=>!ye.dataRef.current.disabled);if(ie!==-1)return ie; + }return T.activeOptionIndex; + },compare:D,isSelected:N,nullable:m,__demoMode:f}),[y,n,c,v,m,f,T]),V=(0,yt.useRef)(I.activeOptionIndex!==null?I.options[I.activeOptionIndex]:null);(0,yt.useEffect)(()=>{ + let ie=I.activeOptionIndex!==null?I.options[I.activeOptionIndex]:null;V.current!==ie&&(V.current=ie); + }),Tn(()=>{ + T.dataRef.current=I; + },[I]),dZ([I.buttonRef,I.inputRef,I.optionsRef],()=>se.closeCombobox(),I.comboboxState===0);let G=(0,yt.useMemo)(()=>({open:I.comboboxState===0,disabled:c,activeIndex:I.activeOptionIndex,activeOption:I.activeOptionIndex===null?null:I.options[I.activeOptionIndex].dataRef.current.value,value:y}),[I,c,y]),B=Qt(ie=>{ + let ye=I.options.find(me=>me.id===ie);ye&&re(ye.dataRef.current.value); + }),U=Qt(()=>{ + if(I.activeOptionIndex!==null){ + let{dataRef:ie,id:ye}=I.options[I.activeOptionIndex];re(ie.current.value),se.goToOption(qn.Specific,ye); + } + }),z=Qt(()=>{ + S({type:0}),A.current=!0; + }),j=Qt(()=>{ + S({type:1}),A.current=!1; + }),J=Qt((ie,ye,me)=>(A.current=!1,ie===qn.Specific?S({type:2,focus:qn.Specific,id:ye,trigger:me}):S({type:2,focus:ie,trigger:me}))),K=Qt((ie,ye)=>(S({type:3,id:ie,dataRef:ye}),()=>{ + var me;((me=V.current)==null?void 0:me.id)===ie&&(A.current=!0),S({type:4,id:ie}); + })),ee=Qt(ie=>(S({type:5,id:ie}),()=>S({type:5,id:null}))),re=Qt(ie=>ra(I.mode,{0(){ + return w?.(ie); + },1(){ + let ye=I.value.slice(),me=ye.findIndex(Oe=>D(Oe,ie));return me===-1?ye.push(ie):ye.splice(me,1),w?.(ye); + }})),se=(0,yt.useMemo)(()=>({onChange:re,registerOption:K,registerLabel:ee,goToOption:J,closeCombobox:j,openCombobox:z,selectActiveOption:U,selectOption:B}),[]),xe=t===null?{}:{ref:t},Re=(0,yt.useRef)(null),Se=xE();return(0,yt.useEffect)(()=>{ + Re.current&&n!==void 0&&Se.addEventListener(Re.current,'reset',()=>{ + w?.(n); + }); + },[Re,w]),yt.default.createElement(SM.Provider,{value:se},yt.default.createElement(kM.Provider,{value:I},yt.default.createElement(TZ,{value:ra(I.comboboxState,{0:Wm.Open,1:Wm.Closed})},s!=null&&y!=null&&xM({[s]:y}).map(([ie,ye],me)=>yt.default.createElement(wZ,{features:wM.Hidden,ref:me===0?Oe=>{ + var Ge;Re.current=(Ge=Oe?.closest('form'))!=null?Ge:null; + }:void 0,...TE({key:ie,as:'input',type:'hidden',hidden:!0,readOnly:!0,form:o,name:ie,value:ye})})),kl({ourProps:xe,theirProps:g,slot:G,defaultTag:X1e,name:'Combobox'})))); +}var J1e='input';function _1e(e,t){ + var r,n,i,o;let s=Gm(),{id:l=`headlessui-combobox-input-${s}`,onChange:c,displayValue:f,type:m='text',...v}=e,g=Km('Combobox.Input'),y=Cy('Combobox.Input'),w=Hm(g.inputRef,t),T=LZ(g.inputRef),S=(0,yt.useRef)(!1),A=xE(),b=Qt(()=>{ + y.onChange(null),g.optionsRef.current&&(g.optionsRef.current.scrollTop=0),y.goToOption(qn.Nothing); + }),C=function(){ + var U;return typeof f=='function'&&g.value!==void 0?(U=f(g.value))!=null?U:'':typeof g.value=='string'?g.value:''; + }();TM(([U,z],[j,J])=>{ + if(S.current)return;let K=g.inputRef.current;K&&((J===0&&z===1||U!==j)&&(K.value=U),requestAnimationFrame(()=>{ + if(S.current||!K||T?.activeElement!==K)return;let{selectionStart:ee,selectionEnd:re}=K;Math.abs((re??0)-(ee??0))===0&&ee===0&&K.setSelectionRange(K.value.length,K.value.length); + })); + },[C,g.comboboxState,T]),TM(([U],[z])=>{ + if(U===0&&z===1){ + if(S.current)return;let j=g.inputRef.current;if(!j)return;let J=j.value,{selectionStart:K,selectionEnd:ee,selectionDirection:re}=j;j.value='',j.value=J,re!==null?j.setSelectionRange(K,ee,re):j.setSelectionRange(K,ee); + } + },[g.comboboxState]);let x=(0,yt.useRef)(!1),k=Qt(()=>{ + x.current=!0; + }),P=Qt(()=>{ + A.nextFrame(()=>{ + x.current=!1; + }); + }),D=Qt(U=>{ + switch(S.current=!0,U.key){ + case $i.Enter:if(S.current=!1,g.comboboxState!==0||x.current)return;if(U.preventDefault(),U.stopPropagation(),g.activeOptionIndex===null){ + y.closeCombobox();return; + }y.selectActiveOption(),g.mode===0&&y.closeCombobox();break;case $i.ArrowDown:return S.current=!1,U.preventDefault(),U.stopPropagation(),ra(g.comboboxState,{0:()=>{ + y.goToOption(qn.Next); + },1:()=>{ + y.openCombobox(); + }});case $i.ArrowUp:return S.current=!1,U.preventDefault(),U.stopPropagation(),ra(g.comboboxState,{0:()=>{ + y.goToOption(qn.Previous); + },1:()=>{ + y.openCombobox(),A.nextFrame(()=>{ + g.value||y.goToOption(qn.Last); + }); + }});case $i.Home:if(U.shiftKey)break;return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.First);case $i.PageUp:return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.First);case $i.End:if(U.shiftKey)break;return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.Last);case $i.PageDown:return S.current=!1,U.preventDefault(),U.stopPropagation(),y.goToOption(qn.Last);case $i.Escape:return S.current=!1,g.comboboxState!==0?void 0:(U.preventDefault(),g.optionsRef.current&&!g.optionsPropsRef.current.static&&U.stopPropagation(),g.nullable&&g.mode===0&&g.value===null&&b(),y.closeCombobox());case $i.Tab:if(S.current=!1,g.comboboxState!==0)return;g.mode===0&&y.selectActiveOption(),y.closeCombobox();break; + } + }),N=Qt(U=>{ + c?.(U),g.nullable&&g.mode===0&&U.target.value===''&&b(),y.openCombobox(); + }),I=Qt(()=>{ + S.current=!1; + }),V=bE(()=>{ + if(g.labelId)return[g.labelId].join(' '); + },[g.labelId]),G=(0,yt.useMemo)(()=>({open:g.comboboxState===0,disabled:g.disabled}),[g]),B={ref:w,id:l,role:'combobox',type:m,'aria-controls':(r=g.optionsRef.current)==null?void 0:r.id,'aria-expanded':g.comboboxState===0,'aria-activedescendant':g.activeOptionIndex===null||(n=g.options[g.activeOptionIndex])==null?void 0:n.id,'aria-labelledby':V,'aria-autocomplete':'list',defaultValue:(o=(i=e.defaultValue)!=null?i:g.defaultValue!==void 0?f?.(g.defaultValue):null)!=null?o:g.defaultValue,disabled:g.disabled,onCompositionStart:k,onCompositionEnd:P,onKeyDown:D,onChange:N,onBlur:I};return kl({ourProps:B,theirProps:v,slot:G,defaultTag:J1e,name:'Combobox.Input'}); +}var $1e='button';function exe(e,t){ + var r;let n=Km('Combobox.Button'),i=Cy('Combobox.Button'),o=Hm(n.buttonRef,t),s=Gm(),{id:l=`headlessui-combobox-button-${s}`,...c}=e,f=xE(),m=Qt(T=>{ + switch(T.key){ + case $i.ArrowDown:return T.preventDefault(),T.stopPropagation(),n.comboboxState===1&&i.openCombobox(),f.nextFrame(()=>{ + var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0}); + });case $i.ArrowUp:return T.preventDefault(),T.stopPropagation(),n.comboboxState===1&&(i.openCombobox(),f.nextFrame(()=>{ + n.value||i.goToOption(qn.Last); + })),f.nextFrame(()=>{ + var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0}); + });case $i.Escape:return n.comboboxState!==0?void 0:(T.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&T.stopPropagation(),i.closeCombobox(),f.nextFrame(()=>{ + var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0}); + }));default:return; + } + }),v=Qt(T=>{ + if(bZ(T.currentTarget))return T.preventDefault();n.comboboxState===0?i.closeCombobox():(T.preventDefault(),i.openCombobox()),f.nextFrame(()=>{ + var S;return(S=n.inputRef.current)==null?void 0:S.focus({preventScroll:!0}); + }); + }),g=bE(()=>{ + if(n.labelId)return[n.labelId,l].join(' '); + },[n.labelId,l]),y=(0,yt.useMemo)(()=>({open:n.comboboxState===0,disabled:n.disabled,value:n.value}),[n]),w={ref:o,id:l,type:hZ(e,n.buttonRef),tabIndex:-1,'aria-haspopup':'listbox','aria-controls':(r=n.optionsRef.current)==null?void 0:r.id,'aria-expanded':n.comboboxState===0,'aria-labelledby':g,disabled:n.disabled,onClick:v,onKeyDown:m};return kl({ourProps:w,theirProps:c,slot:y,defaultTag:$1e,name:'Combobox.Button'}); +}var txe='label';function rxe(e,t){ + let r=Gm(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=Km('Combobox.Label'),s=Cy('Combobox.Label'),l=Hm(o.labelRef,t);Tn(()=>s.registerLabel(n),[n]);let c=Qt(()=>{ + var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0}); + }),f=(0,yt.useMemo)(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return kl({ourProps:{ref:l,id:n,onClick:c},theirProps:i,slot:f,defaultTag:txe,name:'Combobox.Label'}); +}var nxe='ul',ixe=CE.RenderStrategy|CE.Static;function oxe(e,t){ + let r=Gm(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,s=Km('Combobox.Options'),l=Hm(s.optionsRef,t),c=EZ(),f=(()=>c!==null?(c&Wm.Open)===Wm.Open:s.comboboxState===0)();Tn(()=>{ + var y;s.optionsPropsRef.current.static=(y=e.static)!=null?y:!1; + },[s.optionsPropsRef,e.static]),Tn(()=>{ + s.optionsPropsRef.current.hold=i; + },[s.optionsPropsRef,i]),vZ({container:s.optionsRef.current,enabled:s.comboboxState===0,accept(y){ + return y.getAttribute('role')==='option'?NodeFilter.FILTER_REJECT:y.hasAttribute('role')?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT; + },walk(y){ + y.setAttribute('role','none'); + }});let m=bE(()=>{ + var y,w;return(w=s.labelId)!=null?w:(y=s.buttonRef.current)==null?void 0:y.id; + },[s.labelId,s.buttonRef.current]),v=(0,yt.useMemo)(()=>({open:s.comboboxState===0}),[s]),g={'aria-labelledby':m,role:'listbox','aria-multiselectable':s.mode===1?!0:void 0,id:n,ref:l};return kl({ourProps:g,theirProps:o,slot:v,defaultTag:nxe,features:ixe,visible:f,name:'Combobox.Options'}); +}var axe='li';function sxe(e,t){ + var r,n;let i=Gm(),{id:o=`headlessui-combobox-option-${i}`,disabled:s=!1,value:l,...c}=e,f=Km('Combobox.Option'),m=Cy('Combobox.Option'),v=f.activeOptionIndex!==null?f.options[f.activeOptionIndex].id===o:!1,g=f.isSelected(l),y=(0,yt.useRef)(null),w=Is({disabled:s,value:l,domRef:y,textValue:(n=(r=y.current)==null?void 0:r.textContent)==null?void 0:n.toLowerCase()}),T=Hm(t,y),S=Qt(()=>m.selectOption(o));Tn(()=>m.registerOption(o,w),[w,o]);let A=(0,yt.useRef)(!f.__demoMode);Tn(()=>{ + if(!f.__demoMode)return;let I=Bm();return I.requestAnimationFrame(()=>{ + A.current=!0; + }),I.dispose; + },[]),Tn(()=>{ + if(f.comboboxState!==0||!v||!A.current||f.activationTrigger===0)return;let I=Bm();return I.requestAnimationFrame(()=>{ + var V,G;(G=(V=y.current)==null?void 0:V.scrollIntoView)==null||G.call(V,{block:'nearest'}); + }),I.dispose; + },[y,v,f.comboboxState,f.activationTrigger,f.activeOptionIndex]);let b=Qt(I=>{ + if(s)return I.preventDefault();S(),f.mode===0&&m.closeCombobox(),NZ()||requestAnimationFrame(()=>{ + var V;return(V=f.inputRef.current)==null?void 0:V.focus(); + }); + }),C=Qt(()=>{ + if(s)return m.goToOption(qn.Nothing);m.goToOption(qn.Specific,o); + }),x=OZ(),k=Qt(I=>x.update(I)),P=Qt(I=>{ + x.wasMoved(I)&&(s||v||m.goToOption(qn.Specific,o,0)); + }),D=Qt(I=>{ + x.wasMoved(I)&&(s||v&&(f.optionsPropsRef.current.hold||m.goToOption(qn.Nothing))); + }),N=(0,yt.useMemo)(()=>({active:v,selected:g,disabled:s}),[v,g,s]);return kl({ourProps:{id:o,ref:T,role:'option',tabIndex:s===!0?void 0:-1,'aria-disabled':s===!0?!0:void 0,'aria-selected':g,disabled:void 0,onClick:b,onFocus:C,onPointerEnter:k,onMouseEnter:k,onPointerMove:P,onMouseMove:P,onPointerLeave:D,onMouseLeave:D},theirProps:c,slot:N,defaultTag:axe,name:'Combobox.Option'}); +}var lxe=Ol(Z1e),uxe=Ol(exe),cxe=Ol(_1e),fxe=Ol(rxe),dxe=Ol(oxe),pxe=Ol(sxe),Hf=Object.assign(lxe,{Input:cxe,Button:uxe,Label:fxe,Options:dxe,Option:pxe});var iI=fe(mf(),1),$we=Object.defineProperty,oe=(e,t)=>$we(e,'name',{value:t,configurable:!0});function _u(e){ + let t=(0,te.createContext)(null);return t.displayName=e,t; +}oe(_u,'createNullableContext');function $u(e){ + function t(r){ + var n;let i=(0,te.useContext)(e);if(i===null&&r!=null&&r.nonNull)throw new Error(`Tried to use \`${((n=r.caller)==null?void 0:n.name)||t.caller.name}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i; + }return oe(t,'useGivenContext'),Object.defineProperty(t,'name',{value:`use${e.displayName}`}),t; +}oe($u,'createContextHook');var d_=_u('StorageContext');function p_(e){ + let t=(0,te.useRef)(!0),[r,n]=(0,te.useState)(new dp(e.storage));return(0,te.useEffect)(()=>{ + t.current?t.current=!1:n(new dp(e.storage)); + },[e.storage]),(0,Y.jsx)(d_.Provider,{value:r,children:e.children}); +}oe(p_,'StorageContextProvider');var Pl=$u(d_),eEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('rect',{x:6,y:6,width:2,height:2,rx:1,fill:'currentColor'})),'SvgArgument'),tEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 9',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M1 1L7 7L13 1',stroke:'currentColor',strokeWidth:1.5})),'SvgChevronDown'),rEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 7 10',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M6 1.04819L2 5.04819L6 9.04819',stroke:'currentColor',strokeWidth:1.75})),'SvgChevronLeft'),nEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 9',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M13 8L7 2L1 8',stroke:'currentColor',strokeWidth:1.5})),'SvgChevronUp'),iEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M1 1L12.9998 12.9997',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{d:'M13 1L1.00079 13.0003',stroke:'currentColor',strokeWidth:1.5})),'SvgClose'),oEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'-2 -2 22 22',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('rect',{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:'currentColor',strokeWidth:1.5})),'SvgCopy'),aEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M5 9L9 5',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M5 5L9 9',stroke:'currentColor',strokeWidth:1.2})),'SvgDeprecatedArgument'),sEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 12 12',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M4 8L8 4',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M4 4L8 8',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z',fill:'currentColor'})),'SvgDeprecatedEnumValue'),lEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 12 12',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M4 8L8 4',stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M4 4L8 8',stroke:'currentColor',strokeWidth:1.2})),'SvgDeprecatedField'),uEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0.5 12 12',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:7,y:5.5,width:2,height:2,rx:1,transform:'rotate(90 7 5.5)',fill:'currentColor'}),ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z',fill:'currentColor'})),'SvgDirective'),cEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 20 24',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{d:'M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z',fill:'currentColor'})),'SvgDocsFilled'),fEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 20 24',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('line',{x1:13,y1:11.75,x2:6,y2:11.75,stroke:'currentColor',strokeWidth:1.5})),'SvgDocs'),dEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 12 12',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:5,y:5,width:2,height:2,rx:1,fill:'currentColor'}),ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z',fill:'currentColor'})),'SvgEnumValue'),pEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 12 13',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:'currentColor',strokeWidth:1.2}),ue.createElement('rect',{x:5,y:5.5,width:2,height:2,rx:1,fill:'currentColor'})),'SvgField'),mEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 24 20',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249',stroke:'currentColor',strokeWidth:1.5,strokeLinecap:'square'}),ue.createElement('path',{d:'M13.75 5.25V10.75H18.75',stroke:'currentColor',strokeWidth:1.5,strokeLinecap:'square'}),ue.createElement('path',{d:'M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25',stroke:'currentColor',strokeWidth:1.5})),'SvgHistory'),hEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 12 12',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('circle',{cx:6,cy:6,r:5.4,stroke:'currentColor',strokeWidth:1.2,strokeDasharray:'4.241025 4.241025',transform:'rotate(22.5)','transform-origin':'center'}),ue.createElement('circle',{cx:6,cy:6,r:1,fill:'currentColor'})),'SvgImplements'),vEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 19 18',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z',stroke:'currentColor',strokeWidth:1.125,strokeLinecap:'round',strokeLinejoin:'round'}),ue.createElement('path',{d:'M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z',stroke:'currentColor',strokeWidth:1.125,strokeLinecap:'round',strokeLinejoin:'round'}),ue.createElement('path',{d:'M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z',stroke:'currentColor',strokeWidth:1.125,strokeLinecap:'round',strokeLinejoin:'round'}),ue.createElement('path',{d:'M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z',stroke:'currentColor',strokeWidth:1.125,strokeLinecap:'round',strokeLinejoin:'round'}),ue.createElement('path',{d:'M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z',stroke:'currentColor',strokeWidth:1.125,strokeLinecap:'round',strokeLinejoin:'round'})),'SvgKeyboardShortcut'),gEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 13 13',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('circle',{cx:5,cy:5,r:4.35,stroke:'currentColor',strokeWidth:1.3}),ue.createElement('line',{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:'currentColor',strokeWidth:1.3})),'SvgMagnifyingGlass'),yEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'-2 -2 22 22',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{d:'M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{d:'M6 4.5L9 7.5L12 4.5',stroke:'currentColor',strokeWidth:1.5}),ue.createElement('path',{d:'M12 13.5L9 10.5L6 13.5',stroke:'currentColor',strokeWidth:1.5})),'SvgMerge'),bEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z',fill:'currentColor'}),ue.createElement('path',{d:'M11.5 4.5L9.5 2.5',stroke:'currentColor',strokeWidth:1.4026,strokeLinecap:'round',strokeLinejoin:'round'}),ue.createElement('path',{d:'M5.5 10.5L3.5 8.5',stroke:'currentColor',strokeWidth:1.4026,strokeLinecap:'round',strokeLinejoin:'round'})),'SvgPen'),AEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 16 18',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z',fill:'currentColor'})),'SvgPlay'),xEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 10 16',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z',fill:'currentColor'})),'SvgPlus'),wEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{width:25,height:25,viewBox:'0 0 25 25',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M10.2852 24.0745L13.7139 18.0742',stroke:'currentColor',strokeWidth:1.5625}),ue.createElement('path',{d:'M14.5742 24.0749L17.1457 19.7891',stroke:'currentColor',strokeWidth:1.5625}),ue.createElement('path',{d:'M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735',stroke:'currentColor',strokeWidth:1.5625}),ue.createElement('path',{d:'M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z',stroke:'currentColor',strokeWidth:1.5625,strokeLinejoin:'round'}),ue.createElement('path',{d:'M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z',stroke:'currentColor',strokeWidth:1.5625,strokeLinejoin:'round'})),'SvgPrettify'),EEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 16 16',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M4.75 9.25H1.25V12.75',stroke:'currentColor',strokeWidth:1,strokeLinecap:'square'}),ue.createElement('path',{d:'M11.25 6.75H14.75V3.25',stroke:'currentColor',strokeWidth:1,strokeLinecap:'square'}),ue.createElement('path',{d:'M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513',stroke:'currentColor',strokeWidth:1}),ue.createElement('path',{d:'M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487',stroke:'currentColor',strokeWidth:1})),'SvgReload'),TEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 13 13',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:'currentColor',strokeWidth:1.2}),ue.createElement('path',{d:'M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5',stroke:'currentColor',strokeWidth:1.2})),'SvgRootType'),CEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 21 20',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z',fill:'currentColor'})),'SvgSettings'),SEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z',fill:'currentColor',stroke:'currentColor'})),'SvgStarFilled'),kEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 14 14',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z',stroke:'currentColor',strokeWidth:1.5})),'SvgStar'),OEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 16 16',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{width:16,height:16,rx:2,fill:'currentColor'})),'SvgStop'),NEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{width:'1em',height:'5em',xmlns:'http://www.w3.org/2000/svg',fillRule:'evenodd','aria-hidden':'true',viewBox:'0 0 23 23',style:{height:'1.5em'},clipRule:'evenodd','aria-labelledby':t,...r},e===void 0?ue.createElement('title',{id:t},'trash icon'):e?ue.createElement('title',{id:t},e):null,ue.createElement('path',{d:'M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z',fill:'currentColor',strokeWidth:.25,stroke:'currentColor'})),'SvgTrash'),DEe=oe(({title:e,titleId:t,...r})=>ue.createElement('svg',{height:'1em',viewBox:'0 0 13 13',fill:'none',xmlns:'http://www.w3.org/2000/svg','aria-labelledby':t,...r},e?ue.createElement('title',{id:t},e):null,ue.createElement('rect',{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:'currentColor',strokeWidth:1.2}),ue.createElement('rect',{x:5.5,y:5.5,width:2,height:2,rx:1,fill:'currentColor'})),'SvgType'),LEe=zt(eEe),m_=zt(tEe),PEe=zt(rEe),h_=zt(nEe),cI=zt(iEe),v_=zt(oEe),REe=zt(aEe),MEe=zt(sEe),IEe=zt(lEe),FEe=zt(uEe),qEe=zt(cEe,'filled docs icon'),jEe=zt(fEe),VEe=zt(dEe),UEe=zt(pEe),BEe=zt(mEe),GEe=zt(hEe),g_=zt(vEe),zEe=zt(gEe),y_=zt(yEe),HEe=zt(bEe),QEe=zt(AEe),b_=zt(xEe),A_=zt(wEe),x_=zt(EEe),WEe=zt(TEe),w_=zt(CEe),YEe=zt(SEe,'filled star icon'),KEe=zt(kEe),XEe=zt(OEe),ZEe=zt(NEe,'trash icon'),IE=zt(DEe);function zt(e,t=e.name.replace('Svg','').replaceAll(/([A-Z])/g,' $1').trimStart().toLowerCase()+' icon'){ + return e.defaultProps={title:t},e; +}oe(zt,'generateIcon');var pn=(0,te.forwardRef)((e,t)=>(0,Y.jsx)('button',{...e,ref:t,className:gn('graphiql-un-styled',e.className)}));pn.displayName='UnStyledButton';var aa=(0,te.forwardRef)((e,t)=>(0,Y.jsx)('button',{...e,ref:t,className:gn('graphiql-button',{success:'graphiql-button-success',error:'graphiql-button-error'}[e.state],e.className)}));aa.displayName='Button';var XE=(0,te.forwardRef)((e,t)=>(0,Y.jsx)('div',{...e,ref:t,className:gn('graphiql-button-group',e.className)}));XE.displayName='ButtonGroup';var Zy=oe((e,t)=>Object.entries(t).reduce((r,[n,i])=>(r[n]=i,r),e),'createComponentGroup'),E_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(eG,{asChild:!0,children:(0,Y.jsxs)(pn,{...e,ref:t,type:'button',className:gn('graphiql-dialog-close',e.className),children:[(0,Y.jsx)(Cx,{children:'Close dialog'}),(0,Y.jsx)(cI,{})]})}));E_.displayName='Dialog.Close';function T_({children:e,...t}){ + return(0,Y.jsx)(YB,{...t,children:(0,Y.jsxs)(XB,{children:[(0,Y.jsx)(ZB,{className:'graphiql-dialog-overlay'}),(0,Y.jsx)(JB,{className:'graphiql-dialog',children:e})]})}); +}oe(T_,'DialogRoot');var $f=Zy(T_,{Close:E_,Title:_B,Trigger:KB,Description:$B}),C_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)($G,{asChild:!0,children:(0,Y.jsx)('button',{...e,ref:t,className:gn('graphiql-un-styled',e.className)})}));C_.displayName='DropdownMenuButton';function S_({children:e,align:t='start',sideOffset:r=5,className:n,...i}){ + return(0,Y.jsx)(ez,{children:(0,Y.jsx)(tz,{align:t,sideOffset:r,className:gn('graphiql-dropdown-content',n),...i,children:e})}); +}oe(S_,'Content');var JEe=oe(({className:e,children:t,...r})=>(0,Y.jsx)(rz,{className:gn('graphiql-dropdown-item',e),...r,children:t}),'Item'),Zu=Zy(_G,{Button:C_,Item:JEe,Content:S_}),BE=new f_.default({breaks:!0,linkify:!0}),js=(0,te.forwardRef)(({children:e,onlyShowFirstChild:t,type:r,...n},i)=>(0,Y.jsx)('div',{...n,ref:i,className:gn(`graphiql-markdown-${r}`,t&&'graphiql-markdown-preview',n.className),dangerouslySetInnerHTML:{__html:BE.render(e)}}));js.displayName='MarkdownContent';var ZE=(0,te.forwardRef)((e,t)=>(0,Y.jsx)('div',{...e,ref:t,className:gn('graphiql-spinner',e.className)}));ZE.displayName='Spinner';function k_({children:e,align:t='start',side:r='bottom',sideOffset:n=5,label:i}){ + return(0,Y.jsxs)(ZX,{children:[(0,Y.jsx)(JX,{asChild:!0,children:e}),(0,Y.jsx)(_X,{children:(0,Y.jsx)($X,{className:'graphiql-tooltip',align:t,side:r,sideOffset:n,children:i})})]}); +}oe(k_,'TooltipRoot');var ti=Zy(k_,{Provider:XX}),O_=(0,te.forwardRef)(({isActive:e,value:t,children:r,className:n,...i},o)=>(0,Y.jsx)(vE.Item,{...i,ref:o,value:t,'aria-selected':e?'true':void 0,role:'tab',className:gn('graphiql-tab',e&&'graphiql-tab-active',n),children:r}));O_.displayName='Tab';var N_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(pn,{...e,ref:t,type:'button',className:gn('graphiql-tab-button',e.className),children:e.children}));N_.displayName='Tab.Button';var D_=(0,te.forwardRef)((e,t)=>(0,Y.jsx)(ti,{label:'Close Tab',children:(0,Y.jsx)(pn,{'aria-label':'Close Tab',...e,ref:t,type:'button',className:gn('graphiql-tab-close',e.className),children:(0,Y.jsx)(cI,{})})}));D_.displayName='Tab.Close';var JE=Zy(O_,{Button:N_,Close:D_}),fI=(0,te.forwardRef)(({values:e,onReorder:t,children:r,className:n,...i},o)=>(0,Y.jsx)(vE.Group,{...i,ref:o,values:e,onReorder:t,axis:'x',role:'tablist',className:gn('graphiql-tabs',n),children:r}));fI.displayName='Tabs';var L_=_u('HistoryContext');function P_(e){ + var t;let r=Pl(),n=(0,te.useRef)(new OA(r||new dp(null),e.maxHistoryLength||_Ee)),[i,o]=(0,te.useState)(((t=n.current)==null?void 0:t.queries)||[]),s=(0,te.useCallback)(g=>{ + var y;(y=n.current)==null||y.updateHistory(g),o(n.current.queries); + },[]),l=(0,te.useCallback)((g,y)=>{ + n.current.editLabel(g,y),o(n.current.queries); + },[]),c=(0,te.useCallback)(g=>{ + n.current.toggleFavorite(g),o(n.current.queries); + },[]),f=(0,te.useCallback)(g=>g,[]),m=(0,te.useCallback)((g,y=!1)=>{ + n.current.deleteHistory(g,y),o(n.current.queries); + },[]),v=(0,te.useMemo)(()=>({addToHistory:s,editLabel:l,items:i,toggleFavorite:c,setActive:f,deleteFromHistory:m}),[s,l,i,c,f,m]);return(0,Y.jsx)(L_.Provider,{value:v,children:e.children}); +}oe(P_,'HistoryContextProvider');var _E=$u(L_),_Ee=20;function R_(){ + let{items:e,deleteFromHistory:t}=_E({nonNull:!0}),r=e.slice().map((l,c)=>({...l,index:c})).reverse(),n=r.filter(l=>l.favorite);n.length&&(r=r.filter(l=>!l.favorite));let[i,o]=(0,te.useState)(null);(0,te.useEffect)(()=>{ + i&&setTimeout(()=>{ + o(null); + },2e3); + },[i]);let s=(0,te.useCallback)(()=>{ + try{ + for(let l of r)t(l,!0);o('success'); + }catch{ + o('error'); + } + },[t,r]);return(0,Y.jsxs)('section',{'aria-label':'History',className:'graphiql-history',children:[(0,Y.jsxs)('div',{className:'graphiql-history-header',children:['History',(i||r.length>0)&&(0,Y.jsx)(aa,{type:'button',state:i||void 0,disabled:!r.length,onClick:s,children:{success:'Cleared',error:'Failed to Clear'}[i]||'Clear'})]}),!!n.length&&(0,Y.jsx)('ul',{className:'graphiql-history-items',children:n.map(l=>(0,Y.jsx)(By,{item:l},l.index))}),!!n.length&&!!r.length&&(0,Y.jsx)('div',{className:'graphiql-history-item-spacer'}),!!r.length&&(0,Y.jsx)('ul',{className:'graphiql-history-items',children:r.map(l=>(0,Y.jsx)(By,{item:l},l.index))})]}); +}oe(R_,'History');function By(e){ + let{editLabel:t,toggleFavorite:r,deleteFromHistory:n,setActive:i}=_E({nonNull:!0,caller:By}),{headerEditor:o,queryEditor:s,variableEditor:l}=$r({nonNull:!0,caller:By}),c=(0,te.useRef)(null),f=(0,te.useRef)(null),[m,v]=(0,te.useState)(!1);(0,te.useEffect)(()=>{ + var C;m&&((C=c.current)==null||C.focus()); + },[m]);let g=e.item.label||e.item.operationName||M_(e.item.query),y=(0,te.useCallback)(()=>{ + var C;v(!1);let{index:x,...k}=e.item;t({...k,label:(C=c.current)==null?void 0:C.value},x); + },[t,e.item]),w=(0,te.useCallback)(()=>{ + v(!1); + },[]),T=(0,te.useCallback)(C=>{ + C.stopPropagation(),v(!0); + },[]),S=(0,te.useCallback)(()=>{ + let{query:C,variables:x,headers:k}=e.item;s?.setValue(C??''),l?.setValue(x??''),o?.setValue(k??''),i(e.item); + },[o,e.item,s,i,l]),A=(0,te.useCallback)(C=>{ + C.stopPropagation(),n(e.item); + },[e.item,n]),b=(0,te.useCallback)(C=>{ + C.stopPropagation(),r(e.item); + },[e.item,r]);return(0,Y.jsx)('li',{className:gn('graphiql-history-item',m&&'editable'),children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)('input',{type:'text',defaultValue:e.item.label,ref:c,onKeyDown:C=>{ + C.key==='Esc'?v(!1):C.key==='Enter'&&(v(!1),t({...e.item,label:C.currentTarget.value})); + },placeholder:'Type a label'}),(0,Y.jsx)(pn,{type:'button',ref:f,onClick:y,children:'Save'}),(0,Y.jsx)(pn,{type:'button',ref:f,onClick:w,children:(0,Y.jsx)(cI,{})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ti,{label:'Set active',children:(0,Y.jsx)(pn,{type:'button',className:'graphiql-history-item-label',onClick:S,'aria-label':'Set active',children:g})}),(0,Y.jsx)(ti,{label:'Edit label',children:(0,Y.jsx)(pn,{type:'button',className:'graphiql-history-item-action',onClick:T,'aria-label':'Edit label',children:(0,Y.jsx)(HEe,{'aria-hidden':'true'})})}),(0,Y.jsx)(ti,{label:e.item.favorite?'Remove favorite':'Add favorite',children:(0,Y.jsx)(pn,{type:'button',className:'graphiql-history-item-action',onClick:b,'aria-label':e.item.favorite?'Remove favorite':'Add favorite',children:e.item.favorite?(0,Y.jsx)(YEe,{'aria-hidden':'true'}):(0,Y.jsx)(KEe,{'aria-hidden':'true'})})}),(0,Y.jsx)(ti,{label:'Delete from history',children:(0,Y.jsx)(pn,{type:'button',className:'graphiql-history-item-action',onClick:A,'aria-label':'Delete from history',children:(0,Y.jsx)(ZEe,{'aria-hidden':'true'})})})]})}); +}oe(By,'HistoryItem');function M_(e){ + return e?.split(` +`).map(t=>t.replace(/#(.*)/,'')).join(' ').replaceAll('{',' { ').replaceAll('}',' } ').replaceAll(/[\s]{2,}/g,' '); +}oe(M_,'formatQuery');var I_=_u('ExecutionContext');function GE({fetcher:e,getDefaultFieldNames:t,children:r,operationName:n}){ + if(!e)throw new TypeError('The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.');let{externalFragments:i,headerEditor:o,queryEditor:s,responseEditor:l,variableEditor:c,updateActiveTabValues:f}=$r({nonNull:!0,caller:GE}),m=_E(),v=WE({getDefaultFieldNames:t,caller:GE}),[g,y]=(0,te.useState)(!1),[w,T]=(0,te.useState)(null),S=(0,te.useRef)(0),A=(0,te.useCallback)(()=>{ + w?.unsubscribe(),y(!1),T(null); + },[w]),b=(0,te.useCallback)(async()=>{ + if(!s||!l)return;if(w){ + A();return; + }let k=oe(U=>{ + l.setValue(U),f({response:U}); + },'setResponse');S.current+=1;let P=S.current,D=v()||s.getValue(),N=c?.getValue(),I;try{ + I=oI({json:N,errorMessageParse:'Variables are invalid JSON',errorMessageType:'Variables are not a JSON object.'}); + }catch(U){ + k(U instanceof Error?U.message:`${U}`);return; + }let V=o?.getValue(),G;try{ + G=oI({json:V,errorMessageParse:'Headers are invalid JSON',errorMessageType:'Headers are not a JSON object.'}); + }catch(U){ + k(U instanceof Error?U.message:`${U}`);return; + }if(i){ + let U=s.documentAST?UA(s.documentAST,i):[];U.length>0&&(D+=` `+U.map(z=>(0,$e.print)(z)).join(` -`))}k(""),y(!0);let B=n??s.operationName??void 0;m?.addToHistory({query:D,variables:N,headers:V,operationName:B});try{let U={data:{}},z=oe(K=>{if(P!==S.current)return;let ee=Array.isArray(K)?K:!1;if(!ee&&typeof K=="object"&&K!==null&&"hasNext"in K&&(ee=[K]),ee){let re={data:U.data},se=[...U?.errors||[],...ee.flatMap(xe=>xe.errors).filter(Boolean)];se.length&&(re.errors=se);for(let xe of ee){let{path:Re,data:Se,errors:ie,...ye}=xe;if(Re){if(!Se)throw new Error(`Expected part to contain a data property, but got ${xe}`);(0,u_.default)(re.data,Re,Se,{merge:!0})}else Se&&(re.data=Se);U={...re,...ye}}y(!1),k(SA(U))}else{let re=SA(K);y(!1),k(re)}},"handleResponse"),j=e({query:D,variables:I,operationName:B},{headers:G??void 0,documentAST:s.documentAST??void 0}),J=await Promise.resolve(j);if(YN(J))T(J.subscribe({next(K){z(K)},error(K){y(!1),K&&k(fp(K)),T(null)},complete(){y(!1),T(null)}}));else if(KN(J)){T({unsubscribe:()=>{var K,ee;return(ee=(K=J[Symbol.asyncIterator]()).return)==null?void 0:ee.call(K)}});for await(let K of J)z(K);y(!1),T(null)}else z(J)}catch(U){y(!1),k(fp(U)),T(null)}},[v,i,e,o,m,n,s,l,A,w,f,c]),C=!!w,x=(0,te.useMemo)(()=>({isFetching:g,isSubscribed:C,operationName:n??null,run:b,stop:A}),[g,C,n,b,A]);return(0,Y.jsx)(I_.Provider,{value:x,children:r})}oe(GE,"ExecutionContextProvider");var ec=$u(I_);function oI({json:e,errorMessageParse:t,errorMessageType:r}){let n;try{n=e&&e.trim()!==""?JSON.parse(e):void 0}catch(o){throw new Error(`${t}: ${o instanceof Error?o.message:o}.`)}let i=typeof n=="object"&&n!==null&&!Array.isArray(n);if(n!==void 0&&!i)throw new Error(r);return n}oe(oI,"tryParseJsonObject");var $E="graphiql",eT="sublime",F_=!1;typeof window=="object"&&(F_=window.navigator.platform.toLowerCase().indexOf("mac")===0);var tT={[F_?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function nh(e,t){let r=await Promise.resolve().then(()=>(ia(),FZ)).then(n=>n.c).then(n=>typeof n=="function"?n:n.default);return await Promise.all(t?.useCommonAddons===!1?e:[Promise.resolve().then(()=>(OM(),VZ)).then(n=>n.s),Promise.resolve().then(()=>(HZ(),zZ)).then(n=>n.m),Promise.resolve().then(()=>(KZ(),YZ)).then(n=>n.c),Promise.resolve().then(()=>(LM(),DM)).then(n=>n.b),Promise.resolve().then(()=>(RM(),PM)).then(n=>n.f),Promise.resolve().then(()=>(iJ(),nJ)).then(n=>n.l),Promise.resolve().then(()=>(IM(),MM)).then(n=>n.s),Promise.resolve().then(()=>(jM(),qM)).then(n=>n.j),Promise.resolve().then(()=>(ky(),FM)).then(n=>n.d),Promise.resolve().then(()=>(UM(),VM)).then(n=>n.s),...e]),r}oe(nh,"importCodeMirror");var $Ee=oe(e=>e?(0,$e.print)(e):"","printDefault");function dI({field:e}){if(!("defaultValue"in e)||e.defaultValue===void 0)return null;let t=(0,$e.astFromValue)(e.defaultValue,e.type);return t?(0,Y.jsxs)(Y.Fragment,{children:[" = ",(0,Y.jsx)("span",{className:"graphiql-doc-explorer-default-value",children:$Ee(t)})]}):null}oe(dI,"DefaultValue");var q_=_u("SchemaContext");function pI(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let{initialHeaders:t,headerEditor:r}=$r({nonNull:!0,caller:pI}),[n,i]=(0,te.useState)(),[o,s]=(0,te.useState)(!1),[l,c]=(0,te.useState)(null),f=(0,te.useRef)(0);(0,te.useEffect)(()=>{i((0,$e.isSchema)(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),f.current++},[e.schema]);let m=(0,te.useRef)(t);(0,te.useEffect)(()=>{r&&(m.current=r.getValue())});let{introspectionQuery:v,introspectionQueryName:g,introspectionQuerySansSubscriptions:y}=j_({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:w,onSchemaChange:T,dangerouslyAssumeSchemaIsValid:S,children:A}=e,b=(0,te.useCallback)(()=>{if((0,$e.isSchema)(e.schema)||e.schema===null)return;let k=++f.current,P=e.schema;async function D(){if(P)return P;let N=V_(m.current);if(!N.isValidJSON){c("Introspection failed as headers are invalid.");return}let I=N.headers?{headers:N.headers}:{},V=XN(w({query:v,operationName:g},I));if(!WN(V)){c("Fetcher did not return a Promise for introspection.");return}s(!0),c(null);let G=await V;if(typeof G!="object"||G===null||!("data"in G)){let U=XN(w({query:y,operationName:g},I));if(!WN(U))throw new Error("Fetcher did not return a Promise for introspection.");G=await U}if(s(!1),G!=null&&G.data&&"__schema"in G.data)return G.data;let B=typeof G=="string"?G:SA(G);c(B)}oe(D,"fetchIntrospectionData"),D().then(N=>{if(!(k!==f.current||!N))try{let I=(0,$e.buildClientSchema)(N);i(I),T?.(I)}catch(I){c(fp(I))}}).catch(N=>{k===f.current&&(c(fp(N)),s(!1))})},[w,g,v,y,T,e.schema]);(0,te.useEffect)(()=>{b()},[b]),(0,te.useEffect)(()=>{function k(P){P.ctrlKey&&P.key==="R"&&b()}return oe(k,"triggerIntrospection"),window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)});let C=(0,te.useMemo)(()=>!n||S?[]:(0,$e.validateSchema)(n),[n,S]),x=(0,te.useMemo)(()=>({fetchError:l,introspect:b,isFetching:o,schema:n,validationErrors:C}),[l,b,o,n,C]);return(0,Y.jsx)(q_.Provider,{value:x,children:A})}oe(pI,"SchemaContextProvider");var So=$u(q_);function j_({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:r}){return(0,te.useMemo)(()=>{let n=t||"IntrospectionQuery",i=(0,$e.getIntrospectionQuery)({inputValueDeprecation:e,schemaDescription:r});t&&(i=i.replace("query IntrospectionQuery",`query ${n}`));let o=i.replace("subscriptionType { name }","");return{introspectionQueryName:n,introspectionQuery:i,introspectionQuerySansSubscriptions:o}},[e,t,r])}oe(j_,"useIntrospectionQuery");function V_(e){let t=null,r=!0;try{e&&(t=JSON.parse(e))}catch{r=!1}return{headers:t,isValidJSON:r}}oe(V_,"parseHeaderString");var FE={name:"Docs"},U_=_u("ExplorerContext");function mI(e){let{schema:t,validationErrors:r}=So({nonNull:!0,caller:mI}),[n,i]=(0,te.useState)([FE]),o=(0,te.useCallback)(f=>{i(m=>m.at(-1).def===f.def?m:[...m,f])},[]),s=(0,te.useCallback)(()=>{i(f=>f.length>1?f.slice(0,-1):f)},[]),l=(0,te.useCallback)(()=>{i(f=>f.length===1?f:[FE])},[]);(0,te.useEffect)(()=>{t==null||r.length>0?l():i(f=>{if(f.length===1)return f;let m=[FE],v=null;for(let g of f)if(g!==FE)if(g.def)if((0,$e.isNamedType)(g.def)){let y=t.getType(g.def.name);if(y)m.push({name:g.name,def:y}),v=y;else break}else{if(v===null)break;if((0,$e.isObjectType)(v)||(0,$e.isInputObjectType)(v)){let y=v.getFields()[g.name];if(y)m.push({name:g.name,def:y});else break}else{if((0,$e.isScalarType)(v)||(0,$e.isEnumType)(v)||(0,$e.isInterfaceType)(v)||(0,$e.isUnionType)(v))break;{let y=v;if(y.args.find(w=>w.name===g.name))m.push({name:g.name,def:y});else break}}}else v=null,m.push(g);return m})},[l,t,r]);let c=(0,te.useMemo)(()=>({explorerNavStack:n,push:o,pop:s,reset:l}),[n,o,s,l]);return(0,Y.jsx)(U_.Provider,{value:c,children:e.children})}oe(mI,"ExplorerContextProvider");var tc=$u(U_);function Gy(e,t){return(0,$e.isNonNullType)(e)?(0,Y.jsxs)(Y.Fragment,{children:[Gy(e.ofType,t),"!"]}):(0,$e.isListType)(e)?(0,Y.jsxs)(Y.Fragment,{children:["[",Gy(e.ofType,t),"]"]}):t(e)}oe(Gy,"renderType");function Ga(e){let{push:t}=tc({nonNull:!0,caller:Ga});return e.type?Gy(e.type,r=>(0,Y.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:n=>{n.preventDefault(),t({name:r.name,def:r})},href:"#",children:r.name})):null}oe(Ga,"TypeLink");function zy({arg:e,showDefaultValue:t,inline:r}){let n=(0,Y.jsxs)("span",{children:[(0,Y.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:e.name}),": ",(0,Y.jsx)(Ga,{type:e.type}),t!==!1&&(0,Y.jsx)(dI,{field:e})]});return r?n:(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[n,e.description?(0,Y.jsx)(js,{type:"description",children:e.description}):null,e.deprecationReason?(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,Y.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,Y.jsx)(js,{type:"deprecation",children:e.deprecationReason})]}):null]})}oe(zy,"Argument");function hI(e){return e.children?(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,Y.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,Y.jsx)(js,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}oe(hI,"DeprecationReason");function B_({directive:e}){return(0,Y.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}oe(B_,"Directive");function Co(e){let t=eTe[e.title];return(0,Y.jsxs)("div",{children:[(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[(0,Y.jsx)(t,{}),e.title]}),(0,Y.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}oe(Co,"ExplorerSection");var eTe={Arguments:LEe,"Deprecated Arguments":REe,"Deprecated Enum Values":MEe,"Deprecated Fields":IEe,Directives:FEe,"Enum Values":VEe,Fields:UEe,Implements:GEe,Implementations:IE,"Possible Types":IE,"Root Types":WEe,Type:IE,"All Schema Types":IE};function G_(e){return(0,Y.jsxs)(Y.Fragment,{children:[e.field.description?(0,Y.jsx)(js,{type:"description",children:e.field.description}):null,(0,Y.jsx)(hI,{preview:!1,children:e.field.deprecationReason}),(0,Y.jsx)(Co,{title:"Type",children:(0,Y.jsx)(Ga,{type:e.field.type})}),(0,Y.jsx)(z_,{field:e.field}),(0,Y.jsx)(H_,{field:e.field})]})}oe(G_,"FieldDocumentation");function z_({field:e}){let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{r(!0)},[]);if(!("args"in e))return null;let i=[],o=[];for(let s of e.args)s.deprecationReason?o.push(s):i.push(s);return(0,Y.jsxs)(Y.Fragment,{children:[i.length>0?(0,Y.jsx)(Co,{title:"Arguments",children:i.map(s=>(0,Y.jsx)(zy,{arg:s},s.name))}):null,o.length>0?t||i.length===0?(0,Y.jsx)(Co,{title:"Deprecated Arguments",children:o.map(s=>(0,Y.jsx)(zy,{arg:s},s.name))}):(0,Y.jsx)(aa,{type:"button",onClick:n,children:"Show Deprecated Arguments"}):null]})}oe(z_,"Arguments");function H_({field:e}){var t;let r=((t=e.astNode)==null?void 0:t.directives)||[];return!r||r.length===0?null:(0,Y.jsx)(Co,{title:"Directives",children:r.map(n=>(0,Y.jsx)("div",{children:(0,Y.jsx)(B_,{directive:n})},n.name.value))})}oe(H_,"Directives");function Q_(e){var t,r,n,i;let o=e.schema.getQueryType(),s=(r=(t=e.schema).getMutationType)==null?void 0:r.call(t),l=(i=(n=e.schema).getSubscriptionType)==null?void 0:i.call(n),c=e.schema.getTypeMap(),f=[o?.name,s?.name,l?.name];return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(js,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),(0,Y.jsxs)(Co,{title:"Root Types",children:[o?(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,Y.jsx)(Ga,{type:o})]}):null,s&&(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,Y.jsx)(Ga,{type:s})]}),l&&(0,Y.jsxs)("div",{children:[(0,Y.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,Y.jsx)(Ga,{type:l})]})]}),(0,Y.jsx)(Co,{title:"All Schema Types",children:c&&(0,Y.jsx)("div",{children:Object.values(c).map(m=>f.includes(m.name)||m.name.startsWith("__")?null:(0,Y.jsx)("div",{children:(0,Y.jsx)(Ga,{type:m})},m.name))})})]})}oe(Q_,"SchemaDocumentation");function _f(e,t){let r;return function(...n){r&&window.clearTimeout(r),r=window.setTimeout(()=>{r=null,t(...n)},e)}}oe(_f,"debounce");function vI(){let{explorerNavStack:e,push:t}=tc({nonNull:!0,caller:vI}),r=(0,te.useRef)(null),n=zE(),[i,o]=(0,te.useState)(""),[s,l]=(0,te.useState)(n(i)),c=(0,te.useMemo)(()=>_f(200,y=>{l(n(y))}),[n]);(0,te.useEffect)(()=>{c(i)},[c,i]),(0,te.useEffect)(()=>{function y(w){var T;w.metaKey&&w.key==="k"&&((T=r.current)==null||T.focus())}return oe(y,"handleKeyDown"),window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[]);let f=e.at(-1),m=(0,te.useCallback)(y=>{t("field"in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type})},[t]),v=(0,te.useRef)(!1),g=(0,te.useCallback)(y=>{v.current=y.type==="focus"},[]);return e.length===1||(0,$e.isObjectType)(f.def)||(0,$e.isInterfaceType)(f.def)||(0,$e.isInputObjectType)(f.def)?(0,Y.jsxs)(Hf,{as:"div",className:"graphiql-doc-explorer-search",onChange:m,"data-state":v?void 0:"idle","aria-label":`Search ${f.name}...`,children:[(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var y;(y=r.current)==null||y.focus()},children:[(0,Y.jsx)(zEe,{}),(0,Y.jsx)(Hf.Input,{autoComplete:"off",onFocus:g,onBlur:g,onChange:y=>o(y.target.value),placeholder:"\u2318 K",ref:r,value:i,"data-cy":"doc-explorer-input"})]}),v.current&&(0,Y.jsxs)(Hf.Options,{"data-cy":"doc-explorer-list",children:[s.within.length+s.types.length+s.fields.length===0?(0,Y.jsx)("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):s.within.map((y,w)=>(0,Y.jsx)(Hf.Option,{value:y,"data-cy":"doc-explorer-option",children:(0,Y.jsx)(aI,{field:y.field,argument:y.argument})},`within-${w}`)),s.within.length>0&&s.types.length+s.fields.length>0?(0,Y.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,s.types.map((y,w)=>(0,Y.jsx)(Hf.Option,{value:y,"data-cy":"doc-explorer-option",children:(0,Y.jsx)(HE,{type:y.type})},`type-${w}`)),s.fields.map((y,w)=>(0,Y.jsxs)(Hf.Option,{value:y,"data-cy":"doc-explorer-option",children:[(0,Y.jsx)(HE,{type:y.type}),".",(0,Y.jsx)(aI,{field:y.field,argument:y.argument})]},`field-${w}`))]})]}):null}oe(vI,"Search");function zE(e){let{explorerNavStack:t}=tc({nonNull:!0,caller:e||zE}),{schema:r}=So({nonNull:!0,caller:e||zE}),n=t.at(-1);return(0,te.useCallback)(i=>{let o={within:[],types:[],fields:[]};if(!r)return o;let s=n.def,l=r.getTypeMap(),c=Object.keys(l);s&&(c=c.filter(f=>f!==s.name),c.unshift(s.name));for(let f of c){if(o.within.length+o.types.length+o.fields.length>=100)break;let m=l[f];if(s!==m&&VE(f,i)&&o.types.push({type:m}),!(0,$e.isObjectType)(m)&&!(0,$e.isInterfaceType)(m)&&!(0,$e.isInputObjectType)(m))continue;let v=m.getFields();for(let g in v){let y=v[g],w;if(!VE(g,i))if("args"in y){if(w=y.args.filter(T=>VE(T.name,i)),w.length===0)continue}else continue;o[s===m?"within":"fields"].push(...w?w.map(T=>({type:m,field:y,argument:T})):[{type:m,field:y}])}}return o},[n.def,r])}oe(zE,"useSearchResults");function VE(e,t){try{let r=t.replaceAll(/[^_0-9A-Za-z]/g,n=>"\\"+n);return e.search(new RegExp(r,"i"))!==-1}catch{return e.toLowerCase().includes(t.toLowerCase())}}oe(VE,"isMatch");function HE(e){return(0,Y.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}oe(HE,"Type");function aI({field:e,argument:t}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:e.name}),t?(0,Y.jsxs)(Y.Fragment,{children:["(",(0,Y.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:t.name}),":"," ",Gy(t.type,r=>(0,Y.jsx)(HE,{type:r})),")"]}):null]})}oe(aI,"Field$1");function W_(e){let{push:t}=tc({nonNull:!0});return(0,Y.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:r=>{r.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}oe(W_,"FieldLink");function Y_(e){return(0,$e.isNamedType)(e.type)?(0,Y.jsxs)(Y.Fragment,{children:[e.type.description?(0,Y.jsx)(js,{type:"description",children:e.type.description}):null,(0,Y.jsx)(K_,{type:e.type}),(0,Y.jsx)(X_,{type:e.type}),(0,Y.jsx)(Z_,{type:e.type}),(0,Y.jsx)(J_,{type:e.type})]}):null}oe(Y_,"TypeDocumentation");function K_({type:e}){return(0,$e.isObjectType)(e)&&e.getInterfaces().length>0?(0,Y.jsx)(Co,{title:"Implements",children:e.getInterfaces().map(t=>(0,Y.jsx)("div",{children:(0,Y.jsx)(Ga,{type:t})},t.name))}):null}oe(K_,"ImplementsInterfaces");function X_({type:e}){let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{r(!0)},[]);if(!(0,$e.isObjectType)(e)&&!(0,$e.isInterfaceType)(e)&&!(0,$e.isInputObjectType)(e))return null;let i=e.getFields(),o=[],s=[];for(let l of Object.keys(i).map(c=>i[c]))l.deprecationReason?s.push(l):o.push(l);return(0,Y.jsxs)(Y.Fragment,{children:[o.length>0?(0,Y.jsx)(Co,{title:"Fields",children:o.map(l=>(0,Y.jsx)(sI,{field:l},l.name))}):null,s.length>0?t||o.length===0?(0,Y.jsx)(Co,{title:"Deprecated Fields",children:s.map(l=>(0,Y.jsx)(sI,{field:l},l.name))}):(0,Y.jsx)(aa,{type:"button",onClick:n,children:"Show Deprecated Fields"}):null]})}oe(X_,"Fields");function sI({field:e}){let t="args"in e?e.args.filter(r=>!r.deprecationReason):[];return(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[(0,Y.jsxs)("div",{children:[(0,Y.jsx)(W_,{field:e}),t.length>0?(0,Y.jsxs)(Y.Fragment,{children:["(",(0,Y.jsx)("span",{children:t.map(r=>t.length===1?(0,Y.jsx)(zy,{arg:r,inline:!0},r.name):(0,Y.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,Y.jsx)(zy,{arg:r,inline:!0})},r.name))}),")"]}):null,": ",(0,Y.jsx)(Ga,{type:e.type}),(0,Y.jsx)(dI,{field:e})]}),e.description?(0,Y.jsx)(js,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,(0,Y.jsx)(hI,{children:e.deprecationReason})]})}oe(sI,"Field");function Z_({type:e}){let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{r(!0)},[]);if(!(0,$e.isEnumType)(e))return null;let i=[],o=[];for(let s of e.getValues())s.deprecationReason?o.push(s):i.push(s);return(0,Y.jsxs)(Y.Fragment,{children:[i.length>0?(0,Y.jsx)(Co,{title:"Enum Values",children:i.map(s=>(0,Y.jsx)(lI,{value:s},s.name))}):null,o.length>0?t||i.length===0?(0,Y.jsx)(Co,{title:"Deprecated Enum Values",children:o.map(s=>(0,Y.jsx)(lI,{value:s},s.name))}):(0,Y.jsx)(aa,{type:"button",onClick:n,children:"Show Deprecated Values"}):null]})}oe(Z_,"EnumValues");function lI({value:e}){return(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[(0,Y.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:e.name}),e.description?(0,Y.jsx)(js,{type:"description",children:e.description}):null,e.deprecationReason?(0,Y.jsx)(js,{type:"deprecation",children:e.deprecationReason}):null]})}oe(lI,"EnumValue");function J_({type:e}){let{schema:t}=So({nonNull:!0});return!t||!(0,$e.isAbstractType)(e)?null:(0,Y.jsx)(Co,{title:(0,$e.isInterfaceType)(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map(r=>(0,Y.jsx)("div",{children:(0,Y.jsx)(Ga,{type:r})},r.name))})}oe(J_,"PossibleTypes");function QE(){let{fetchError:e,isFetching:t,schema:r,validationErrors:n}=So({nonNull:!0,caller:QE}),{explorerNavStack:i,pop:o}=tc({nonNull:!0,caller:QE}),s=i.at(-1),l=null;e?l=(0,Y.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):n.length>0?l=(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",n[0].message]}):t?l=(0,Y.jsx)(ZE,{}):r?i.length===1?l=(0,Y.jsx)(Q_,{schema:r}):(0,$e.isType)(s.def)?l=(0,Y.jsx)(Y_,{type:s.def}):s.def&&(l=(0,Y.jsx)(G_,{field:s.def})):l=(0,Y.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"});let c;return i.length>1&&(c=i.at(-2).name),(0,Y.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[(0,Y.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[c&&(0,Y.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:f=>{f.preventDefault(),o()},"aria-label":`Go back to ${c}`,children:[(0,Y.jsx)(PEe,{}),c]}),(0,Y.jsx)("div",{className:"graphiql-doc-explorer-title",children:s.name})]}),(0,Y.jsx)(vI,{},s.name)]}),(0,Y.jsx)("div",{className:"graphiql-doc-explorer-content",children:l})]})}oe(QE,"DocExplorer");var Hy={title:"Documentation Explorer",icon:oe(function(){let e=Jy();return e?.visiblePlugin===Hy?(0,Y.jsx)(qEe,{}):(0,Y.jsx)(jEe,{})},"Icon"),content:QE},s_={title:"History",icon:BEe,content:R_},__=_u("PluginContext");function $_(e){let t=Pl(),r=tc(),n=_E(),i=!!r,o=!!n,s=(0,te.useMemo)(()=>{let y=[],w={};i&&(y.push(Hy),w[Hy.title]=!0),o&&(y.push(s_),w[s_.title]=!0);for(let T of e.plugins||[]){if(typeof T.title!="string"||!T.title)throw new Error("All GraphiQL plugins must have a unique title");if(w[T.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${T.title}'`);y.push(T),w[T.title]=!0}return y},[i,o,e.plugins]),[l,c]=(0,te.useState)(()=>{let y=t?.get(l_);return s.find(T=>T.title===y)||(y&&t?.set(l_,""),e.visiblePlugin&&s.find(T=>(typeof e.visiblePlugin=="string"?T.title:T)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:f,children:m}=e,v=(0,te.useCallback)(y=>{let w=y&&s.find(T=>(typeof y=="string"?T.title:T)===y)||null;c(T=>w===T?T:(f?.(w),w))},[f,s]);(0,te.useEffect)(()=>{e.visiblePlugin&&v(e.visiblePlugin)},[s,e.visiblePlugin,v]);let g=(0,te.useMemo)(()=>({plugins:s,setVisiblePlugin:v,visiblePlugin:l}),[s,v,l]);return(0,Y.jsx)(__.Provider,{value:g,children:m})}oe($_,"PluginContextProvider");var Jy=$u(__),l_="visiblePlugin";function e$(e,t,r,n,i,o){nh([],{useCommonAddons:!1}).then(l=>{let c,f,m,v,g,y,w,T,S;l.on(t,"select",(A,b)=>{if(!c){let C=b.parentNode;c=document.createElement("div"),c.className="CodeMirror-hint-information",C.append(c);let x=document.createElement("header");x.className="CodeMirror-hint-information-header",c.append(x),f=document.createElement("span"),f.className="CodeMirror-hint-information-field-name",x.append(f),m=document.createElement("span"),m.className="CodeMirror-hint-information-type-name-pill",x.append(m),v=document.createElement("span"),m.append(v),g=document.createElement("a"),g.className="CodeMirror-hint-information-type-name",g.href="javascript:void 0",g.addEventListener("click",s),m.append(g),y=document.createElement("span"),m.append(y),w=document.createElement("div"),w.className="CodeMirror-hint-information-description",c.append(w),T=document.createElement("div"),T.className="CodeMirror-hint-information-deprecation",c.append(T);let k=document.createElement("span");k.className="CodeMirror-hint-information-deprecation-label",k.textContent="Deprecated",T.append(k),S=document.createElement("div"),S.className="CodeMirror-hint-information-deprecation-reason",T.append(S);let P=parseInt(window.getComputedStyle(c).paddingBottom.replace(/px$/,""),10)||0,D=parseInt(window.getComputedStyle(c).maxHeight.replace(/px$/,""),10)||0,N=oe(()=>{c&&(c.style.paddingTop=C.scrollTop+P+"px",c.style.maxHeight=C.scrollTop+D+"px")},"handleScroll");C.addEventListener("scroll",N);let I;C.addEventListener("DOMNodeRemoved",I=oe(V=>{V.target===C&&(C.removeEventListener("scroll",N),C.removeEventListener("DOMNodeRemoved",I),c&&c.removeEventListener("click",s),c=null,f=null,m=null,v=null,g=null,y=null,w=null,T=null,S=null,I=null)},"onRemoveFn"))}if(f&&(f.textContent=A.text),m&&v&&g&&y)if(A.type){m.style.display="inline";let C=oe(x=>{(0,$e.isNonNullType)(x)?(y.textContent="!"+y.textContent,C(x.ofType)):(0,$e.isListType)(x)?(v.textContent+="[",y.textContent="]"+y.textContent,C(x.ofType)):g.textContent=x.name},"renderType");v.textContent="",y.textContent="",C(A.type)}else v.textContent="",g.textContent="",y.textContent="",m.style.display="none";w&&(A.description?(w.style.display="block",w.innerHTML=BE.render(A.description)):(w.style.display="none",w.innerHTML="")),T&&S&&(A.deprecationReason?(T.style.display="block",S.innerHTML=BE.render(A.deprecationReason)):(T.style.display="none",S.innerHTML=""))})});function s(l){if(!r||!n||!i||!(l.currentTarget instanceof HTMLElement))return;let c=l.currentTarget.textContent||"",f=r.getType(c);f&&(i.setVisiblePlugin(Hy),n.push({name:f.name,def:f}),o?.(f))}oe(s,"onClickHintInformation")}oe(e$,"onHasCompletion");function Uy(e,t){(0,te.useEffect)(()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},[e,t])}oe(Uy,"useSynchronizeValue");function _y(e,t,r){(0,te.useEffect)(()=>{e&&e.setOption(t,r)},[e,t,r])}oe(_y,"useSynchronizeOption");function gI(e,t,r,n,i){let{updateActiveTabValues:o}=$r({nonNull:!0,caller:i}),s=Pl();(0,te.useEffect)(()=>{if(!e)return;let l=_f(500,m=>{!s||r===null||s.set(r,m)}),c=_f(100,m=>{o({[n]:m})}),f=oe((m,v)=>{if(!v)return;let g=m.getValue();l(g),c(g),t?.(g)},"handleChange");return e.on("change",f),()=>e.off("change",f)},[t,e,s,r,n,o])}oe(gI,"useChangeHandler");function yI(e,t,r){let{schema:n}=So({nonNull:!0,caller:r}),i=tc(),o=Jy();(0,te.useEffect)(()=>{if(!e)return;let s=oe((l,c)=>{e$(l,c,n,i,o,f=>{t?.({kind:"Type",type:f,schema:n||void 0})})},"handleCompletion");return e.on("hasCompletion",s),()=>e.off("hasCompletion",s)},[t,e,i,o,n])}oe(yI,"useCompletion");function za(e,t,r){(0,te.useEffect)(()=>{if(e){for(let n of t)e.removeKeyMap(n);if(r){let n={};for(let i of t)n[i]=()=>r();e.addKeyMap(n)}}},[e,t,r])}oe(za,"useKeyMap");function $y({caller:e,onCopyQuery:t}={}){let{queryEditor:r}=$r({nonNull:!0,caller:e||$y});return(0,te.useCallback)(()=>{if(!r)return;let n=r.getValue();(0,c_.default)(n),t?.(n)},[r,t])}oe($y,"useCopyQuery");function Ju({caller:e}={}){let{queryEditor:t}=$r({nonNull:!0,caller:e||Ju}),{schema:r}=So({nonNull:!0,caller:Ju});return(0,te.useCallback)(()=>{let n=t?.documentAST,i=t?.getValue();!n||!i||t.setValue((0,$e.print)(G4(n,r)))},[t,r])}oe(Ju,"useMergeQuery");function ed({caller:e}={}){let{queryEditor:t,headerEditor:r,variableEditor:n}=$r({nonNull:!0,caller:e||ed});return(0,te.useCallback)(()=>{if(n){let i=n.getValue();try{let o=JSON.stringify(JSON.parse(i),null,2);o!==i&&n.setValue(o)}catch{}}if(r){let i=r.getValue();try{let o=JSON.stringify(JSON.parse(i),null,2);o!==i&&r.setValue(o)}catch{}}if(t){let i=t.getValue(),o=(0,$e.print)((0,$e.parse)(i));o!==i&&t.setValue(o)}},[t,n,r])}oe(ed,"usePrettifyEditors");function WE({getDefaultFieldNames:e,caller:t}={}){let{schema:r}=So({nonNull:!0,caller:t||WE}),{queryEditor:n}=$r({nonNull:!0,caller:t||WE});return(0,te.useCallback)(()=>{if(!n)return;let i=n.getValue(),{insertions:o,result:s}=V4(r,i,e);return o&&o.length>0&&n.operation(()=>{let l=n.getCursor(),c=n.indexFromPos(l);n.setValue(s||"");let f=0,m=o.map(({index:g,string:y})=>n.markText(n.posFromIndex(g+f),n.posFromIndex(g+(f+=y.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(let g of m)g.clear()},7e3);let v=c;for(let{index:g,string:y}of o)ge?.setValue(n),[e]);return(0,te.useMemo)(()=>[t,r],[t,r])}oe(bI,"useOperationsEditorState");function tTe(){let{variableEditor:e}=$r({nonNull:!0}),t=e?.getValue()??"",r=(0,te.useCallback)(n=>e?.setValue(n),[e]);return(0,te.useMemo)(()=>[t,r],[t,r])}oe(tTe,"useVariablesEditorState");function rh({editorTheme:e=$E,keyMap:t=eT,onEdit:r,readOnly:n=!1}={},i){let{initialHeaders:o,headerEditor:s,setHeaderEditor:l,shouldPersistHeaders:c}=$r({nonNull:!0,caller:i||rh}),f=ec(),m=Ju({caller:i||rh}),v=ed({caller:i||rh}),g=(0,te.useRef)(null);return(0,te.useEffect)(()=>{let y=!0;return nh([Promise.resolve().then(()=>(vJ(),hJ)).then(w=>w.j)]).then(w=>{if(!y)return;let T=g.current;if(!T)return;let S=w(T,{value:o,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:n?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:tT});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:T})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:T})},"Alt-Space"(){S.showHint({completeSingle:!1,container:T})},"Shift-Space"(){S.showHint({completeSingle:!1,container:T})}}),S.on("keyup",(A,b)=>{let{code:C,key:x,shiftKey:k}=b,P=C.startsWith("Key"),D=!k&&C.startsWith("Digit");(P||D||x==="_"||x==='"')&&A.execCommand("autocomplete")}),l(S)}),()=>{y=!1}},[e,o,n,l]),_y(s,"keyMap",t),gI(s,r,c?UE:null,"headers",rh),za(s,["Cmd-Enter","Ctrl-Enter"],f?.run),za(s,["Shift-Ctrl-P"],v),za(s,["Shift-Ctrl-M"],m),g}oe(rh,"useHeaderEditor");var UE="headers",rTe=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029","\u202F","\xA0"]),nTe=new RegExp("["+rTe.join("")+"]","g");function t$(e){return e.replace(nTe," ")}oe(t$,"normalizeWhitespace");function Xu({editorTheme:e=$E,keyMap:t=eT,onClickReference:r,onCopyQuery:n,onEdit:i,readOnly:o=!1}={},s){let{schema:l}=So({nonNull:!0,caller:s||Xu}),{externalFragments:c,initialQuery:f,queryEditor:m,setOperationName:v,setQueryEditor:g,validationRules:y,variableEditor:w,updateActiveTabValues:T}=$r({nonNull:!0,caller:s||Xu}),S=ec(),A=Pl(),b=tc(),C=Jy(),x=$y({caller:s||Xu,onCopyQuery:n}),k=Ju({caller:s||Xu}),P=ed({caller:s||Xu}),D=(0,te.useRef)(null),N=(0,te.useRef)(),I=(0,te.useRef)(()=>{});(0,te.useEffect)(()=>{I.current=B=>{if(!(!b||!C)){switch(C.setVisiblePlugin(Hy),B.kind){case"Type":{b.push({name:B.type.name,def:B.type});break}case"Field":{b.push({name:B.field.name,def:B.field});break}case"Argument":{B.field&&b.push({name:B.field.name,def:B.field});break}case"EnumValue":{B.type&&b.push({name:B.type.name,def:B.type});break}}r?.(B)}}},[b,r,C]),(0,te.useEffect)(()=>{let B=!0;return nh([Promise.resolve().then(()=>(AJ(),bJ)).then(U=>U.c),Promise.resolve().then(()=>(GM(),BM)).then(U=>U.s),Promise.resolve().then(()=>(EJ(),wwe)),Promise.resolve().then(()=>(CJ(),Twe)),Promise.resolve().then(()=>(jJ(),Lwe)),Promise.resolve().then(()=>(zJ(),Mwe)),Promise.resolve().then(()=>(HJ(),Uwe))]).then(U=>{if(!B)return;N.current=U;let z=D.current;if(!z)return;let j=U(z,{value:f,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:z,externalFragments:void 0},info:{schema:void 0,renderDescription:K=>BE.render(K),onClick(K){I.current(K)}},jump:{schema:void 0,onClick(K){I.current(K)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...tT,"Cmd-S"(){},"Ctrl-S"(){}}});j.addKeyMap({"Cmd-Space"(){j.showHint({completeSingle:!0,container:z})},"Ctrl-Space"(){j.showHint({completeSingle:!0,container:z})},"Alt-Space"(){j.showHint({completeSingle:!0,container:z})},"Shift-Space"(){j.showHint({completeSingle:!0,container:z})},"Shift-Alt-Space"(){j.showHint({completeSingle:!0,container:z})}}),j.on("keyup",(K,ee)=>{iTe.test(ee.key)&&K.execCommand("autocomplete")});let J=!1;j.on("startCompletion",()=>{J=!0}),j.on("endCompletion",()=>{J=!1}),j.on("keydown",(K,ee)=>{ee.key==="Escape"&&J&&ee.stopPropagation()}),j.on("beforeChange",(K,ee)=>{var re;if(ee.origin==="paste"){let se=ee.text.map(t$);(re=ee.update)==null||re.call(ee,ee.from,ee.to,se)}}),j.documentAST=null,j.operationName=null,j.operations=null,j.variableToType=null,g(j)}),()=>{B=!1}},[e,f,o,g]),_y(m,"keyMap",t),(0,te.useEffect)(()=>{if(!m)return;function B(z){var j;let J=Gv(l,z.getValue()),K=z4(z.operations??void 0,z.operationName??void 0,J?.operations);return z.documentAST=J?.documentAST??null,z.operationName=K??null,z.operations=J?.operations??null,w&&(w.state.lint.linterOptions.variableToType=J?.variableToType,w.options.lint.variableToType=J?.variableToType,w.options.hintOptions.variableToType=J?.variableToType,(j=N.current)==null||j.signal(w,"change",w)),J?{...J,operationName:K}:null}oe(B,"getAndUpdateOperationFacts");let U=_f(100,z=>{let j=z.getValue();A?.set(o$,j);let J=z.operationName,K=B(z);K?.operationName!==void 0&&A?.set(oTe,K.operationName),i?.(j,K?.documentAST),K!=null&&K.operationName&&J!==K.operationName&&v(K.operationName),T({query:j,operationName:K?.operationName??null})});return B(m),m.on("change",U),()=>m.off("change",U)},[i,m,l,v,A,w,T]),r$(m,l??null,N),n$(m,y??null,N),i$(m,c,N),yI(m,r||null,Xu);let V=S?.run,G=(0,te.useCallback)(()=>{var B;if(!V||!m||!m.operations||!m.hasFocus()){V?.();return}let U=m.indexFromPos(m.getCursor()),z;for(let j of m.operations)j.loc&&j.loc.start<=U&&j.loc.end>=U&&(z=(B=j.name)==null?void 0:B.value);z&&z!==m.operationName&&v(z),V()},[m,V,v]);return za(m,["Cmd-Enter","Ctrl-Enter"],G),za(m,["Shift-Ctrl-C"],x),za(m,["Shift-Ctrl-P","Shift-Ctrl-F"],P),za(m,["Shift-Ctrl-M"],k),D}oe(Xu,"useQueryEditor");function r$(e,t,r){(0,te.useEffect)(()=>{if(!e)return;let n=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,n&&r.current&&r.current.signal(e,"change",e)},[e,t,r])}oe(r$,"useSynchronizeSchema");function n$(e,t,r){(0,te.useEffect)(()=>{if(!e)return;let n=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,n&&r.current&&r.current.signal(e,"change",e)},[e,t,r])}oe(n$,"useSynchronizeValidationRules");function i$(e,t,r){let n=(0,te.useMemo)(()=>[...t.values()],[t]);(0,te.useEffect)(()=>{if(!e)return;let i=e.options.lint.externalFragments!==n;e.state.lint.linterOptions.externalFragments=n,e.options.lint.externalFragments=n,e.options.hintOptions.externalFragments=n,i&&r.current&&r.current.signal(e,"change",e)},[e,n,r])}oe(i$,"useSynchronizeExternalFragments");var iTe=/^[a-zA-Z0-9_@(]$/,o$="query",oTe="operationName";function a$({defaultQuery:e,defaultHeaders:t,headers:r,defaultTabs:n,query:i,variables:o,storage:s,shouldPersistHeaders:l}){let c=s?.get(Wy);try{if(!c)throw new Error("Storage for tabs is empty");let f=JSON.parse(c),m=l?r:void 0;if(s$(f)){let v=Qy({query:i,variables:o,headers:m}),g=-1;for(let y=0;y=0)f.activeTabIndex=g;else{let y=i?rT(i):null;f.tabs.push({id:EI(),hash:v,title:y||TI,query:i,variables:o,headers:r,operationName:y,response:null}),f.activeTabIndex=f.tabs.length-1}return f}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(n||[{query:i??e,variables:o,headers:r??t}]).map(xI)}}}oe(a$,"getDefaultTabState");function s$(e){return e&&typeof e=="object"&&!Array.isArray(e)&&u$(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(l$)}oe(s$,"isTabsState");function l$(e){return e&&typeof e=="object"&&!Array.isArray(e)&&uI(e,"id")&&uI(e,"title")&&th(e,"query")&&th(e,"variables")&&th(e,"headers")&&th(e,"operationName")&&th(e,"response")}oe(l$,"isTabState");function u$(e,t){return t in e&&typeof e[t]=="number"}oe(u$,"hasNumberKey");function uI(e,t){return t in e&&typeof e[t]=="string"}oe(uI,"hasStringKey");function th(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}oe(th,"hasStringOrNullKey");function c$({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:n}){return(0,te.useCallback)(i=>{let o=e?.getValue()??null,s=t?.getValue()??null,l=r?.getValue()??null,c=e?.operationName??null,f=n?.getValue()??null;return wI(i,{query:o,variables:s,headers:l,response:f,operationName:c})},[e,t,r,n])}oe(c$,"useSynchronizeActiveTabValues");function AI(e,t=!1){return JSON.stringify(e,(r,n)=>r==="hash"||r==="response"||!t&&r==="headers"?null:n)}oe(AI,"serializeTabState");function f$({storage:e,shouldPersistHeaders:t}){let r=(0,te.useMemo)(()=>_f(500,n=>{e?.set(Wy,n)}),[e]);return(0,te.useCallback)(n=>{r(AI(n,t))},[t,r])}oe(f$,"useStoreTabs");function d$({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:n}){return(0,te.useCallback)(({query:i,variables:o,headers:s,response:l})=>{e?.setValue(i??""),t?.setValue(o??""),r?.setValue(s??""),n?.setValue(l??"")},[r,e,n,t])}oe(d$,"useSetEditorValues");function xI({query:e=null,variables:t=null,headers:r=null}={}){return{id:EI(),hash:Qy({query:e,variables:t,headers:r}),title:e&&rT(e)||TI,query:e,variables:t,headers:r,operationName:null,response:null}}oe(xI,"createTab");function wI(e,t){return{...e,tabs:e.tabs.map((r,n)=>{if(n!==e.activeTabIndex)return r;let i={...r,...t};return{...i,hash:Qy(i),title:i.operationName||(i.query?rT(i.query):void 0)||TI}})}}oe(wI,"setPropertiesInActiveTab");function EI(){let e=oe(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}oe(EI,"guid");function Qy(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}oe(Qy,"hashFromTabContents");function rT(e){let t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return t?.[2]??null}oe(rT,"fuzzyExtractOperationName");function p$(e){let t=e?.get(Wy);if(t){let r=JSON.parse(t);e?.set(Wy,JSON.stringify(r,(n,i)=>n==="headers"?null:i))}}oe(p$,"clearHeadersFromTabs");var TI="",Wy="tabState";function Jf({editorTheme:e=$E,keyMap:t=eT,onClickReference:r,onEdit:n,readOnly:i=!1}={},o){let{initialVariables:s,variableEditor:l,setVariableEditor:c}=$r({nonNull:!0,caller:o||Jf}),f=ec(),m=Ju({caller:o||Jf}),v=ed({caller:o||Jf}),g=(0,te.useRef)(null),y=(0,te.useRef)();return(0,te.useEffect)(()=>{let w=!0;return nh([Promise.resolve().then(()=>(ZJ(),Gwe)),Promise.resolve().then(()=>(i_(),Hwe)),Promise.resolve().then(()=>(o_(),Xwe))]).then(T=>{if(!w)return;y.current=T;let S=g.current;if(!S)return;let A=T(S,{value:s,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:S,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:tT});A.addKeyMap({"Cmd-Space"(){A.showHint({completeSingle:!1,container:S})},"Ctrl-Space"(){A.showHint({completeSingle:!1,container:S})},"Alt-Space"(){A.showHint({completeSingle:!1,container:S})},"Shift-Space"(){A.showHint({completeSingle:!1,container:S})}}),A.on("keyup",(b,C)=>{let{code:x,key:k,shiftKey:P}=C,D=x.startsWith("Key"),N=!P&&x.startsWith("Digit");(D||N||k==="_"||k==='"')&&b.execCommand("autocomplete")}),c(A)}),()=>{w=!1}},[e,s,i,c]),_y(l,"keyMap",t),gI(l,n,m$,"variables",Jf),yI(l,r||null,Jf),za(l,["Cmd-Enter","Ctrl-Enter"],f?.run),za(l,["Shift-Ctrl-P"],v),za(l,["Shift-Ctrl-M"],m),g}oe(Jf,"useVariableEditor");var m$="variables",h$=_u("EditorContext");function v$(e){let t=Pl(),[r,n]=(0,te.useState)(null),[i,o]=(0,te.useState)(null),[s,l]=(0,te.useState)(null),[c,f]=(0,te.useState)(null),[m,v]=(0,te.useState)(()=>{let K=t?.get(rI)!==null;return e.shouldPersistHeaders!==!1&&K?t?.get(rI)==="true":!!e.shouldPersistHeaders});Uy(r,e.headers),Uy(i,e.query),Uy(s,e.response),Uy(c,e.variables);let g=f$({storage:t,shouldPersistHeaders:m}),[y]=(0,te.useState)(()=>{let K=e.query??t?.get(o$)??null,ee=e.variables??t?.get(m$)??null,re=e.headers??t?.get(UE)??null,se=e.response??"",xe=a$({query:K,variables:ee,headers:re,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||aTe,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:m});return g(xe),{query:K??(xe.activeTabIndex===0?xe.tabs[0].query:null)??"",variables:ee??"",headers:re??e.defaultHeaders??"",response:se,tabState:xe}}),[w,T]=(0,te.useState)(y.tabState),S=(0,te.useCallback)(K=>{if(K){t?.set(UE,r?.getValue()??"");let ee=AI(w,!0);t?.set(Wy,ee)}else t?.set(UE,""),p$(t);v(K),t?.set(rI,K.toString())},[t,w,r]),A=(0,te.useRef)();(0,te.useEffect)(()=>{let K=!!e.shouldPersistHeaders;A.current!==K&&(S(K),A.current=K)},[e.shouldPersistHeaders,S]);let b=c$({queryEditor:i,variableEditor:c,headerEditor:r,responseEditor:s}),C=d$({queryEditor:i,variableEditor:c,headerEditor:r,responseEditor:s}),{onTabChange:x,defaultHeaders:k,children:P}=e,D=(0,te.useCallback)(()=>{T(K=>{let ee=b(K),re={tabs:[...ee.tabs,xI({headers:k})],activeTabIndex:ee.tabs.length};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re})},[k,x,C,g,b]),N=(0,te.useCallback)(K=>{T(ee=>{let re={...ee,activeTabIndex:K};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re})},[x,C,g]),I=(0,te.useCallback)(K=>{T(ee=>{let re=ee.tabs[ee.activeTabIndex],se={tabs:K,activeTabIndex:K.indexOf(re)};return g(se),C(se.tabs[se.activeTabIndex]),x?.(se),se})},[x,C,g]),V=(0,te.useCallback)(K=>{T(ee=>{let re={tabs:ee.tabs.filter((se,xe)=>K!==xe),activeTabIndex:Math.max(ee.activeTabIndex-1,0)};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re})},[x,C,g]),G=(0,te.useCallback)(K=>{T(ee=>{let re=wI(ee,K);return g(re),x?.(re),re})},[x,g]),{onEditOperationName:B}=e,U=(0,te.useCallback)(K=>{i&&(i.operationName=K,G({operationName:K}),B?.(K))},[B,i,G]),z=(0,te.useMemo)(()=>{let K=new Map;if(Array.isArray(e.externalFragments))for(let ee of e.externalFragments)K.set(ee.name.value,ee);else if(typeof e.externalFragments=="string")(0,$e.visit)((0,$e.parse)(e.externalFragments,{}),{FragmentDefinition(ee){K.set(ee.name.value,ee)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return K},[e.externalFragments]),j=(0,te.useMemo)(()=>e.validationRules||[],[e.validationRules]),J=(0,te.useMemo)(()=>({...w,addTab:D,changeTab:N,moveTab:I,closeTab:V,updateActiveTabValues:G,headerEditor:r,queryEditor:i,responseEditor:s,variableEditor:c,setHeaderEditor:n,setQueryEditor:o,setResponseEditor:l,setVariableEditor:f,setOperationName:U,initialQuery:y.query,initialVariables:y.variables,initialHeaders:y.headers,initialResponse:y.response,externalFragments:z,validationRules:j,shouldPersistHeaders:m,setShouldPersistHeaders:S}),[w,D,N,I,V,G,r,i,s,c,U,y,z,j,m,S]);return(0,Y.jsx)(h$.Provider,{value:J,children:P})}oe(v$,"EditorContextProvider");var $r=$u(h$),rI="shouldPersistHeaders",aTe=`# Welcome to GraphiQL +`)); + }k(''),y(!0);let B=n??s.operationName??void 0;m?.addToHistory({query:D,variables:N,headers:V,operationName:B});try{ + let U={data:{}},z=oe(K=>{ + if(P!==S.current)return;let ee=Array.isArray(K)?K:!1;if(!ee&&typeof K=='object'&&K!==null&&'hasNext'in K&&(ee=[K]),ee){ + let re={data:U.data},se=[...U?.errors||[],...ee.flatMap(xe=>xe.errors).filter(Boolean)];se.length&&(re.errors=se);for(let xe of ee){ + let{path:Re,data:Se,errors:ie,...ye}=xe;if(Re){ + if(!Se)throw new Error(`Expected part to contain a data property, but got ${xe}`);(0,u_.default)(re.data,Re,Se,{merge:!0}); + }else Se&&(re.data=Se);U={...re,...ye}; + }y(!1),k(SA(U)); + }else{ + let re=SA(K);y(!1),k(re); + } + },'handleResponse'),j=e({query:D,variables:I,operationName:B},{headers:G??void 0,documentAST:s.documentAST??void 0}),J=await Promise.resolve(j);if(YN(J))T(J.subscribe({next(K){ + z(K); + },error(K){ + y(!1),K&&k(fp(K)),T(null); + },complete(){ + y(!1),T(null); + }}));else if(KN(J)){ + T({unsubscribe:()=>{ + var K,ee;return(ee=(K=J[Symbol.asyncIterator]()).return)==null?void 0:ee.call(K); + }});for await(let K of J)z(K);y(!1),T(null); + }else z(J); + }catch(U){ + y(!1),k(fp(U)),T(null); + } + },[v,i,e,o,m,n,s,l,A,w,f,c]),C=!!w,x=(0,te.useMemo)(()=>({isFetching:g,isSubscribed:C,operationName:n??null,run:b,stop:A}),[g,C,n,b,A]);return(0,Y.jsx)(I_.Provider,{value:x,children:r}); +}oe(GE,'ExecutionContextProvider');var ec=$u(I_);function oI({json:e,errorMessageParse:t,errorMessageType:r}){ + let n;try{ + n=e&&e.trim()!==''?JSON.parse(e):void 0; + }catch(o){ + throw new Error(`${t}: ${o instanceof Error?o.message:o}.`); + }let i=typeof n=='object'&&n!==null&&!Array.isArray(n);if(n!==void 0&&!i)throw new Error(r);return n; +}oe(oI,'tryParseJsonObject');var $E='graphiql',eT='sublime',F_=!1;typeof window=='object'&&(F_=window.navigator.platform.toLowerCase().indexOf('mac')===0);var tT={[F_?'Cmd-F':'Ctrl-F']:'findPersistent','Cmd-G':'findPersistent','Ctrl-G':'findPersistent','Ctrl-Left':'goSubwordLeft','Ctrl-Right':'goSubwordRight','Alt-Left':'goGroupLeft','Alt-Right':'goGroupRight'};async function nh(e,t){ + let r=await Promise.resolve().then(()=>(ia(),FZ)).then(n=>n.c).then(n=>typeof n=='function'?n:n.default);return await Promise.all(t?.useCommonAddons===!1?e:[Promise.resolve().then(()=>(OM(),VZ)).then(n=>n.s),Promise.resolve().then(()=>(HZ(),zZ)).then(n=>n.m),Promise.resolve().then(()=>(KZ(),YZ)).then(n=>n.c),Promise.resolve().then(()=>(LM(),DM)).then(n=>n.b),Promise.resolve().then(()=>(RM(),PM)).then(n=>n.f),Promise.resolve().then(()=>(iJ(),nJ)).then(n=>n.l),Promise.resolve().then(()=>(IM(),MM)).then(n=>n.s),Promise.resolve().then(()=>(jM(),qM)).then(n=>n.j),Promise.resolve().then(()=>(ky(),FM)).then(n=>n.d),Promise.resolve().then(()=>(UM(),VM)).then(n=>n.s),...e]),r; +}oe(nh,'importCodeMirror');var $Ee=oe(e=>e?(0,$e.print)(e):'','printDefault');function dI({field:e}){ + if(!('defaultValue'in e)||e.defaultValue===void 0)return null;let t=(0,$e.astFromValue)(e.defaultValue,e.type);return t?(0,Y.jsxs)(Y.Fragment,{children:[' = ',(0,Y.jsx)('span',{className:'graphiql-doc-explorer-default-value',children:$Ee(t)})]}):null; +}oe(dI,'DefaultValue');var q_=_u('SchemaContext');function pI(e){ + if(!e.fetcher)throw new TypeError('The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.');let{initialHeaders:t,headerEditor:r}=$r({nonNull:!0,caller:pI}),[n,i]=(0,te.useState)(),[o,s]=(0,te.useState)(!1),[l,c]=(0,te.useState)(null),f=(0,te.useRef)(0);(0,te.useEffect)(()=>{ + i((0,$e.isSchema)(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),f.current++; + },[e.schema]);let m=(0,te.useRef)(t);(0,te.useEffect)(()=>{ + r&&(m.current=r.getValue()); + });let{introspectionQuery:v,introspectionQueryName:g,introspectionQuerySansSubscriptions:y}=j_({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:w,onSchemaChange:T,dangerouslyAssumeSchemaIsValid:S,children:A}=e,b=(0,te.useCallback)(()=>{ + if((0,$e.isSchema)(e.schema)||e.schema===null)return;let k=++f.current,P=e.schema;async function D(){ + if(P)return P;let N=V_(m.current);if(!N.isValidJSON){ + c('Introspection failed as headers are invalid.');return; + }let I=N.headers?{headers:N.headers}:{},V=XN(w({query:v,operationName:g},I));if(!WN(V)){ + c('Fetcher did not return a Promise for introspection.');return; + }s(!0),c(null);let G=await V;if(typeof G!='object'||G===null||!('data'in G)){ + let U=XN(w({query:y,operationName:g},I));if(!WN(U))throw new Error('Fetcher did not return a Promise for introspection.');G=await U; + }if(s(!1),G!=null&&G.data&&'__schema'in G.data)return G.data;let B=typeof G=='string'?G:SA(G);c(B); + }oe(D,'fetchIntrospectionData'),D().then(N=>{ + if(!(k!==f.current||!N))try{ + let I=(0,$e.buildClientSchema)(N);i(I),T?.(I); + }catch(I){ + c(fp(I)); + } + }).catch(N=>{ + k===f.current&&(c(fp(N)),s(!1)); + }); + },[w,g,v,y,T,e.schema]);(0,te.useEffect)(()=>{ + b(); + },[b]),(0,te.useEffect)(()=>{ + function k(P){ + P.ctrlKey&&P.key==='R'&&b(); + }return oe(k,'triggerIntrospection'),window.addEventListener('keydown',k),()=>window.removeEventListener('keydown',k); + });let C=(0,te.useMemo)(()=>!n||S?[]:(0,$e.validateSchema)(n),[n,S]),x=(0,te.useMemo)(()=>({fetchError:l,introspect:b,isFetching:o,schema:n,validationErrors:C}),[l,b,o,n,C]);return(0,Y.jsx)(q_.Provider,{value:x,children:A}); +}oe(pI,'SchemaContextProvider');var So=$u(q_);function j_({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:r}){ + return(0,te.useMemo)(()=>{ + let n=t||'IntrospectionQuery',i=(0,$e.getIntrospectionQuery)({inputValueDeprecation:e,schemaDescription:r});t&&(i=i.replace('query IntrospectionQuery',`query ${n}`));let o=i.replace('subscriptionType { name }','');return{introspectionQueryName:n,introspectionQuery:i,introspectionQuerySansSubscriptions:o}; + },[e,t,r]); +}oe(j_,'useIntrospectionQuery');function V_(e){ + let t=null,r=!0;try{ + e&&(t=JSON.parse(e)); + }catch{ + r=!1; + }return{headers:t,isValidJSON:r}; +}oe(V_,'parseHeaderString');var FE={name:'Docs'},U_=_u('ExplorerContext');function mI(e){ + let{schema:t,validationErrors:r}=So({nonNull:!0,caller:mI}),[n,i]=(0,te.useState)([FE]),o=(0,te.useCallback)(f=>{ + i(m=>m.at(-1).def===f.def?m:[...m,f]); + },[]),s=(0,te.useCallback)(()=>{ + i(f=>f.length>1?f.slice(0,-1):f); + },[]),l=(0,te.useCallback)(()=>{ + i(f=>f.length===1?f:[FE]); + },[]);(0,te.useEffect)(()=>{ + t==null||r.length>0?l():i(f=>{ + if(f.length===1)return f;let m=[FE],v=null;for(let g of f)if(g!==FE)if(g.def)if((0,$e.isNamedType)(g.def)){ + let y=t.getType(g.def.name);if(y)m.push({name:g.name,def:y}),v=y;else break; + }else{ + if(v===null)break;if((0,$e.isObjectType)(v)||(0,$e.isInputObjectType)(v)){ + let y=v.getFields()[g.name];if(y)m.push({name:g.name,def:y});else break; + }else{ + if((0,$e.isScalarType)(v)||(0,$e.isEnumType)(v)||(0,$e.isInterfaceType)(v)||(0,$e.isUnionType)(v))break;{let y=v;if(y.args.find(w=>w.name===g.name))m.push({name:g.name,def:y});else break;} + } + }else v=null,m.push(g);return m; + }); + },[l,t,r]);let c=(0,te.useMemo)(()=>({explorerNavStack:n,push:o,pop:s,reset:l}),[n,o,s,l]);return(0,Y.jsx)(U_.Provider,{value:c,children:e.children}); +}oe(mI,'ExplorerContextProvider');var tc=$u(U_);function Gy(e,t){ + return(0,$e.isNonNullType)(e)?(0,Y.jsxs)(Y.Fragment,{children:[Gy(e.ofType,t),'!']}):(0,$e.isListType)(e)?(0,Y.jsxs)(Y.Fragment,{children:['[',Gy(e.ofType,t),']']}):t(e); +}oe(Gy,'renderType');function Ga(e){ + let{push:t}=tc({nonNull:!0,caller:Ga});return e.type?Gy(e.type,r=>(0,Y.jsx)('a',{className:'graphiql-doc-explorer-type-name',onClick:n=>{ + n.preventDefault(),t({name:r.name,def:r}); + },href:'#',children:r.name})):null; +}oe(Ga,'TypeLink');function zy({arg:e,showDefaultValue:t,inline:r}){ + let n=(0,Y.jsxs)('span',{children:[(0,Y.jsx)('span',{className:'graphiql-doc-explorer-argument-name',children:e.name}),': ',(0,Y.jsx)(Ga,{type:e.type}),t!==!1&&(0,Y.jsx)(dI,{field:e})]});return r?n:(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-argument',children:[n,e.description?(0,Y.jsx)(js,{type:'description',children:e.description}):null,e.deprecationReason?(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-argument-deprecation',children:[(0,Y.jsx)('div',{className:'graphiql-doc-explorer-argument-deprecation-label',children:'Deprecated'}),(0,Y.jsx)(js,{type:'deprecation',children:e.deprecationReason})]}):null]}); +}oe(zy,'Argument');function hI(e){ + return e.children?(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-deprecation',children:[(0,Y.jsx)('div',{className:'graphiql-doc-explorer-deprecation-label',children:'Deprecated'}),(0,Y.jsx)(js,{type:'deprecation',onlyShowFirstChild:e.preview??!0,children:e.children})]}):null; +}oe(hI,'DeprecationReason');function B_({directive:e}){ + return(0,Y.jsxs)('span',{className:'graphiql-doc-explorer-directive',children:['@',e.name.value]}); +}oe(B_,'Directive');function Co(e){ + let t=eTe[e.title];return(0,Y.jsxs)('div',{children:[(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-section-title',children:[(0,Y.jsx)(t,{}),e.title]}),(0,Y.jsx)('div',{className:'graphiql-doc-explorer-section-content',children:e.children})]}); +}oe(Co,'ExplorerSection');var eTe={Arguments:LEe,'Deprecated Arguments':REe,'Deprecated Enum Values':MEe,'Deprecated Fields':IEe,Directives:FEe,'Enum Values':VEe,Fields:UEe,Implements:GEe,Implementations:IE,'Possible Types':IE,'Root Types':WEe,Type:IE,'All Schema Types':IE};function G_(e){ + return(0,Y.jsxs)(Y.Fragment,{children:[e.field.description?(0,Y.jsx)(js,{type:'description',children:e.field.description}):null,(0,Y.jsx)(hI,{preview:!1,children:e.field.deprecationReason}),(0,Y.jsx)(Co,{title:'Type',children:(0,Y.jsx)(Ga,{type:e.field.type})}),(0,Y.jsx)(z_,{field:e.field}),(0,Y.jsx)(H_,{field:e.field})]}); +}oe(G_,'FieldDocumentation');function z_({field:e}){ + let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{ + r(!0); + },[]);if(!('args'in e))return null;let i=[],o=[];for(let s of e.args)s.deprecationReason?o.push(s):i.push(s);return(0,Y.jsxs)(Y.Fragment,{children:[i.length>0?(0,Y.jsx)(Co,{title:'Arguments',children:i.map(s=>(0,Y.jsx)(zy,{arg:s},s.name))}):null,o.length>0?t||i.length===0?(0,Y.jsx)(Co,{title:'Deprecated Arguments',children:o.map(s=>(0,Y.jsx)(zy,{arg:s},s.name))}):(0,Y.jsx)(aa,{type:'button',onClick:n,children:'Show Deprecated Arguments'}):null]}); +}oe(z_,'Arguments');function H_({field:e}){ + var t;let r=((t=e.astNode)==null?void 0:t.directives)||[];return!r||r.length===0?null:(0,Y.jsx)(Co,{title:'Directives',children:r.map(n=>(0,Y.jsx)('div',{children:(0,Y.jsx)(B_,{directive:n})},n.name.value))}); +}oe(H_,'Directives');function Q_(e){ + var t,r,n,i;let o=e.schema.getQueryType(),s=(r=(t=e.schema).getMutationType)==null?void 0:r.call(t),l=(i=(n=e.schema).getSubscriptionType)==null?void 0:i.call(n),c=e.schema.getTypeMap(),f=[o?.name,s?.name,l?.name];return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(js,{type:'description',children:e.schema.description||'A GraphQL schema provides a root type for each kind of operation.'}),(0,Y.jsxs)(Co,{title:'Root Types',children:[o?(0,Y.jsxs)('div',{children:[(0,Y.jsx)('span',{className:'graphiql-doc-explorer-root-type',children:'query'}),': ',(0,Y.jsx)(Ga,{type:o})]}):null,s&&(0,Y.jsxs)('div',{children:[(0,Y.jsx)('span',{className:'graphiql-doc-explorer-root-type',children:'mutation'}),': ',(0,Y.jsx)(Ga,{type:s})]}),l&&(0,Y.jsxs)('div',{children:[(0,Y.jsx)('span',{className:'graphiql-doc-explorer-root-type',children:'subscription'}),': ',(0,Y.jsx)(Ga,{type:l})]})]}),(0,Y.jsx)(Co,{title:'All Schema Types',children:c&&(0,Y.jsx)('div',{children:Object.values(c).map(m=>f.includes(m.name)||m.name.startsWith('__')?null:(0,Y.jsx)('div',{children:(0,Y.jsx)(Ga,{type:m})},m.name))})})]}); +}oe(Q_,'SchemaDocumentation');function _f(e,t){ + let r;return function(...n){ + r&&window.clearTimeout(r),r=window.setTimeout(()=>{ + r=null,t(...n); + },e); + }; +}oe(_f,'debounce');function vI(){ + let{explorerNavStack:e,push:t}=tc({nonNull:!0,caller:vI}),r=(0,te.useRef)(null),n=zE(),[i,o]=(0,te.useState)(''),[s,l]=(0,te.useState)(n(i)),c=(0,te.useMemo)(()=>_f(200,y=>{ + l(n(y)); + }),[n]);(0,te.useEffect)(()=>{ + c(i); + },[c,i]),(0,te.useEffect)(()=>{ + function y(w){ + var T;w.metaKey&&w.key==='k'&&((T=r.current)==null||T.focus()); + }return oe(y,'handleKeyDown'),window.addEventListener('keydown',y),()=>window.removeEventListener('keydown',y); + },[]);let f=e.at(-1),m=(0,te.useCallback)(y=>{ + t('field'in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type}); + },[t]),v=(0,te.useRef)(!1),g=(0,te.useCallback)(y=>{ + v.current=y.type==='focus'; + },[]);return e.length===1||(0,$e.isObjectType)(f.def)||(0,$e.isInterfaceType)(f.def)||(0,$e.isInputObjectType)(f.def)?(0,Y.jsxs)(Hf,{as:'div',className:'graphiql-doc-explorer-search',onChange:m,'data-state':v?void 0:'idle','aria-label':`Search ${f.name}...`,children:[(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-search-input',onClick:()=>{ + var y;(y=r.current)==null||y.focus(); + },children:[(0,Y.jsx)(zEe,{}),(0,Y.jsx)(Hf.Input,{autoComplete:'off',onFocus:g,onBlur:g,onChange:y=>o(y.target.value),placeholder:'\u2318 K',ref:r,value:i,'data-cy':'doc-explorer-input'})]}),v.current&&(0,Y.jsxs)(Hf.Options,{'data-cy':'doc-explorer-list',children:[s.within.length+s.types.length+s.fields.length===0?(0,Y.jsx)('li',{className:'graphiql-doc-explorer-search-empty',children:'No results found'}):s.within.map((y,w)=>(0,Y.jsx)(Hf.Option,{value:y,'data-cy':'doc-explorer-option',children:(0,Y.jsx)(aI,{field:y.field,argument:y.argument})},`within-${w}`)),s.within.length>0&&s.types.length+s.fields.length>0?(0,Y.jsx)('div',{className:'graphiql-doc-explorer-search-divider',children:'Other results'}):null,s.types.map((y,w)=>(0,Y.jsx)(Hf.Option,{value:y,'data-cy':'doc-explorer-option',children:(0,Y.jsx)(HE,{type:y.type})},`type-${w}`)),s.fields.map((y,w)=>(0,Y.jsxs)(Hf.Option,{value:y,'data-cy':'doc-explorer-option',children:[(0,Y.jsx)(HE,{type:y.type}),'.',(0,Y.jsx)(aI,{field:y.field,argument:y.argument})]},`field-${w}`))]})]}):null; +}oe(vI,'Search');function zE(e){ + let{explorerNavStack:t}=tc({nonNull:!0,caller:e||zE}),{schema:r}=So({nonNull:!0,caller:e||zE}),n=t.at(-1);return(0,te.useCallback)(i=>{ + let o={within:[],types:[],fields:[]};if(!r)return o;let s=n.def,l=r.getTypeMap(),c=Object.keys(l);s&&(c=c.filter(f=>f!==s.name),c.unshift(s.name));for(let f of c){ + if(o.within.length+o.types.length+o.fields.length>=100)break;let m=l[f];if(s!==m&&VE(f,i)&&o.types.push({type:m}),!(0,$e.isObjectType)(m)&&!(0,$e.isInterfaceType)(m)&&!(0,$e.isInputObjectType)(m))continue;let v=m.getFields();for(let g in v){ + let y=v[g],w;if(!VE(g,i))if('args'in y){ + if(w=y.args.filter(T=>VE(T.name,i)),w.length===0)continue; + }else continue;o[s===m?'within':'fields'].push(...w?w.map(T=>({type:m,field:y,argument:T})):[{type:m,field:y}]); + } + }return o; + },[n.def,r]); +}oe(zE,'useSearchResults');function VE(e,t){ + try{ + let r=t.replaceAll(/[^_0-9A-Za-z]/g,n=>'\\'+n);return e.search(new RegExp(r,'i'))!==-1; + }catch{ + return e.toLowerCase().includes(t.toLowerCase()); + } +}oe(VE,'isMatch');function HE(e){ + return(0,Y.jsx)('span',{className:'graphiql-doc-explorer-search-type',children:e.type.name}); +}oe(HE,'Type');function aI({field:e,argument:t}){ + return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)('span',{className:'graphiql-doc-explorer-search-field',children:e.name}),t?(0,Y.jsxs)(Y.Fragment,{children:['(',(0,Y.jsx)('span',{className:'graphiql-doc-explorer-search-argument',children:t.name}),':',' ',Gy(t.type,r=>(0,Y.jsx)(HE,{type:r})),')']}):null]}); +}oe(aI,'Field$1');function W_(e){ + let{push:t}=tc({nonNull:!0});return(0,Y.jsx)('a',{className:'graphiql-doc-explorer-field-name',onClick:r=>{ + r.preventDefault(),t({name:e.field.name,def:e.field}); + },href:'#',children:e.field.name}); +}oe(W_,'FieldLink');function Y_(e){ + return(0,$e.isNamedType)(e.type)?(0,Y.jsxs)(Y.Fragment,{children:[e.type.description?(0,Y.jsx)(js,{type:'description',children:e.type.description}):null,(0,Y.jsx)(K_,{type:e.type}),(0,Y.jsx)(X_,{type:e.type}),(0,Y.jsx)(Z_,{type:e.type}),(0,Y.jsx)(J_,{type:e.type})]}):null; +}oe(Y_,'TypeDocumentation');function K_({type:e}){ + return(0,$e.isObjectType)(e)&&e.getInterfaces().length>0?(0,Y.jsx)(Co,{title:'Implements',children:e.getInterfaces().map(t=>(0,Y.jsx)('div',{children:(0,Y.jsx)(Ga,{type:t})},t.name))}):null; +}oe(K_,'ImplementsInterfaces');function X_({type:e}){ + let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{ + r(!0); + },[]);if(!(0,$e.isObjectType)(e)&&!(0,$e.isInterfaceType)(e)&&!(0,$e.isInputObjectType)(e))return null;let i=e.getFields(),o=[],s=[];for(let l of Object.keys(i).map(c=>i[c]))l.deprecationReason?s.push(l):o.push(l);return(0,Y.jsxs)(Y.Fragment,{children:[o.length>0?(0,Y.jsx)(Co,{title:'Fields',children:o.map(l=>(0,Y.jsx)(sI,{field:l},l.name))}):null,s.length>0?t||o.length===0?(0,Y.jsx)(Co,{title:'Deprecated Fields',children:s.map(l=>(0,Y.jsx)(sI,{field:l},l.name))}):(0,Y.jsx)(aa,{type:'button',onClick:n,children:'Show Deprecated Fields'}):null]}); +}oe(X_,'Fields');function sI({field:e}){ + let t='args'in e?e.args.filter(r=>!r.deprecationReason):[];return(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-item',children:[(0,Y.jsxs)('div',{children:[(0,Y.jsx)(W_,{field:e}),t.length>0?(0,Y.jsxs)(Y.Fragment,{children:['(',(0,Y.jsx)('span',{children:t.map(r=>t.length===1?(0,Y.jsx)(zy,{arg:r,inline:!0},r.name):(0,Y.jsx)('div',{className:'graphiql-doc-explorer-argument-multiple',children:(0,Y.jsx)(zy,{arg:r,inline:!0})},r.name))}),')']}):null,': ',(0,Y.jsx)(Ga,{type:e.type}),(0,Y.jsx)(dI,{field:e})]}),e.description?(0,Y.jsx)(js,{type:'description',onlyShowFirstChild:!0,children:e.description}):null,(0,Y.jsx)(hI,{children:e.deprecationReason})]}); +}oe(sI,'Field');function Z_({type:e}){ + let[t,r]=(0,te.useState)(!1),n=(0,te.useCallback)(()=>{ + r(!0); + },[]);if(!(0,$e.isEnumType)(e))return null;let i=[],o=[];for(let s of e.getValues())s.deprecationReason?o.push(s):i.push(s);return(0,Y.jsxs)(Y.Fragment,{children:[i.length>0?(0,Y.jsx)(Co,{title:'Enum Values',children:i.map(s=>(0,Y.jsx)(lI,{value:s},s.name))}):null,o.length>0?t||i.length===0?(0,Y.jsx)(Co,{title:'Deprecated Enum Values',children:o.map(s=>(0,Y.jsx)(lI,{value:s},s.name))}):(0,Y.jsx)(aa,{type:'button',onClick:n,children:'Show Deprecated Values'}):null]}); +}oe(Z_,'EnumValues');function lI({value:e}){ + return(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-item',children:[(0,Y.jsx)('div',{className:'graphiql-doc-explorer-enum-value',children:e.name}),e.description?(0,Y.jsx)(js,{type:'description',children:e.description}):null,e.deprecationReason?(0,Y.jsx)(js,{type:'deprecation',children:e.deprecationReason}):null]}); +}oe(lI,'EnumValue');function J_({type:e}){ + let{schema:t}=So({nonNull:!0});return!t||!(0,$e.isAbstractType)(e)?null:(0,Y.jsx)(Co,{title:(0,$e.isInterfaceType)(e)?'Implementations':'Possible Types',children:t.getPossibleTypes(e).map(r=>(0,Y.jsx)('div',{children:(0,Y.jsx)(Ga,{type:r})},r.name))}); +}oe(J_,'PossibleTypes');function QE(){ + let{fetchError:e,isFetching:t,schema:r,validationErrors:n}=So({nonNull:!0,caller:QE}),{explorerNavStack:i,pop:o}=tc({nonNull:!0,caller:QE}),s=i.at(-1),l=null;e?l=(0,Y.jsx)('div',{className:'graphiql-doc-explorer-error',children:'Error fetching schema'}):n.length>0?l=(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-error',children:['Schema is invalid: ',n[0].message]}):t?l=(0,Y.jsx)(ZE,{}):r?i.length===1?l=(0,Y.jsx)(Q_,{schema:r}):(0,$e.isType)(s.def)?l=(0,Y.jsx)(Y_,{type:s.def}):s.def&&(l=(0,Y.jsx)(G_,{field:s.def})):l=(0,Y.jsx)('div',{className:'graphiql-doc-explorer-error',children:'No GraphQL schema available'});let c;return i.length>1&&(c=i.at(-2).name),(0,Y.jsxs)('section',{className:'graphiql-doc-explorer','aria-label':'Documentation Explorer',children:[(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-header',children:[(0,Y.jsxs)('div',{className:'graphiql-doc-explorer-header-content',children:[c&&(0,Y.jsxs)('a',{href:'#',className:'graphiql-doc-explorer-back',onClick:f=>{ + f.preventDefault(),o(); + },'aria-label':`Go back to ${c}`,children:[(0,Y.jsx)(PEe,{}),c]}),(0,Y.jsx)('div',{className:'graphiql-doc-explorer-title',children:s.name})]}),(0,Y.jsx)(vI,{},s.name)]}),(0,Y.jsx)('div',{className:'graphiql-doc-explorer-content',children:l})]}); +}oe(QE,'DocExplorer');var Hy={title:'Documentation Explorer',icon:oe(function(){ + let e=Jy();return e?.visiblePlugin===Hy?(0,Y.jsx)(qEe,{}):(0,Y.jsx)(jEe,{}); + },'Icon'),content:QE},s_={title:'History',icon:BEe,content:R_},__=_u('PluginContext');function $_(e){ + let t=Pl(),r=tc(),n=_E(),i=!!r,o=!!n,s=(0,te.useMemo)(()=>{ + let y=[],w={};i&&(y.push(Hy),w[Hy.title]=!0),o&&(y.push(s_),w[s_.title]=!0);for(let T of e.plugins||[]){ + if(typeof T.title!='string'||!T.title)throw new Error('All GraphiQL plugins must have a unique title');if(w[T.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${T.title}'`);y.push(T),w[T.title]=!0; + }return y; + },[i,o,e.plugins]),[l,c]=(0,te.useState)(()=>{ + let y=t?.get(l_);return s.find(T=>T.title===y)||(y&&t?.set(l_,''),e.visiblePlugin&&s.find(T=>(typeof e.visiblePlugin=='string'?T.title:T)===e.visiblePlugin)||null); + }),{onTogglePluginVisibility:f,children:m}=e,v=(0,te.useCallback)(y=>{ + let w=y&&s.find(T=>(typeof y=='string'?T.title:T)===y)||null;c(T=>w===T?T:(f?.(w),w)); + },[f,s]);(0,te.useEffect)(()=>{ + e.visiblePlugin&&v(e.visiblePlugin); + },[s,e.visiblePlugin,v]);let g=(0,te.useMemo)(()=>({plugins:s,setVisiblePlugin:v,visiblePlugin:l}),[s,v,l]);return(0,Y.jsx)(__.Provider,{value:g,children:m}); +}oe($_,'PluginContextProvider');var Jy=$u(__),l_='visiblePlugin';function e$(e,t,r,n,i,o){ + nh([],{useCommonAddons:!1}).then(l=>{ + let c,f,m,v,g,y,w,T,S;l.on(t,'select',(A,b)=>{ + if(!c){ + let C=b.parentNode;c=document.createElement('div'),c.className='CodeMirror-hint-information',C.append(c);let x=document.createElement('header');x.className='CodeMirror-hint-information-header',c.append(x),f=document.createElement('span'),f.className='CodeMirror-hint-information-field-name',x.append(f),m=document.createElement('span'),m.className='CodeMirror-hint-information-type-name-pill',x.append(m),v=document.createElement('span'),m.append(v),g=document.createElement('a'),g.className='CodeMirror-hint-information-type-name',g.href='javascript:void 0',g.addEventListener('click',s),m.append(g),y=document.createElement('span'),m.append(y),w=document.createElement('div'),w.className='CodeMirror-hint-information-description',c.append(w),T=document.createElement('div'),T.className='CodeMirror-hint-information-deprecation',c.append(T);let k=document.createElement('span');k.className='CodeMirror-hint-information-deprecation-label',k.textContent='Deprecated',T.append(k),S=document.createElement('div'),S.className='CodeMirror-hint-information-deprecation-reason',T.append(S);let P=parseInt(window.getComputedStyle(c).paddingBottom.replace(/px$/,''),10)||0,D=parseInt(window.getComputedStyle(c).maxHeight.replace(/px$/,''),10)||0,N=oe(()=>{ + c&&(c.style.paddingTop=C.scrollTop+P+'px',c.style.maxHeight=C.scrollTop+D+'px'); + },'handleScroll');C.addEventListener('scroll',N);let I;C.addEventListener('DOMNodeRemoved',I=oe(V=>{ + V.target===C&&(C.removeEventListener('scroll',N),C.removeEventListener('DOMNodeRemoved',I),c&&c.removeEventListener('click',s),c=null,f=null,m=null,v=null,g=null,y=null,w=null,T=null,S=null,I=null); + },'onRemoveFn')); + }if(f&&(f.textContent=A.text),m&&v&&g&&y)if(A.type){ + m.style.display='inline';let C=oe(x=>{ + (0,$e.isNonNullType)(x)?(y.textContent='!'+y.textContent,C(x.ofType)):(0,$e.isListType)(x)?(v.textContent+='[',y.textContent=']'+y.textContent,C(x.ofType)):g.textContent=x.name; + },'renderType');v.textContent='',y.textContent='',C(A.type); + }else v.textContent='',g.textContent='',y.textContent='',m.style.display='none';w&&(A.description?(w.style.display='block',w.innerHTML=BE.render(A.description)):(w.style.display='none',w.innerHTML='')),T&&S&&(A.deprecationReason?(T.style.display='block',S.innerHTML=BE.render(A.deprecationReason)):(T.style.display='none',S.innerHTML='')); + }); + });function s(l){ + if(!r||!n||!i||!(l.currentTarget instanceof HTMLElement))return;let c=l.currentTarget.textContent||'',f=r.getType(c);f&&(i.setVisiblePlugin(Hy),n.push({name:f.name,def:f}),o?.(f)); + }oe(s,'onClickHintInformation'); +}oe(e$,'onHasCompletion');function Uy(e,t){ + (0,te.useEffect)(()=>{ + e&&typeof t=='string'&&t!==e.getValue()&&e.setValue(t); + },[e,t]); +}oe(Uy,'useSynchronizeValue');function _y(e,t,r){ + (0,te.useEffect)(()=>{ + e&&e.setOption(t,r); + },[e,t,r]); +}oe(_y,'useSynchronizeOption');function gI(e,t,r,n,i){ + let{updateActiveTabValues:o}=$r({nonNull:!0,caller:i}),s=Pl();(0,te.useEffect)(()=>{ + if(!e)return;let l=_f(500,m=>{ + !s||r===null||s.set(r,m); + }),c=_f(100,m=>{ + o({[n]:m}); + }),f=oe((m,v)=>{ + if(!v)return;let g=m.getValue();l(g),c(g),t?.(g); + },'handleChange');return e.on('change',f),()=>e.off('change',f); + },[t,e,s,r,n,o]); +}oe(gI,'useChangeHandler');function yI(e,t,r){ + let{schema:n}=So({nonNull:!0,caller:r}),i=tc(),o=Jy();(0,te.useEffect)(()=>{ + if(!e)return;let s=oe((l,c)=>{ + e$(l,c,n,i,o,f=>{ + t?.({kind:'Type',type:f,schema:n||void 0}); + }); + },'handleCompletion');return e.on('hasCompletion',s),()=>e.off('hasCompletion',s); + },[t,e,i,o,n]); +}oe(yI,'useCompletion');function za(e,t,r){ + (0,te.useEffect)(()=>{ + if(e){ + for(let n of t)e.removeKeyMap(n);if(r){ + let n={};for(let i of t)n[i]=()=>r();e.addKeyMap(n); + } + } + },[e,t,r]); +}oe(za,'useKeyMap');function $y({caller:e,onCopyQuery:t}={}){ + let{queryEditor:r}=$r({nonNull:!0,caller:e||$y});return(0,te.useCallback)(()=>{ + if(!r)return;let n=r.getValue();(0,c_.default)(n),t?.(n); + },[r,t]); +}oe($y,'useCopyQuery');function Ju({caller:e}={}){ + let{queryEditor:t}=$r({nonNull:!0,caller:e||Ju}),{schema:r}=So({nonNull:!0,caller:Ju});return(0,te.useCallback)(()=>{ + let n=t?.documentAST,i=t?.getValue();!n||!i||t.setValue((0,$e.print)(G4(n,r))); + },[t,r]); +}oe(Ju,'useMergeQuery');function ed({caller:e}={}){ + let{queryEditor:t,headerEditor:r,variableEditor:n}=$r({nonNull:!0,caller:e||ed});return(0,te.useCallback)(()=>{ + if(n){ + let i=n.getValue();try{ + let o=JSON.stringify(JSON.parse(i),null,2);o!==i&&n.setValue(o); + }catch{} + }if(r){ + let i=r.getValue();try{ + let o=JSON.stringify(JSON.parse(i),null,2);o!==i&&r.setValue(o); + }catch{} + }if(t){ + let i=t.getValue(),o=(0,$e.print)((0,$e.parse)(i));o!==i&&t.setValue(o); + } + },[t,n,r]); +}oe(ed,'usePrettifyEditors');function WE({getDefaultFieldNames:e,caller:t}={}){ + let{schema:r}=So({nonNull:!0,caller:t||WE}),{queryEditor:n}=$r({nonNull:!0,caller:t||WE});return(0,te.useCallback)(()=>{ + if(!n)return;let i=n.getValue(),{insertions:o,result:s}=V4(r,i,e);return o&&o.length>0&&n.operation(()=>{ + let l=n.getCursor(),c=n.indexFromPos(l);n.setValue(s||'');let f=0,m=o.map(({index:g,string:y})=>n.markText(n.posFromIndex(g+f),n.posFromIndex(g+(f+=y.length)),{className:'auto-inserted-leaf',clearOnEnter:!0,title:'Automatically added leaf fields'}));setTimeout(()=>{ + for(let g of m)g.clear(); + },7e3);let v=c;for(let{index:g,string:y}of o)ge?.setValue(n),[e]);return(0,te.useMemo)(()=>[t,r],[t,r]); +}oe(bI,'useOperationsEditorState');function tTe(){ + let{variableEditor:e}=$r({nonNull:!0}),t=e?.getValue()??'',r=(0,te.useCallback)(n=>e?.setValue(n),[e]);return(0,te.useMemo)(()=>[t,r],[t,r]); +}oe(tTe,'useVariablesEditorState');function rh({editorTheme:e=$E,keyMap:t=eT,onEdit:r,readOnly:n=!1}={},i){ + let{initialHeaders:o,headerEditor:s,setHeaderEditor:l,shouldPersistHeaders:c}=$r({nonNull:!0,caller:i||rh}),f=ec(),m=Ju({caller:i||rh}),v=ed({caller:i||rh}),g=(0,te.useRef)(null);return(0,te.useEffect)(()=>{ + let y=!0;return nh([Promise.resolve().then(()=>(vJ(),hJ)).then(w=>w.j)]).then(w=>{ + if(!y)return;let T=g.current;if(!T)return;let S=w(T,{value:o,lineNumbers:!0,tabSize:2,mode:{name:'javascript',json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:n?'nocursor':!1,foldGutter:!0,gutters:['CodeMirror-linenumbers','CodeMirror-foldgutter'],extraKeys:tT});S.addKeyMap({'Cmd-Space'(){ + S.showHint({completeSingle:!1,container:T}); + },'Ctrl-Space'(){ + S.showHint({completeSingle:!1,container:T}); + },'Alt-Space'(){ + S.showHint({completeSingle:!1,container:T}); + },'Shift-Space'(){ + S.showHint({completeSingle:!1,container:T}); + }}),S.on('keyup',(A,b)=>{ + let{code:C,key:x,shiftKey:k}=b,P=C.startsWith('Key'),D=!k&&C.startsWith('Digit');(P||D||x==='_'||x==='"')&&A.execCommand('autocomplete'); + }),l(S); + }),()=>{ + y=!1; + }; + },[e,o,n,l]),_y(s,'keyMap',t),gI(s,r,c?UE:null,'headers',rh),za(s,['Cmd-Enter','Ctrl-Enter'],f?.run),za(s,['Shift-Ctrl-P'],v),za(s,['Shift-Ctrl-M'],m),g; +}oe(rh,'useHeaderEditor');var UE='headers',rTe=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(['\u2028','\u2029','\u202F','\xA0']),nTe=new RegExp('['+rTe.join('')+']','g');function t$(e){ + return e.replace(nTe,' '); +}oe(t$,'normalizeWhitespace');function Xu({editorTheme:e=$E,keyMap:t=eT,onClickReference:r,onCopyQuery:n,onEdit:i,readOnly:o=!1}={},s){ + let{schema:l}=So({nonNull:!0,caller:s||Xu}),{externalFragments:c,initialQuery:f,queryEditor:m,setOperationName:v,setQueryEditor:g,validationRules:y,variableEditor:w,updateActiveTabValues:T}=$r({nonNull:!0,caller:s||Xu}),S=ec(),A=Pl(),b=tc(),C=Jy(),x=$y({caller:s||Xu,onCopyQuery:n}),k=Ju({caller:s||Xu}),P=ed({caller:s||Xu}),D=(0,te.useRef)(null),N=(0,te.useRef)(),I=(0,te.useRef)(()=>{});(0,te.useEffect)(()=>{ + I.current=B=>{ + if(!(!b||!C)){ + switch(C.setVisiblePlugin(Hy),B.kind){ + case'Type':{b.push({name:B.type.name,def:B.type});break;}case'Field':{b.push({name:B.field.name,def:B.field});break;}case'Argument':{B.field&&b.push({name:B.field.name,def:B.field});break;}case'EnumValue':{B.type&&b.push({name:B.type.name,def:B.type});break;} + }r?.(B); + } + }; + },[b,r,C]),(0,te.useEffect)(()=>{ + let B=!0;return nh([Promise.resolve().then(()=>(AJ(),bJ)).then(U=>U.c),Promise.resolve().then(()=>(GM(),BM)).then(U=>U.s),Promise.resolve().then(()=>(EJ(),wwe)),Promise.resolve().then(()=>(CJ(),Twe)),Promise.resolve().then(()=>(jJ(),Lwe)),Promise.resolve().then(()=>(zJ(),Mwe)),Promise.resolve().then(()=>(HJ(),Uwe))]).then(U=>{ + if(!B)return;N.current=U;let z=D.current;if(!z)return;let j=U(z,{value:f,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:'graphql',theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?'nocursor':!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:z,externalFragments:void 0},info:{schema:void 0,renderDescription:K=>BE.render(K),onClick(K){ + I.current(K); + }},jump:{schema:void 0,onClick(K){ + I.current(K); + }},gutters:['CodeMirror-linenumbers','CodeMirror-foldgutter'],extraKeys:{...tT,'Cmd-S'(){},'Ctrl-S'(){}}});j.addKeyMap({'Cmd-Space'(){ + j.showHint({completeSingle:!0,container:z}); + },'Ctrl-Space'(){ + j.showHint({completeSingle:!0,container:z}); + },'Alt-Space'(){ + j.showHint({completeSingle:!0,container:z}); + },'Shift-Space'(){ + j.showHint({completeSingle:!0,container:z}); + },'Shift-Alt-Space'(){ + j.showHint({completeSingle:!0,container:z}); + }}),j.on('keyup',(K,ee)=>{ + iTe.test(ee.key)&&K.execCommand('autocomplete'); + });let J=!1;j.on('startCompletion',()=>{ + J=!0; + }),j.on('endCompletion',()=>{ + J=!1; + }),j.on('keydown',(K,ee)=>{ + ee.key==='Escape'&&J&&ee.stopPropagation(); + }),j.on('beforeChange',(K,ee)=>{ + var re;if(ee.origin==='paste'){ + let se=ee.text.map(t$);(re=ee.update)==null||re.call(ee,ee.from,ee.to,se); + } + }),j.documentAST=null,j.operationName=null,j.operations=null,j.variableToType=null,g(j); + }),()=>{ + B=!1; + }; + },[e,f,o,g]),_y(m,'keyMap',t),(0,te.useEffect)(()=>{ + if(!m)return;function B(z){ + var j;let J=Gv(l,z.getValue()),K=z4(z.operations??void 0,z.operationName??void 0,J?.operations);return z.documentAST=J?.documentAST??null,z.operationName=K??null,z.operations=J?.operations??null,w&&(w.state.lint.linterOptions.variableToType=J?.variableToType,w.options.lint.variableToType=J?.variableToType,w.options.hintOptions.variableToType=J?.variableToType,(j=N.current)==null||j.signal(w,'change',w)),J?{...J,operationName:K}:null; + }oe(B,'getAndUpdateOperationFacts');let U=_f(100,z=>{ + let j=z.getValue();A?.set(o$,j);let J=z.operationName,K=B(z);K?.operationName!==void 0&&A?.set(oTe,K.operationName),i?.(j,K?.documentAST),K!=null&&K.operationName&&J!==K.operationName&&v(K.operationName),T({query:j,operationName:K?.operationName??null}); + });return B(m),m.on('change',U),()=>m.off('change',U); + },[i,m,l,v,A,w,T]),r$(m,l??null,N),n$(m,y??null,N),i$(m,c,N),yI(m,r||null,Xu);let V=S?.run,G=(0,te.useCallback)(()=>{ + var B;if(!V||!m||!m.operations||!m.hasFocus()){ + V?.();return; + }let U=m.indexFromPos(m.getCursor()),z;for(let j of m.operations)j.loc&&j.loc.start<=U&&j.loc.end>=U&&(z=(B=j.name)==null?void 0:B.value);z&&z!==m.operationName&&v(z),V(); + },[m,V,v]);return za(m,['Cmd-Enter','Ctrl-Enter'],G),za(m,['Shift-Ctrl-C'],x),za(m,['Shift-Ctrl-P','Shift-Ctrl-F'],P),za(m,['Shift-Ctrl-M'],k),D; +}oe(Xu,'useQueryEditor');function r$(e,t,r){ + (0,te.useEffect)(()=>{ + if(!e)return;let n=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,n&&r.current&&r.current.signal(e,'change',e); + },[e,t,r]); +}oe(r$,'useSynchronizeSchema');function n$(e,t,r){ + (0,te.useEffect)(()=>{ + if(!e)return;let n=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,n&&r.current&&r.current.signal(e,'change',e); + },[e,t,r]); +}oe(n$,'useSynchronizeValidationRules');function i$(e,t,r){ + let n=(0,te.useMemo)(()=>[...t.values()],[t]);(0,te.useEffect)(()=>{ + if(!e)return;let i=e.options.lint.externalFragments!==n;e.state.lint.linterOptions.externalFragments=n,e.options.lint.externalFragments=n,e.options.hintOptions.externalFragments=n,i&&r.current&&r.current.signal(e,'change',e); + },[e,n,r]); +}oe(i$,'useSynchronizeExternalFragments');var iTe=/^[a-zA-Z0-9_@(]$/,o$='query',oTe='operationName';function a$({defaultQuery:e,defaultHeaders:t,headers:r,defaultTabs:n,query:i,variables:o,storage:s,shouldPersistHeaders:l}){ + let c=s?.get(Wy);try{ + if(!c)throw new Error('Storage for tabs is empty');let f=JSON.parse(c),m=l?r:void 0;if(s$(f)){ + let v=Qy({query:i,variables:o,headers:m}),g=-1;for(let y=0;y=0)f.activeTabIndex=g;else{ + let y=i?rT(i):null;f.tabs.push({id:EI(),hash:v,title:y||TI,query:i,variables:o,headers:r,operationName:y,response:null}),f.activeTabIndex=f.tabs.length-1; + }return f; + }throw new Error('Storage for tabs is invalid'); + }catch{ + return{activeTabIndex:0,tabs:(n||[{query:i??e,variables:o,headers:r??t}]).map(xI)}; + } +}oe(a$,'getDefaultTabState');function s$(e){ + return e&&typeof e=='object'&&!Array.isArray(e)&&u$(e,'activeTabIndex')&&'tabs'in e&&Array.isArray(e.tabs)&&e.tabs.every(l$); +}oe(s$,'isTabsState');function l$(e){ + return e&&typeof e=='object'&&!Array.isArray(e)&&uI(e,'id')&&uI(e,'title')&&th(e,'query')&&th(e,'variables')&&th(e,'headers')&&th(e,'operationName')&&th(e,'response'); +}oe(l$,'isTabState');function u$(e,t){ + return t in e&&typeof e[t]=='number'; +}oe(u$,'hasNumberKey');function uI(e,t){ + return t in e&&typeof e[t]=='string'; +}oe(uI,'hasStringKey');function th(e,t){ + return t in e&&(typeof e[t]=='string'||e[t]===null); +}oe(th,'hasStringOrNullKey');function c$({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:n}){ + return(0,te.useCallback)(i=>{ + let o=e?.getValue()??null,s=t?.getValue()??null,l=r?.getValue()??null,c=e?.operationName??null,f=n?.getValue()??null;return wI(i,{query:o,variables:s,headers:l,response:f,operationName:c}); + },[e,t,r,n]); +}oe(c$,'useSynchronizeActiveTabValues');function AI(e,t=!1){ + return JSON.stringify(e,(r,n)=>r==='hash'||r==='response'||!t&&r==='headers'?null:n); +}oe(AI,'serializeTabState');function f$({storage:e,shouldPersistHeaders:t}){ + let r=(0,te.useMemo)(()=>_f(500,n=>{ + e?.set(Wy,n); + }),[e]);return(0,te.useCallback)(n=>{ + r(AI(n,t)); + },[t,r]); +}oe(f$,'useStoreTabs');function d$({queryEditor:e,variableEditor:t,headerEditor:r,responseEditor:n}){ + return(0,te.useCallback)(({query:i,variables:o,headers:s,response:l})=>{ + e?.setValue(i??''),t?.setValue(o??''),r?.setValue(s??''),n?.setValue(l??''); + },[r,e,n,t]); +}oe(d$,'useSetEditorValues');function xI({query:e=null,variables:t=null,headers:r=null}={}){ + return{id:EI(),hash:Qy({query:e,variables:t,headers:r}),title:e&&rT(e)||TI,query:e,variables:t,headers:r,operationName:null,response:null}; +}oe(xI,'createTab');function wI(e,t){ + return{...e,tabs:e.tabs.map((r,n)=>{ + if(n!==e.activeTabIndex)return r;let i={...r,...t};return{...i,hash:Qy(i),title:i.operationName||(i.query?rT(i.query):void 0)||TI}; + })}; +}oe(wI,'setPropertiesInActiveTab');function EI(){ + let e=oe(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),'s4');return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`; +}oe(EI,'guid');function Qy(e){ + return[e.query??'',e.variables??'',e.headers??''].join('|'); +}oe(Qy,'hashFromTabContents');function rT(e){ + let t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return t?.[2]??null; +}oe(rT,'fuzzyExtractOperationName');function p$(e){ + let t=e?.get(Wy);if(t){ + let r=JSON.parse(t);e?.set(Wy,JSON.stringify(r,(n,i)=>n==='headers'?null:i)); + } +}oe(p$,'clearHeadersFromTabs');var TI='',Wy='tabState';function Jf({editorTheme:e=$E,keyMap:t=eT,onClickReference:r,onEdit:n,readOnly:i=!1}={},o){ + let{initialVariables:s,variableEditor:l,setVariableEditor:c}=$r({nonNull:!0,caller:o||Jf}),f=ec(),m=Ju({caller:o||Jf}),v=ed({caller:o||Jf}),g=(0,te.useRef)(null),y=(0,te.useRef)();return(0,te.useEffect)(()=>{ + let w=!0;return nh([Promise.resolve().then(()=>(ZJ(),Gwe)),Promise.resolve().then(()=>(i_(),Hwe)),Promise.resolve().then(()=>(o_(),Xwe))]).then(T=>{ + if(!w)return;y.current=T;let S=g.current;if(!S)return;let A=T(S,{value:s,lineNumbers:!0,tabSize:2,mode:'graphql-variables',theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?'nocursor':!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:S,variableToType:void 0},gutters:['CodeMirror-linenumbers','CodeMirror-foldgutter'],extraKeys:tT});A.addKeyMap({'Cmd-Space'(){ + A.showHint({completeSingle:!1,container:S}); + },'Ctrl-Space'(){ + A.showHint({completeSingle:!1,container:S}); + },'Alt-Space'(){ + A.showHint({completeSingle:!1,container:S}); + },'Shift-Space'(){ + A.showHint({completeSingle:!1,container:S}); + }}),A.on('keyup',(b,C)=>{ + let{code:x,key:k,shiftKey:P}=C,D=x.startsWith('Key'),N=!P&&x.startsWith('Digit');(D||N||k==='_'||k==='"')&&b.execCommand('autocomplete'); + }),c(A); + }),()=>{ + w=!1; + }; + },[e,s,i,c]),_y(l,'keyMap',t),gI(l,n,m$,'variables',Jf),yI(l,r||null,Jf),za(l,['Cmd-Enter','Ctrl-Enter'],f?.run),za(l,['Shift-Ctrl-P'],v),za(l,['Shift-Ctrl-M'],m),g; +}oe(Jf,'useVariableEditor');var m$='variables',h$=_u('EditorContext');function v$(e){ + let t=Pl(),[r,n]=(0,te.useState)(null),[i,o]=(0,te.useState)(null),[s,l]=(0,te.useState)(null),[c,f]=(0,te.useState)(null),[m,v]=(0,te.useState)(()=>{ + let K=t?.get(rI)!==null;return e.shouldPersistHeaders!==!1&&K?t?.get(rI)==='true':!!e.shouldPersistHeaders; + });Uy(r,e.headers),Uy(i,e.query),Uy(s,e.response),Uy(c,e.variables);let g=f$({storage:t,shouldPersistHeaders:m}),[y]=(0,te.useState)(()=>{ + let K=e.query??t?.get(o$)??null,ee=e.variables??t?.get(m$)??null,re=e.headers??t?.get(UE)??null,se=e.response??'',xe=a$({query:K,variables:ee,headers:re,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||aTe,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:m});return g(xe),{query:K??(xe.activeTabIndex===0?xe.tabs[0].query:null)??'',variables:ee??'',headers:re??e.defaultHeaders??'',response:se,tabState:xe}; + }),[w,T]=(0,te.useState)(y.tabState),S=(0,te.useCallback)(K=>{ + if(K){ + t?.set(UE,r?.getValue()??'');let ee=AI(w,!0);t?.set(Wy,ee); + }else t?.set(UE,''),p$(t);v(K),t?.set(rI,K.toString()); + },[t,w,r]),A=(0,te.useRef)();(0,te.useEffect)(()=>{ + let K=!!e.shouldPersistHeaders;A.current!==K&&(S(K),A.current=K); + },[e.shouldPersistHeaders,S]);let b=c$({queryEditor:i,variableEditor:c,headerEditor:r,responseEditor:s}),C=d$({queryEditor:i,variableEditor:c,headerEditor:r,responseEditor:s}),{onTabChange:x,defaultHeaders:k,children:P}=e,D=(0,te.useCallback)(()=>{ + T(K=>{ + let ee=b(K),re={tabs:[...ee.tabs,xI({headers:k})],activeTabIndex:ee.tabs.length};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re; + }); + },[k,x,C,g,b]),N=(0,te.useCallback)(K=>{ + T(ee=>{ + let re={...ee,activeTabIndex:K};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re; + }); + },[x,C,g]),I=(0,te.useCallback)(K=>{ + T(ee=>{ + let re=ee.tabs[ee.activeTabIndex],se={tabs:K,activeTabIndex:K.indexOf(re)};return g(se),C(se.tabs[se.activeTabIndex]),x?.(se),se; + }); + },[x,C,g]),V=(0,te.useCallback)(K=>{ + T(ee=>{ + let re={tabs:ee.tabs.filter((se,xe)=>K!==xe),activeTabIndex:Math.max(ee.activeTabIndex-1,0)};return g(re),C(re.tabs[re.activeTabIndex]),x?.(re),re; + }); + },[x,C,g]),G=(0,te.useCallback)(K=>{ + T(ee=>{ + let re=wI(ee,K);return g(re),x?.(re),re; + }); + },[x,g]),{onEditOperationName:B}=e,U=(0,te.useCallback)(K=>{ + i&&(i.operationName=K,G({operationName:K}),B?.(K)); + },[B,i,G]),z=(0,te.useMemo)(()=>{ + let K=new Map;if(Array.isArray(e.externalFragments))for(let ee of e.externalFragments)K.set(ee.name.value,ee);else if(typeof e.externalFragments=='string')(0,$e.visit)((0,$e.parse)(e.externalFragments,{}),{FragmentDefinition(ee){ + K.set(ee.name.value,ee); + }});else if(e.externalFragments)throw new Error('The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.');return K; + },[e.externalFragments]),j=(0,te.useMemo)(()=>e.validationRules||[],[e.validationRules]),J=(0,te.useMemo)(()=>({...w,addTab:D,changeTab:N,moveTab:I,closeTab:V,updateActiveTabValues:G,headerEditor:r,queryEditor:i,responseEditor:s,variableEditor:c,setHeaderEditor:n,setQueryEditor:o,setResponseEditor:l,setVariableEditor:f,setOperationName:U,initialQuery:y.query,initialVariables:y.variables,initialHeaders:y.headers,initialResponse:y.response,externalFragments:z,validationRules:j,shouldPersistHeaders:m,setShouldPersistHeaders:S}),[w,D,N,I,V,G,r,i,s,c,U,y,z,j,m,S]);return(0,Y.jsx)(h$.Provider,{value:J,children:P}); +}oe(v$,'EditorContextProvider');var $r=$u(h$),rI='shouldPersistHeaders',aTe=`# Welcome to GraphiQL # # GraphiQL is an in-browser tool for writing, validating, and # testing GraphQL queries. @@ -306,8 +17594,218 @@ b`.split(/\n/).length!=3?function(a){for(var u=0,p=[],d=a.length;u<=d;){var h=a. # Auto Complete: Ctrl-Space (or just start typing) # -`;function Yy({isHidden:e,...t}){let{headerEditor:r}=$r({nonNull:!0,caller:Yy}),n=rh(t,Yy);return(0,te.useEffect)(()=>{e||r==null||r.refresh()},[r,e]),(0,Y.jsx)("div",{className:gn("graphiql-editor",e&&"hidden"),ref:n})}oe(Yy,"HeaderEditor");function YE(e){var t;let[r,n]=(0,te.useState)({width:null,height:null}),[i,o]=(0,te.useState)(null),s=(0,te.useRef)(null),l=(t=CI(e.token))==null?void 0:t.href;(0,te.useEffect)(()=>{if(s.current){if(!l){n({width:null,height:null}),o(null);return}fetch(l,{method:"HEAD"}).then(f=>{o(f.headers.get("Content-Type"))}).catch(()=>{o(null)})}},[l]);let c=r.width!==null&&r.height!==null?(0,Y.jsxs)("div",{children:[r.width,"x",r.height,i===null?null:" "+i]}):null;return(0,Y.jsxs)("div",{children:[(0,Y.jsx)("img",{onLoad:()=>{var f,m;n({width:((f=s.current)==null?void 0:f.naturalWidth)??null,height:((m=s.current)==null?void 0:m.naturalHeight)??null})},ref:s,src:l}),c]})}oe(YE,"ImagePreview");YE.shouldRender=oe(function(e){let t=CI(e);return t?g$(t):!1},"shouldRender");function CI(e){if(e.type!=="string")return;let t=e.string.slice(1).slice(0,-1).trim();try{let{location:r}=window;return new URL(t,r.protocol+"//"+r.host)}catch{return}}oe(CI,"tokenToURL");function g$(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}oe(g$,"isImageURL");function nT(e){let t=Xu(e,nT);return(0,Y.jsx)("div",{className:"graphiql-editor",ref:t})}oe(nT,"QueryEditor");function KE({responseTooltip:e,editorTheme:t=$E,keyMap:r=eT}={},n){let{fetchError:i,validationErrors:o}=So({nonNull:!0,caller:n||KE}),{initialResponse:s,responseEditor:l,setResponseEditor:c}=$r({nonNull:!0,caller:n||KE}),f=(0,te.useRef)(null),m=(0,te.useRef)(e);return(0,te.useEffect)(()=>{m.current=e},[e]),(0,te.useEffect)(()=>{let v=!0;return nh([Promise.resolve().then(()=>(RM(),PM)).then(g=>g.f),Promise.resolve().then(()=>(LM(),DM)).then(g=>g.b),Promise.resolve().then(()=>(ky(),FM)).then(g=>g.d),Promise.resolve().then(()=>(GM(),BM)).then(g=>g.s),Promise.resolve().then(()=>(IM(),MM)).then(g=>g.s),Promise.resolve().then(()=>(jM(),qM)).then(g=>g.j),Promise.resolve().then(()=>(UM(),VM)).then(g=>g.s),Promise.resolve().then(()=>(a_(),_we)),Promise.resolve().then(()=>(WM(),Nwe))],{useCommonAddons:!1}).then(g=>{if(!v)return;let y=document.createElement("div");g.registerHelper("info","graphql-results",(S,A,b,C)=>{let x=[],k=m.current;return k&&x.push((0,Y.jsx)(k,{pos:C,token:S})),YE.shouldRender(S)&&x.push((0,Y.jsx)(YE,{token:S},"image-preview")),x.length?(iI.default.render(x,y),y):(iI.default.unmountComponentAtNode(y),null)});let w=f.current;if(!w)return;let T=g(w,{value:s,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:tT});c(T)}),()=>{v=!1}},[t,s,c]),_y(l,"keyMap",r),(0,te.useEffect)(()=>{i&&l?.setValue(i),o.length>0&&l?.setValue(fp(o))},[l,i,o]),f}oe(KE,"useResponseEditor");function iT(e){let t=KE(e,iT);return(0,Y.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}oe(iT,"ResponseEditor");function Ky({isHidden:e,...t}){let{variableEditor:r}=$r({nonNull:!0,caller:Ky}),n=Jf(t,Ky);return(0,te.useEffect)(()=>{r&&!e&&r.refresh()},[r,e]),(0,Y.jsx)("div",{className:gn("graphiql-editor",e&&"hidden"),ref:n})}oe(Ky,"VariableEditor");function oT({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:r,defaultHeaders:n,defaultTabs:i,externalFragments:o,fetcher:s,getDefaultFieldNames:l,headers:c,inputValueDeprecation:f,introspectionQueryName:m,maxHistoryLength:v,onEditOperationName:g,onSchemaChange:y,onTabChange:w,onTogglePluginVisibility:T,operationName:S,plugins:A,query:b,response:C,schema:x,schemaDescription:k,shouldPersistHeaders:P,storage:D,validationRules:N,variables:I,visiblePlugin:V}){return(0,Y.jsx)(p_,{storage:D,children:(0,Y.jsx)(P_,{maxHistoryLength:v,children:(0,Y.jsx)(v$,{defaultQuery:r,defaultHeaders:n,defaultTabs:i,externalFragments:o,headers:c,onEditOperationName:g,onTabChange:w,query:b,response:C,shouldPersistHeaders:P,validationRules:N,variables:I,children:(0,Y.jsx)(pI,{dangerouslyAssumeSchemaIsValid:t,fetcher:s,inputValueDeprecation:f,introspectionQueryName:m,onSchemaChange:y,schema:x,schemaDescription:k,children:(0,Y.jsx)(GE,{getDefaultFieldNames:l,fetcher:s,operationName:S,children:(0,Y.jsx)(mI,{children:(0,Y.jsx)($_,{onTogglePluginVisibility:T,plugins:A,visiblePlugin:V,children:e})})})})})})})}oe(oT,"GraphiQLProvider");function SI(){let e=Pl(),[t,r]=(0,te.useState)(()=>{if(!e)return null;let i=e.get(nI);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&e.set(nI,""),null}});(0,te.useLayoutEffect)(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);let n=(0,te.useCallback)(i=>{e?.set(nI,i||""),r(i)},[e]);return(0,te.useMemo)(()=>({theme:t,setTheme:n}),[t,n])}oe(SI,"useTheme");var nI="theme";function e0({defaultSizeRelation:e=sTe,direction:t,initiallyHidden:r,onHiddenElementChange:n,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:s}){let l=Pl(),c=(0,te.useMemo)(()=>_f(500,b=>{s&&l?.set(s,b)}),[l,s]),[f,m]=(0,te.useState)(()=>{let b=s&&l?.get(s);return b===qE||r==="first"?"first":b===jE||r==="second"?"second":null}),v=(0,te.useCallback)(b=>{b!==f&&(m(b),n?.(b))},[f,n]),g=(0,te.useRef)(null),y=(0,te.useRef)(null),w=(0,te.useRef)(null),T=(0,te.useRef)(`${e}`);(0,te.useLayoutEffect)(()=>{let b=s&&l?.get(s)||T.current;g.current&&(g.current.style.display="flex",g.current.style.flex=b===qE||b===jE?T.current:b),w.current&&(w.current.style.display="flex",w.current.style.flex="1"),y.current&&(y.current.style.display="flex")},[t,l,s]);let S=(0,te.useCallback)(b=>{let C=b==="first"?g.current:w.current;if(C&&(C.style.left="-1000px",C.style.position="absolute",C.style.opacity="0",C.style.height="500px",C.style.width="500px",g.current)){let x=parseFloat(g.current.style.flex);(!Number.isFinite(x)||x<1)&&(g.current.style.flex="1")}},[]),A=(0,te.useCallback)(b=>{let C=b==="first"?g.current:w.current;if(C&&(C.style.width="",C.style.height="",C.style.opacity="",C.style.position="",C.style.left="",l&&s)){let x=l.get(s);g.current&&x!==qE&&x!==jE&&(g.current.style.flex=x||T.current)}},[l,s]);return(0,te.useLayoutEffect)(()=>{f==="first"?S("first"):A("first"),f==="second"?S("second"):A("second")},[f,S,A]),(0,te.useEffect)(()=>{if(!y.current||!g.current||!w.current)return;let b=y.current,C=g.current,x=C.parentElement,k=t==="horizontal"?"clientX":"clientY",P=t==="horizontal"?"left":"top",D=t==="horizontal"?"right":"bottom",N=t==="horizontal"?"clientWidth":"clientHeight";function I(G){G.preventDefault();let B=G[k]-b.getBoundingClientRect()[P];function U(j){if(j.buttons===0)return z();let J=j[k]-x.getBoundingClientRect()[P]-B,K=x.getBoundingClientRect()[D]-j[k]+B-b[N];if(J{b.removeEventListener("mousedown",I),b.removeEventListener("dblclick",V)}},[t,v,i,o,c]),(0,te.useMemo)(()=>({dragBarRef:y,hiddenElement:f,firstRef:g,setHiddenElement:m,secondRef:w}),[f,m])}oe(e0,"useDragResize");var sTe=1,qE="hide-first",jE="hide-second",t0=(0,te.forwardRef)(({label:e,onClick:t,...r},n)=>{let[i,o]=(0,te.useState)(null),s=(0,te.useCallback)(l=>{try{t?.(l),o(null)}catch(c){o(c instanceof Error?c:new Error(`Toolbar button click failed: ${c}`))}},[t]);return(0,Y.jsx)(ti,{label:e,children:(0,Y.jsx)(pn,{...r,ref:n,type:"button",className:gn("graphiql-toolbar-button",i&&"error",r.className),onClick:s,"aria-label":i?i.message:e,"aria-invalid":i?"true":r["aria-invalid"]})})});t0.displayName="ToolbarButton";function Xy(){let{queryEditor:e,setOperationName:t}=$r({nonNull:!0,caller:Xy}),{isFetching:r,isSubscribed:n,operationName:i,run:o,stop:s}=ec({nonNull:!0,caller:Xy}),l=e?.operations||[],c=l.length>1&&typeof i!="string",f=r||n,m=`${f?"Stop":"Execute"} query (Ctrl-Enter)`,v={type:"button",className:"graphiql-execute-button",children:f?(0,Y.jsx)(XEe,{}):(0,Y.jsx)(QEe,{}),"aria-label":m};return c&&!f?(0,Y.jsxs)(Zu,{children:[(0,Y.jsx)(ti,{label:m,children:(0,Y.jsx)(Zu.Button,{...v})}),(0,Y.jsx)(Zu.Content,{children:l.map((g,y)=>{let w=g.name?g.name.value:``;return(0,Y.jsx)(Zu.Item,{onSelect:()=>{var T;let S=(T=g.name)==null?void 0:T.value;e&&S&&S!==e.operationName&&t(S),o()},children:w},`${w}-${y}`)})})]}):(0,Y.jsx)(ti,{label:m,children:(0,Y.jsx)("button",{...v,onClick:()=>{f?s():o()}})})}oe(Xy,"ExecuteButton");var lTe=oe(({button:e,children:t,label:r,...n})=>(0,Y.jsxs)(Zu,{...n,children:[(0,Y.jsx)(ti,{label:r,children:(0,Y.jsx)(Zu.Button,{className:gn("graphiql-un-styled graphiql-toolbar-menu",n.className),"aria-label":r,children:e})}),(0,Y.jsx)(Zu.Content,{children:t})]}),"ToolbarMenuRoot"),nGe=Zy(lTe,{Item:Zu.Item});var P$=fe(L$(),1),jn=fe(Ee(),1),RTe={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},MTe=jn.default.createElement("svg",{viewBox:"0 -4 13 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},jn.default.createElement("path",{d:"M3.35355 6.85355L6.14645 9.64645C6.34171 9.84171 6.65829 9.84171 6.85355 9.64645L9.64645 6.85355C9.96143 6.53857 9.73835 6 9.29289 6L3.70711 6C3.26165 6 3.03857 6.53857 3.35355 6.85355Z",fill:"currentColor"})),ITe=jn.default.createElement("svg",{viewBox:"0 -2 13 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},jn.default.createElement("path",{d:"M6.35355 11.1464L9.14645 8.35355C9.34171 8.15829 9.34171 7.84171 9.14645 7.64645L6.35355 4.85355C6.03857 4.53857 5.5 4.76165 5.5 5.20711V10.7929C5.5 11.2383 6.03857 11.4614 6.35355 11.1464Z",fill:"currentColor"})),FTe=jn.default.createElement("svg",{viewBox:"0 0 15 15",style:{color:"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},jn.default.createElement("circle",{cx:"7.5",cy:"7.5",r:"6",stroke:"currentColor",fill:"none"})),qTe=jn.default.createElement("svg",{viewBox:"0 0 15 15",style:{color:"hsl(var(--color-info))",marginRight:"var(--px-4)",height:"var(--px-16)",width:"var(--px-16)"}},jn.default.createElement("circle",{cx:"7.5",cy:"7.5",r:"7.5",fill:"currentColor"}),jn.default.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",fill:"none",stroke:"white",strokeWidth:"1.5"})),jTe={buttonStyle:{backgroundColor:"transparent",border:"none",color:"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))",cursor:"pointer",fontSize:"1em"},explorerActionsStyle:{padding:"var(--px-8) var(--px-4)"},actionButtonStyle:{backgroundColor:"transparent",border:"none",color:"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))",cursor:"pointer",fontSize:"1em"}};function VTe(e){let{setOperationName:t}=$r({nonNull:!0}),{schema:r}=So({nonNull:!0}),{run:n}=ec({nonNull:!0}),i=(0,jn.useCallback)(l=>{l&&t(l),n()},[n,t]),[o,s]=bI();return jn.default.createElement(P$.Explorer,{schema:r,onRunOperation:i,explorerIsOpen:!0,colors:RTe,arrowOpen:MTe,arrowClosed:ITe,checkboxUnchecked:FTe,checkboxChecked:qTe,styles:jTe,query:o,onEdit:s,...e})}function R$(e){return{title:"GraphiQL Explorer",icon:()=>jn.default.createElement("svg",{height:"1em",strokeWidth:"1.5",viewBox:"0 0 24 24",fill:"none"},jn.default.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jn.default.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),jn.default.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),content:()=>jn.default.createElement(VTe,{...e})}}var ae=fe(Ee());var PI=function(){return PI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},BTe=parseInt(ae.default.version.slice(0,2),10);if(BTe<16)throw new Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(` -`));function la(e){var t=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,n=e.defaultTabs,i=e.externalFragments,o=e.fetcher,s=e.getDefaultFieldNames,l=e.headers,c=e.inputValueDeprecation,f=e.introspectionQueryName,m=e.maxHistoryLength,v=e.onEditOperationName,g=e.onSchemaChange,y=e.onTabChange,w=e.onTogglePluginVisibility,T=e.operationName,S=e.plugins,A=e.query,b=e.response,C=e.schema,x=e.schemaDescription,k=e.shouldPersistHeaders,P=e.storage,D=e.validationRules,N=e.variables,I=e.visiblePlugin,V=e.defaultHeaders,G=UTe(e,["dangerouslyAssumeSchemaIsValid","defaultQuery","defaultTabs","externalFragments","fetcher","getDefaultFieldNames","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onTabChange","onTogglePluginVisibility","operationName","plugins","query","response","schema","schemaDescription","shouldPersistHeaders","storage","validationRules","variables","visiblePlugin","defaultHeaders"]);if(typeof o!="function")throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return ae.default.createElement(oT,{getDefaultFieldNames:s,dangerouslyAssumeSchemaIsValid:t,defaultQuery:r,defaultHeaders:V,defaultTabs:n,externalFragments:i,fetcher:o,headers:l,inputValueDeprecation:c,introspectionQueryName:f,maxHistoryLength:m,onEditOperationName:v,onSchemaChange:g,onTabChange:y,onTogglePluginVisibility:w,plugins:S,visiblePlugin:I,operationName:T,query:A,response:b,schema:C,schemaDescription:x,shouldPersistHeaders:k,storage:P,validationRules:D,variables:N},ae.default.createElement(M$,PI({showPersistHeadersSettings:k!==!1},G)))}la.Logo=I$;la.Toolbar=F$;la.Footer=q$;function M$(e){var t,r,n,i=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,o=$r({nonNull:!0}),s=ec({nonNull:!0}),l=So({nonNull:!0}),c=Pl(),f=Jy(),m=$y({onCopyQuery:e.onCopyQuery}),v=Ju(),g=ed(),y=SI(),w=y.theme,T=y.setTheme,S=(r=f?.visiblePlugin)===null||r===void 0?void 0:r.content,A=e0({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:f?.visiblePlugin?void 0:"first",onHiddenElementChange:function(Ue){Ue==="first"&&f?.setVisiblePlugin(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),b=e0({direction:"horizontal",storageKey:"editorFlex"}),C=e0({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){if(!(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"))return typeof e.defaultEditorToolsVisibility=="boolean"?e.defaultEditorToolsVisibility?void 0:"second":o.initialVariables||o.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),x=cT((0,ae.useState)(function(){return e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!o.initialVariables&&o.initialHeaders&&i?"headers":"variables"}),2),k=x[0],P=x[1],D=cT((0,ae.useState)(null),2),N=D[0],I=D[1],V=cT((0,ae.useState)(null),2),G=V[0],B=V[1],U=ae.default.Children.toArray(e.children),z=U.find(function(Ue){return LI(Ue,la.Logo)})||ae.default.createElement(la.Logo,null),j=U.find(function(Ue){return LI(Ue,la.Toolbar)})||ae.default.createElement(ae.default.Fragment,null,ae.default.createElement(t0,{onClick:g,label:"Prettify query (Shift-Ctrl-P)"},ae.default.createElement(A_,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),ae.default.createElement(t0,{onClick:v,label:"Merge fragments into query (Shift-Ctrl-M)"},ae.default.createElement(y_,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),ae.default.createElement(t0,{onClick:m,label:"Copy query (Shift-Ctrl-C)"},ae.default.createElement(v_,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),(n=e.toolbar)===null||n===void 0?void 0:n.additionalContent),J=U.find(function(Ue){return LI(Ue,la.Footer)}),K=(0,ae.useCallback)(function(){A.hiddenElement==="first"&&A.setHiddenElement(null)},[A]),ee=(0,ae.useCallback)(function(){try{c?.clear(),B("success")}catch{B("error")}},[c]),re=(0,ae.useCallback)(function(Ue){o.setShouldPersistHeaders(Ue.currentTarget.dataset.value==="true")},[o]),se=(0,ae.useCallback)(function(Ue){var bt=Ue.currentTarget.dataset.theme;T(bt||null)},[T]),xe=o.addTab,Re=l.introspect,Se=o.moveTab,ie=(0,ae.useCallback)(function(Ue){I(Ue.currentTarget.dataset.value)},[]),ye=(0,ae.useCallback)(function(Ue){var bt=f,he=Number(Ue.currentTarget.dataset.index),Fe=bt.plugins.find(function(Me,st){return he===st}),pe=Fe===bt.visiblePlugin;pe?(bt.setVisiblePlugin(null),A.setHiddenElement("first")):(bt.setVisiblePlugin(Fe),A.setHiddenElement(null))},[f,A]),me=(0,ae.useCallback)(function(Ue){C.hiddenElement==="second"&&C.setHiddenElement(null),P(Ue.currentTarget.dataset.name)},[C]),Oe=(0,ae.useCallback)(function(){C.setHiddenElement(C.hiddenElement==="second"?null:"second")},[C]),Ge=(0,ae.useCallback)(function(Ue){Ue||I(null)},[]),He=(0,ae.useCallback)(function(Ue){Ue||(I(null),B(null))},[]),dr=ae.default.createElement(ti,{label:"Add tab"},ae.default.createElement(pn,{type:"button",className:"graphiql-tab-add",onClick:xe,"aria-label":"Add tab"},ae.default.createElement(b_,{"aria-hidden":"true"})));return ae.default.createElement(ti.Provider,null,ae.default.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},ae.default.createElement("div",{className:"graphiql-sidebar"},ae.default.createElement("div",{className:"graphiql-sidebar-section"},f?.plugins.map(function(Ue,bt){var he=Ue===f.visiblePlugin,Fe="".concat(he?"Hide":"Show"," ").concat(Ue.title),pe=Ue.icon;return ae.default.createElement(ti,{key:Ue.title,label:Fe},ae.default.createElement(pn,{type:"button",className:he?"active":"",onClick:ye,"data-index":bt,"aria-label":Fe},ae.default.createElement(pe,{"aria-hidden":"true"})))})),ae.default.createElement("div",{className:"graphiql-sidebar-section"},ae.default.createElement(ti,{label:"Re-fetch GraphQL schema"},ae.default.createElement(pn,{type:"button",disabled:l.isFetching,onClick:Re,"aria-label":"Re-fetch GraphQL schema"},ae.default.createElement(x_,{className:l.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),ae.default.createElement(ti,{label:"Open short keys dialog"},ae.default.createElement(pn,{type:"button","data-value":"short-keys",onClick:ie,"aria-label":"Open short keys dialog"},ae.default.createElement(g_,{"aria-hidden":"true"}))),ae.default.createElement(ti,{label:"Open settings dialog"},ae.default.createElement(pn,{type:"button","data-value":"settings",onClick:ie,"aria-label":"Open settings dialog"},ae.default.createElement(w_,{"aria-hidden":"true"}))))),ae.default.createElement("div",{className:"graphiql-main"},ae.default.createElement("div",{ref:A.firstRef,style:{minWidth:"200px"}},ae.default.createElement("div",{className:"graphiql-plugin"},S?ae.default.createElement(S,null):null)),f?.visiblePlugin&&ae.default.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:A.dragBarRef}),ae.default.createElement("div",{ref:A.secondRef,className:"graphiql-sessions"},ae.default.createElement("div",{className:"graphiql-session-header"},ae.default.createElement(fI,{values:o.tabs,onReorder:Se,"aria-label":"Select active operation"},o.tabs.length>1&&ae.default.createElement(ae.default.Fragment,null,o.tabs.map(function(Ue,bt){return ae.default.createElement(JE,{key:Ue.id,value:Ue,isActive:bt===o.activeTabIndex},ae.default.createElement(JE.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(bt),onClick:function(){s.stop(),o.changeTab(bt)}},Ue.title),ae.default.createElement(JE.Close,{onClick:function(){o.activeTabIndex===bt&&s.stop(),o.closeTab(bt)}}))}),dr)),ae.default.createElement("div",{className:"graphiql-session-header-right"},o.tabs.length===1&&dr,z)),ae.default.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(o.activeTabIndex)},ae.default.createElement("div",{ref:b.firstRef},ae.default.createElement("div",{className:"graphiql-editors".concat(o.tabs.length===1?" full-height":"")},ae.default.createElement("div",{ref:C.firstRef},ae.default.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},ae.default.createElement(nT,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:K,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),ae.default.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},ae.default.createElement(Xy,null),j))),ae.default.createElement("div",{ref:C.dragBarRef},ae.default.createElement("div",{className:"graphiql-editor-tools"},ae.default.createElement(pn,{type:"button",className:k==="variables"&&C.hiddenElement!=="second"?"active":"",onClick:me,"data-name":"variables"},"Variables"),i&&ae.default.createElement(pn,{type:"button",className:k==="headers"&&C.hiddenElement!=="second"?"active":"",onClick:me,"data-name":"headers"},"Headers"),ae.default.createElement(ti,{label:C.hiddenElement==="second"?"Show editor tools":"Hide editor tools"},ae.default.createElement(pn,{type:"button",onClick:Oe,"aria-label":C.hiddenElement==="second"?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},C.hiddenElement==="second"?ae.default.createElement(h_,{className:"graphiql-chevron-icon","aria-hidden":"true"}):ae.default.createElement(m_,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),ae.default.createElement("div",{ref:C.secondRef},ae.default.createElement("section",{className:"graphiql-editor-tool","aria-label":k==="variables"?"Variables":"Headers"},ae.default.createElement(Ky,{editorTheme:e.editorTheme,isHidden:k!=="variables",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:K,readOnly:e.readOnly}),i&&ae.default.createElement(Yy,{editorTheme:e.editorTheme,isHidden:k!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),ae.default.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:b.dragBarRef}),ae.default.createElement("div",{ref:b.secondRef},ae.default.createElement("div",{className:"graphiql-response"},s.isFetching?ae.default.createElement(ZE,null):null,ae.default.createElement(iT,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),J))))),ae.default.createElement($f,{open:N==="short-keys",onOpenChange:Ge},ae.default.createElement("div",{className:"graphiql-dialog-header"},ae.default.createElement($f.Title,{className:"graphiql-dialog-title"},"Short Keys"),ae.default.createElement($f.Close,null)),ae.default.createElement("div",{className:"graphiql-dialog-section"},ae.default.createElement(zTe,{keyMap:e.keyMap||"sublime"}))),ae.default.createElement($f,{open:N==="settings",onOpenChange:He},ae.default.createElement("div",{className:"graphiql-dialog-header"},ae.default.createElement($f.Title,{className:"graphiql-dialog-title"},"Settings"),ae.default.createElement($f.Close,null)),e.showPersistHeadersSettings?ae.default.createElement("div",{className:"graphiql-dialog-section"},ae.default.createElement("div",null,ae.default.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),ae.default.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",ae.default.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),ae.default.createElement(XE,null,ae.default.createElement(aa,{type:"button",id:"enable-persist-headers",className:o.shouldPersistHeaders?"active":"","data-value":"true",onClick:re},"On"),ae.default.createElement(aa,{type:"button",id:"disable-persist-headers",className:o.shouldPersistHeaders?"":"active",onClick:re},"Off"))):null,ae.default.createElement("div",{className:"graphiql-dialog-section"},ae.default.createElement("div",null,ae.default.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),ae.default.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),ae.default.createElement(XE,null,ae.default.createElement(aa,{type:"button",className:w===null?"active":"",onClick:se},"System"),ae.default.createElement(aa,{type:"button",className:w==="light"?"active":"","data-theme":"light",onClick:se},"Light"),ae.default.createElement(aa,{type:"button",className:w==="dark"?"active":"","data-theme":"dark",onClick:se},"Dark"))),c?ae.default.createElement("div",{className:"graphiql-dialog-section"},ae.default.createElement("div",null,ae.default.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),ae.default.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),ae.default.createElement(aa,{type:"button",state:G||void 0,disabled:G==="success",onClick:ee},{success:"Cleared data",error:"Failed"}[G]||"Clear data")):null)))}var DI=typeof window<"u"&&window.navigator.platform.toLowerCase().indexOf("mac")===0?"Cmd":"Ctrl",GTe=Object.entries({"Search in editor":[DI,"F"],"Search in documentation":[DI,"K"],"Execute query":[DI,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function zTe(e){var t=e.keyMap;return ae.default.createElement("div",null,ae.default.createElement("table",{className:"graphiql-table"},ae.default.createElement("thead",null,ae.default.createElement("tr",null,ae.default.createElement("th",null,"Short Key"),ae.default.createElement("th",null,"Function"))),ae.default.createElement("tbody",null,GTe.map(function(r){var n=cT(r,2),i=n[0],o=n[1];return ae.default.createElement("tr",{key:i},ae.default.createElement("td",null,o.map(function(s,l,c){return ae.default.createElement(ae.Fragment,{key:s},ae.default.createElement("code",{className:"graphiql-key"},s),l!==c.length-1&&" + ")})),ae.default.createElement("td",null,i))}))),ae.default.createElement("p",null,"The editors use"," ",ae.default.createElement("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer"},"CodeMirror Key Maps")," ","that add more short keys. This instance of Graph",ae.default.createElement("em",null,"i"),"QL uses"," ",ae.default.createElement("code",null,t),"."))}function I$(e){return ae.default.createElement("div",{className:"graphiql-logo"},e.children||ae.default.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",ae.default.createElement("em",null,"i"),"QL"))}I$.displayName="GraphiQLLogo";function F$(e){return ae.default.createElement(ae.default.Fragment,null,e.children)}F$.displayName="GraphiQLToolbar";function q$(e){return ae.default.createElement("div",{className:"graphiql-footer"},e.children)}q$.displayName="GraphiQLFooter";function LI(e,t){var r;return!((r=e?.type)===null||r===void 0)&&r.displayName&&e.type.displayName===t.displayName?!0:e.type===t}var fT=fe(Ur()),n0=fe(Ee()),i0=fe(Ee()),B$=fe(V$());var HTe=e=>{document.querySelector("#status-bar").textContent=`platformOS - ${e.MPKIT_URL}`},U$=e=>fetch("/graphql",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(e)}).then(t=>t.text()).then(t=>{try{return JSON.parse(t)}catch{return t}}),QTe=` +`;function Yy({isHidden:e,...t}){ + let{headerEditor:r}=$r({nonNull:!0,caller:Yy}),n=rh(t,Yy);return(0,te.useEffect)(()=>{ + e||r==null||r.refresh(); + },[r,e]),(0,Y.jsx)('div',{className:gn('graphiql-editor',e&&'hidden'),ref:n}); +}oe(Yy,'HeaderEditor');function YE(e){ + var t;let[r,n]=(0,te.useState)({width:null,height:null}),[i,o]=(0,te.useState)(null),s=(0,te.useRef)(null),l=(t=CI(e.token))==null?void 0:t.href;(0,te.useEffect)(()=>{ + if(s.current){ + if(!l){ + n({width:null,height:null}),o(null);return; + }fetch(l,{method:'HEAD'}).then(f=>{ + o(f.headers.get('Content-Type')); + }).catch(()=>{ + o(null); + }); + } + },[l]);let c=r.width!==null&&r.height!==null?(0,Y.jsxs)('div',{children:[r.width,'x',r.height,i===null?null:' '+i]}):null;return(0,Y.jsxs)('div',{children:[(0,Y.jsx)('img',{onLoad:()=>{ + var f,m;n({width:((f=s.current)==null?void 0:f.naturalWidth)??null,height:((m=s.current)==null?void 0:m.naturalHeight)??null}); + },ref:s,src:l}),c]}); +}oe(YE,'ImagePreview');YE.shouldRender=oe(function(e){ + let t=CI(e);return t?g$(t):!1; +},'shouldRender');function CI(e){ + if(e.type!=='string')return;let t=e.string.slice(1).slice(0,-1).trim();try{ + let{location:r}=window;return new URL(t,r.protocol+'//'+r.host); + }catch{ + return; + } +}oe(CI,'tokenToURL');function g$(e){ + return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname); +}oe(g$,'isImageURL');function nT(e){ + let t=Xu(e,nT);return(0,Y.jsx)('div',{className:'graphiql-editor',ref:t}); +}oe(nT,'QueryEditor');function KE({responseTooltip:e,editorTheme:t=$E,keyMap:r=eT}={},n){ + let{fetchError:i,validationErrors:o}=So({nonNull:!0,caller:n||KE}),{initialResponse:s,responseEditor:l,setResponseEditor:c}=$r({nonNull:!0,caller:n||KE}),f=(0,te.useRef)(null),m=(0,te.useRef)(e);return(0,te.useEffect)(()=>{ + m.current=e; + },[e]),(0,te.useEffect)(()=>{ + let v=!0;return nh([Promise.resolve().then(()=>(RM(),PM)).then(g=>g.f),Promise.resolve().then(()=>(LM(),DM)).then(g=>g.b),Promise.resolve().then(()=>(ky(),FM)).then(g=>g.d),Promise.resolve().then(()=>(GM(),BM)).then(g=>g.s),Promise.resolve().then(()=>(IM(),MM)).then(g=>g.s),Promise.resolve().then(()=>(jM(),qM)).then(g=>g.j),Promise.resolve().then(()=>(UM(),VM)).then(g=>g.s),Promise.resolve().then(()=>(a_(),_we)),Promise.resolve().then(()=>(WM(),Nwe))],{useCommonAddons:!1}).then(g=>{ + if(!v)return;let y=document.createElement('div');g.registerHelper('info','graphql-results',(S,A,b,C)=>{ + let x=[],k=m.current;return k&&x.push((0,Y.jsx)(k,{pos:C,token:S})),YE.shouldRender(S)&&x.push((0,Y.jsx)(YE,{token:S},'image-preview')),x.length?(iI.default.render(x,y),y):(iI.default.unmountComponentAtNode(y),null); + });let w=f.current;if(!w)return;let T=g(w,{value:s,lineWrapping:!0,readOnly:!0,theme:t,mode:'graphql-results',foldGutter:!0,gutters:['CodeMirror-foldgutter'],info:!0,extraKeys:tT});c(T); + }),()=>{ + v=!1; + }; + },[t,s,c]),_y(l,'keyMap',r),(0,te.useEffect)(()=>{ + i&&l?.setValue(i),o.length>0&&l?.setValue(fp(o)); + },[l,i,o]),f; +}oe(KE,'useResponseEditor');function iT(e){ + let t=KE(e,iT);return(0,Y.jsx)('section',{className:'result-window','aria-label':'Result Window','aria-live':'polite','aria-atomic':'true',ref:t}); +}oe(iT,'ResponseEditor');function Ky({isHidden:e,...t}){ + let{variableEditor:r}=$r({nonNull:!0,caller:Ky}),n=Jf(t,Ky);return(0,te.useEffect)(()=>{ + r&&!e&&r.refresh(); + },[r,e]),(0,Y.jsx)('div',{className:gn('graphiql-editor',e&&'hidden'),ref:n}); +}oe(Ky,'VariableEditor');function oT({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:r,defaultHeaders:n,defaultTabs:i,externalFragments:o,fetcher:s,getDefaultFieldNames:l,headers:c,inputValueDeprecation:f,introspectionQueryName:m,maxHistoryLength:v,onEditOperationName:g,onSchemaChange:y,onTabChange:w,onTogglePluginVisibility:T,operationName:S,plugins:A,query:b,response:C,schema:x,schemaDescription:k,shouldPersistHeaders:P,storage:D,validationRules:N,variables:I,visiblePlugin:V}){ + return(0,Y.jsx)(p_,{storage:D,children:(0,Y.jsx)(P_,{maxHistoryLength:v,children:(0,Y.jsx)(v$,{defaultQuery:r,defaultHeaders:n,defaultTabs:i,externalFragments:o,headers:c,onEditOperationName:g,onTabChange:w,query:b,response:C,shouldPersistHeaders:P,validationRules:N,variables:I,children:(0,Y.jsx)(pI,{dangerouslyAssumeSchemaIsValid:t,fetcher:s,inputValueDeprecation:f,introspectionQueryName:m,onSchemaChange:y,schema:x,schemaDescription:k,children:(0,Y.jsx)(GE,{getDefaultFieldNames:l,fetcher:s,operationName:S,children:(0,Y.jsx)(mI,{children:(0,Y.jsx)($_,{onTogglePluginVisibility:T,plugins:A,visiblePlugin:V,children:e})})})})})})}); +}oe(oT,'GraphiQLProvider');function SI(){ + let e=Pl(),[t,r]=(0,te.useState)(()=>{ + if(!e)return null;let i=e.get(nI);switch(i){ + case'light':return'light';case'dark':return'dark';default:return typeof i=='string'&&e.set(nI,''),null; + } + });(0,te.useLayoutEffect)(()=>{ + typeof window>'u'||(document.body.classList.remove('graphiql-light','graphiql-dark'),t&&document.body.classList.add(`graphiql-${t}`)); + },[t]);let n=(0,te.useCallback)(i=>{ + e?.set(nI,i||''),r(i); + },[e]);return(0,te.useMemo)(()=>({theme:t,setTheme:n}),[t,n]); +}oe(SI,'useTheme');var nI='theme';function e0({defaultSizeRelation:e=sTe,direction:t,initiallyHidden:r,onHiddenElementChange:n,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:s}){ + let l=Pl(),c=(0,te.useMemo)(()=>_f(500,b=>{ + s&&l?.set(s,b); + }),[l,s]),[f,m]=(0,te.useState)(()=>{ + let b=s&&l?.get(s);return b===qE||r==='first'?'first':b===jE||r==='second'?'second':null; + }),v=(0,te.useCallback)(b=>{ + b!==f&&(m(b),n?.(b)); + },[f,n]),g=(0,te.useRef)(null),y=(0,te.useRef)(null),w=(0,te.useRef)(null),T=(0,te.useRef)(`${e}`);(0,te.useLayoutEffect)(()=>{ + let b=s&&l?.get(s)||T.current;g.current&&(g.current.style.display='flex',g.current.style.flex=b===qE||b===jE?T.current:b),w.current&&(w.current.style.display='flex',w.current.style.flex='1'),y.current&&(y.current.style.display='flex'); + },[t,l,s]);let S=(0,te.useCallback)(b=>{ + let C=b==='first'?g.current:w.current;if(C&&(C.style.left='-1000px',C.style.position='absolute',C.style.opacity='0',C.style.height='500px',C.style.width='500px',g.current)){ + let x=parseFloat(g.current.style.flex);(!Number.isFinite(x)||x<1)&&(g.current.style.flex='1'); + } + },[]),A=(0,te.useCallback)(b=>{ + let C=b==='first'?g.current:w.current;if(C&&(C.style.width='',C.style.height='',C.style.opacity='',C.style.position='',C.style.left='',l&&s)){ + let x=l.get(s);g.current&&x!==qE&&x!==jE&&(g.current.style.flex=x||T.current); + } + },[l,s]);return(0,te.useLayoutEffect)(()=>{ + f==='first'?S('first'):A('first'),f==='second'?S('second'):A('second'); + },[f,S,A]),(0,te.useEffect)(()=>{ + if(!y.current||!g.current||!w.current)return;let b=y.current,C=g.current,x=C.parentElement,k=t==='horizontal'?'clientX':'clientY',P=t==='horizontal'?'left':'top',D=t==='horizontal'?'right':'bottom',N=t==='horizontal'?'clientWidth':'clientHeight';function I(G){ + G.preventDefault();let B=G[k]-b.getBoundingClientRect()[P];function U(j){ + if(j.buttons===0)return z();let J=j[k]-x.getBoundingClientRect()[P]-B,K=x.getBoundingClientRect()[D]-j[k]+B-b[N];if(J{ + b.removeEventListener('mousedown',I),b.removeEventListener('dblclick',V); + }; + },[t,v,i,o,c]),(0,te.useMemo)(()=>({dragBarRef:y,hiddenElement:f,firstRef:g,setHiddenElement:m,secondRef:w}),[f,m]); +}oe(e0,'useDragResize');var sTe=1,qE='hide-first',jE='hide-second',t0=(0,te.forwardRef)(({label:e,onClick:t,...r},n)=>{ + let[i,o]=(0,te.useState)(null),s=(0,te.useCallback)(l=>{ + try{ + t?.(l),o(null); + }catch(c){ + o(c instanceof Error?c:new Error(`Toolbar button click failed: ${c}`)); + } + },[t]);return(0,Y.jsx)(ti,{label:e,children:(0,Y.jsx)(pn,{...r,ref:n,type:'button',className:gn('graphiql-toolbar-button',i&&'error',r.className),onClick:s,'aria-label':i?i.message:e,'aria-invalid':i?'true':r['aria-invalid']})}); +});t0.displayName='ToolbarButton';function Xy(){ + let{queryEditor:e,setOperationName:t}=$r({nonNull:!0,caller:Xy}),{isFetching:r,isSubscribed:n,operationName:i,run:o,stop:s}=ec({nonNull:!0,caller:Xy}),l=e?.operations||[],c=l.length>1&&typeof i!='string',f=r||n,m=`${f?'Stop':'Execute'} query (Ctrl-Enter)`,v={type:'button',className:'graphiql-execute-button',children:f?(0,Y.jsx)(XEe,{}):(0,Y.jsx)(QEe,{}),'aria-label':m};return c&&!f?(0,Y.jsxs)(Zu,{children:[(0,Y.jsx)(ti,{label:m,children:(0,Y.jsx)(Zu.Button,{...v})}),(0,Y.jsx)(Zu.Content,{children:l.map((g,y)=>{ + let w=g.name?g.name.value:``;return(0,Y.jsx)(Zu.Item,{onSelect:()=>{ + var T;let S=(T=g.name)==null?void 0:T.value;e&&S&&S!==e.operationName&&t(S),o(); + },children:w},`${w}-${y}`); + })})]}):(0,Y.jsx)(ti,{label:m,children:(0,Y.jsx)('button',{...v,onClick:()=>{ + f?s():o(); + }})}); +}oe(Xy,'ExecuteButton');var lTe=oe(({button:e,children:t,label:r,...n})=>(0,Y.jsxs)(Zu,{...n,children:[(0,Y.jsx)(ti,{label:r,children:(0,Y.jsx)(Zu.Button,{className:gn('graphiql-un-styled graphiql-toolbar-menu',n.className),'aria-label':r,children:e})}),(0,Y.jsx)(Zu.Content,{children:t})]}),'ToolbarMenuRoot'),nGe=Zy(lTe,{Item:Zu.Item});var P$=fe(L$(),1),jn=fe(Ee(),1),RTe={keyword:'hsl(var(--color-primary))',def:'hsl(var(--color-tertiary))',property:'hsl(var(--color-info))',qualifier:'hsl(var(--color-secondary))',attribute:'hsl(var(--color-tertiary))',number:'hsl(var(--color-success))',string:'hsl(var(--color-warning))',builtin:'hsl(var(--color-success))',string2:'hsl(var(--color-secondary))',variable:'hsl(var(--color-secondary))',atom:'hsl(var(--color-tertiary))'},MTe=jn.default.createElement('svg',{viewBox:'0 -4 13 15',style:{color:'hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))',marginRight:'var(--px-4)',height:'var(--px-16)',width:'var(--px-16)'}},jn.default.createElement('path',{d:'M3.35355 6.85355L6.14645 9.64645C6.34171 9.84171 6.65829 9.84171 6.85355 9.64645L9.64645 6.85355C9.96143 6.53857 9.73835 6 9.29289 6L3.70711 6C3.26165 6 3.03857 6.53857 3.35355 6.85355Z',fill:'currentColor'})),ITe=jn.default.createElement('svg',{viewBox:'0 -2 13 15',style:{color:'hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))',marginRight:'var(--px-4)',height:'var(--px-16)',width:'var(--px-16)'}},jn.default.createElement('path',{d:'M6.35355 11.1464L9.14645 8.35355C9.34171 8.15829 9.34171 7.84171 9.14645 7.64645L6.35355 4.85355C6.03857 4.53857 5.5 4.76165 5.5 5.20711V10.7929C5.5 11.2383 6.03857 11.4614 6.35355 11.1464Z',fill:'currentColor'})),FTe=jn.default.createElement('svg',{viewBox:'0 0 15 15',style:{color:'hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))',marginRight:'var(--px-4)',height:'var(--px-16)',width:'var(--px-16)'}},jn.default.createElement('circle',{cx:'7.5',cy:'7.5',r:'6',stroke:'currentColor',fill:'none'})),qTe=jn.default.createElement('svg',{viewBox:'0 0 15 15',style:{color:'hsl(var(--color-info))',marginRight:'var(--px-4)',height:'var(--px-16)',width:'var(--px-16)'}},jn.default.createElement('circle',{cx:'7.5',cy:'7.5',r:'7.5',fill:'currentColor'}),jn.default.createElement('path',{d:'M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325',fill:'none',stroke:'white',strokeWidth:'1.5'})),jTe={buttonStyle:{backgroundColor:'transparent',border:'none',color:'hsla(var(--color-neutral), var(--alpha-secondary, 0.6))',cursor:'pointer',fontSize:'1em'},explorerActionsStyle:{padding:'var(--px-8) var(--px-4)'},actionButtonStyle:{backgroundColor:'transparent',border:'none',color:'hsla(var(--color-neutral), var(--alpha-secondary, 0.6))',cursor:'pointer',fontSize:'1em'}};function VTe(e){ + let{setOperationName:t}=$r({nonNull:!0}),{schema:r}=So({nonNull:!0}),{run:n}=ec({nonNull:!0}),i=(0,jn.useCallback)(l=>{ + l&&t(l),n(); + },[n,t]),[o,s]=bI();return jn.default.createElement(P$.Explorer,{schema:r,onRunOperation:i,explorerIsOpen:!0,colors:RTe,arrowOpen:MTe,arrowClosed:ITe,checkboxUnchecked:FTe,checkboxChecked:qTe,styles:jTe,query:o,onEdit:s,...e}); +}function R$(e){ + return{title:'GraphiQL Explorer',icon:()=>jn.default.createElement('svg',{height:'1em',strokeWidth:'1.5',viewBox:'0 0 24 24',fill:'none'},jn.default.createElement('path',{d:'M18 6H20M22 6H20M20 6V4M20 6V8',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'}),jn.default.createElement('path',{d:'M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'}),jn.default.createElement('path',{d:'M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14',stroke:'currentColor',strokeLinecap:'round',strokeLinejoin:'round'})),content:()=>jn.default.createElement(VTe,{...e})}; +}var ae=fe(Ee());var PI=function(){ + return PI=Object.assign||function(e){ + for(var t,r=1,n=arguments.length;r0)&&!(i=n.next()).done;)o.push(i.value); + }catch(l){ + s={error:l}; + }finally{ + try{ + i&&!i.done&&(r=n.return)&&r.call(n); + }finally{ + if(s)throw s.error; + } + }return o; + },BTe=parseInt(ae.default.version.slice(0,2),10);if(BTe<16)throw new Error(['GraphiQL 0.18.0 and after is not compatible with React 15 or below.','If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:','https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49'].join(` +`));function la(e){ + var t=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,n=e.defaultTabs,i=e.externalFragments,o=e.fetcher,s=e.getDefaultFieldNames,l=e.headers,c=e.inputValueDeprecation,f=e.introspectionQueryName,m=e.maxHistoryLength,v=e.onEditOperationName,g=e.onSchemaChange,y=e.onTabChange,w=e.onTogglePluginVisibility,T=e.operationName,S=e.plugins,A=e.query,b=e.response,C=e.schema,x=e.schemaDescription,k=e.shouldPersistHeaders,P=e.storage,D=e.validationRules,N=e.variables,I=e.visiblePlugin,V=e.defaultHeaders,G=UTe(e,['dangerouslyAssumeSchemaIsValid','defaultQuery','defaultTabs','externalFragments','fetcher','getDefaultFieldNames','headers','inputValueDeprecation','introspectionQueryName','maxHistoryLength','onEditOperationName','onSchemaChange','onTabChange','onTogglePluginVisibility','operationName','plugins','query','response','schema','schemaDescription','shouldPersistHeaders','storage','validationRules','variables','visiblePlugin','defaultHeaders']);if(typeof o!='function')throw new TypeError('The `GraphiQL` component requires a `fetcher` function to be passed as prop.');return ae.default.createElement(oT,{getDefaultFieldNames:s,dangerouslyAssumeSchemaIsValid:t,defaultQuery:r,defaultHeaders:V,defaultTabs:n,externalFragments:i,fetcher:o,headers:l,inputValueDeprecation:c,introspectionQueryName:f,maxHistoryLength:m,onEditOperationName:v,onSchemaChange:g,onTabChange:y,onTogglePluginVisibility:w,plugins:S,visiblePlugin:I,operationName:T,query:A,response:b,schema:C,schemaDescription:x,shouldPersistHeaders:k,storage:P,validationRules:D,variables:N},ae.default.createElement(M$,PI({showPersistHeadersSettings:k!==!1},G))); +}la.Logo=I$;la.Toolbar=F$;la.Footer=q$;function M$(e){ + var t,r,n,i=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,o=$r({nonNull:!0}),s=ec({nonNull:!0}),l=So({nonNull:!0}),c=Pl(),f=Jy(),m=$y({onCopyQuery:e.onCopyQuery}),v=Ju(),g=ed(),y=SI(),w=y.theme,T=y.setTheme,S=(r=f?.visiblePlugin)===null||r===void 0?void 0:r.content,A=e0({defaultSizeRelation:1/3,direction:'horizontal',initiallyHidden:f?.visiblePlugin?void 0:'first',onHiddenElementChange:function(Ue){ + Ue==='first'&&f?.setVisiblePlugin(null); + },sizeThresholdSecond:200,storageKey:'docExplorerFlex'}),b=e0({direction:'horizontal',storageKey:'editorFlex'}),C=e0({defaultSizeRelation:3,direction:'vertical',initiallyHidden:function(){ + if(!(e.defaultEditorToolsVisibility==='variables'||e.defaultEditorToolsVisibility==='headers'))return typeof e.defaultEditorToolsVisibility=='boolean'?e.defaultEditorToolsVisibility?void 0:'second':o.initialVariables||o.initialHeaders?void 0:'second'; + }(),sizeThresholdSecond:60,storageKey:'secondaryEditorFlex'}),x=cT((0,ae.useState)(function(){ + return e.defaultEditorToolsVisibility==='variables'||e.defaultEditorToolsVisibility==='headers'?e.defaultEditorToolsVisibility:!o.initialVariables&&o.initialHeaders&&i?'headers':'variables'; + }),2),k=x[0],P=x[1],D=cT((0,ae.useState)(null),2),N=D[0],I=D[1],V=cT((0,ae.useState)(null),2),G=V[0],B=V[1],U=ae.default.Children.toArray(e.children),z=U.find(function(Ue){ + return LI(Ue,la.Logo); + })||ae.default.createElement(la.Logo,null),j=U.find(function(Ue){ + return LI(Ue,la.Toolbar); + })||ae.default.createElement(ae.default.Fragment,null,ae.default.createElement(t0,{onClick:g,label:'Prettify query (Shift-Ctrl-P)'},ae.default.createElement(A_,{className:'graphiql-toolbar-icon','aria-hidden':'true'})),ae.default.createElement(t0,{onClick:v,label:'Merge fragments into query (Shift-Ctrl-M)'},ae.default.createElement(y_,{className:'graphiql-toolbar-icon','aria-hidden':'true'})),ae.default.createElement(t0,{onClick:m,label:'Copy query (Shift-Ctrl-C)'},ae.default.createElement(v_,{className:'graphiql-toolbar-icon','aria-hidden':'true'})),(n=e.toolbar)===null||n===void 0?void 0:n.additionalContent),J=U.find(function(Ue){ + return LI(Ue,la.Footer); + }),K=(0,ae.useCallback)(function(){ + A.hiddenElement==='first'&&A.setHiddenElement(null); + },[A]),ee=(0,ae.useCallback)(function(){ + try{ + c?.clear(),B('success'); + }catch{ + B('error'); + } + },[c]),re=(0,ae.useCallback)(function(Ue){ + o.setShouldPersistHeaders(Ue.currentTarget.dataset.value==='true'); + },[o]),se=(0,ae.useCallback)(function(Ue){ + var bt=Ue.currentTarget.dataset.theme;T(bt||null); + },[T]),xe=o.addTab,Re=l.introspect,Se=o.moveTab,ie=(0,ae.useCallback)(function(Ue){ + I(Ue.currentTarget.dataset.value); + },[]),ye=(0,ae.useCallback)(function(Ue){ + var bt=f,he=Number(Ue.currentTarget.dataset.index),Fe=bt.plugins.find(function(Me,st){ + return he===st; + }),pe=Fe===bt.visiblePlugin;pe?(bt.setVisiblePlugin(null),A.setHiddenElement('first')):(bt.setVisiblePlugin(Fe),A.setHiddenElement(null)); + },[f,A]),me=(0,ae.useCallback)(function(Ue){ + C.hiddenElement==='second'&&C.setHiddenElement(null),P(Ue.currentTarget.dataset.name); + },[C]),Oe=(0,ae.useCallback)(function(){ + C.setHiddenElement(C.hiddenElement==='second'?null:'second'); + },[C]),Ge=(0,ae.useCallback)(function(Ue){ + Ue||I(null); + },[]),He=(0,ae.useCallback)(function(Ue){ + Ue||(I(null),B(null)); + },[]),dr=ae.default.createElement(ti,{label:'Add tab'},ae.default.createElement(pn,{type:'button',className:'graphiql-tab-add',onClick:xe,'aria-label':'Add tab'},ae.default.createElement(b_,{'aria-hidden':'true'})));return ae.default.createElement(ti.Provider,null,ae.default.createElement('div',{'data-testid':'graphiql-container',className:'graphiql-container'},ae.default.createElement('div',{className:'graphiql-sidebar'},ae.default.createElement('div',{className:'graphiql-sidebar-section'},f?.plugins.map(function(Ue,bt){ + var he=Ue===f.visiblePlugin,Fe=''.concat(he?'Hide':'Show',' ').concat(Ue.title),pe=Ue.icon;return ae.default.createElement(ti,{key:Ue.title,label:Fe},ae.default.createElement(pn,{type:'button',className:he?'active':'',onClick:ye,'data-index':bt,'aria-label':Fe},ae.default.createElement(pe,{'aria-hidden':'true'}))); + })),ae.default.createElement('div',{className:'graphiql-sidebar-section'},ae.default.createElement(ti,{label:'Re-fetch GraphQL schema'},ae.default.createElement(pn,{type:'button',disabled:l.isFetching,onClick:Re,'aria-label':'Re-fetch GraphQL schema'},ae.default.createElement(x_,{className:l.isFetching?'graphiql-spin':'','aria-hidden':'true'}))),ae.default.createElement(ti,{label:'Open short keys dialog'},ae.default.createElement(pn,{type:'button','data-value':'short-keys',onClick:ie,'aria-label':'Open short keys dialog'},ae.default.createElement(g_,{'aria-hidden':'true'}))),ae.default.createElement(ti,{label:'Open settings dialog'},ae.default.createElement(pn,{type:'button','data-value':'settings',onClick:ie,'aria-label':'Open settings dialog'},ae.default.createElement(w_,{'aria-hidden':'true'}))))),ae.default.createElement('div',{className:'graphiql-main'},ae.default.createElement('div',{ref:A.firstRef,style:{minWidth:'200px'}},ae.default.createElement('div',{className:'graphiql-plugin'},S?ae.default.createElement(S,null):null)),f?.visiblePlugin&&ae.default.createElement('div',{className:'graphiql-horizontal-drag-bar',ref:A.dragBarRef}),ae.default.createElement('div',{ref:A.secondRef,className:'graphiql-sessions'},ae.default.createElement('div',{className:'graphiql-session-header'},ae.default.createElement(fI,{values:o.tabs,onReorder:Se,'aria-label':'Select active operation'},o.tabs.length>1&&ae.default.createElement(ae.default.Fragment,null,o.tabs.map(function(Ue,bt){ + return ae.default.createElement(JE,{key:Ue.id,value:Ue,isActive:bt===o.activeTabIndex},ae.default.createElement(JE.Button,{'aria-controls':'graphiql-session',id:'graphiql-session-tab-'.concat(bt),onClick:function(){ + s.stop(),o.changeTab(bt); + }},Ue.title),ae.default.createElement(JE.Close,{onClick:function(){ + o.activeTabIndex===bt&&s.stop(),o.closeTab(bt); + }})); + }),dr)),ae.default.createElement('div',{className:'graphiql-session-header-right'},o.tabs.length===1&&dr,z)),ae.default.createElement('div',{role:'tabpanel',id:'graphiql-session',className:'graphiql-session','aria-labelledby':'graphiql-session-tab-'.concat(o.activeTabIndex)},ae.default.createElement('div',{ref:b.firstRef},ae.default.createElement('div',{className:'graphiql-editors'.concat(o.tabs.length===1?' full-height':'')},ae.default.createElement('div',{ref:C.firstRef},ae.default.createElement('section',{className:'graphiql-query-editor','aria-label':'Query Editor'},ae.default.createElement(nT,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:K,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),ae.default.createElement('div',{className:'graphiql-toolbar',role:'toolbar','aria-label':'Editor Commands'},ae.default.createElement(Xy,null),j))),ae.default.createElement('div',{ref:C.dragBarRef},ae.default.createElement('div',{className:'graphiql-editor-tools'},ae.default.createElement(pn,{type:'button',className:k==='variables'&&C.hiddenElement!=='second'?'active':'',onClick:me,'data-name':'variables'},'Variables'),i&&ae.default.createElement(pn,{type:'button',className:k==='headers'&&C.hiddenElement!=='second'?'active':'',onClick:me,'data-name':'headers'},'Headers'),ae.default.createElement(ti,{label:C.hiddenElement==='second'?'Show editor tools':'Hide editor tools'},ae.default.createElement(pn,{type:'button',onClick:Oe,'aria-label':C.hiddenElement==='second'?'Show editor tools':'Hide editor tools',className:'graphiql-toggle-editor-tools'},C.hiddenElement==='second'?ae.default.createElement(h_,{className:'graphiql-chevron-icon','aria-hidden':'true'}):ae.default.createElement(m_,{className:'graphiql-chevron-icon','aria-hidden':'true'}))))),ae.default.createElement('div',{ref:C.secondRef},ae.default.createElement('section',{className:'graphiql-editor-tool','aria-label':k==='variables'?'Variables':'Headers'},ae.default.createElement(Ky,{editorTheme:e.editorTheme,isHidden:k!=='variables',keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:K,readOnly:e.readOnly}),i&&ae.default.createElement(Yy,{editorTheme:e.editorTheme,isHidden:k!=='headers',keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),ae.default.createElement('div',{className:'graphiql-horizontal-drag-bar',ref:b.dragBarRef}),ae.default.createElement('div',{ref:b.secondRef},ae.default.createElement('div',{className:'graphiql-response'},s.isFetching?ae.default.createElement(ZE,null):null,ae.default.createElement(iT,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),J))))),ae.default.createElement($f,{open:N==='short-keys',onOpenChange:Ge},ae.default.createElement('div',{className:'graphiql-dialog-header'},ae.default.createElement($f.Title,{className:'graphiql-dialog-title'},'Short Keys'),ae.default.createElement($f.Close,null)),ae.default.createElement('div',{className:'graphiql-dialog-section'},ae.default.createElement(zTe,{keyMap:e.keyMap||'sublime'}))),ae.default.createElement($f,{open:N==='settings',onOpenChange:He},ae.default.createElement('div',{className:'graphiql-dialog-header'},ae.default.createElement($f.Title,{className:'graphiql-dialog-title'},'Settings'),ae.default.createElement($f.Close,null)),e.showPersistHeadersSettings?ae.default.createElement('div',{className:'graphiql-dialog-section'},ae.default.createElement('div',null,ae.default.createElement('div',{className:'graphiql-dialog-section-title'},'Persist headers'),ae.default.createElement('div',{className:'graphiql-dialog-section-caption'},'Save headers upon reloading.',' ',ae.default.createElement('span',{className:'graphiql-warning-text'},'Only enable if you trust this device.'))),ae.default.createElement(XE,null,ae.default.createElement(aa,{type:'button',id:'enable-persist-headers',className:o.shouldPersistHeaders?'active':'','data-value':'true',onClick:re},'On'),ae.default.createElement(aa,{type:'button',id:'disable-persist-headers',className:o.shouldPersistHeaders?'':'active',onClick:re},'Off'))):null,ae.default.createElement('div',{className:'graphiql-dialog-section'},ae.default.createElement('div',null,ae.default.createElement('div',{className:'graphiql-dialog-section-title'},'Theme'),ae.default.createElement('div',{className:'graphiql-dialog-section-caption'},'Adjust how the interface looks like.')),ae.default.createElement(XE,null,ae.default.createElement(aa,{type:'button',className:w===null?'active':'',onClick:se},'System'),ae.default.createElement(aa,{type:'button',className:w==='light'?'active':'','data-theme':'light',onClick:se},'Light'),ae.default.createElement(aa,{type:'button',className:w==='dark'?'active':'','data-theme':'dark',onClick:se},'Dark'))),c?ae.default.createElement('div',{className:'graphiql-dialog-section'},ae.default.createElement('div',null,ae.default.createElement('div',{className:'graphiql-dialog-section-title'},'Clear storage'),ae.default.createElement('div',{className:'graphiql-dialog-section-caption'},'Remove all locally stored data and start fresh.')),ae.default.createElement(aa,{type:'button',state:G||void 0,disabled:G==='success',onClick:ee},{success:'Cleared data',error:'Failed'}[G]||'Clear data')):null))); +}var DI=typeof window<'u'&&window.navigator.platform.toLowerCase().indexOf('mac')===0?'Cmd':'Ctrl',GTe=Object.entries({'Search in editor':[DI,'F'],'Search in documentation':[DI,'K'],'Execute query':[DI,'Enter'],'Prettify editors':['Ctrl','Shift','P'],'Merge fragments definitions into operation definition':['Ctrl','Shift','M'],'Copy query':['Ctrl','Shift','C'],'Re-fetch schema using introspection':['Ctrl','Shift','R']});function zTe(e){ + var t=e.keyMap;return ae.default.createElement('div',null,ae.default.createElement('table',{className:'graphiql-table'},ae.default.createElement('thead',null,ae.default.createElement('tr',null,ae.default.createElement('th',null,'Short Key'),ae.default.createElement('th',null,'Function'))),ae.default.createElement('tbody',null,GTe.map(function(r){ + var n=cT(r,2),i=n[0],o=n[1];return ae.default.createElement('tr',{key:i},ae.default.createElement('td',null,o.map(function(s,l,c){ + return ae.default.createElement(ae.Fragment,{key:s},ae.default.createElement('code',{className:'graphiql-key'},s),l!==c.length-1&&' + '); + })),ae.default.createElement('td',null,i)); + }))),ae.default.createElement('p',null,'The editors use',' ',ae.default.createElement('a',{href:'https://codemirror.net/5/doc/manual.html#keymaps',target:'_blank',rel:'noopener noreferrer'},'CodeMirror Key Maps'),' ','that add more short keys. This instance of Graph',ae.default.createElement('em',null,'i'),'QL uses',' ',ae.default.createElement('code',null,t),'.')); +}function I$(e){ + return ae.default.createElement('div',{className:'graphiql-logo'},e.children||ae.default.createElement('a',{className:'graphiql-logo-link',href:'https://github.com/graphql/graphiql',target:'_blank',rel:'noreferrer'},'Graph',ae.default.createElement('em',null,'i'),'QL')); +}I$.displayName='GraphiQLLogo';function F$(e){ + return ae.default.createElement(ae.default.Fragment,null,e.children); +}F$.displayName='GraphiQLToolbar';function q$(e){ + return ae.default.createElement('div',{className:'graphiql-footer'},e.children); +}q$.displayName='GraphiQLFooter';function LI(e,t){ + var r;return!((r=e?.type)===null||r===void 0)&&r.displayName&&e.type.displayName===t.displayName?!0:e.type===t; +}var fT=fe(Ur()),n0=fe(Ee()),i0=fe(Ee()),B$=fe(V$());var HTe=e=>{ + document.querySelector('#status-bar').textContent=`platformOS - ${e.MPKIT_URL}`; + },U$=e=>fetch('/graphql',{method:'POST',headers:{Accept:'application/json','Content-Type':'application/json'},credentials:'same-origin',body:JSON.stringify(e)}).then(t=>t.text()).then(t=>{ + try{ + return JSON.parse(t); + }catch{ + return t; + } + }),QTe=` query search { records(per_page: 10) { results { @@ -325,8 +17823,18 @@ mutation create { id } } -`,WTe=e=>{let t=e.__schema.types.map(r=>((r.name==="RootQuery"||r.name==="RootMutation")&&r.fields&&r.fields.length>0&&(r.fields=r.fields.filter(n=>!n.isDeprecated)),r));return e.__schema.types=t,e};function YTe(){let e=()=>localStorage.getItem("query")||QTe,t=c=>{o(c),localStorage.setItem("query",c)};(0,i0.useEffect)(()=>{U$({query:(0,fT.getIntrospectionQuery)()}).then(c=>{n((0,fT.buildClientSchema)(WTe(c.data)))})},[]);let[r,n]=(0,i0.useState)(null),[i,o]=(0,i0.useState)(e()),s=()=>n0.default.createElement("span",null);la.Logo=s;let l=R$();return n0.default.createElement("div",{className:"graphiql-container"},n0.default.createElement(la,{fetcher:U$,plugins:[l],schema:r,query:i,onEditQuery:t}))}fetch("/info").then(e=>e.json()).then(HTe).catch(console.error);var KTe=(0,B$.createRoot)(document.getElementById("graphiql"));KTe.render(n0.default.createElement(YTe,null)); -/*! Bundled license information: +`,WTe=e=>{ + let t=e.__schema.types.map(r=>((r.name==='RootQuery'||r.name==='RootMutation')&&r.fields&&r.fields.length>0&&(r.fields=r.fields.filter(n=>!n.isDeprecated)),r));return e.__schema.types=t,e; + };function YTe(){ + let e=()=>localStorage.getItem('query')||QTe,t=c=>{ + o(c),localStorage.setItem('query',c); + };(0,i0.useEffect)(()=>{ + U$({query:(0,fT.getIntrospectionQuery)()}).then(c=>{ + n((0,fT.buildClientSchema)(WTe(c.data))); + }); + },[]);let[r,n]=(0,i0.useState)(null),[i,o]=(0,i0.useState)(e()),s=()=>n0.default.createElement('span',null);la.Logo=s;let l=R$();return n0.default.createElement('div',{className:'graphiql-container'},n0.default.createElement(la,{fetcher:U$,plugins:[l],schema:r,query:i,onEditQuery:t})); +}fetch('/info').then(e=>e.json()).then(HTe).catch(console.error);var KTe=(0,B$.createRoot)(document.getElementById('graphiql'));KTe.render(n0.default.createElement(YTe,null)); +/* ! Bundled license information: react/cjs/react.production.min.js: (** diff --git a/gui/next/build/_app/immutable/assets/JSONTree.B9KH0NTi.css b/gui/next/build/_app/immutable/assets/JSONTree.B9KH0NTi.css deleted file mode 100644 index 9a4613262..000000000 --- a/gui/next/build/_app/immutable/assets/JSONTree.B9KH0NTi.css +++ /dev/null @@ -1 +0,0 @@ -.container.svelte-1qd6nto{display:inline-block;transform:translate(calc(0px - var(--li-identation)),-50%);position:absolute;top:50%;padding-right:100%}.arrow.svelte-1qd6nto{transform-origin:25% 50%;position:relative;line-height:1.1em;font-size:.75em;margin-left:0;transition:.15s;color:var(--arrow-color);user-select:none;font-family:Courier New,Courier,monospace;display:block}.expanded.svelte-1qd6nto{transform:rotate(90deg) translate(-3px)}.root.svelte-19drypg{display:inline-block;position:relative}.indent.svelte-19drypg{padding-left:var(--li-identation)}.label.svelte-19drypg{position:relative}.comma.svelte-150ffaa{margin-left:-.5em;margin-right:.5em}.Date.svelte-l95iub{color:var(--date-color)}.BigInt.svelte-l95iub,.Number.svelte-l95iub{color:var(--number-color)}.Boolean.svelte-l95iub{color:var(--boolean-color)}.Null.svelte-l95iub{color:var(--null-color)}.Undefined.svelte-l95iub{color:var(--undefined-color)}.Symbol.svelte-l95iub{color:var(--symbol-color)}.indent.svelte-1u08yw6{padding-left:var(--li-identation)}span.svelte-1fvwa9c{color:var(--string-color);word-break:break-all;word-wrap:break-word}.i.svelte-1eamqdt{font-style:italic}.fn.svelte-1eamqdt,.i.svelte-1eamqdt{color:var(--function-color)}.regex.svelte-17k1wqt{color:var(--regex-color)}ul.svelte-16cw61f{--string-color:var(--json-tree-string-color, #cb3f41);--symbol-color:var(--json-tree-symbol-color, #cb3f41);--boolean-color:var(--json-tree-boolean-color, #112aa7);--function-color:var(--json-tree-function-color, #112aa7);--number-color:var(--json-tree-number-color, #3029cf);--label-color:var(--json-tree-label-color, #871d8f);--property-color:var(--json-tree-property-color, #000000);--arrow-color:var(--json-tree-arrow-color, #727272);--operator-color:var(--json-tree-operator-color, #727272);--null-color:var(--json-tree-null-color, #8d8d8d);--undefined-color:var(--json-tree-undefined-color, #8d8d8d);--date-color:var(--json-tree-date-color, #8d8d8d);--internal-color:var(--json-tree-internal-color, grey);--regex-color:var(--json-tree-regex-color, var(--string-color));--li-identation:var(--json-tree-li-indentation, 1em);--li-line-height:var(--json-tree-li-line-height, 1.3);font-size:var(--json-tree-font-size, 12px);font-family:var(--json-tree-font-family, "Courier New", Courier, monospace)}ul.svelte-16cw61f li{line-height:var(--li-line-height);display:var(--li-display, list-item);list-style:none}ul.svelte-16cw61f,ul.svelte-16cw61f ul{padding:0;margin:0}ul.svelte-16cw61f{margin-left:var(--li-identation)}ul.svelte-16cw61f{cursor:default}ul.svelte-16cw61f .label{color:var(--label-color)}ul.svelte-16cw61f .property{color:var(--property-color)}ul.svelte-16cw61f .internal{color:var(--internal-color)}ul.svelte-16cw61f .operator{color:var(--operator-color)}div.svelte-1ajfzk1 .root{display:none}div.svelte-1ajfzk1 .arrow{top:2px;cursor:pointer}div.svelte-1ajfzk1 .indent{max-width:600px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}div.showFullLines.svelte-1ajfzk1 .indent{max-width:auto;overflow:visible;white-space:normal;word-wrap:break-word;text-overflow:unset}div.svelte-1ajfzk1 div>ul{margin-left:0}div.svelte-1ajfzk1 div>ul>ul>.indent{padding-left:0} diff --git a/gui/next/build/_app/immutable/assets/Number.CkCkeYiX.css b/gui/next/build/_app/immutable/assets/Number.CkCkeYiX.css deleted file mode 100644 index f3c31c47b..000000000 --- a/gui/next/build/_app/immutable/assets/Number.CkCkeYiX.css +++ /dev/null @@ -1 +0,0 @@ -.number.svelte-142ypws{display:inline-flex;align-items:center}input[type=number].svelte-142ypws{width:calc(var(--max));padding-inline:.5em;padding-block:.45rem .55rem;box-sizing:content-box;appearance:none;-moz-appearance:textfield;border-radius:0;text-align:center}input.svelte-142ypws::-webkit-outer-spin-button,input.svelte-142ypws::-webkit-inner-spin-button{-webkit-appearance:none}input.svelte-142ypws:focus-visible{position:relative;z-index:1}button.svelte-142ypws{min-height:2.313rem}button.svelte-142ypws:first-child{padding-inline:.7rem .5rem;border-start-end-radius:0;border-end-end-radius:0}button.svelte-142ypws:last-child{padding-inline:.5rem .7rem;border-start-start-radius:0;border-end-start-radius:0}button.svelte-142ypws:focus-visible{position:relative;z-index:1}button.svelte-142ypws svg{width:.8rem;height:.8rem} diff --git a/gui/next/build/_app/immutable/assets/_layout.B-7qJBqU.css b/gui/next/build/_app/immutable/assets/_layout.B-7qJBqU.css deleted file mode 100644 index 2d73b19a7..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.B-7qJBqU.css +++ /dev/null @@ -1 +0,0 @@ -.page.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{max-width:100vw;height:100%;overflow:hidden;display:grid;grid-template-columns:1fr min-content;position:relative}.container.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{min-height:0;max-width:100vw;display:grid;grid-template-rows:min-content 1fr}.content.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{height:100%;min-height:0;overflow:auto}.filters.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{padding:var(--space-navigation);background-color:var(--color-background);border-block-end:1px solid var(--color-frame)}.filters.svelte-1mrr17l .label.svelte-1mrr17l.svelte-1mrr17l{position:absolute;left:-100vw}.filters.svelte-1mrr17l form.svelte-1mrr17l.svelte-1mrr17l{display:flex;gap:var(--space-navigation)}.filters.svelte-1mrr17l input.svelte-1mrr17l.svelte-1mrr17l:focus-visible{position:relative;z-index:1}.filters.svelte-1mrr17l .search.svelte-1mrr17l.svelte-1mrr17l{display:flex;align-items:center}.filters.svelte-1mrr17l .search label.svelte-1mrr17l svg{width:16px;height:16px;margin-inline-end:-16px;position:relative;inset-inline-start:.8em;inset-block-start:2px;z-index:2;color:var(--color-text-secondary)}.filters.svelte-1mrr17l .search input.svelte-1mrr17l.svelte-1mrr17l{padding-inline-start:2.5em;border-start-end-radius:0;border-end-end-radius:0}.filters.svelte-1mrr17l .search .button.svelte-1mrr17l.svelte-1mrr17l{margin-inline-start:1px;padding-block:.63rem;padding-inline:.7em .8em;border-start-start-radius:0;border-end-start-radius:0}.pagination.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{padding:1rem;display:flex;align-items:center;gap:.5em;border-block-start:1px solid var(--color-frame);background-color:rgba(var(--color-rgb-background),.8);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}.pagination.svelte-1mrr17l .info.svelte-1mrr17l.svelte-1mrr17l{cursor:help}table.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{min-width:100%;line-height:1.27em}thead.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{background-color:var(--color-background)}th.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l,td.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{border-block-end:1px solid var(--color-frame)}th.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l,td.svelte-1mrr17l>a.svelte-1mrr17l.svelte-1mrr17l{padding:var(--space-table) calc(var(--space-navigation) * 1.5)}th.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:first-child,td.svelte-1mrr17l:first-child>a.svelte-1mrr17l.svelte-1mrr17l{padding-inline-start:var(--space-navigation)}th.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:last-child,td.svelte-1mrr17l:last-child>a.svelte-1mrr17l.svelte-1mrr17l{padding-inline-end:var(--space-navigation)}td.svelte-1mrr17l>a.svelte-1mrr17l.svelte-1mrr17l{display:block}tr.svelte-1mrr17l:last-child td.svelte-1mrr17l.svelte-1mrr17l{border:0}.time.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l,.type.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{font-family:monospace;font-size:1rem}.time.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{white-space:nowrap}@media (max-width: 750px){.time.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{white-space:normal}}.message.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{width:100%;position:relative}.message.svelte-1mrr17l>a.svelte-1mrr17l.svelte-1mrr17l{padding:1rem;position:absolute;inset:0}.message.svelte-1mrr17l>a.svelte-1mrr17l>div.svelte-1mrr17l{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.error.svelte-1mrr17l .type.svelte-1mrr17l.svelte-1mrr17l{color:var(--color-danger)}.highlight.svelte-1mrr17l td.svelte-1mrr17l.svelte-1mrr17l{background-color:var(--color-highlight)}tr.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l{position:relative}tr.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:after{position:absolute;inset:calc(var(--space-table) / 3);z-index:-1;border-radius:calc(1rem - var(--space-table) / 1.5);background:transparent;content:"";transition:background-color .1s linear}tr.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:hover:after{background-color:var(--color-background)}tr.active.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:after{background-color:var(--color-middleground)}@supports (font: -apple-system-body) and (-webkit-appearance: none){tr.svelte-1mrr17l.svelte-1mrr17l.svelte-1mrr17l:after{display:none}} diff --git a/gui/next/build/_app/immutable/assets/_layout.B9XykGLe.css b/gui/next/build/_app/immutable/assets/_layout.B9XykGLe.css deleted file mode 100644 index dc9635844..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.B9XykGLe.css +++ /dev/null @@ -1 +0,0 @@ -aside.svelte-117f3bg.svelte-117f3bg{width:350px;height:calc(100vh - 83px);flex-shrink:0;overflow:auto;border-inline-end:1px solid var(--color-frame)}nav.svelte-117f3bg.svelte-117f3bg{padding-bottom:1rem}a.svelte-117f3bg.svelte-117f3bg{max-width:100%;margin:0 1rem;padding:.5rem 1rem;display:block;overflow:hidden;border-radius:.5rem;text-overflow:ellipsis}a.svelte-117f3bg.svelte-117f3bg:hover,a.svelte-117f3bg.svelte-117f3bg:focus-visible{background-color:var(--color-background);color:var(--color-interaction)}a.active.svelte-117f3bg.svelte-117f3bg{background-color:var(--color-middleground);font-weight:500}.filter-container.svelte-117f3bg.svelte-117f3bg{padding:1rem 1rem 2rem;position:sticky;top:0;background-image:linear-gradient(to bottom,var(--color-page) 80%,rgba(var(--color-rgb-page),0))}.filter.svelte-117f3bg.svelte-117f3bg{width:100%;padding:.5rem .8rem;display:flex;align-items:center;gap:.5rem;background-color:var(--color-background);border-radius:.5rem;transition:background-color .1s linear}.filter.svelte-117f3bg.svelte-117f3bg:has(input:focus-visible){background-color:var(--color-middleground)}.filter.svelte-117f3bg input.svelte-117f3bg{all:unset;max-width:185px}.filter.svelte-117f3bg button.svelte-117f3bg{all:unset;display:flex;cursor:pointer;line-height:.2em}.filter.svelte-117f3bg button.svelte-117f3bg,.filter.svelte-117f3bg i.svelte-117f3bg{margin-inline-end:.2em;flex-shrink:0}.filter.svelte-117f3bg i.svelte-117f3bg{position:relative;top:2px;color:var(--color-text-secondary)}.filter.svelte-117f3bg kbd.svelte-117f3bg:first-of-type{margin-inline-start:auto}.container.svelte-s8xmdg{display:grid;grid-template-columns:350px auto;transition:grid-template-columns .2s ease-in-out}.container.tablesHidden.svelte-s8xmdg{grid-template-columns:0 auto}.tables-container.svelte-s8xmdg{overflow:hidden} diff --git a/gui/next/build/_app/immutable/assets/_layout.BYI-6Y_j.css b/gui/next/build/_app/immutable/assets/_layout.BYI-6Y_j.css deleted file mode 100644 index 964c6593d..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.BYI-6Y_j.css +++ /dev/null @@ -1 +0,0 @@ -.create.svelte-778p5v.svelte-778p5v{margin-block-end:.5em;display:flex}.create.svelte-778p5v .svelte-778p5v:focus-visible{position:relative;z-index:1}.create.svelte-778p5v input[type=text].svelte-778p5v{width:100%;padding:.2rem .5rem .3rem;border-radius:calc(.5rem - 4px) 0 0 calc(.5rem - 4px);border-top-right-radius:0;border-bottom-right-radius:0}.create.svelte-778p5v button.svelte-778p5v{display:flex;align-items:center;padding-inline:.5rem;background-color:var(--color-context-input-background);border-radius:0 calc(.5rem - 4px) calc(.5rem - 4px) 0}.create.svelte-778p5v button.svelte-778p5v:hover{color:var(--color-interaction-hover)}button[type=submit].svelte-778p5v svg{width:13px;height:13px}ul.svelte-778p5v.svelte-778p5v{max-height:77vh;overflow:auto}li.svelte-778p5v.svelte-778p5v{padding-inline-end:calc(var(--space-navigation) / 3);display:flex;align-items:center;justify-content:space-between;line-height:1.1em}li.svelte-778p5v.svelte-778p5v:hover,li.svelte-778p5v.svelte-778p5v:has(a:focus-visible),li.svelte-778p5v.svelte-778p5v:has(button:focus-visible){border-radius:calc(.5rem - 4px);background-color:var(--color-context-button-background-hover)}a.svelte-778p5v.svelte-778p5v{padding:calc(var(--space-navigation) / 2.5) calc(var(--space-navigation) / 1.5);flex-grow:1}li.svelte-778p5v form.svelte-778p5v{display:flex;align-items:center;flex-shrink:0}li.svelte-778p5v button.svelte-778p5v{width:15px;height:15px;padding:2px;display:flex;align-items:center;opacity:0;border-radius:.5em}li.svelte-778p5v:hover button.svelte-778p5v,li.svelte-778p5v:has(button:focus-visible) button.svelte-778p5v,li.svelte-778p5v:has(a:focus-visible) button.svelte-778p5v{opacity:1}li.svelte-778p5v button.svelte-778p5v svg{width:100%;height:100%}li.svelte-778p5v button.svelte-778p5v:hover{background-color:transparent;color:var(--color-interaction-hover)}.message.svelte-778p5v.svelte-778p5v{margin-block-end:.25rem;padding-inline:.5rem;font-style:italic}.page.svelte-lmet59.svelte-lmet59.svelte-lmet59{max-width:100vw;height:100%;overflow:hidden;display:grid;grid-template-columns:min-content 1fr min-content;position:relative}.container.svelte-lmet59.svelte-lmet59.svelte-lmet59{min-height:0;max-width:100vw;display:grid;grid-template-rows:1fr}.content.svelte-lmet59.svelte-lmet59.svelte-lmet59{height:100%;min-height:0;overflow:auto}.filters.svelte-lmet59.svelte-lmet59.svelte-lmet59{min-width:260px;padding:var(--space-navigation);position:relative;border-inline-end:1px solid var(--color-frame)}.filters.svelte-lmet59 header.svelte-lmet59.svelte-lmet59{height:53px;margin:calc(var(--space-navigation) * -1);margin-block-end:1rem;padding:0 var(--space-navigation);display:flex;justify-content:space-between;align-items:center;border-block-end:1px solid var(--color-frame)}.filters.svelte-lmet59 header h2.svelte-lmet59.svelte-lmet59{font-weight:600;font-size:1rem}.filters.svelte-lmet59 nav.svelte-lmet59>button.svelte-lmet59,.filters.svelte-lmet59 nav.svelte-lmet59>a.svelte-lmet59{padding:.2rem;line-height:0;color:var(--color-text-secondary)}.filters.svelte-lmet59 nav.svelte-lmet59>button.svelte-lmet59:hover,.filters.svelte-lmet59 nav.svelte-lmet59>a.svelte-lmet59:hover{background:transparent;color:var(--color-interaction-hover)}.filters.svelte-lmet59 nav.svelte-lmet59>.active.svelte-lmet59{color:var(--color-context)}.filters.svelte-lmet59 nav.svelte-lmet59>button.svelte-lmet59 svg,.filters.svelte-lmet59 nav.svelte-lmet59>a.svelte-lmet59 svg{width:16px;height:16px;pointer-events:none}.filters.svelte-lmet59 nav .label.svelte-lmet59.svelte-lmet59{position:absolute;left:-100vw}.filters.svelte-lmet59 h3.svelte-lmet59.svelte-lmet59{margin-block-end:.2em;display:flex;align-items:center;justify-content:space-between;font-weight:500;font-size:.875rem}.filters.svelte-lmet59 h3 button.svelte-lmet59.svelte-lmet59{width:15px;height:15px;padding:2px;border-radius:.5em;display:flex;align-items:center}.filters.svelte-lmet59 h3 button.svelte-lmet59 svg{width:100%;height:100%;pointer-events:none}.filters.svelte-lmet59 h3 button.svelte-lmet59.svelte-lmet59:hover{color:var(--color-interaction-hover)}.filters.svelte-lmet59 #filters.svelte-lmet59.svelte-lmet59{display:flex;flex-direction:column;gap:var(--space-navigation)}.filters.svelte-lmet59 ul.separated.svelte-lmet59.svelte-lmet59{border-radius:.5rem;border:1px solid var(--color-frame)}.filters.svelte-lmet59 ul.separated li.svelte-lmet59.svelte-lmet59{padding:calc(var(--space-navigation) / 2);padding-inline-start:calc(var(--space-navigation) / 1.5);display:flex;justify-content:space-between;align-items:center}.filters.svelte-lmet59 ul.separated li.svelte-lmet59.svelte-lmet59:not(:last-child){border-block-end:1px solid var(--color-frame)}.filters.svelte-lmet59 li label.svelte-lmet59.svelte-lmet59{display:flex;align-items:center;gap:.2em;cursor:pointer}.filters.svelte-lmet59 li small.svelte-lmet59.svelte-lmet59{padding:2px 5px;background-color:var(--color-background);border-radius:.5em;font-family:monospace;font-variant-numeric:tabular-nums}.filters.svelte-lmet59 .presets.svelte-lmet59.svelte-lmet59{padding:calc(var(--space-navigation) / 2);position:absolute;inset-block-start:3rem;inset-inline:calc(var(--space-navigation) / 2);z-index:2;border-radius:.5rem}.filters.svelte-lmet59 .presets.svelte-lmet59.svelte-lmet59:before{width:12px;height:8px;position:absolute;inset-inline-end:2.45rem;inset-block-start:-7px;background-color:var(--color-context);clip-path:polygon(50% 0%,0% 100%,100% 100%);content:""}.filters.svelte-lmet59 input[type=date].svelte-lmet59.svelte-lmet59{width:100%}.filters.svelte-lmet59 input[name=lb_status_codes].svelte-lmet59.svelte-lmet59{display:none}.filters.svelte-lmet59 .toggle.svelte-lmet59.svelte-lmet59{padding:calc(var(--space-navigation) / 2);padding-inline-start:calc(var(--space-navigation) / 1.5);border-radius:.5rem;border:1px solid var(--color-frame);line-height:0}.sort.svelte-lmet59>div.svelte-lmet59.svelte-lmet59{position:relative;display:flex;gap:1px}.sort.svelte-lmet59 select[name=order_by].svelte-lmet59.svelte-lmet59{flex-grow:1;border-start-end-radius:0;border-end-end-radius:0;white-space:nowrap;text-overflow:ellipsis}.sort.svelte-lmet59 select[name=order].svelte-lmet59.svelte-lmet59{width:50px;position:absolute;inset-inline-end:0;opacity:0;cursor:pointer;z-index:1;overflow:hidden;white-space:nowrap}.sort.svelte-lmet59 label.svelte-lmet59.svelte-lmet59{position:relative;border-start-start-radius:0;border-end-start-radius:0}.sort.svelte-lmet59 select.svelte-lmet59:hover+label.svelte-lmet59{background-color:rgba(var(--color-rgb-interaction-hover),.2)}.sort.svelte-lmet59 select.svelte-lmet59:focus-visible+label.svelte-lmet59{box-shadow:0 0 1px 2px var(--color-interaction-hover)}table.svelte-lmet59.svelte-lmet59.svelte-lmet59{min-width:100%;line-height:1.27em}thead.svelte-lmet59.svelte-lmet59.svelte-lmet59{background-color:var(--color-background)}th.svelte-lmet59.svelte-lmet59.svelte-lmet59{white-space:nowrap}th.svelte-lmet59.svelte-lmet59.svelte-lmet59,td.svelte-lmet59.svelte-lmet59.svelte-lmet59{border-block-end:1px solid var(--color-frame)}th.svelte-lmet59.svelte-lmet59.svelte-lmet59,td.svelte-lmet59>a.svelte-lmet59.svelte-lmet59,td.svelte-lmet59>div.svelte-lmet59.svelte-lmet59{padding:var(--space-table) calc(var(--space-navigation) * 1.5)}th.svelte-lmet59.svelte-lmet59.svelte-lmet59:first-child,td.svelte-lmet59:first-child>a.svelte-lmet59.svelte-lmet59{padding-inline-start:var(--space-navigation)}th.svelte-lmet59.svelte-lmet59.svelte-lmet59:last-child,td.svelte-lmet59:last-child>a.svelte-lmet59.svelte-lmet59{padding-inline-end:var(--space-navigation)}td.svelte-lmet59>a.svelte-lmet59.svelte-lmet59{display:block}.count.svelte-lmet59.svelte-lmet59.svelte-lmet59{text-align:end}.time.svelte-lmet59.svelte-lmet59.svelte-lmet59{font-family:monospace;font-size:1rem;white-space:nowrap}@media (max-width: 750px){.time.svelte-lmet59.svelte-lmet59.svelte-lmet59{white-space:normal}}.request.svelte-lmet59.svelte-lmet59.svelte-lmet59{width:100%;position:relative}.request.svelte-lmet59>a.svelte-lmet59.svelte-lmet59{padding:0;position:absolute;inset:0}.request.svelte-lmet59>a.svelte-lmet59>div.svelte-lmet59{max-width:100%;padding:var(--space-table) calc(var(--space-navigation) * 1.5);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.method.svelte-lmet59.svelte-lmet59.svelte-lmet59{padding:.2rem;border-radius:4px;border:1px solid var(--color-frame);font-family:monospace}.status.svelte-lmet59>a.svelte-lmet59.svelte-lmet59{text-align:center;font-family:monospace;font-size:1rem}.status.success.svelte-lmet59.svelte-lmet59.svelte-lmet59{color:var(--color-confirmation)}.status.error.svelte-lmet59.svelte-lmet59.svelte-lmet59{color:var(--color-danger)}.status.info.svelte-lmet59.svelte-lmet59.svelte-lmet59{color:var(--color-interaction)}.duration.svelte-lmet59.svelte-lmet59.svelte-lmet59{text-align:end;font-variant-numeric:tabular-nums}tr.svelte-lmet59.svelte-lmet59.svelte-lmet59{position:relative}tr.svelte-lmet59.svelte-lmet59.svelte-lmet59:has(a):after{position:absolute;inset:calc(var(--space-table) / 3);z-index:-1;border-radius:calc(1rem - var(--space-table) / 1.5);background:transparent;content:"";transition:background-color .1s linear}tr.svelte-lmet59.svelte-lmet59.svelte-lmet59:hover:after{background-color:var(--color-background)}tr.active.svelte-lmet59.svelte-lmet59.svelte-lmet59:after{background-color:var(--color-middleground)}@supports (font: -apple-system-body) and (-webkit-appearance: none){tr.svelte-lmet59.svelte-lmet59.svelte-lmet59:after{display:none}} diff --git a/gui/next/build/_app/immutable/assets/_layout.Cpa7KQFv.css b/gui/next/build/_app/immutable/assets/_layout.Cpa7KQFv.css deleted file mode 100644 index fd62e22be..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.Cpa7KQFv.css +++ /dev/null @@ -1 +0,0 @@ -i.svelte-ooaugn{color:var(--color-danger)}.container.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{height:100%;overflow:hidden;display:grid;grid-template-columns:1fr min-content}.container.svelte-1m1ug4d>div.svelte-1m1ug4d.svelte-1m1ug4d{height:calc(100vh - 83px);display:flex;flex-direction:column;overflow-y:auto;flex-grow:1;position:relative}nav.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{padding:1rem;display:flex;align-items:center;gap:.5em;background-color:rgba(var(--color-rgb-background),.8);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}.filters.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{border-bottom:1px solid var(--color-frame)}.filters.svelte-1m1ug4d form.svelte-1m1ug4d.svelte-1m1ug4d{display:flex;gap:2rem}.filters.svelte-1m1ug4d fieldset.svelte-1m1ug4d.svelte-1m1ug4d{display:flex;align-items:center;gap:.5em}table.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{width:100%}thead.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{position:sticky;top:0;z-index:50}th.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{background-color:var(--color-background);white-space:nowrap;font-weight:500}td.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d,th.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{padding:.6rem;vertical-align:middle;border:1px solid var(--color-frame);border-block-start:0;transition:background-color .2s linear}td.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d:first-child,th.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d:first-child{border-inline-start:0}td.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d:last-child,th.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d:last-child{border-inline-end:0}th.id.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{padding-inline-start:2.6rem}td.id.svelte-1m1ug4d div.svelte-1m1ug4d.svelte-1m1ug4d{position:relative;display:flex;align-items:center;gap:.7em}table.svelte-1m1ug4d a.svelte-1m1ug4d.svelte-1m1ug4d{color:var(--color-interaction)}.more.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{padding-inline:.1rem;background-color:transparent;opacity:0;transition:opacity .1s linear}tr.svelte-1m1ug4d:hover .more.svelte-1m1ug4d.svelte-1m1ug4d{opacity:.5}tr.svelte-1m1ug4d:hover .more.svelte-1m1ug4d.svelte-1m1ug4d:hover{opacity:1}tr.svelte-1m1ug4d:hover .more.svelte-1m1ug4d.svelte-1m1ug4d:hover{background-color:var(--color-background)}menu.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{display:none;position:absolute;left:.5rem;top:100%;z-index:20;overflow:hidden;border-radius:1rem;white-space:nowrap}menu.active.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{display:block}td.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d:first-child:hover{z-index:30}menu.svelte-1m1ug4d li.svelte-1m1ug4d+li.svelte-1m1ug4d{border-block-start:1px solid var(--color-context-input-background)}menu.svelte-1m1ug4d button{width:100%;padding:.5rem 1rem;display:flex;align-items:center;gap:.5em;line-height:0}menu.svelte-1m1ug4d button:hover{background-color:var(--color-context-button-background-hover)}.pagination.svelte-1m1ug4d.svelte-1m1ug4d.svelte-1m1ug4d{margin-block-start:auto;position:sticky;inset-inline:0;inset-block-end:0} diff --git a/gui/next/build/_app/immutable/assets/_layout.CwHmqWmZ.css b/gui/next/build/_app/immutable/assets/_layout.CwHmqWmZ.css deleted file mode 100644 index 14be56e6b..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.CwHmqWmZ.css +++ /dev/null @@ -1 +0,0 @@ -i.svelte-ooaugn{color:var(--color-danger)}menu.svelte-8i1sxu.svelte-8i1sxu{position:absolute;left:0;top:100%;z-index:20;overflow:hidden;border-radius:0 1rem 1rem;white-space:nowrap}menu.svelte-8i1sxu button{width:100%;padding:.5rem 1rem;display:flex;align-items:center;gap:.5em;line-height:0}menu.svelte-8i1sxu button:hover{background-color:var(--color-context-button-background-hover)}menu.svelte-8i1sxu li.svelte-8i1sxu:last-child button{padding-block-end:.6rem}dialog.svelte-26svji.svelte-26svji{height:100vh;overflow:hidden;display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:100}dialog.svelte-26svji.svelte-26svji::backdrop{background-color:rgba(var(--color-rgb-background),.6)}.content.svelte-26svji.svelte-26svji{width:clamp(300px,800px,80vw);max-height:94vh;overflow:auto;border-radius:1rem}form.svelte-26svji.svelte-26svji{display:flex;flex-direction:column;gap:1rem;padding:2rem}fieldset.svelte-26svji.svelte-26svji{display:grid;grid-template-columns:1fr 2fr;gap:1rem}fieldset.svelte-26svji+fieldset.svelte-26svji{margin-block-start:2rem}label.svelte-26svji.svelte-26svji{word-break:break-all}input.svelte-26svji.svelte-26svji,textarea.svelte-26svji.svelte-26svji{width:100%;min-height:53px}[role=alert].svelte-26svji.svelte-26svji:not(:empty){margin-block-start:.5em;padding:.5em 1em .6em;position:relative;border-radius:1rem;background-color:var(--color-danger)}[role=alert].svelte-26svji.svelte-26svji:not(:empty):before{width:1em;height:.5em;position:absolute;top:-6px;right:1rem;clip-path:polygon(50% 0%,0% 100%,100% 100%);background-color:var(--color-danger);content:""}.footer.svelte-26svji.svelte-26svji{padding:1.5rem 0;position:sticky;bottom:0;gap:1rem;background-color:var(--color-context)}.error.svelte-26svji li.svelte-26svji{margin-block-end:1rem;padding:1rem;border-radius:1rem;background-color:var(--color-danger);color:var(--color-text-inverted)}.actions.svelte-26svji.svelte-26svji{display:flex;align-items:center;justify-content:space-between}.type.svelte-26svji.svelte-26svji{margin-block-start:.2rem;opacity:.5;font-size:.9em}.page.svelte-1g093it.svelte-1g093it{max-width:100vw;height:100%;overflow:hidden;display:grid;grid-template-columns:1fr min-content;position:relative}.container.svelte-1g093it.svelte-1g093it{min-height:0;max-width:100vw;overflow-y:auto;display:grid;grid-template-rows:min-content 1fr}.filters.svelte-1g093it.svelte-1g093it{padding:var(--space-navigation);background-color:var(--color-background);border-block-end:1px solid var(--color-frame)}.filters.svelte-1g093it .label.svelte-1g093it{position:absolute;left:-100vw}.filters.svelte-1g093it form.svelte-1g093it{display:flex;gap:var(--space-navigation);align-items:center}.filters.svelte-1g093it input.svelte-1g093it:focus,.filters.svelte-1g093it select.svelte-1g093it:focus{position:relative;z-index:1}.filters.svelte-1g093it #filters_attribute.svelte-1g093it{margin-inline-end:1px;border-start-end-radius:0;border-end-end-radius:0}.filters.svelte-1g093it .search.svelte-1g093it{display:flex;align-items:center}.filters.svelte-1g093it .search input.svelte-1g093it{padding-inline-end:1.8rem;border-radius:0}.filters.svelte-1g093it .clear.svelte-1g093it{margin-inline-start:-.9rem;position:relative;inset-inline-start:-.4rem;z-index:1}.filters.svelte-1g093it .search .button[type=submit].svelte-1g093it{margin-inline-start:1px;padding-block:.63rem;padding-inline:.7em .8em;border-start-start-radius:0;border-end-start-radius:0}.pagination.svelte-1g093it.svelte-1g093it{padding:1rem;display:flex;align-items:center;gap:.5em;position:fixed;bottom:0;width:100%;justify-content:space-between;border-block-start:1px solid var(--color-frame);background-color:rgba(var(--color-rgb-background),.8);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}table.svelte-1g093it.svelte-1g093it{min-width:100%;margin-bottom:70px;line-height:1.27em}thead.svelte-1g093it.svelte-1g093it{background-color:var(--color-background)}th.svelte-1g093it.svelte-1g093it,td.svelte-1g093it.svelte-1g093it{border-block-end:1px solid var(--color-frame)}th.svelte-1g093it.svelte-1g093it,td.svelte-1g093it>a.svelte-1g093it,td.svelte-1g093it>span.svelte-1g093it{padding:var(--space-table) calc(var(--space-navigation) * 1.5)}th.svelte-1g093it.svelte-1g093it:first-child,td.svelte-1g093it:first-child>a.svelte-1g093it,td.svelte-1g093it:first-child>span.svelte-1g093it{padding-inline-start:var(--space-navigation)}th.svelte-1g093it.svelte-1g093it:last-child,td.svelte-1g093it:last-child>a.svelte-1g093it,td.svelte-1g093it:last-child>span.svelte-1g093it{padding-inline-end:var(--space-navigation)}td.svelte-1g093it>a.svelte-1g093it,td.svelte-1g093it>span.svelte-1g093it{display:block}tr.svelte-1g093it:last-child td.svelte-1g093it{border:0}tr.svelte-1g093it.svelte-1g093it{position:relative}tr.svelte-1g093it.svelte-1g093it:after{position:absolute;inset:calc(var(--space-table) / 3);z-index:-1;border-radius:calc(1rem - var(--space-table) / 1.5);background:transparent;content:"";transition:background-color .1s linear}tr.svelte-1g093it.svelte-1g093it:hover:after{background-color:var(--color-background)}tr.active.svelte-1g093it.svelte-1g093it:after{background-color:var(--color-middleground)}@supports (font: -apple-system-body) and (-webkit-appearance: none){tr.svelte-1g093it.svelte-1g093it:after{display:none}}.table-id.svelte-1g093it.svelte-1g093it{font-variant-numeric:tabular-nums;width:150px}.menu.svelte-1g093it.svelte-1g093it{position:relative;width:30px}tr.svelte-1g093it .inner-menu.svelte-1g093it{background-color:transparent;opacity:0;transition:opacity .1s linear}tr.svelte-1g093it:hover .inner-menu.svelte-1g093it{opacity:.5}.menu.svelte-1g093it:hover .inner-menu.svelte-1g093it,.context.svelte-1g093it .menu .inner-menu.svelte-1g093it{opacity:1}.menu.svelte-1g093it button.active.svelte-1g093it{border-end-start-radius:0;border-end-end-radius:0} diff --git a/gui/next/build/_app/immutable/assets/_layout.DszZgnxd.css b/gui/next/build/_app/immutable/assets/_layout.DszZgnxd.css deleted file mode 100644 index 317dd754d..000000000 --- a/gui/next/build/_app/immutable/assets/_layout.DszZgnxd.css +++ /dev/null @@ -1 +0,0 @@ -*:where(:not(html,iframe,canvas,img,svg,video,audio):not(svg *,symbol *)){all:unset;display:revert}*,*:before,*:after{box-sizing:border-box}a,button{cursor:revert}ol,ul,menu{list-style:none}img{max-width:100%}table{border-collapse:collapse}input,textarea{-webkit-user-select:auto}input[type=radio]{all:revert}textarea{white-space:revert}meter{-webkit-appearance:revert;appearance:revert}::placeholder{color:unset}:where([hidden]){display:none}:where([contenteditable]:not([contenteditable=false])){-moz-user-modify:read-write;-webkit-user-modify:read-write;overflow-wrap:break-word;-webkit-line-break:after-white-space;-webkit-user-select:auto}:where([draggable=true]){-webkit-user-drag:element}html{font-family:sans-serif}:root,::backdrop{--color-light-rgb-text: 74, 74, 74;--color-light-rgb-text-secondary: 146, 146, 146;--color-light-rgb-text-inverted: 255, 255, 255;--color-light-rgb-interaction: 25, 79, 144;--color-light-rgb-interaction-hover: 58, 141, 222;--color-light-rgb-interaction-active: 50, 130, 210;--color-light-rgb-frame: 221, 221, 221;--color-light-rgb-page: 255, 255, 255;--color-light-rgb-background: 245, 246, 252;--color-light-rgb-middleground: 235, 236, 242;--color-light-rgb-context: 53, 55, 57;--color-light-rgb-confirmation: 30, 142, 73;--color-light-rgb-danger: 199, 46, 46;--color-light-rgb-highlight: 250, 240, 211;--color-light-context-input-background: 87, 90, 92;--color-light-context-button-background: 28, 29, 30;--color-light-context-button-background-hover: 36, 42, 49;--color-light-context-button-text: 255, 255, 255;--color-dark-rgb-text: 208, 212, 218;--color-dark-rgb-text-secondary: 114, 148, 152;--colot-light-rgb-text-inverted: 0, 0, 0;--color-dark-rgb-interaction: 100, 180, 200;--color-dark-rgb-interaction-hover: 130, 210, 230;--color-dark-rgb-interaction-active: 115, 195, 215;--color-dark-rgb-frame: 47, 61, 76;--color-dark-rgb-page: 29, 40, 51;--color-dark-rgb-background: 19, 32, 45;--color-dark-rgb-middleground: 15, 25, 35;--color-dark-rgb-context: 21, 29, 38;--color-dark-rgb-confirmation: 30, 142, 73;--color-dark-rgb-danger: 221, 89, 89;--color-dark-rgb-highlight: 106, 62, 10;--color-dark-context-input-background: 87, 90, 92;--color-dark-context-button-background: 41, 48, 57;--color-dark-context-button-background-hover: 61, 68, 78;--color-dark-context-button-text: 255, 255, 255}:root,::backdrop{--color-rgb-text: var(--color-light-rgb-text);--color-rgb-text-secondary: var(--color-light-rgb-text-secondary);--color-rgb-text-inverted: var(--color-light-rgb-text-inverted);--color-rgb-interaction: var(--color-light-rgb-interaction);--color-rgb-interaction-hover: var(--color-light-rgb-interaction-hover);--color-rgb-interaction-active: var(--color-light-rgb-interaction-active);--color-rgb-frame: var(--color-light-rgb-frame);--color-rgb-page: var(--color-light-rgb-page);--color-rgb-background: var(--color-light-rgb-background);--color-rgb-middleground: var(--color-light-rgb-middleground);--color-rgb-context: var(--color-light-rgb-context);--color-rgb-confirmation: var(--color-light-rgb-confirmation);--color-rgb-danger: var(--color-light-rgb-danger);--color-rgb-highlight: var(--color-light-rgb-highlight);--color-rgb-context-input-background: var(--color-light-context-input-background);--color-rgb-context-button-background: var(--color-light-context-button-background);--color-rgb-context-button-background-hover: var(--color-light-context-button-background-hover);--color-rgb-context-button-text: var(--color-light-context-button-text)}@media (prefers-color-scheme: dark){:root,::backdrop{--color-rgb-text: var(--color-dark-rgb-text);--color-rgb-text-secondary: var(--color-dark-rgb-text-secondary);--color-rgb-text-inverted: var(--color-dark-rgb-text-inverted);--color-rgb-interaction: var(--color-dark-rgb-interaction);--color-rgb-interaction-hover: var(--color-dark-rgb-interaction-hover);--color-rgb-interaction-active: var(--color-dark-rgb-interaction-active);--color-rgb-frame: var(--color-dark-rgb-frame);--color-rgb-page: var(--color-dark-rgb-page);--color-rgb-background: var(--color-dark-rgb-background);--color-rgb-middleground: var(--color-dark-rgb-middleground);--color-rgb-context: var(--color-dark-rgb-context);--color-rgb-confirmation: var(--color-dark-rgb-confirmation);--color-rgb-danger: var(--color-dark-rgb-danger);--color-rgb-highlight: var(--color-dark-rgb-highlight);--color-rgb-context-input-background: var(--color-dark-context-input-background);--color-rgb-context-button-background: var(--color-dark-context-button-background);--color-rgb-context-button-background-hover: var(--color-dark-context-button-background-hover);--color-rgb-context-button-text: var(--color-dark-context-button-text)}}:root{--color-text: rgb(var(--color-rgb-text));--color-text-secondary: rgb(var(--color-rgb-text-secondary));--color-text-inverted: rgb(var(--color-rgb-text-inverted));--color-interaction: rgb(var(--color-rgb-interaction));--color-interaction-hover: rgb(var(--color-rgb-interaction-hover));--color-interaction-active: rgb(var(--color-rgb-interaction-active));--color-frame: rgb(var(--color-rgb-frame));--color-page: rgb(var(--color-rgb-page));--color-background: rgb(var(--color-rgb-background));--color-middleground: rgb(var(--color-rgb-middleground));--color-context: rgb(var(--color-rgb-context));--color-confirmation: rgb(var(--color-rgb-confirmation));--color-danger: rgb(var(--color-rgb-danger));--color-highlight: rgb(var(--color-rgb-highlight));--color-context-input-background: rgb(var(--color-rgb-context-input-background));--color-context-button-background: rgb(var(--color-rgb-context-button-background));--color-context-button-background-hover: rgb(var(--color-rgb-context-button-background-hover));--color-context-button-text: rgb(var(--color-rgb-context-button-text))}:root{--space-page: 2rem;--space-navigation: 1rem;--space-table: 1rem}:root{--font-normal: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:root{--easing-rapid: cubic-bezier(.075, .82, .165, 1)}body{height:100vh;display:grid;grid-template-rows:min-content 1fr;background-color:var(--color-page);text-rendering:optimizeLegibility;font-family:var(--font-normal);color:var(--color-text)}.content-context{background-color:var(--color-context);color:var(--color-text-inverted)}a{transition-property:color,background-color;transition-duration:.1s;transition-timing-function:ease-in-out}kbd{padding:.4em .2em;border-radius:.2em;background-color:var(--color-middleground);text-transform:uppercase;line-height:.6em;font-family:monospace}.definitions{display:grid;grid-template-columns:auto auto}.definitions dt,.definitions dd{padding-block:.7rem;display:flex;align-items:center}.definitions dt:not(:last-of-type),.definitions dd:not(:last-of-type){border-block-end:1px solid var(--color-background)}.definitions dt{padding-inline-end:1em;white-space:nowrap;color:var(--color-text-secondary)}.definitions dd{min-width:0;display:flex;justify-content:end;word-wrap:break-word;text-wrap:balance}.definitions dd>*{width:100%;display:block;word-wrap:break-word;text-align:end}.button{padding:.7rem 1rem;display:inline-flex;align-items:center;gap:.6em;border-radius:.5rem;background-color:var(--color-middleground);leading-trim:both;line-height:1em;color:var(--color-text);transition:all .1s linear}button:not(:disabled):not(.disabled){cursor:pointer}.button:not(.disabled):not(:disabled):hover{background-color:rgba(var(--color-rgb-interaction-hover),.2)}.button:focus-visible{box-shadow:0 0 1px 2px var(--color-interaction-hover)}.button.active{background-color:rgba(var(--color-rgb-interaction-hover),.1)}.content-context .button{background-color:var(--color-context-button-background);color:var(--color-context-button-text)}.content-context .button:hover{background-color:var(--color-context-button-background-hover)}.content-context .button:hover svg{color:currentColor}.button svg{width:18px;height:18px;margin-block:-.04rem;pointer-events:none}.button:not(:disabled):hover svg{color:var(--color-interaction)}.button:has(svg){padding-block:.64rem}.button:disabled svg{color:var(--color-text-secondary)}.button .label,button .label{position:absolute;left:-100vw}.combo{display:flex;gap:1px}.combo .button:first-of-type{border-radius:.5rem 0 0 .5rem}.combo .button:last-of-type{border-radius:0 .5rem .5rem 0}.button.compact{padding:.4rem}.button.danger{color:var(--color-danger)}.button.confirmation{background-color:rgba(var(--color-rgb-confirmation),.2);color:var(--color-confirmation)}.button.confirmation:hover{color:var(--color-confirmation)}.button.confirmation:hover svg{color:inherit}input[type=text],input[type=password],input[type=email],input[type=number],input[type=date],select,textarea{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--color-middleground);transition-property:background-color,box-shadow,color;transition-duration:.1s;transition-timing-function:linear}.content-context select,.content-context input{background-color:var(--color-context-input-background)}textarea{padding:1rem}.content-context textarea{background-color:var(--color-context-input-background)}select{padding-inline-end:2.1em;background-image:url('data:image/svg+xml,');background-repeat:no-repeat;background-position:right .7em center;background-size:.7em}input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 1px 2px var(--color-interaction-hover)}input::placeholder,textarea::placeholder{color:var(--color-text-secondary)}.content-context input:disabled,.content-context select:disabled,.content-context textarea:disabled{color:rgba(var(--color-rgb-context-button-text),.6)}input[type=checkbox]{all:revert}header.svelte-uthxgc.svelte-uthxgc.svelte-uthxgc{max-width:100vw;padding-block:var(--space-navigation);position:sticky;top:0;z-index:100;border-bottom:1px solid var(--color-frame);background-color:var(--color-page)}.wrapper.svelte-uthxgc.svelte-uthxgc.svelte-uthxgc{min-width:0;width:100%;padding-inline:var(--space-page);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-navigation) var(--space-page)}.logo.svelte-uthxgc.svelte-uthxgc.svelte-uthxgc{min-width:0;min-height:2.5625rem;display:flex;align-items:center;gap:1rem}.logo.svelte-uthxgc .label.svelte-uthxgc.svelte-uthxgc{position:absolute;left:-100vw}.logo.svelte-uthxgc .sign.svelte-uthxgc.svelte-uthxgc{width:100%;min-width:2rem;max-width:3.125rem;transition:scale .2s var(--easing-rapid)}.logo.svelte-uthxgc .sign.svelte-uthxgc.svelte-uthxgc:hover,.logo.svelte-uthxgc:has(.logotype:hover) .sign.svelte-uthxgc.svelte-uthxgc{scale:1.1}.logo.svelte-uthxgc h1.svelte-uthxgc.svelte-uthxgc{min-width:2rem;display:flex;flex-direction:column}.logo.svelte-uthxgc .logotype.svelte-uthxgc.svelte-uthxgc{width:100%;max-width:120px;fill:var(--color-text);transition:fill .2s var(--easing-rapid)}.logo.svelte-uthxgc .logotype.svelte-uthxgc.svelte-uthxgc:hover,.logo.svelte-uthxgc:has(.sign:hover) .logotype.svelte-uthxgc.svelte-uthxgc{fill:color-mix(in srgb,var(--color-text),var(--color-text-secondary) 40%)}.logo.svelte-uthxgc .instance.svelte-uthxgc.svelte-uthxgc{max-width:260px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;color:var(--color-text-secondary);transition:font-size .2s ease-in-out}.logo.svelte-uthxgc .instance.offline.svelte-uthxgc.svelte-uthxgc{font-size:0;color:transparent}.logo.svelte-uthxgc .instance.svelte-uthxgc.svelte-uthxgc:hover{color:var(--color-interaction-hover)}ul.svelte-uthxgc.svelte-uthxgc.svelte-uthxgc{display:flex;gap:1rem}li.svelte-uthxgc a.svelte-uthxgc.svelte-uthxgc{padding:.8rem;display:flex;flex-direction:column;gap:.5rem;justify-items:center;align-items:center;position:relative;border-radius:1rem;background-color:var(--color-background);text-transform:uppercase;font-size:.9rem;color:var(--color-text-secondary);transition-property:background-color,border-radius;transition-duration:.1s,.2s;transition-timing-function:linear,cubic-bezier(.175,.885,.32,1.275)}@media (max-width: 525px){li.svelte-uthxgc a.svelte-uthxgc.svelte-uthxgc{padding:.5rem}}li.svelte-uthxgc a.svelte-uthxgc.svelte-uthxgc:hover{border-radius:1.2rem;background-color:var(--color-middleground)}li.svelte-uthxgc a.active.svelte-uthxgc.svelte-uthxgc{background-color:var(--color-middleground);color:var(--color-text)}nav.svelte-uthxgc .label.svelte-uthxgc.svelte-uthxgc{margin-block-start:.4rem;padding:.2rem .5rem;position:absolute;inset:105% 0 auto auto;opacity:0;border-radius:.2rem;background-color:var(--color-text);white-space:nowrap;font-weight:500;color:var(--color-page);transition:opacity .1s ease-in-out}nav.svelte-uthxgc .label.svelte-uthxgc.svelte-uthxgc:before{width:10px;height:6px;position:absolute;top:-6px;right:1.25rem;background-color:var(--color-text);clip-path:polygon(50% 0%,100% 100%,0% 100%);content:""}nav.svelte-uthxgc a.svelte-uthxgc:hover .label.svelte-uthxgc{opacity:1}.connectionIndicator.svelte-1cyr69k{display:flex;align-items:center;gap:1em}.connectionIndicator.svelte-1cyr69k:after{width:.8rem;height:.8rem;margin-inline-end:-.5em;display:block;position:relative;top:1px;border-radius:100%;background-color:var(--color-text-inverted);animation:svelte-1cyr69k-blink .7s ease-in-out;animation-iteration-count:infinite;content:""}@keyframes svelte-1cyr69k-blink{0%{opacity:.2}70%{opacity:1}}.container.svelte-fq192n{padding:1rem;display:flex;flex-direction:column;align-items:flex-start;position:fixed;top:100%;translate:0 var(--height);transition:translate .2s cubic-bezier(.175,.885,.32,1.275)}.notification.svelte-fq192n{margin-block-start:.5rem;padding:.7rem 2rem .8rem 1.5rem;display:flex;gap:1em;align-items:center;position:relative;border-radius:1rem;color:var(--color-text-inverted)}.success.svelte-fq192n{background-color:var(--color-confirmation)}.error.svelte-fq192n{background-color:var(--color-danger)}.info.svelte-fq192n{background-color:var(--color-context)}.disabled.svelte-fq192n{display:none}.notification.svelte-fq192n small{margin-block-start:.25em;display:block;font-size:.85em}.notification.svelte-fq192n code{padding-inline:.2em;border-radius:4px;background-color:var(--color-context);font-family:monospace;font-size:1.2em}button.svelte-fq192n{padding:.6em;margin:-.6em -1.5em -.6em 0;cursor:pointer;line-height:0}button.svelte-fq192n:hover{color:var(--color-highlight)} diff --git a/gui/next/build/_app/immutable/assets/_page.BIXMQND7.css b/gui/next/build/_app/immutable/assets/_page.BIXMQND7.css deleted file mode 100644 index 2be599063..000000000 --- a/gui/next/build/_app/immutable/assets/_page.BIXMQND7.css +++ /dev/null @@ -1 +0,0 @@ -.info.svelte-uhfiox.svelte-uhfiox{display:flex;gap:1.2rem}time.svelte-uhfiox.svelte-uhfiox{color:var(--color-text-secondary)}.tech.svelte-uhfiox.svelte-uhfiox{margin-block:2rem}.tech.svelte-uhfiox dt.svelte-uhfiox{margin-block:.5em .2em;font-weight:500}.tech.svelte-uhfiox dd.svelte-uhfiox{padding:.6em .8em;border-radius:0 1rem 1rem;background-color:var(--color-background);word-wrap:break-word}.personal.svelte-uhfiox.svelte-uhfiox{padding-block-start:1.3rem;border-block-end:2px solid var(--color-background)} diff --git a/gui/next/build/_app/immutable/assets/_page.CBlI4doA.css b/gui/next/build/_app/immutable/assets/_page.CBlI4doA.css deleted file mode 100644 index 28b1ccf4f..000000000 --- a/gui/next/build/_app/immutable/assets/_page.CBlI4doA.css +++ /dev/null @@ -1 +0,0 @@ -.log-detail-method{margin-inline-end:.2em;padding:.1em .2em;display:inline-block;position:relative;top:-1px;border-radius:.2rem;border:1px solid var(--color-frame);font-family:monospace;font-size:.75em}.success.svelte-ebu0yn{color:var(--color-confirmation)}.error.svelte-ebu0yn{color:var(--color-danger)}a.svelte-ebu0yn:hover{color:var(--color-interaction-hover)}dl.svelte-ebu0yn{margin-block-start:var(--space-page)}dd.svelte-ebu0yn{text-align:end} diff --git a/gui/next/build/_app/immutable/assets/_page.CPUv3H-H.css b/gui/next/build/_app/immutable/assets/_page.CPUv3H-H.css deleted file mode 100644 index 7677857b6..000000000 --- a/gui/next/build/_app/immutable/assets/_page.CPUv3H-H.css +++ /dev/null @@ -1 +0,0 @@ -fieldset.svelte-y4u12o{display:flex;gap:2px;align-items:center}label.svelte-y4u12o{padding-inline-end:.5em}select[name=name].svelte-y4u12o{max-width:20ch;border-start-end-radius:0;border-end-end-radius:0;text-overflow:ellipsis}select[name=operation].svelte-y4u12o{border-radius:0}input[name=value].svelte-y4u12o{width:20ch;border-radius:0}select[name=value].svelte-y4u12o,select[name=minFilter].svelte-y4u12o,select[name=maxFilter].svelte-y4u12o,input[name=minFilterValue].svelte-y4u12o,input[name=maxFilterValue].svelte-y4u12o{border-radius:0}button[type=submit].svelte-y4u12o{border-start-start-radius:0;border-end-start-radius:0}[type=number].svelte-y4u12o{width:10ch}form.svelte-yzlk61.svelte-yzlk61{display:flex;gap:2px;position:relative}select[name=by].svelte-yzlk61.svelte-yzlk61{max-width:14ch;border-start-end-radius:0;border-end-end-radius:0;white-space:nowrap;text-overflow:ellipsis}select[name=order].svelte-yzlk61.svelte-yzlk61{width:50px;position:absolute;inset-inline-end:0;opacity:0;cursor:pointer;z-index:1;overflow:hidden;white-space:nowrap}label.svelte-yzlk61.svelte-yzlk61{position:relative;border-start-start-radius:0;border-end-start-radius:0}select.svelte-yzlk61:hover+label.svelte-yzlk61{background-color:rgba(var(--color-rgb-interaction-hover),.2)}select.svelte-yzlk61:focus-visible+label.svelte-yzlk61{box-shadow:0 0 1px 2px var(--color-interaction-hover)}i.svelte-ooaugn{color:var(--color-danger)}menu.svelte-1tht2a1.svelte-1tht2a1.svelte-1tht2a1{position:absolute;left:0;top:100%;z-index:20;overflow:hidden;border-radius:0 1rem 1rem;white-space:nowrap}menu.svelte-1tht2a1 li.svelte-1tht2a1+li.svelte-1tht2a1{border-block-start:1px solid var(--color-context-input-background)}menu.svelte-1tht2a1 button{width:100%;padding:.5rem 1rem;display:flex;align-items:center;gap:.5em;line-height:0}menu.svelte-1tht2a1 button:hover{background-color:var(--color-context-button-background-hover)}menu.svelte-1tht2a1 li.svelte-1tht2a1:last-child button{padding-block-end:.6rem}table.svelte-1bwwtph.svelte-1bwwtph{min-width:100%}thead.svelte-1bwwtph.svelte-1bwwtph{position:sticky;top:0;z-index:50}th.svelte-1bwwtph.svelte-1bwwtph{background-color:var(--color-background);white-space:nowrap;font-weight:500}.type.svelte-1bwwtph.svelte-1bwwtph{font-weight:400;color:var(--color-text-secondary)}td.svelte-1bwwtph.svelte-1bwwtph,th.svelte-1bwwtph.svelte-1bwwtph{padding:.6rem;vertical-align:top;border:1px solid var(--color-frame);transition:background-color .2s linear}.collapsed.svelte-1bwwtph td.svelte-1bwwtph{max-width:300px;overflow:hidden;vertical-align:middle;white-space:nowrap;text-overflow:ellipsis}td.svelte-1bwwtph.svelte-1bwwtph:first-child,th.svelte-1bwwtph.svelte-1bwwtph:first-child{width:4rem;position:sticky;left:0;z-index:10;border-inline-start:0;box-shadow:inset -4px 0 0 0 var(--color-frame)}td.svelte-1bwwtph.svelte-1bwwtph:first-child{overflow:visible;background-color:var(--color-page)}th.id.svelte-1bwwtph.svelte-1bwwtph{text-align:end}td.svelte-1bwwtph .id.svelte-1bwwtph{position:relative;display:flex;align-items:center;justify-content:space-between;gap:.7em}.date.svelte-1bwwtph span.svelte-1bwwtph{color:var(--color-text-secondary)}.highlighted.svelte-1bwwtph td.svelte-1bwwtph{background-color:var(--color-highlight)}.hasContextMenu.svelte-1bwwtph.svelte-1bwwtph{position:relative;z-index:20}.value-null.svelte-1bwwtph.svelte-1bwwtph{text-transform:uppercase;font-size:.9em;color:var(--color-text-secondary)}.combo.svelte-1bwwtph.svelte-1bwwtph{background-color:transparent;opacity:0;transition:opacity .1s linear}.combo.svelte-1bwwtph .button.svelte-1bwwtph:first-child{padding-inline:.1rem 0}tr.svelte-1bwwtph:hover .combo.svelte-1bwwtph{opacity:.5}tr.svelte-1bwwtph:hover .combo.svelte-1bwwtph:hover{opacity:1}tr.svelte-1bwwtph:hover .combo .button.svelte-1bwwtph:not(.active):hover{background-color:var(--color-background)}.combo.svelte-1bwwtph .button.active.svelte-1bwwtph{background-color:var(--color-context);color:var(--color-text-inverted)}.combo.svelte-1bwwtph .button.active.svelte-1bwwtph:hover svg{color:var(--color-text-inverted)}tr.svelte-1bwwtph:has(.active) .combo.svelte-1bwwtph{opacity:1}tr.svelte-1bwwtph:has(.active) .combo button.svelte-1bwwtph:first-child{border-end-start-radius:0}.delete.svelte-1bwwtph.svelte-1bwwtph{width:50px}dialog.svelte-1udbufw.svelte-1udbufw{height:100vh;overflow:hidden;display:flex;align-items:center;justify-content:center;position:absolute;inset:0;z-index:100}dialog.svelte-1udbufw.svelte-1udbufw::backdrop{background-color:rgba(var(--color-rgb-background),.6)}.content.svelte-1udbufw.svelte-1udbufw{width:clamp(300px,800px,80vw);max-height:94vh;overflow:auto;border-radius:1rem}form.svelte-1udbufw.svelte-1udbufw{display:flex;flex-direction:column;gap:1rem;padding:2rem}fieldset.svelte-1udbufw.svelte-1udbufw{display:grid;grid-template-columns:1fr 2fr;gap:1rem}fieldset.svelte-1udbufw+fieldset.svelte-1udbufw{margin-block-start:2rem}label.svelte-1udbufw.svelte-1udbufw{word-break:break-all}.type.svelte-1udbufw.svelte-1udbufw{margin-block-start:.2rem;opacity:.5;font-size:.9em}textarea.svelte-1udbufw.svelte-1udbufw,select.svelte-1udbufw.svelte-1udbufw{width:100%;max-height:40rem}[role=alert].svelte-1udbufw.svelte-1udbufw:not(:empty){margin-block-start:.5em;padding:.5em 1em .6em;position:relative;border-radius:1rem;background-color:var(--color-danger)}[role=alert].svelte-1udbufw.svelte-1udbufw:not(:empty):before{width:1em;height:.5em;position:absolute;top:-6px;right:1rem;clip-path:polygon(50% 0%,0% 100%,100% 100%);background-color:var(--color-danger);content:""}.footer.svelte-1udbufw.svelte-1udbufw{padding:1.5rem 0;position:sticky;bottom:0;gap:1rem;background-color:var(--color-context)}.error.svelte-1udbufw li.svelte-1udbufw{margin-block-end:1rem;padding:1rem;border-radius:1rem;background-color:var(--color-danger);color:var(--color-text-inverted)}.actions.svelte-1udbufw.svelte-1udbufw{display:flex;align-items:center;justify-content:space-between}section.svelte-afbo94.svelte-afbo94{height:calc(100vh - 83px);flex-grow:1;display:flex;flex-direction:column;overflow:auto;position:relative}nav.svelte-afbo94.svelte-afbo94{padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;position:sticky;left:0;background-color:var(--color-background)}nav.svelte-afbo94>*:first-child{margin-inline-end:auto}.refreshing.svelte-afbo94.svelte-afbo94,.refreshing.svelte-afbo94.svelte-afbo94:hover{background-color:var(--color-interaction-active);color:var(--color-text-inverted)!important}.refreshing.svelte-afbo94 svg{color:var(--color-text-inverted)!important}.pagination.svelte-afbo94.svelte-afbo94{margin-block-start:auto;display:flex;align-items:center;gap:1rem;position:sticky;bottom:0;left:0;right:0;z-index:30}#viewOptions.svelte-afbo94.svelte-afbo94{margin-inline-start:auto;display:flex;gap:1rem}.combo.svelte-afbo94 input.svelte-afbo94{position:absolute;inset-inline-start:-100vw} diff --git a/gui/next/build/_app/immutable/assets/_page.DRRvXzxG.css b/gui/next/build/_app/immutable/assets/_page.DRRvXzxG.css deleted file mode 100644 index 0f29002db..000000000 --- a/gui/next/build/_app/immutable/assets/_page.DRRvXzxG.css +++ /dev/null @@ -1 +0,0 @@ -.container.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{height:100%;overflow:hidden;display:grid;grid-template-columns:1fr min-content}nav.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{padding:1rem;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--color-frame);background-color:rgba(var(--color-rgb-background),.8);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}nav.svelte-8fkf35>div.svelte-8fkf35.svelte-8fkf35{display:flex;align-items:center;gap:.5rem}.logs.svelte-8fkf35 nav.svelte-8fkf35.svelte-8fkf35{position:sticky;top:0;left:0;z-index:10}.logs.svelte-8fkf35 nav input.svelte-8fkf35.svelte-8fkf35{padding-inline-end:2rem}.clearFilter.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{padding:.5rem;position:relative;left:-2.3rem;cursor:pointer}.clearFilter.svelte-8fkf35 .label.svelte-8fkf35.svelte-8fkf35{position:absolute;left:-100vw}.clearFilter.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35:hover{color:var(--color-interaction)}.logs.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{height:calc(100vh - 83px);overflow:auto;position:sticky;flex-grow:1}table.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{width:100%}.fresh.svelte-8fkf35 td.svelte-8fkf35.svelte-8fkf35{background-color:var(--color-highlight)}.hidden.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{display:none}td.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{padding:1rem;border-block-end:1px solid var(--color-frame)}td.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35:not(:first-child):not(:last-child){padding-inline-start:2rem;padding-inline-end:2rem}.date.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{width:1px;white-space:nowrap}.logType.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{min-width:20ch;max-width:40ch;word-break:break-all}.date.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35,.logType.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{font-family:monospace;font-size:1rem}.error.svelte-8fkf35 time.svelte-8fkf35.svelte-8fkf35,.error.svelte-8fkf35 .logType.svelte-8fkf35.svelte-8fkf35{color:var(--color-danger)}.logs.svelte-8fkf35 .message.svelte-8fkf35.svelte-8fkf35{word-break:break-all}.longStringInfo.svelte-8fkf35 button.svelte-8fkf35.svelte-8fkf35{cursor:pointer;font-size:.9em;color:var(--color-text-secondary)}.pre.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{white-space:pre-wrap}.logs.svelte-8fkf35 .info.svelte-8fkf35.svelte-8fkf35{margin-block-start:1rem;font-size:.9em;color:var(--color-text-secondary)}.logs.svelte-8fkf35 .info a.svelte-8fkf35.svelte-8fkf35:hover{color:var(--color-interaction-hover)}.actions.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{width:1px;vertical-align:top}.actions.svelte-8fkf35 div.svelte-8fkf35.svelte-8fkf35{display:flex;gap:.5em}.actions.svelte-8fkf35 .active.button.svelte-8fkf35.svelte-8fkf35{opacity:1;color:var(--color-interaction)}.actions.svelte-8fkf35 .button.svelte-8fkf35.svelte-8fkf35{opacity:0;transition:all .1s linear}tr.svelte-8fkf35:hover .actions button.svelte-8fkf35.svelte-8fkf35{opacity:1}footer.svelte-8fkf35.svelte-8fkf35.svelte-8fkf35{margin-block:4rem;text-align:center;line-height:1.5em;color:var(--color-text-secondary)}.pins.svelte-8fkf35 nav.svelte-8fkf35.svelte-8fkf35{justify-content:flex-end}.pins.svelte-8fkf35 li.svelte-8fkf35+li.svelte-8fkf35{margin-block-start:2rem;padding-block-start:2rem;border-block-start:1px solid var(--color-frame)}.pins.svelte-8fkf35 .date.svelte-8fkf35.svelte-8fkf35{margin-block-end:.6em;display:block}.pins.svelte-8fkf35 .info.svelte-8fkf35.svelte-8fkf35{display:flex;justify-content:space-between;gap:1rem;color:var(--color-text-secondary)}.pins.svelte-8fkf35 .info button.svelte-8fkf35.svelte-8fkf35{transition:color .1s linear}.pins.svelte-8fkf35 .info button.svelte-8fkf35.svelte-8fkf35:hover{background-color:transparent;color:var(--color-danger)}.pins.svelte-8fkf35 .url.svelte-8fkf35.svelte-8fkf35{margin-block-start:-.5em;margin-block-end:.6rem;word-wrap:break-word;font-size:.9em;color:var(--color-text-secondary)}.pins.svelte-8fkf35 .message.svelte-8fkf35.svelte-8fkf35{word-wrap:break-word} diff --git a/gui/next/build/_app/immutable/assets/_page.DZfDyU61.css b/gui/next/build/_app/immutable/assets/_page.DZfDyU61.css deleted file mode 100644 index 60dca44ef..000000000 --- a/gui/next/build/_app/immutable/assets/_page.DZfDyU61.css +++ /dev/null @@ -1 +0,0 @@ -nav.svelte-50so3t.svelte-50so3t.svelte-50so3t{width:100%;margin-inline:auto;margin-block-start:2rem;padding-inline:2rem}.applications.svelte-50so3t.svelte-50so3t.svelte-50so3t{display:flex;gap:2rem;flex-wrap:wrap;justify-content:center}.applications.svelte-50so3t+.applications.svelte-50so3t.svelte-50so3t{margin-top:4rem}.application.svelte-50so3t.svelte-50so3t.svelte-50so3t{width:200px;position:relative;display:flex;overflow:hidden;border-radius:1rem;background-color:var(--color-background);transition:width .2s ease-in-out}.application.svelte-50so3t>a.svelte-50so3t.svelte-50so3t{width:200px;padding:2.75rem 1rem 2rem;display:flex;flex-shrink:0;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem}.application.showDescription.svelte-50so3t.svelte-50so3t.svelte-50so3t{width:500px}.icon.svelte-50so3t.svelte-50so3t.svelte-50so3t{width:100px;height:100px;padding:.5rem;display:flex;align-items:center;justify-content:center;border-radius:.5rem;background-color:var(--color-middleground);color:var(--color-interaction);transition:all .2s ease-in-out}.application.svelte-50so3t>a:hover .icon.svelte-50so3t.svelte-50so3t{border-radius:1rem;scale:1.1}h2.svelte-50so3t.svelte-50so3t.svelte-50so3t{text-align:center;font-size:1.1rem;font-weight:500}.description.svelte-50so3t.svelte-50so3t.svelte-50so3t{width:284px;padding:2.75rem 1rem 2rem 0;flex-shrink:0}.description.svelte-50so3t li.svelte-50so3t.svelte-50so3t{margin-inline-start:1ch;padding-inline-start:.4em;list-style-type:"–"}.description.svelte-50so3t li.svelte-50so3t+li.svelte-50so3t{margin-block-start:.2em}.actions.svelte-50so3t.svelte-50so3t.svelte-50so3t{display:flex;align-items:center;position:absolute;inset-inline-end:0rem;inset-block-start:0rem;overflow:hidden;opacity:0;border:1px solid var(--color-page);border-width:0 0 1px 1px;border-radius:0 1rem;transition:opacity .2s linear;transition-delay:0s}.application.svelte-50so3t:hover .actions.svelte-50so3t.svelte-50so3t{opacity:1;transition-delay:.5s}.actions.svelte-50so3t li.svelte-50so3t+li.svelte-50so3t{border-inline-start:1px solid var(--color-page)}.actions.svelte-50so3t button.svelte-50so3t.svelte-50so3t{padding:.25em .5em;color:var(--color-text-secondary);transition:color .1s linear}.actions.svelte-50so3t button.svelte-50so3t.svelte-50so3t:hover,.actions.svelte-50so3t button.svelte-50so3t.svelte-50so3t:focus-visible{color:var(--color-interaction-hover)}.early.svelte-50so3t.svelte-50so3t.svelte-50so3t{min-width:200px;padding:2.75rem 0 2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px dashed var(--color-frame);border-radius:1rem}.early.svelte-50so3t h2.svelte-50so3t.svelte-50so3t{font-weight:400;color:var(--color-text-secondary)}.early.svelte-50so3t h2 small.svelte-50so3t.svelte-50so3t{display:block;font-size:.7em}.early.svelte-50so3t ul.svelte-50so3t.svelte-50so3t{min-height:calc(100px + .5rem);display:flex;flex-direction:column;gap:.5em}.early.svelte-50so3t li.svelte-50so3t.svelte-50so3t{position:relative;display:flex;align-items:center}.early.svelte-50so3t li.svelte-50so3t button.svelte-50so3t{width:16px;height:16px;position:absolute;inset-inline-start:-1.35rem;display:flex;align-items:center;justify-content:center;opacity:0;background-color:var(--color-middleground);border-radius:4px;transition:opacity .2s linear;transition-delay:0s}.early.svelte-50so3t li.svelte-50so3t:hover button.svelte-50so3t{opacity:1;transition-delay:.8s}.early.svelte-50so3t li.svelte-50so3t button.svelte-50so3t:hover{background-color:rgba(var(--color-rgb-interaction-hover),.2);color:var(--color-interaction-hover)}.early.svelte-50so3t li.svelte-50so3t a.svelte-50so3t{display:flex;align-items:center;gap:.5em}.early.svelte-50so3t a.svelte-50so3t.svelte-50so3t:hover{color:var(--color-interaction-hover)}.early.svelte-50so3t i.svelte-50so3t.svelte-50so3t{width:calc(24px + .6em);height:calc(24px + .6em);display:flex;align-items:center;justify-content:center;border-radius:.6rem;background-color:var(--color-middleground);color:var(--color-interaction);transition:all .1s ease-in-out}.early.svelte-50so3t a:hover i.svelte-50so3t.svelte-50so3t{border-radius:.7rem;scale:1.07}footer.svelte-50so3t.svelte-50so3t.svelte-50so3t{margin-block-start:4rem;padding:2rem;display:flex;align-items:center;justify-content:space-between;gap:2rem;border-block-start:1px solid var(--color-frame)}footer.svelte-50so3t ul.svelte-50so3t.svelte-50so3t{display:flex;gap:2rem}.update.svelte-50so3t.svelte-50so3t.svelte-50so3t{max-width:100px;display:flex;align-items:center;gap:.5em;font-size:.85rem}.update.svelte-50so3t svg{flex-shrink:0} diff --git a/gui/next/build/_app/immutable/assets/_page.DZjOGisr.css b/gui/next/build/_app/immutable/assets/_page.DZjOGisr.css deleted file mode 100644 index 248f41c33..000000000 --- a/gui/next/build/_app/immutable/assets/_page.DZjOGisr.css +++ /dev/null @@ -1 +0,0 @@ -button[aria-disabled=true].svelte-kur7tm{pointer-events:none}button.svelte-kur7tm svg{width:14px;height:14px}button.progressing.svelte-kur7tm svg{animation-name:svelte-kur7tm-copied;animation-duration:.3s;animation-timing-function:ease-in-out;animation-iteration-count:1}@keyframes svelte-kur7tm-copied{0%{scale:1}50%{scale:0}to{scale:1}}dl.svelte-2gl9bd{margin-block-start:1rem;display:grid;grid-template-columns:min-content auto;gap:.5em;column-gap:.5em}dd.svelte-2gl9bd{text-align:end}a.svelte-2gl9bd:hover{color:var(--color-interaction-hover)}.code.svelte-2gl9bd{margin-block-start:.2rem;padding:.6em .8em;border-radius:0 1rem 1rem;background-color:var(--color-background);word-wrap:break-word}.json.svelte-2gl9bd{padding-inline-start:2rem} diff --git a/gui/next/build/_app/immutable/assets/_page.O9jYhcLF.css b/gui/next/build/_app/immutable/assets/_page.O9jYhcLF.css deleted file mode 100644 index b5ef4dfef..000000000 --- a/gui/next/build/_app/immutable/assets/_page.O9jYhcLF.css +++ /dev/null @@ -1 +0,0 @@ -code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}#code{border-radius:1rem;border-start-start-radius:0}#code[class*=language-]{background-color:var(--color-context)}h2.svelte-7qclwq.svelte-7qclwq{margin-block-start:2rem;margin-block-end:.2em;font-weight:500;font-size:1.2rem}.info.svelte-7qclwq.svelte-7qclwq{margin-block-end:4rem;margin-trim:block}.info.svelte-7qclwq div.svelte-7qclwq{margin-block-end:.2em;display:flex;gap:.5em}dt.svelte-7qclwq.svelte-7qclwq{color:var(--color-text-secondary)}.error.svelte-7qclwq.svelte-7qclwq{color:var(--color-danger)}code.svelte-7qclwq.svelte-7qclwq{padding:1rem 1.5rem;display:block;border-radius:1rem;border-start-start-radius:0;background-color:var(--color-middleground);font-family:monospace;font-size:1rem} diff --git a/gui/next/build/_app/immutable/assets/_page.PIDpwlWF.css b/gui/next/build/_app/immutable/assets/_page.PIDpwlWF.css deleted file mode 100644 index cb4cc714a..000000000 --- a/gui/next/build/_app/immutable/assets/_page.PIDpwlWF.css +++ /dev/null @@ -1 +0,0 @@ -nav.svelte-9flr1b.svelte-9flr1b{width:100%;padding:1rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:82px;z-index:10;border-bottom:1px solid var(--color-frame);background-color:rgba(var(--color-rgb-background),.8);backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}nav.svelte-9flr1b input.svelte-9flr1b{padding-inline-end:2rem}.clearFilter.svelte-9flr1b.svelte-9flr1b{padding:.5rem;position:relative;left:-2.3rem;cursor:pointer}.clearFilter.svelte-9flr1b .label.svelte-9flr1b{position:absolute;left:-100vw}.clearFilter.svelte-9flr1b.svelte-9flr1b:hover{color:var(--color-interaction)}.create.svelte-9flr1b.svelte-9flr1b{max-width:1150px;margin-inline:auto;margin-block-start:2rem;padding:1rem 3.6rem 1rem 5.2rem;border-radius:1rem;background-color:var(--color-background)}.create.svelte-9flr1b form.svelte-9flr1b{display:grid;grid-template-columns:.7fr 1fr auto;align-items:center;gap:1rem}.create.svelte-9flr1b input[name=name].svelte-9flr1b{font-family:monospace;font-size:1rem;font-weight:600}.create.svelte-9flr1b fieldset.svelte-9flr1b:last-of-type{margin-inline-start:.5em}.create.svelte-9flr1b label.svelte-9flr1b{margin-block-end:.4em;display:block}.create.svelte-9flr1b input.svelte-9flr1b{width:100%}.create.svelte-9flr1b .button.svelte-9flr1b{margin-inline-end:-1.6rem;align-self:end}ul.svelte-9flr1b.svelte-9flr1b{max-width:1100px;margin-inline:auto;margin-block-start:2rem;padding-inline:2rem}li.svelte-9flr1b.svelte-9flr1b{margin-block-end:1rem;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.2rem}li.hidden.svelte-9flr1b.svelte-9flr1b{display:none}.delete.svelte-9flr1b.svelte-9flr1b{opacity:0;transition:opacity .1s linear}li.svelte-9flr1b:hover .delete.svelte-9flr1b{opacity:1}.delete.svelte-9flr1b button.svelte-9flr1b{padding:.7rem;cursor:pointer;color:var(--color-danger)}.delete.svelte-9flr1b .label.svelte-9flr1b{position:absolute;left:-100vw}.edit.svelte-9flr1b.svelte-9flr1b{display:grid;grid-template-columns:.7fr 1fr auto;align-items:center;gap:1rem}.edit.svelte-9flr1b label.svelte-9flr1b{overflow:hidden;text-overflow:ellipsis;font-family:monospace;font-size:1rem;font-weight:600}@font-face{font-family:password;font-style:normal;font-weight:400;src:url(https://jsbin-user-assets.s3.amazonaws.com/rafaelcastrocouto/password.ttf);font-display:block}.edit.svelte-9flr1b input.svelte-9flr1b{width:100%;padding-inline-end:3rem;font-family:password;line-height:18px;letter-spacing:1px;color:var(--color-text-secondary)}.edit.svelte-9flr1b input.exposed.svelte-9flr1b{font-family:var(--font-normal);letter-spacing:0;color:var(--color-text)}.edit.svelte-9flr1b fieldset.svelte-9flr1b{position:relative}.edit.svelte-9flr1b .toggleExposition.svelte-9flr1b{display:flex;align-items:center;position:absolute;right:.5em;top:0;bottom:0;cursor:pointer;opacity:0;color:var(--color-text-secondary);transition:all .1s linear}.edit.svelte-9flr1b:hover .toggleExposition.svelte-9flr1b{opacity:1}.edit.svelte-9flr1b .toggleExposition.svelte-9flr1b:hover{color:var(--color-interaction)}.edit.svelte-9flr1b .toggleExposition .label.svelte-9flr1b{position:absolute;left:-100vw}.edit.svelte-9flr1b button[type=submit].svelte-9flr1b{opacity:0;transition:opacity .1s linear}.edit.svelte-9flr1b button.needed.svelte-9flr1b{opacity:1}.highlighted.svelte-9flr1b input.svelte-9flr1b{background-color:var(--color-highlight)} diff --git a/gui/next/build/_app/immutable/chunks/6Lnq5zID.js b/gui/next/build/_app/immutable/chunks/6Lnq5zID.js new file mode 100644 index 000000000..2ad249f71 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/6Lnq5zID.js @@ -0,0 +1 @@ +import{t as n}from"./x4PJc0Qf.js";const s=(r,t)=>{let e={value:r,type:t};return r==null?(e.value=null,e.type="null",{...e}):(t==="boolean"&&(r===!0?e.value="true":e.value="false"),typeof r=="object"?(e.value=r,e.type="json",{...e}):n(r)?(e.value=n(r),e.type="jsonEscaped",{...e}):{...e,original:{value:r,type:t}})};export{s as p}; diff --git a/gui/next/build/_app/immutable/chunks/Aside.CzwHeuWZ.js b/gui/next/build/_app/immutable/chunks/Aside.CzwHeuWZ.js deleted file mode 100644 index f6cb3b447..000000000 --- a/gui/next/build/_app/immutable/chunks/Aside.CzwHeuWZ.js +++ /dev/null @@ -1 +0,0 @@ -import{s as Y,M as N,l as Z,e as E,a as S,c as z,b as A,A as B,g as H,f as p,y as _,G as q,i as y,h as g,C as D,u as x,m as ee,o as te,r as se,k as le,N as ae,O as ie,E as O}from"./scheduler.CKQ5dLhN.js";import{S as ne,i as re,c as G,d as M,m as V,t as w,g as X,a as W,e as F,h as T,f as J}from"./index.CGVWAVV-.js";import{g as oe}from"./globals.D0QH3NT1.js";import{q as fe}from"./index.iVSWiVfi.js";import{s as L}from"./state.nqMW8J5l.js";import{I as K}from"./Icon.CkKwi_WD.js";const{window:Q}=oe;function $(o){let e,t,l,a=o[1]&&P(o),s=o[0]&&R(o);return{c(){e=E("header"),a&&a.c(),t=S(),s&&s.c(),this.h()},l(i){e=z(i,"HEADER",{class:!0});var n=A(e);a&&a.l(n),t=H(n),s&&s.l(n),n.forEach(p),this.h()},h(){_(e,"class","svelte-1lvj124")},m(i,n){y(i,e,n),a&&a.m(e,null),g(e,t),s&&s.m(e,null),l=!0},p(i,n){i[1]?a?a.p(i,n):(a=P(i),a.c(),a.m(e,t)):a&&(a.d(1),a=null),i[0]?s?(s.p(i,n),n&1&&w(s,1)):(s=R(i),s.c(),w(s,1),s.m(e,null)):s&&(X(),W(s,1,1,()=>{s=null}),F())},i(i){l||(w(s),l=!0)},o(i){W(s),l=!1},d(i){i&&p(e),a&&a.d(),s&&s.d()}}}function P(o){let e,t;return{c(){e=E("h2"),t=new ae(!1),this.h()},l(l){e=z(l,"H2",{class:!0});var a=A(e);t=ie(a,!1),a.forEach(p),this.h()},h(){t.a=null,_(e,"class","svelte-1lvj124")},m(l,a){y(l,e,a),t.m(o[1],e)},p(l,a){a&2&&t.p(l[1])},d(l){l&&p(e)}}}function R(o){let e,t,l="Close details",a,s,i;return s=new K({props:{icon:"x"}}),{c(){e=E("a"),t=E("span"),t.textContent=l,a=S(),G(s.$$.fragment),this.h()},l(n){e=z(n,"A",{href:!0,class:!0});var f=A(e);t=z(f,"SPAN",{class:!0,"data-svelte-h":!0}),B(t)!=="svelte-1gxyewl"&&(t.textContent=l),a=H(f),M(s.$$.fragment,f),f.forEach(p),this.h()},h(){_(t,"class","label svelte-1lvj124"),_(e,"href",o[0]),_(e,"class","close svelte-1lvj124")},m(n,f){y(n,e,f),g(e,t),g(e,a),V(s,e,null),i=!0},p(n,f){(!i||f&1)&&_(e,"href",n[0])},i(n){i||(w(s.$$.fragment,n),i=!0)},o(n){W(s.$$.fragment,n),i=!1},d(n){n&&p(e),J(s)}}}function ue(o){let e,t,l,a="Drag to resize panel",s,i,n,f,b,k,v,h,C,I;N(o[10]),i=new K({props:{icon:"resizeHorizontal",size:"7"}});let u=(o[1]||o[0])&&$(o);const c=o[9].default,d=Z(c,o,o[8],null);return{c(){e=E("aside"),t=E("button"),l=E("span"),l.textContent=a,s=S(),G(i.$$.fragment),n=S(),f=E("div"),u&&u.c(),b=S(),d&&d.c(),this.h()},l(r){e=z(r,"ASIDE",{style:!0,class:!0});var m=A(e);t=z(m,"BUTTON",{class:!0});var j=A(t);l=z(j,"SPAN",{class:!0,"data-svelte-h":!0}),B(l)!=="svelte-ruxerc"&&(l.textContent=a),s=H(j),M(i.$$.fragment,j),j.forEach(p),n=H(m),f=z(m,"DIV",{class:!0});var U=A(f);u&&u.l(U),b=H(U),d&&d.l(U),U.forEach(p),m.forEach(p),this.h()},h(){_(l,"class","label svelte-1lvj124"),_(t,"class","resizer svelte-1lvj124"),q(t,"active",o[3]),_(f,"class","container svelte-1lvj124"),_(e,"style",k=o[4].asideWidth?`--width: ${o[4].asideWidth}`:""),_(e,"class","svelte-1lvj124")},m(r,m){y(r,e,m),g(e,t),g(t,l),g(t,s),V(i,t,null),g(e,n),g(e,f),u&&u.m(f,null),g(f,b),d&&d.m(f,null),h=!0,C||(I=[D(Q,"resize",o[10]),D(t,"mousedown",o[6]),D(t,"click",o[7])],C=!0)},p(r,[m]){(!h||m&8)&&q(t,"active",r[3]),r[1]||r[0]?u?(u.p(r,m),m&3&&w(u,1)):(u=$(r),u.c(),w(u,1),u.m(f,b)):u&&(X(),W(u,1,1,()=>{u=null}),F()),d&&d.p&&(!h||m&256)&&x(d,c,r,r[8],h?te(c,r[8],m,null):ee(r[8]),null),(!h||m&16&&k!==(k=r[4].asideWidth?`--width: ${r[4].asideWidth}`:""))&&_(e,"style",k)},i(r){h||(w(i.$$.fragment,r),w(u),w(d,r),r&&N(()=>{h&&(v||(v=T(e,o[5],{},!0)),v.run(1))}),h=!0)},o(r){W(i.$$.fragment,r),W(u),W(d,r),r&&(v||(v=T(e,o[5],{},!1)),v.run(0)),h=!1},d(r){r&&p(e),J(i),u&&u.d(),d&&d.d(r),r&&v&&v.end(),C=!1,se(I)}}}function ce(o,e,t){let l;le(o,L,c=>t(4,l=c));let{$$slots:a={},$$scope:s}=e,{closeUrl:i}=e,{title:n=""}=e,f,b=!1;const k=function(c,{delay:d=0,duration:r=300}){return{delay:d,duration:r,css:m=>{const j=fe(m);return`min-width: 0; width: calc(${l.asideWidth||"30vw"} * ${j});`}}},v=()=>{window.addEventListener("mousemove",C,!1),window.addEventListener("mouseup",h,!1),t(3,b=!0)},h=()=>{window.removeEventListener("mousemove",C,!1),window.removeEventListener("mouseup",h,!1),t(3,b=!1),localStorage.asideWidth=l.asideWidth},C=c=>{O(L,l.asideWidth=f-c.clientX-6+"px",l)},I=c=>{c.detail===2&&(O(L,l.asideWidth=!1,l),localStorage.removeItem("asideWidth"))};function u(){t(2,f=Q.outerWidth)}return o.$$set=c=>{"closeUrl"in c&&t(0,i=c.closeUrl),"title"in c&&t(1,n=c.title),"$$scope"in c&&t(8,s=c.$$scope)},[i,n,f,b,l,k,v,I,s,a,u]}class ge extends ne{constructor(e){super(),re(this,e,ce,ue,Y,{closeUrl:0,title:1})}}export{ge as A}; diff --git a/gui/next/build/_app/immutable/chunks/B9_cNKsK.js b/gui/next/build/_app/immutable/chunks/B9_cNKsK.js new file mode 100644 index 000000000..1bc30fdfe --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/B9_cNKsK.js @@ -0,0 +1 @@ +import{S as W,i as Y,s as Z,d as m,o as P,p as T,R as F,H as G,Q as V,b as g,z as f,e as E,f as A,j as L,n as X,x as K,a as J,c as z,J as D,h as I,g as M,k as S,t as O,a4 as $,E as x,X as ee,a3 as le,I as ae,L as ue,M as te}from"./n7YEDvJi.js";import"./IHki7fMi.js";import{f as ne}from"./BaKpYqK2.js";import{I as ie}from"./DHO4ENnJ.js";const he=(l,e)=>{const a=n=>{n.composedPath().includes(l)||e(n)};return document.addEventListener("mousedown",a),{destroy(){document.removeEventListener("mousedown",a)}}};function se(l){let e,a=l[2][0].label+"",n,s,o,r,_,v,h,p,t,j,w,i=l[0]===l[2][0].value&&y();return{c(){e=L("label"),n=O(a),s=S(),i&&i.c(),r=S(),_=L("input"),this.h()},l(c){e=E(c,"LABEL",{for:!0,class:!0});var b=A(e);n=M(b,a),s=I(b),i&&i.l(b),b.forEach(m),r=I(c),_=E(c,"INPUT",{type:!0,name:!0,id:!0,class:!0}),this.h()},h(){f(e,"for",o="toggle-"+l[1]+"-"+l[2][0].value),f(e,"class","svelte-1j5d7bb"),f(_,"type","checkbox"),f(_,"name",l[1]),_.value=v=l[2][0].value,f(_,"id",h="toggle-"+l[1]+"-"+l[2][0].value),_.checked=p=l[0]===l[2][0].value,f(_,"class","svelte-1j5d7bb")},m(c,b){g(c,e,b),z(e,n),z(e,s),i&&i.m(e,null),g(c,r,b),g(c,_,b),t=!0,j||(w=[D(_,"keydown",l[6]),D(_,"change",l[7]),D(_,"change",l[3])],j=!0)},p(c,b){(!t||b&4)&&a!==(a=c[2][0].label+"")&&J(n,a),c[0]===c[2][0].value?i?b&5&&T(i,1):(i=y(),i.c(),T(i,1),i.m(e,null)):i&&(F(),P(i,1,1,()=>{i=null}),G()),(!t||b&6&&o!==(o="toggle-"+c[1]+"-"+c[2][0].value))&&f(e,"for",o),(!t||b&2)&&f(_,"name",c[1]),(!t||b&4&&v!==(v=c[2][0].value))&&(_.value=v),(!t||b&6&&h!==(h="toggle-"+c[1]+"-"+c[2][0].value))&&f(_,"id",h),(!t||b&5&&p!==(p=c[0]===c[2][0].value))&&(_.checked=p)},i(c){t||(T(i),t=!0)},o(c){P(i),t=!1},d(c){c&&(m(e),m(r),m(_)),i&&i.d(),j=!1,K(w)}}}function oe(l){let e,a,n,s,o,r,_=l[2][0].label+"",v,h,p,t,j,w,i,c,b,N,U,k,B=l[2][1].label+"",C,q,H,Q;return{c(){e=L("input"),o=S(),r=L("label"),v=O(_),p=S(),t=L("label"),w=S(),i=L("input"),U=S(),k=L("label"),C=O(B),this.h()},l(u){e=E(u,"INPUT",{type:!0,name:!0,id:!0,class:!0}),o=I(u),r=E(u,"LABEL",{for:!0,class:!0});var d=A(r);v=M(d,_),d.forEach(m),p=I(u),t=E(u,"LABEL",{for:!0,class:!0}),A(t).forEach(m),w=I(u),i=E(u,"INPUT",{type:!0,name:!0,id:!0,class:!0}),U=I(u),k=E(u,"LABEL",{for:!0,class:!0});var R=A(k);C=M(R,B),R.forEach(m),this.h()},h(){f(e,"type","radio"),f(e,"name",l[1]),e.value=a=l[2][0].value,e.checked=n=l[0]===l[2][0].value,f(e,"id",s="toggle-"+l[1]+"-"+l[2][0].value),f(e,"class","svelte-1j5d7bb"),f(r,"for",h="toggle-"+l[1]+"-"+l[2][0].value),f(r,"class","svelte-1j5d7bb"),f(t,"for",j="toggle-"+l[1]+"-"+(l[0]===l[2][0].value?l[2][1].value:l[2][0].value)),f(t,"class","switcher svelte-1j5d7bb"),f(i,"type","radio"),f(i,"name",l[1]),i.value=c=l[2][1].value,i.checked=b=l[0]===l[2][1].value,f(i,"id",N="toggle-"+l[1]+"-"+l[2][1].value),f(i,"class","svelte-1j5d7bb"),f(k,"for",q="toggle-"+l[1]+"-"+l[2][1].value),f(k,"class","svelte-1j5d7bb")},m(u,d){g(u,e,d),g(u,o,d),g(u,r,d),z(r,v),g(u,p,d),g(u,t,d),g(u,w,d),g(u,i,d),g(u,U,d),g(u,k,d),z(k,C),H||(Q=[D(e,"keydown",l[4]),D(i,"keydown",l[5])],H=!0)},p(u,d){d&2&&f(e,"name",u[1]),d&4&&a!==(a=u[2][0].value)&&(e.value=a),d&5&&n!==(n=u[0]===u[2][0].value)&&(e.checked=n),d&6&&s!==(s="toggle-"+u[1]+"-"+u[2][0].value)&&f(e,"id",s),d&4&&_!==(_=u[2][0].label+"")&&J(v,_),d&6&&h!==(h="toggle-"+u[1]+"-"+u[2][0].value)&&f(r,"for",h),d&7&&j!==(j="toggle-"+u[1]+"-"+(u[0]===u[2][0].value?u[2][1].value:u[2][0].value))&&f(t,"for",j),d&2&&f(i,"name",u[1]),d&4&&c!==(c=u[2][1].value)&&(i.value=c),d&5&&b!==(b=u[0]===u[2][1].value)&&(i.checked=b),d&6&&N!==(N="toggle-"+u[1]+"-"+u[2][1].value)&&f(i,"id",N),d&4&&B!==(B=u[2][1].label+"")&&J(C,B),d&6&&q!==(q="toggle-"+u[1]+"-"+u[2][1].value)&&f(k,"for",q)},i:X,o:X,d(u){u&&(m(e),m(o),m(r),m(p),m(t),m(w),m(i),m(U),m(k)),H=!1,K(Q)}}}function y(l){let e,a,n,s;return a=new ie({props:{icon:"check"}}),{c(){e=L("i"),te(a.$$.fragment),this.h()},l(o){e=E(o,"I",{class:!0});var r=A(e);ue(a.$$.fragment,r),r.forEach(m),this.h()},h(){f(e,"class","svelte-1j5d7bb")},m(o,r){g(o,e,r),ae(a,e,null),s=!0},i(o){s||(T(a.$$.fragment,o),o&&(n||ee(()=>{n=le(e,ne,{delay:50,duration:50}),n.start()})),s=!0)},o(o){P(a.$$.fragment,o),s=!1},d(o){o&&m(e),x(a)}}}function fe(l){let e,a,n,s;const o=[oe,se],r=[];function _(v,h){return v[2].length===2?0:v[2].length===1?1:-1}return~(a=_(l))&&(n=r[a]=o[a](l)),{c(){e=L("div"),n&&n.c(),this.h()},l(v){e=E(v,"DIV",{class:!0});var h=A(e);n&&n.l(h),h.forEach(m),this.h()},h(){f(e,"class","toggle svelte-1j5d7bb"),V(e,"single",l[2].length===1)},m(v,h){g(v,e,h),~a&&r[a].m(e,null),s=!0},p(v,[h]){let p=a;a=_(v),a===p?~a&&r[a].p(v,h):(n&&(F(),P(r[p],1,1,()=>{r[p]=null}),G()),~a?(n=r[a],n?n.p(v,h):(n=r[a]=o[a](v),n.c()),T(n,1),n.m(e,null)):n=null),(!s||h&4)&&V(e,"single",v[2].length===1)},i(v){s||(T(n),s=!0)},o(v){P(n),s=!1},d(v){v&&m(e),~a&&r[a].d()}}}function re(l,e,a){let{name:n}=e,{options:s=[]}=e,{checked:o=s.length>1?s[0].value.toString():""}=e;function r(t){$.call(this,l,t)}const _=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?s[1].value:s[0].value))},v=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?s[1].value:s[0].value))},h=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?"":s[0].value))},p=t=>a(0,o=t.target.checked?s[0].value:"");return l.$$set=t=>{"name"in t&&a(1,n=t.name),"options"in t&&a(2,s=t.options),"checked"in t&&a(0,o=t.checked)},[o,n,s,r,_,v,h,p]}class be extends W{constructor(e){super(),Y(this,e,re,fe,Z,{name:1,options:2,checked:0})}}export{be as T,he as c}; diff --git a/gui/next/build/_app/immutable/chunks/graphql.BD1m7lx9.js b/gui/next/build/_app/immutable/chunks/BD1m7lx9.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/graphql.BD1m7lx9.js rename to gui/next/build/_app/immutable/chunks/BD1m7lx9.js diff --git a/gui/next/build/_app/immutable/chunks/BaKpYqK2.js b/gui/next/build/_app/immutable/chunks/BaKpYqK2.js new file mode 100644 index 000000000..e9464e4f0 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/BaKpYqK2.js @@ -0,0 +1 @@ +import{w as n}from"./n7YEDvJi.js";function r(t,{delay:o=0,duration:e=400,easing:i=n}={}){const a=+getComputedStyle(t).opacity;return{delay:o,duration:e,easing:i,css:c=>`opacity: ${c*a}`}}export{r as f}; diff --git a/gui/next/build/_app/immutable/chunks/BkTZdoZE.js b/gui/next/build/_app/immutable/chunks/BkTZdoZE.js new file mode 100644 index 000000000..63d6259cb --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/BkTZdoZE.js @@ -0,0 +1 @@ +var mt=Object.defineProperty;var _t=(e,t,n)=>t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var E=(e,t,n)=>_t(e,typeof t!="symbol"?t+"":t,n);import{S as wt,a7 as vt,a6 as yt,W as bt,ao as St,aj as kt,ap as Et,af as Rt,a5 as me,ak as xt,P as W}from"./n7YEDvJi.js";import{w as Se}from"./CJfL7PSQ.js";class ze extends wt{constructor(n){if(!n||!n.target&&!n.$$inline)throw new Error("'target' is a required option");super();E(this,"$$prop_def");E(this,"$$events_def");E(this,"$$slot_def")}$destroy(){super.$destroy(),this.$destroy=()=>{console.warn("Component was already destroyed")}}$capture_state(){}$inject_state(){}}class $t extends ze{}const Ut=Object.freeze(Object.defineProperty({__proto__:null,SvelteComponent:ze,SvelteComponentTyped:$t,afterUpdate:vt,beforeUpdate:yt,createEventDispatcher:bt,getAllContexts:St,getContext:kt,hasContext:Et,onDestroy:Rt,onMount:me,setContext:xt,tick:W},Symbol.toStringTag,{value:"Module"}));class ke{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ee{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Lt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function At(e){return e.split("%25").map(decodeURI).join("%25")}function Tt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function de({href:e}){return e.split("#")[0]}function Ct(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Ot(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&K.delete(xe(e)),It(e,t));const K=new Map;function Pt(e,t){const n=xe(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&K.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=Ot(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function jt(e,t,n){if(K.size>0){const r=xe(e,n),a=K.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return he(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return he(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const d=Nt.exec(c),[,u,v,f,h]=d;return t.push({name:f,matcher:h,optional:!!u,rest:!!v,chained:v?l===1&&o[0]==="":!1}),v?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return he(c)}).join("")}).join("")}/?$`),params:t}}function qt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Vt(e){return e.slice(1).split("/").filter(qt)}function Mt(e,t,n){const r={},a=e.slice(1),s=a.filter(i=>i!==void 0);let o=0;for(let i=0;id).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[i+1],u=a[i+1];d&&!d.rest&&d.optional&&u&&c.chained&&(o=0),!d&&!u&&Object.keys(r).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function he(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Bt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([i,[c,l,d]])=>{const{pattern:u,params:v}=Dt(i),f={id:i,exec:h=>{const _=u.exec(h);if(_)return Mt(_,v,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(o),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(i){const c=i<0;return c&&(i=~i),[c,e[i]]}function o(i){return i===void 0?i:[a.has(i),e[i]]}}function He(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}var Ge;const U=((Ge=globalThis.__sveltekit_v3dbqu)==null?void 0:Ge.base)??"";var Ye;const Kt=((Ye=globalThis.__sveltekit_v3dbqu)==null?void 0:Ye.assets)??U??"",Wt="1769002270937",Je="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Ft="sveltekit:pageurl",q="sveltekit:history",F="sveltekit:navigation",I={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ie=location.origin;function $e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ce(){return{x:pageXOffset,y:pageYOffset}}function D(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...I,"":I.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function _e(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||le(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===ie&&e.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function Z(e){let t=null,n=null,r=null,a=null,s=null,o=null,i=e;for(;i&&i!==document.documentElement;)r===null&&(r=D(i,"preload-code")),a===null&&(a=D(i,"preload-data")),t===null&&(t=D(i,"keepfocus")),n===null&&(n=D(i,"noscroll")),s===null&&(s=D(i,"reload")),o===null&&(o=D(i,"replacestate")),i=Ze(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[r??"off"],preload_data:Ve[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(o)}}function Me(e){const t=Se(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function s(o){let i;return t.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:r,set:a,subscribe:s}}const tt={v:()=>{}};function Gt(){const{set:e,subscribe:t}=Se(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Wt;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function le(e,t,n){return e.origin!==ie||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function bn(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Yt=new Set([...nt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof ke||e instanceof Re?e.status:500}function Ht(e){return e instanceof Re?e.text:"Internal Error"}let R,G,pe;const Jt=me.toString().includes("$$")||/function \w+\(\) \{\}/.test(me.toString());Jt?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},G={current:null},pe={current:!1}):(R=new class{constructor(){E(this,"data",$state.raw({}));E(this,"form",$state.raw(null));E(this,"error",$state.raw(null));E(this,"params",$state.raw({}));E(this,"route",$state.raw({id:null}));E(this,"state",$state.raw({}));E(this,"status",$state.raw(-1));E(this,"url",$state.raw(new URL("https://example.com")))}},G=new class{constructor(){E(this,"current",$state.raw(null))}},pe=new class{constructor(){E(this,"current",$state.raw(!1))}},tt.v=()=>pe.current=!0);function Xt(e){Object.assign(R,e)}const{onMount:Qt}=Ut,Zt=new Set(["icon","shortcut icon","apple-touch-icon"]),j=He(Xe)??{},Y=He(Je)??{},O={url:Me({}),page:Me({}),navigating:Se(null),updated:Gt()};function Le(e){j[e]=ce()}function en(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function z(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Be(){}let Ae,we,ee,A,ve,b;const te=[],ne=[];let w=null;function ye(){var e;(e=w==null?void 0:w.fork)==null||e.then(t=>t==null?void 0:t.discard()),w=null}const Q=new Map,Te=new Set,rt=new Set,V=new Set;let m={branch:[],error:null,url:null},ot=!1,ae=!1,Ke=!0,H=!1,B=!1,st=!1,Ce=!1,it,k,$,P;const re=new Set,We=new Map;async function Rn(e,t,n){var s,o,i,c,l;(s=globalThis.__sveltekit_v3dbqu)!=null&&s.data&&globalThis.__sveltekit_v3dbqu.data,document.URL!==location.href&&(location.href=location.href),b=e,await((i=(o=e.hooks).init)==null?void 0:i.call(o)),Ae=Bt(e),A=document.documentElement,ve=t,we=e.nodes[0],ee=e.nodes[1],we(),ee(),k=(c=history.state)==null?void 0:c[q],$=(l=history.state)==null?void 0:l[F],k||(k=$=Date.now(),history.replaceState({...history.state,[q]:k,[F]:$},""));const r=j[k];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await pn(ve,n)):(await M({type:"enter",url:$e(b.hash?_n(new URL(location.href)):location.href),replace_state:!0}),a()),hn()}function tn(){te.length=0,Ce=!1}function ct(e){ne.some(t=>t==null?void 0:t.snapshot)&&(Y[e]=ne.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function lt(e){var t;(t=Y[e])==null||t.forEach((n,r)=>{var a,s;(s=(a=ne[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function Fe(){Le(k),qe(Xe,j),ct($),qe(Je,Y)}async function ft(e,t,n,r){let a;t.invalidateAll&&ye(),await M({type:"goto",url:$e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ce=!0,a=[...We.keys()]),t.invalidate&&t.invalidate.forEach(dn)}}),t.invalidateAll&&W().then(W).then(()=>{We.forEach(({resource:s},o)=>{var i;a!=null&&a.includes(o)&&((i=s.refresh)==null||i.call(s))})})}async function nn(e){if(e.id!==(w==null?void 0:w.id)){ye();const t={};re.add(t),w={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(re.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return w.promise}async function ge(e){var n;const t=(n=await fe(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].map(r=>r==null?void 0:r[1]()))}async function ut(e,t,n){var a;m=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,e.props.page),it=new b.root({target:t,props:{...e.props,stores:O,components:ne},hydrate:n,sync:!1}),await Promise.resolve(),lt($),n){const s={from:null,to:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(o=>o(s))}ae=!0}function oe({url:e,params:t,branch:n,status:r,error:a,route:s,form:o}){let i="never";if(U&&(e.pathname===U||e.pathname===U+"/"))i="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(i=f.slash);e.pathname=Lt(e.pathname,i),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(f=>f.node.component),page:De(R)}};o!==void 0&&(c.props.form=o);let l={},d=!R,u=0;for(let f=0;fi(new URL(o))))return!0;return!1}function Ie(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function on(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function sn({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:De(R),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if((w==null?void 0:w.id)===e)return re.delete(w.token),w.promise;const{errors:o,layouts:i,leaf:c}=a,l=[...i,c];o.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));const d=m.url?e!==se(m.url):!1,u=m.route?a.id!==m.route.id:!1,v=on(m.url,n);let f=!1;const h=l.map(async(g,p)=>{var T;if(!g)return;const S=m.branch[p];return g[1]===(S==null?void 0:S.loader)&&!rn(f,u,d,v,(T=S.universal)==null?void 0:T.uses,r)?S:(f=!0,Oe({loader:g[1],url:n,params:r,route:a,parent:async()=>{var X;const L={};for(let y=0;y{});const _=[];for(let g=0;gPromise.resolve({}),server_data_node:Ie(s)}),i={node:await ee(),loader:ee,universal:null,server:null,data:null};return oe({url:n,params:a,branch:[o,i],status:e,error:t,route:null})}catch(o){if(o instanceof Ee)return ft(new URL(o.location,location.href),{},0);throw o}}async function ln(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(e),fetch:async(s,o)=>an(s,o,e).promise})??e;if(typeof a=="string"){const s=new URL(e);b.hash?s.hash=a:s.pathname=a,a=s}return a})();Q.set(t,r),n=await r}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!le(e,U,b.hash)){const n=await ln(e);if(!n)return;const r=fn(n);for(const a of Ae){const s=a.exec(r);if(s)return{id:se(e),invalidating:t,route:a,params:Tt(s),url:e}}}}function fn(e){return At(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function se(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const o=Ne(m,n,e,t);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return H||Te.forEach(c=>c(i)),s?null:o}async function M({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=Be,block:d=Be,event:u}){const v=P;P=c;const f=await fe(t,!1),h=e==="enter"?Ne(m,f,t,e):ht({url:t,type:e,delta:n==null?void 0:n.delta,intent:f,event:u});if(!h){d(),P===c&&(P=v);return}const _=k,g=$;l(),H=!0,ae&&h.navigation.type!=="enter"&&O.navigating.set(G.current=h.navigation);let p=f&&await dt(f);if(!p){if(le(t,U,b.hash))return await z(t,s);p=await pt(t,{id:null},await J(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=(f==null?void 0:f.url)||t,P!==c)return h.reject(new Error("navigation aborted")),!1;if(p.type==="redirect"){if(i<20){await M({type:e,url:new URL(p.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),h.fulfil(void 0);return}p=await Pe({status:500,error:await J(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else p.props.page.status>=400&&await O.updated.check()&&(await at(),await z(t,s));if(tn(),Le(_),ct(g),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),o=n?n.state:o,!n){const y=s?0:1,N={[q]:k+=y,[F]:$+=y,[Qe]:o};(s?history.replaceState:history.pushState).call(history,N,"",t),s||en(k,$)}const S=f&&(w==null?void 0:w.id)===f.id?w.fork:null;w=null,p.props.page.state=o;let x;if(ae){const y=(await Promise.all(Array.from(rt,C=>C(h.navigation)))).filter(C=>typeof C=="function");if(y.length>0){let C=function(){y.forEach(ue=>{V.delete(ue)})};y.push(C),y.forEach(ue=>{V.add(ue)})}m=p.state,p.props.page&&(p.props.page.url=t);const N=S&&await S;N?x=N.commit():(it.$set(p.props),Xt(p.props.page),x=void 0),st=!0}else await ut(p,ve,!1);const{activeElement:T}=document;await x,await W(),await W();let L=n?n.scroll:a?ce():null;if(Ke){const y=t.hash&&document.getElementById(gt(t));if(L)scrollTo(L.x,L.y);else if(y){y.scrollIntoView();const{top:N,left:C}=y.getBoundingClientRect();L={x:pageXOffset+C,y:pageYOffset+N}}else scrollTo(0,0)}const X=document.activeElement!==T&&document.activeElement!==document.body;!r&&!X&&mn(t,L),Ke=!0,p.props.page&&Object.assign(R,p.props.page),H=!1,e==="popstate"&<($),h.fulfil(void 0),V.forEach(y=>y(h.navigation)),O.navigating.set(G.current=null)}async function pt(e,t,n,r,a){return e.origin===ie&&e.pathname===location.pathname&&!ot?await Pe({status:r,error:n,url:e,route:t}):await z(e,a)}function un(){let e,t,n;A.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(e),e=setTimeout(()=>{s(c,I.hover)},20)});function r(i){i.defaultPrevented||s(i.composedPath()[0],I.tap)}A.addEventListener("mousedown",r),A.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(ge(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(i,c){const l=et(i,A),d=l===t&&c>=n;if(!l||d)return;const{url:u,external:v,download:f}=_e(l,U,b.hash);if(v||f)return;const h=Z(l),_=u&&se(m.url)===se(u);if(!(h.reload||_))if(c<=h.preload_data){t=l,n=I.tap;const g=await fe(u,!1);if(!g)return;nn(g)}else c<=h.preload_code&&(t=l,n=c,ge(u))}function o(){a.disconnect();for(const i of A.querySelectorAll("a")){const{url:c,external:l,download:d}=_e(i,U,b.hash);if(l||d)continue;const u=Z(i);u.reload||(u.preload_code===I.viewport&&a.observe(i),u.preload_code===I.eager&&ge(c))}}V.add(o),o()}function J(e,t){if(e instanceof ke)return e.body;const n=Ue(e),r=Ht(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function je(e,t){Qt(()=>(e.add(t),()=>{e.delete(t)}))}function xn(e){je(V,e)}function $n(e){je(Te,e)}function Un(e){je(rt,e)}function Ln(e,t={}){return e=new URL($e(e)),e.origin!==ie?Promise.reject(new Error("goto: invalid URL")):ft(e,t,0)}function dn(e){if(typeof e=="function")te.push(e);else{const{href:t}=new URL(e,location.href);te.push(n=>n.href===t)}}function hn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Fe(),!H){const a=Ne(m,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Te.forEach(o=>o(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Fe()}),(t=navigator.connection)!=null&&t.saveData||un(),A.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=et(n.composedPath()[0],A);if(!r)return;const{url:a,external:s,target:o,download:i}=_e(r,U,b.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const c=Z(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;const[d,u]=(b.hash?a.hash.replace(/^#/,""):a.href).split("#"),v=d===de(location);if(s||c.reload&&(!v||!u)){ht({url:a,type:"link",event:n})?H=!0:n.preventDefault();return}if(u!==void 0&&v){const[,f]=m.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=r.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(B=!0,Le(k),e(a),!c.replace_state)return;B=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await M({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:n})}),A.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(le(i,U,!1))return;const c=n.target,l=Z(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c,a);i.search=new URLSearchParams(d).toString(),M({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!be){if((r=n.state)!=null&&r[q]){const a=n.state[q];if(P={},a===k)return;const s=j[a],o=n.state[Qe]??{},i=new URL(n.state[Ft]??location.href),c=n.state[F],l=m.url?de(location)===de(m.url):!1;if(c===$&&(st||l)){o!==R.state&&(R.state=o),e(i),j[k]=ce(),s&&scrollTo(s.x,s.y),k=a;return}const u=a-k;await M({type:"popstate",url:i,popped:{state:o,scroll:s,delta:u},accept:()=>{k=a,$=c},block:()=>{history.go(-u)},nav_token:P,event:n})}else if(!B){const a=new URL(location.href);e(a),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{B&&(B=!1,history.replaceState({...history.state,[q]:++k,[F]:$},"",location.href))});for(const n of document.querySelectorAll("link"))Zt.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&O.navigating.set(G.current=null)});function e(n){m.url=R.url=n,O.page.set(De(R)),O.page.notify()}}async function pn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:i,form:c}){ot=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await fe(l,!1)||{}),d=Ae.find(({id:f})=>f===s.id);let u,v=!0;try{const f=r.map(async(_,g)=>{const p=i[g];return p!=null&&p.uses&&(p.uses=gn(p.uses)),Oe({loader:b.nodes[_],url:l,params:a,route:s,parent:async()=>{const S={};for(let x=0;x{const i=history.state;be=!0,location.replace(`#${r}`),b.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(s,o),be=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o{if(a.rangeCount===s.length){for(let o=0;o{a=d,s=u});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:o},fulfil:a,reject:s}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function _n(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{xn as a,$n as b,Rn as c,Ln as g,bn as l,Un as o,O as s}; diff --git a/gui/next/build/_app/immutable/chunks/buildMutationIngredients.BkeFH9yg.js b/gui/next/build/_app/immutable/chunks/BkeFH9yg.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/buildMutationIngredients.BkeFH9yg.js rename to gui/next/build/_app/immutable/chunks/BkeFH9yg.js diff --git a/gui/next/build/_app/immutable/chunks/Bp_ajb_u.js b/gui/next/build/_app/immutable/chunks/Bp_ajb_u.js new file mode 100644 index 000000000..7694f420b --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/Bp_ajb_u.js @@ -0,0 +1 @@ +import{w as g}from"./CJfL7PSQ.js";const p=b();function b(){const o=localStorage.view?JSON.parse(localStorage.view):null,e={};e.header=localStorage.header?JSON.parse(localStorage.header):["database","users","logs"],e.online=void 0,e.logs={},e.logsv2={},e.logv2={},e.networks={},e.network={},e.tables=[],e.table={},e.view={database:o!=null&&o.database?o.database:"table",tableStyle:o!=null&&o.tableStyle?o.tableStyle:"collapsed"},e.records={},e.record=null,e.highlighted={record:null,constant:null},e.filters={page:1,attributes:[{attribute_type:"id",name:"id",operation:"value",value:""}],deleted:"false"},e.sort={by:"created_at",order:"DESC"},e.notifications=[],e.asideWidth=localStorage.asideWidth?localStorage.asideWidth:!1,e.users=[];const{subscribe:s,set:d,update:i}=g(e),c=(a,t)=>{i(r=>(r[a]=t,r))},u=()=>{i(a=>(a.filters={page:1,attributes:[{attribute_type:"id",name:"id",operation:"value",value:""}],deleted:"false"},a.sort={by:"created_at",order:"DESC"},a))};let n;const l=(a,t)=>{i(r=>(r.highlighted[a]=t,r)),clearTimeout(n),n=setTimeout(()=>{l("record",null),l("constant",null)},7e3)};return{subscribe:s,set:d,data:c,clearFilters:u,highlight:l,notification:{create:(a,t)=>{i(r=>(r.notifications.push({id:Date.now(),type:a,message:t}),r))},remove:a=>{i(t=>(t.notifications=t.notifications.filter(r=>r.id!==a),t))}},setView:a=>{i(t=>(t.view={...t.view,...a},localStorage.view=JSON.stringify(t.view),t))}}}export{p as s}; diff --git a/gui/next/build/_app/immutable/chunks/C6Nbyvij.js b/gui/next/build/_app/immutable/chunks/C6Nbyvij.js new file mode 100644 index 000000000..d1bea62b9 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/C6Nbyvij.js @@ -0,0 +1 @@ +import{s as e}from"./BkTZdoZE.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/gui/next/build/_app/immutable/chunks/backgroundJob.cWe0itmY.js b/gui/next/build/_app/immutable/chunks/CIy9Z9Qf.js similarity index 88% rename from gui/next/build/_app/immutable/chunks/backgroundJob.cWe0itmY.js rename to gui/next/build/_app/immutable/chunks/CIy9Z9Qf.js index 481c1e3bf..b09dc89f7 100644 --- a/gui/next/build/_app/immutable/chunks/backgroundJob.cWe0itmY.js +++ b/gui/next/build/_app/immutable/chunks/CIy9Z9Qf.js @@ -1,4 +1,4 @@ -import{g as o}from"./graphql.BD1m7lx9.js";const _={get:async e=>{let t="";e!=null&&e.id&&(t=`id: { value: "${e.id}" }`);let a="";e!=null&&e.type&&(a=`type: ${e.type}`);const r=` +import{g as o}from"./BD1m7lx9.js";const _={get:async e=>{let t="";e!=null&&e.id&&(t=`id: { value: "${e.id}" }`);let a="";e!=null&&e.type&&(a=`type: ${e.type}`);const r=` query { admin_background_jobs( per_page: 20, diff --git a/gui/next/build/_app/immutable/chunks/CJfL7PSQ.js b/gui/next/build/_app/immutable/chunks/CJfL7PSQ.js new file mode 100644 index 000000000..1eedeb106 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/CJfL7PSQ.js @@ -0,0 +1 @@ +import{n as b,s as l}from"./n7YEDvJi.js";const n=[];function h(e,o){return{subscribe:p(e,o).subscribe}}function p(e,o=b){let r;const i=new Set;function u(t){if(l(e,t)&&(e=t,r)){const c=!n.length;for(const s of i)s[1](),n.push(s,e);if(c){for(let s=0;s{i.delete(s),i.size===0&&r&&(r(),r=null)}}return{set:u,update:f,subscribe:a}}export{h as r,p as w}; diff --git a/gui/next/build/_app/immutable/chunks/CMNnzBs7.js b/gui/next/build/_app/immutable/chunks/CMNnzBs7.js new file mode 100644 index 000000000..349a29298 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/CMNnzBs7.js @@ -0,0 +1,2 @@ +import{aj as et,ak as tt,S as L,i as F,s as J,n as K,d as c,b as d,y as T,l as x,Q,c as g,J as ne,z as v,e as y,f as N,g as k,j as w,t as b,al as ze,N as ee,m as W,o as $,p as m,u as X,q as Y,r as Z,a5 as nt,E as j,R as q,H as R,I as E,h as G,L as P,k as D,M as A,O as _e,am as Ge,K as re,a as O,ai as pe,a8 as me,an as he,T as z}from"./n7YEDvJi.js";import"./IHki7fMi.js";import{e as te}from"./DMhVG_ro.js";import{w as ue,r as st}from"./CJfL7PSQ.js";function $e(l,t){const s={},e={},n={$$scope:1};let r=l.length;for(;r--;){const a=l[r],i=t[r];if(i){for(const o in a)o in i||(e[o]=1);for(const o in i)n[o]||(s[o]=i[o],n[o]=1);l[r]=i}else for(const o in a)n[o]=1}for(const a in e)a in s||(s[a]=void 0);return s}function de(l){return typeof l=="object"&&l!==null?l:{}}const ge={};function U(l,t){const s=et(ge),e=typeof l=="function"?l(s):l,n={...s,...e};return t!=null&&t.expandable&&(n.isParentExpanded=n.expanded),tt(ge,n),s}function ve(l){let t,s,e="▶",n,r,a;return{c(){t=w("span"),s=w("span"),n=b(e),this.h()},l(i){t=y(i,"SPAN",{class:!0});var o=N(t);s=y(o,"SPAN",{class:!0});var f=N(s);n=k(f,e),f.forEach(c),o.forEach(c),this.h()},h(){v(s,"class","arrow svelte-1qd6nto"),Q(s,"expanded",l[2]),v(t,"class","container svelte-1qd6nto")},m(i,o){d(i,t,o),g(t,s),g(s,n),r||(a=ne(t,"click",l[4]),r=!0)},p(i,o){o&4&&Q(s,"expanded",i[2])},d(i){i&&c(t),r=!1,a()}}}function rt(l){let t,s=l[1]&&ve(l);return{c(){s&&s.c(),t=T()},l(e){s&&s.l(e),t=T()},m(e,n){s&&s.m(e,n),d(e,t,n)},p(e,[n]){e[1]?s?s.p(e,n):(s=ve(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:K,o:K,d(e){e&&c(t),s&&s.d(e)}}}function lt(l,t,s){let e,n,r=K,a=()=>(r(),r=ze(f,_=>s(2,n=_)),f);l.$$.on_destroy.push(()=>r());const{expanded:i,expandable:o}=U();x(l,o,_=>s(1,e=_));let{expanded:f=i}=t;a();const u=_=>{_.stopPropagation(),ee(f,n=!n,n)};return l.$$set=_=>{"expanded"in _&&a(s(0,f=_.expanded))},[f,e,n,o,u]}class De extends L{constructor(t){super(),F(this,t,lt,rt,J,{expanded:0})}}function at(l){let t;const s=l[1].default,e=W(s,l,l[0],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,[r]){e&&e.p&&(!t||r&1)&&X(e,s,n,n[0],t?Z(s,n[0],r,null):Y(n[0]),null)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function ot(l,t,s){let{$$slots:e={},$$scope:n}=t;return U({displayMode:"summary"}),l.$$set=r=>{"$$scope"in r&&s(0,n=r.$$scope)},[n,e]}class it extends L{constructor(t){super(),F(this,t,ot,at,J,{})}}function ft(l){let t;const s=l[3].default,e=W(s,l,l[2],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,[r]){e&&e.p&&(!t||r&4)&&X(e,s,n,n[2],t?Z(s,n[2],r,null):Y(n[2]),null)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function ut(l,t,s){let{$$slots:e={},$$scope:n}=t,{expanded:r}=t,{key:a}=t;const i=ue(!1);return U(({keyPath:o,level:f})=>(a!=="[[Entries]]"&&(o=[...o,a],f=f+1),{keyPath:o,level:f,expanded:r,expandable:i})),l.$$set=o=>{"expanded"in o&&s(0,r=o.expanded),"key"in o&&s(1,a=o.key),"$$scope"in o&&s(2,n=o.$$scope)},[r,a,n,e]}class He extends L{constructor(t){super(),F(this,t,ut,ft,J,{expanded:0,key:1})}}function ke(l,t,s){const e=l.slice();return e[19]=t[s],e[21]=s,e}const ct=l=>({key:l&1}),be=l=>({key:l[19],index:l[21]}),_t=l=>({key:l&1}),ye=l=>({key:l[19],index:l[21]}),pt=l=>({}),we=l=>({root:l[6]}),mt=l=>({}),Se=l=>({});function ht(l){let t,s,e,n,r,a,i,o,f=l[6]&&dt(l);e=new it({props:{$$slots:{default:[gt]},$$scope:{ctx:l}}});let u=l[4]&&Ne(l);return{c(){t=w("span"),f&&f.c(),s=D(),A(e.$$.fragment),n=D(),u&&u.c(),r=T(),this.h()},l(_){t=y(_,"SPAN",{class:!0});var p=N(t);f&&f.l(p),s=G(p),P(e.$$.fragment,p),p.forEach(c),n=G(_),u&&u.l(_),r=T(),this.h()},h(){v(t,"class","root svelte-19drypg")},m(_,p){d(_,t,p),f&&f.m(t,null),g(t,s),E(e,t,null),d(_,n,p),u&&u.m(_,p),d(_,r,p),a=!0,i||(o=ne(t,"click",l[9]),i=!0)},p(_,p){_[6]&&f.p(_,p);const h={};p&8192&&(h.$$scope={dirty:p,ctx:_}),e.$set(h),_[4]?u?(u.p(_,p),p&16&&m(u,1)):(u=Ne(_),u.c(),m(u,1),u.m(r.parentNode,r)):u&&(q(),$(u,1,1,()=>{u=null}),R())},i(_){a||(m(f),m(e.$$.fragment,_),m(u),a=!0)},o(_){$(f),$(e.$$.fragment,_),$(u),a=!1},d(_){_&&(c(t),c(n),c(r)),f&&f.d(),j(e),u&&u.d(_),i=!1,o()}}}function $t(l){let t;const s=l[11].summary,e=W(s,l,l[13],Se);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&8192)&&X(e,s,n,n[13],t?Z(s,n[13],r,mt):Y(n[13]),Se)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function dt(l){let t,s;return t=new De({props:{expanded:l[7]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p:K,i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function gt(l){let t;const s=l[11].preview,e=W(s,l,l[13],we);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&8192)&&X(e,s,n,n[13],t?Z(s,n[13],r,pt):Y(n[13]),we)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function Ne(l){let t,s,e,n,r=te(l[0]),a=[];for(let o=0;o$(a[o],1,1,()=>{a[o]=null});return{c(){t=w("ul");for(let o=0;o{};function yt(l,t,s){let e,n,r,{$$slots:a={},$$scope:i}=t,{keys:o}=t,{shouldShowColon:f=void 0}=t,{expandKey:u=I=>I}=t,{defaultExpanded:_=!1}=t;const{isParentExpanded:p,displayMode:h,root:S,expanded:C,expandable:V,keyPath:Qe,level:We,shouldExpandNode:Xe}=U({root:!1},{expandable:!0});if(x(l,C,I=>s(4,n=I)),x(l,V,I=>s(14,r=I)),ee(V,r=!0,r),h!=="summary"){if(!_){const I=Xe({keyPath:Qe,level:We});I!==void 0&&(_=I)}nt(()=>p.subscribe(I=>{I?C.set(_):C.set(!1)}))}function Ye(){ee(C,n=!n,n)}const Ze=I=>e[I].update(xe=>!xe);return l.$$set=I=>{"keys"in I&&s(0,o=I.keys),"shouldShowColon"in I&&s(1,f=I.shouldShowColon),"expandKey"in I&&s(2,u=I.expandKey),"defaultExpanded"in I&&s(10,_=I.defaultExpanded),"$$scope"in I&&s(13,i=I.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&s(3,e=o.map(()=>ue(!1)))},[o,f,u,e,n,h,S,C,V,Ye,_,a,Ze,i]}class B extends L{constructor(t){super(),F(this,t,yt,kt,J,{keys:0,shouldShowColon:1,expandKey:2,defaultExpanded:10})}}function Ae(l,t,s){const e=l.slice();return e[9]=t[s],e[11]=s,e}const wt=l=>({item:l&1}),Pe=l=>({item:l[9],index:l[11]});function Oe(l){let t,s,e,n,r,a=l[3]&&Te(l),i=te(l[0]),o=[];for(let p=0;p$(o[p],1,1,()=>{o[p]=null});let u=l[1]&&Le(),_=l[4]&&Fe(l);return{c(){a&&a.c(),t=D();for(let p=0;p{e=null}),R())},i(n){s||(m(e),s=!0)},o(n){$(e),s=!1},d(n){n&&c(t),e&&e.d(n)}}}function Nt(l,t,s){let{$$slots:e={},$$scope:n}=t,{list:r}=t,{hasMore:a}=t,{label:i=void 0}=t,{prefix:o=void 0}=t,{postfix:f=void 0}=t,{root:u=!1}=t;const{showPreview:_}=U();return l.$$set=p=>{"list"in p&&s(0,r=p.list),"hasMore"in p&&s(1,a=p.hasMore),"label"in p&&s(2,i=p.label),"prefix"in p&&s(3,o=p.prefix),"postfix"in p&&s(4,f=p.postfix),"root"in p&&s(5,u=p.root),"$$scope"in p&&s(7,n=p.$$scope)},[r,a,i,o,f,u,_,n,e]}class se extends L{constructor(t){super(),F(this,t,Nt,St,J,{list:0,hasMore:1,label:2,prefix:3,postfix:4,root:5})}}function jt(l){let t,s=(l[1]??"{…}")+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","label")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&2&&s!==(s=(n[1]??"{…}")+"")&&O(e,s)},d(n){n&&c(t)}}}function Et(l){let t,s=l[6]+"",e,n,r=": ",a,i,o;return i=new M({props:{value:l[0][l[6]]}}),{c(){t=w("span"),e=b(s),n=w("span"),a=b(r),A(i.$$.fragment),this.h()},l(f){t=y(f,"SPAN",{class:!0});var u=N(t);e=k(u,s),u.forEach(c),n=y(f,"SPAN",{class:!0});var _=N(n);a=k(_,r),_.forEach(c),P(i.$$.fragment,f),this.h()},h(){v(t,"class","property"),v(n,"class","operator")},m(f,u){d(f,t,u),g(t,e),d(f,n,u),g(n,a),E(i,f,u),o=!0},p(f,u){(!o||u&64)&&s!==(s=f[6]+"")&&O(e,s);const _={};u&65&&(_.value=f[0][f[6]]),i.$set(_)},i(f){o||(m(i.$$.fragment,f),o=!0)},o(f){$(i.$$.fragment,f),o=!1},d(f){f&&(c(t),c(n)),j(i,f)}}}function At(l){let t,s;return t=new se({props:{list:l[3],hasMore:l[3].length({6:e}),({item:e})=>e?64:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&8&&(r.list=e[3]),n&12&&(r.hasMore=e[3].length({4:e}),({key:e})=>e?16:0],item_key:[Pt,({key:e})=>({4:e}),({key:e})=>e?16:0],preview:[At,({root:e})=>({5:e}),({root:e})=>e?32:0],summary:[jt]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&4&&(r.keys=e[2]),n&191&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Ct(l,t,s){let e,n,{value:r}=t,{summary:a}=t;return l.$$set=i=>{"value"in i&&s(0,r=i.value),"summary"in i&&s(1,a=i.summary)},l.$$.update=()=>{l.$$.dirty&1&&s(2,e=Object.getOwnPropertyNames(r)),l.$$.dirty&4&&s(3,n=e.slice(0,5))},[r,a,e,n]}class ce extends L{constructor(t){super(),F(this,t,Ct,Tt,J,{value:0,summary:1})}}function Mt(l){let t,s,e=l[0].length+"",n,r;return{c(){t=w("span"),s=b("Array("),n=b(e),r=b(")"),this.h()},l(a){t=y(a,"SPAN",{class:!0});var i=N(t);s=k(i,"Array("),n=k(i,e),r=k(i,")"),i.forEach(c),this.h()},h(){v(t,"class","label")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&1&&e!==(e=a[0].length+"")&&O(n,e)},d(a){a&&c(t)}}}function It(l){let t,s;return t=new M({props:{value:l[5]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&32&&(r.value=e[5]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Lt(l){let t,s;return t=new se({props:{list:l[1],hasMore:l[1].length({5:e}),({item:e})=>e?32:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.list=e[1]),n&3&&(r.hasMore=e[1].length({3:e}),({key:e})=>e?8:0],item_key:[Ft,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[Lt,({root:e})=>({4:e}),({root:e})=>e?16:0],summary:[Mt]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&4&&(r.keys=e[2]),n&91&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Bt(l,t,s){let e,n,{value:r}=t;return l.$$set=a=>{"value"in a&&s(0,r=a.value)},l.$$.update=()=>{l.$$.dirty&1&&s(2,e=Object.getOwnPropertyNames(r)),l.$$.dirty&1&&s(1,n=r.slice(0,5))},[r,n,e]}class qt extends L{constructor(t){super(),F(this,t,Bt,Kt,J,{value:0})}}function Rt(l){let t,s,e,n=l[3].length+"",r,a;return{c(){t=w("span"),s=b(l[1]),e=b("("),r=b(n),a=b(")"),this.h()},l(i){t=y(i,"SPAN",{class:!0});var o=N(t);s=k(o,l[1]),e=k(o,"("),r=k(o,n),a=k(o,")"),o.forEach(c),this.h()},h(){v(t,"class","label")},m(i,o){d(i,t,o),g(t,s),g(t,e),g(t,r),g(t,a)},p(i,o){o&2&&O(s,i[1]),o&8&&n!==(n=i[3].length+"")&&O(r,n)},d(i){i&&c(t)}}}function Ut(l){let t,s;return t=new M({props:{value:l[9]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&512&&(r.value=e[9]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Vt(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({9:e}),({item:e})=>e?512:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&20&&(r.hasMore=e[4].length({7:e}),({key:e})=>e?128:0],item_key:[Ht,({key:e})=>({7:e}),({key:e})=>e?128:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&8&&(r.keys=e[3]),n&1156&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Ht(l){let t,s=l[7]+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&128&&s!==(s=n[7]+"")&&O(e,s)},d(n){n&&c(t)}}}function Qt(l){let t,s;return t=new M({props:{value:l[2][l[7]]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&132&&(r.value=e[2][e[7]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Wt(l){let t,s,e,n;const r=[Dt,Gt],a=[];function i(o,f){return o[6]===le?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(q(),$(a[u],1,1,()=>{a[u]=null}),R(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function Xt(l){let t,s;return t=new B({props:{keys:[le,"size"],shouldShowColon:l[5],$$slots:{item_value:[Wt,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[zt,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Vt,({root:e})=>({8:e}),({root:e})=>e?256:0],summary:[Rt]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&1375&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}const le="[[Entries]]";function Yt(l,t,s){let e,{value:n}=t,{nodeType:r}=t,a=[],i=[];const o=f=>f!==le;return l.$$set=f=>{"value"in f&&s(0,n=f.value),"nodeType"in f&&s(1,r=f.nodeType)},l.$$.update=()=>{if(l.$$.dirty&1){let f=[],u=[],_=0;for(const p of n)f.push(_++),u.push(p);s(3,a=f),s(2,i=u)}l.$$.dirty&4&&s(4,e=i.slice(0,5))},[n,r,i,a,e,o]}class Zt extends L{constructor(t){super(),F(this,t,Yt,Xt,J,{value:0,nodeType:1})}}function xt(l){let t,s,e=l[2].length+"",n,r;return{c(){t=w("span"),s=b("Map("),n=b(e),r=b(")"),this.h()},l(a){t=y(a,"SPAN",{color:!0});var i=N(t);s=k(i,"Map("),n=k(i,e),r=k(i,")"),i.forEach(c),this.h()},h(){v(t,"color","label")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&4&&e!==(e=a[2].length+"")&&O(n,e)},d(a){a&&c(t)}}}function en(l){let t,s,e=" => ",n,r,a;return t=new M({props:{value:l[11]}}),r=new M({props:{value:l[0].get(l[11])}}),{c(){A(t.$$.fragment),s=w("span"),n=b(e),A(r.$$.fragment),this.h()},l(i){P(t.$$.fragment,i),s=y(i,"SPAN",{class:!0});var o=N(s);n=k(o,e),o.forEach(c),P(r.$$.fragment,i),this.h()},h(){v(s,"class","operator")},m(i,o){E(t,i,o),d(i,s,o),g(s,n),E(r,i,o),a=!0},p(i,o){const f={};o&2048&&(f.value=i[11]),t.$set(f);const u={};o&2049&&(u.value=i[0].get(i[11])),r.$set(u)},i(i){a||(m(t.$$.fragment,i),m(r.$$.fragment,i),a=!0)},o(i){$(t.$$.fragment,i),$(r.$$.fragment,i),a=!1},d(i){i&&c(s),j(t,i),j(r,i)}}}function tn(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({11:e}),({item:e})=>e?2048:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&17&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[ln,({key:e})=>({8:e}),({key:e})=>e?256:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.keys=e[1]),n&4&&(r.expandKey=e[5]),n&4364&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function ln(l){let t,s=l[8]+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&256&&s!==(s=n[8]+"")&&O(e,s)},d(n){n&&c(t)}}}function an(l){let t,s="{ ",e,n,r,a=" => ",i,o,f,u=" }",_,p;return n=new M({props:{value:l[2][l[8]]}}),o=new M({props:{value:l[3][l[8]]}}),{c(){t=w("span"),e=b(s),A(n.$$.fragment),r=w("span"),i=b(a),A(o.$$.fragment),f=w("span"),_=b(u),this.h()},l(h){t=y(h,"SPAN",{class:!0});var S=N(t);e=k(S,s),S.forEach(c),P(n.$$.fragment,h),r=y(h,"SPAN",{class:!0});var C=N(r);i=k(C,a),C.forEach(c),P(o.$$.fragment,h),f=y(h,"SPAN",{class:!0});var V=N(f);_=k(V,u),V.forEach(c),this.h()},h(){v(t,"class","operator"),v(r,"class","operator"),v(f,"class","operator")},m(h,S){d(h,t,S),g(t,e),E(n,h,S),d(h,r,S),g(r,i),E(o,h,S),d(h,f,S),g(f,_),p=!0},p(h,S){const C={};S&260&&(C.value=h[2][h[8]]),n.$set(C);const V={};S&264&&(V.value=h[3][h[8]]),o.$set(V)},i(h){p||(m(n.$$.fragment,h),m(o.$$.fragment,h),p=!0)},o(h){$(n.$$.fragment,h),$(o.$$.fragment,h),p=!1},d(h){h&&(c(t),c(r),c(f)),j(n,h),j(o,h)}}}function on(l){let t,s=l[9]+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&512&&s!==(s=n[9]+"")&&O(e,s)},d(n){n&&c(t)}}}function fn(l){let t,s;return t=new M({props:{value:l[9]==="key"?l[2][l[8]]:l[3][l[8]]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&780&&(r.value=e[9]==="key"?e[2][e[8]]:e[3][e[8]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function un(l){let t,s;return t=new B({props:{keys:["key","value"],$$slots:{item_value:[fn,({key:e})=>({9:e}),({key:e})=>e?512:0],item_key:[on,({key:e})=>({9:e}),({key:e})=>e?512:0],preview:[an]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&4876&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function cn(l){let t,s,e,n;const r=[rn,sn],a=[];function i(o,f){return o[7]===ae?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(q(),$(a[u],1,1,()=>{a[u]=null}),R(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function _n(l){let t,s;return t=new B({props:{keys:[ae,"size"],shouldShowColon:l[6],$$slots:{item_value:[cn,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[nn,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[tn,({root:e})=>({10:e}),({root:e})=>e?1024:0],summary:[xt]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&5279&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}const ae="[[Entries]]";function pn(l,t,s){let e,{value:n}=t;U();let r=[],a=[],i=[];const o=u=>a[u],f=u=>u!==ae;return l.$$set=u=>{"value"in u&&s(0,n=u.value)},l.$$.update=()=>{if(l.$$.dirty&1){let u=[],_=[],p=[],h=0;for(const S of n)u.push(h++),_.push(S[0]),p.push(S[1]);s(1,r=u),s(2,a=_),s(3,i=p)}l.$$.dirty&1&&s(4,e=Array.from(n.keys()).slice(0,5))},[n,r,a,i,e,o,f]}class mn extends L{constructor(t){super(),F(this,t,pn,_n,J,{value:0})}}function hn(l){let t,s,e;return{c(){t=w("span"),s=b(l[0]),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);s=k(r,l[0]),r.forEach(c),this.h()},h(){v(t,"class",e=pe(l[1])+" svelte-l95iub")},m(n,r){d(n,t,r),g(t,s)},p(n,[r]){r&1&&O(s,n[0]),r&2&&e!==(e=pe(n[1])+" svelte-l95iub")&&v(t,"class",e)},i:K,o:K,d(n){n&&c(t)}}}function $n(l,t,s){let{value:e,nodeType:n}=t;return l.$$set=r=>{"value"in r&&s(0,e=r.value),"nodeType"in r&&s(1,n=r.nodeType)},[e,n]}class H extends L{constructor(t){super(),F(this,t,$n,hn,J,{value:0,nodeType:1})}}function Je(l,t,s){const e=l.slice();e[6]=t[s],e[9]=s;const n=e[9]$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a0)},m(o,f){d(o,t,f),E(s,t,null),g(t,e),g(e,r),d(o,a,f),i=!0},p(o,f){const u={};f&1&&(u.value=o[6]+(o[7]?"\\n":"")),s.$set(u),(!i||f&1)&&n!==(n=o[7]?" +":"")&&O(r,n)},i(o){i||(m(s.$$.fragment,o),i=!0)},o(o){$(s.$$.fragment,o),i=!1},d(o){o&&(c(t),c(a)),j(s)}}}function vn(l){let t,s,e,n,r,a;const i=[gn,dn],o=[];function f(u,_){return u[1]?0:1}return s=f(l),e=o[s]=i[s](l),{c(){t=w("span"),e.c()},l(u){t=y(u,"SPAN",{});var _=N(t);e.l(_),_.forEach(c)},m(u,_){d(u,t,_),o[s].m(t,null),n=!0,r||(a=ne(t,"click",l[4]),r=!0)},p(u,[_]){let p=s;s=f(u),s===p?o[s].p(u,_):(q(),$(o[p],1,1,()=>{o[p]=null}),R(),e=o[s],e?e.p(u,_):(e=o[s]=i[s](u),e.c()),m(e,1),e.m(t,null))},i(u){n||(m(e),n=!0)},o(u){$(e),n=!1},d(u){u&&c(t),o[s].d(),r=!1,a()}}}function kn(l,t,s){let e,n,{stack:r}=t;const{expanded:a,expandable:i}=U();x(l,a,f=>s(1,n=f)),x(l,i,f=>s(5,e=f)),ee(i,e=!0,e);const o=()=>ee(a,n=!n,n);return l.$$set=f=>{"stack"in f&&s(0,r=f.stack)},[r,n,a,i,o]}class bn extends L{constructor(t){super(),F(this,t,kn,vn,J,{stack:0})}}function yn(l){let t,s,e=String(l[0].message)+"",n;return{c(){t=w("span"),s=b("Error: "),n=b(e),this.h()},l(r){t=y(r,"SPAN",{class:!0});var a=N(t);s=k(a,"Error: "),n=k(a,e),a.forEach(c),this.h()},h(){v(t,"class","label")},m(r,a){d(r,t,a),g(t,s),g(t,n)},p(r,a){a&1&&e!==(e=String(r[0].message)+"")&&O(n,e)},d(r){r&&c(t)}}}function wn(l){let t,s,e=String(l[0].message)+"",n;return{c(){t=w("span"),s=b("Error: "),n=b(e),this.h()},l(r){t=y(r,"SPAN",{class:!0});var a=N(t);s=k(a,"Error: "),n=k(a,e),a.forEach(c),this.h()},h(){v(t,"class","label")},m(r,a){d(r,t,a),g(t,s),g(t,n)},p(r,a){a&1&&e!==(e=String(r[0].message)+"")&&O(n,e)},d(r){r&&c(t)}}}function Sn(l){let t,s=l[2]+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=n[2]+"")&&O(e,s)},d(n){n&&c(t)}}}function Nn(l){let t,s;return t=new M({props:{value:l[0][l[2]]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&5&&(r.value=e[0][e[2]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function jn(l){let t,s;return t=new bn({props:{stack:l[1]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.stack=e[1]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function En(l){let t,s,e,n;const r=[jn,Nn],a=[];function i(o,f){return o[2]==="stack"?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(q(),$(a[u],1,1,()=>{a[u]=null}),R(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function An(l){let t,s;return t=new B({props:{keys:["message","stack"],$$slots:{item_value:[En,({key:e})=>({2:e}),({key:e})=>e?4:0],item_key:[Sn,({key:e})=>({2:e}),({key:e})=>e?4:0],preview:[wn],summary:[yn]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&15&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Pn(l,t,s){let e,{value:n}=t;return l.$$set=r=>{"value"in r&&s(0,n=r.value)},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=n.stack.split(` +`))},[n,e]}class On extends L{constructor(t){super(),F(this,t,Pn,An,J,{value:0})}}function Tn(l,t){const s=Object.prototype.toString.call(l).slice(8,-1);return s==="Object"?!t&&typeof l[Symbol.iterator]=="function"?"Iterable":l.constructor.name:s}function Cn(l){let t,s,e,n;return{c(){t=w("span"),s=b('"'),e=b(l[0]),n=b('"'),this.h()},l(r){t=y(r,"SPAN",{class:!0});var a=N(t);s=k(a,'"'),e=k(a,l[0]),n=k(a,'"'),a.forEach(c),this.h()},h(){v(t,"class","svelte-1fvwa9c")},m(r,a){d(r,t,a),g(t,s),g(t,e),g(t,n)},p(r,a){a&1&&O(e,r[0])},d(r){r&&c(t)}}}function Mn(l){let t,s,e=l[0].slice(0,30)+(l[0].length>30?"…":""),n,r;return{c(){t=w("span"),s=b('"'),n=b(e),r=b('"'),this.h()},l(a){t=y(a,"SPAN",{class:!0});var i=N(t);s=k(i,'"'),n=k(i,e),r=k(i,'"'),i.forEach(c),this.h()},h(){v(t,"class","svelte-1fvwa9c")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&1&&e!==(e=a[0].slice(0,30)+(a[0].length>30?"…":""))&&O(n,e)},d(a){a&&c(t)}}}function In(l){let t;function s(r,a){return r[1]==="summary"?Mn:Cn}let n=s(l)(l);return{c(){n.c(),t=T()},l(r){n.l(r),t=T()},m(r,a){n.m(r,a),d(r,t,a)},p(r,[a]){n.p(r,a)},i:K,o:K,d(r){r&&c(t),n.d(r)}}}function Ln(l,t,s){let e,{value:n}=t;const r={"\n":"\\n"," ":"\\t","\r":"\\r"},{displayMode:a}=U();return l.$$set=i=>{"value"in i&&s(2,n=i.value)},l.$$.update=()=>{l.$$.dirty&4&&s(0,e=n.replace(/[\n\t\r]/g,i=>r[i]))},[e,a,n]}class Fn extends L{constructor(t){super(),F(this,t,Ln,In,J,{value:2})}}function Jn(l){let t,s="ƒ";return{c(){t=w("span"),t.textContent=s,this.h()},l(e){t=y(e,"SPAN",{class:!0,"data-svelte-h":!0}),re(t)!=="svelte-migemc"&&(t.textContent=s),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(e,n){d(e,t,n)},p:K,d(e){e&&c(t)}}}function Be(l){let t,s=Re(l[2])+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","fn i svelte-1eamqdt")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=Re(n[2])+"")&&O(e,s)},d(n){n&&c(t)}}}function qe(l){let t,s=Ue(l[2])+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=Ue(n[2])+"")&&O(e,s)},d(n){n&&c(t)}}}function Kn(l){let t,s,e=!l[2].isArrow&&Be(l),n=!l[2].isClass&&qe(l);return{c(){e&&e.c(),t=T(),n&&n.c(),s=T()},l(r){e&&e.l(r),t=T(),n&&n.l(r),s=T()},m(r,a){e&&e.m(r,a),d(r,t,a),n&&n.m(r,a),d(r,s,a)},p(r,a){r[2].isArrow?e&&(e.d(1),e=null):e?e.p(r,a):(e=Be(r),e.c(),e.m(t.parentNode,t)),r[2].isClass?n&&(n.d(1),n=null):n?n.p(r,a):(n=qe(r),n.c(),n.m(s.parentNode,s))},d(r){r&&(c(t),c(s)),e&&e.d(r),n&&n.d(r)}}}function Bn(l){let t,s=l[6]+"",e,n;return{c(){t=w("span"),e=b(s),this.h()},l(r){t=y(r,"SPAN",{class:!0});var a=N(t);e=k(a,s),a.forEach(c),this.h()},h(){v(t,"class",n=l[6]===oe||l[6]===ie?"internal":"property")},m(r,a){d(r,t,a),g(t,e)},p(r,a){a&64&&s!==(s=r[6]+"")&&O(e,s),a&64&&n!==(n=r[6]===oe||r[6]===ie?"internal":"property")&&v(t,"class",n)},d(r){r&&c(t)}}}function qn(l){let t,s;return t=new M({props:{value:l[3](l[6])}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&64&&(r.value=e[3](e[6])),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Rn(l){let t,s;return t=new ce({props:{value:l[3](l[6])}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&64&&(r.value=e[3](e[6])),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function Un(l){let t,s;return{c(){t=w("span"),s=b(l[0]),this.h()},l(e){t=y(e,"SPAN",{class:!0});var n=N(t);s=k(n,l[0]),n.forEach(c),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&1&&O(s,e[0])},i:K,o:K,d(e){e&&c(t)}}}function Vn(l){let t,s,e,n;const r=[Un,Rn,qn],a=[];function i(o,f){return o[6]===oe?0:o[6]==="prototype"?1:2}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(q(),$(a[u],1,1,()=>{a[u]=null}),R(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function zn(l){let t,s;return t=new B({props:{keys:l[1],$$slots:{item_value:[Vn,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[Bn,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Kn],summary:[Jn]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&2&&(r.keys=e[1]),n&197&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}const oe="[[Function]]",ie="[[Prototype]]";function Gn(l){const t=l.match(/^(?:(async)\s+)?(?:function)?(\*)?\s*([^(]+)?(\([^)]*\))\s*(=>)?/),s=t==null?void 0:t[1],e=t==null?void 0:t[2],n=t==null?void 0:t[3],r=t==null?void 0:t[4],a=t==null?void 0:t[5],i=l.match(/^class\s+([^\s]+)/),o=i==null?void 0:i[1];return{args:r,isAsync:s,isGenerator:e,fnName:n,isArrow:a,isClass:o}}function Re({isGenerator:l,isAsync:t,isClass:s}){return s?`class ${s}`:(t?"async ":"")+"ƒ"+(l?"*":"")}function Ue({isAsync:l,isArrow:t,fnName:s,args:e}){return(t&&l?"async":"")+" "+(s??"")+e+(t?" => …":"")}function Dn(l){try{return l.toString()}catch{switch(l.constructor.name){case"AsyncFunction":return"async function () {}";case"AsyncGeneratorFunction":return"async function * () {}";case"GeneratorFunction:":return"function * () {}";default:return"function () {}"}}}function Hn(l,t,s){let e,n,r,{value:a}=t;function i(f){return f===ie?a.__proto__:a[f]}function o(f){return f===oe?!0:i(f)}return l.$$set=f=>{"value"in f&&s(4,a=f.value)},l.$$.update=()=>{l.$$.dirty&16&&s(0,e=Dn(a)),l.$$.dirty&1&&s(2,n=Gn(e))},s(1,r=["length","name","prototype",oe,ie].filter(o)),[e,r,n,i,a]}class Qn extends L{constructor(t){super(),F(this,t,Hn,zn,J,{value:4})}}function Wn(l){let t,s=l[3]?"writable(":"readable(",e,n,r=")",a,i;return n=new M({props:{value:l[2]}}),{c(){t=w("span"),e=b(s),A(n.$$.fragment),a=b(r),this.h()},l(o){t=y(o,"SPAN",{class:!0});var f=N(t);e=k(f,s),P(n.$$.fragment,f),a=k(f,r),f.forEach(c),this.h()},h(){v(t,"class","label")},m(o,f){d(o,t,f),g(t,e),E(n,t,null),g(t,a),i=!0},p(o,f){(!i||f&8)&&s!==(s=o[3]?"writable(":"readable(")&&O(e,s);const u={};f&4&&(u.value=o[2]),n.$set(u)},i(o){i||(m(n.$$.fragment,o),i=!0)},o(o){$(n.$$.fragment,o),i=!1},d(o){o&&c(t),j(n)}}}function Xn(l){let t,s=l[10]+"",e,n,r=": ",a,i,o;return i=new M({props:{value:l[0][l[10]]}}),{c(){t=w("span"),e=b(s),n=w("span"),a=b(r),A(i.$$.fragment),this.h()},l(f){t=y(f,"SPAN",{class:!0});var u=N(t);e=k(u,s),u.forEach(c),n=y(f,"SPAN",{class:!0});var _=N(n);a=k(_,r),_.forEach(c),P(i.$$.fragment,f),this.h()},h(){v(t,"class","property"),v(n,"class","operator")},m(f,u){d(f,t,u),g(t,e),d(f,n,u),g(n,a),E(i,f,u),o=!0},p(f,u){(!o||u&1024)&&s!==(s=f[10]+"")&&O(e,s);const _={};u&1025&&(_.value=f[0][f[10]]),i.$set(_)},i(f){o||(m(i.$$.fragment,f),o=!0)},o(f){$(i.$$.fragment,f),o=!1},d(f){f&&(c(t),c(n)),j(i,f)}}}function Yn(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&18&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Zn,({key:e})=>({8:e}),({key:e})=>e?256:0],preview:[Yn,({root:e})=>({9:e}),({root:e})=>e?512:0],summary:[Wn]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&32&&(r.keys=e[5]),n&2847&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}const fe="$value";function ts(l,t,s){let e,n,r,a,i,o,f=K,u=()=>(f(),f=ze(_,h=>s(7,o=h)),_);l.$$.on_destroy.push(()=>f());let{value:_}=t;u();function p(h){return h===fe?a:_[h]}return l.$$set=h=>{"value"in h&&u(s(0,_=h.value))},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=Object.getOwnPropertyNames(_)),l.$$.dirty&2&&s(5,n=[fe,...e]),l.$$.dirty&2&&s(4,r=e.slice(0,5)),l.$$.dirty&128&&s(2,a=o),l.$$.dirty&1&&s(3,i=typeof _.set=="function")},[_,e,a,i,r,n,p,o]}class ns extends L{constructor(t){super(),F(this,t,ts,es,J,{value:0})}}function ss(l){let t,s,e,n=l[0].length+"",r,a;return{c(){t=w("span"),s=b(l[1]),e=b("("),r=b(n),a=b(")"),this.h()},l(i){t=y(i,"SPAN",{class:!0});var o=N(t);s=k(o,l[1]),e=k(o,"("),r=k(o,n),a=k(o,")"),o.forEach(c),this.h()},h(){v(t,"class","label")},m(i,o){d(i,t,o),g(t,s),g(t,e),g(t,r),g(t,a)},p(i,o){o&2&&O(s,i[1]),o&1&&n!==(n=i[0].length+"")&&O(r,n)},d(i){i&&c(t)}}}function rs(l){let t,s;return t=new M({props:{value:l[8]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&256&&(r.value=e[8]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function ls(l){let t,s;return t=new se({props:{list:l[2],hasMore:l[2].length({8:e}),({item:e})=>e?256:0]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&4&&(r.list=e[2]),n&5&&(r.hasMore=e[2].length({6:e}),({key:e})=>e?64:0],item_key:[as,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[ls,({root:e})=>({7:e}),({root:e})=>e?128:0],summary:[ss]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&8&&(r.keys=e[3]),n&711&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}const Ve="Symbol(Symbol.toStringTag)";function fs(l,t,s){let e,n,{value:r}=t,{nodeType:a}=t;const i=["buffer","byteLength","byteOffset","length",Ve];function o(f){return f===Ve?r[Symbol.toStringTag]:r[f]}return l.$$set=f=>{"value"in f&&s(0,r=f.value),"nodeType"in f&&s(1,a=f.nodeType)},l.$$.update=()=>{l.$$.dirty&1&&s(3,e=[...Object.getOwnPropertyNames(r),...i]),l.$$.dirty&1&&s(2,n=r.slice(0,5))},[r,a,n,e,i,o]}class us extends L{constructor(t){super(),F(this,t,fs,is,J,{value:0,nodeType:1})}}function cs(l){let t,s;return{c(){t=w("span"),s=b(l[1]),this.h()},l(e){t=y(e,"SPAN",{class:!0});var n=N(t);s=k(n,l[1]),n.forEach(c),this.h()},h(){v(t,"class","regex svelte-17k1wqt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&2&&O(s,e[1])},d(e){e&&c(t)}}}function _s(l){let t,s;return{c(){t=w("span"),s=b(l[1]),this.h()},l(e){t=y(e,"SPAN",{class:!0});var n=N(t);s=k(n,l[1]),n.forEach(c),this.h()},h(){v(t,"class","regex svelte-17k1wqt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&2&&O(s,e[1])},d(e){e&&c(t)}}}function ps(l){let t,s=String(l[3])+"",e;return{c(){t=w("span"),e=b(s),this.h()},l(n){t=y(n,"SPAN",{class:!0});var r=N(t);e=k(r,s),r.forEach(c),this.h()},h(){v(t,"class","internal")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&8&&s!==(s=String(n[3])+"")&&O(e,s)},d(n){n&&c(t)}}}function ms(l){let t,s;return t=new M({props:{value:l[0][l[3]]}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&9&&(r.value=e[0][e[3]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function hs(l){let t,s;return t=new B({props:{keys:l[2],$$slots:{item_value:[ms,({key:e})=>({3:e}),({key:e})=>e?8:0],item_key:[ps,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[_s],summary:[cs]},$$scope:{ctx:l}}}),{c(){A(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&27&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}function $s(l,t,s){let e,{value:n}=t;const r=["lastIndex","dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"];return l.$$set=a=>{"value"in a&&s(0,n=a.value)},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=n.toString())},[n,e,r]}class ds extends L{constructor(t){super(),F(this,t,$s,hs,J,{value:0})}}function gs(l){let t,s,e;const n=[{value:l[0]},l[1]];var r=l[2];function a(i,o){let f={};for(let u=0;u{j(f,1)}),R()}r?(t=me(r,a(i,o)),A(t.$$.fragment),m(t.$$.fragment,1),E(t,s.parentNode,s)):t=null}else if(r){const f=o&3?$e(n,[o&1&&{value:i[0]},o&2&&de(i[1])]):{};t.$set(f)}},i(i){e||(t&&m(t.$$.fragment,i),e=!0)},o(i){t&&$(t.$$.fragment,i),e=!1},d(i){i&&c(s),t&&j(t,i)}}}function vs(l,t,s){let e,n,r,{value:a}=t;const i=ue();x(l,i,u=>s(4,r=u));const{shouldTreatIterableAsObject:o}=U();function f(u,_){switch(u){case"Object":return typeof _.subscribe=="function"?[ns]:[ce];case"Error":return[On];case"Array":return[qt];case"Map":return[mn];case"Iterable":case"Set":return[Zt,{nodeType:u}];case"Number":return[H,{nodeType:u}];case"String":return[Fn];case"Boolean":return[H,{nodeType:u,value:_?"true":"false"}];case"Date":return[H,{nodeType:u,value:_.toISOString()}];case"Null":return[H,{nodeType:u,value:"null"}];case"Undefined":return[H,{nodeType:u,value:"undefined"}];case"Function":case"AsyncFunction":case"AsyncGeneratorFunction":case"GeneratorFunction":return[Qn];case"Symbol":return[H,{nodeType:u,value:_.toString()}];case"BigInt":return[H,{nodeType:u,value:String(_)+"n"}];case"ArrayBuffer":return[H,{nodeType:u,value:`ArrayBuffer(${_.byteLength})`}];case"BigInt64Array":case"BigUint64Array":case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint8ClampedArray":case"Uint16Array":case"Uint32Array":return[us,{nodeType:u}];case"RegExp":return[ds];default:return[ce,{summary:u}]}}return l.$$set=u=>{"value"in u&&s(0,a=u.value)},l.$$.update=()=>{l.$$.dirty&1&&ee(i,r=Tn(a,o),r),l.$$.dirty&17&&s(2,[e,n]=f(r,a),e,(s(1,n),s(4,r),s(0,a)))},[a,n,e,i,r]}class M extends L{constructor(t){super(),F(this,t,vs,gs,J,{value:0})}}function ks({defaultExpandedPaths:l,defaultExpandedLevel:t}){const s=l.map(n=>n.split("."));function e(n){e:for(const r of s){if(n.length>r.length)continue;const a=Math.min(n.length,r.length);for(let i=0;ie(u),level:0,keyPath:[],showPreview:r,shouldTreatIterableAsObject:a}),l.$$set=u=>{"value"in u&&s(0,n=u.value),"shouldShowPreview"in u&&s(2,r=u.shouldShowPreview),"shouldTreatIterableAsObject"in u&&s(3,a=u.shouldTreatIterableAsObject),"defaultExpandedPaths"in u&&s(4,i=u.defaultExpandedPaths),"defaultExpandedLevel"in u&&s(5,o=u.defaultExpandedLevel)},l.$$.update=()=>{l.$$.dirty&48&&(e=ks({defaultExpandedPaths:i,defaultExpandedLevel:o}))},[n,f,r,a,i,o]}class Ss extends L{constructor(t){super(),F(this,t,ws,ys,J,{value:0,shouldShowPreview:2,shouldTreatIterableAsObject:3,defaultExpandedPaths:4,defaultExpandedLevel:5})}}function Ns(l){let t,s,e,n;return s=new Ss({props:{value:l[0],defaultExpandedLevel:l[2]}}),{c(){t=w("div"),e=w("div"),A(s.$$.fragment),this.h()},l(r){t=y(r,"DIV",{class:!0});var a=N(t);e=y(a,"DIV",{style:!0});var i=N(e);P(s.$$.fragment,i),a.forEach(c),this.h()},h(){z(e,"display","contents"),z(e,"--json-tree-font-size","16px"),z(e,"--json-tree-li-line-height","1.7"),z(e,"--json-tree-font-family","monospace"),z(e,"--json-tree-string-color","var(--color-text)"),z(e,"--json-tree-label-color","var(--color-interaction)"),z(e,"--json-tree-property-color","var(--color-interaction)"),z(e,"--json-tree-number-color","var(--color-text-secondary)"),z(e,"--json-tree-boolean-color","var(--color-text-secondary)"),v(t,"class","svelte-1ajfzk1"),Q(t,"showFullLines",l[1])},m(r,a){d(r,t,a),g(t,e),E(s,e,null),n=!0},p(r,[a]){const i={};a&1&&(i.value=r[0]),a&4&&(i.defaultExpandedLevel=r[2]),s.$set(i),(!n||a&2)&&Q(t,"showFullLines",r[1])},i(r){n||(m(s.$$.fragment,r),n=!0)},o(r){$(s.$$.fragment,r),n=!1},d(r){r&&c(t),j(s)}}}function js(l,t,s){let{value:e}=t,{showFullLines:n=!1}=t,{expandedLines:r=2}=t;return l.$$set=a=>{"value"in a&&s(0,e=a.value),"showFullLines"in a&&s(1,n=a.showFullLines),"expandedLines"in a&&s(2,r=a.expandedLines)},[e,n,r]}class Ts extends L{constructor(t){super(),F(this,t,js,Ns,J,{value:0,showFullLines:1,expandedLines:2})}}export{Ts as J}; diff --git a/gui/next/build/_app/immutable/chunks/user.CRviTK4n.js b/gui/next/build/_app/immutable/chunks/CNoDK8-a.js similarity index 82% rename from gui/next/build/_app/immutable/chunks/user.CRviTK4n.js rename to gui/next/build/_app/immutable/chunks/CNoDK8-a.js index f0f6c33e1..8ccecdfa2 100644 --- a/gui/next/build/_app/immutable/chunks/user.CRviTK4n.js +++ b/gui/next/build/_app/immutable/chunks/CNoDK8-a.js @@ -1,4 +1,4 @@ -import{g as n}from"./graphql.BD1m7lx9.js";import{b as s}from"./buildMutationIngredients.BkeFH9yg.js";const p={get:async(e={})=>{let r="",a="";e.value&&(e.attribute==="email"?r+=`${e.attribute}: { contains: "${e.value}" }`:r+=`${e.attribute}: { value: "${e.value}" }`,(e==null?void 0:e.attribute)==="id"&&(e!=null&&e.value)&&(a=` +import{g as n}from"./BD1m7lx9.js";import{b as s}from"./BkeFH9yg.js";const p={get:async(e={})=>{let r="",a="";e.value&&(e.attribute==="email"?r+=`${e.attribute}: { contains: "${e.value}" }`:r+=`${e.attribute}: { value: "${e.value}" }`,(e==null?void 0:e.attribute)==="id"&&(e!=null&&e.value)&&(a=` deleted_at created_at external_id diff --git a/gui/next/build/_app/immutable/chunks/CYamOUSl.js b/gui/next/build/_app/immutable/chunks/CYamOUSl.js new file mode 100644 index 000000000..bf355e013 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/CYamOUSl.js @@ -0,0 +1 @@ +import{S as x,i as $,s as ee,d as N,E as q,x as ae,o as z,p as F,a as J,z as u,T as M,U as y,F as W,b as ne,c as h,I as G,J as S,V,e as D,f as B,g as H,h as O,L as K,j as P,t as Q,k as R,M as X,W as te,P as Y,C as se}from"./n7YEDvJi.js";import"./IHki7fMi.js";import{I as Z}from"./DHO4ENnJ.js";function ie(n){let l,t,b,d,w,c,g,f,L,s,I,r,_,T,k,m,p,E,o,U,C;return c=new Z({props:{icon:n[6]==="navigation"?"arrowLeft":"minus"}}),m=new Z({props:{icon:n[6]==="navigation"?"arrowRight":"minus"}}),{c(){l=P("div"),t=P("button"),b=P("span"),d=Q(n[7]),w=R(),X(c.$$.fragment),L=R(),s=P("input"),I=R(),r=P("button"),_=P("span"),T=Q(n[8]),k=R(),X(m.$$.fragment),this.h()},l(e){l=D(e,"DIV",{class:!0});var i=B(l);t=D(i,"BUTTON",{form:!0,class:!0,"aria-hidden":!0,"data-action":!0});var a=B(t);b=D(a,"SPAN",{class:!0});var A=B(b);d=H(A,n[7]),A.forEach(N),w=O(a),K(c.$$.fragment,a),a.forEach(N),L=O(i),s=D(i,"INPUT",{form:!0,type:!0,name:!0,id:!0,min:!0,max:!0,step:!0,style:!0,class:!0}),I=O(i),r=D(i,"BUTTON",{form:!0,class:!0,"aria-hidden":!0,"data-action":!0});var v=B(r);_=D(v,"SPAN",{class:!0});var j=B(_);T=H(j,n[8]),j.forEach(N),k=O(v),K(m.$$.fragment,v),v.forEach(N),i.forEach(N),this.h()},h(){var e;u(b,"class","label"),u(t,"form",n[1]),u(t,"class","button svelte-142ypws"),t.disabled=g=n[0]<=n[3],u(t,"aria-hidden",f=n[0]<=n[3]),u(t,"data-action","numberDecrease"),u(s,"form",n[1]),u(s,"type","number"),u(s,"name",n[2]),u(s,"id",n[2]),u(s,"min",n[3]),u(s,"max",n[4]),u(s,"step",n[5]),s.autofocus=n[9],M(s,"--max",(((e=n[4])==null?void 0:e.toString().length)||1)+"ch"),u(s,"class","svelte-142ypws"),u(_,"class","label"),u(r,"form",n[1]),u(r,"class","button svelte-142ypws"),r.disabled=p=n[0]>=n[4],u(r,"aria-hidden",E=n[0]>=n[4]),u(r,"data-action","numberIncrease"),u(l,"class","number svelte-142ypws")},m(e,i){ne(e,l,i),h(l,t),h(t,b),h(b,d),h(t,w),G(c,t,null),h(l,L),h(l,s),W(s,n[0]),h(l,I),h(l,r),h(r,_),h(_,T),h(r,k),G(m,r,null),n[17](r),o=!0,n[9]&&s.focus(),U||(C=[S(t,"click",V(n[12])),S(s,"input",n[13]),S(s,"input",V(n[14])),S(s,"focusin",n[15]),S(s,"focusout",n[16]),S(r,"click",V(n[18]))],U=!0)},p(e,[i]){var v;(!o||i&128)&&J(d,e[7]);const a={};i&64&&(a.icon=e[6]==="navigation"?"arrowLeft":"minus"),c.$set(a),(!o||i&2)&&u(t,"form",e[1]),(!o||i&9&&g!==(g=e[0]<=e[3]))&&(t.disabled=g),(!o||i&9&&f!==(f=e[0]<=e[3]))&&u(t,"aria-hidden",f),(!o||i&2)&&u(s,"form",e[1]),(!o||i&4)&&u(s,"name",e[2]),(!o||i&4)&&u(s,"id",e[2]),(!o||i&8)&&u(s,"min",e[3]),(!o||i&16)&&u(s,"max",e[4]),(!o||i&32)&&u(s,"step",e[5]),(!o||i&512)&&(s.autofocus=e[9]),(!o||i&16)&&M(s,"--max",(((v=e[4])==null?void 0:v.toString().length)||1)+"ch"),i&1&&y(s.value)!==e[0]&&W(s,e[0]),(!o||i&256)&&J(T,e[8]);const A={};i&64&&(A.icon=e[6]==="navigation"?"arrowRight":"minus"),m.$set(A),(!o||i&2)&&u(r,"form",e[1]),(!o||i&17&&p!==(p=e[0]>=e[4]))&&(r.disabled=p),(!o||i&17&&E!==(E=e[0]>=e[4]))&&u(r,"aria-hidden",E)},i(e){o||(F(c.$$.fragment,e),F(m.$$.fragment,e),o=!0)},o(e){z(c.$$.fragment,e),z(m.$$.fragment,e),o=!1},d(e){e&&N(l),q(c),q(m),n[17](null),U=!1,ae(C)}}}function ue(n,l,t){let{form:b}=l,{name:d}=l,{min:w=1}=l,{max:c}=l,{step:g=1}=l,{value:f=""}=l,{style:L}=l,{decreaseLabel:s=`Decrease ${d} value`}=l,{increaseLabel:I=`Increase ${d} value`}=l,r=!1,_;const T=te();let k;function m(a){clearTimeout(k),k=setTimeout(()=>{a.submitter=_,T("input",a)},150)}const p=async a=>{t(0,f=parseInt(f)-1),await Y(),m(a)};function E(){f=y(this.value),t(0,f)}const o=a=>m(a),U=()=>t(9,r=!0),C=()=>t(9,r=!1);function e(a){se[a?"unshift":"push"](()=>{_=a,t(10,_)})}const i=async a=>{t(0,f=parseInt(f)+1),await Y(),m(a)};return n.$$set=a=>{"form"in a&&t(1,b=a.form),"name"in a&&t(2,d=a.name),"min"in a&&t(3,w=a.min),"max"in a&&t(4,c=a.max),"step"in a&&t(5,g=a.step),"value"in a&&t(0,f=a.value),"style"in a&&t(6,L=a.style),"decreaseLabel"in a&&t(7,s=a.decreaseLabel),"increaseLabel"in a&&t(8,I=a.increaseLabel)},[f,b,d,w,c,g,L,s,I,r,_,m,p,E,o,U,C,e,i]}class fe extends x{constructor(l){super(),$(this,l,ue,ie,ee,{form:1,name:2,min:3,max:4,step:5,value:0,style:6,decreaseLabel:7,increaseLabel:8})}}export{fe as N}; diff --git a/gui/next/build/_app/immutable/chunks/CqRAXfEk.js b/gui/next/build/_app/immutable/chunks/CqRAXfEk.js new file mode 100644 index 000000000..e6e29f9a3 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/CqRAXfEk.js @@ -0,0 +1 @@ +import{S as F,i as G,s as x,X as N,m as ee,d as p,E as X,x as te,o as W,Y as y,p as w,Q as R,R as B,H as J,u as se,q as le,r as ae,z as h,b as U,c as g,I as K,J as q,e as E,f as S,K as M,h as A,L as Q,j as z,k as H,M as V,l as ie,N as T,Z as ne,_ as re}from"./n7YEDvJi.js";import{g as oe}from"./D0QH3NT1.js";import"./IHki7fMi.js";import{q as fe}from"./iVSWiVfi.js";import{s as D}from"./Bp_ajb_u.js";import{I as Y}from"./DHO4ENnJ.js";const{window:Z}=oe;function $(o){let e,t,l,a=o[1]&&O(o),s=o[0]&&P(o);return{c(){e=z("header"),a&&a.c(),t=H(),s&&s.c(),this.h()},l(i){e=E(i,"HEADER",{class:!0});var n=S(e);a&&a.l(n),t=A(n),s&&s.l(n),n.forEach(p),this.h()},h(){h(e,"class","svelte-1lvj124")},m(i,n){U(i,e,n),a&&a.m(e,null),g(e,t),s&&s.m(e,null),l=!0},p(i,n){i[1]?a?a.p(i,n):(a=O(i),a.c(),a.m(e,t)):a&&(a.d(1),a=null),i[0]?s?(s.p(i,n),n&1&&w(s,1)):(s=P(i),s.c(),w(s,1),s.m(e,null)):s&&(B(),W(s,1,1,()=>{s=null}),J())},i(i){l||(w(s),l=!0)},o(i){W(s),l=!1},d(i){i&&p(e),a&&a.d(),s&&s.d()}}}function O(o){let e,t;return{c(){e=z("h2"),t=new re(!1),this.h()},l(l){e=E(l,"H2",{class:!0});var a=S(e);t=ne(a,!1),a.forEach(p),this.h()},h(){t.a=null,h(e,"class","svelte-1lvj124")},m(l,a){U(l,e,a),t.m(o[1],e)},p(l,a){a&2&&t.p(l[1])},d(l){l&&p(e)}}}function P(o){let e,t,l="Close details",a,s,i;return s=new Y({props:{icon:"x"}}),{c(){e=z("a"),t=z("span"),t.textContent=l,a=H(),V(s.$$.fragment),this.h()},l(n){e=E(n,"A",{href:!0,class:!0});var f=S(e);t=E(f,"SPAN",{class:!0,"data-svelte-h":!0}),M(t)!=="svelte-1gxyewl"&&(t.textContent=l),a=A(f),Q(s.$$.fragment,f),f.forEach(p),this.h()},h(){h(t,"class","label svelte-1lvj124"),h(e,"href",o[0]),h(e,"class","close svelte-1lvj124")},m(n,f){U(n,e,f),g(e,t),g(e,a),K(s,e,null),i=!0},p(n,f){(!i||f&1)&&h(e,"href",n[0])},i(n){i||(w(s.$$.fragment,n),i=!0)},o(n){W(s.$$.fragment,n),i=!1},d(n){n&&p(e),X(s)}}}function ue(o){let e,t,l,a="Drag to resize panel",s,i,n,f,b,k,v,_,j,I;N(o[10]),i=new Y({props:{icon:"resizeHorizontal",size:"7"}});let u=(o[1]||o[0])&&$(o);const c=o[9].default,d=ee(c,o,o[8],null);return{c(){e=z("aside"),t=z("button"),l=z("span"),l.textContent=a,s=H(),V(i.$$.fragment),n=H(),f=z("div"),u&&u.c(),b=H(),d&&d.c(),this.h()},l(r){e=E(r,"ASIDE",{style:!0,class:!0});var m=S(e);t=E(m,"BUTTON",{class:!0});var C=S(t);l=E(C,"SPAN",{class:!0,"data-svelte-h":!0}),M(l)!=="svelte-ruxerc"&&(l.textContent=a),s=A(C),Q(i.$$.fragment,C),C.forEach(p),n=A(m),f=E(m,"DIV",{class:!0});var L=S(f);u&&u.l(L),b=A(L),d&&d.l(L),L.forEach(p),m.forEach(p),this.h()},h(){h(l,"class","label svelte-1lvj124"),h(t,"class","resizer svelte-1lvj124"),R(t,"active",o[3]),h(f,"class","container svelte-1lvj124"),h(e,"style",k=o[4].asideWidth?`--width: ${o[4].asideWidth}`:""),h(e,"class","svelte-1lvj124")},m(r,m){U(r,e,m),g(e,t),g(t,l),g(t,s),K(i,t,null),g(e,n),g(e,f),u&&u.m(f,null),g(f,b),d&&d.m(f,null),_=!0,j||(I=[q(Z,"resize",o[10]),q(t,"mousedown",o[6]),q(t,"click",o[7])],j=!0)},p(r,[m]){(!_||m&8)&&R(t,"active",r[3]),r[1]||r[0]?u?(u.p(r,m),m&3&&w(u,1)):(u=$(r),u.c(),w(u,1),u.m(f,b)):u&&(B(),W(u,1,1,()=>{u=null}),J()),d&&d.p&&(!_||m&256)&&se(d,c,r,r[8],_?ae(c,r[8],m,null):le(r[8]),null),(!_||m&16&&k!==(k=r[4].asideWidth?`--width: ${r[4].asideWidth}`:""))&&h(e,"style",k)},i(r){_||(w(i.$$.fragment,r),w(u),w(d,r),r&&N(()=>{_&&(v||(v=y(e,o[5],{},!0)),v.run(1))}),_=!0)},o(r){W(i.$$.fragment,r),W(u),W(d,r),r&&(v||(v=y(e,o[5],{},!1)),v.run(0)),_=!1},d(r){r&&p(e),X(i),u&&u.d(),d&&d.d(r),r&&v&&v.end(),j=!1,te(I)}}}function ce(o,e,t){let l;ie(o,D,c=>t(4,l=c));let{$$slots:a={},$$scope:s}=e,{closeUrl:i}=e,{title:n=""}=e,f,b=!1;const k=function(c,{delay:d=0,duration:r=300}){return{delay:d,duration:r,css:m=>{const C=fe(m);return`min-width: 0; width: calc(${l.asideWidth||"30vw"} * ${C});`}}},v=()=>{window.addEventListener("mousemove",j,!1),window.addEventListener("mouseup",_,!1),t(3,b=!0)},_=()=>{window.removeEventListener("mousemove",j,!1),window.removeEventListener("mouseup",_,!1),t(3,b=!1),localStorage.asideWidth=l.asideWidth},j=c=>{T(D,l.asideWidth=f-c.clientX-6+"px",l)},I=c=>{c.detail===2&&(T(D,l.asideWidth=!1,l),localStorage.removeItem("asideWidth"))};function u(){t(2,f=Z.outerWidth)}return o.$$set=c=>{"closeUrl"in c&&t(0,i=c.closeUrl),"title"in c&&t(1,n=c.title),"$$scope"in c&&t(8,s=c.$$scope)},[i,n,f,b,l,k,v,I,s,a,u]}class ge extends F{constructor(e){super(),G(this,e,ce,ue,x,{closeUrl:0,title:1})}}export{ge as A}; diff --git a/gui/next/build/_app/immutable/chunks/globals.D0QH3NT1.js b/gui/next/build/_app/immutable/chunks/D0QH3NT1.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/globals.D0QH3NT1.js rename to gui/next/build/_app/immutable/chunks/D0QH3NT1.js diff --git a/gui/next/build/_app/immutable/chunks/DHO4ENnJ.js b/gui/next/build/_app/immutable/chunks/DHO4ENnJ.js new file mode 100644 index 000000000..b640bdeb7 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/DHO4ENnJ.js @@ -0,0 +1 @@ +import{S as V,i as L,s as C,n as M,d as e,b as o,y as i,z as v,c as f,A as t,f as H,B as n}from"./n7YEDvJi.js";import"./IHki7fMi.js";function r(s){let h,c;return{c(){h=n("svg"),c=n("path"),this.h()},l(a){h=t(a,"svg",{width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var l=H(h);c=t(l,"path",{d:!0}),H(c).forEach(e),l.forEach(e),this.h()},h(){v(c,"d",s[2]),v(h,"width",s[1]),v(h,"height",s[1]),v(h,"viewBox","0 0 24 24"),v(h,"fill","currentColor"),v(h,"xmlns","http://www.w3.org/2000/svg")},m(a,l){o(a,h,l),f(h,c)},p(a,l){l&4&&v(c,"d",a[2]),l&2&&v(h,"width",a[1]),l&2&&v(h,"height",a[1])},d(a){a&&e(h)}}}function d(s){let h,c=s[0]&&r(s);return{c(){c&&c.c(),h=i()},l(a){c&&c.l(a),h=i()},m(a,l){c&&c.m(a,l),o(a,h,l)},p(a,[l]){a[0]?c?c.p(a,l):(c=r(a),c.c(),c.m(h.parentNode,h)):c&&(c.d(1),c=null)},i:M,o:M,d(a){a&&e(h),c&&c.d(a)}}}function A(s,h,c){let a,{icon:l=!1}=h,{size:m=24}=h;const Z={database:"M12 24c-6.841 0-12-2.257-12-5.25V5.251C0 2.258 5.159.001 12 .001s12 2.257 12 5.25V18.75C24 21.743 18.841 24 12 24zM1.5 18.75c0 1.533 3.739 3.75 10.5 3.75s10.5-2.217 10.5-3.75v-4.137c-2.053 1.622-6.023 2.637-10.5 2.637s-8.446-1.016-10.5-2.637v4.137zm0-6.75c0 1.533 3.739 3.75 10.5 3.75S22.5 13.533 22.5 12V7.863C20.446 9.485 16.477 10.5 12 10.5S3.554 9.485 1.5 7.863V12zM12 1.501c-6.761 0-10.5 2.217-10.5 3.75s3.739 3.75 10.5 3.75 10.5-2.217 10.5-3.75-3.739-3.75-10.5-3.75z",users:"M4.5 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3Zm0-4.5C3.67 4.5 3 5.17 3 6s.67 1.5 1.5 1.5S6 6.83 6 6s-.67-1.5-1.5-1.5ZM3 22.5c-.38 0-.7-.28-.74-.66l-.67-5.34H.75c-.41 0-.75-.34-.75-.75V13.5C0 11.02 2.02 9 4.5 9c.41 0 .75.34.75.75s-.34.75-.75.75c-1.65 0-3 1.35-3 3V15h.75c.38 0 .7.28.74.66L3.66 21H6c.41 0 .75.34.75.75s-.34.75-.75.75H3ZM19.5 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3Zm0-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5S21 6.83 21 6s-.67-1.5-1.5-1.5Zm-1.5 18c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.34l.67-5.34c.05-.38.37-.66.74-.66h.75v-1.5c0-1.65-1.35-3-3-3-.41 0-.75-.34-.75-.75s.34-.75.75-.75c2.48 0 4.5 2.02 4.5 4.5v2.25c0 .41-.34.75-.75.75h-.84l-.67 5.34c-.05.38-.37.66-.74.66h-3Zm-6-15c-2.07 0-3.75-1.68-3.75-3.75S9.93 0 12 0s3.75 1.68 3.75 3.75S14.07 7.5 12 7.5Zm0-6c-1.24 0-2.25 1.01-2.25 2.25S10.76 6 12 6s2.25-1.01 2.25-2.25S13.24 1.5 12 1.5ZM9.75 24a.75.75 0 0 1-.75-.67l-.68-6.83H6.75c-.41 0-.75-.34-.75-.75V13.5c0-3.31 2.69-6 6-6s6 2.69 6 6v2.25c0 .41-.34.75-.75.75h-1.57L15 23.33a.75.75 0 0 1-.75.67h-4.5Zm3.82-1.5.68-6.82c.04-.38.36-.68.75-.68h1.5v-1.5c0-2.48-2.02-4.5-4.5-4.5s-4.5 2.02-4.5 4.5V15H9c.39 0 .71.29.75.68l.68 6.82h3.14Z",log:"m5.25,24c-1.24,0-2.25-1.01-2.25-2.25v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0,.41.34.75.75.75h13.5c.41,0,.75-.34.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0,1.24-1.01,2.25-2.25,2.25H5.25Zm15-10.5c-.41,0-.75-.34-.75-.75v-7.5c0-.41-.34-.75-.75-.75h-2.25v1.5c0,.83-.67,1.5-1.5,1.5h-6c-.83,0-1.5-.67-1.5-1.5v-1.5h-2.25c-.41,0-.75.34-.75.75v7.5c0,.41-.34.75-.75.75s-.75-.34-.75-.75v-7.5c0-1.24,1.01-2.25,2.25-2.25h2.25c0-.83.67-1.5,1.5-1.5h.31c.52-.92,1.5-1.5,2.56-1.5.04,0,.08,0,.12,0,.04,0,.09,0,.13,0,1.07,0,2.05.58,2.56,1.5h.31c.83,0,1.5.67,1.5,1.5h2.25c1.24,0,2.25,1.01,2.25,2.25v7.5c0,.41-.34.75-.75.75Zm-11.25-7.5h6v-3h-.8c-.32,0-.61-.21-.71-.51-.19-.59-.74-.99-1.37-.99-.03,0-.05,0-.08,0,0,0-.04,0-.04,0-.01,0-.09,0-.11,0-.62,0-1.18.4-1.37.99-.1.31-.39.52-.71.52h-.8v3Zm3.04,13.63c-.17,0-.34-.04-.49-.11-.27-.13-.47-.36-.57-.65l-2.08-5.73-1.37,2.73c-.19.38-.58.62-1.01.62H.75c-.41,0-.75-.34-.75-.75s.34-.75.75-.75h5.54l1.65-3.31c.13-.27.37-.47.65-.56.12-.04.24-.06.36-.06.17,0,.35.04.5.12.26.13.46.35.56.62l2.07,5.69,1.93-4.33c.18-.41.59-.67,1.03-.67.16,0,.31.03.46.1.24.11.43.29.55.52l.94,1.88h6.28c.41,0,.75.34.75.75s-.34.75-.75.75h-6.51c-.43,0-.81-.24-1.01-.62l-.69-1.37-1.98,4.45c-.12.28-.36.51-.67.61-.12.04-.24.06-.36.06Z",logFresh:"M5.25 24C4.01 24 3 22.99 3 21.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41.34.75.75.75h13.5c.41 0 .75-.34.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 1.24-1.01 2.25-2.25 2.25H5.25Zm15-10.5c-.41 0-.75-.34-.75-.75v-7.5c0-.41-.34-.75-.75-.75H16.5V6c0 .83-.67 1.5-1.5 1.5H9c-.83 0-1.5-.67-1.5-1.5V4.5H5.25c-.41 0-.75.34-.75.75v7.5c0 .41-.34.75-.75.75S3 13.16 3 12.75v-7.5C3 4.01 4.01 3 5.25 3H7.5c0-.83.67-1.5 1.5-1.5h.31C9.83.58 10.81 0 11.88 0h.25c1.06 0 2.04.58 2.56 1.5H15c.83 0 1.5.67 1.5 1.5h2.25C19.99 3 21 4.01 21 5.25v7.5c0 .41-.34.75-.75.75ZM9 6h6V3h-.8c-.32 0-.61-.21-.71-.51-.19-.59-.74-.99-1.37-.99H11.89c-.62 0-1.18.4-1.37.99a.75.75 0 0 1-.71.52h-.8v3ZM7.14 20.55c-.1 0-.19-.02-.28-.06-.19-.08-.33-.22-.41-.4s-.08-.39 0-.57c.37-.9.8-1.72 1.27-2.42-.78-1.12-1.09-2.25-.92-3.27.19-1.07.9-1.99 2.06-2.65 1.41-.74 2.99-1.12 4.58-1.12s3.04.36 4.39 1.03c.2.1.35.28.4.51s0 .45-.14.63c-.41.52-.69 1.48-1 2.49-.68 2.26-1.61 5.36-4.93 5.66-.1 0-.2.01-.29.01-1.55 0-2.64-1.12-3.23-1.94-.29.5-.56 1.05-.81 1.65-.12.28-.39.47-.7.47Zm2.43-3.43c.26.44 1.11 1.76 2.3 1.76h.15c2.31-.21 2.95-2.34 3.62-4.6.24-.79.46-1.53.76-2.17-.95-.36-1.95-.55-2.98-.55-1.34 0-2.68.33-3.86.94-.75.43-1.19.96-1.3 1.59-.09.52.06 1.12.42 1.76 1.48-1.59 2.82-1.8 2.97-1.82h.09c.38 0 .7.28.75.66.05.41-.24.78-.65.84s-.55.09-1.29.65c-.34.26-.68.58-1 .95Z",backgroundJob:"M23.6 7.3v.3c0 .1-.1.2-.2.3l-3 3c-.2.1-.4.1-.6.1-.2 0-.4-.1-.5-.2-.1-.1-.2-.3-.2-.5s.1-.4.2-.5L21 8H1.2c-.4 0-.8-.4-.8-.8s.3-.9.8-.9H21l-1.7-1.5c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3 3c.1.1.1.2.2.2.1.1.1.2.1.3zM4 10.4c-.4 0-.7.3-.7.7-.1 1.1 0 2.2.3 3.3 0 .4.3.6.7.6h.2c.4-.1.6-.5.5-.9-.2-.9-.3-1.9-.2-2.8 0-.5-.3-.8-.8-.9.1 0 0 0 0 0zm2.6 5.3c-.3 0-.6.2-.7.6-.1.4.2.8.6.9.8.2 1.6.3 2.4.3h.9c.4 0 .7-.4.7-.8s-.4-.7-.7-.7H9c-.7 0-1.4-.1-2.1-.2-.2-.1-.2-.1-.3-.1zm9.8-2.7c-.2 0-.4.1-.5.2-.1.1-.2.3-.2.5s.1.4.2.5l1.7 1.7h-3.4c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h3.4l-1.7 1.7c-.1.1-.2.3-.2.5s.1.4.2.5c.1.1.3.2.5.2s.4-.1.5-.2l3-3c.1-.1.1-.2.2-.2v-.6c0-.1-.1-.2-.2-.3l-3-3c-.2-.1-.3-.1-.5-.1z",constant:"M3 24C1.76 24 .75 22.99.75 21.75V2.25C.75 1.01 1.76 0 3 0h15.05c.59 0 1.15.23 1.57.64l2.95 2.88c.43.42.68 1.01.68 1.61v16.62c0 1.24-1.01 2.25-2.25 2.25H3ZM3 1.5c-.41 0-.75.34-.75.75v19.5c0 .41.34.75.75.75h18c.41 0 .75-.34.75-.75V5.14c0-.2-.08-.4-.23-.54l-2.95-2.88a.734.734 0 0 0-.52-.21H3Zm6.65 16.56c-1.12 0-2.06-.87-2.15-1.99v-1.31c0-.16-.11-.33-.27-.41l-1.61-.92c-.23-.13-.38-.38-.38-.65s.14-.52.38-.65l1.58-.91c.18-.1.29-.26.29-.45V9.48a2.173 2.173 0 0 1 2.15-1.99h.85a.749.749 0 1 1 0 1.5h-.85a.65.65 0 0 0-.65.58v1.21c-.02.74-.43 1.4-1.07 1.74l-.43.25.45.26c.62.33 1.02.98 1.04 1.7v1.23c.04.33.32.58.66.58h.84c.41 0 .75.34.75.75s-.34.75-.75.75h-.85Zm4.69 0h-.85c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H14.34c.34 0 .62-.25.66-.58v-1.21c.02-.74.43-1.4 1.07-1.74l.43-.25-.45-.26c-.62-.33-1.02-.98-1.04-1.71V9.58a.658.658 0 0 0-.65-.58h-.85c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h.85c1.12 0 2.06.87 2.15 1.99v1.31c0 .16.11.33.27.41l1.6.92c.23.13.38.38.38.65s-.14.52-.38.65l-1.58.91c-.18.1-.29.26-.29.45v1.29a2.165 2.165 0 0 1-2.15 1.99Z",graphql:"M21 14.9V9.1c.9-.2 1.6-1.1 1.6-2.1 0-1.2-1-2.1-2.1-2.1-.6 0-1.2.3-1.5.7l-5-2.9c.1-.2.1-.4.1-.6C14.1 1 13.2 0 12 0S9.9 1 9.9 2.1c0 .2 0 .4.1.6L5 5.6c-.4-.4-.9-.7-1.5-.7-1.2 0-2.1 1-2.1 2.1 0 1 .7 1.8 1.6 2.1v5.7c-.9.2-1.6 1.1-1.6 2.1 0 1.2 1 2.1 2.1 2.1.6 0 1.2-.3 1.5-.7l5 2.9c-.1.2-.1.4-.1.6 0 1.2 1 2.1 2.1 2.1s2.1-1 2.1-2.1c0-.2 0-.4-.1-.6l5-2.9c.4.4.9.7 1.5.7 1.2 0 2.1-1 2.1-2.1.1-1-.6-1.8-1.6-2zm-17 0V9.1C4.9 8.9 5.6 8 5.6 7c0-.2 0-.4-.1-.6l5-2.9.1.1L4 14.9zm9.5 5.5c-.4-.4-.9-.7-1.5-.7s-1.2.3-1.5.7l-5-2.9v-.1h12.9v.1l-4.9 2.9zm5-4h-13c-.1-.4-.3-.8-.6-1l6.5-11.2c.2.1.4.1.6.1s.4 0 .6-.1l6.5 11.2c-.3.3-.5.6-.6 1zm1.5-1.5L13.5 3.7l.1-.1 5 2.9c-.1.2-.1.4-.1.6 0 1 .7 1.8 1.6 2.1v5.7z",liquid:"M12 24c-2.3 0-4.4-.9-6.1-2.5-1.7-1.6-2.6-3.8-2.6-6.1v-.3C3.3 8.6 9.7 0 12 0c2.3 0 8.7 8.6 8.7 15.1.1 4.8-3.8 8.8-8.6 8.9H12zm0-22.3C10.5 3 4.8 10 4.8 15.1v.2c.1 3.4 3.8 7.1 7.2 7.1h.1c3.4-.1 7.2-3.9 7.1-7.3C19.2 10 13.5 3 12 1.7zm-1 18.2c-2.1 0-3.8-1.7-3.8-3.8 0-.7.3-1.2.9-1.2s.7.7.7 1.4 1.1 1.8 1.8 1.8 1.1.4 1.1.8c.1.7 0 1-.7 1z",arrowRight:"M12.75 23.25a.752.752 0 0 1-.53-1.281l9.22-9.22H.75a.749.749 0 1 1 0-1.499h20.689l-9.22-9.22A.746.746 0 0 1 12.22.97c.141-.142.33-.22.53-.22s.389.078.53.22l10.5 10.5a.74.74 0 0 1 .163.245l.01.026a.73.73 0 0 1 0 .517l-.006.016a.755.755 0 0 1-.168.257L13.28 23.03a.743.743 0 0 1-.53.22z",arrowLeft:"M11.25 23.25a.743.743 0 0 1-.53-.22L.22 12.53a.74.74 0 0 1-.163-.245l-.01-.026a.75.75 0 0 1 .009-.541.74.74 0 0 1 .166-.249L10.72.97a.744.744 0 0 1 1.06 0c.142.141.22.33.22.53s-.078.389-.22.53l-9.22 9.22h20.69a.75.75 0 0 1 0 1.5H2.561l9.22 9.22a.75.75 0 0 1-.531 1.28z",arrowDown:"M12 18.999c-.4 0-.776-.156-1.059-.438L.22 7.841A.745.745 0 0 1 0 7.31c0-.2.078-.389.22-.53a.744.744 0 0 1 1.06 0L12 17.499 22.72 6.78a.744.744 0 0 1 1.06 0 .744.744 0 0 1 0 1.06L13.06 18.56a1.487 1.487 0 0 1-1.06.439z",arrowTripleUp:"M19 10.3c-.4 0-.8-.1-1.1-.3l-6.1-3.9L5.7 10c-.3.2-.7.3-1.1.3-.4 0-.7 0-1-.2-.5-.3-.8-.7-.8-1.3V6.4c0-.8.4-1.4 1.1-1.8L10.7.3c.3-.2.7-.3 1.1-.3s.7.1 1.1.3l6.9 4.4c.6.3 1 1 1 1.7v2.4c0 .5-.3 1-.8 1.3-.3.2-.6.2-1 .2ZM4.3 8.8h.6l6.5-4.2c.1 0 .3-.1.4-.1s.3 0 .4.1l6.5 4.2h.6V6.5c0-.2-.1-.4-.3-.5l-7-4.4h-.6L4.6 6c-.2.1-.3.3-.4.5v2.3Zm14.7 10c-.4 0-.8-.1-1.1-.3l-6.1-3.9-6.1 3.9c-.3.2-.7.3-1.1.3s-.7 0-1-.2c-.5-.3-.8-.7-.8-1.3v-1.8c0-.8.4-1.4 1.1-1.8l6.8-4.3c.3-.2.7-.3 1.1-.3s.7.1 1.1.3l6.9 4.4c.6.3 1 1 1 1.7v1.8c0 .5-.3 1-.8 1.2-.3.2-.6.3-1 .3Zm-7.2-5.9c.1 0 .3 0 .4.1l6.5 4.2h.6v-1.7c0-.2-.1-.4-.3-.5l-6.9-4.4h-.6L4.7 15c-.2.1-.3.3-.4.5v1.7h.6l6.5-4.2c.1 0 .3-.1.4-.1ZM4.2 24c-.2 0-.5-.1-.6-.3-.1-.2-.2-.4-.1-.6s.1-.4.3-.5l7.5-5.2c.1 0 .3-.1.4-.1s.3 0 .4.1l7.5 5.2c.2.1.3.3.3.5s0 .4-.1.6c-.1.2-.4.3-.6.3s-.3 0-.4-.1L11.7 19l-7.1 4.9c-.1 0-.3.1-.4.1Z",search:"M23.245 23.996a.743.743 0 0 1-.53-.22L16.2 17.26a9.824 9.824 0 0 1-2.553 1.579 9.766 9.766 0 0 1-7.51.069 9.745 9.745 0 0 1-5.359-5.262c-1.025-2.412-1.05-5.08-.069-7.51S3.558 1.802 5.97.777a9.744 9.744 0 0 1 7.51-.069 9.745 9.745 0 0 1 5.359 5.262 9.748 9.748 0 0 1 .069 7.51 9.807 9.807 0 0 1-1.649 2.718l6.517 6.518a.75.75 0 0 1-.531 1.28zM9.807 1.49a8.259 8.259 0 0 0-3.25.667 8.26 8.26 0 0 0-4.458 4.54 8.26 8.26 0 0 0 .058 6.362 8.26 8.26 0 0 0 4.54 4.458 8.259 8.259 0 0 0 6.362-.059 8.285 8.285 0 0 0 2.594-1.736.365.365 0 0 1 .077-.076 8.245 8.245 0 0 0 1.786-2.728 8.255 8.255 0 0 0-.059-6.362 8.257 8.257 0 0 0-4.54-4.458 8.28 8.28 0 0 0-3.11-.608z",x:"M19.5 20.25a.743.743 0 0 1-.53-.22L12 13.061l-6.97 6.97a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061L10.94 12 3.97 5.03c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22L12 10.94l6.97-6.97a.744.744 0 0 1 1.06 0c.142.141.22.33.22.53s-.078.389-.22.53L13.061 12l6.97 6.97a.75.75 0 0 1-.531 1.28z",plus:"M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z",minus:"M.8 12.8c-.5 0-.8-.4-.8-.8s.3-.8.8-.8h22.5c.4 0 .8.3.8.8s-.3.8-.8.8H.8z",check:"M6.347 24.003a2.95 2.95 0 0 1-2.36-1.187L.15 17.7a.748.748 0 0 1 .6-1.2c.235 0 .459.112.6.3l3.839 5.118a1.442 1.442 0 0 0 1.42.562c.381-.068.712-.281.933-.599L22.636.32a.748.748 0 1 1 1.228.86L8.772 22.739a2.93 2.93 0 0 1-1.9 1.217c-.173.031-.35.047-.525.047z",list:"M8.25 4.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM8.25 13.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM8.25 22.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM1.5 5.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-.673 1.5-1.5 1.5h-3zm0-1.5h3v-3h-3v3zM1.5 14.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-4.5 1.5-4.5 1.5zm0-1.5h3v-3h-3v3zM1.5 23.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-.673 1.5-1.5 1.5h-3zm0-1.5h3v-3h-3v3z",tiles:"M2.25 10.497A2.252 2.252 0 0 1 0 8.247v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM2.25 23.997A2.252 2.252 0 0 1 0 21.747v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM15.75 10.497a2.252 2.252 0 0 1-2.25-2.25v-6a2.252 2.252 0 0 1 2.25-2.25h6A2.252 2.252 0 0 1 24 2.247v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM15.75 23.997a2.252 2.252 0 0 1-2.25-2.25v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6z",pencil:"M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275-1.129 4.406zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344l4.077 4.07zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762l4.071 4.07z",expand:"M23.25 7.498a.75.75 0 0 1-.75-.75V2.559l-3.97 3.97a.746.746 0 0 1-1.06-.001c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l3.97-3.97h-4.19a.75.75 0 0 1 0-1.5h6a.735.735 0 0 1 .293.06.75.75 0 0 1 .4.404l.01.026c.03.082.047.17.047.26v6a.75.75 0 0 1-.75.75zM.75 23.998a.755.755 0 0 1-.26-.047l-.022-.008A.754.754 0 0 1 0 23.248v-6a.75.75 0 0 1 1.5 0v4.189l3.97-3.97a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3.97 3.97h4.19a.75.75 0 0 1 0 1.5h-6zM.75 7.498a.75.75 0 0 1-.75-.75v-6A.74.74 0 0 1 .048.487L.055.466a.754.754 0 0 1 .41-.411L.49.045a.737.737 0 0 1 .26-.047h6a.75.75 0 0 1 0 1.5H2.561l3.97 3.97c.142.141.22.33.22.53s-.078.389-.22.53a.747.747 0 0 1-1.061 0L1.5 2.559v4.189a.75.75 0 0 1-.75.75zM17.25 23.998a.75.75 0 0 1 0-1.5h4.189l-3.97-3.97a.752.752 0 0 1 .53-1.281c.2 0 .389.078.53.22l3.97 3.97v-4.189a.75.75 0 0 1 1.501 0v6a.767.767 0 0 1-.046.258l-.006.017a.763.763 0 0 1-.412.419l-.026.01a.73.73 0 0 1-.259.047H17.25zM9 16.498c-.827 0-1.5-.673-1.5-1.5v-6c0-.827.673-1.5 1.5-1.5h6c.827 0 1.5.673 1.5 1.5v6c0 .827-.673 1.5-1.5 1.5H9zm0-1.5h6v-6H9v6z",collapse:"M17.25 7.498a.735.735 0 0 1-.261-.048l-.032-.012a.75.75 0 0 1-.4-.404l-.01-.026a.739.739 0 0 1-.047-.26v-6a.75.75 0 0 1 1.5 0v4.189l4.72-4.72a.744.744 0 0 1 1.06 0 .747.747 0 0 1 0 1.061l-4.72 4.72h4.189a.75.75 0 0 1 0 1.5H17.25zM6.75 23.998a.75.75 0 0 1-.75-.75v-4.189l-4.72 4.72a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061l4.72-4.72H.75a.75.75 0 0 1 0-1.5h6c.088 0 .175.016.26.047l.022.008a.756.756 0 0 1 .468.695v6a.75.75 0 0 1-.75.75zM23.25 23.998a.743.743 0 0 1-.53-.22L18 19.059v4.189a.75.75 0 0 1-1.5 0v-6c0-.087.016-.174.046-.258l.006-.017a.763.763 0 0 1 .412-.419l.026-.01a.733.733 0 0 1 .259-.047h6a.75.75 0 0 1 0 1.5H19.06l4.72 4.72a.752.752 0 0 1-.53 1.281zM.75 7.498a.75.75 0 0 1 0-1.5h4.189l-4.72-4.72A.746.746 0 0 1 .22.218c.141-.142.33-.22.53-.22s.389.078.53.22L6 4.938V.748a.75.75 0 0 1 1.5 0v6a.735.735 0 0 1-.048.261l-.007.021a.76.76 0 0 1-.695.468h-6zM9 16.498c-.827 0-1.5-.673-1.5-1.5v-6c0-.827.673-1.5 1.5-1.5h6c.827 0 1.5.673 1.5 1.5v6c0 .827-.673 1.5-1.5 1.5H9zm0-1.5h6v-6H9v6z",eye:"M11.8 19.5c-4.3 0-8.6-3-11.2-5.9-.8-.9-.8-2.3 0-3.2 2.6-2.8 6.9-5.9 11.2-5.9h.4c4.3 0 8.6 3 11.2 5.9.8.9.8 2.3 0 3.2-2.6 2.8-6.9 5.9-11.2 5.9h-.4zM11.9 6C8 6 4.1 8.8 1.7 11.4c-.3.3-.3.9 0 1.2C4.1 15.2 8 18 11.9 18h.2c3.9 0 7.8-2.8 10.1-5.4.3-.3.3-.9 0-1.2C19.9 8.8 16 6 12.1 6h-.2zm.1 10.5c-1.2 0-2.3-.5-3.2-1.3s-1.3-2-1.3-3.2c0-2.5 2-4.5 4.5-4.5 1.2 0 2.3.5 3.2 1.3.8.9 1.3 2 1.3 3.2 0 1.2-.5 2.3-1.3 3.2-.9.8-2 1.3-3.2 1.3zM12 9c-1.7 0-3 1.3-3 3 0 .8.3 1.6.9 2.1.6.6 1.3.9 2.1.9s1.6-.3 2.1-.9.9-1.3.9-2.1-.3-1.6-.9-2.1c-.5-.6-1.3-.9-2.1-.9z",eyeStriked:"M2.8 21.8c-.2 0-.4-.1-.5-.2-.2-.2-.3-.4-.3-.6 0-.2.1-.4.2-.5L21 2.5c.1-.1.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-18.8 18c0 .2-.2.3-.4.3zm9.2-1.6h-.1c-1 0-2.1-.2-3.1-.5-.4-.1-.6-.5-.5-.9.1-.3.4-.5.7-.5h.2c.9.3 1.8.4 2.7.4h.2c3.9 0 7.8-2.8 10.1-5.4.3-.3.3-.9 0-1.2-.9-1-1.9-1.9-3-2.7-.1 0-.2-.2-.2-.4s0-.4.1-.6c.1-.2.4-.3.6-.3.2 0 .3.1.4.1 1.2.8 2.2 1.8 3.2 2.9.8.9.8 2.3 0 3.2-2.6 2.8-6.9 5.9-11.2 5.9H12zM3.8 17c-.2 0-.3-.1-.5-.2-1-.7-1.9-1.6-2.7-2.5-.8-.9-.8-2.3 0-3.2 2.6-2.8 6.9-5.9 11.2-5.9h.2c.8 0 1.7.1 2.5.3.4.1.6.5.5.9.1.4-.2.6-.6.6h-.2c-.7-.2-1.4-.3-2.1-.3h-.2C8 6.8 4.1 9.5 1.7 12.1c-.3.3-.3.9 0 1.2.8.8 1.6 1.6 2.5 2.3.2.1.3.3.3.5s0 .4-.2.6c-.1.2-.3.3-.5.3zm4.4-3.5c-.4 0-.8-.3-.8-.8 0-1.2.5-2.3 1.3-3.2s2-1.3 3.2-1.3c.2 0 .4.2.4.4v.8c0 .1 0 .2-.1.3s-.1.1-.2.1c-.8 0-1.6.3-2.1.9-.6.5-.9 1.2-.9 2.1 0 .2-.1.4-.2.5-.2.1-.4.2-.6.2zm3.8 3.7c-.2 0-.4-.2-.4-.4V16c0-.1 0-.2.1-.3.1-.1.2-.1.3-.1.8 0 1.6-.3 2.1-.9.6-.6.9-1.3.9-2.1 0-.4.3-.8.8-.8s.8.3.8.8c0 1.2-.5 2.3-1.3 3.2-1 1-2.1 1.4-3.3 1.4z",book:"M12 23.999a.755.755 0 0 1-.548-.238c-.017-.017-2.491-2.398-10.212-2.494A1.26 1.26 0 0 1 0 20.025V4.249c0-.334.137-.659.375-.892.242-.232.557-.358.89-.358 5.718.073 8.778 1.302 10.258 2.199a6.773 6.773 0 0 1 1.572-2.664A8.513 8.513 0 0 1 17.071.055a1.346 1.346 0 0 1 1.1.153c.353.218.57.6.579 1.02v2.053A31.709 31.709 0 0 1 22.727 3 1.259 1.259 0 0 1 24 4.245v15.772a1.265 1.265 0 0 1-1.243 1.25c-7.724.096-10.193 2.478-10.217 2.502l-.031.03a.742.742 0 0 1-.509.2zM1.5 19.771c5.263.097 8.233 1.194 9.75 2.037V6.826c-.72-.546-3.417-2.201-9.75-2.323v15.268zm17.25-2.926a.751.751 0 0 1-.598.734 7.44 7.44 0 0 0-3.967 2.238 5.3 5.3 0 0 0-1.15 1.838c1.58-.81 4.502-1.794 9.464-1.885V4.502a30.64 30.64 0 0 0-3.75.292v12.051zm-6 2.334c.11-.135.225-.266.345-.39a8.92 8.92 0 0 1 4.155-2.533V1.569a7.055 7.055 0 0 0-3.057 1.986 5.343 5.343 0 0 0-1.443 2.997v12.627z",serverSettings:"M5.3 4.1c.6 0 1.1.5 1.1 1.1s-.5 1.2-1.1 1.2-1.2-.5-1.2-1.1.5-1.2 1.2-1.2zm0 9c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1-1.1-.5-1.1-1.1.4-1.1 1.1-1.1zm0 6.4c-2.9 0-5.2-2.4-5.2-5.2 0-1.9 1-3.6 2.5-4.5C1 8.8 0 7.1 0 5.3 0 2.4 2.4 0 5.3 0h12c1.4 0 2.7.5 3.7 1.5s1.5 2.3 1.5 3.7c0 1.3-.5 2.5-1.3 3.5-.1.2-.3.3-.6.3-.2 0-.4-.1-.5-.2-.2-.1-.2-.3-.3-.5s.1-.4.2-.5c.7-.8 1-1.6 1-2.6s-.4-1.9-1.1-2.7c-.7-.7-1.6-1.1-2.7-1.1h-12c-2.1 0-3.8 1.7-3.8 3.8S3.2 9 5.3 9h7.4c.4 0 .8.3.8.8s-.3.8-.8.8H5.3c-2.1 0-3.8 1.7-3.8 3.8S3.2 18 5.3 18h3c.4 0 .7.3.7.8s-.3.8-.8.8l-2.9-.1zM10.5 6c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6.7c.4 0 .8.3.8.8s-.3.8-.7.8h-6.8zm6.8 12.8c-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2 2.2 1 2.2 2.2-1 2.2-2.2 2.2zm0-3c-.4 0-.8.3-.8.7s.3.8.8.8.8-.3.8-.8-.4-.7-.8-.7zm0 8.2c-.2 0-.4 0-.6-.1-.7-.2-1.2-.7-1.4-1.4l-.4-1.4c0-.1-.1-.2-.2-.2h-.1l-1.5.3c-.2 0-.3.1-.5.1-.4 0-.8-.1-1.1-.3-.5-.3-.8-.8-.9-1.3-.2-.7 0-1.4.5-1.9l1-1.1c.1-.1.1-.2 0-.3l-1-1.1c-.4-.4-.6-.9-.6-1.5s.3-1.1.7-1.5c.4-.4.9-.6 1.4-.6.2 0 .3 0 .5.1l1.5.3h.1c.1 0 .2-.1.2-.2l.4-1.5c.2-.5.5-1 1-1.2.3-.2.6-.2 1-.2.2 0 .4 0 .6.1.7.2 1.2.7 1.4 1.4l.4 1.4c0 .1.1.2.2.2h.1l1.5-.3c.2 0 .3-.1.5-.1.4 0 .8.1 1.1.3.5.3.8.8.9 1.3.2.7 0 1.4-.5 1.9l-1 1.1c-.1.1-.1.2 0 .3l1 1.1c.4.4.6.9.6 1.5s-.3 1.1-.7 1.5c-.4.4-.9.6-1.4.6-.2 0-.3 0-.5-.1l-1.5-.3h-.1c-.1 0-.2.1-.2.2l-.4 1.4c-.2.5-.5 1-1 1.2-.4.2-.7.3-1 .3zm-2.7-4.6c.8 0 1.4.5 1.7 1.2l.4 1.5c.1.2.2.3.4.4h.2c.1 0 .2 0 .3-.1l.3-.3.4-1.5c.2-.7.9-1.2 1.7-1.2h.4l1.5.3h.1c.1 0 .3-.1.4-.2.1-.1.2-.3.2-.4 0-.2-.1-.3-.2-.4l-1-1.1c-.6-.7-.6-1.7 0-2.4l1-1.1c.1-.1.2-.3.1-.5-.1-.3-.3-.5-.6-.5h-.1l-1.5.3h-.4c-.8 0-1.4-.5-1.7-1.2l-.4-1.5c-.1-.2-.2-.3-.4-.4h-.2c-.1 0-.2 0-.3.1l-.3.3-.4 1.5c-.2.7-.9 1.2-1.7 1.2h-.4l-1.5-.3h-.1c-.1 0-.3.1-.4.2-.1.1-.2.3-.2.4 0 .2.1.3.2.4l1 1.1c.6.7.6 1.7 0 2.4l-1 1.1c-.1.2-.1.4-.1.6 0 .2.1.3.3.4.1.1.2.1.3.1h.1l1.5-.3c.1-.1.3-.1.4-.1z",controlls:"M6 22c-1.4 0-2.6-.9-2.9-2.2H.7c-.4 0-.7-.4-.7-.8s.3-.8.8-.8h2.3C3.4 16.9 4.6 16 6 16s2.6.9 2.9 2.2h14.3c.4 0 .8.3.8.8s-.3.8-.8.8H8.9C8.6 21.1 7.4 22 6 22Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5 1.5-.7 1.5-1.5-.7-1.5-1.5-1.5v-.4.4ZM21 15c-1.4 0-2.6-.9-2.9-2.2H.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h17.3C18.4 9.9 19.6 9 21 9s3 1.3 3 3-1.3 3-3 3Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5 1.5-.7 1.5-1.5-.7-1.5-1.5-1.5ZM8.3 8c-1.4 0-2.6-.9-2.9-2.2H.8C.4 5.8 0 5.5 0 5s.3-.8.8-.8h4.7C5.8 2.9 7 2 8.4 2s2.6.9 2.9 2.2h12c.4 0 .8.3.8.8s-.3.8-.8.8h-12C11 7.1 9.8 8 8.4 8Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5S9.8 5.8 9.8 5s-.7-1.5-1.5-1.5v-.4.4Z",pin:"M.75 23.999a.743.743 0 0 1-.53-.22c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l7.474-7.474-3.575-3.575a2.248 2.248 0 0 1-.588-2.16c.151-.582.52-1.07 1.039-1.374a8.266 8.266 0 0 1 5.564-1.002l3.877-6.094c.089-.139.192-.268.308-.383.424-.425.989-.659 1.59-.659s1.166.234 1.591.659L23.343 6.5a2.236 2.236 0 0 1 .605 2.079 2.238 2.238 0 0 1-.988 1.41l-6.092 3.877a8.257 8.257 0 0 1-1 5.562 2.234 2.234 0 0 1-1.942 1.114 2.239 2.239 0 0 1-1.593-.661l-3.576-3.577L1.28 23.78a.746.746 0 0 1-.53.219zM8.72 8.513c-1.186 0-2.36.318-3.394.919a.746.746 0 0 0-.148 1.175l8.214 8.214c.142.142.331.22.532.22a.743.743 0 0 0 .646-.369 6.737 6.737 0 0 0 .728-4.985.75.75 0 0 1 .326-.808l6.529-4.155a.748.748 0 0 0 .128-1.163L16.44 1.718a.745.745 0 0 0-.531-.22.743.743 0 0 0-.633.348l-4.155 6.53a.746.746 0 0 1-.808.326 6.809 6.809 0 0 0-1.593-.189z",pinFilled:"M.8 24c-.2 0-.4-.1-.5-.2-.2-.2-.3-.4-.3-.6s.1-.4.2-.5l7.5-7.5-3.6-3.6c-.1-.1-.3-.3-.4-.5-.3-.5-.4-1.1-.2-1.7.2-.6.5-1.1 1-1.4 1.3-.6 2.8-1 4.2-1 .5 0 .9 0 1.4.1L14 1c.1-.1.2-.3.3-.4.4-.4 1-.7 1.6-.7s1.2.2 1.6.7l5.8 5.8c.1.1.2.2.3.4.4.6.5 1.2.3 1.8-.1.6-.5 1.1-1 1.4l-6.1 3.9c.3 1.9 0 3.9-1 5.6-.1.2-.2.3-.4.5-.4.4-1 .7-1.6.7-.6 0-1.2-.2-1.6-.7l-3.6-3.6-7.5 7.5s-.2.1-.3.1z",trash:"M6.6 23.2c-1.2 0-2.1-.9-2.2-2.1L3.1 5.2H1.5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6V3c0-1.2 1-2.2 2.2-2.2h4.5c1.2 0 2.2 1 2.2 2.2v.8h6c.4 0 .8.3.8.8s-.3.8-.8.8h-1.6l-1.3 15.9c-.1 1.2-1.1 2.1-2.2 2.1H6.6zm-.7-2.1c0 .4.4.7.7.7h10.7c.4 0 .7-.3.7-.7l1.3-15.8H4.6l1.3 15.8zM15 3.8V3c0-.4-.3-.8-.8-.8H9.8c-.5 0-.8.4-.8.8v.8h6zM9.8 18c-.5 0-.8-.3-.8-.8V9.8c0-.5.3-.8.8-.8s.8.3.8.8v7.5c-.1.4-.4.7-.8.7zm4.4 0c-.4 0-.8-.3-.8-.8V9.8c0-.4.3-.8.8-.8s.8.3.8.8v7.5c0 .4-.3.7-.8.7z",navigationMenuVertical:"M11.987 24.003c-1.861 0-3.375-1.514-3.375-3.375s1.514-3.375 3.375-3.375 3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zM11.987 6.753c-1.861 0-3.375-1.514-3.375-3.375S10.126.003 11.987.003s3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zM11.987 15.378a3.379 3.379 0 0 1-3.375-3.375c0-1.861 1.514-3.375 3.375-3.375s3.375 1.514 3.375 3.375a3.379 3.379 0 0 1-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875z",copy:"M4.5 24a2.252 2.252 0 0 1-2.25-2.25V8.25A2.252 2.252 0 0 1 4.5 6h2.25V2.25A2.252 2.252 0 0 1 9 0h7.629c.601 0 1.165.234 1.59.658l2.872 2.872c.425.425.659.99.659 1.59v10.63A2.252 2.252 0 0 1 19.5 18h-2.25v3.75A2.252 2.252 0 0 1 15 24H4.5zm0-16.5a.75.75 0 0 0-.75.75v13.5c0 .414.336.75.75.75H15a.75.75 0 0 0 .75-.75V11.121c0-.197-.08-.39-.219-.53l-2.872-2.872a.748.748 0 0 0-.53-.219H4.5zm15 9a.75.75 0 0 0 .75-.75V5.121c0-.197-.08-.39-.219-.53l-2.872-2.872a.748.748 0 0 0-.53-.219H9a.75.75 0 0 0-.75.75V6h3.879c.6 0 1.165.234 1.59.658l2.872 2.872c.425.425.659.99.659 1.59v5.38h2.25z",refresh:"M12.723 22.497c-1.385 0-2.737-.271-4.019-.804a.747.747 0 0 1-.404-.98.748.748 0 0 1 .98-.405 8.924 8.924 0 0 0 3.445.689 8.935 8.935 0 0 0 6.204-2.489 8.91 8.91 0 0 0 2.762-6.283 8.911 8.911 0 0 0-2.482-6.399 8.892 8.892 0 0 0-6.483-2.765 8.921 8.921 0 0 0-6.199 2.485 8.937 8.937 0 0 0-2.746 5.833c-.14 2 .375 3.948 1.462 5.589v-2.72a.75.75 0 0 1 1.5 0v4.5a.75.75 0 0 1-.75.75h-.238a.364.364 0 0 1-.096 0H1.493a.75.75 0 0 1 0-1.5h2.636a10.467 10.467 0 0 1-1.822-6.964l.007-.076.019-.197.006-.045A10.54 10.54 0 0 1 5.497 4.42a10.465 10.465 0 0 1 7.264-2.913c1.385 0 2.738.269 4.019.8a.74.74 0 0 1 .26.18 10.382 10.382 0 0 1 3.253 2.301c3.991 4.171 3.844 10.812-.327 14.803a10.43 10.43 0 0 1-7.241 2.905h-.002z",resizeHorizontal:"M5.2 2.3c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3zm6 0c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3zm6 0c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3z",info:"M14.6 23.5c-2.4 0-4.3-1.9-4.3-4.3v-8.5H8.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h1.6c1.5 0 2.7 1.2 2.7 2.7v8c0 1.2.9 2.1 2.1 2.1h1.6c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1h-1.6zm-4-19.2c-1 0-1.9-.9-1.9-1.9S9.6.5 10.6.5s1.9.9 1.9 1.9-.9 1.9-1.9 1.9z",sortAZ:"M8.8 0h-7C.8 0 0 .8 0 1.8v9h1.5v-4H9v3.9h1.5v-9C10.5.8 9.7 0 8.8 0zM1.5 5.4V1.8c0-.1.1-.2.2-.2h7c.2-.1.3 0 .3.2v3.6H1.5zm8.8 17.1V24H1.6c-.4 0-.9-.1-1.1-.4-.3-.3-.5-1 0-1.6l7.2-7.3H0v-1.5h8.5c.4 0 .8.2 1.1.4.5.4.5 1-.1 1.6l-7.2 7.3h8zm8.4-1.3h-.1c-.4 0-.7-.2-.9-.4l-4-4.3c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3.2 3.5V4c0-.4.3-.8.8-.8s.8.3.8.8v14.9l3.2-3.4c.1-.2.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-4 4.3c-.3.3-.6.4-.9.4h-.1z",sortZA:"M8.8 13.2h-7C.8 13.2 0 14 0 15v9h1.5v-3.9H9V24h1.5v-9c0-1-.8-1.8-1.7-1.8zm-7.3 5.4V15c0-.1.1-.2.2-.2h7c.2 0 .3.1.3.2v3.6H1.5zm8.8-9.4v1.5H1.6c-.4 0-.9-.1-1.1-.4-.3-.2-.5-.9 0-1.5l7.2-7.3H0V0h8.5c.4 0 .8.2 1.1.4.5.4.5 1-.1 1.6L2.4 9.2h7.9zm8.4 12h-.1c-.4 0-.7-.2-.9-.4l-4-4.3c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3.2 3.5V4c0-.4.3-.8.8-.8s.8.3.8.8v14.9l3.2-3.4c.1-.2.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-4 4.3c-.3.3-.6.4-.9.4h-.1z",leaf:"M10.257 21.851a8.3 8.3 0 0 1-6.984-3.84l-2.027 1.73a.748.748 0 0 1-1.058-.083.743.743 0 0 1-.177-.546.744.744 0 0 1 .261-.511l2.296-1.959a8.204 8.204 0 0 1-.593-3.072c0-7.309 5.71-7.938 10.748-8.492 3.287-.362 6.685-.736 8.995-2.653.236-.177.495-.265.763-.265.18 0 .354.039.517.117.366.152.647.512.719.931 1.135 6.649-1.167 11.055-3.298 13.581-2.636 3.122-6.53 5.062-10.162 5.062zm-5.831-4.824a6.777 6.777 0 0 0 5.831 3.324c3.203 0 6.657-1.736 9.016-4.532 1.882-2.23 3.908-6.098 3.031-11.947-2.593 1.944-6.059 2.326-9.416 2.696-5.259.579-9.412 1.036-9.412 7.001 0 .694.105 1.375.312 2.031l.386-.329a25.67 25.67 0 0 1 8.897-4.439.752.752 0 0 1 .85 1.094.747.747 0 0 1-.453.352 24.122 24.122 0 0 0-8.35 4.157l-.692.592z",recycle:"M5.6 24c-1.1 0-2-.8-2.2-1.9L0 2.6v-.4C0 1 1 0 2.2 0h19.5c.7 0 1.3.3 1.7.8.5.5.7 1.2.6 1.9l-3.4 19.5c-.2 1.1-1.1 1.9-2.2 1.9L5.6 24zM2.2 1.5c-.4 0-.8.3-.8.7v.1l3.4 19.5c.1.4.4.6.7.6h12.7c.4 0 .7-.3.7-.6l3.4-19.5c0-.2 0-.4-.2-.6-.1-.2-.4-.3-.6-.3l-19.3.1zm10.3 17.3c-.7 0-1.4-.1-2.1-.3-1.4-.5-2.6-1.4-3.3-2.7v1.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8v-3.8c0-.4.3-.8.8-.8H10c.4 0 .8.3.8.8s-.3.8-.8.8H8.1c.5 1.3 1.6 2.3 2.9 2.7.5.2 1 .3 1.6.3.7 0 1.4-.2 2.1-.5 1.2-.6 2-1.6 2.4-2.8.1-.3.4-.5.7-.5h.2c.2.1.3.2.4.4s.1.4 0 .6c-.5 1.6-1.7 2.9-3.2 3.6-.8.4-1.7.7-2.7.7zm2.1-7.5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h2.1c-.5-1.3-1.6-2.3-2.9-2.7-.5-.2-1-.3-1.6-.3-.7 0-1.4.2-2.1.5-1.1.6-2 1.6-2.4 2.8-.1.3-.4.5-.7.5h-.2c-.4-.1-.6-.6-.5-1C6.8 7.9 8 6.6 9.5 5.9c.9-.4 1.8-.6 2.8-.6.7 0 1.4.1 2.1.3 1.4.5 2.6 1.4 3.3 2.7V6.8c-.1-.5.3-.8.7-.8s.8.3.8.8v3.8c0 .4-.3.8-.8.8h-3.8v-.1z",recycleRefresh:"M2.3 15H2c-.1 0-.2-.1-.2-.2L.3 13.3c-.3-.3-.3-.8 0-1.1.1-.1.3-.2.5-.2s.4.1.5.2l.2.2V12c0-2.3.8-4.6 2.2-6.5 2-2.6 5-4 8.3-4 2.4 0 4.6.8 6.4 2.2.2.1.3.3.3.5s0 .4-.2.6c-.1.2-.3.3-.5.3s-.3-.1-.5-.2C15.9 3.7 14 3 12 3 9.2 3 6.6 4.3 4.9 6.5 3.7 8.1 3 10 3 12v.4l.2-.2c.2-.1.4-.2.6-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-1.5 1.5c-.1.1-.2.1-.2.2-.2.1-.3.1-.3.1zm9.7 7.5c-2.4 0-4.6-.8-6.4-2.2-.3-.3-.4-.7-.1-1.1.1-.2.4-.3.6-.3.2 0 .3.1.5.2C8.1 20.4 10 21 12 21c2.8 0 5.4-1.3 7.1-3.5C20.3 16 21 14 21 12v-.4l-.2.2c-.1.1-.3.2-.5.2s-.4-.1-.5-.2c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5l1.5-1.5c.1-.1.2-.1.2-.2h.6c.1 0 .2.1.2.2l1.5 1.5c.1.1.2.3.2.5s-.1.4-.2.5-.3.2-.5.2-.4-.1-.5-.2l-.2-.2v.4c0 2.3-.8 4.6-2.2 6.5-2.1 2.5-5.1 4-8.4 4zM9.5 18c-.4 0-.8-.4-.7-.8 0-.5 0-.9.1-1.3-1.2-.7-2-1.5-2.3-2.5-.3-1-.1-2.2.7-3.3 1.9-2.6 4.8-4.1 8-4.1.2 0 .4.1.6.3 0 .2.1.4.1.6-.1.7 0 1.6.2 2.7.4 2.3.9 5.5-1.9 7.3-.5.3-1.1.5-1.7.5-.9 0-1.7-.3-2.3-.6v.6c-.1.3-.4.6-.8.6zm1-2.9c.3.2 1.2.7 2.1.7.3 0 .7-.1.9-.2 2-1.2 1.6-3.4 1.2-5.7-.1-.8-.3-1.6-.3-2.3-2.3.2-4.5 1.4-5.9 3.4-.5.7-.7 1.3-.5 2 .1.5.6 1 1.2 1.4.6-2.1 1.7-2.9 1.9-3 .1-.1.3-.1.4-.1.3 0 .5.1.6.3.2.3.1.8-.2 1 0 0-.9.7-1.4 2.5z",merge:"M20.62 0a3.382 3.382 0 0 0-2.39 5.77l-5.49 5.49v-4.6c1.5-.34 2.62-1.68 2.62-3.28 0-1.86-1.51-3.38-3.38-3.38S8.6 1.51 8.6 3.38c0 1.6 1.12 2.94 2.62 3.28v4.45L5.79 5.68c.57-.6.93-1.41.93-2.31 0-1.86-1.51-3.38-3.38-3.38S0 1.51 0 3.38s1.51 3.38 3.38 3.38c.41 0 .81-.09 1.17-.22l6.7 6.7v8.21l-1.72-1.72a.75.75 0 1 0-1.06 1.06l3 3c.07.07.15.13.25.17h.02c.09.03.17.05.26.05s.17-.02.26-.05c0 0 .02 0 .03-.01.09-.04.18-.09.25-.16l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72v-8.06l6.82-6.82c.34.11.69.19 1.06.19 1.86 0 3.38-1.51 3.38-3.38S22.51 0 20.64 0ZM1.5 3.38c0-1.03.84-1.88 1.88-1.88s1.88.84 1.88 1.88-.84 1.88-1.88 1.88S1.5 4.42 1.5 3.38Zm8.62 0c0-1.03.84-1.88 1.88-1.88s1.88.84 1.88 1.88-.84 1.88-1.88 1.88-1.88-.84-1.88-1.88Zm10.5 1.87c-1.03 0-1.88-.84-1.88-1.88s.84-1.88 1.88-1.88 1.88.84 1.88 1.88-.84 1.88-1.88 1.88Z",disable:"M12 24a11.922 11.922 0 0 1-8.43-3.468.343.343 0 0 1-.099-.099A11.924 11.924 0 0 1 0 12C0 5.383 5.383 0 12 0a11.92 11.92 0 0 1 8.43 3.468.397.397 0 0 1 .099.099A11.92 11.92 0 0 1 24 12c0 6.617-5.383 12-12 12zm-6.87-4.069A10.448 10.448 0 0 0 12 22.5c5.79 0 10.5-4.71 10.5-10.5 0-2.534-.909-4.958-2.569-6.87L5.13 19.931zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 2.534.91 4.958 2.569 6.87L18.87 4.069A10.453 10.453 0 0 0 12 1.5z",globeMessage:"M23.25 24c-.05 0-.11 0-.16-.02l-5.74-1.24c-.76.38-1.58.68-2.42.89-.03 0-.05.02-.08.02-.93.23-1.89.34-2.84.34s-1.84-.11-2.77-.33c-.09 0-.18-.03-.27-.07a12.05 12.05 0 0 1-7.6-6.01C-.12 14.77-.42 11.52.53 8.46s3.03-5.58 5.86-7.07C7.24.94 8.15.59 9.09.36c.01 0 .03 0 .06-.01.91-.23 1.86-.35 2.82-.35s1.88.11 2.8.33c.07 0 .14.02.21.05 3.28.84 6.06 3.04 7.63 6.02.74 1.4 1.2 2.99 1.34 4.59.03.08.05.17.05.26 0 .05 0 .1-.02.15.01.22.02.41.02.6 0 1.91-.47 3.83-1.36 5.55-.01.03-.03.07-.05.1-.22.41-.45.79-.7 1.16l2.04 4.11c.13.26.1.57-.08.79-.15.19-.36.29-.59.29ZM9.74 22.25c.75.17 1.51.25 2.27.25s1.49-.08 2.22-.24c.67-1.06 1.22-2.52 1.61-4.26H8.12c.39 1.73.95 3.18 1.61 4.25Zm7.51-1.05c.05 0 .11 0 .16.02l4.48.97-1.55-3.12c-.13-.25-.1-.56.07-.78.07-.09.14-.19.21-.29h-3.21c-.28 1.34-.66 2.54-1.12 3.59.21-.09.41-.19.61-.3a.73.73 0 0 1 .35-.09ZM3.38 18c1.09 1.56 2.59 2.8 4.33 3.58-.46-1.04-.83-2.24-1.11-3.58H3.39Zm18.1-1.5c.67-1.41 1.02-2.96 1.02-4.5S18 12 18 12c0 1.55-.11 3.06-.33 4.5h3.81Zm-5.34 0c.23-1.45.35-2.96.35-4.5h-9c0 1.54.12 3.05.35 4.5h8.3Zm-9.82 0C6.1 15.06 6 13.55 6 12H1.49c0 1.55.35 3.09 1.02 4.5h3.81Zm16.06-5.99c-.17-1.2-.54-2.34-1.1-3.4-.2-.38-.42-.75-.67-1.1H17.4c.3 1.4.49 2.91.56 4.5h4.42Zm-5.93 0c-.08-1.57-.29-3.11-.6-4.5H8.13c-.32 1.39-.52 2.93-.6 4.5h8.92Zm-10.42 0c.07-1.59.26-3.1.56-4.5H3.37c-.62.89-1.09 1.86-1.41 2.9-.16.52-.28 1.06-.36 1.6h4.43Zm13.31-6c-.89-.87-1.92-1.57-3.06-2.08.28.63.53 1.33.74 2.08h2.31Zm-3.89 0c-.34-1.09-.74-2.01-1.2-2.75a10.5 10.5 0 0 0-4.5-.01c-.46.74-.87 1.66-1.21 2.76h6.91Zm-8.49 0c.22-.75.47-1.45.75-2.09-.21.09-.42.19-.62.3-.91.48-1.73 1.08-2.45 1.79h2.32Z"};return s.$$set=z=>{"icon"in z&&c(0,l=z.icon),"size"in z&&c(1,m=z.size)},s.$$.update=()=>{s.$$.dirty&1&&c(2,a=Z[l]),s.$$.dirty&5&&(a||console.warn(`There is no icon named %c${l} %cavailable. Not rendering anything.`,"font-weight: bold","font-weight: normal"))},[l,m,a]}class u extends V{constructor(h){super(),L(this,h,A,d,C,{icon:0,size:1})}}export{u as I}; diff --git a/gui/next/build/_app/immutable/chunks/DMhVG_ro.js b/gui/next/build/_app/immutable/chunks/DMhVG_ro.js new file mode 100644 index 000000000..3f144e291 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/DMhVG_ro.js @@ -0,0 +1 @@ +import{x as z,p as B,o as C}from"./n7YEDvJi.js";function F(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function G(n,w){C(n,1,1,()=>{w.delete(n.key)})}function H(n,w,S,D,A,g,f,j,p,k,o,q){let i=n.length,d=g.length,c=i;const u={};for(;c--;)u[n[c].key]=c;const h=[],a=new Map,m=new Map,M=[];for(c=d;c--;){const e=q(A,g,c),s=S(e);let t=f.get(s);t?M.push(()=>t.p(e,w)):(t=k(s,e),t.c()),a.set(s,h[c]=t),s in u&&m.set(s,Math.abs(c-u[s]))}const v=new Set,x=new Set;function y(e){B(e,1),e.m(j,o),f.set(e.key,e),o=e.first,d--}for(;i&&d;){const e=h[d-1],s=n[i-1],t=e.key,l=s.key;e===s?(o=e.first,i--,d--):a.has(l)?!f.has(t)||v.has(t)?y(e):x.has(l)?i--:m.get(t)>m.get(l)?(x.add(t),y(e)):(v.add(l),i--):(p(s,f),i--)}for(;i--;){const e=n[i];a.has(e.key)||p(e,f)}for(;d;)y(h[d-1]);return z(M),h}export{F as e,G as o,H as u}; diff --git a/gui/next/build/_app/immutable/chunks/IHki7fMi.js b/gui/next/build/_app/immutable/chunks/IHki7fMi.js new file mode 100644 index 000000000..c9c5925a3 --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/IHki7fMi.js @@ -0,0 +1 @@ +const e="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(e); diff --git a/gui/next/build/_app/immutable/chunks/Icon.CkKwi_WD.js b/gui/next/build/_app/immutable/chunks/Icon.CkKwi_WD.js deleted file mode 100644 index b7e5e34e0..000000000 --- a/gui/next/build/_app/immutable/chunks/Icon.CkKwi_WD.js +++ /dev/null @@ -1 +0,0 @@ -import{s as V,v as M,i as o,n as i,f as m,w as t,x as H,b as n,y as v,h as L}from"./scheduler.CKQ5dLhN.js";import{S as C,i as f}from"./index.CGVWAVV-.js";function r(s){let h,c;return{c(){h=t("svg"),c=t("path"),this.h()},l(a){h=H(a,"svg",{width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var l=n(h);c=H(l,"path",{d:!0}),n(c).forEach(m),l.forEach(m),this.h()},h(){v(c,"d",s[2]),v(h,"width",s[1]),v(h,"height",s[1]),v(h,"viewBox","0 0 24 24"),v(h,"fill","currentColor"),v(h,"xmlns","http://www.w3.org/2000/svg")},m(a,l){o(a,h,l),L(h,c)},p(a,l){l&4&&v(c,"d",a[2]),l&2&&v(h,"width",a[1]),l&2&&v(h,"height",a[1])},d(a){a&&m(h)}}}function d(s){let h,c=s[0]&&r(s);return{c(){c&&c.c(),h=M()},l(a){c&&c.l(a),h=M()},m(a,l){c&&c.m(a,l),o(a,h,l)},p(a,[l]){a[0]?c?c.p(a,l):(c=r(a),c.c(),c.m(h.parentNode,h)):c&&(c.d(1),c=null)},i,o:i,d(a){a&&m(h),c&&c.d(a)}}}function A(s,h,c){let a,{icon:l=!1}=h,{size:e=24}=h;const Z={database:"M12 24c-6.841 0-12-2.257-12-5.25V5.251C0 2.258 5.159.001 12 .001s12 2.257 12 5.25V18.75C24 21.743 18.841 24 12 24zM1.5 18.75c0 1.533 3.739 3.75 10.5 3.75s10.5-2.217 10.5-3.75v-4.137c-2.053 1.622-6.023 2.637-10.5 2.637s-8.446-1.016-10.5-2.637v4.137zm0-6.75c0 1.533 3.739 3.75 10.5 3.75S22.5 13.533 22.5 12V7.863C20.446 9.485 16.477 10.5 12 10.5S3.554 9.485 1.5 7.863V12zM12 1.501c-6.761 0-10.5 2.217-10.5 3.75s3.739 3.75 10.5 3.75 10.5-2.217 10.5-3.75-3.739-3.75-10.5-3.75z",users:"M4.5 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3Zm0-4.5C3.67 4.5 3 5.17 3 6s.67 1.5 1.5 1.5S6 6.83 6 6s-.67-1.5-1.5-1.5ZM3 22.5c-.38 0-.7-.28-.74-.66l-.67-5.34H.75c-.41 0-.75-.34-.75-.75V13.5C0 11.02 2.02 9 4.5 9c.41 0 .75.34.75.75s-.34.75-.75.75c-1.65 0-3 1.35-3 3V15h.75c.38 0 .7.28.74.66L3.66 21H6c.41 0 .75.34.75.75s-.34.75-.75.75H3ZM19.5 9c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3Zm0-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5S21 6.83 21 6s-.67-1.5-1.5-1.5Zm-1.5 18c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.34l.67-5.34c.05-.38.37-.66.74-.66h.75v-1.5c0-1.65-1.35-3-3-3-.41 0-.75-.34-.75-.75s.34-.75.75-.75c2.48 0 4.5 2.02 4.5 4.5v2.25c0 .41-.34.75-.75.75h-.84l-.67 5.34c-.05.38-.37.66-.74.66h-3Zm-6-15c-2.07 0-3.75-1.68-3.75-3.75S9.93 0 12 0s3.75 1.68 3.75 3.75S14.07 7.5 12 7.5Zm0-6c-1.24 0-2.25 1.01-2.25 2.25S10.76 6 12 6s2.25-1.01 2.25-2.25S13.24 1.5 12 1.5ZM9.75 24a.75.75 0 0 1-.75-.67l-.68-6.83H6.75c-.41 0-.75-.34-.75-.75V13.5c0-3.31 2.69-6 6-6s6 2.69 6 6v2.25c0 .41-.34.75-.75.75h-1.57L15 23.33a.75.75 0 0 1-.75.67h-4.5Zm3.82-1.5.68-6.82c.04-.38.36-.68.75-.68h1.5v-1.5c0-2.48-2.02-4.5-4.5-4.5s-4.5 2.02-4.5 4.5V15H9c.39 0 .71.29.75.68l.68 6.82h3.14Z",log:"m5.25,24c-1.24,0-2.25-1.01-2.25-2.25v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0,.41.34.75.75.75h13.5c.41,0,.75-.34.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0,1.24-1.01,2.25-2.25,2.25H5.25Zm15-10.5c-.41,0-.75-.34-.75-.75v-7.5c0-.41-.34-.75-.75-.75h-2.25v1.5c0,.83-.67,1.5-1.5,1.5h-6c-.83,0-1.5-.67-1.5-1.5v-1.5h-2.25c-.41,0-.75.34-.75.75v7.5c0,.41-.34.75-.75.75s-.75-.34-.75-.75v-7.5c0-1.24,1.01-2.25,2.25-2.25h2.25c0-.83.67-1.5,1.5-1.5h.31c.52-.92,1.5-1.5,2.56-1.5.04,0,.08,0,.12,0,.04,0,.09,0,.13,0,1.07,0,2.05.58,2.56,1.5h.31c.83,0,1.5.67,1.5,1.5h2.25c1.24,0,2.25,1.01,2.25,2.25v7.5c0,.41-.34.75-.75.75Zm-11.25-7.5h6v-3h-.8c-.32,0-.61-.21-.71-.51-.19-.59-.74-.99-1.37-.99-.03,0-.05,0-.08,0,0,0-.04,0-.04,0-.01,0-.09,0-.11,0-.62,0-1.18.4-1.37.99-.1.31-.39.52-.71.52h-.8v3Zm3.04,13.63c-.17,0-.34-.04-.49-.11-.27-.13-.47-.36-.57-.65l-2.08-5.73-1.37,2.73c-.19.38-.58.62-1.01.62H.75c-.41,0-.75-.34-.75-.75s.34-.75.75-.75h5.54l1.65-3.31c.13-.27.37-.47.65-.56.12-.04.24-.06.36-.06.17,0,.35.04.5.12.26.13.46.35.56.62l2.07,5.69,1.93-4.33c.18-.41.59-.67,1.03-.67.16,0,.31.03.46.1.24.11.43.29.55.52l.94,1.88h6.28c.41,0,.75.34.75.75s-.34.75-.75.75h-6.51c-.43,0-.81-.24-1.01-.62l-.69-1.37-1.98,4.45c-.12.28-.36.51-.67.61-.12.04-.24.06-.36.06Z",logFresh:"M5.25 24C4.01 24 3 22.99 3 21.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41.34.75.75.75h13.5c.41 0 .75-.34.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 1.24-1.01 2.25-2.25 2.25H5.25Zm15-10.5c-.41 0-.75-.34-.75-.75v-7.5c0-.41-.34-.75-.75-.75H16.5V6c0 .83-.67 1.5-1.5 1.5H9c-.83 0-1.5-.67-1.5-1.5V4.5H5.25c-.41 0-.75.34-.75.75v7.5c0 .41-.34.75-.75.75S3 13.16 3 12.75v-7.5C3 4.01 4.01 3 5.25 3H7.5c0-.83.67-1.5 1.5-1.5h.31C9.83.58 10.81 0 11.88 0h.25c1.06 0 2.04.58 2.56 1.5H15c.83 0 1.5.67 1.5 1.5h2.25C19.99 3 21 4.01 21 5.25v7.5c0 .41-.34.75-.75.75ZM9 6h6V3h-.8c-.32 0-.61-.21-.71-.51-.19-.59-.74-.99-1.37-.99H11.89c-.62 0-1.18.4-1.37.99a.75.75 0 0 1-.71.52h-.8v3ZM7.14 20.55c-.1 0-.19-.02-.28-.06-.19-.08-.33-.22-.41-.4s-.08-.39 0-.57c.37-.9.8-1.72 1.27-2.42-.78-1.12-1.09-2.25-.92-3.27.19-1.07.9-1.99 2.06-2.65 1.41-.74 2.99-1.12 4.58-1.12s3.04.36 4.39 1.03c.2.1.35.28.4.51s0 .45-.14.63c-.41.52-.69 1.48-1 2.49-.68 2.26-1.61 5.36-4.93 5.66-.1 0-.2.01-.29.01-1.55 0-2.64-1.12-3.23-1.94-.29.5-.56 1.05-.81 1.65-.12.28-.39.47-.7.47Zm2.43-3.43c.26.44 1.11 1.76 2.3 1.76h.15c2.31-.21 2.95-2.34 3.62-4.6.24-.79.46-1.53.76-2.17-.95-.36-1.95-.55-2.98-.55-1.34 0-2.68.33-3.86.94-.75.43-1.19.96-1.3 1.59-.09.52.06 1.12.42 1.76 1.48-1.59 2.82-1.8 2.97-1.82h.09c.38 0 .7.28.75.66.05.41-.24.78-.65.84s-.55.09-1.29.65c-.34.26-.68.58-1 .95Z",backgroundJob:"M23.6 7.3v.3c0 .1-.1.2-.2.3l-3 3c-.2.1-.4.1-.6.1-.2 0-.4-.1-.5-.2-.1-.1-.2-.3-.2-.5s.1-.4.2-.5L21 8H1.2c-.4 0-.8-.4-.8-.8s.3-.9.8-.9H21l-1.7-1.5c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3 3c.1.1.1.2.2.2.1.1.1.2.1.3zM4 10.4c-.4 0-.7.3-.7.7-.1 1.1 0 2.2.3 3.3 0 .4.3.6.7.6h.2c.4-.1.6-.5.5-.9-.2-.9-.3-1.9-.2-2.8 0-.5-.3-.8-.8-.9.1 0 0 0 0 0zm2.6 5.3c-.3 0-.6.2-.7.6-.1.4.2.8.6.9.8.2 1.6.3 2.4.3h.9c.4 0 .7-.4.7-.8s-.4-.7-.7-.7H9c-.7 0-1.4-.1-2.1-.2-.2-.1-.2-.1-.3-.1zm9.8-2.7c-.2 0-.4.1-.5.2-.1.1-.2.3-.2.5s.1.4.2.5l1.7 1.7h-3.4c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h3.4l-1.7 1.7c-.1.1-.2.3-.2.5s.1.4.2.5c.1.1.3.2.5.2s.4-.1.5-.2l3-3c.1-.1.1-.2.2-.2v-.6c0-.1-.1-.2-.2-.3l-3-3c-.2-.1-.3-.1-.5-.1z",constant:"M3 24C1.76 24 .75 22.99.75 21.75V2.25C.75 1.01 1.76 0 3 0h15.05c.59 0 1.15.23 1.57.64l2.95 2.88c.43.42.68 1.01.68 1.61v16.62c0 1.24-1.01 2.25-2.25 2.25H3ZM3 1.5c-.41 0-.75.34-.75.75v19.5c0 .41.34.75.75.75h18c.41 0 .75-.34.75-.75V5.14c0-.2-.08-.4-.23-.54l-2.95-2.88a.734.734 0 0 0-.52-.21H3Zm6.65 16.56c-1.12 0-2.06-.87-2.15-1.99v-1.31c0-.16-.11-.33-.27-.41l-1.61-.92c-.23-.13-.38-.38-.38-.65s.14-.52.38-.65l1.58-.91c.18-.1.29-.26.29-.45V9.48a2.173 2.173 0 0 1 2.15-1.99h.85a.749.749 0 1 1 0 1.5h-.85a.65.65 0 0 0-.65.58v1.21c-.02.74-.43 1.4-1.07 1.74l-.43.25.45.26c.62.33 1.02.98 1.04 1.7v1.23c.04.33.32.58.66.58h.84c.41 0 .75.34.75.75s-.34.75-.75.75h-.85Zm4.69 0h-.85c-.41 0-.75-.34-.75-.75s.34-.75.75-.75H14.34c.34 0 .62-.25.66-.58v-1.21c.02-.74.43-1.4 1.07-1.74l.43-.25-.45-.26c-.62-.33-1.02-.98-1.04-1.71V9.58a.658.658 0 0 0-.65-.58h-.85c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h.85c1.12 0 2.06.87 2.15 1.99v1.31c0 .16.11.33.27.41l1.6.92c.23.13.38.38.38.65s-.14.52-.38.65l-1.58.91c-.18.1-.29.26-.29.45v1.29a2.165 2.165 0 0 1-2.15 1.99Z",graphql:"M21 14.9V9.1c.9-.2 1.6-1.1 1.6-2.1 0-1.2-1-2.1-2.1-2.1-.6 0-1.2.3-1.5.7l-5-2.9c.1-.2.1-.4.1-.6C14.1 1 13.2 0 12 0S9.9 1 9.9 2.1c0 .2 0 .4.1.6L5 5.6c-.4-.4-.9-.7-1.5-.7-1.2 0-2.1 1-2.1 2.1 0 1 .7 1.8 1.6 2.1v5.7c-.9.2-1.6 1.1-1.6 2.1 0 1.2 1 2.1 2.1 2.1.6 0 1.2-.3 1.5-.7l5 2.9c-.1.2-.1.4-.1.6 0 1.2 1 2.1 2.1 2.1s2.1-1 2.1-2.1c0-.2 0-.4-.1-.6l5-2.9c.4.4.9.7 1.5.7 1.2 0 2.1-1 2.1-2.1.1-1-.6-1.8-1.6-2zm-17 0V9.1C4.9 8.9 5.6 8 5.6 7c0-.2 0-.4-.1-.6l5-2.9.1.1L4 14.9zm9.5 5.5c-.4-.4-.9-.7-1.5-.7s-1.2.3-1.5.7l-5-2.9v-.1h12.9v.1l-4.9 2.9zm5-4h-13c-.1-.4-.3-.8-.6-1l6.5-11.2c.2.1.4.1.6.1s.4 0 .6-.1l6.5 11.2c-.3.3-.5.6-.6 1zm1.5-1.5L13.5 3.7l.1-.1 5 2.9c-.1.2-.1.4-.1.6 0 1 .7 1.8 1.6 2.1v5.7z",liquid:"M12 24c-2.3 0-4.4-.9-6.1-2.5-1.7-1.6-2.6-3.8-2.6-6.1v-.3C3.3 8.6 9.7 0 12 0c2.3 0 8.7 8.6 8.7 15.1.1 4.8-3.8 8.8-8.6 8.9H12zm0-22.3C10.5 3 4.8 10 4.8 15.1v.2c.1 3.4 3.8 7.1 7.2 7.1h.1c3.4-.1 7.2-3.9 7.1-7.3C19.2 10 13.5 3 12 1.7zm-1 18.2c-2.1 0-3.8-1.7-3.8-3.8 0-.7.3-1.2.9-1.2s.7.7.7 1.4 1.1 1.8 1.8 1.8 1.1.4 1.1.8c.1.7 0 1-.7 1z",arrowRight:"M12.75 23.25a.752.752 0 0 1-.53-1.281l9.22-9.22H.75a.749.749 0 1 1 0-1.499h20.689l-9.22-9.22A.746.746 0 0 1 12.22.97c.141-.142.33-.22.53-.22s.389.078.53.22l10.5 10.5a.74.74 0 0 1 .163.245l.01.026a.73.73 0 0 1 0 .517l-.006.016a.755.755 0 0 1-.168.257L13.28 23.03a.743.743 0 0 1-.53.22z",arrowLeft:"M11.25 23.25a.743.743 0 0 1-.53-.22L.22 12.53a.74.74 0 0 1-.163-.245l-.01-.026a.75.75 0 0 1 .009-.541.74.74 0 0 1 .166-.249L10.72.97a.744.744 0 0 1 1.06 0c.142.141.22.33.22.53s-.078.389-.22.53l-9.22 9.22h20.69a.75.75 0 0 1 0 1.5H2.561l9.22 9.22a.75.75 0 0 1-.531 1.28z",arrowDown:"M12 18.999c-.4 0-.776-.156-1.059-.438L.22 7.841A.745.745 0 0 1 0 7.31c0-.2.078-.389.22-.53a.744.744 0 0 1 1.06 0L12 17.499 22.72 6.78a.744.744 0 0 1 1.06 0 .744.744 0 0 1 0 1.06L13.06 18.56a1.487 1.487 0 0 1-1.06.439z",arrowTripleUp:"M19 10.3c-.4 0-.8-.1-1.1-.3l-6.1-3.9L5.7 10c-.3.2-.7.3-1.1.3-.4 0-.7 0-1-.2-.5-.3-.8-.7-.8-1.3V6.4c0-.8.4-1.4 1.1-1.8L10.7.3c.3-.2.7-.3 1.1-.3s.7.1 1.1.3l6.9 4.4c.6.3 1 1 1 1.7v2.4c0 .5-.3 1-.8 1.3-.3.2-.6.2-1 .2ZM4.3 8.8h.6l6.5-4.2c.1 0 .3-.1.4-.1s.3 0 .4.1l6.5 4.2h.6V6.5c0-.2-.1-.4-.3-.5l-7-4.4h-.6L4.6 6c-.2.1-.3.3-.4.5v2.3Zm14.7 10c-.4 0-.8-.1-1.1-.3l-6.1-3.9-6.1 3.9c-.3.2-.7.3-1.1.3s-.7 0-1-.2c-.5-.3-.8-.7-.8-1.3v-1.8c0-.8.4-1.4 1.1-1.8l6.8-4.3c.3-.2.7-.3 1.1-.3s.7.1 1.1.3l6.9 4.4c.6.3 1 1 1 1.7v1.8c0 .5-.3 1-.8 1.2-.3.2-.6.3-1 .3Zm-7.2-5.9c.1 0 .3 0 .4.1l6.5 4.2h.6v-1.7c0-.2-.1-.4-.3-.5l-6.9-4.4h-.6L4.7 15c-.2.1-.3.3-.4.5v1.7h.6l6.5-4.2c.1 0 .3-.1.4-.1ZM4.2 24c-.2 0-.5-.1-.6-.3-.1-.2-.2-.4-.1-.6s.1-.4.3-.5l7.5-5.2c.1 0 .3-.1.4-.1s.3 0 .4.1l7.5 5.2c.2.1.3.3.3.5s0 .4-.1.6c-.1.2-.4.3-.6.3s-.3 0-.4-.1L11.7 19l-7.1 4.9c-.1 0-.3.1-.4.1Z",search:"M23.245 23.996a.743.743 0 0 1-.53-.22L16.2 17.26a9.824 9.824 0 0 1-2.553 1.579 9.766 9.766 0 0 1-7.51.069 9.745 9.745 0 0 1-5.359-5.262c-1.025-2.412-1.05-5.08-.069-7.51S3.558 1.802 5.97.777a9.744 9.744 0 0 1 7.51-.069 9.745 9.745 0 0 1 5.359 5.262 9.748 9.748 0 0 1 .069 7.51 9.807 9.807 0 0 1-1.649 2.718l6.517 6.518a.75.75 0 0 1-.531 1.28zM9.807 1.49a8.259 8.259 0 0 0-3.25.667 8.26 8.26 0 0 0-4.458 4.54 8.26 8.26 0 0 0 .058 6.362 8.26 8.26 0 0 0 4.54 4.458 8.259 8.259 0 0 0 6.362-.059 8.285 8.285 0 0 0 2.594-1.736.365.365 0 0 1 .077-.076 8.245 8.245 0 0 0 1.786-2.728 8.255 8.255 0 0 0-.059-6.362 8.257 8.257 0 0 0-4.54-4.458 8.28 8.28 0 0 0-3.11-.608z",x:"M19.5 20.25a.743.743 0 0 1-.53-.22L12 13.061l-6.97 6.97a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061L10.94 12 3.97 5.03c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22L12 10.94l6.97-6.97a.744.744 0 0 1 1.06 0c.142.141.22.33.22.53s-.078.389-.22.53L13.061 12l6.97 6.97a.75.75 0 0 1-.531 1.28z",plus:"M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z",minus:"M.8 12.8c-.5 0-.8-.4-.8-.8s.3-.8.8-.8h22.5c.4 0 .8.3.8.8s-.3.8-.8.8H.8z",check:"M6.347 24.003a2.95 2.95 0 0 1-2.36-1.187L.15 17.7a.748.748 0 0 1 .6-1.2c.235 0 .459.112.6.3l3.839 5.118a1.442 1.442 0 0 0 1.42.562c.381-.068.712-.281.933-.599L22.636.32a.748.748 0 1 1 1.228.86L8.772 22.739a2.93 2.93 0 0 1-1.9 1.217c-.173.031-.35.047-.525.047z",list:"M8.25 4.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM8.25 13.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM8.25 22.498a.75.75 0 0 1 0-1.5h15a.75.75 0 0 1 0 1.5h-15zM1.5 5.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-.673 1.5-1.5 1.5h-3zm0-1.5h3v-3h-3v3zM1.5 14.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-4.5 1.5-4.5 1.5zm0-1.5h3v-3h-3v3zM1.5 23.998c-.827 0-1.5-.673-1.5-1.5v-3c0-.827.673-1.5 1.5-1.5h3c.827 0 1.5.673 1.5 1.5v3c0 .827-.673 1.5-1.5 1.5h-3zm0-1.5h3v-3h-3v3z",tiles:"M2.25 10.497A2.252 2.252 0 0 1 0 8.247v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM2.25 23.997A2.252 2.252 0 0 1 0 21.747v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM15.75 10.497a2.252 2.252 0 0 1-2.25-2.25v-6a2.252 2.252 0 0 1 2.25-2.25h6A2.252 2.252 0 0 1 24 2.247v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6zM15.75 23.997a2.252 2.252 0 0 1-2.25-2.25v-6a2.252 2.252 0 0 1 2.25-2.25h6a2.252 2.252 0 0 1 2.25 2.25v6a2.252 2.252 0 0 1-2.25 2.25h-6zm0-9a.75.75 0 0 0-.75.75v6c0 .414.336.75.75.75h6a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-.75-.75h-6z",pencil:"M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275-1.129 4.406zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344l4.077 4.07zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762l4.071 4.07z",expand:"M23.25 7.498a.75.75 0 0 1-.75-.75V2.559l-3.97 3.97a.746.746 0 0 1-1.06-.001c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l3.97-3.97h-4.19a.75.75 0 0 1 0-1.5h6a.735.735 0 0 1 .293.06.75.75 0 0 1 .4.404l.01.026c.03.082.047.17.047.26v6a.75.75 0 0 1-.75.75zM.75 23.998a.755.755 0 0 1-.26-.047l-.022-.008A.754.754 0 0 1 0 23.248v-6a.75.75 0 0 1 1.5 0v4.189l3.97-3.97a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3.97 3.97h4.19a.75.75 0 0 1 0 1.5h-6zM.75 7.498a.75.75 0 0 1-.75-.75v-6A.74.74 0 0 1 .048.487L.055.466a.754.754 0 0 1 .41-.411L.49.045a.737.737 0 0 1 .26-.047h6a.75.75 0 0 1 0 1.5H2.561l3.97 3.97c.142.141.22.33.22.53s-.078.389-.22.53a.747.747 0 0 1-1.061 0L1.5 2.559v4.189a.75.75 0 0 1-.75.75zM17.25 23.998a.75.75 0 0 1 0-1.5h4.189l-3.97-3.97a.752.752 0 0 1 .53-1.281c.2 0 .389.078.53.22l3.97 3.97v-4.189a.75.75 0 0 1 1.501 0v6a.767.767 0 0 1-.046.258l-.006.017a.763.763 0 0 1-.412.419l-.026.01a.73.73 0 0 1-.259.047H17.25zM9 16.498c-.827 0-1.5-.673-1.5-1.5v-6c0-.827.673-1.5 1.5-1.5h6c.827 0 1.5.673 1.5 1.5v6c0 .827-.673 1.5-1.5 1.5H9zm0-1.5h6v-6H9v6z",collapse:"M17.25 7.498a.735.735 0 0 1-.261-.048l-.032-.012a.75.75 0 0 1-.4-.404l-.01-.026a.739.739 0 0 1-.047-.26v-6a.75.75 0 0 1 1.5 0v4.189l4.72-4.72a.744.744 0 0 1 1.06 0 .747.747 0 0 1 0 1.061l-4.72 4.72h4.189a.75.75 0 0 1 0 1.5H17.25zM6.75 23.998a.75.75 0 0 1-.75-.75v-4.189l-4.72 4.72a.744.744 0 0 1-1.06 0 .752.752 0 0 1 0-1.061l4.72-4.72H.75a.75.75 0 0 1 0-1.5h6c.088 0 .175.016.26.047l.022.008a.756.756 0 0 1 .468.695v6a.75.75 0 0 1-.75.75zM23.25 23.998a.743.743 0 0 1-.53-.22L18 19.059v4.189a.75.75 0 0 1-1.5 0v-6c0-.087.016-.174.046-.258l.006-.017a.763.763 0 0 1 .412-.419l.026-.01a.733.733 0 0 1 .259-.047h6a.75.75 0 0 1 0 1.5H19.06l4.72 4.72a.752.752 0 0 1-.53 1.281zM.75 7.498a.75.75 0 0 1 0-1.5h4.189l-4.72-4.72A.746.746 0 0 1 .22.218c.141-.142.33-.22.53-.22s.389.078.53.22L6 4.938V.748a.75.75 0 0 1 1.5 0v6a.735.735 0 0 1-.048.261l-.007.021a.76.76 0 0 1-.695.468h-6zM9 16.498c-.827 0-1.5-.673-1.5-1.5v-6c0-.827.673-1.5 1.5-1.5h6c.827 0 1.5.673 1.5 1.5v6c0 .827-.673 1.5-1.5 1.5H9zm0-1.5h6v-6H9v6z",eye:"M11.8 19.5c-4.3 0-8.6-3-11.2-5.9-.8-.9-.8-2.3 0-3.2 2.6-2.8 6.9-5.9 11.2-5.9h.4c4.3 0 8.6 3 11.2 5.9.8.9.8 2.3 0 3.2-2.6 2.8-6.9 5.9-11.2 5.9h-.4zM11.9 6C8 6 4.1 8.8 1.7 11.4c-.3.3-.3.9 0 1.2C4.1 15.2 8 18 11.9 18h.2c3.9 0 7.8-2.8 10.1-5.4.3-.3.3-.9 0-1.2C19.9 8.8 16 6 12.1 6h-.2zm.1 10.5c-1.2 0-2.3-.5-3.2-1.3s-1.3-2-1.3-3.2c0-2.5 2-4.5 4.5-4.5 1.2 0 2.3.5 3.2 1.3.8.9 1.3 2 1.3 3.2 0 1.2-.5 2.3-1.3 3.2-.9.8-2 1.3-3.2 1.3zM12 9c-1.7 0-3 1.3-3 3 0 .8.3 1.6.9 2.1.6.6 1.3.9 2.1.9s1.6-.3 2.1-.9.9-1.3.9-2.1-.3-1.6-.9-2.1c-.5-.6-1.3-.9-2.1-.9z",eyeStriked:"M2.8 21.8c-.2 0-.4-.1-.5-.2-.2-.2-.3-.4-.3-.6 0-.2.1-.4.2-.5L21 2.5c.1-.1.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-18.8 18c0 .2-.2.3-.4.3zm9.2-1.6h-.1c-1 0-2.1-.2-3.1-.5-.4-.1-.6-.5-.5-.9.1-.3.4-.5.7-.5h.2c.9.3 1.8.4 2.7.4h.2c3.9 0 7.8-2.8 10.1-5.4.3-.3.3-.9 0-1.2-.9-1-1.9-1.9-3-2.7-.1 0-.2-.2-.2-.4s0-.4.1-.6c.1-.2.4-.3.6-.3.2 0 .3.1.4.1 1.2.8 2.2 1.8 3.2 2.9.8.9.8 2.3 0 3.2-2.6 2.8-6.9 5.9-11.2 5.9H12zM3.8 17c-.2 0-.3-.1-.5-.2-1-.7-1.9-1.6-2.7-2.5-.8-.9-.8-2.3 0-3.2 2.6-2.8 6.9-5.9 11.2-5.9h.2c.8 0 1.7.1 2.5.3.4.1.6.5.5.9.1.4-.2.6-.6.6h-.2c-.7-.2-1.4-.3-2.1-.3h-.2C8 6.8 4.1 9.5 1.7 12.1c-.3.3-.3.9 0 1.2.8.8 1.6 1.6 2.5 2.3.2.1.3.3.3.5s0 .4-.2.6c-.1.2-.3.3-.5.3zm4.4-3.5c-.4 0-.8-.3-.8-.8 0-1.2.5-2.3 1.3-3.2s2-1.3 3.2-1.3c.2 0 .4.2.4.4v.8c0 .1 0 .2-.1.3s-.1.1-.2.1c-.8 0-1.6.3-2.1.9-.6.5-.9 1.2-.9 2.1 0 .2-.1.4-.2.5-.2.1-.4.2-.6.2zm3.8 3.7c-.2 0-.4-.2-.4-.4V16c0-.1 0-.2.1-.3.1-.1.2-.1.3-.1.8 0 1.6-.3 2.1-.9.6-.6.9-1.3.9-2.1 0-.4.3-.8.8-.8s.8.3.8.8c0 1.2-.5 2.3-1.3 3.2-1 1-2.1 1.4-3.3 1.4z",book:"M12 23.999a.755.755 0 0 1-.548-.238c-.017-.017-2.491-2.398-10.212-2.494A1.26 1.26 0 0 1 0 20.025V4.249c0-.334.137-.659.375-.892.242-.232.557-.358.89-.358 5.718.073 8.778 1.302 10.258 2.199a6.773 6.773 0 0 1 1.572-2.664A8.513 8.513 0 0 1 17.071.055a1.346 1.346 0 0 1 1.1.153c.353.218.57.6.579 1.02v2.053A31.709 31.709 0 0 1 22.727 3 1.259 1.259 0 0 1 24 4.245v15.772a1.265 1.265 0 0 1-1.243 1.25c-7.724.096-10.193 2.478-10.217 2.502l-.031.03a.742.742 0 0 1-.509.2zM1.5 19.771c5.263.097 8.233 1.194 9.75 2.037V6.826c-.72-.546-3.417-2.201-9.75-2.323v15.268zm17.25-2.926a.751.751 0 0 1-.598.734 7.44 7.44 0 0 0-3.967 2.238 5.3 5.3 0 0 0-1.15 1.838c1.58-.81 4.502-1.794 9.464-1.885V4.502a30.64 30.64 0 0 0-3.75.292v12.051zm-6 2.334c.11-.135.225-.266.345-.39a8.92 8.92 0 0 1 4.155-2.533V1.569a7.055 7.055 0 0 0-3.057 1.986 5.343 5.343 0 0 0-1.443 2.997v12.627z",serverSettings:"M5.3 4.1c.6 0 1.1.5 1.1 1.1s-.5 1.2-1.1 1.2-1.2-.5-1.2-1.1.5-1.2 1.2-1.2zm0 9c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1-1.1-.5-1.1-1.1.4-1.1 1.1-1.1zm0 6.4c-2.9 0-5.2-2.4-5.2-5.2 0-1.9 1-3.6 2.5-4.5C1 8.8 0 7.1 0 5.3 0 2.4 2.4 0 5.3 0h12c1.4 0 2.7.5 3.7 1.5s1.5 2.3 1.5 3.7c0 1.3-.5 2.5-1.3 3.5-.1.2-.3.3-.6.3-.2 0-.4-.1-.5-.2-.2-.1-.2-.3-.3-.5s.1-.4.2-.5c.7-.8 1-1.6 1-2.6s-.4-1.9-1.1-2.7c-.7-.7-1.6-1.1-2.7-1.1h-12c-2.1 0-3.8 1.7-3.8 3.8S3.2 9 5.3 9h7.4c.4 0 .8.3.8.8s-.3.8-.8.8H5.3c-2.1 0-3.8 1.7-3.8 3.8S3.2 18 5.3 18h3c.4 0 .7.3.7.8s-.3.8-.8.8l-2.9-.1zM10.5 6c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6.7c.4 0 .8.3.8.8s-.3.8-.7.8h-6.8zm6.8 12.8c-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2 2.2 1 2.2 2.2-1 2.2-2.2 2.2zm0-3c-.4 0-.8.3-.8.7s.3.8.8.8.8-.3.8-.8-.4-.7-.8-.7zm0 8.2c-.2 0-.4 0-.6-.1-.7-.2-1.2-.7-1.4-1.4l-.4-1.4c0-.1-.1-.2-.2-.2h-.1l-1.5.3c-.2 0-.3.1-.5.1-.4 0-.8-.1-1.1-.3-.5-.3-.8-.8-.9-1.3-.2-.7 0-1.4.5-1.9l1-1.1c.1-.1.1-.2 0-.3l-1-1.1c-.4-.4-.6-.9-.6-1.5s.3-1.1.7-1.5c.4-.4.9-.6 1.4-.6.2 0 .3 0 .5.1l1.5.3h.1c.1 0 .2-.1.2-.2l.4-1.5c.2-.5.5-1 1-1.2.3-.2.6-.2 1-.2.2 0 .4 0 .6.1.7.2 1.2.7 1.4 1.4l.4 1.4c0 .1.1.2.2.2h.1l1.5-.3c.2 0 .3-.1.5-.1.4 0 .8.1 1.1.3.5.3.8.8.9 1.3.2.7 0 1.4-.5 1.9l-1 1.1c-.1.1-.1.2 0 .3l1 1.1c.4.4.6.9.6 1.5s-.3 1.1-.7 1.5c-.4.4-.9.6-1.4.6-.2 0-.3 0-.5-.1l-1.5-.3h-.1c-.1 0-.2.1-.2.2l-.4 1.4c-.2.5-.5 1-1 1.2-.4.2-.7.3-1 .3zm-2.7-4.6c.8 0 1.4.5 1.7 1.2l.4 1.5c.1.2.2.3.4.4h.2c.1 0 .2 0 .3-.1l.3-.3.4-1.5c.2-.7.9-1.2 1.7-1.2h.4l1.5.3h.1c.1 0 .3-.1.4-.2.1-.1.2-.3.2-.4 0-.2-.1-.3-.2-.4l-1-1.1c-.6-.7-.6-1.7 0-2.4l1-1.1c.1-.1.2-.3.1-.5-.1-.3-.3-.5-.6-.5h-.1l-1.5.3h-.4c-.8 0-1.4-.5-1.7-1.2l-.4-1.5c-.1-.2-.2-.3-.4-.4h-.2c-.1 0-.2 0-.3.1l-.3.3-.4 1.5c-.2.7-.9 1.2-1.7 1.2h-.4l-1.5-.3h-.1c-.1 0-.3.1-.4.2-.1.1-.2.3-.2.4 0 .2.1.3.2.4l1 1.1c.6.7.6 1.7 0 2.4l-1 1.1c-.1.2-.1.4-.1.6 0 .2.1.3.3.4.1.1.2.1.3.1h.1l1.5-.3c.1-.1.3-.1.4-.1z",controlls:"M6 22c-1.4 0-2.6-.9-2.9-2.2H.7c-.4 0-.7-.4-.7-.8s.3-.8.8-.8h2.3C3.4 16.9 4.6 16 6 16s2.6.9 2.9 2.2h14.3c.4 0 .8.3.8.8s-.3.8-.8.8H8.9C8.6 21.1 7.4 22 6 22Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5 1.5-.7 1.5-1.5-.7-1.5-1.5-1.5v-.4.4ZM21 15c-1.4 0-2.6-.9-2.9-2.2H.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h17.3C18.4 9.9 19.6 9 21 9s3 1.3 3 3-1.3 3-3 3Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5 1.5-.7 1.5-1.5-.7-1.5-1.5-1.5ZM8.3 8c-1.4 0-2.6-.9-2.9-2.2H.8C.4 5.8 0 5.5 0 5s.3-.8.8-.8h4.7C5.8 2.9 7 2 8.4 2s2.6.9 2.9 2.2h12c.4 0 .8.3.8.8s-.3.8-.8.8h-12C11 7.1 9.8 8 8.4 8Zm0-4.5c-.8 0-1.5.7-1.5 1.5s.7 1.5 1.5 1.5S9.8 5.8 9.8 5s-.7-1.5-1.5-1.5v-.4.4Z",pin:"M.75 23.999a.743.743 0 0 1-.53-.22c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l7.474-7.474-3.575-3.575a2.248 2.248 0 0 1-.588-2.16c.151-.582.52-1.07 1.039-1.374a8.266 8.266 0 0 1 5.564-1.002l3.877-6.094c.089-.139.192-.268.308-.383.424-.425.989-.659 1.59-.659s1.166.234 1.591.659L23.343 6.5a2.236 2.236 0 0 1 .605 2.079 2.238 2.238 0 0 1-.988 1.41l-6.092 3.877a8.257 8.257 0 0 1-1 5.562 2.234 2.234 0 0 1-1.942 1.114 2.239 2.239 0 0 1-1.593-.661l-3.576-3.577L1.28 23.78a.746.746 0 0 1-.53.219zM8.72 8.513c-1.186 0-2.36.318-3.394.919a.746.746 0 0 0-.148 1.175l8.214 8.214c.142.142.331.22.532.22a.743.743 0 0 0 .646-.369 6.737 6.737 0 0 0 .728-4.985.75.75 0 0 1 .326-.808l6.529-4.155a.748.748 0 0 0 .128-1.163L16.44 1.718a.745.745 0 0 0-.531-.22.743.743 0 0 0-.633.348l-4.155 6.53a.746.746 0 0 1-.808.326 6.809 6.809 0 0 0-1.593-.189z",pinFilled:"M.8 24c-.2 0-.4-.1-.5-.2-.2-.2-.3-.4-.3-.6s.1-.4.2-.5l7.5-7.5-3.6-3.6c-.1-.1-.3-.3-.4-.5-.3-.5-.4-1.1-.2-1.7.2-.6.5-1.1 1-1.4 1.3-.6 2.8-1 4.2-1 .5 0 .9 0 1.4.1L14 1c.1-.1.2-.3.3-.4.4-.4 1-.7 1.6-.7s1.2.2 1.6.7l5.8 5.8c.1.1.2.2.3.4.4.6.5 1.2.3 1.8-.1.6-.5 1.1-1 1.4l-6.1 3.9c.3 1.9 0 3.9-1 5.6-.1.2-.2.3-.4.5-.4.4-1 .7-1.6.7-.6 0-1.2-.2-1.6-.7l-3.6-3.6-7.5 7.5s-.2.1-.3.1z",trash:"M6.6 23.2c-1.2 0-2.1-.9-2.2-2.1L3.1 5.2H1.5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6V3c0-1.2 1-2.2 2.2-2.2h4.5c1.2 0 2.2 1 2.2 2.2v.8h6c.4 0 .8.3.8.8s-.3.8-.8.8h-1.6l-1.3 15.9c-.1 1.2-1.1 2.1-2.2 2.1H6.6zm-.7-2.1c0 .4.4.7.7.7h10.7c.4 0 .7-.3.7-.7l1.3-15.8H4.6l1.3 15.8zM15 3.8V3c0-.4-.3-.8-.8-.8H9.8c-.5 0-.8.4-.8.8v.8h6zM9.8 18c-.5 0-.8-.3-.8-.8V9.8c0-.5.3-.8.8-.8s.8.3.8.8v7.5c-.1.4-.4.7-.8.7zm4.4 0c-.4 0-.8-.3-.8-.8V9.8c0-.4.3-.8.8-.8s.8.3.8.8v7.5c0 .4-.3.7-.8.7z",navigationMenuVertical:"M11.987 24.003c-1.861 0-3.375-1.514-3.375-3.375s1.514-3.375 3.375-3.375 3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zM11.987 6.753c-1.861 0-3.375-1.514-3.375-3.375S10.126.003 11.987.003s3.375 1.514 3.375 3.375-1.514 3.375-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875zM11.987 15.378a3.379 3.379 0 0 1-3.375-3.375c0-1.861 1.514-3.375 3.375-3.375s3.375 1.514 3.375 3.375a3.379 3.379 0 0 1-3.375 3.375zm0-5.25c-1.034 0-1.875.841-1.875 1.875s.841 1.875 1.875 1.875 1.875-.841 1.875-1.875-.841-1.875-1.875-1.875z",copy:"M4.5 24a2.252 2.252 0 0 1-2.25-2.25V8.25A2.252 2.252 0 0 1 4.5 6h2.25V2.25A2.252 2.252 0 0 1 9 0h7.629c.601 0 1.165.234 1.59.658l2.872 2.872c.425.425.659.99.659 1.59v10.63A2.252 2.252 0 0 1 19.5 18h-2.25v3.75A2.252 2.252 0 0 1 15 24H4.5zm0-16.5a.75.75 0 0 0-.75.75v13.5c0 .414.336.75.75.75H15a.75.75 0 0 0 .75-.75V11.121c0-.197-.08-.39-.219-.53l-2.872-2.872a.748.748 0 0 0-.53-.219H4.5zm15 9a.75.75 0 0 0 .75-.75V5.121c0-.197-.08-.39-.219-.53l-2.872-2.872a.748.748 0 0 0-.53-.219H9a.75.75 0 0 0-.75.75V6h3.879c.6 0 1.165.234 1.59.658l2.872 2.872c.425.425.659.99.659 1.59v5.38h2.25z",refresh:"M12.723 22.497c-1.385 0-2.737-.271-4.019-.804a.747.747 0 0 1-.404-.98.748.748 0 0 1 .98-.405 8.924 8.924 0 0 0 3.445.689 8.935 8.935 0 0 0 6.204-2.489 8.91 8.91 0 0 0 2.762-6.283 8.911 8.911 0 0 0-2.482-6.399 8.892 8.892 0 0 0-6.483-2.765 8.921 8.921 0 0 0-6.199 2.485 8.937 8.937 0 0 0-2.746 5.833c-.14 2 .375 3.948 1.462 5.589v-2.72a.75.75 0 0 1 1.5 0v4.5a.75.75 0 0 1-.75.75h-.238a.364.364 0 0 1-.096 0H1.493a.75.75 0 0 1 0-1.5h2.636a10.467 10.467 0 0 1-1.822-6.964l.007-.076.019-.197.006-.045A10.54 10.54 0 0 1 5.497 4.42a10.465 10.465 0 0 1 7.264-2.913c1.385 0 2.738.269 4.019.8a.74.74 0 0 1 .26.18 10.382 10.382 0 0 1 3.253 2.301c3.991 4.171 3.844 10.812-.327 14.803a10.43 10.43 0 0 1-7.241 2.905h-.002z",resizeHorizontal:"M5.2 2.3c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3zm6 0c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3zm6 0c0-.4.3-.8.8-.8s.8.3.8.8v19.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8V2.3z",info:"M14.6 23.5c-2.4 0-4.3-1.9-4.3-4.3v-8.5H8.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h1.6c1.5 0 2.7 1.2 2.7 2.7v8c0 1.2.9 2.1 2.1 2.1h1.6c.6 0 1.1.5 1.1 1.1s-.5 1.1-1.1 1.1h-1.6zm-4-19.2c-1 0-1.9-.9-1.9-1.9S9.6.5 10.6.5s1.9.9 1.9 1.9-.9 1.9-1.9 1.9z",sortAZ:"M8.8 0h-7C.8 0 0 .8 0 1.8v9h1.5v-4H9v3.9h1.5v-9C10.5.8 9.7 0 8.8 0zM1.5 5.4V1.8c0-.1.1-.2.2-.2h7c.2-.1.3 0 .3.2v3.6H1.5zm8.8 17.1V24H1.6c-.4 0-.9-.1-1.1-.4-.3-.3-.5-1 0-1.6l7.2-7.3H0v-1.5h8.5c.4 0 .8.2 1.1.4.5.4.5 1-.1 1.6l-7.2 7.3h8zm8.4-1.3h-.1c-.4 0-.7-.2-.9-.4l-4-4.3c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3.2 3.5V4c0-.4.3-.8.8-.8s.8.3.8.8v14.9l3.2-3.4c.1-.2.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-4 4.3c-.3.3-.6.4-.9.4h-.1z",sortZA:"M8.8 13.2h-7C.8 13.2 0 14 0 15v9h1.5v-3.9H9V24h1.5v-9c0-1-.8-1.8-1.7-1.8zm-7.3 5.4V15c0-.1.1-.2.2-.2h7c.2 0 .3.1.3.2v3.6H1.5zm8.8-9.4v1.5H1.6c-.4 0-.9-.1-1.1-.4-.3-.2-.5-.9 0-1.5l7.2-7.3H0V0h8.5c.4 0 .8.2 1.1.4.5.4.5 1-.1 1.6L2.4 9.2h7.9zm8.4 12h-.1c-.4 0-.7-.2-.9-.4l-4-4.3c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5c.1-.1.3-.2.5-.2s.4.1.5.2l3.2 3.5V4c0-.4.3-.8.8-.8s.8.3.8.8v14.9l3.2-3.4c.1-.2.3-.2.5-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-4 4.3c-.3.3-.6.4-.9.4h-.1z",leaf:"M10.257 21.851a8.3 8.3 0 0 1-6.984-3.84l-2.027 1.73a.748.748 0 0 1-1.058-.083.743.743 0 0 1-.177-.546.744.744 0 0 1 .261-.511l2.296-1.959a8.204 8.204 0 0 1-.593-3.072c0-7.309 5.71-7.938 10.748-8.492 3.287-.362 6.685-.736 8.995-2.653.236-.177.495-.265.763-.265.18 0 .354.039.517.117.366.152.647.512.719.931 1.135 6.649-1.167 11.055-3.298 13.581-2.636 3.122-6.53 5.062-10.162 5.062zm-5.831-4.824a6.777 6.777 0 0 0 5.831 3.324c3.203 0 6.657-1.736 9.016-4.532 1.882-2.23 3.908-6.098 3.031-11.947-2.593 1.944-6.059 2.326-9.416 2.696-5.259.579-9.412 1.036-9.412 7.001 0 .694.105 1.375.312 2.031l.386-.329a25.67 25.67 0 0 1 8.897-4.439.752.752 0 0 1 .85 1.094.747.747 0 0 1-.453.352 24.122 24.122 0 0 0-8.35 4.157l-.692.592z",recycle:"M5.6 24c-1.1 0-2-.8-2.2-1.9L0 2.6v-.4C0 1 1 0 2.2 0h19.5c.7 0 1.3.3 1.7.8.5.5.7 1.2.6 1.9l-3.4 19.5c-.2 1.1-1.1 1.9-2.2 1.9L5.6 24zM2.2 1.5c-.4 0-.8.3-.8.7v.1l3.4 19.5c.1.4.4.6.7.6h12.7c.4 0 .7-.3.7-.6l3.4-19.5c0-.2 0-.4-.2-.6-.1-.2-.4-.3-.6-.3l-19.3.1zm10.3 17.3c-.7 0-1.4-.1-2.1-.3-1.4-.5-2.6-1.4-3.3-2.7v1.5c0 .4-.3.8-.8.8s-.8-.3-.8-.8v-3.8c0-.4.3-.8.8-.8H10c.4 0 .8.3.8.8s-.3.8-.8.8H8.1c.5 1.3 1.6 2.3 2.9 2.7.5.2 1 .3 1.6.3.7 0 1.4-.2 2.1-.5 1.2-.6 2-1.6 2.4-2.8.1-.3.4-.5.7-.5h.2c.2.1.3.2.4.4s.1.4 0 .6c-.5 1.6-1.7 2.9-3.2 3.6-.8.4-1.7.7-2.7.7zm2.1-7.5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h2.1c-.5-1.3-1.6-2.3-2.9-2.7-.5-.2-1-.3-1.6-.3-.7 0-1.4.2-2.1.5-1.1.6-2 1.6-2.4 2.8-.1.3-.4.5-.7.5h-.2c-.4-.1-.6-.6-.5-1C6.8 7.9 8 6.6 9.5 5.9c.9-.4 1.8-.6 2.8-.6.7 0 1.4.1 2.1.3 1.4.5 2.6 1.4 3.3 2.7V6.8c-.1-.5.3-.8.7-.8s.8.3.8.8v3.8c0 .4-.3.8-.8.8h-3.8v-.1z",recycleRefresh:"M2.3 15H2c-.1 0-.2-.1-.2-.2L.3 13.3c-.3-.3-.3-.8 0-1.1.1-.1.3-.2.5-.2s.4.1.5.2l.2.2V12c0-2.3.8-4.6 2.2-6.5 2-2.6 5-4 8.3-4 2.4 0 4.6.8 6.4 2.2.2.1.3.3.3.5s0 .4-.2.6c-.1.2-.3.3-.5.3s-.3-.1-.5-.2C15.9 3.7 14 3 12 3 9.2 3 6.6 4.3 4.9 6.5 3.7 8.1 3 10 3 12v.4l.2-.2c.2-.1.4-.2.6-.2s.4.1.5.2c.1.1.2.3.2.5s-.1.4-.2.5l-1.5 1.5c-.1.1-.2.1-.2.2-.2.1-.3.1-.3.1zm9.7 7.5c-2.4 0-4.6-.8-6.4-2.2-.3-.3-.4-.7-.1-1.1.1-.2.4-.3.6-.3.2 0 .3.1.5.2C8.1 20.4 10 21 12 21c2.8 0 5.4-1.3 7.1-3.5C20.3 16 21 14 21 12v-.4l-.2.2c-.1.1-.3.2-.5.2s-.4-.1-.5-.2c-.1-.1-.2-.3-.2-.5s.1-.4.2-.5l1.5-1.5c.1-.1.2-.1.2-.2h.6c.1 0 .2.1.2.2l1.5 1.5c.1.1.2.3.2.5s-.1.4-.2.5-.3.2-.5.2-.4-.1-.5-.2l-.2-.2v.4c0 2.3-.8 4.6-2.2 6.5-2.1 2.5-5.1 4-8.4 4zM9.5 18c-.4 0-.8-.4-.7-.8 0-.5 0-.9.1-1.3-1.2-.7-2-1.5-2.3-2.5-.3-1-.1-2.2.7-3.3 1.9-2.6 4.8-4.1 8-4.1.2 0 .4.1.6.3 0 .2.1.4.1.6-.1.7 0 1.6.2 2.7.4 2.3.9 5.5-1.9 7.3-.5.3-1.1.5-1.7.5-.9 0-1.7-.3-2.3-.6v.6c-.1.3-.4.6-.8.6zm1-2.9c.3.2 1.2.7 2.1.7.3 0 .7-.1.9-.2 2-1.2 1.6-3.4 1.2-5.7-.1-.8-.3-1.6-.3-2.3-2.3.2-4.5 1.4-5.9 3.4-.5.7-.7 1.3-.5 2 .1.5.6 1 1.2 1.4.6-2.1 1.7-2.9 1.9-3 .1-.1.3-.1.4-.1.3 0 .5.1.6.3.2.3.1.8-.2 1 0 0-.9.7-1.4 2.5z",merge:"M20.62 0a3.382 3.382 0 0 0-2.39 5.77l-5.49 5.49v-4.6c1.5-.34 2.62-1.68 2.62-3.28 0-1.86-1.51-3.38-3.38-3.38S8.6 1.51 8.6 3.38c0 1.6 1.12 2.94 2.62 3.28v4.45L5.79 5.68c.57-.6.93-1.41.93-2.31 0-1.86-1.51-3.38-3.38-3.38S0 1.51 0 3.38s1.51 3.38 3.38 3.38c.41 0 .81-.09 1.17-.22l6.7 6.7v8.21l-1.72-1.72a.75.75 0 1 0-1.06 1.06l3 3c.07.07.15.13.25.17h.02c.09.03.17.05.26.05s.17-.02.26-.05c0 0 .02 0 .03-.01.09-.04.18-.09.25-.16l3-3a.75.75 0 1 0-1.06-1.06l-1.72 1.72v-8.06l6.82-6.82c.34.11.69.19 1.06.19 1.86 0 3.38-1.51 3.38-3.38S22.51 0 20.64 0ZM1.5 3.38c0-1.03.84-1.88 1.88-1.88s1.88.84 1.88 1.88-.84 1.88-1.88 1.88S1.5 4.42 1.5 3.38Zm8.62 0c0-1.03.84-1.88 1.88-1.88s1.88.84 1.88 1.88-.84 1.88-1.88 1.88-1.88-.84-1.88-1.88Zm10.5 1.87c-1.03 0-1.88-.84-1.88-1.88s.84-1.88 1.88-1.88 1.88.84 1.88 1.88-.84 1.88-1.88 1.88Z",disable:"M12 24a11.922 11.922 0 0 1-8.43-3.468.343.343 0 0 1-.099-.099A11.924 11.924 0 0 1 0 12C0 5.383 5.383 0 12 0a11.92 11.92 0 0 1 8.43 3.468.397.397 0 0 1 .099.099A11.92 11.92 0 0 1 24 12c0 6.617-5.383 12-12 12zm-6.87-4.069A10.448 10.448 0 0 0 12 22.5c5.79 0 10.5-4.71 10.5-10.5 0-2.534-.909-4.958-2.569-6.87L5.13 19.931zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 2.534.91 4.958 2.569 6.87L18.87 4.069A10.453 10.453 0 0 0 12 1.5z",globeMessage:"M23.25 24c-.05 0-.11 0-.16-.02l-5.74-1.24c-.76.38-1.58.68-2.42.89-.03 0-.05.02-.08.02-.93.23-1.89.34-2.84.34s-1.84-.11-2.77-.33c-.09 0-.18-.03-.27-.07a12.05 12.05 0 0 1-7.6-6.01C-.12 14.77-.42 11.52.53 8.46s3.03-5.58 5.86-7.07C7.24.94 8.15.59 9.09.36c.01 0 .03 0 .06-.01.91-.23 1.86-.35 2.82-.35s1.88.11 2.8.33c.07 0 .14.02.21.05 3.28.84 6.06 3.04 7.63 6.02.74 1.4 1.2 2.99 1.34 4.59.03.08.05.17.05.26 0 .05 0 .1-.02.15.01.22.02.41.02.6 0 1.91-.47 3.83-1.36 5.55-.01.03-.03.07-.05.1-.22.41-.45.79-.7 1.16l2.04 4.11c.13.26.1.57-.08.79-.15.19-.36.29-.59.29ZM9.74 22.25c.75.17 1.51.25 2.27.25s1.49-.08 2.22-.24c.67-1.06 1.22-2.52 1.61-4.26H8.12c.39 1.73.95 3.18 1.61 4.25Zm7.51-1.05c.05 0 .11 0 .16.02l4.48.97-1.55-3.12c-.13-.25-.1-.56.07-.78.07-.09.14-.19.21-.29h-3.21c-.28 1.34-.66 2.54-1.12 3.59.21-.09.41-.19.61-.3a.73.73 0 0 1 .35-.09ZM3.38 18c1.09 1.56 2.59 2.8 4.33 3.58-.46-1.04-.83-2.24-1.11-3.58H3.39Zm18.1-1.5c.67-1.41 1.02-2.96 1.02-4.5S18 12 18 12c0 1.55-.11 3.06-.33 4.5h3.81Zm-5.34 0c.23-1.45.35-2.96.35-4.5h-9c0 1.54.12 3.05.35 4.5h8.3Zm-9.82 0C6.1 15.06 6 13.55 6 12H1.49c0 1.55.35 3.09 1.02 4.5h3.81Zm16.06-5.99c-.17-1.2-.54-2.34-1.1-3.4-.2-.38-.42-.75-.67-1.1H17.4c.3 1.4.49 2.91.56 4.5h4.42Zm-5.93 0c-.08-1.57-.29-3.11-.6-4.5H8.13c-.32 1.39-.52 2.93-.6 4.5h8.92Zm-10.42 0c.07-1.59.26-3.1.56-4.5H3.37c-.62.89-1.09 1.86-1.41 2.9-.16.52-.28 1.06-.36 1.6h4.43Zm13.31-6c-.89-.87-1.92-1.57-3.06-2.08.28.63.53 1.33.74 2.08h2.31Zm-3.89 0c-.34-1.09-.74-2.01-1.2-2.75a10.5 10.5 0 0 0-4.5-.01c-.46.74-.87 1.66-1.21 2.76h6.91Zm-8.49 0c.22-.75.47-1.45.75-2.09-.21.09-.42.19-.62.3-.91.48-1.73 1.08-2.45 1.79h2.32Z"};return s.$$set=z=>{"icon"in z&&c(0,l=z.icon),"size"in z&&c(1,e=z.size)},s.$$.update=()=>{s.$$.dirty&1&&c(2,a=Z[l]),s.$$.dirty&5&&(a||console.warn(`There is no icon named %c${l} %cavailable. Not rendering anything.`,"font-weight: bold","font-weight: normal"))},[l,e,a]}class u extends C{constructor(h){super(),f(this,h,A,d,V,{icon:0,size:1})}}export{u as I}; diff --git a/gui/next/build/_app/immutable/chunks/JSONTree.B6rnjEUC.js b/gui/next/build/_app/immutable/chunks/JSONTree.B6rnjEUC.js deleted file mode 100644 index ee1894a5c..000000000 --- a/gui/next/build/_app/immutable/chunks/JSONTree.B6rnjEUC.js +++ /dev/null @@ -1,2 +0,0 @@ -import{ai as et,aj as tt,s as L,v as T,i as d,n as K,f as c,k as x,e as y,t as k,c as w,b as N,d as b,y as v,G as X,h as g,C as ne,ak as Ve,E as ee,l as H,u as Q,m as Y,o as Z,U as nt,a as z,g as D,al as ze,F as _e,A as re,j as O,ah as pe,X as me,am as he,I as V}from"./scheduler.CKQ5dLhN.js";import{S as F,i as J,t as m,a as $,c as j,d as P,m as E,g as U,e as q,f as A}from"./index.CGVWAVV-.js";import{e as te}from"./each.BWzj3zy9.js";import{w as ue,r as st}from"./index.BVJghJ2L.js";function $e(l,t){const s={},e={},n={$$scope:1};let r=l.length;for(;r--;){const a=l[r],i=t[r];if(i){for(const o in a)o in i||(e[o]=1);for(const o in i)n[o]||(s[o]=i[o],n[o]=1);l[r]=i}else for(const o in a)n[o]=1}for(const a in e)a in s||(s[a]=void 0);return s}function de(l){return typeof l=="object"&&l!==null?l:{}}const ge={};function R(l,t){const s=et(ge),e=typeof l=="function"?l(s):l,n={...s,...e};return t!=null&&t.expandable&&(n.isParentExpanded=n.expanded),tt(ge,n),s}function ve(l){let t,s,e="▶",n,r,a;return{c(){t=y("span"),s=y("span"),n=k(e),this.h()},l(i){t=w(i,"SPAN",{class:!0});var o=N(t);s=w(o,"SPAN",{class:!0});var f=N(s);n=b(f,e),f.forEach(c),o.forEach(c),this.h()},h(){v(s,"class","arrow svelte-1qd6nto"),X(s,"expanded",l[2]),v(t,"class","container svelte-1qd6nto")},m(i,o){d(i,t,o),g(t,s),g(s,n),r||(a=ne(t,"click",l[4]),r=!0)},p(i,o){o&4&&X(s,"expanded",i[2])},d(i){i&&c(t),r=!1,a()}}}function rt(l){let t,s=l[1]&&ve(l);return{c(){s&&s.c(),t=T()},l(e){s&&s.l(e),t=T()},m(e,n){s&&s.m(e,n),d(e,t,n)},p(e,[n]){e[1]?s?s.p(e,n):(s=ve(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:K,o:K,d(e){e&&c(t),s&&s.d(e)}}}function lt(l,t,s){let e,n,r=K,a=()=>(r(),r=Ve(f,_=>s(2,n=_)),f);l.$$.on_destroy.push(()=>r());const{expanded:i,expandable:o}=R();x(l,o,_=>s(1,e=_));let{expanded:f=i}=t;a();const u=_=>{_.stopPropagation(),ee(f,n=!n,n)};return l.$$set=_=>{"expanded"in _&&a(s(0,f=_.expanded))},[f,e,n,o,u]}class De extends F{constructor(t){super(),J(this,t,lt,rt,L,{expanded:0})}}function at(l){let t;const s=l[1].default,e=H(s,l,l[0],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,[r]){e&&e.p&&(!t||r&1)&&Q(e,s,n,n[0],t?Z(s,n[0],r,null):Y(n[0]),null)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function ot(l,t,s){let{$$slots:e={},$$scope:n}=t;return R({displayMode:"summary"}),l.$$set=r=>{"$$scope"in r&&s(0,n=r.$$scope)},[n,e]}class it extends F{constructor(t){super(),J(this,t,ot,at,L,{})}}function ft(l){let t;const s=l[3].default,e=H(s,l,l[2],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,[r]){e&&e.p&&(!t||r&4)&&Q(e,s,n,n[2],t?Z(s,n[2],r,null):Y(n[2]),null)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function ut(l,t,s){let{$$slots:e={},$$scope:n}=t,{expanded:r}=t,{key:a}=t;const i=ue(!1);return R(({keyPath:o,level:f})=>(a!=="[[Entries]]"&&(o=[...o,a],f=f+1),{keyPath:o,level:f,expanded:r,expandable:i})),l.$$set=o=>{"expanded"in o&&s(0,r=o.expanded),"key"in o&&s(1,a=o.key),"$$scope"in o&&s(2,n=o.$$scope)},[r,a,n,e]}class We extends F{constructor(t){super(),J(this,t,ut,ft,L,{expanded:0,key:1})}}function ke(l,t,s){const e=l.slice();return e[19]=t[s],e[21]=s,e}const ct=l=>({key:l&1}),be=l=>({key:l[19],index:l[21]}),_t=l=>({key:l&1}),ye=l=>({key:l[19],index:l[21]}),pt=l=>({}),we=l=>({root:l[6]}),mt=l=>({}),Se=l=>({});function ht(l){let t,s,e,n,r,a,i,o,f=l[6]&&dt(l);e=new it({props:{$$slots:{default:[gt]},$$scope:{ctx:l}}});let u=l[4]&&Ne(l);return{c(){t=y("span"),f&&f.c(),s=z(),j(e.$$.fragment),n=z(),u&&u.c(),r=T(),this.h()},l(_){t=w(_,"SPAN",{class:!0});var p=N(t);f&&f.l(p),s=D(p),P(e.$$.fragment,p),p.forEach(c),n=D(_),u&&u.l(_),r=T(),this.h()},h(){v(t,"class","root svelte-19drypg")},m(_,p){d(_,t,p),f&&f.m(t,null),g(t,s),E(e,t,null),d(_,n,p),u&&u.m(_,p),d(_,r,p),a=!0,i||(o=ne(t,"click",l[9]),i=!0)},p(_,p){_[6]&&f.p(_,p);const h={};p&8192&&(h.$$scope={dirty:p,ctx:_}),e.$set(h),_[4]?u?(u.p(_,p),p&16&&m(u,1)):(u=Ne(_),u.c(),m(u,1),u.m(r.parentNode,r)):u&&(U(),$(u,1,1,()=>{u=null}),q())},i(_){a||(m(f),m(e.$$.fragment,_),m(u),a=!0)},o(_){$(f),$(e.$$.fragment,_),$(u),a=!1},d(_){_&&(c(t),c(n),c(r)),f&&f.d(),A(e),u&&u.d(_),i=!1,o()}}}function $t(l){let t;const s=l[11].summary,e=H(s,l,l[13],Se);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&8192)&&Q(e,s,n,n[13],t?Z(s,n[13],r,mt):Y(n[13]),Se)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function dt(l){let t,s;return t=new De({props:{expanded:l[7]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p:K,i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function gt(l){let t;const s=l[11].preview,e=H(s,l,l[13],we);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&8192)&&Q(e,s,n,n[13],t?Z(s,n[13],r,pt):Y(n[13]),we)},i(n){t||(m(e,n),t=!0)},o(n){$(e,n),t=!1},d(n){e&&e.d(n)}}}function Ne(l){let t,s,e,n,r=te(l[0]),a=[];for(let o=0;o$(a[o],1,1,()=>{a[o]=null});return{c(){t=y("ul");for(let o=0;o{};function yt(l,t,s){let e,n,r,{$$slots:a={},$$scope:i}=t,{keys:o}=t,{shouldShowColon:f=void 0}=t,{expandKey:u=M=>M}=t,{defaultExpanded:_=!1}=t;const{isParentExpanded:p,displayMode:h,root:S,expanded:C,expandable:G,keyPath:Xe,level:He,shouldExpandNode:Qe}=R({root:!1},{expandable:!0});if(x(l,C,M=>s(4,n=M)),x(l,G,M=>s(14,r=M)),ee(G,r=!0,r),h!=="summary"){if(!_){const M=Qe({keyPath:Xe,level:He});M!==void 0&&(_=M)}nt(()=>p.subscribe(M=>{M?C.set(_):C.set(!1)}))}function Ye(){ee(C,n=!n,n)}const Ze=M=>e[M].update(xe=>!xe);return l.$$set=M=>{"keys"in M&&s(0,o=M.keys),"shouldShowColon"in M&&s(1,f=M.shouldShowColon),"expandKey"in M&&s(2,u=M.expandKey),"defaultExpanded"in M&&s(10,_=M.defaultExpanded),"$$scope"in M&&s(13,i=M.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&s(3,e=o.map(()=>ue(!1)))},[o,f,u,e,n,h,S,C,G,Ye,_,a,Ze,i]}class B extends F{constructor(t){super(),J(this,t,yt,kt,L,{keys:0,shouldShowColon:1,expandKey:2,defaultExpanded:10})}}function Ae(l,t,s){const e=l.slice();return e[9]=t[s],e[11]=s,e}const wt=l=>({item:l&1}),Pe=l=>({item:l[9],index:l[11]});function Oe(l){let t,s,e,n,r,a=l[3]&&Te(l),i=te(l[0]),o=[];for(let p=0;p$(o[p],1,1,()=>{o[p]=null});let u=l[1]&&Le(),_=l[4]&&Fe(l);return{c(){a&&a.c(),t=z();for(let p=0;p{e=null}),q())},i(n){s||(m(e),s=!0)},o(n){$(e),s=!1},d(n){n&&c(t),e&&e.d(n)}}}function Nt(l,t,s){let{$$slots:e={},$$scope:n}=t,{list:r}=t,{hasMore:a}=t,{label:i=void 0}=t,{prefix:o=void 0}=t,{postfix:f=void 0}=t,{root:u=!1}=t;const{showPreview:_}=R();return l.$$set=p=>{"list"in p&&s(0,r=p.list),"hasMore"in p&&s(1,a=p.hasMore),"label"in p&&s(2,i=p.label),"prefix"in p&&s(3,o=p.prefix),"postfix"in p&&s(4,f=p.postfix),"root"in p&&s(5,u=p.root),"$$scope"in p&&s(7,n=p.$$scope)},[r,a,i,o,f,u,_,n,e]}class se extends F{constructor(t){super(),J(this,t,Nt,St,L,{list:0,hasMore:1,label:2,prefix:3,postfix:4,root:5})}}function jt(l){let t,s=(l[1]??"{…}")+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","label")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&2&&s!==(s=(n[1]??"{…}")+"")&&O(e,s)},d(n){n&&c(t)}}}function Et(l){let t,s=l[6]+"",e,n,r=": ",a,i,o;return i=new I({props:{value:l[0][l[6]]}}),{c(){t=y("span"),e=k(s),n=y("span"),a=k(r),j(i.$$.fragment),this.h()},l(f){t=w(f,"SPAN",{class:!0});var u=N(t);e=b(u,s),u.forEach(c),n=w(f,"SPAN",{class:!0});var _=N(n);a=b(_,r),_.forEach(c),P(i.$$.fragment,f),this.h()},h(){v(t,"class","property"),v(n,"class","operator")},m(f,u){d(f,t,u),g(t,e),d(f,n,u),g(n,a),E(i,f,u),o=!0},p(f,u){(!o||u&64)&&s!==(s=f[6]+"")&&O(e,s);const _={};u&65&&(_.value=f[0][f[6]]),i.$set(_)},i(f){o||(m(i.$$.fragment,f),o=!0)},o(f){$(i.$$.fragment,f),o=!1},d(f){f&&(c(t),c(n)),A(i,f)}}}function At(l){let t,s;return t=new se({props:{list:l[3],hasMore:l[3].length({6:e}),({item:e})=>e?64:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&8&&(r.list=e[3]),n&12&&(r.hasMore=e[3].length({4:e}),({key:e})=>e?16:0],item_key:[Pt,({key:e})=>({4:e}),({key:e})=>e?16:0],preview:[At,({root:e})=>({5:e}),({root:e})=>e?32:0],summary:[jt]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&4&&(r.keys=e[2]),n&191&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Ct(l,t,s){let e,n,{value:r}=t,{summary:a}=t;return l.$$set=i=>{"value"in i&&s(0,r=i.value),"summary"in i&&s(1,a=i.summary)},l.$$.update=()=>{l.$$.dirty&1&&s(2,e=Object.getOwnPropertyNames(r)),l.$$.dirty&4&&s(3,n=e.slice(0,5))},[r,a,e,n]}class ce extends F{constructor(t){super(),J(this,t,Ct,Tt,L,{value:0,summary:1})}}function It(l){let t,s,e=l[0].length+"",n,r;return{c(){t=y("span"),s=k("Array("),n=k(e),r=k(")"),this.h()},l(a){t=w(a,"SPAN",{class:!0});var i=N(t);s=b(i,"Array("),n=b(i,e),r=b(i,")"),i.forEach(c),this.h()},h(){v(t,"class","label")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&1&&e!==(e=a[0].length+"")&&O(n,e)},d(a){a&&c(t)}}}function Mt(l){let t,s;return t=new I({props:{value:l[5]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&32&&(r.value=e[5]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Lt(l){let t,s;return t=new se({props:{list:l[1],hasMore:l[1].length({5:e}),({item:e})=>e?32:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.list=e[1]),n&3&&(r.hasMore=e[1].length({3:e}),({key:e})=>e?8:0],item_key:[Ft,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[Lt,({root:e})=>({4:e}),({root:e})=>e?16:0],summary:[It]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&4&&(r.keys=e[2]),n&91&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Bt(l,t,s){let e,n,{value:r}=t;return l.$$set=a=>{"value"in a&&s(0,r=a.value)},l.$$.update=()=>{l.$$.dirty&1&&s(2,e=Object.getOwnPropertyNames(r)),l.$$.dirty&1&&s(1,n=r.slice(0,5))},[r,n,e]}class Ut extends F{constructor(t){super(),J(this,t,Bt,Kt,L,{value:0})}}function qt(l){let t,s,e,n=l[3].length+"",r,a;return{c(){t=y("span"),s=k(l[1]),e=k("("),r=k(n),a=k(")"),this.h()},l(i){t=w(i,"SPAN",{class:!0});var o=N(t);s=b(o,l[1]),e=b(o,"("),r=b(o,n),a=b(o,")"),o.forEach(c),this.h()},h(){v(t,"class","label")},m(i,o){d(i,t,o),g(t,s),g(t,e),g(t,r),g(t,a)},p(i,o){o&2&&O(s,i[1]),o&8&&n!==(n=i[3].length+"")&&O(r,n)},d(i){i&&c(t)}}}function Rt(l){let t,s;return t=new I({props:{value:l[9]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&512&&(r.value=e[9]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Gt(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({9:e}),({item:e})=>e?512:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&20&&(r.hasMore=e[4].length({7:e}),({key:e})=>e?128:0],item_key:[Wt,({key:e})=>({7:e}),({key:e})=>e?128:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&8&&(r.keys=e[3]),n&1156&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Wt(l){let t,s=l[7]+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&128&&s!==(s=n[7]+"")&&O(e,s)},d(n){n&&c(t)}}}function Xt(l){let t,s;return t=new I({props:{value:l[2][l[7]]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&132&&(r.value=e[2][e[7]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Ht(l){let t,s,e,n;const r=[Dt,zt],a=[];function i(o,f){return o[6]===le?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(U(),$(a[u],1,1,()=>{a[u]=null}),q(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function Qt(l){let t,s;return t=new B({props:{keys:[le,"size"],shouldShowColon:l[5],$$slots:{item_value:[Ht,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[Vt,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Gt,({root:e})=>({8:e}),({root:e})=>e?256:0],summary:[qt]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&1375&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}const le="[[Entries]]";function Yt(l,t,s){let e,{value:n}=t,{nodeType:r}=t,a=[],i=[];const o=f=>f!==le;return l.$$set=f=>{"value"in f&&s(0,n=f.value),"nodeType"in f&&s(1,r=f.nodeType)},l.$$.update=()=>{if(l.$$.dirty&1){let f=[],u=[],_=0;for(const p of n)f.push(_++),u.push(p);s(3,a=f),s(2,i=u)}l.$$.dirty&4&&s(4,e=i.slice(0,5))},[n,r,i,a,e,o]}class Zt extends F{constructor(t){super(),J(this,t,Yt,Qt,L,{value:0,nodeType:1})}}function xt(l){let t,s,e=l[2].length+"",n,r;return{c(){t=y("span"),s=k("Map("),n=k(e),r=k(")"),this.h()},l(a){t=w(a,"SPAN",{color:!0});var i=N(t);s=b(i,"Map("),n=b(i,e),r=b(i,")"),i.forEach(c),this.h()},h(){v(t,"color","label")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&4&&e!==(e=a[2].length+"")&&O(n,e)},d(a){a&&c(t)}}}function en(l){let t,s,e=" => ",n,r,a;return t=new I({props:{value:l[11]}}),r=new I({props:{value:l[0].get(l[11])}}),{c(){j(t.$$.fragment),s=y("span"),n=k(e),j(r.$$.fragment),this.h()},l(i){P(t.$$.fragment,i),s=w(i,"SPAN",{class:!0});var o=N(s);n=b(o,e),o.forEach(c),P(r.$$.fragment,i),this.h()},h(){v(s,"class","operator")},m(i,o){E(t,i,o),d(i,s,o),g(s,n),E(r,i,o),a=!0},p(i,o){const f={};o&2048&&(f.value=i[11]),t.$set(f);const u={};o&2049&&(u.value=i[0].get(i[11])),r.$set(u)},i(i){a||(m(t.$$.fragment,i),m(r.$$.fragment,i),a=!0)},o(i){$(t.$$.fragment,i),$(r.$$.fragment,i),a=!1},d(i){i&&c(s),A(t,i),A(r,i)}}}function tn(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({11:e}),({item:e})=>e?2048:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&17&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[ln,({key:e})=>({8:e}),({key:e})=>e?256:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.keys=e[1]),n&4&&(r.expandKey=e[5]),n&4364&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function ln(l){let t,s=l[8]+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&256&&s!==(s=n[8]+"")&&O(e,s)},d(n){n&&c(t)}}}function an(l){let t,s="{ ",e,n,r,a=" => ",i,o,f,u=" }",_,p;return n=new I({props:{value:l[2][l[8]]}}),o=new I({props:{value:l[3][l[8]]}}),{c(){t=y("span"),e=k(s),j(n.$$.fragment),r=y("span"),i=k(a),j(o.$$.fragment),f=y("span"),_=k(u),this.h()},l(h){t=w(h,"SPAN",{class:!0});var S=N(t);e=b(S,s),S.forEach(c),P(n.$$.fragment,h),r=w(h,"SPAN",{class:!0});var C=N(r);i=b(C,a),C.forEach(c),P(o.$$.fragment,h),f=w(h,"SPAN",{class:!0});var G=N(f);_=b(G,u),G.forEach(c),this.h()},h(){v(t,"class","operator"),v(r,"class","operator"),v(f,"class","operator")},m(h,S){d(h,t,S),g(t,e),E(n,h,S),d(h,r,S),g(r,i),E(o,h,S),d(h,f,S),g(f,_),p=!0},p(h,S){const C={};S&260&&(C.value=h[2][h[8]]),n.$set(C);const G={};S&264&&(G.value=h[3][h[8]]),o.$set(G)},i(h){p||(m(n.$$.fragment,h),m(o.$$.fragment,h),p=!0)},o(h){$(n.$$.fragment,h),$(o.$$.fragment,h),p=!1},d(h){h&&(c(t),c(r),c(f)),A(n,h),A(o,h)}}}function on(l){let t,s=l[9]+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&512&&s!==(s=n[9]+"")&&O(e,s)},d(n){n&&c(t)}}}function fn(l){let t,s;return t=new I({props:{value:l[9]==="key"?l[2][l[8]]:l[3][l[8]]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&780&&(r.value=e[9]==="key"?e[2][e[8]]:e[3][e[8]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function un(l){let t,s;return t=new B({props:{keys:["key","value"],$$slots:{item_value:[fn,({key:e})=>({9:e}),({key:e})=>e?512:0],item_key:[on,({key:e})=>({9:e}),({key:e})=>e?512:0],preview:[an]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&4876&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function cn(l){let t,s,e,n;const r=[rn,sn],a=[];function i(o,f){return o[7]===ae?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(U(),$(a[u],1,1,()=>{a[u]=null}),q(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function _n(l){let t,s;return t=new B({props:{keys:[ae,"size"],shouldShowColon:l[6],$$slots:{item_value:[cn,({key:e})=>({7:e}),({key:e})=>e?128:0],item_key:[nn,({key:e})=>({7:e}),({key:e})=>e?128:0],preview:[tn,({root:e})=>({10:e}),({root:e})=>e?1024:0],summary:[xt]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&5279&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}const ae="[[Entries]]";function pn(l,t,s){let e,{value:n}=t;R();let r=[],a=[],i=[];const o=u=>a[u],f=u=>u!==ae;return l.$$set=u=>{"value"in u&&s(0,n=u.value)},l.$$.update=()=>{if(l.$$.dirty&1){let u=[],_=[],p=[],h=0;for(const S of n)u.push(h++),_.push(S[0]),p.push(S[1]);s(1,r=u),s(2,a=_),s(3,i=p)}l.$$.dirty&1&&s(4,e=Array.from(n.keys()).slice(0,5))},[n,r,a,i,e,o,f]}class mn extends F{constructor(t){super(),J(this,t,pn,_n,L,{value:0})}}function hn(l){let t,s,e;return{c(){t=y("span"),s=k(l[0]),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);s=b(r,l[0]),r.forEach(c),this.h()},h(){v(t,"class",e=pe(l[1])+" svelte-l95iub")},m(n,r){d(n,t,r),g(t,s)},p(n,[r]){r&1&&O(s,n[0]),r&2&&e!==(e=pe(n[1])+" svelte-l95iub")&&v(t,"class",e)},i:K,o:K,d(n){n&&c(t)}}}function $n(l,t,s){let{value:e,nodeType:n}=t;return l.$$set=r=>{"value"in r&&s(0,e=r.value),"nodeType"in r&&s(1,n=r.nodeType)},[e,n]}class W extends F{constructor(t){super(),J(this,t,$n,hn,L,{value:0,nodeType:1})}}function Je(l,t,s){const e=l.slice();e[6]=t[s],e[9]=s;const n=e[9]$(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a0)},m(o,f){d(o,t,f),E(s,t,null),g(t,e),g(e,r),d(o,a,f),i=!0},p(o,f){const u={};f&1&&(u.value=o[6]+(o[7]?"\\n":"")),s.$set(u),(!i||f&1)&&n!==(n=o[7]?" +":"")&&O(r,n)},i(o){i||(m(s.$$.fragment,o),i=!0)},o(o){$(s.$$.fragment,o),i=!1},d(o){o&&(c(t),c(a)),A(s)}}}function vn(l){let t,s,e,n,r,a;const i=[gn,dn],o=[];function f(u,_){return u[1]?0:1}return s=f(l),e=o[s]=i[s](l),{c(){t=y("span"),e.c()},l(u){t=w(u,"SPAN",{});var _=N(t);e.l(_),_.forEach(c)},m(u,_){d(u,t,_),o[s].m(t,null),n=!0,r||(a=ne(t,"click",l[4]),r=!0)},p(u,[_]){let p=s;s=f(u),s===p?o[s].p(u,_):(U(),$(o[p],1,1,()=>{o[p]=null}),q(),e=o[s],e?e.p(u,_):(e=o[s]=i[s](u),e.c()),m(e,1),e.m(t,null))},i(u){n||(m(e),n=!0)},o(u){$(e),n=!1},d(u){u&&c(t),o[s].d(),r=!1,a()}}}function kn(l,t,s){let e,n,{stack:r}=t;const{expanded:a,expandable:i}=R();x(l,a,f=>s(1,n=f)),x(l,i,f=>s(5,e=f)),ee(i,e=!0,e);const o=()=>ee(a,n=!n,n);return l.$$set=f=>{"stack"in f&&s(0,r=f.stack)},[r,n,a,i,o]}class bn extends F{constructor(t){super(),J(this,t,kn,vn,L,{stack:0})}}function yn(l){let t,s,e=String(l[0].message)+"",n;return{c(){t=y("span"),s=k("Error: "),n=k(e),this.h()},l(r){t=w(r,"SPAN",{class:!0});var a=N(t);s=b(a,"Error: "),n=b(a,e),a.forEach(c),this.h()},h(){v(t,"class","label")},m(r,a){d(r,t,a),g(t,s),g(t,n)},p(r,a){a&1&&e!==(e=String(r[0].message)+"")&&O(n,e)},d(r){r&&c(t)}}}function wn(l){let t,s,e=String(l[0].message)+"",n;return{c(){t=y("span"),s=k("Error: "),n=k(e),this.h()},l(r){t=w(r,"SPAN",{class:!0});var a=N(t);s=b(a,"Error: "),n=b(a,e),a.forEach(c),this.h()},h(){v(t,"class","label")},m(r,a){d(r,t,a),g(t,s),g(t,n)},p(r,a){a&1&&e!==(e=String(r[0].message)+"")&&O(n,e)},d(r){r&&c(t)}}}function Sn(l){let t,s=l[2]+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","property")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=n[2]+"")&&O(e,s)},d(n){n&&c(t)}}}function Nn(l){let t,s;return t=new I({props:{value:l[0][l[2]]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&5&&(r.value=e[0][e[2]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function jn(l){let t,s;return t=new bn({props:{stack:l[1]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&2&&(r.stack=e[1]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function En(l){let t,s,e,n;const r=[jn,Nn],a=[];function i(o,f){return o[2]==="stack"?0:1}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(U(),$(a[u],1,1,()=>{a[u]=null}),q(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function An(l){let t,s;return t=new B({props:{keys:["message","stack"],$$slots:{item_value:[En,({key:e})=>({2:e}),({key:e})=>e?4:0],item_key:[Sn,({key:e})=>({2:e}),({key:e})=>e?4:0],preview:[wn],summary:[yn]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&15&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Pn(l,t,s){let e,{value:n}=t;return l.$$set=r=>{"value"in r&&s(0,n=r.value)},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=n.stack.split(` -`))},[n,e]}class On extends F{constructor(t){super(),J(this,t,Pn,An,L,{value:0})}}function Tn(l,t){const s=Object.prototype.toString.call(l).slice(8,-1);return s==="Object"?!t&&typeof l[Symbol.iterator]=="function"?"Iterable":l.constructor.name:s}function Cn(l){let t,s,e,n;return{c(){t=y("span"),s=k('"'),e=k(l[0]),n=k('"'),this.h()},l(r){t=w(r,"SPAN",{class:!0});var a=N(t);s=b(a,'"'),e=b(a,l[0]),n=b(a,'"'),a.forEach(c),this.h()},h(){v(t,"class","svelte-1fvwa9c")},m(r,a){d(r,t,a),g(t,s),g(t,e),g(t,n)},p(r,a){a&1&&O(e,r[0])},d(r){r&&c(t)}}}function In(l){let t,s,e=l[0].slice(0,30)+(l[0].length>30?"…":""),n,r;return{c(){t=y("span"),s=k('"'),n=k(e),r=k('"'),this.h()},l(a){t=w(a,"SPAN",{class:!0});var i=N(t);s=b(i,'"'),n=b(i,e),r=b(i,'"'),i.forEach(c),this.h()},h(){v(t,"class","svelte-1fvwa9c")},m(a,i){d(a,t,i),g(t,s),g(t,n),g(t,r)},p(a,i){i&1&&e!==(e=a[0].slice(0,30)+(a[0].length>30?"…":""))&&O(n,e)},d(a){a&&c(t)}}}function Mn(l){let t;function s(r,a){return r[1]==="summary"?In:Cn}let n=s(l)(l);return{c(){n.c(),t=T()},l(r){n.l(r),t=T()},m(r,a){n.m(r,a),d(r,t,a)},p(r,[a]){n.p(r,a)},i:K,o:K,d(r){r&&c(t),n.d(r)}}}function Ln(l,t,s){let e,{value:n}=t;const r={"\n":"\\n"," ":"\\t","\r":"\\r"},{displayMode:a}=R();return l.$$set=i=>{"value"in i&&s(2,n=i.value)},l.$$.update=()=>{l.$$.dirty&4&&s(0,e=n.replace(/[\n\t\r]/g,i=>r[i]))},[e,a,n]}class Fn extends F{constructor(t){super(),J(this,t,Ln,Mn,L,{value:2})}}function Jn(l){let t,s="ƒ";return{c(){t=y("span"),t.textContent=s,this.h()},l(e){t=w(e,"SPAN",{class:!0,"data-svelte-h":!0}),re(t)!=="svelte-migemc"&&(t.textContent=s),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(e,n){d(e,t,n)},p:K,d(e){e&&c(t)}}}function Be(l){let t,s=qe(l[2])+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","fn i svelte-1eamqdt")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=qe(n[2])+"")&&O(e,s)},d(n){n&&c(t)}}}function Ue(l){let t,s=Re(l[2])+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&4&&s!==(s=Re(n[2])+"")&&O(e,s)},d(n){n&&c(t)}}}function Kn(l){let t,s,e=!l[2].isArrow&&Be(l),n=!l[2].isClass&&Ue(l);return{c(){e&&e.c(),t=T(),n&&n.c(),s=T()},l(r){e&&e.l(r),t=T(),n&&n.l(r),s=T()},m(r,a){e&&e.m(r,a),d(r,t,a),n&&n.m(r,a),d(r,s,a)},p(r,a){r[2].isArrow?e&&(e.d(1),e=null):e?e.p(r,a):(e=Be(r),e.c(),e.m(t.parentNode,t)),r[2].isClass?n&&(n.d(1),n=null):n?n.p(r,a):(n=Ue(r),n.c(),n.m(s.parentNode,s))},d(r){r&&(c(t),c(s)),e&&e.d(r),n&&n.d(r)}}}function Bn(l){let t,s=l[6]+"",e,n;return{c(){t=y("span"),e=k(s),this.h()},l(r){t=w(r,"SPAN",{class:!0});var a=N(t);e=b(a,s),a.forEach(c),this.h()},h(){v(t,"class",n=l[6]===oe||l[6]===ie?"internal":"property")},m(r,a){d(r,t,a),g(t,e)},p(r,a){a&64&&s!==(s=r[6]+"")&&O(e,s),a&64&&n!==(n=r[6]===oe||r[6]===ie?"internal":"property")&&v(t,"class",n)},d(r){r&&c(t)}}}function Un(l){let t,s;return t=new I({props:{value:l[3](l[6])}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&64&&(r.value=e[3](e[6])),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function qn(l){let t,s;return t=new ce({props:{value:l[3](l[6])}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&64&&(r.value=e[3](e[6])),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function Rn(l){let t,s;return{c(){t=y("span"),s=k(l[0]),this.h()},l(e){t=w(e,"SPAN",{class:!0});var n=N(t);s=b(n,l[0]),n.forEach(c),this.h()},h(){v(t,"class","i svelte-1eamqdt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&1&&O(s,e[0])},i:K,o:K,d(e){e&&c(t)}}}function Gn(l){let t,s,e,n;const r=[Rn,qn,Un],a=[];function i(o,f){return o[6]===oe?0:o[6]==="prototype"?1:2}return t=i(l),s=a[t]=r[t](l),{c(){s.c(),e=T()},l(o){s.l(o),e=T()},m(o,f){a[t].m(o,f),d(o,e,f),n=!0},p(o,f){let u=t;t=i(o),t===u?a[t].p(o,f):(U(),$(a[u],1,1,()=>{a[u]=null}),q(),s=a[t],s?s.p(o,f):(s=a[t]=r[t](o),s.c()),m(s,1),s.m(e.parentNode,e))},i(o){n||(m(s),n=!0)},o(o){$(s),n=!1},d(o){o&&c(e),a[t].d(o)}}}function Vn(l){let t,s;return t=new B({props:{keys:l[1],$$slots:{item_value:[Gn,({key:e})=>({6:e}),({key:e})=>e?64:0],item_key:[Bn,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[Kn],summary:[Jn]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&2&&(r.keys=e[1]),n&197&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}const oe="[[Function]]",ie="[[Prototype]]";function zn(l){const t=l.match(/^(?:(async)\s+)?(?:function)?(\*)?\s*([^(]+)?(\([^)]*\))\s*(=>)?/),s=t==null?void 0:t[1],e=t==null?void 0:t[2],n=t==null?void 0:t[3],r=t==null?void 0:t[4],a=t==null?void 0:t[5],i=l.match(/^class\s+([^\s]+)/),o=i==null?void 0:i[1];return{args:r,isAsync:s,isGenerator:e,fnName:n,isArrow:a,isClass:o}}function qe({isGenerator:l,isAsync:t,isClass:s}){return s?`class ${s}`:(t?"async ":"")+"ƒ"+(l?"*":"")}function Re({isAsync:l,isArrow:t,fnName:s,args:e}){return(t&&l?"async":"")+" "+(s??"")+e+(t?" => …":"")}function Dn(l){try{return l.toString()}catch{switch(l.constructor.name){case"AsyncFunction":return"async function () {}";case"AsyncGeneratorFunction":return"async function * () {}";case"GeneratorFunction:":return"function * () {}";default:return"function () {}"}}}function Wn(l,t,s){let e,n,r,{value:a}=t;function i(f){return f===ie?a.__proto__:a[f]}function o(f){return f===oe?!0:i(f)}return l.$$set=f=>{"value"in f&&s(4,a=f.value)},l.$$.update=()=>{l.$$.dirty&16&&s(0,e=Dn(a)),l.$$.dirty&1&&s(2,n=zn(e))},s(1,r=["length","name","prototype",oe,ie].filter(o)),[e,r,n,i,a]}class Xn extends F{constructor(t){super(),J(this,t,Wn,Vn,L,{value:4})}}function Hn(l){let t,s=l[3]?"writable(":"readable(",e,n,r=")",a,i;return n=new I({props:{value:l[2]}}),{c(){t=y("span"),e=k(s),j(n.$$.fragment),a=k(r),this.h()},l(o){t=w(o,"SPAN",{class:!0});var f=N(t);e=b(f,s),P(n.$$.fragment,f),a=b(f,r),f.forEach(c),this.h()},h(){v(t,"class","label")},m(o,f){d(o,t,f),g(t,e),E(n,t,null),g(t,a),i=!0},p(o,f){(!i||f&8)&&s!==(s=o[3]?"writable(":"readable(")&&O(e,s);const u={};f&4&&(u.value=o[2]),n.$set(u)},i(o){i||(m(n.$$.fragment,o),i=!0)},o(o){$(n.$$.fragment,o),i=!1},d(o){o&&c(t),A(n)}}}function Qn(l){let t,s=l[10]+"",e,n,r=": ",a,i,o;return i=new I({props:{value:l[0][l[10]]}}),{c(){t=y("span"),e=k(s),n=y("span"),a=k(r),j(i.$$.fragment),this.h()},l(f){t=w(f,"SPAN",{class:!0});var u=N(t);e=b(u,s),u.forEach(c),n=w(f,"SPAN",{class:!0});var _=N(n);a=b(_,r),_.forEach(c),P(i.$$.fragment,f),this.h()},h(){v(t,"class","property"),v(n,"class","operator")},m(f,u){d(f,t,u),g(t,e),d(f,n,u),g(n,a),E(i,f,u),o=!0},p(f,u){(!o||u&1024)&&s!==(s=f[10]+"")&&O(e,s);const _={};u&1025&&(_.value=f[0][f[10]]),i.$set(_)},i(f){o||(m(i.$$.fragment,f),o=!0)},o(f){$(i.$$.fragment,f),o=!1},d(f){f&&(c(t),c(n)),A(i,f)}}}function Yn(l){let t,s;return t=new se({props:{list:l[4],hasMore:l[4].length({10:e}),({item:e})=>e?1024:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&16&&(r.list=e[4]),n&18&&(r.hasMore=e[4].length({8:e}),({key:e})=>e?256:0],item_key:[Zn,({key:e})=>({8:e}),({key:e})=>e?256:0],preview:[Yn,({root:e})=>({9:e}),({root:e})=>e?512:0],summary:[Hn]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&32&&(r.keys=e[5]),n&2847&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}const fe="$value";function ts(l,t,s){let e,n,r,a,i,o,f=K,u=()=>(f(),f=Ve(_,h=>s(7,o=h)),_);l.$$.on_destroy.push(()=>f());let{value:_}=t;u();function p(h){return h===fe?a:_[h]}return l.$$set=h=>{"value"in h&&u(s(0,_=h.value))},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=Object.getOwnPropertyNames(_)),l.$$.dirty&2&&s(5,n=[fe,...e]),l.$$.dirty&2&&s(4,r=e.slice(0,5)),l.$$.dirty&128&&s(2,a=o),l.$$.dirty&1&&s(3,i=typeof _.set=="function")},[_,e,a,i,r,n,p,o]}class ns extends F{constructor(t){super(),J(this,t,ts,es,L,{value:0})}}function ss(l){let t,s,e,n=l[0].length+"",r,a;return{c(){t=y("span"),s=k(l[1]),e=k("("),r=k(n),a=k(")"),this.h()},l(i){t=w(i,"SPAN",{class:!0});var o=N(t);s=b(o,l[1]),e=b(o,"("),r=b(o,n),a=b(o,")"),o.forEach(c),this.h()},h(){v(t,"class","label")},m(i,o){d(i,t,o),g(t,s),g(t,e),g(t,r),g(t,a)},p(i,o){o&2&&O(s,i[1]),o&1&&n!==(n=i[0].length+"")&&O(r,n)},d(i){i&&c(t)}}}function rs(l){let t,s;return t=new I({props:{value:l[8]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&256&&(r.value=e[8]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function ls(l){let t,s;return t=new se({props:{list:l[2],hasMore:l[2].length({8:e}),({item:e})=>e?256:0]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&4&&(r.list=e[2]),n&5&&(r.hasMore=e[2].length({6:e}),({key:e})=>e?64:0],item_key:[as,({key:e})=>({6:e}),({key:e})=>e?64:0],preview:[ls,({root:e})=>({7:e}),({root:e})=>e?128:0],summary:[ss]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&8&&(r.keys=e[3]),n&711&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}const Ge="Symbol(Symbol.toStringTag)";function fs(l,t,s){let e,n,{value:r}=t,{nodeType:a}=t;const i=["buffer","byteLength","byteOffset","length",Ge];function o(f){return f===Ge?r[Symbol.toStringTag]:r[f]}return l.$$set=f=>{"value"in f&&s(0,r=f.value),"nodeType"in f&&s(1,a=f.nodeType)},l.$$.update=()=>{l.$$.dirty&1&&s(3,e=[...Object.getOwnPropertyNames(r),...i]),l.$$.dirty&1&&s(2,n=r.slice(0,5))},[r,a,n,e,i,o]}class us extends F{constructor(t){super(),J(this,t,fs,is,L,{value:0,nodeType:1})}}function cs(l){let t,s;return{c(){t=y("span"),s=k(l[1]),this.h()},l(e){t=w(e,"SPAN",{class:!0});var n=N(t);s=b(n,l[1]),n.forEach(c),this.h()},h(){v(t,"class","regex svelte-17k1wqt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&2&&O(s,e[1])},d(e){e&&c(t)}}}function _s(l){let t,s;return{c(){t=y("span"),s=k(l[1]),this.h()},l(e){t=w(e,"SPAN",{class:!0});var n=N(t);s=b(n,l[1]),n.forEach(c),this.h()},h(){v(t,"class","regex svelte-17k1wqt")},m(e,n){d(e,t,n),g(t,s)},p(e,n){n&2&&O(s,e[1])},d(e){e&&c(t)}}}function ps(l){let t,s=String(l[3])+"",e;return{c(){t=y("span"),e=k(s),this.h()},l(n){t=w(n,"SPAN",{class:!0});var r=N(t);e=b(r,s),r.forEach(c),this.h()},h(){v(t,"class","internal")},m(n,r){d(n,t,r),g(t,e)},p(n,r){r&8&&s!==(s=String(n[3])+"")&&O(e,s)},d(n){n&&c(t)}}}function ms(l){let t,s;return t=new I({props:{value:l[0][l[3]]}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,n){const r={};n&9&&(r.value=e[0][e[3]]),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function hs(l){let t,s;return t=new B({props:{keys:l[2],$$slots:{item_value:[ms,({key:e})=>({3:e}),({key:e})=>e?8:0],item_key:[ps,({key:e})=>({3:e}),({key:e})=>e?8:0],preview:[_s],summary:[cs]},$$scope:{ctx:l}}}),{c(){j(t.$$.fragment)},l(e){P(t.$$.fragment,e)},m(e,n){E(t,e,n),s=!0},p(e,[n]){const r={};n&27&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(m(t.$$.fragment,e),s=!0)},o(e){$(t.$$.fragment,e),s=!1},d(e){A(t,e)}}}function $s(l,t,s){let e,{value:n}=t;const r=["lastIndex","dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"];return l.$$set=a=>{"value"in a&&s(0,n=a.value)},l.$$.update=()=>{l.$$.dirty&1&&s(1,e=n.toString())},[n,e,r]}class ds extends F{constructor(t){super(),J(this,t,$s,hs,L,{value:0})}}function gs(l){let t,s,e;const n=[{value:l[0]},l[1]];var r=l[2];function a(i,o){let f={};for(let u=0;u{A(f,1)}),q()}r?(t=me(r,a(i,o)),j(t.$$.fragment),m(t.$$.fragment,1),E(t,s.parentNode,s)):t=null}else if(r){const f=o&3?$e(n,[o&1&&{value:i[0]},o&2&&de(i[1])]):{};t.$set(f)}},i(i){e||(t&&m(t.$$.fragment,i),e=!0)},o(i){t&&$(t.$$.fragment,i),e=!1},d(i){i&&c(s),t&&A(t,i)}}}function vs(l,t,s){let e,n,r,{value:a}=t;const i=ue();x(l,i,u=>s(4,r=u));const{shouldTreatIterableAsObject:o}=R();function f(u,_){switch(u){case"Object":return typeof _.subscribe=="function"?[ns]:[ce];case"Error":return[On];case"Array":return[Ut];case"Map":return[mn];case"Iterable":case"Set":return[Zt,{nodeType:u}];case"Number":return[W,{nodeType:u}];case"String":return[Fn];case"Boolean":return[W,{nodeType:u,value:_?"true":"false"}];case"Date":return[W,{nodeType:u,value:_.toISOString()}];case"Null":return[W,{nodeType:u,value:"null"}];case"Undefined":return[W,{nodeType:u,value:"undefined"}];case"Function":case"AsyncFunction":case"AsyncGeneratorFunction":case"GeneratorFunction":return[Xn];case"Symbol":return[W,{nodeType:u,value:_.toString()}];case"BigInt":return[W,{nodeType:u,value:String(_)+"n"}];case"ArrayBuffer":return[W,{nodeType:u,value:`ArrayBuffer(${_.byteLength})`}];case"BigInt64Array":case"BigUint64Array":case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint8ClampedArray":case"Uint16Array":case"Uint32Array":return[us,{nodeType:u}];case"RegExp":return[ds];default:return[ce,{summary:u}]}}return l.$$set=u=>{"value"in u&&s(0,a=u.value)},l.$$.update=()=>{l.$$.dirty&1&&ee(i,r=Tn(a,o),r),l.$$.dirty&17&&s(2,[e,n]=f(r,a),e,(s(1,n),s(4,r),s(0,a)))},[a,n,e,i,r]}class I extends F{constructor(t){super(),J(this,t,vs,gs,L,{value:0})}}function ks({defaultExpandedPaths:l,defaultExpandedLevel:t}){const s=l.map(n=>n.split("."));function e(n){e:for(const r of s){if(n.length>r.length)continue;const a=Math.min(n.length,r.length);for(let i=0;ie(u),level:0,keyPath:[],showPreview:r,shouldTreatIterableAsObject:a}),l.$$set=u=>{"value"in u&&s(0,n=u.value),"shouldShowPreview"in u&&s(2,r=u.shouldShowPreview),"shouldTreatIterableAsObject"in u&&s(3,a=u.shouldTreatIterableAsObject),"defaultExpandedPaths"in u&&s(4,i=u.defaultExpandedPaths),"defaultExpandedLevel"in u&&s(5,o=u.defaultExpandedLevel)},l.$$.update=()=>{l.$$.dirty&48&&(e=ks({defaultExpandedPaths:i,defaultExpandedLevel:o}))},[n,f,r,a,i,o]}class Ss extends F{constructor(t){super(),J(this,t,ws,ys,L,{value:0,shouldShowPreview:2,shouldTreatIterableAsObject:3,defaultExpandedPaths:4,defaultExpandedLevel:5})}}function Ns(l){let t,s,e,n;return s=new Ss({props:{value:l[0],defaultExpandedLevel:l[2]}}),{c(){t=y("div"),e=y("div"),j(s.$$.fragment),this.h()},l(r){t=w(r,"DIV",{class:!0});var a=N(t);e=w(a,"DIV",{style:!0});var i=N(e);P(s.$$.fragment,i),a.forEach(c),this.h()},h(){V(e,"display","contents"),V(e,"--json-tree-font-size","16px"),V(e,"--json-tree-li-line-height","1.7"),V(e,"--json-tree-font-family","monospace"),V(e,"--json-tree-string-color","var(--color-text)"),V(e,"--json-tree-label-color","var(--color-interaction)"),V(e,"--json-tree-property-color","var(--color-interaction)"),V(e,"--json-tree-number-color","var(--color-text-secondary)"),V(e,"--json-tree-boolean-color","var(--color-text-secondary)"),v(t,"class","svelte-1ajfzk1"),X(t,"showFullLines",l[1])},m(r,a){d(r,t,a),g(t,e),E(s,e,null),n=!0},p(r,[a]){const i={};a&1&&(i.value=r[0]),a&4&&(i.defaultExpandedLevel=r[2]),s.$set(i),(!n||a&2)&&X(t,"showFullLines",r[1])},i(r){n||(m(s.$$.fragment,r),n=!0)},o(r){$(s.$$.fragment,r),n=!1},d(r){r&&c(t),A(s)}}}function js(l,t,s){let{value:e}=t,{showFullLines:n=!1}=t,{expandedLines:r=2}=t;return l.$$set=a=>{"value"in a&&s(0,e=a.value),"showFullLines"in a&&s(1,n=a.showFullLines),"expandedLines"in a&&s(2,r=a.expandedLines)},[e,n,r]}class Ts extends F{constructor(t){super(),J(this,t,js,Ns,L,{value:0,showFullLines:1,expandedLines:2})}}export{Ts as J}; diff --git a/gui/next/build/_app/immutable/chunks/Number.B4JDnNHn.js b/gui/next/build/_app/immutable/chunks/Number.B4JDnNHn.js deleted file mode 100644 index 4406d0f8e..000000000 --- a/gui/next/build/_app/immutable/chunks/Number.B4JDnNHn.js +++ /dev/null @@ -1 +0,0 @@ -import{s as x,e as E,t as z,a as O,c as S,b as A,d as H,f as D,g as R,y as u,I as J,i as $,h,B as K,C as B,J as j,j as V,K as Z,r as ee,L as ae,H as y,z as ne}from"./scheduler.CKQ5dLhN.js";import{S as te,i as se,c as F,d as G,m as M,t as Q,a as W,f as X}from"./index.CGVWAVV-.js";import{I as Y}from"./Icon.CkKwi_WD.js";function ie(n){let l,t,b,d,w,c,g,f,L,s,I,r,_,T,N,m,k,p,o,P,C;return c=new Y({props:{icon:n[6]==="navigation"?"arrowLeft":"minus"}}),m=new Y({props:{icon:n[6]==="navigation"?"arrowRight":"minus"}}),{c(){l=E("div"),t=E("button"),b=E("span"),d=z(n[7]),w=O(),F(c.$$.fragment),L=O(),s=E("input"),I=O(),r=E("button"),_=E("span"),T=z(n[8]),N=O(),F(m.$$.fragment),this.h()},l(e){l=S(e,"DIV",{class:!0});var i=A(l);t=S(i,"BUTTON",{form:!0,class:!0,"aria-hidden":!0,"data-action":!0});var a=A(t);b=S(a,"SPAN",{class:!0});var U=A(b);d=H(U,n[7]),U.forEach(D),w=R(a),G(c.$$.fragment,a),a.forEach(D),L=R(i),s=S(i,"INPUT",{form:!0,type:!0,name:!0,id:!0,min:!0,max:!0,step:!0,style:!0,class:!0}),I=R(i),r=S(i,"BUTTON",{form:!0,class:!0,"aria-hidden":!0,"data-action":!0});var v=A(r);_=S(v,"SPAN",{class:!0});var q=A(_);T=H(q,n[8]),q.forEach(D),N=R(v),G(m.$$.fragment,v),v.forEach(D),i.forEach(D),this.h()},h(){var e;u(b,"class","label"),u(t,"form",n[1]),u(t,"class","button svelte-142ypws"),t.disabled=g=n[0]<=n[3],u(t,"aria-hidden",f=n[0]<=n[3]),u(t,"data-action","numberDecrease"),u(s,"form",n[1]),u(s,"type","number"),u(s,"name",n[2]),u(s,"id",n[2]),u(s,"min",n[3]),u(s,"max",n[4]),u(s,"step",n[5]),s.autofocus=n[9],J(s,"--max",(((e=n[4])==null?void 0:e.toString().length)||1)+"ch"),u(s,"class","svelte-142ypws"),u(_,"class","label"),u(r,"form",n[1]),u(r,"class","button svelte-142ypws"),r.disabled=k=n[0]>=n[4],u(r,"aria-hidden",p=n[0]>=n[4]),u(r,"data-action","numberIncrease"),u(l,"class","number svelte-142ypws")},m(e,i){$(e,l,i),h(l,t),h(t,b),h(b,d),h(t,w),M(c,t,null),h(l,L),h(l,s),K(s,n[0]),h(l,I),h(l,r),h(r,_),h(_,T),h(r,N),M(m,r,null),n[17](r),o=!0,n[9]&&s.focus(),P||(C=[B(t,"click",j(n[12])),B(s,"input",n[13]),B(s,"input",j(n[14])),B(s,"focusin",n[15]),B(s,"focusout",n[16]),B(r,"click",j(n[18]))],P=!0)},p(e,[i]){var v;(!o||i&128)&&V(d,e[7]);const a={};i&64&&(a.icon=e[6]==="navigation"?"arrowLeft":"minus"),c.$set(a),(!o||i&2)&&u(t,"form",e[1]),(!o||i&9&&g!==(g=e[0]<=e[3]))&&(t.disabled=g),(!o||i&9&&f!==(f=e[0]<=e[3]))&&u(t,"aria-hidden",f),(!o||i&2)&&u(s,"form",e[1]),(!o||i&4)&&u(s,"name",e[2]),(!o||i&4)&&u(s,"id",e[2]),(!o||i&8)&&u(s,"min",e[3]),(!o||i&16)&&u(s,"max",e[4]),(!o||i&32)&&u(s,"step",e[5]),(!o||i&512)&&(s.autofocus=e[9]),(!o||i&16)&&J(s,"--max",(((v=e[4])==null?void 0:v.toString().length)||1)+"ch"),i&1&&Z(s.value)!==e[0]&&K(s,e[0]),(!o||i&256)&&V(T,e[8]);const U={};i&64&&(U.icon=e[6]==="navigation"?"arrowRight":"minus"),m.$set(U),(!o||i&2)&&u(r,"form",e[1]),(!o||i&17&&k!==(k=e[0]>=e[4]))&&(r.disabled=k),(!o||i&17&&p!==(p=e[0]>=e[4]))&&u(r,"aria-hidden",p)},i(e){o||(Q(c.$$.fragment,e),Q(m.$$.fragment,e),o=!0)},o(e){W(c.$$.fragment,e),W(m.$$.fragment,e),o=!1},d(e){e&&D(l),X(c),X(m),n[17](null),P=!1,ee(C)}}}function ue(n,l,t){let{form:b}=l,{name:d}=l,{min:w=1}=l,{max:c}=l,{step:g=1}=l,{value:f=""}=l,{style:L}=l,{decreaseLabel:s=`Decrease ${d} value`}=l,{increaseLabel:I=`Increase ${d} value`}=l,r=!1,_;const T=ae();let N;function m(a){clearTimeout(N),N=setTimeout(()=>{a.submitter=_,T("input",a)},150)}const k=async a=>{t(0,f=parseInt(f)-1),await y(),m(a)};function p(){f=Z(this.value),t(0,f)}const o=a=>m(a),P=()=>t(9,r=!0),C=()=>t(9,r=!1);function e(a){ne[a?"unshift":"push"](()=>{_=a,t(10,_)})}const i=async a=>{t(0,f=parseInt(f)+1),await y(),m(a)};return n.$$set=a=>{"form"in a&&t(1,b=a.form),"name"in a&&t(2,d=a.name),"min"in a&&t(3,w=a.min),"max"in a&&t(4,c=a.max),"step"in a&&t(5,g=a.step),"value"in a&&t(0,f=a.value),"style"in a&&t(6,L=a.style),"decreaseLabel"in a&&t(7,s=a.decreaseLabel),"increaseLabel"in a&&t(8,I=a.increaseLabel)},[f,b,d,w,c,g,L,s,I,r,_,m,k,p,o,P,C,e,i]}class fe extends te{constructor(l){super(),se(this,l,ue,ie,x,{form:1,name:2,min:3,max:4,step:5,value:0,style:6,decreaseLabel:7,increaseLabel:8})}}export{fe as N}; diff --git a/gui/next/build/_app/immutable/chunks/Toggle.CtBEfrzX.js b/gui/next/build/_app/immutable/chunks/Toggle.CtBEfrzX.js deleted file mode 100644 index 066441837..000000000 --- a/gui/next/build/_app/immutable/chunks/Toggle.CtBEfrzX.js +++ /dev/null @@ -1 +0,0 @@ -import{s as X,e as E,c as j,b as T,f as m,y as f,G as H,i as g,T as Y,t as M,a as I,d as O,g as S,h as y,C as D,j as V,r as Q,n as J,M as Z}from"./scheduler.CKQ5dLhN.js";import{S as $,i as x,g as R,a as P,e as W,t as A,c as ee,d as le,m as ae,j as ue,f as te}from"./index.CGVWAVV-.js";import{f as ne}from"./index.WWWgbq8H.js";import{I as ie}from"./Icon.CkKwi_WD.js";const he=(l,e)=>{const a=n=>{n.composedPath().includes(l)||e(n)};return document.addEventListener("mousedown",a),{destroy(){document.removeEventListener("mousedown",a)}}};function se(l){let e,a=l[2][0].label+"",n,s,o,r,_,v,h,p,t,w,L,i=l[0]===l[2][0].value&&K();return{c(){e=E("label"),n=M(a),s=I(),i&&i.c(),r=I(),_=E("input"),this.h()},l(c){e=j(c,"LABEL",{for:!0,class:!0});var b=T(e);n=O(b,a),s=S(b),i&&i.l(b),b.forEach(m),r=S(c),_=j(c,"INPUT",{type:!0,name:!0,id:!0,class:!0}),this.h()},h(){f(e,"for",o="toggle-"+l[1]+"-"+l[2][0].value),f(e,"class","svelte-1j5d7bb"),f(_,"type","checkbox"),f(_,"name",l[1]),_.value=v=l[2][0].value,f(_,"id",h="toggle-"+l[1]+"-"+l[2][0].value),_.checked=p=l[0]===l[2][0].value,f(_,"class","svelte-1j5d7bb")},m(c,b){g(c,e,b),y(e,n),y(e,s),i&&i.m(e,null),g(c,r,b),g(c,_,b),t=!0,w||(L=[D(_,"keydown",l[6]),D(_,"change",l[7]),D(_,"change",l[3])],w=!0)},p(c,b){(!t||b&4)&&a!==(a=c[2][0].label+"")&&V(n,a),c[0]===c[2][0].value?i?b&5&&A(i,1):(i=K(),i.c(),A(i,1),i.m(e,null)):i&&(R(),P(i,1,1,()=>{i=null}),W()),(!t||b&6&&o!==(o="toggle-"+c[1]+"-"+c[2][0].value))&&f(e,"for",o),(!t||b&2)&&f(_,"name",c[1]),(!t||b&4&&v!==(v=c[2][0].value))&&(_.value=v),(!t||b&6&&h!==(h="toggle-"+c[1]+"-"+c[2][0].value))&&f(_,"id",h),(!t||b&5&&p!==(p=c[0]===c[2][0].value))&&(_.checked=p)},i(c){t||(A(i),t=!0)},o(c){P(i),t=!1},d(c){c&&(m(e),m(r),m(_)),i&&i.d(),w=!1,Q(L)}}}function oe(l){let e,a,n,s,o,r,_=l[2][0].label+"",v,h,p,t,w,L,i,c,b,C,N,k,B=l[2][1].label+"",U,q,G,z;return{c(){e=E("input"),o=I(),r=E("label"),v=M(_),p=I(),t=E("label"),L=I(),i=E("input"),N=I(),k=E("label"),U=M(B),this.h()},l(u){e=j(u,"INPUT",{type:!0,name:!0,id:!0,class:!0}),o=S(u),r=j(u,"LABEL",{for:!0,class:!0});var d=T(r);v=O(d,_),d.forEach(m),p=S(u),t=j(u,"LABEL",{for:!0,class:!0}),T(t).forEach(m),L=S(u),i=j(u,"INPUT",{type:!0,name:!0,id:!0,class:!0}),N=S(u),k=j(u,"LABEL",{for:!0,class:!0});var F=T(k);U=O(F,B),F.forEach(m),this.h()},h(){f(e,"type","radio"),f(e,"name",l[1]),e.value=a=l[2][0].value,e.checked=n=l[0]===l[2][0].value,f(e,"id",s="toggle-"+l[1]+"-"+l[2][0].value),f(e,"class","svelte-1j5d7bb"),f(r,"for",h="toggle-"+l[1]+"-"+l[2][0].value),f(r,"class","svelte-1j5d7bb"),f(t,"for",w="toggle-"+l[1]+"-"+(l[0]===l[2][0].value?l[2][1].value:l[2][0].value)),f(t,"class","switcher svelte-1j5d7bb"),f(i,"type","radio"),f(i,"name",l[1]),i.value=c=l[2][1].value,i.checked=b=l[0]===l[2][1].value,f(i,"id",C="toggle-"+l[1]+"-"+l[2][1].value),f(i,"class","svelte-1j5d7bb"),f(k,"for",q="toggle-"+l[1]+"-"+l[2][1].value),f(k,"class","svelte-1j5d7bb")},m(u,d){g(u,e,d),g(u,o,d),g(u,r,d),y(r,v),g(u,p,d),g(u,t,d),g(u,L,d),g(u,i,d),g(u,N,d),g(u,k,d),y(k,U),G||(z=[D(e,"keydown",l[4]),D(i,"keydown",l[5])],G=!0)},p(u,d){d&2&&f(e,"name",u[1]),d&4&&a!==(a=u[2][0].value)&&(e.value=a),d&5&&n!==(n=u[0]===u[2][0].value)&&(e.checked=n),d&6&&s!==(s="toggle-"+u[1]+"-"+u[2][0].value)&&f(e,"id",s),d&4&&_!==(_=u[2][0].label+"")&&V(v,_),d&6&&h!==(h="toggle-"+u[1]+"-"+u[2][0].value)&&f(r,"for",h),d&7&&w!==(w="toggle-"+u[1]+"-"+(u[0]===u[2][0].value?u[2][1].value:u[2][0].value))&&f(t,"for",w),d&2&&f(i,"name",u[1]),d&4&&c!==(c=u[2][1].value)&&(i.value=c),d&5&&b!==(b=u[0]===u[2][1].value)&&(i.checked=b),d&6&&C!==(C="toggle-"+u[1]+"-"+u[2][1].value)&&f(i,"id",C),d&4&&B!==(B=u[2][1].label+"")&&V(U,B),d&6&&q!==(q="toggle-"+u[1]+"-"+u[2][1].value)&&f(k,"for",q)},i:J,o:J,d(u){u&&(m(e),m(o),m(r),m(p),m(t),m(L),m(i),m(N),m(k)),G=!1,Q(z)}}}function K(l){let e,a,n,s;return a=new ie({props:{icon:"check"}}),{c(){e=E("i"),ee(a.$$.fragment),this.h()},l(o){e=j(o,"I",{class:!0});var r=T(e);le(a.$$.fragment,r),r.forEach(m),this.h()},h(){f(e,"class","svelte-1j5d7bb")},m(o,r){g(o,e,r),ae(a,e,null),s=!0},i(o){s||(A(a.$$.fragment,o),o&&(n||Z(()=>{n=ue(e,ne,{delay:50,duration:50}),n.start()})),s=!0)},o(o){P(a.$$.fragment,o),s=!1},d(o){o&&m(e),te(a)}}}function fe(l){let e,a,n,s;const o=[oe,se],r=[];function _(v,h){return v[2].length===2?0:v[2].length===1?1:-1}return~(a=_(l))&&(n=r[a]=o[a](l)),{c(){e=E("div"),n&&n.c(),this.h()},l(v){e=j(v,"DIV",{class:!0});var h=T(e);n&&n.l(h),h.forEach(m),this.h()},h(){f(e,"class","toggle svelte-1j5d7bb"),H(e,"single",l[2].length===1)},m(v,h){g(v,e,h),~a&&r[a].m(e,null),s=!0},p(v,[h]){let p=a;a=_(v),a===p?~a&&r[a].p(v,h):(n&&(R(),P(r[p],1,1,()=>{r[p]=null}),W()),~a?(n=r[a],n?n.p(v,h):(n=r[a]=o[a](v),n.c()),A(n,1),n.m(e,null)):n=null),(!s||h&4)&&H(e,"single",v[2].length===1)},i(v){s||(A(n),s=!0)},o(v){P(n),s=!1},d(v){v&&m(e),~a&&r[a].d()}}}function re(l,e,a){let{name:n}=e,{options:s=[]}=e,{checked:o=s.length>1?s[0].value.toString():""}=e;function r(t){Y.call(this,l,t)}const _=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?s[1].value:s[0].value))},v=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?s[1].value:s[0].value))},h=t=>{t.code==="Space"&&(t.preventDefault(),a(0,o=o===s[0].value?"":s[0].value))},p=t=>a(0,o=t.target.checked?s[0].value:"");return l.$$set=t=>{"name"in t&&a(1,n=t.name),"options"in t&&a(2,s=t.options),"checked"in t&&a(0,o=t.checked)},[o,n,s,r,_,v,h,p]}class be extends ${constructor(e){super(),x(this,e,re,fe,X,{name:1,options:2,checked:0})}}export{be as T,he as c}; diff --git a/gui/next/build/_app/immutable/chunks/each.BWzj3zy9.js b/gui/next/build/_app/immutable/chunks/each.BWzj3zy9.js deleted file mode 100644 index 79eb2d952..000000000 --- a/gui/next/build/_app/immutable/chunks/each.BWzj3zy9.js +++ /dev/null @@ -1 +0,0 @@ -import{a as z,t as B}from"./index.CGVWAVV-.js";import{r as C}from"./scheduler.CKQ5dLhN.js";function G(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function H(n,o){z(n,1,1,()=>{o.delete(n.key)})}function I(n,o,x,D,A,g,f,j,p,k,w,q){let i=n.length,d=g.length,c=i;const a={};for(;c--;)a[n[c].key]=c;const h=[],u=new Map,m=new Map,M=[];for(c=d;c--;){const e=q(A,g,c),s=x(e);let t=f.get(s);t?M.push(()=>t.p(e,o)):(t=k(s,e),t.c()),u.set(s,h[c]=t),s in a&&m.set(s,Math.abs(c-a[s]))}const v=new Set,S=new Set;function y(e){B(e,1),e.m(j,w),f.set(e.key,e),w=e.first,d--}for(;i&&d;){const e=h[d-1],s=n[i-1],t=e.key,l=s.key;e===s?(w=e.first,i--,d--):u.has(l)?!f.has(t)||v.has(t)?y(e):S.has(l)?i--:m.get(t)>m.get(l)?(S.add(t),y(e)):(v.add(l),i--):(p(s,f),i--)}for(;i--;){const e=n[i];u.has(e.key)||p(e,f)}for(;d;)y(h[d-1]);return C(M),h}export{G as e,H as o,I as u}; diff --git a/gui/next/build/_app/immutable/chunks/entry.COceLI_i.js b/gui/next/build/_app/immutable/chunks/entry.COceLI_i.js deleted file mode 100644 index ede038a17..000000000 --- a/gui/next/build/_app/immutable/chunks/entry.COceLI_i.js +++ /dev/null @@ -1,3 +0,0 @@ -import{H as ut,U as dt}from"./scheduler.CKQ5dLhN.js";import{w as pe}from"./index.BVJghJ2L.js";new URL("sveltekit-internal://");function ht(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function pt(e){return e.split("%25").map(decodeURI).join("%25")}function gt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const mt=["href","pathname","search","toString","toJSON"];function yt(e,n,t){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),a[o](s));n();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of mt)Object.defineProperty(r,a,{get(){return n(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",wt=".html__data.json";function vt(e){return e.endsWith(".html")?e.replace(/\.html$/,wt):e.replace(/\/$/,"")+_t}function bt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let r=t.length;for(;r;)n=n*33^t.charCodeAt(--r)}else if(ArrayBuffer.isView(t)){const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let a=r.length;for(;a;)n=n*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function At(e){const n=atob(e),t=new Uint8Array(n.length);for(let r=0;r((e instanceof Request?e.method:(n==null?void 0:n.method)||"GET")!=="GET"&&B.delete(ge(e)),Ve(e,n));const B=new Map;function kt(e,n){const t=ge(e,n),r=document.querySelector(t);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&B.set(t,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=At(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,n)}function Et(e,n,t){if(B.size>0){const r=ge(e,t),a=B.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return n.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return n.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(l=>parseInt(l,16))));const d=St.exec(c),[,h,y,u,g]=d;return n.push({name:u,matcher:g,optional:!!h,rest:!!y,chained:y?f===1&&i[0]==="":!1}),y?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:n}}function It(e){return!/^\([^)]+\)$/.test(e)}function Ut(e){return e.slice(1).split("/").filter(It)}function Tt(e,n,t){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),f===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||t[c.matcher](f)){r[c.name]=f;const d=n[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:n,dictionary:t,matchers:r}){const a=new Set(n);return Object.entries(t).map(([s,[c,f,d]])=>{const{pattern:h,params:y}=Rt(s),u={id:s,exec:g=>{const l=h.exec(g);if(l)return Tt(l,y,r)},errors:[1,...d||[]].map(g=>e[g]),layouts:[0,...f||[]].map(i),leaf:o(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Be(e,n=JSON.parse){try{return n(sessionStorage[e])}catch{}}function Te(e,n,t=JSON.stringify){const r=t(n);try{sessionStorage[e]=r}catch{}}var $e;const T=(($e=globalThis.__sveltekit_177hw6r)==null?void 0:$e.base)??"";var Fe;const xt=((Fe=globalThis.__sveltekit_177hw6r)==null?void 0:Fe.assets)??T,Pt="1750758919196",Ge="sveltekit:snapshot",Me="sveltekit:scroll",qe="sveltekit:states",Nt="sveltekit:pageurl",j="sveltekit:history",M="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},K=location.origin;function He(e){if(e instanceof URL)return e;let n=document.baseURI;if(!n){const t=document.getElementsByTagName("base");n=t.length?t[0].href:document.URL}return new URL(e,n)}function me(){return{x:pageXOffset,y:pageYOffset}}function O(e,n){return e.getAttribute(`data-sveltekit-${n}`)}const Le={...Y,"":Y.hover};function Ke(e){let n=e.assignedSlot??e.parentNode;return(n==null?void 0:n.nodeType)===11&&(n=n.host),n}function We(e,n){for(;e&&e!==n;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ke(e)}}function ue(e,n){let t;try{t=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!t||!!r||ne(t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(t==null?void 0:t.origin)===K&&e.hasAttribute("download");return{url:t,external:a,target:r,download:o}}function J(e){let n=null,t=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=O(s,"preload-code")),a===null&&(a=O(s,"preload-data")),n===null&&(n=O(s,"keepfocus")),t===null&&(t=O(s,"noscroll")),o===null&&(o=O(s,"reload")),i===null&&(i=O(s,"replacestate")),s=Ke(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Le[r??"off"],preload_data:Le[a??"off"],keepfocus:c(n),noscroll:c(t),reload:c(o),replace_state:c(i)}}function xe(e){const n=pe(e);let t=!0;function r(){t=!0,n.update(i=>i)}function a(i){t=!1,n.set(i)}function o(i){let s;return n.subscribe(c=>{(s===void 0||t&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Ct(){const{set:e,subscribe:n}=pe(!1);let t;async function r(){clearTimeout(t);try{const a=await fetch(`${xt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Pt;return i&&(e(!0),clearTimeout(t)),i}catch{return!1}}return{subscribe:n,check:r}}function ne(e,n){return e.origin!==K||!e.pathname.startsWith(n)}function Pe(e){const n=jt(e),t=new ArrayBuffer(n.length),r=new DataView(t);for(let a=0;a>16),n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255),t=r=0);return r===12?(t>>=4,n+=String.fromCharCode(t)):r===18&&(t>>=2,n+=String.fromCharCode((t&65280)>>8),n+=String.fromCharCode(t&255)),n}const Dt=-1,$t=-2,Ft=-3,Vt=-4,Bt=-5,Gt=-6;function Mt(e,n){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,r=Array(t.length);function a(o,i=!1){if(o===Dt)return;if(o===Ft)return NaN;if(o===Vt)return 1/0;if(o===Bt)return-1/0;if(o===Gt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=t[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],f=n==null?void 0:n[c];if(f)return r[o]=f(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let u=1;un!=null)}class re{constructor(n,t){this.status=n,typeof t=="string"?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${n}`}}toString(){return JSON.stringify(this.body)}}class Je{constructor(n,t){this.status=n,this.location=t}}class ye extends Error{constructor(n,t,r){super(r),this.status=n,this.text=t}}const Kt="x-sveltekit-invalidated",Wt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof ye?e.status:500}function Yt(e){return e instanceof ye?e.text:"Internal Error"}const C=Be(Me)??{},q=Be(Ge)??{},x={url:xe({}),page:xe({}),navigating:pe(null),updated:Ct()};function _e(e){C[e]=me()}function Jt(e,n){let t=e+1;for(;C[t];)delete C[t],t+=1;for(t=n+1;q[t];)delete q[t],t+=1}function $(e){return location.href=e.href,new Promise(()=>{})}async function ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}function Ne(){}let ae,de,X,L,he,F;const Xe=[],Z=[];let R=null;const we=[],Ze=[];let N=[],_={branch:[],error:null,url:null},ve=!1,Q=!1,Ce=!0,H=!1,V=!1,Qe=!1,be=!1,Ae,E,U,I,ee;const G=new Set;async function cn(e,n,t){var a,o;document.URL!==location.href&&(location.href=location.href),F=e,ae=Lt(e),L=document.documentElement,he=n,de=e.nodes[0],X=e.nodes[1],de(),X(),E=(a=history.state)==null?void 0:a[j],U=(o=history.state)==null?void 0:o[M],E||(E=U=Date.now(),history.replaceState({...history.state,[j]:E,[M]:U},""));const r=C[E];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),t?await rn(he,t):tn(location.href,{replaceState:!0}),nn()}function zt(){Xe.length=0,be=!1}function et(e){Z.some(n=>n==null?void 0:n.snapshot)&&(q[e]=Z.map(n=>{var t;return(t=n==null?void 0:n.snapshot)==null?void 0:t.capture()}))}function tt(e){var n;(n=q[e])==null||n.forEach((t,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(t)})}function Oe(){_e(E),Te(Me,C),et(U),Te(Ge,q)}async function nt(e,n,t,r){return W({type:"goto",url:He(e),keepfocus:n.keepFocus,noscroll:n.noScroll,replace_state:n.replaceState,state:n.state,redirect_count:t,nav_token:r,accept:()=>{n.invalidateAll&&(be=!0)}})}async function Xt(e){if(e.id!==(R==null?void 0:R.id)){const n={};G.add(n),R={id:e.id,token:n,promise:at({...e,preload:n}).then(t=>(G.delete(n),t.type==="loaded"&&t.state.error&&(R=null),t))}}return R.promise}async function fe(e){const n=ae.find(t=>t.exec(ot(e)));n&&await Promise.all([...n.layouts,n.leaf].map(t=>t==null?void 0:t[1]()))}function rt(e,n,t){var o;_=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),I=e.props.page,Ae=new F.root({target:n,props:{...e.props,stores:x,components:Z},hydrate:t,sync:!1}),tt(U);const a={from:null,to:{params:_.params,route:{id:((o=_.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(i=>i(a)),Q=!0}function te({url:e,params:n,branch:t,status:r,error:a,route:o,form:i}){let s="never";if(T&&(e.pathname===T||e.pathname===T+"/"))s="always";else for(const u of t)(u==null?void 0:u.slash)!==void 0&&(s=u.slash);e.pathname=ht(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:n,branch:t,error:a,route:o},props:{constructors:Ht(t).map(u=>u.node.component),page:I}};i!==void 0&&(c.props.form=i);let f={},d=!I,h=0;for(let u=0;u(s&&(c.route=!0),l[m])}),params:new Proxy(r,{get:(l,m)=>(s&&c.params.add(m),l[m])}),data:(o==null?void 0:o.data)??null,url:yt(t,()=>{s&&(c.url=!0)},l=>{s&&c.search_params.add(l)}),async fetch(l,m){let b;l instanceof Request?(b=l.url,m={body:l.method==="GET"||l.method==="HEAD"?void 0:await l.blob(),cache:l.cache,credentials:l.credentials,headers:l.headers,integrity:l.integrity,keepalive:l.keepalive,method:l.method,mode:l.mode,redirect:l.redirect,referrer:l.referrer,referrerPolicy:l.referrerPolicy,signal:l.signal,...m}):b=l;const S=new URL(b,t);return s&&u(S.href),S.origin===t.origin&&(b=S.href.slice(t.origin.length)),Q?Et(b,S.href,m):kt(b,m)},setHeaders:()=>{},depends:u,parent(){return s&&(c.parent=!0),n()},untrack(l){s=!1;try{return l()}finally{s=!0}}};i=await f.universal.load.call(null,g)??null}return{node:f,loader:e,server:o,universal:(h=f.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((y=f.universal)==null?void 0:y.trailingSlash)??(o==null?void 0:o.slash)}}function je(e,n,t,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&t)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==_.params[i])return!0;for(const i of a.dependencies)if(Xe.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}function Zt(e,n){if(!e)return new Set(n.searchParams.keys());const t=new Set([...e.searchParams.keys(),...n.searchParams.keys()]);for(const r of t){const a=e.searchParams.getAll(r),o=n.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&t.delete(r)}return t}function De({error:e,url:n,route:t,params:r}){return{type:"loaded",state:{error:e,url:n,route:t,params:r,branch:[]},props:{page:I,constructors:[]}}}async function at({id:e,invalidating:n,url:t,params:r,route:a,preload:o}){if((R==null?void 0:R.id)===e)return G.delete(R.token),R.promise;const{errors:i,layouts:s,leaf:c}=a,f=[...s,c];i.forEach(p=>p==null?void 0:p().catch(()=>{})),f.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let d=null;const h=_.url?e!==_.url.pathname+_.url.search:!1,y=_.route?a.id!==_.route.id:!1,u=Zt(_.url,t);let g=!1;const l=f.map((p,v)=>{var P;const A=_.branch[v],k=!!(p!=null&&p[0])&&((A==null?void 0:A.loader)!==p[1]||je(g,y,h,u,(P=A.server)==null?void 0:P.uses,r));return k&&(g=!0),k});if(l.some(Boolean)){try{d=await ct(t,l)}catch(p){const v=await D(p,{url:t,params:r,route:{id:e}});return G.has(o)?De({error:v,url:t,params:r,route:a}):oe({status:z(p),error:v,url:t,route:a})}if(d.type==="redirect")return d}const m=d==null?void 0:d.nodes;let b=!1;const S=f.map(async(p,v)=>{var se;if(!p)return;const A=_.branch[v],k=m==null?void 0:m[v];if((!k||k.type==="skip")&&p[1]===(A==null?void 0:A.loader)&&!je(b,y,h,u,(se=A.universal)==null?void 0:se.uses,r))return A;if(b=!0,(k==null?void 0:k.type)==="error")throw k;return ke({loader:p[1],url:t,params:r,route:a,parent:async()=>{var Ue;const Ie={};for(let ie=0;ie{});const w=[];for(let p=0;pPromise.resolve({}),server_data_node:Ee(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:t,params:a,branch:[s,c],status:e,error:n,route:null})}function Se(e,n){if(!e||ne(e,T))return;let t;try{t=F.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=ot(t);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:n,route:a,params:gt(o),url:e}}}function ot(e){return pt(e.slice(T.length)||"/")}function st({url:e,type:n,intent:t,delta:r}){let a=!1;const o=ft(_,t,e,n);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||we.forEach(s=>s(i)),a?null:o}async function W({type:e,url:n,popped:t,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:f=Ne,block:d=Ne}){const h=Se(n,!1),y=st({url:n,type:e,delta:t==null?void 0:t.delta,intent:h});if(!y){d();return}const u=E,g=U;f(),H=!0,Q&&x.navigating.set(y.navigation),ee=c;let l=h&&await at(h);if(!l){if(ne(n,T))return await $(n);l=await it(n,{id:null},await D(new ye(404,"Not Found",`Not found: ${n.pathname}`),{url:n,params:{},route:{id:null}}),404)}if(n=(h==null?void 0:h.url)||n,ee!==c)return y.reject(new Error("navigation aborted")),!1;if(l.type==="redirect")if(s>=20)l=await oe({status:500,error:await D(new Error("Redirect loop"),{url:n,params:{},route:{id:null}}),url:n,route:{id:null}});else return nt(new URL(l.location,n).href,{},s+1,c),!1;else l.props.page.status>=400&&await x.updated.check()&&(await ze(),await $(n));if(zt(),_e(u),et(g),l.props.page.url.pathname!==n.pathname&&(n.pathname=l.props.page.url.pathname),i=t?t.state:i,!t){const w=o?0:1,p={[j]:E+=w,[M]:U+=w,[qe]:i};(o?history.replaceState:history.pushState).call(history,p,"",n),o||Jt(E,U)}if(R=null,l.props.page.state=i,Q){_=l.state,l.props.page&&(l.props.page.url=n);const w=(await Promise.all(Ze.map(p=>p(y.navigation)))).filter(p=>typeof p=="function");if(w.length>0){let p=function(){N=N.filter(v=>!w.includes(v))};w.push(p),N.push(...w)}Ae.$set(l.props),Qe=!0}else rt(l,he,!1);const{activeElement:m}=document;await ut();const b=t?t.scroll:a?me():null;if(Ce){const w=n.hash&&document.getElementById(decodeURIComponent(n.hash.slice(1)));b?scrollTo(b.x,b.y):w?w.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==m&&document.activeElement!==document.body;!r&&!S&&an(),Ce=!0,l.props.page&&(I=l.props.page),H=!1,e==="popstate"&&tt(U),y.fulfil(void 0),N.forEach(w=>w(y.navigation)),x.navigating.set(null)}async function it(e,n,t,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await oe({status:r,error:t,url:e,route:n}):await $(e)}function en(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function n(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",n),L.addEventListener("touchstart",n,{passive:!0});const t=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),t.unobserve(i.target))},{threshold:0});function r(o,i){const s=We(o,L);if(!s)return;const{url:c,external:f,download:d}=ue(s,T);if(f||d)return;const h=J(s),y=c&&_.url.pathname+_.url.search===c.pathname+c.search;if(!h.reload&&!y)if(i<=h.preload_data){const u=Se(c,!1);u&&Xt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){t.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,T);if(s||c)continue;const f=J(o);f.reload||(f.preload_code===Y.viewport&&t.observe(o),f.preload_code===Y.eager&&fe(i.pathname))}}N.push(a),a()}function D(e,n){if(e instanceof re)return e.body;const t=z(e),r=Yt(e);return F.hooks.handleError({error:e,event:n,status:t,message:r})??{message:r}}function Re(e,n){dt(()=>(e.push(n),()=>{const t=e.indexOf(n);e.splice(t,1)}))}function ln(e){Re(N,e)}function fn(e){Re(we,e)}function un(e){Re(Ze,e)}function tn(e,n={}){return e=He(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):nt(e,n,0)}function nn(){var n;history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Oe(),!H){const a=ft(_,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Oe()}),(n=navigator.connection)!=null&&n.saveData||en(),L.addEventListener("click",async t=>{var y;if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=We(t.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=ue(r,T);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=J(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){st({url:a,type:"link"})?H=!0:t.preventDefault();return}const[d,h]=a.href.split("#");if(h!==void 0&&d===ce(location)){const[,u]=_.url.href.split("#");if(u===h){t.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(y=r.ownerDocument.getElementById(decodeURIComponent(h)))==null||y.scrollIntoView();return}if(V=!0,_e(E),e(a),!c.replace_state)return;V=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),W({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const s=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ne(s,T))return;const c=t.target,f=J(c);if(f.reload)return;t.preventDefault(),t.stopPropagation();const d=new FormData(c),h=a==null?void 0:a.getAttribute("name");h&&d.append(h,(a==null?void 0:a.getAttribute("value"))??""),s.search=new URLSearchParams(d).toString(),W({type:"form",url:s,keepfocus:f.keepfocus,noscroll:f.noscroll,replace_state:f.replace_state??s.href===location.href})}),addEventListener("popstate",async t=>{var r;if((r=t.state)!=null&&r[j]){const a=t.state[j];if(ee={},a===E)return;const o=C[a],i=t.state[qe]??{},s=new URL(t.state[Nt]??location.href),c=t.state[M],f=ce(location)===ce(_.url);if(c===U&&(Qe||f)){e(s),C[E]=me(),o&&scrollTo(o.x,o.y),i!==I.state&&(I={...I,state:i},Ae.$set({page:I})),E=a;return}const h=a-E;await W({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{E=a,U=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[j]:++E,[M]:U},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(null)});function e(t){_.url=t,x.page.set({...I,url:t}),x.page.notify()}}async function rn(e,{status:n=200,error:t,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let f;try{const d=r.map(async(u,g)=>{const l=i[g];return l!=null&&l.uses&&(l.uses=lt(l.uses)),ke({loader:F.nodes[u],url:c,params:a,route:o,parent:async()=>{const m={};for(let b=0;bu===o.id);if(y){const u=y.layouts;for(let g=0;go?"1":"0").join(""));const r=await Ve(t.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new re(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function f(y){return Mt(y,{Promise:u=>new Promise((g,l)=>{i.set(u,{fulfil:g,reject:l})})})}let d="";for(;;){const{done:y,value:u}=await s.read();if(y&&!d)break;for(d+=!u&&d?` -`:c.decode(u,{stream:!0});;){const g=d.indexOf(` -`);if(g===-1)break;const l=JSON.parse(d.slice(0,g));if(d=d.slice(g+1),l.type==="redirect")return o(l);if(l.type==="data")(h=l.nodes)==null||h.forEach(m=>{(m==null?void 0:m.type)==="data"&&(m.uses=lt(m.uses),m.data=f(m.data))}),o(l);else if(l.type==="chunk"){const{id:m,data:b,error:S}=l,w=i.get(m);i.delete(m),S?w.reject(f(S)):w.fulfil(f(b))}}}})}function lt(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function an(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=document.body,t=n.getAttribute("tabindex");n.tabIndex=-1,n.focus({preventScroll:!0,focusVisible:!1}),t!==null?n.setAttribute("tabindex",t):n.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=d,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:t&&{params:(n==null?void 0:n.params)??null,route:{id:((f=n==null?void 0:n.route)==null?void 0:f.id)??null},url:t},willUnload:!n,type:r,complete:i},fulfil:a,reject:o}}export{ln as a,fn as b,cn as c,tn as g,un as o,x as s}; diff --git a/gui/next/build/_app/immutable/chunks/network.hGAcGvnf.js b/gui/next/build/_app/immutable/chunks/hGAcGvnf.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/network.hGAcGvnf.js rename to gui/next/build/_app/immutable/chunks/hGAcGvnf.js diff --git a/gui/next/build/_app/immutable/chunks/index.iVSWiVfi.js b/gui/next/build/_app/immutable/chunks/iVSWiVfi.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/index.iVSWiVfi.js rename to gui/next/build/_app/immutable/chunks/iVSWiVfi.js diff --git a/gui/next/build/_app/immutable/chunks/index.BVJghJ2L.js b/gui/next/build/_app/immutable/chunks/index.BVJghJ2L.js deleted file mode 100644 index 7e8ed418e..000000000 --- a/gui/next/build/_app/immutable/chunks/index.BVJghJ2L.js +++ /dev/null @@ -1 +0,0 @@ -import{n as b,s as l}from"./scheduler.CKQ5dLhN.js";const n=[];function h(e,o){return{subscribe:p(e,o).subscribe}}function p(e,o=b){let r;const i=new Set;function u(t){if(l(e,t)&&(e=t,r)){const c=!n.length;for(const s of i)s[1](),n.push(s,e);if(c){for(let s=0;s{i.delete(s),i.size===0&&r&&(r(),r=null)}}return{set:u,update:f,subscribe:a}}export{h as r,p as w}; diff --git a/gui/next/build/_app/immutable/chunks/index.CGVWAVV-.js b/gui/next/build/_app/immutable/chunks/index.CGVWAVV-.js deleted file mode 100644 index 1274273e7..000000000 --- a/gui/next/build/_app/immutable/chunks/index.CGVWAVV-.js +++ /dev/null @@ -1,4 +0,0 @@ -var K=Object.defineProperty;var Q=(t,e,n)=>e in t?K(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var z=(t,e,n)=>Q(t,typeof e!="symbol"?e+"":e,n);import{n as v,a4 as T,f as D,a5 as W,r as M,Z as k,M as j,a6 as X,q as F,a7 as q,b as Y,S as tt,a8 as et,a9 as nt,aa as it,R as B,ab as st,ac as rt,ad as at,ae as ot,af as ft}from"./scheduler.CKQ5dLhN.js";const L=typeof window<"u";let U=L?()=>window.performance.now():()=>Date.now(),N=L?t=>requestAnimationFrame(t):v;const x=new Set;function V(t){x.forEach(e=>{e.c(t)||(x.delete(e),e.f())}),x.size!==0&&N(V)}function Z(t){let e;return x.size===0&&N(V),{promise:new Promise(n=>{x.add(e={c:t,f:n})}),abort(){x.delete(e)}}}const C=new Map;let P=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function lt(t,e){const n={stylesheet:W(e),rules:{}};return C.set(t,n),n}function A(t,e,n,i,l,o,u,s=0){const c=16.666/i;let r=`{ -`;for(let _=0;_<=1;_+=c){const g=e+(n-e)*o(_);r+=_*100+`%{${u(g,1-g)}} -`}const $=r+`100% {${u(n,1-n)}} -}`,f=`__svelte_${ut($)}_${s}`,m=T(t),{stylesheet:h,rules:a}=C.get(m)||lt(m,t);a[f]||(a[f]=!0,h.insertRule(`@keyframes ${f} ${$}`,h.cssRules.length));const d=t.style.animation||"";return t.style.animation=`${d?`${d}, `:""}${f} ${i}ms linear ${l}ms 1 both`,P+=1,f}function I(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),l=n.length-i.length;l&&(t.style.animation=i.join(", "),P-=l,P||ct())}function ct(){N(()=>{P||(C.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&D(e)}),C.clear())})}let S;function G(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function E(t,e,n){t.dispatchEvent(X(`${e?"intro":"outro"}${n}`))}const R=new Set;let p;function yt(){p={r:0,c:[],p}}function wt(){p.r||M(p.c),p=p.p}function dt(t,e){t&&t.i&&(R.delete(t),t.i(e))}function xt(t,e,n,i){if(t&&t.o){if(R.has(t))return;R.add(t),p.c.push(()=>{R.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const H={duration:0};function vt(t,e,n){const i={direction:"in"};let l=e(t,n,i),o=!1,u,s,c=0;function r(){u&&I(t,u)}function $(){const{delay:m=0,duration:h=300,easing:a=F,tick:d=v,css:_}=l||H;_&&(u=A(t,0,1,h,m,a,_,c++)),d(0,1);const g=U()+m,b=g+h;s&&s.abort(),o=!0,j(()=>E(t,!0,"start")),s=Z(y=>{if(o){if(y>=b)return d(1,0),E(t,!0,"end"),r(),o=!1;if(y>=g){const w=a((y-g)/h);d(w,1-w)}}return o})}let f=!1;return{start(){f||(f=!0,I(t),k(l)?(l=l(i),G().then($)):$())},invalidate(){f=!1},end(){o&&(r(),o=!1)}}}function bt(t,e,n,i){let o=e(t,n,{direction:"both"}),u=i?0:1,s=null,c=null,r=null,$;function f(){r&&I(t,r)}function m(a,d){const _=a.b-u;return d*=Math.abs(_),{a:u,b:a.b,d:_,duration:d,start:a.start,end:a.start+d,group:a.group}}function h(a){const{delay:d=0,duration:_=300,easing:g=F,tick:b=v,css:y}=o||H,w={start:U()+d,b:a};a||(w.group=p,p.r+=1),"inert"in t&&(a?$!==void 0&&(t.inert=$):($=t.inert,t.inert=!0)),s||c?c=w:(y&&(f(),r=A(t,u,a,_,d,g,y)),a&&b(0,1),s=m(w,_),j(()=>E(t,a,"start")),Z(O=>{if(c&&O>c.start&&(s=m(c,_),c=null,E(t,s.b,"start"),y&&(f(),r=A(t,u,s.b,s.duration,0,g,o.css))),s){if(O>=s.end)b(u=s.b,1-u),E(t,s.b,"end"),c||(s.b?f():--s.group.r||M(s.group.c)),s=null;else if(O>=s.start){const J=O-s.start;u=s.a+s.d*g(J/s.duration),b(u,1-u)}}return!!(s||c)}))}return{run(a){k(o)?G().then(()=>{o=o({direction:a?"in":"out"}),h(a)}):h(a)},end(){f(),s=c=null}}}function St(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Et(t){t&&t.c()}function Mt(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:i,after_update:l}=t.$$;i&&i.m(e,n),j(()=>{const o=t.$$.on_mount.map(st).filter(k);t.$$.on_destroy?t.$$.on_destroy.push(...o):M(o),t.$$.on_mount=[]}),l.forEach(j)}function $t(t,e){const n=t.$$;n.fragment!==null&&(nt(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(rt.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const a=h.length?h[0]:m;return r.ctx&&l(r.ctx[f],r.ctx[f]=a)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](a),$&&ht(t,f)),m}):[],r.update(),$=!0,M(r.before_update),r.fragment=i?i(r.ctx):!1,e.target){if(e.hydrate){ot();const f=Y(e.target);r.fragment&&r.fragment.l(f),f.forEach(D)}else r.fragment&&r.fragment.c();e.intro&&dt(t.$$.fragment),_t(t,e.target,e.anchor),ft(),tt()}B(c)}class Rt{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){$t(this,1),this.$destroy=v}$on(e,n){if(!k(n))return v;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const mt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);export{Rt as S,xt as a,St as b,Et as c,Mt as d,wt as e,$t as f,yt as g,bt as h,Ot as i,vt as j,_t as m,dt as t}; diff --git a/gui/next/build/_app/immutable/chunks/index.WWWgbq8H.js b/gui/next/build/_app/immutable/chunks/index.WWWgbq8H.js deleted file mode 100644 index fdb8eb5e8..000000000 --- a/gui/next/build/_app/immutable/chunks/index.WWWgbq8H.js +++ /dev/null @@ -1 +0,0 @@ -import{q as n}from"./scheduler.CKQ5dLhN.js";function r(t,{delay:o=0,duration:e=400,easing:i=n}={}){const a=+getComputedStyle(t).opacity;return{delay:o,duration:e,easing:i,css:c=>`opacity: ${c*a}`}}export{r as f}; diff --git a/gui/next/build/_app/immutable/chunks/n7YEDvJi.js b/gui/next/build/_app/immutable/chunks/n7YEDvJi.js new file mode 100644 index 000000000..670ab998a --- /dev/null +++ b/gui/next/build/_app/immutable/chunks/n7YEDvJi.js @@ -0,0 +1,4 @@ +var vt=Object.defineProperty;var Et=(t,e,n)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>Et(t,typeof e!="symbol"?e+"":e,n);function x(){}const it=t=>t;function At(t,e){for(const n in e)t[n]=e[n];return t}function Xt(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function rt(t){return t()}function Z(){return Object.create(null)}function C(t){t.forEach(rt)}function L(t){return typeof t=="function"}function Yt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let O;function Zt(t,e){return t===e?!0:(O||(O=document.createElement("a")),O.href=e,t===O.href)}function Nt(t){return Object.keys(t).length===0}function Tt(t,...e){if(t==null){for(const i of e)i(void 0);return x}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function te(t,e,n){t.$$.on_destroy.push(Tt(e,n))}function ee(t,e,n,i){if(t){const r=st(t,e,n,i);return t[0](r)}}function st(t,e,n,i){return t[1]&&i?At(n.ctx.slice(),t[1](i(e))):n.ctx}function ne(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(e.dirty.length,r.length);for(let c=0;c32){const e=[],n=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),X=ot?t=>requestAnimationFrame(t):x;const N=new Set;function at(t){N.forEach(e=>{e.c(t)||(N.delete(e),e.f())}),N.size!==0&&X(at)}function lt(t){let e;return N.size===0&&X(at),{promise:new Promise(n=>{N.add(e={c:t,f:n})}),abort(){N.delete(e)}}}let I=!1;function kt(){I=!0}function Ct(){I=!1}function St(t,e,n,i){for(;t>1);n(r)<=i?t=r+1:e=r}return t}function Mt(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const a=[];for(let l=0;l0&&e[n[r]].claim_order<=l?r+1:St(1,r,m=>e[n[m]].claim_order,l))-1;i[a]=n[d]+1;const u=d+1;n[u]=a,r=Math.max(u,r)}const s=[],o=[];let c=e.length-1;for(let a=n[r]+1;a!=0;a=i[a-1]){for(s.push(e[a-1]);c>=a;c--)o.push(e[c]);c--}for(;c>=0;c--)o.push(e[c]);s.reverse(),o.sort((a,l)=>a.claim_order-l.claim_order);for(let a=0,l=0;a=s[l].claim_order;)l++;const d=lt.removeEventListener(e,n,i)}function fe(t){return function(e){return e.preventDefault(),t.call(this,e)}}function de(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function _e(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function he(t){return t.dataset.svelteH}function me(t,e,n){const i=new Set;for(let r=0;rt.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function ge(t){return t===""?null:+t}function zt(t){return Array.from(t.childNodes)}function _t(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function ht(t,e,n,i,r=!1){_t(t);const s=(()=>{for(let o=t.claim_info.last_index;o=0;o--){const c=t[o];if(e(c)){const a=n(c);return a===void 0?t.splice(o,1):t[o]=a,r?a===void 0&&t.claim_info.last_index--:t.claim_info.last_index=o,c}}return i()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function mt(t,e,n,i){return ht(t,r=>r.nodeName===e,r=>{const s=[];for(let o=0;or.removeAttribute(o))},()=>i(e))}function ye(t,e,n){return mt(t,e,n,F)}function $e(t,e,n){return mt(t,e,n,dt)}function Ot(t,e){return ht(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>Y(e),!0)}function be(t){return Ot(t," ")}function et(t,e,n){for(let i=n;i{o.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{s=tt(i.contentWindow,"resize",e),e()}),ut(t,i),()=>{(r||s&&i.contentWindow)&&s(),k(i)}}function ke(t,e,n){t.classList.toggle(e,!!n)}function pt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function Ce(t,e){const n=[];let i=0;for(const r of e.childNodes)if(r.nodeType===8){const s=r.textContent.trim();s===`HEAD_${t}_END`?(i-=1,n.push(r)):s===`HEAD_${t}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}class qt{constructor(e=!1){y(this,"is_svg",!1);y(this,"e");y(this,"n");y(this,"t");y(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=dt(n.nodeName):this.e=F(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n>>0}function Wt(t,e){const n={stylesheet:Dt(e),rules:{}};return B.set(t,n),n}function J(t,e,n,i,r,s,o,c=0){const a=16.666/i;let l=`{ +`;for(let h=0;h<=1;h+=a){const g=e+(n-e)*s(h);l+=h*100+`%{${o(g,1-g)}} +`}const d=l+`100% {${o(n,1-n)}} +}`,u=`__svelte_${Bt(d)}_${c}`,m=ft(t),{stylesheet:p,rules:f}=B.get(m)||Wt(m,t);f[u]||(f[u]=!0,p.insertRule(`@keyframes ${u} ${d}`,p.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${u} ${i}ms linear ${r}ms 1 both`,W+=1,u}function K(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(t.style.animation=i.join(", "),W-=r,W||It())}function It(){X(()=>{W||(B.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&k(e)}),B.clear())})}let H;function D(t){H=t}function b(){if(!H)throw new Error("Function called outside component initialization");return H}function Me(t){b().$$.before_update.push(t)}function De(t){b().$$.on_mount.push(t)}function je(t){b().$$.after_update.push(t)}function He(t){b().$$.on_destroy.push(t)}function Pe(){const t=b();return(e,n,{cancelable:i=!1}={})=>{const r=t.$$.callbacks[e];if(r){const s=pt(e,n,{cancelable:i});return r.slice().forEach(o=>{o.call(t,s)}),!s.defaultPrevented}return!0}}function Le(t,e){return b().$$.context.set(t,e),e}function ze(t){return b().$$.context.get(t)}function Oe(){return b().$$.context}function Re(t){return b().$$.context.has(t)}function qe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const A=[],nt=[];let T=[];const Q=[],gt=Promise.resolve();let V=!1;function yt(){V||(V=!0,gt.then($t))}function Be(){return yt(),gt}function P(t){T.push(t)}function We(t){Q.push(t)}const U=new Set;let E=0;function $t(){if(E!==0)return;const t=H;do{try{for(;Et.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),T=e}let M;function bt(){return M||(M=Promise.resolve(),M.then(()=>{M=null})),M}function j(t,e,n){t.dispatchEvent(pt(`${e?"intro":"outro"}${n}`))}const q=new Set;let $;function Ie(){$={r:0,c:[],p:$}}function Fe(){$.r||C($.c),$=$.p}function Ut(t,e){t&&t.i&&(q.delete(t),t.i(e))}function Ge(t,e,n,i){if(t&&t.o){if(q.has(t))return;q.add(t),$.c.push(()=>{q.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const xt={duration:0};function Ue(t,e,n){const i={direction:"in"};let r=e(t,n,i),s=!1,o,c,a=0;function l(){o&&K(t,o)}function d(){const{delay:m=0,duration:p=300,easing:f=it,tick:_=x,css:h}=r||xt;h&&(o=J(t,0,1,p,m,f,h,a++)),_(0,1);const g=ct()+m,S=g+p;c&&c.abort(),s=!0,P(()=>j(t,!0,"start")),c=lt(w=>{if(s){if(w>=S)return _(1,0),j(t,!0,"end"),l(),s=!1;if(w>=g){const v=f((w-g)/p);_(v,1-v)}}return s})}let u=!1;return{start(){u||(u=!0,K(t),L(r)?(r=r(i),bt().then(d)):d())},invalidate(){u=!1},end(){s&&(l(),s=!1)}}}function Je(t,e,n,i){let s=e(t,n,{direction:"both"}),o=i?0:1,c=null,a=null,l=null,d;function u(){l&&K(t,l)}function m(f,_){const h=f.b-o;return _*=Math.abs(h),{a:o,b:f.b,d:h,duration:_,start:f.start,end:f.start+_,group:f.group}}function p(f){const{delay:_=0,duration:h=300,easing:g=it,tick:S=x,css:w}=s||xt,v={start:ct()+_,b:f};f||(v.group=$,$.r+=1),"inert"in t&&(f?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),c||a?a=v:(w&&(u(),l=J(t,o,f,h,_,g,w)),f&&S(0,1),c=m(v,h),P(()=>j(t,f,"start")),lt(z=>{if(a&&z>a.start&&(c=m(a,h),a=null,j(t,c.b,"start"),w&&(u(),l=J(t,o,c.b,c.duration,0,g,s.css))),c){if(z>=c.end)S(o=c.b,1-o),j(t,c.b,"end"),a||(c.b?u():--c.group.r||C(c.group.c)),c=null;else if(z>=c.start){const wt=z-c.start;o=c.a+c.d*g(wt/c.duration),S(o,1-o)}}return!!(c||a)}))}return{run(f){L(s)?bt().then(()=>{s=s({direction:f?"in":"out"}),p(f)}):p(f)},end(){u(),c=a=null}}}function Ke(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Qe(t){t&&t.c()}function Ve(t,e){t&&t.l(e)}function Jt(t,e,n){const{fragment:i,after_update:r}=t.$$;i&&i.m(e,n),P(()=>{const s=t.$$.on_mount.map(rt).filter(L);t.$$.on_destroy?t.$$.on_destroy.push(...s):C(s),t.$$.on_mount=[]}),r.forEach(P)}function Kt(t,e){const n=t.$$;n.fragment!==null&&(Gt(n.after_update),C(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Qt(t,e){t.$$.dirty[0]===-1&&(A.push(t),yt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const f=p.length?p[0]:m;return l.ctx&&r(l.ctx[u],l.ctx[u]=f)&&(!l.skip_bound&&l.bound[u]&&l.bound[u](f),d&&Qt(t,u)),m}):[],l.update(),d=!0,C(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){kt();const u=zt(e.target);l.fragment&&l.fragment.l(u),u.forEach(k)}else l.fragment&&l.fragment.c();e.intro&&Ut(t.$$.fragment),Jt(t,e.target,e.anchor),Ct(),$t()}D(a)}class Ye{constructor(){y(this,"$$");y(this,"$$set")}$destroy(){Kt(this,1),this.$destroy=x}$on(e,n){if(!L(n))return x;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Nt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{Xt as $,$e as A,dt as B,nt as C,Ke as D,Kt as E,ve as F,We as G,Fe as H,Jt as I,tt as J,he as K,Ve as L,Qe as M,oe as N,ae as O,Be as P,ke as Q,Ie as R,Ye as S,Ee as T,ge as U,fe as V,Pe as W,P as X,Je as Y,xe as Z,G as _,we as a,b as a0,D as a1,$t as a2,Ue as a3,qe as a4,De as a5,Me as a6,je as a7,Se as a8,ce as a9,me as aa,pe as ab,L as ac,Zt as ad,Ae as ae,He as af,Ne as ag,Te as ah,se as ai,ze as aj,Le as ak,Tt as al,de as am,At as an,Oe as ao,Re as ap,Lt as b,Ht as c,k as d,ye as e,zt as f,Ot as g,be as h,Xe as i,F as j,le as k,te as l,ee as m,x as n,Ge as o,Ut as p,re as q,ne as r,Yt as s,Y as t,ie as u,Ce as v,it as w,C as x,ue as y,_e as z}; diff --git a/gui/next/build/_app/immutable/chunks/parseValue.BxCUwhRQ.js b/gui/next/build/_app/immutable/chunks/parseValue.BxCUwhRQ.js deleted file mode 100644 index 4cff1efd2..000000000 --- a/gui/next/build/_app/immutable/chunks/parseValue.BxCUwhRQ.js +++ /dev/null @@ -1 +0,0 @@ -import{t as n}from"./tryParseJSON.x4PJc0Qf.js";const s=(r,t)=>{let e={value:r,type:t};return r==null?(e.value=null,e.type="null",{...e}):(t==="boolean"&&(r===!0?e.value="true":e.value="false"),typeof r=="object"?(e.value=r,e.type="json",{...e}):n(r)?(e.value=n(r),e.type="jsonEscaped",{...e}):{...e,original:{value:r,type:t}})};export{s as p}; diff --git a/gui/next/build/_app/immutable/chunks/scheduler.CKQ5dLhN.js b/gui/next/build/_app/immutable/chunks/scheduler.CKQ5dLhN.js deleted file mode 100644 index 0b01eda25..000000000 --- a/gui/next/build/_app/immutable/chunks/scheduler.CKQ5dLhN.js +++ /dev/null @@ -1 +0,0 @@ -var W=Object.defineProperty;var I=(t,e,n)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var f=(t,e,n)=>I(t,typeof e!="symbol"?e+"":e,n);function M(){}const ut=t=>t;function G(t,e){for(const n in e)t[n]=e[n];return t}function ft(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function U(t){return t()}function dt(){return Object.create(null)}function F(t){t.forEach(U)}function J(t){return typeof t=="function"}function _t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let p;function ht(t,e){return t===e?!0:(p||(p=document.createElement("a")),p.href=e,t===p.href)}function mt(t){return Object.keys(t).length===0}function K(t,...e){if(t==null){for(const i of e)i(void 0);return M}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function pt(t,e,n){t.$$.on_destroy.push(K(e,n))}function yt(t,e,n,i){if(t){const s=j(t,e,n,i);return t[0](s)}}function j(t,e,n,i){return t[1]&&i?G(n.ctx.slice(),t[1](i(e))):n.ctx}function bt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],r=Math.max(e.dirty.length,s.length);for(let l=0;l32){const e=[],n=t.ctx.length/32;for(let i=0;i>1);n(s)<=i?t=s+1:e=s}return t}function V(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let a=0;a0&&e[n[s]].claim_order<=a?s+1:Q(1,s,R=>e[n[R]].claim_order,a))-1;i[c]=n[u]+1;const C=u+1;n[C]=c,s=Math.max(C,s)}const o=[],r=[];let l=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(o.push(e[c-1]);l>=c;l--)r.push(e[l]);l--}for(;l>=0;l--)r.push(e[l]);o.reverse(),r.sort((c,a)=>c.claim_order-a.claim_order);for(let c=0,a=0;c=o[a].claim_order;)a++;const u=at.removeEventListener(e,n,i)}function Dt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ht(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Mt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function jt(t){return t.dataset.svelteH}function Lt(t,e,n){const i=new Set;for(let s=0;st.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function qt(t){return t===""?null:+t}function zt(t){return Array.from(t.childNodes)}function q(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function z(t,e,n,i,s=!1){q(t);const o=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const l=t[r];if(e(l)){const c=n(l);return c===void 0?t.splice(r,1):t[r]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,l}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function B(t,e,n,i){return z(t,s=>s.nodeName===e,s=>{const o=[];for(let r=0;rs.removeAttribute(r))},()=>i(e))}function Bt(t,e,n){return B(t,e,n,w)}function Ot(t,e,n){return B(t,e,n,P)}function et(t,e){return z(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>k(e),!0)}function Rt(t){return et(t," ")}function D(t,e,n){for(let i=n;i{r.source===i.contentWindow&&e()})):(i.src="about:blank",i.onload=()=>{o=S(i.contentWindow,"resize",e),e()}),L(t,i),()=>{(s||o&&i.contentWindow)&&o(),b(i)}}function Qt(t,e,n){t.classList.toggle(e,!!n)}function it(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function Vt(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const o=s.textContent.trim();o===`HEAD_${t}_END`?(i-=1,n.push(s)):o===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}class st{constructor(e=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=P(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n{const s=t.$$.callbacks[e];if(s){const o=it(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,o)}),!o.defaultPrevented}return!0}}function ne(t,e){return d().$$.context.set(t,e),e}function ie(t){return d().$$.context.get(t)}function se(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const m=[],H=[];let h=[];const T=[],O=Promise.resolve();let A=!1;function rt(){A||(A=!0,O.then(ct))}function re(){return rt(),O}function ot(t){h.push(t)}function oe(t){T.push(t)}const N=new Set;let _=0;function ct(){if(_!==0)return;const t=g;do{try{for(;_t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),h=e}export{Lt as $,jt as A,Gt as B,S as C,oe as D,Et as E,kt as F,Qt as G,re as H,Ut as I,Dt as J,qt as K,ee as L,ot as M,E as N,Wt as O,ft as P,d as Q,v as R,ct as S,se as T,Zt as U,Yt as V,$t as W,Xt as X,vt as Y,J as Z,Pt as _,Ct as a,ht as a0,Ft as a1,te as a2,Jt as a3,X as a4,At as a5,it as a6,dt as a7,mt as a8,ce as a9,g as aa,U as ab,m as ac,rt as ad,Nt as ae,Tt as af,Kt as ag,wt as ah,ie as ai,ne as aj,K as ak,Ht as al,G as am,zt as b,Bt as c,et as d,w as e,b as f,Rt as g,Z as h,tt as i,It as j,pt as k,yt as l,xt as m,M as n,bt as o,Vt as p,ut as q,F as r,_t as s,k as t,gt as u,St as v,P as w,Ot as x,Mt as y,H as z}; diff --git a/gui/next/build/_app/immutable/chunks/state.nqMW8J5l.js b/gui/next/build/_app/immutable/chunks/state.nqMW8J5l.js deleted file mode 100644 index 54b818ff9..000000000 --- a/gui/next/build/_app/immutable/chunks/state.nqMW8J5l.js +++ /dev/null @@ -1 +0,0 @@ -import{w as g}from"./index.BVJghJ2L.js";const p=b();function b(){const o=localStorage.view?JSON.parse(localStorage.view):null,e={};e.header=localStorage.header?JSON.parse(localStorage.header):["database","users","logs"],e.online=void 0,e.logs={},e.logsv2={},e.logv2={},e.networks={},e.network={},e.tables=[],e.table={},e.view={database:o!=null&&o.database?o.database:"table",tableStyle:o!=null&&o.tableStyle?o.tableStyle:"collapsed"},e.records={},e.record=null,e.highlighted={record:null,constant:null},e.filters={page:1,attributes:[{attribute_type:"id",name:"id",operation:"value",value:""}],deleted:"false"},e.sort={by:"created_at",order:"DESC"},e.notifications=[],e.asideWidth=localStorage.asideWidth?localStorage.asideWidth:!1,e.users=[];const{subscribe:s,set:d,update:i}=g(e),c=(a,t)=>{i(r=>(r[a]=t,r))},u=()=>{i(a=>(a.filters={page:1,attributes:[{attribute_type:"id",name:"id",operation:"value",value:""}],deleted:"false"},a.sort={by:"created_at",order:"DESC"},a))};let n;const l=(a,t)=>{i(r=>(r.highlighted[a]=t,r)),clearTimeout(n),n=setTimeout(()=>{l("record",null),l("constant",null)},7e3)};return{subscribe:s,set:d,data:c,clearFilters:u,highlight:l,notification:{create:(a,t)=>{i(r=>(r.notifications.push({id:Date.now(),type:a,message:t}),r))},remove:a=>{i(t=>(t.notifications=t.notifications.filter(r=>r.id!==a),t))}},setView:a=>{i(t=>(t.view={...t.view,...a},localStorage.view=JSON.stringify(t.view),t))}}}export{p as s}; diff --git a/gui/next/build/_app/immutable/chunks/stores.BLuxmlax.js b/gui/next/build/_app/immutable/chunks/stores.BLuxmlax.js deleted file mode 100644 index b1ffecb99..000000000 --- a/gui/next/build/_app/immutable/chunks/stores.BLuxmlax.js +++ /dev/null @@ -1 +0,0 @@ -import{s as e}from"./entry.COceLI_i.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/gui/next/build/_app/immutable/chunks/table.Cmn0kCDk.js b/gui/next/build/_app/immutable/chunks/t7b_BBSP.js similarity index 86% rename from gui/next/build/_app/immutable/chunks/table.Cmn0kCDk.js rename to gui/next/build/_app/immutable/chunks/t7b_BBSP.js index 55606296d..3afdb0cfd 100644 --- a/gui/next/build/_app/immutable/chunks/table.Cmn0kCDk.js +++ b/gui/next/build/_app/immutable/chunks/t7b_BBSP.js @@ -1,4 +1,4 @@ -import{g as t}from"./graphql.BD1m7lx9.js";const i={get:e=>t({query:` +import{g as t}from"./BD1m7lx9.js";const i={get:e=>t({query:` query( $per_page: Int $id: ID diff --git a/gui/next/build/_app/immutable/chunks/logsv2.twsCDidx.js b/gui/next/build/_app/immutable/chunks/twsCDidx.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/logsv2.twsCDidx.js rename to gui/next/build/_app/immutable/chunks/twsCDidx.js diff --git a/gui/next/build/_app/immutable/chunks/tryParseJSON.x4PJc0Qf.js b/gui/next/build/_app/immutable/chunks/x4PJc0Qf.js similarity index 100% rename from gui/next/build/_app/immutable/chunks/tryParseJSON.x4PJc0Qf.js rename to gui/next/build/_app/immutable/chunks/x4PJc0Qf.js diff --git a/gui/next/build/_app/immutable/entry/app.29ZgMR6r.js b/gui/next/build/_app/immutable/entry/app.29ZgMR6r.js deleted file mode 100644 index 8110af9b7..000000000 --- a/gui/next/build/_app/immutable/entry/app.29ZgMR6r.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DvMuco06.js","../chunks/scheduler.CKQ5dLhN.js","../chunks/index.CGVWAVV-.js","../chunks/stores.BLuxmlax.js","../chunks/entry.COceLI_i.js","../chunks/index.BVJghJ2L.js","../chunks/table.Cmn0kCDk.js","../chunks/graphql.BD1m7lx9.js","../chunks/state.nqMW8J5l.js","../chunks/Icon.CkKwi_WD.js","../chunks/each.BWzj3zy9.js","../chunks/index.WWWgbq8H.js","../assets/0.QmKtTD0U.css","../nodes/1.B1ovvcWz.js","../nodes/2.CeKUIDP3.js","../chunks/backgroundJob.cWe0itmY.js","../chunks/Number.B4JDnNHn.js","../assets/Number.AfD80Zdm.css","../assets/2.Cpa7KQFv.css","../nodes/3.DPd-OXBN.js","../nodes/4.DzlISiii.js","../assets/4.B9XykGLe.css","../nodes/5.DPd-OXBN.js","../nodes/6.BbecMI95.js","../chunks/globals.D0QH3NT1.js","../chunks/logsv2.twsCDidx.js","../assets/6.Dkbf0VAa.css","../nodes/7.DIZjSVTI.js","../chunks/network.hGAcGvnf.js","../chunks/Toggle.CtBEfrzX.js","../assets/Toggle.o--CU0Za.css","../assets/7.DGvLR7j3.css","../nodes/8.DaJnnOWR.js","../chunks/index.iVSWiVfi.js","../chunks/user.CRviTK4n.js","../chunks/buildMutationIngredients.BkeFH9yg.js","../chunks/parseValue.BxCUwhRQ.js","../chunks/tryParseJSON.x4PJc0Qf.js","../assets/8.CufhmNsu.css","../nodes/9.C0seAjWB.js","../assets/9.DZfDyU61.css","../nodes/10.BOVZRVUg.js","../nodes/11.DGqxXEVk.js","../chunks/Aside.CzwHeuWZ.js","../assets/Aside.HqXgbmTR.css","../chunks/JSONTree.B6rnjEUC.js","../assets/JSONTree.Do8jmj2M.css","../assets/11.O9jYhcLF.css","../nodes/12.DEQesRsU.js","../assets/12.PIDpwlWF.css","../nodes/13.BeNxU1VC.js","../nodes/14.DYE1QyX1.js","../assets/14.EFLSpW2v.css","../nodes/15.BII74jAo.js","../assets/15.DRRvXzxG.css","../nodes/16.BOVZRVUg.js","../nodes/17.CkW4N9sZ.js","../assets/17.DZjOGisr.css","../nodes/18.BOVZRVUg.js","../nodes/19.8Kp_zJo7.js","../assets/19.CBlI4doA.css","../nodes/20.CuxZsU7V.js","../nodes/21.CCu7Jrf_.js","../assets/21.BIXMQND7.css"])))=>i.map(i=>d[i]); -import{s as B,a as j,v as p,g as J,i as w,f as g,W,U as z,e as H,c as X,b as F,y,I as R,t as G,d as K,j as Q,z as T,X as b,H as Y}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Z,i as M,a as d,e as I,t as h,g as D,c as v,d as V,m as k,f as P}from"../chunks/index.CGVWAVV-.js";const x="modulepreload",ee=function(_,e){return new URL(_,e).href},S={},u=function(e,i,s){let r=Promise.resolve();if(i&&i.length>0){const t=document.getElementsByTagName("link"),n=document.querySelector("meta[property=csp-nonce]"),o=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));r=Promise.allSettled(i.map(l=>{if(l=ee(l,s),l in S)return;S[l]=!0;const a=l.endsWith(".css"),m=a?'[rel="stylesheet"]':"";if(!!s)for(let A=t.length-1;A>=0;A--){const O=t[A];if(O.href===l&&(!a||O.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const E=document.createElement("link");if(E.rel=a?"stylesheet":x,a||(E.as="script"),E.crossOrigin="",E.href=l,o&&E.setAttribute("nonce",o),document.head.appendChild(E),a)return new Promise((A,O)=>{E.addEventListener("load",A),E.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${l}`)))})}))}function c(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return r.then(t=>{for(const n of t||[])n.status==="rejected"&&c(n.reason);return e().catch(c)})},ce={};function te(_){let e,i,s;var r=_[1][0];function c(t,n){return{props:{data:t[3],form:t[2]}}}return r&&(e=b(r,c(_)),_[15](e)),{c(){e&&v(e.$$.fragment),i=p()},l(t){e&&V(e.$$.fragment,t),i=p()},m(t,n){e&&k(e,t,n),w(t,i,n),s=!0},p(t,n){if(n&2&&r!==(r=t[1][0])){if(e){D();const o=e;d(o.$$.fragment,1,0,()=>{P(o,1)}),I()}r?(e=b(r,c(t)),t[15](e),v(e.$$.fragment),h(e.$$.fragment,1),k(e,i.parentNode,i)):e=null}else if(r){const o={};n&8&&(o.data=t[3]),n&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&h(e.$$.fragment,t),s=!0)},o(t){e&&d(e.$$.fragment,t),s=!1},d(t){t&&g(i),_[15](null),e&&P(e,t)}}}function ie(_){let e,i,s;var r=_[1][0];function c(t,n){return{props:{data:t[3],$$slots:{default:[se]},$$scope:{ctx:t}}}}return r&&(e=b(r,c(_)),_[14](e)),{c(){e&&v(e.$$.fragment),i=p()},l(t){e&&V(e.$$.fragment,t),i=p()},m(t,n){e&&k(e,t,n),w(t,i,n),s=!0},p(t,n){if(n&2&&r!==(r=t[1][0])){if(e){D();const o=e;d(o.$$.fragment,1,0,()=>{P(o,1)}),I()}r?(e=b(r,c(t)),t[14](e),v(e.$$.fragment),h(e.$$.fragment,1),k(e,i.parentNode,i)):e=null}else if(r){const o={};n&8&&(o.data=t[3]),n&65591&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)}},i(t){s||(e&&h(e.$$.fragment,t),s=!0)},o(t){e&&d(e.$$.fragment,t),s=!1},d(t){t&&g(i),_[14](null),e&&P(e,t)}}}function ne(_){let e,i,s;var r=_[1][1];function c(t,n){return{props:{data:t[4],form:t[2]}}}return r&&(e=b(r,c(_)),_[13](e)),{c(){e&&v(e.$$.fragment),i=p()},l(t){e&&V(e.$$.fragment,t),i=p()},m(t,n){e&&k(e,t,n),w(t,i,n),s=!0},p(t,n){if(n&2&&r!==(r=t[1][1])){if(e){D();const o=e;d(o.$$.fragment,1,0,()=>{P(o,1)}),I()}r?(e=b(r,c(t)),t[13](e),v(e.$$.fragment),h(e.$$.fragment,1),k(e,i.parentNode,i)):e=null}else if(r){const o={};n&16&&(o.data=t[4]),n&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&h(e.$$.fragment,t),s=!0)},o(t){e&&d(e.$$.fragment,t),s=!1},d(t){t&&g(i),_[13](null),e&&P(e,t)}}}function re(_){let e,i,s;var r=_[1][1];function c(t,n){return{props:{data:t[4],$$slots:{default:[oe]},$$scope:{ctx:t}}}}return r&&(e=b(r,c(_)),_[12](e)),{c(){e&&v(e.$$.fragment),i=p()},l(t){e&&V(e.$$.fragment,t),i=p()},m(t,n){e&&k(e,t,n),w(t,i,n),s=!0},p(t,n){if(n&2&&r!==(r=t[1][1])){if(e){D();const o=e;d(o.$$.fragment,1,0,()=>{P(o,1)}),I()}r?(e=b(r,c(t)),t[12](e),v(e.$$.fragment),h(e.$$.fragment,1),k(e,i.parentNode,i)):e=null}else if(r){const o={};n&16&&(o.data=t[4]),n&65575&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)}},i(t){s||(e&&h(e.$$.fragment,t),s=!0)},o(t){e&&d(e.$$.fragment,t),s=!1},d(t){t&&g(i),_[12](null),e&&P(e,t)}}}function oe(_){let e,i,s;var r=_[1][2];function c(t,n){return{props:{data:t[5],form:t[2]}}}return r&&(e=b(r,c(_)),_[11](e)),{c(){e&&v(e.$$.fragment),i=p()},l(t){e&&V(e.$$.fragment,t),i=p()},m(t,n){e&&k(e,t,n),w(t,i,n),s=!0},p(t,n){if(n&2&&r!==(r=t[1][2])){if(e){D();const o=e;d(o.$$.fragment,1,0,()=>{P(o,1)}),I()}r?(e=b(r,c(t)),t[11](e),v(e.$$.fragment),h(e.$$.fragment,1),k(e,i.parentNode,i)):e=null}else if(r){const o={};n&32&&(o.data=t[5]),n&4&&(o.form=t[2]),e.$set(o)}},i(t){s||(e&&h(e.$$.fragment,t),s=!0)},o(t){e&&d(e.$$.fragment,t),s=!1},d(t){t&&g(i),_[11](null),e&&P(e,t)}}}function se(_){let e,i,s,r;const c=[re,ne],t=[];function n(o,l){return o[1][2]?0:1}return e=n(_),i=t[e]=c[e](_),{c(){i.c(),s=p()},l(o){i.l(o),s=p()},m(o,l){t[e].m(o,l),w(o,s,l),r=!0},p(o,l){let a=e;e=n(o),e===a?t[e].p(o,l):(D(),d(t[a],1,1,()=>{t[a]=null}),I(),i=t[e],i?i.p(o,l):(i=t[e]=c[e](o),i.c()),h(i,1),i.m(s.parentNode,s))},i(o){r||(h(i),r=!0)},o(o){d(i),r=!1},d(o){o&&g(s),t[e].d(o)}}}function $(_){let e,i=_[7]&&N(_);return{c(){e=H("div"),i&&i.c(),this.h()},l(s){e=X(s,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=F(e);i&&i.l(r),r.forEach(g),this.h()},h(){y(e,"id","svelte-announcer"),y(e,"aria-live","assertive"),y(e,"aria-atomic","true"),R(e,"position","absolute"),R(e,"left","0"),R(e,"top","0"),R(e,"clip","rect(0 0 0 0)"),R(e,"clip-path","inset(50%)"),R(e,"overflow","hidden"),R(e,"white-space","nowrap"),R(e,"width","1px"),R(e,"height","1px")},m(s,r){w(s,e,r),i&&i.m(e,null)},p(s,r){s[7]?i?i.p(s,r):(i=N(s),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(s){s&&g(e),i&&i.d()}}}function N(_){let e;return{c(){e=G(_[8])},l(i){e=K(i,_[8])},m(i,s){w(i,e,s)},p(i,s){s&256&&Q(e,i[8])},d(i){i&&g(e)}}}function _e(_){let e,i,s,r,c;const t=[ie,te],n=[];function o(a,m){return a[1][1]?0:1}e=o(_),i=n[e]=t[e](_);let l=_[6]&&$(_);return{c(){i.c(),s=j(),l&&l.c(),r=p()},l(a){i.l(a),s=J(a),l&&l.l(a),r=p()},m(a,m){n[e].m(a,m),w(a,s,m),l&&l.m(a,m),w(a,r,m),c=!0},p(a,[m]){let L=e;e=o(a),e===L?n[e].p(a,m):(D(),d(n[L],1,1,()=>{n[L]=null}),I(),i=n[e],i?i.p(a,m):(i=n[e]=t[e](a),i.c()),h(i,1),i.m(s.parentNode,s)),a[6]?l?l.p(a,m):(l=$(a),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null)},i(a){c||(h(i),c=!0)},o(a){d(i),c=!1},d(a){a&&(g(s),g(r)),n[e].d(a),l&&l.d(a)}}}function ae(_,e,i){let{stores:s}=e,{page:r}=e,{constructors:c}=e,{components:t=[]}=e,{form:n}=e,{data_0:o=null}=e,{data_1:l=null}=e,{data_2:a=null}=e;W(s.page.notify);let m=!1,L=!1,E=null;z(()=>{const f=s.page.subscribe(()=>{m&&(i(7,L=!0),Y().then(()=>{i(8,E=document.title||"untitled page")}))});return i(6,m=!0),f});function A(f){T[f?"unshift":"push"](()=>{t[2]=f,i(0,t)})}function O(f){T[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function C(f){T[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function U(f){T[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}function q(f){T[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}return _.$$set=f=>{"stores"in f&&i(9,s=f.stores),"page"in f&&i(10,r=f.page),"constructors"in f&&i(1,c=f.constructors),"components"in f&&i(0,t=f.components),"form"in f&&i(2,n=f.form),"data_0"in f&&i(3,o=f.data_0),"data_1"in f&&i(4,l=f.data_1),"data_2"in f&&i(5,a=f.data_2)},_.$$.update=()=>{_.$$.dirty&1536&&s.page.set(r)},[t,c,n,o,l,a,m,L,E,s,r,A,O,C,U,q]}class ue extends Z{constructor(e){super(),M(this,e,ae,_e,B,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const me=[()=>u(()=>import("../nodes/0.DvMuco06.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),()=>u(()=>import("../nodes/1.B1ovvcWz.js"),__vite__mapDeps([13,1,2,3,4,5]),import.meta.url),()=>u(()=>import("../nodes/2.CeKUIDP3.js"),__vite__mapDeps([14,1,2,10,4,5,3,15,7,8,9,16,17,18]),import.meta.url),()=>u(()=>import("../nodes/3.DPd-OXBN.js"),__vite__mapDeps([19,1,2]),import.meta.url),()=>u(()=>import("../nodes/4.DzlISiii.js"),__vite__mapDeps([20,1,2,10,11,3,4,5,8,6,7,9,21]),import.meta.url),()=>u(()=>import("../nodes/5.DPd-OXBN.js"),__vite__mapDeps([22,1,2]),import.meta.url),()=>u(()=>import("../nodes/6.BbecMI95.js"),__vite__mapDeps([23,1,2,24,10,4,5,3,25,8,9,16,17,26]),import.meta.url),()=>u(()=>import("../nodes/7.DIZjSVTI.js"),__vite__mapDeps([27,1,2,10,4,5,3,28,8,29,11,9,30,24,31]),import.meta.url),()=>u(()=>import("../nodes/8.DaJnnOWR.js"),__vite__mapDeps([32,1,2,24,10,4,5,8,33,3,34,7,35,29,11,9,30,36,37,16,17,38]),import.meta.url),()=>u(()=>import("../nodes/9.C0seAjWB.js"),__vite__mapDeps([39,1,2,11,8,5,6,7,9,40]),import.meta.url),()=>u(()=>import("../nodes/10.BOVZRVUg.js"),__vite__mapDeps([41,1,2]),import.meta.url),()=>u(()=>import("../nodes/11.DGqxXEVk.js"),__vite__mapDeps([42,1,2,3,4,5,15,7,43,24,33,8,9,44,45,10,46,47]),import.meta.url),()=>u(()=>import("../nodes/12.DEQesRsU.js"),__vite__mapDeps([48,1,2,10,11,7,8,5,9,49]),import.meta.url),()=>u(()=>import("../nodes/13.BeNxU1VC.js"),__vite__mapDeps([50,1,2,8,5]),import.meta.url),()=>u(()=>import("../nodes/14.DYE1QyX1.js"),__vite__mapDeps([51,1,2,24,3,4,5,8,7,35,9,10,36,37,29,11,30,45,46,33,16,17,52]),import.meta.url),()=>u(()=>import("../nodes/15.BII74jAo.js"),__vite__mapDeps([53,1,2,24,10,11,8,5,37,45,46,9,43,33,44,54]),import.meta.url),()=>u(()=>import("../nodes/16.BOVZRVUg.js"),__vite__mapDeps([55,1,2]),import.meta.url),()=>u(()=>import("../nodes/17.CkW4N9sZ.js"),__vite__mapDeps([56,1,2,3,4,5,25,8,37,43,24,33,9,44,45,10,46,57]),import.meta.url),()=>u(()=>import("../nodes/18.BOVZRVUg.js"),__vite__mapDeps([58,1,2]),import.meta.url),()=>u(()=>import("../nodes/19.8Kp_zJo7.js"),__vite__mapDeps([59,1,2,3,4,5,28,8,43,24,33,9,44,60]),import.meta.url),()=>u(()=>import("../nodes/20.CuxZsU7V.js"),__vite__mapDeps([61,1,2,8,5]),import.meta.url),()=>u(()=>import("../nodes/21.CCu7Jrf_.js"),__vite__mapDeps([62,1,2,10,3,4,5,34,7,35,8,37,43,24,33,9,44,45,46,63]),import.meta.url)],pe=[],de={"/":[9],"/backgroundJobs":[10,[2]],"/backgroundJobs/[type]/[id]":[11,[2]],"/constants":[12,[3]],"/database":[13,[4]],"/database/table/[id]":[14,[4]],"/logsv2":[16,[6]],"/logsv2/[id]":[17,[6]],"/logs":[15,[5]],"/network":[18,[7]],"/network/[id]":[19,[7]],"/users":[20,[8]],"/users/[id]":[21,[8]]},he={handleError:({error:_})=>{console.error(_)},reroute:()=>{}};export{de as dictionary,he as hooks,ce as matchers,me as nodes,ue as root,pe as server_loads}; diff --git a/gui/next/build/_app/immutable/entry/app.D1-MxLu9.js b/gui/next/build/_app/immutable/entry/app.D1-MxLu9.js new file mode 100644 index 000000000..7e7e6a023 --- /dev/null +++ b/gui/next/build/_app/immutable/entry/app.D1-MxLu9.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DRfp18Pm.js","../chunks/n7YEDvJi.js","../chunks/IHki7fMi.js","../chunks/C6Nbyvij.js","../chunks/BkTZdoZE.js","../chunks/CJfL7PSQ.js","../chunks/t7b_BBSP.js","../chunks/BD1m7lx9.js","../chunks/Bp_ajb_u.js","../chunks/DHO4ENnJ.js","../chunks/DMhVG_ro.js","../chunks/BaKpYqK2.js","../assets/0.QmKtTD0U.css","../nodes/1.CD3leUXn.js","../nodes/2.CGFuMAZt.js","../chunks/CIy9Z9Qf.js","../chunks/CYamOUSl.js","../assets/Number.AfD80Zdm.css","../assets/2.Cpa7KQFv.css","../nodes/3.BGS2qweN.js","../nodes/4.DM9kxUlW.js","../assets/4.B9XykGLe.css","../nodes/5.BGS2qweN.js","../nodes/6.Co53nSuQ.js","../chunks/D0QH3NT1.js","../chunks/twsCDidx.js","../assets/6.Dkbf0VAa.css","../nodes/7.CKEMr56f.js","../chunks/hGAcGvnf.js","../chunks/B9_cNKsK.js","../assets/Toggle.o--CU0Za.css","../assets/7.DGvLR7j3.css","../nodes/8.C5n3zv3J.js","../chunks/iVSWiVfi.js","../chunks/CNoDK8-a.js","../chunks/BkeFH9yg.js","../chunks/6Lnq5zID.js","../chunks/x4PJc0Qf.js","../assets/8.CufhmNsu.css","../nodes/9.fY49Dkx3.js","../assets/9.DZfDyU61.css","../nodes/10.7hS_xzU-.js","../nodes/11.D0wEx6D6.js","../chunks/CqRAXfEk.js","../assets/Aside.HqXgbmTR.css","../chunks/CMNnzBs7.js","../assets/JSONTree.Do8jmj2M.css","../assets/11.O9jYhcLF.css","../nodes/12.DAwDUajM.js","../assets/12.PIDpwlWF.css","../nodes/13.BaKdxk9B.js","../nodes/14.7fbd7OfH.js","../assets/14.EFLSpW2v.css","../nodes/15.C4B31mxr.js","../assets/15.DRRvXzxG.css","../nodes/16.7hS_xzU-.js","../nodes/17.DGuxwaeC.js","../assets/17.DZjOGisr.css","../nodes/18.7hS_xzU-.js","../nodes/19.C47gtE90.js","../assets/19.CBlI4doA.css","../nodes/20.DxmxD44t.js","../nodes/21.Dfq71RmU.js","../assets/21.BIXMQND7.css"])))=>i.map(i=>d[i]); +import{S as U,i as J,s as z,d as g,o as p,p as d,R as A,H as I,b as w,h as H,y as h,k as W,a7 as F,a5 as G,P as K,a8 as b,E as v,M as k,I as P,L as V,z as y,T as R,e as Q,f as X,j as Y,C as D,a as Z,g as M,t as x}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";const ee="modulepreload",te=function(a,e){return new URL(a,e).href},S={},u=function(e,n,o){let s=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),i=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=te(l,o),l in S)return;S[l]=!0;const _=l.endsWith(".css"),m=_?'[rel="stylesheet"]':"";if(!!o)for(let O=t.length-1;O>=0;O--){const T=t[O];if(T.href===l&&(!_||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const E=document.createElement("link");if(E.rel=_?"stylesheet":ee,_||(E.as="script"),E.crossOrigin="",E.href=l,i&&E.setAttribute("nonce",i),document.head.appendChild(E),_)return new Promise((O,T)=>{E.addEventListener("load",O),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${l}`)))})}))}function c(t){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=t,window.dispatchEvent(r),!r.defaultPrevented)throw t}return s.then(t=>{for(const r of t||[])r.status==="rejected"&&c(r.reason);return e().catch(c)})},me={};function ne(a){let e,n,o;var s=a[2][0];function c(t,r){return{props:{data:t[4],form:t[3],params:t[1].params}}}return s&&(e=b(s,c(a)),a[15](e)),{c(){e&&k(e.$$.fragment),n=h()},l(t){e&&V(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),w(t,n,r),o=!0},p(t,r){if(r&4&&s!==(s=t[2][0])){if(e){A();const i=e;p(i.$$.fragment,1,0,()=>{v(i,1)}),I()}s?(e=b(s,c(t)),t[15](e),k(e.$$.fragment),d(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const i={};r&16&&(i.data=t[4]),r&8&&(i.form=t[3]),r&2&&(i.params=t[1].params),e.$set(i)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(n),a[15](null),e&&v(e,t)}}}function re(a){let e,n,o;var s=a[2][0];function c(t,r){return{props:{data:t[4],params:t[1].params,$$slots:{default:[ae]},$$scope:{ctx:t}}}}return s&&(e=b(s,c(a)),a[14](e)),{c(){e&&k(e.$$.fragment),n=h()},l(t){e&&V(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),w(t,n,r),o=!0},p(t,r){if(r&4&&s!==(s=t[2][0])){if(e){A();const i=e;p(i.$$.fragment,1,0,()=>{v(i,1)}),I()}s?(e=b(s,c(t)),t[14](e),k(e.$$.fragment),d(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const i={};r&16&&(i.data=t[4]),r&2&&(i.params=t[1].params),r&65647&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(n),a[14](null),e&&v(e,t)}}}function ie(a){let e,n,o;var s=a[2][1];function c(t,r){return{props:{data:t[5],form:t[3],params:t[1].params}}}return s&&(e=b(s,c(a)),a[13](e)),{c(){e&&k(e.$$.fragment),n=h()},l(t){e&&V(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),w(t,n,r),o=!0},p(t,r){if(r&4&&s!==(s=t[2][1])){if(e){A();const i=e;p(i.$$.fragment,1,0,()=>{v(i,1)}),I()}s?(e=b(s,c(t)),t[13](e),k(e.$$.fragment),d(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const i={};r&32&&(i.data=t[5]),r&8&&(i.form=t[3]),r&2&&(i.params=t[1].params),e.$set(i)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(n),a[13](null),e&&v(e,t)}}}function se(a){let e,n,o;var s=a[2][1];function c(t,r){return{props:{data:t[5],params:t[1].params,$$slots:{default:[oe]},$$scope:{ctx:t}}}}return s&&(e=b(s,c(a)),a[12](e)),{c(){e&&k(e.$$.fragment),n=h()},l(t){e&&V(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),w(t,n,r),o=!0},p(t,r){if(r&4&&s!==(s=t[2][1])){if(e){A();const i=e;p(i.$$.fragment,1,0,()=>{v(i,1)}),I()}s?(e=b(s,c(t)),t[12](e),k(e.$$.fragment),d(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const i={};r&32&&(i.data=t[5]),r&2&&(i.params=t[1].params),r&65615&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(n),a[12](null),e&&v(e,t)}}}function oe(a){let e,n,o;var s=a[2][2];function c(t,r){return{props:{data:t[6],form:t[3],params:t[1].params}}}return s&&(e=b(s,c(a)),a[11](e)),{c(){e&&k(e.$$.fragment),n=h()},l(t){e&&V(e.$$.fragment,t),n=h()},m(t,r){e&&P(e,t,r),w(t,n,r),o=!0},p(t,r){if(r&4&&s!==(s=t[2][2])){if(e){A();const i=e;p(i.$$.fragment,1,0,()=>{v(i,1)}),I()}s?(e=b(s,c(t)),t[11](e),k(e.$$.fragment),d(e.$$.fragment,1),P(e,n.parentNode,n)):e=null}else if(s){const i={};r&64&&(i.data=t[6]),r&8&&(i.form=t[3]),r&2&&(i.params=t[1].params),e.$set(i)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(n),a[11](null),e&&v(e,t)}}}function ae(a){let e,n,o,s;const c=[se,ie],t=[];function r(i,l){return i[2][2]?0:1}return e=r(a),n=t[e]=c[e](a),{c(){n.c(),o=h()},l(i){n.l(i),o=h()},m(i,l){t[e].m(i,l),w(i,o,l),s=!0},p(i,l){let _=e;e=r(i),e===_?t[e].p(i,l):(A(),p(t[_],1,1,()=>{t[_]=null}),I(),n=t[e],n?n.p(i,l):(n=t[e]=c[e](i),n.c()),d(n,1),n.m(o.parentNode,o))},i(i){s||(d(n),s=!0)},o(i){p(n),s=!1},d(i){i&&g(o),t[e].d(i)}}}function $(a){let e,n=a[8]&&N(a);return{c(){e=Y("div"),n&&n.c(),this.h()},l(o){e=Q(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=X(e);n&&n.l(s),s.forEach(g),this.h()},h(){y(e,"id","svelte-announcer"),y(e,"aria-live","assertive"),y(e,"aria-atomic","true"),R(e,"position","absolute"),R(e,"left","0"),R(e,"top","0"),R(e,"clip","rect(0 0 0 0)"),R(e,"clip-path","inset(50%)"),R(e,"overflow","hidden"),R(e,"white-space","nowrap"),R(e,"width","1px"),R(e,"height","1px")},m(o,s){w(o,e,s),n&&n.m(e,null)},p(o,s){o[8]?n?n.p(o,s):(n=N(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&g(e),n&&n.d()}}}function N(a){let e;return{c(){e=x(a[9])},l(n){e=M(n,a[9])},m(n,o){w(n,e,o)},p(n,o){o&512&&Z(e,n[9])},d(n){n&&g(e)}}}function _e(a){let e,n,o,s,c;const t=[re,ne],r=[];function i(_,m){return _[2][1]?0:1}e=i(a),n=r[e]=t[e](a);let l=a[7]&&$(a);return{c(){n.c(),o=W(),l&&l.c(),s=h()},l(_){n.l(_),o=H(_),l&&l.l(_),s=h()},m(_,m){r[e].m(_,m),w(_,o,m),l&&l.m(_,m),w(_,s,m),c=!0},p(_,[m]){let L=e;e=i(_),e===L?r[e].p(_,m):(A(),p(r[L],1,1,()=>{r[L]=null}),I(),n=r[e],n?n.p(_,m):(n=r[e]=t[e](_),n.c()),d(n,1),n.m(o.parentNode,o)),_[7]?l?l.p(_,m):(l=$(_),l.c(),l.m(s.parentNode,s)):l&&(l.d(1),l=null)},i(_){c||(d(n),c=!0)},o(_){p(n),c=!1},d(_){_&&(g(o),g(s)),r[e].d(_),l&&l.d(_)}}}function le(a,e,n){let{stores:o}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:i=null}=e,{data_1:l=null}=e,{data_2:_=null}=e;F(o.page.notify);let m=!1,L=!1,E=null;G(()=>{const f=o.page.subscribe(()=>{m&&(n(8,L=!0),K().then(()=>{n(9,E=document.title||"untitled page")}))});return n(7,m=!0),f});function O(f){D[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function T(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function C(f){D[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function q(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function B(f){D[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(10,o=f.stores),"page"in f&&n(1,s=f.page),"constructors"in f&&n(2,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(3,r=f.form),"data_0"in f&&n(4,i=f.data_0),"data_1"in f&&n(5,l=f.data_1),"data_2"in f&&n(6,_=f.data_2)},a.$$.update=()=>{a.$$.dirty&1026&&o.page.set(s)},[t,s,c,r,i,l,_,m,L,E,o,O,T,C,q,B]}class pe extends U{constructor(e){super(),J(this,e,le,_e,z,{stores:10,page:1,constructors:2,components:0,form:3,data_0:4,data_1:5,data_2:6})}}const de=[()=>u(()=>import("../nodes/0.DRfp18Pm.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),()=>u(()=>import("../nodes/1.CD3leUXn.js"),__vite__mapDeps([13,1,2,3,4,5]),import.meta.url),()=>u(()=>import("../nodes/2.CGFuMAZt.js"),__vite__mapDeps([14,1,10,2,4,5,3,15,7,8,9,16,17,18]),import.meta.url),()=>u(()=>import("../nodes/3.BGS2qweN.js"),__vite__mapDeps([19,1,2]),import.meta.url),()=>u(()=>import("../nodes/4.DM9kxUlW.js"),__vite__mapDeps([20,1,2,10,11,3,4,5,8,6,7,9,21]),import.meta.url),()=>u(()=>import("../nodes/5.BGS2qweN.js"),__vite__mapDeps([22,1,2]),import.meta.url),()=>u(()=>import("../nodes/6.Co53nSuQ.js"),__vite__mapDeps([23,1,24,10,2,4,5,3,25,8,9,16,17,26]),import.meta.url),()=>u(()=>import("../nodes/7.CKEMr56f.js"),__vite__mapDeps([27,1,10,2,4,5,3,28,8,29,11,9,30,24,31]),import.meta.url),()=>u(()=>import("../nodes/8.C5n3zv3J.js"),__vite__mapDeps([32,1,24,10,2,4,5,8,33,3,34,7,35,29,11,9,30,36,37,16,17,38]),import.meta.url),()=>u(()=>import("../nodes/9.fY49Dkx3.js"),__vite__mapDeps([39,1,2,11,8,5,6,7,9,40]),import.meta.url),()=>u(()=>import("../nodes/10.7hS_xzU-.js"),__vite__mapDeps([41,1,2]),import.meta.url),()=>u(()=>import("../nodes/11.D0wEx6D6.js"),__vite__mapDeps([42,1,2,3,4,5,15,7,43,24,33,8,9,44,45,10,46,47]),import.meta.url),()=>u(()=>import("../nodes/12.DAwDUajM.js"),__vite__mapDeps([48,1,10,2,11,7,8,5,9,49]),import.meta.url),()=>u(()=>import("../nodes/13.BaKdxk9B.js"),__vite__mapDeps([50,1,2,8,5]),import.meta.url),()=>u(()=>import("../nodes/14.7fbd7OfH.js"),__vite__mapDeps([51,1,24,2,3,4,5,8,7,35,9,10,36,37,29,11,30,45,46,33,16,17,52]),import.meta.url),()=>u(()=>import("../nodes/15.C4B31mxr.js"),__vite__mapDeps([53,1,24,10,2,11,8,5,37,45,46,9,43,33,44,54]),import.meta.url),()=>u(()=>import("../nodes/16.7hS_xzU-.js"),__vite__mapDeps([55,1,2]),import.meta.url),()=>u(()=>import("../nodes/17.DGuxwaeC.js"),__vite__mapDeps([56,1,2,3,4,5,25,8,37,43,24,33,9,44,45,10,46,57]),import.meta.url),()=>u(()=>import("../nodes/18.7hS_xzU-.js"),__vite__mapDeps([58,1,2]),import.meta.url),()=>u(()=>import("../nodes/19.C47gtE90.js"),__vite__mapDeps([59,1,2,3,4,5,28,8,43,24,33,9,44,60]),import.meta.url),()=>u(()=>import("../nodes/20.DxmxD44t.js"),__vite__mapDeps([61,1,2,8,5]),import.meta.url),()=>u(()=>import("../nodes/21.Dfq71RmU.js"),__vite__mapDeps([62,1,10,2,3,4,5,34,7,35,8,37,43,24,33,9,44,45,46,63]),import.meta.url)],he=[],Ee={"/":[9],"/backgroundJobs":[10,[2]],"/backgroundJobs/[type]/[id]":[11,[2]],"/constants":[12,[3]],"/database":[13,[4]],"/database/table/[id]":[14,[4]],"/logsv2":[16,[6]],"/logsv2/[id]":[17,[6]],"/logs":[15,[5]],"/network":[18,[7]],"/network/[id]":[19,[7]],"/users":[20,[8]],"/users/[id]":[21,[8]]},j={handleError:({error:a})=>{console.error(a)},reroute:()=>{},transport:{}},fe=Object.fromEntries(Object.entries(j.transport).map(([a,e])=>[a,e.decode])),ge=Object.fromEntries(Object.entries(j.transport).map(([a,e])=>[a,e.encode])),we=!1,be=(a,e)=>fe[a](e);export{be as decode,fe as decoders,Ee as dictionary,ge as encoders,we as hash,j as hooks,me as matchers,de as nodes,pe as root,he as server_loads}; diff --git a/gui/next/build/_app/immutable/entry/start.ChmWk0DI.js b/gui/next/build/_app/immutable/entry/start.ChmWk0DI.js deleted file mode 100644 index fce319bbb..000000000 --- a/gui/next/build/_app/immutable/entry/start.ChmWk0DI.js +++ /dev/null @@ -1 +0,0 @@ -import{c as a}from"../chunks/entry.COceLI_i.js";export{a as start}; diff --git a/gui/next/build/_app/immutable/entry/start.DwFBtt-N.js b/gui/next/build/_app/immutable/entry/start.DwFBtt-N.js new file mode 100644 index 000000000..2dbb67712 --- /dev/null +++ b/gui/next/build/_app/immutable/entry/start.DwFBtt-N.js @@ -0,0 +1 @@ +import{l as o,c as r}from"../chunks/BkTZdoZE.js";export{o as load_css,r as start}; diff --git a/gui/next/build/_app/immutable/nodes/0.DRfp18Pm.js b/gui/next/build/_app/immutable/nodes/0.DRfp18Pm.js new file mode 100644 index 000000000..b914e3058 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/0.DRfp18Pm.js @@ -0,0 +1 @@ +import{S as pe,i as de,s as me,d,o as w,p as _,Q as L,R as B,H as j,b as P,c as p,z as u,e as g,f as z,K as O,h as M,j as $,k as C,l as fe,E as W,x as Qe,I as y,J as Ce,L as D,M as J,n as G,N as Ee,g as Ve,t as Ae,a as Ge,y as Ne,a5 as Xe,Y as he,X as Ie,T as Se,ah as Ye,a7 as Ze,Z as et,_ as tt,m as st,u as lt,q as at,r as nt}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{p as it}from"../chunks/C6Nbyvij.js";import{t as rt}from"../chunks/t7b_BBSP.js";import{s as Q}from"../chunks/Bp_ajb_u.js";import{I as F}from"../chunks/DHO4ENnJ.js";import{e as Te,u as ot,o as ct}from"../chunks/DMhVG_ro.js";import{f as ue}from"../chunks/BaKpYqK2.js";function Le(o){const t=o.slice(),e=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";return t[3]=e,t}function Me(o){const t=o.slice(),e=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";return t[3]=e,t}function ft(o){var n;let t,e=((n=o[0].online)==null?void 0:n.MPKIT_URL.replace("https://",""))+"",l,i;return{c(){t=$("a"),l=Ae(e),this.h()},l(c){t=g(c,"A",{href:!0});var a=z(t);l=Ve(a,e),a.forEach(d),this.h()},h(){var c;u(t,"href",i=(c=o[0].online)==null?void 0:c.MPKIT_URL)},m(c,a){P(c,t,a),p(t,l)},p(c,a){var s,r;a&1&&e!==(e=((s=c[0].online)==null?void 0:s.MPKIT_URL.replace("https://",""))+"")&&Ge(l,e),a&1&&i!==(i=(r=c[0].online)==null?void 0:r.MPKIT_URL)&&u(t,"href",i)},d(c){c&&d(t)}}}function ht(o){let t;return{c(){t=Ae("disconnected")},l(e){t=Ve(e,"disconnected")},m(e,l){P(e,t,l)},p:G,d(e){e&&d(t)}}}function ut(o){let t;return{c(){t=Ae("connecting…")},l(e){t=Ve(e,"connecting…")},m(e,l){P(e,t,l)},p:G,d(e){e&&d(t)}}}function Pe(o){let t,e,l,i,n,c="Database",a,s,r;return l=new F({props:{icon:"database"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(f){t=g(f,"LI",{class:!0});var E=z(t);e=g(E,"A",{href:!0,class:!0});var b=z(e);D(l.$$.fragment,b),i=M(b),n=g(b,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-xe6gx4"&&(n.textContent=c),b.forEach(d),E.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/database"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/database")),u(t,"class","svelte-uthxgc")},m(f,E){P(f,t,E),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0,s||(r=[Ce(e,"focus",o[2],{once:!0}),Ce(e,"mouseover",o[2],{once:!0})],s=!0)},p(f,E){(!a||E&2)&&L(e,"active",f[1].url.pathname.startsWith("/database"))},i(f){a||(_(l.$$.fragment,f),a=!0)},o(f){w(l.$$.fragment,f),a=!1},d(f){f&&d(t),W(l),s=!1,Qe(r)}}}function Ue(o){let t,e,l,i,n,c="Users",a;return l=new F({props:{icon:"users"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-o38ms3"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/users"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/users")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/users"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function We(o){let t,e,l,i,n,c="Logs",a;return l=new F({props:{icon:"log"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-17j55om"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/logs"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname==="/logs"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname==="/logs")},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function ye(o){let t,e,l,i,n,c="Logs v2",a;return l=new F({props:{icon:"logFresh"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-taaagi"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/logsv2"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/logsv2")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/logsv2"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function De(o){let t,e,l,i,n,c="Network Logs",a;return l=new F({props:{icon:"globeMessage"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-1d3zf0k"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/network"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/network")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/network"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function Je(o){let t,e,l,i,n,c="Background Jobs",a;return l=new F({props:{icon:"backgroundJob"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-fuvc8n"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/backgroundJobs"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/backgroundJobs")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/backgroundJobs"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function Oe(o){let t,e,l,i,n,c="Constants",a;return l=new F({props:{icon:"constant"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-s4kqu"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/constants"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/constants")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/constants"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function Re(o){let t,e,l,i,n,c="Liquid Evaluator",a;return l=new F({props:{icon:"liquid"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-1k272bg"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href",o[3]+"/gui/liquid"),u(e,"class","svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p:G,i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function Ke(o){let t,e,l,i,n,c="GraphiQL",a;return l=new F({props:{icon:"graphql"}}),{c(){t=$("li"),e=$("a"),J(l.$$.fragment),i=C(),n=$("span"),n.textContent=c,this.h()},l(s){t=g(s,"LI",{class:!0});var r=z(t);e=g(r,"A",{href:!0,class:!0});var f=z(e);D(l.$$.fragment,f),i=M(f),n=g(f,"SPAN",{class:!0,"data-svelte-h":!0}),O(n)!=="svelte-pzl6ct"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href",o[3]+"/gui/graphql"),u(e,"class","svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),y(l,e,null),p(e,i),p(e,n),a=!0},p:G,i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),W(l)}}}function pt(o){let t,e,l,i,n='',c,a,s,r=' platformOS development tools',f,E,b,m,h,K=o[0].header.includes("database"),Y,ve=o[0].header.includes("users"),Z,_e=o[0].header.includes("logs"),ee,ge=o[0].header.includes("logsv2"),te,$e=o[0].header.includes("network"),se,be=o[0].header.includes("backgroundJobs"),le,ke=o[0].header.includes("constants"),ae,we=o[0].header.includes("liquid"),ne,ze=o[0].header.includes("graphiql"),X;function xe(v,k){return v[0].online===void 0?ut:v[0].online===!1?ht:ft}let ie=xe(o),R=ie(o),I=K&&Pe(o),V=ve&&Ue(o),A=_e&&We(o),x=ge&&ye(o),H=$e&&De(o),q=be&&Je(o),N=ke&&Oe(o),S=we&&Re(Me(o)),T=ze&&Ke(Le(o));return{c(){t=$("header"),e=$("div"),l=$("div"),i=$("a"),i.innerHTML=n,c=C(),a=$("h1"),s=$("a"),s.innerHTML=r,f=C(),E=$("span"),R.c(),b=C(),m=$("nav"),h=$("ul"),I&&I.c(),Y=C(),V&&V.c(),Z=C(),A&&A.c(),ee=C(),x&&x.c(),te=C(),H&&H.c(),se=C(),q&&q.c(),le=C(),N&&N.c(),ae=C(),S&&S.c(),ne=C(),T&&T.c(),this.h()},l(v){t=g(v,"HEADER",{class:!0});var k=z(t);e=g(k,"DIV",{class:!0});var re=z(e);l=g(re,"DIV",{class:!0});var oe=z(l);i=g(oe,"A",{href:!0,"data-svelte-h":!0}),O(i)!=="svelte-1nhlu7c"&&(i.innerHTML=n),c=M(oe),a=g(oe,"H1",{class:!0});var ce=z(a);s=g(ce,"A",{href:!0,class:!0,"data-svelte-h":!0}),O(s)!=="svelte-z2lbz1"&&(s.innerHTML=r),f=M(ce),E=g(ce,"SPAN",{class:!0});var He=z(E);R.l(He),He.forEach(d),ce.forEach(d),oe.forEach(d),b=M(re),m=g(re,"NAV",{class:!0});var qe=z(m);h=g(qe,"UL",{class:!0});var U=z(h);I&&I.l(U),Y=M(U),V&&V.l(U),Z=M(U),A&&A.l(U),ee=M(U),x&&x.l(U),te=M(U),H&&H.l(U),se=M(U),q&&q.l(U),le=M(U),N&&N.l(U),ae=M(U),S&&S.l(U),ne=M(U),T&&T.l(U),U.forEach(d),qe.forEach(d),re.forEach(d),k.forEach(d),this.h()},h(){u(i,"href","/"),u(s,"href","/"),u(s,"class","svelte-uthxgc"),u(E,"class","instance svelte-uthxgc"),L(E,"offline",!o[0].online),u(a,"class","svelte-uthxgc"),u(l,"class","logo svelte-uthxgc"),u(h,"class","svelte-uthxgc"),u(m,"class","svelte-uthxgc"),u(e,"class","wrapper svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(v,k){P(v,t,k),p(t,e),p(e,l),p(l,i),p(l,c),p(l,a),p(a,s),p(a,f),p(a,E),R.m(E,null),p(e,b),p(e,m),p(m,h),I&&I.m(h,null),p(h,Y),V&&V.m(h,null),p(h,Z),A&&A.m(h,null),p(h,ee),x&&x.m(h,null),p(h,te),H&&H.m(h,null),p(h,se),q&&q.m(h,null),p(h,le),N&&N.m(h,null),p(h,ae),S&&S.m(h,null),p(h,ne),T&&T.m(h,null),X=!0},p(v,[k]){ie===(ie=xe(v))&&R?R.p(v,k):(R.d(1),R=ie(v),R&&(R.c(),R.m(E,null))),(!X||k&1)&&L(E,"offline",!v[0].online),k&1&&(K=v[0].header.includes("database")),K?I?(I.p(v,k),k&1&&_(I,1)):(I=Pe(v),I.c(),_(I,1),I.m(h,Y)):I&&(B(),w(I,1,1,()=>{I=null}),j()),k&1&&(ve=v[0].header.includes("users")),ve?V?(V.p(v,k),k&1&&_(V,1)):(V=Ue(v),V.c(),_(V,1),V.m(h,Z)):V&&(B(),w(V,1,1,()=>{V=null}),j()),k&1&&(_e=v[0].header.includes("logs")),_e?A?(A.p(v,k),k&1&&_(A,1)):(A=We(v),A.c(),_(A,1),A.m(h,ee)):A&&(B(),w(A,1,1,()=>{A=null}),j()),k&1&&(ge=v[0].header.includes("logsv2")),ge?x?(x.p(v,k),k&1&&_(x,1)):(x=ye(v),x.c(),_(x,1),x.m(h,te)):x&&(B(),w(x,1,1,()=>{x=null}),j()),k&1&&($e=v[0].header.includes("network")),$e?H?(H.p(v,k),k&1&&_(H,1)):(H=De(v),H.c(),_(H,1),H.m(h,se)):H&&(B(),w(H,1,1,()=>{H=null}),j()),k&1&&(be=v[0].header.includes("backgroundJobs")),be?q?(q.p(v,k),k&1&&_(q,1)):(q=Je(v),q.c(),_(q,1),q.m(h,le)):q&&(B(),w(q,1,1,()=>{q=null}),j()),k&1&&(ke=v[0].header.includes("constants")),ke?N?(N.p(v,k),k&1&&_(N,1)):(N=Oe(v),N.c(),_(N,1),N.m(h,ae)):N&&(B(),w(N,1,1,()=>{N=null}),j()),k&1&&(we=v[0].header.includes("liquid")),we?S?(S.p(Me(v),k),k&1&&_(S,1)):(S=Re(Me(v)),S.c(),_(S,1),S.m(h,ne)):S&&(B(),w(S,1,1,()=>{S=null}),j()),k&1&&(ze=v[0].header.includes("graphiql")),ze?T?(T.p(Le(v),k),k&1&&_(T,1)):(T=Ke(Le(v)),T.c(),_(T,1),T.m(h,null)):T&&(B(),w(T,1,1,()=>{T=null}),j())},i(v){X||(_(I),_(V),_(A),_(x),_(H),_(q),_(N),_(S),_(T),X=!0)},o(v){w(I),w(V),w(A),w(x),w(H),w(q),w(N),w(S),w(T),X=!1},d(v){v&&d(t),R.d(),I&&I.d(),V&&V.d(),A&&A.d(),x&&x.d(),H&&H.d(),q&&q.d(),N&&N.d(),S&&S.d(),T&&T.d()}}}function dt(o,t,e){let l,i;return fe(o,Q,c=>e(0,l=c)),fe(o,it,c=>e(1,i=c)),[l,i,async()=>{l.tables.length||Ee(Q,l.tables=await rt.get(),l)}]}class mt extends pe{constructor(t){super(),de(this,t,dt,pt,me,{})}}function Be(o){let t,e="Disconnected from the instance";return{c(){t=$("div"),t.textContent=e,this.h()},l(l){t=g(l,"DIV",{class:!0,"data-svelte-h":!0}),O(t)!=="svelte-1k8ucix"&&(t.textContent=e),this.h()},h(){u(t,"class","connectionIndicator svelte-1cyr69k"),L(t,"offline",o[0].online===!1)},m(l,i){P(l,t,i)},p(l,i){i&1&&L(t,"offline",l[0].online===!1)},d(l){l&&d(t)}}}function vt(o){let t,e=o[0].online===!1&&Be(o);return{c(){e&&e.c(),t=Ne()},l(l){e&&e.l(l),t=Ne()},m(l,i){e&&e.m(l,i),P(l,t,i)},p(l,[i]){l[0].online===!1?e?e.p(l,i):(e=Be(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:G,o:G,d(l){l&&d(t),e&&e.d(l)}}}let _t=7e3;function gt(o,t,e){let l;fe(o,Q,c=>e(0,l=c));let i;Xe(async()=>(n(),i=setInterval(n,_t),()=>clearInterval(i)));const n=async()=>{if(document.visibilityState!=="hidden"){const c=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";fetch(`${c}/info`).then(a=>a.json()).then(a=>{a&&Ee(Q,l.online=a,l)}).catch(a=>{Ee(Q,l.online=!1,l)})}};return[l]}class $t extends pe{constructor(t){super(),de(this,t,gt,vt,me,{})}}function je(o,t,e){const l=o.slice();return l[4]=t[e],l}function Fe(o,t){let e,l,i=t[4].message+"",n,c,a,s,r,f,E;a=new F({props:{icon:"x",size:"10"}});function b(){return t[2](t[4])}return{key:o,first:null,c(){e=$("div"),l=new tt(!1),n=C(),c=$("button"),J(a.$$.fragment),this.h()},l(m){e=g(m,"DIV",{class:!0});var h=z(e);l=et(h,!1),n=M(h),c=g(h,"BUTTON",{class:!0});var K=z(c);D(a.$$.fragment,K),K.forEach(d),h.forEach(d),this.h()},h(){l.a=n,u(c,"class","svelte-fq192n"),u(e,"class","notification svelte-fq192n"),L(e,"success",t[4].type==="success"),L(e,"error",t[4].type==="error"),L(e,"info",t[4].type==="info"),this.first=e},m(m,h){P(m,e,h),l.m(i,e),p(e,n),p(e,c),y(a,c,null),r=!0,f||(E=Ce(c,"click",b),f=!0)},p(m,h){t=m,(!r||h&2)&&i!==(i=t[4].message+"")&&l.p(i),(!r||h&2)&&L(e,"success",t[4].type==="success"),(!r||h&2)&&L(e,"error",t[4].type==="error"),(!r||h&2)&&L(e,"info",t[4].type==="info")},i(m){r||(_(a.$$.fragment,m),m&&Ie(()=>{r&&(s||(s=he(e,ue,{duration:100},!0)),s.run(1))}),r=!0)},o(m){w(a.$$.fragment,m),m&&(s||(s=he(e,ue,{duration:100},!1)),s.run(0)),r=!1},d(m){m&&d(e),W(a),m&&s&&s.end(),f=!1,E()}}}function bt(o){let t,e=[],l=new Map,i,n,c,a,s,r,f=Te(o[1].notifications);const E=b=>b[4].id;for(let b=0;bo[3].call(t))},m(b,m){P(b,t,m);for(let h=0;h{r&&(a||(a=he(n,ue,{duration:100},!0)),a.run(1))}),r=!0}},o(b){for(let m=0;me(1,l=a));let i=0;Ze(()=>{l.notifications.forEach(a=>{a.timeout||(a.type==="success"||a.type==="info")&&(a.timeout=setTimeout(()=>Q.notification.remove(a.id),7e3))})});const n=a=>Q.notification.remove(a.id);function c(){i=this.clientHeight,e(0,i)}return[i,l,n,c]}class wt extends pe{constructor(t){super(),de(this,t,kt,bt,me,{})}}function zt(o){let t,e,l,i,n;t=new mt({});const c=o[1].default,a=st(c,o,o[0],null);return i=new wt({}),{c(){J(t.$$.fragment),e=C(),a&&a.c(),l=C(),J(i.$$.fragment)},l(s){D(t.$$.fragment,s),e=M(s),a&&a.l(s),l=M(s),D(i.$$.fragment,s)},m(s,r){y(t,s,r),P(s,e,r),a&&a.m(s,r),P(s,l,r),y(i,s,r),n=!0},p(s,[r]){a&&a.p&&(!n||r&1)&<(a,c,s,s[0],n?nt(c,s[0],r,null):at(s[0]),null)},i(s){n||(_(t.$$.fragment,s),_(a,s),_(i.$$.fragment,s),n=!0)},o(s){w(t.$$.fragment,s),w(a,s),w(i.$$.fragment,s),n=!1},d(s){s&&(d(e),d(l)),W(t,s),a&&a.d(s),W(i,s)}}}function Lt(o,t,e){let{$$slots:l={},$$scope:i}=t;return o.$$set=n=>{"$$scope"in n&&e(0,i=n.$$scope)},[i,l]}class qt extends pe{constructor(t){super(),de(this,t,Lt,zt,me,{})}}export{qt as component}; diff --git a/gui/next/build/_app/immutable/nodes/0.DvMuco06.js b/gui/next/build/_app/immutable/nodes/0.DvMuco06.js deleted file mode 100644 index 0ac166fa1..000000000 --- a/gui/next/build/_app/immutable/nodes/0.DvMuco06.js +++ /dev/null @@ -1 +0,0 @@ -import{s as pe,e as g,a as C,c as $,b as z,A as J,g as M,f as d,y as u,G as L,i as P,h as p,k as fe,C as Me,r as Ge,n as Q,E as Ee,t as Ve,d as Ae,j as Qe,v as Se,U as Xe,I as qe,M as Ie,ag as Ye,W as Ze,N as et,O as tt,l as st,u as lt,m as at,o as nt}from"../chunks/scheduler.CKQ5dLhN.js";import{S as de,i as me,t as _,g as K,a as w,e as j,c as W,d as y,m as D,f as O,h as he}from"../chunks/index.CGVWAVV-.js";import{p as it}from"../chunks/stores.BLuxmlax.js";import{t as rt}from"../chunks/table.Cmn0kCDk.js";import{s as G}from"../chunks/state.nqMW8J5l.js";import{I as F}from"../chunks/Icon.CkKwi_WD.js";import{e as Te,u as ot,o as ct}from"../chunks/each.BWzj3zy9.js";import{f as ue}from"../chunks/index.WWWgbq8H.js";function Le(o){const t=o.slice(),e=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";return t[3]=e,t}function Ce(o){const t=o.slice(),e=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";return t[3]=e,t}function ft(o){var n;let t,e=((n=o[0].online)==null?void 0:n.MPKIT_URL.replace("https://",""))+"",l,i;return{c(){t=g("a"),l=Ve(e),this.h()},l(c){t=$(c,"A",{href:!0});var a=z(t);l=Ae(a,e),a.forEach(d),this.h()},h(){var c;u(t,"href",i=(c=o[0].online)==null?void 0:c.MPKIT_URL)},m(c,a){P(c,t,a),p(t,l)},p(c,a){var s,r;a&1&&e!==(e=((s=c[0].online)==null?void 0:s.MPKIT_URL.replace("https://",""))+"")&&Qe(l,e),a&1&&i!==(i=(r=c[0].online)==null?void 0:r.MPKIT_URL)&&u(t,"href",i)},d(c){c&&d(t)}}}function ht(o){let t;return{c(){t=Ve("disconnected")},l(e){t=Ae(e,"disconnected")},m(e,l){P(e,t,l)},p:Q,d(e){e&&d(t)}}}function ut(o){let t;return{c(){t=Ve("connecting…")},l(e){t=Ae(e,"connecting…")},m(e,l){P(e,t,l)},p:Q,d(e){e&&d(t)}}}function Pe(o){let t,e,l,i,n,c="Database",a,s,r;return l=new F({props:{icon:"database"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(f){t=$(f,"LI",{class:!0});var E=z(t);e=$(E,"A",{href:!0,class:!0});var b=z(e);y(l.$$.fragment,b),i=M(b),n=$(b,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-xe6gx4"&&(n.textContent=c),b.forEach(d),E.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/database"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/database")),u(t,"class","svelte-uthxgc")},m(f,E){P(f,t,E),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0,s||(r=[Me(e,"focus",o[2],{once:!0}),Me(e,"mouseover",o[2],{once:!0})],s=!0)},p(f,E){(!a||E&2)&&L(e,"active",f[1].url.pathname.startsWith("/database"))},i(f){a||(_(l.$$.fragment,f),a=!0)},o(f){w(l.$$.fragment,f),a=!1},d(f){f&&d(t),O(l),s=!1,Ge(r)}}}function Ue(o){let t,e,l,i,n,c="Users",a;return l=new F({props:{icon:"users"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-o38ms3"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/users"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/users")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/users"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function We(o){let t,e,l,i,n,c="Logs",a;return l=new F({props:{icon:"log"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-17j55om"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/logs"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname==="/logs"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname==="/logs")},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function ye(o){let t,e,l,i,n,c="Logs v2",a;return l=new F({props:{icon:"logFresh"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-taaagi"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/logsv2"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/logsv2")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/logsv2"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function De(o){let t,e,l,i,n,c="Network Logs",a;return l=new F({props:{icon:"globeMessage"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-1d3zf0k"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/network"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/network")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/network"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function Oe(o){let t,e,l,i,n,c="Background Jobs",a;return l=new F({props:{icon:"backgroundJob"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-fuvc8n"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/backgroundJobs"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/backgroundJobs")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/backgroundJobs"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function Je(o){let t,e,l,i,n,c="Constants",a;return l=new F({props:{icon:"constant"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-s4kqu"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href","/constants"),u(e,"class","svelte-uthxgc"),L(e,"active",o[1].url.pathname.startsWith("/constants")),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p(s,r){(!a||r&2)&&L(e,"active",s[1].url.pathname.startsWith("/constants"))},i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function Re(o){let t,e,l,i,n,c="Liquid Evaluator",a;return l=new F({props:{icon:"liquid"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-1k272bg"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href",o[3]+"/gui/liquid"),u(e,"class","svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p:Q,i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function Be(o){let t,e,l,i,n,c="GraphiQL",a;return l=new F({props:{icon:"graphql"}}),{c(){t=g("li"),e=g("a"),W(l.$$.fragment),i=C(),n=g("span"),n.textContent=c,this.h()},l(s){t=$(s,"LI",{class:!0});var r=z(t);e=$(r,"A",{href:!0,class:!0});var f=z(e);y(l.$$.fragment,f),i=M(f),n=$(f,"SPAN",{class:!0,"data-svelte-h":!0}),J(n)!=="svelte-pzl6ct"&&(n.textContent=c),f.forEach(d),r.forEach(d),this.h()},h(){u(n,"class","label svelte-uthxgc"),u(e,"href",o[3]+"/gui/graphql"),u(e,"class","svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(s,r){P(s,t,r),p(t,e),D(l,e,null),p(e,i),p(e,n),a=!0},p:Q,i(s){a||(_(l.$$.fragment,s),a=!0)},o(s){w(l.$$.fragment,s),a=!1},d(s){s&&d(t),O(l)}}}function pt(o){let t,e,l,i,n='',c,a,s,r=' platformOS development tools',f,E,b,m,h,B=o[0].header.includes("database"),Y,ve=o[0].header.includes("users"),Z,_e=o[0].header.includes("logs"),ee,ge=o[0].header.includes("logsv2"),te,$e=o[0].header.includes("network"),se,be=o[0].header.includes("backgroundJobs"),le,ke=o[0].header.includes("constants"),ae,we=o[0].header.includes("liquid"),ne,ze=o[0].header.includes("graphiql"),X;function xe(v,k){return v[0].online===void 0?ut:v[0].online===!1?ht:ft}let ie=xe(o),R=ie(o),I=B&&Pe(o),V=ve&&Ue(o),A=_e&&We(o),x=ge&&ye(o),H=$e&&De(o),N=be&&Oe(o),S=ke&&Je(o),q=we&&Re(Ce(o)),T=ze&&Be(Le(o));return{c(){t=g("header"),e=g("div"),l=g("div"),i=g("a"),i.innerHTML=n,c=C(),a=g("h1"),s=g("a"),s.innerHTML=r,f=C(),E=g("span"),R.c(),b=C(),m=g("nav"),h=g("ul"),I&&I.c(),Y=C(),V&&V.c(),Z=C(),A&&A.c(),ee=C(),x&&x.c(),te=C(),H&&H.c(),se=C(),N&&N.c(),le=C(),S&&S.c(),ae=C(),q&&q.c(),ne=C(),T&&T.c(),this.h()},l(v){t=$(v,"HEADER",{class:!0});var k=z(t);e=$(k,"DIV",{class:!0});var re=z(e);l=$(re,"DIV",{class:!0});var oe=z(l);i=$(oe,"A",{href:!0,"data-svelte-h":!0}),J(i)!=="svelte-1nhlu7c"&&(i.innerHTML=n),c=M(oe),a=$(oe,"H1",{class:!0});var ce=z(a);s=$(ce,"A",{href:!0,class:!0,"data-svelte-h":!0}),J(s)!=="svelte-z2lbz1"&&(s.innerHTML=r),f=M(ce),E=$(ce,"SPAN",{class:!0});var He=z(E);R.l(He),He.forEach(d),ce.forEach(d),oe.forEach(d),b=M(re),m=$(re,"NAV",{class:!0});var Ne=z(m);h=$(Ne,"UL",{class:!0});var U=z(h);I&&I.l(U),Y=M(U),V&&V.l(U),Z=M(U),A&&A.l(U),ee=M(U),x&&x.l(U),te=M(U),H&&H.l(U),se=M(U),N&&N.l(U),le=M(U),S&&S.l(U),ae=M(U),q&&q.l(U),ne=M(U),T&&T.l(U),U.forEach(d),Ne.forEach(d),re.forEach(d),k.forEach(d),this.h()},h(){u(i,"href","/"),u(s,"href","/"),u(s,"class","svelte-uthxgc"),u(E,"class","instance svelte-uthxgc"),L(E,"offline",!o[0].online),u(a,"class","svelte-uthxgc"),u(l,"class","logo svelte-uthxgc"),u(h,"class","svelte-uthxgc"),u(m,"class","svelte-uthxgc"),u(e,"class","wrapper svelte-uthxgc"),u(t,"class","svelte-uthxgc")},m(v,k){P(v,t,k),p(t,e),p(e,l),p(l,i),p(l,c),p(l,a),p(a,s),p(a,f),p(a,E),R.m(E,null),p(e,b),p(e,m),p(m,h),I&&I.m(h,null),p(h,Y),V&&V.m(h,null),p(h,Z),A&&A.m(h,null),p(h,ee),x&&x.m(h,null),p(h,te),H&&H.m(h,null),p(h,se),N&&N.m(h,null),p(h,le),S&&S.m(h,null),p(h,ae),q&&q.m(h,null),p(h,ne),T&&T.m(h,null),X=!0},p(v,[k]){ie===(ie=xe(v))&&R?R.p(v,k):(R.d(1),R=ie(v),R&&(R.c(),R.m(E,null))),(!X||k&1)&&L(E,"offline",!v[0].online),k&1&&(B=v[0].header.includes("database")),B?I?(I.p(v,k),k&1&&_(I,1)):(I=Pe(v),I.c(),_(I,1),I.m(h,Y)):I&&(K(),w(I,1,1,()=>{I=null}),j()),k&1&&(ve=v[0].header.includes("users")),ve?V?(V.p(v,k),k&1&&_(V,1)):(V=Ue(v),V.c(),_(V,1),V.m(h,Z)):V&&(K(),w(V,1,1,()=>{V=null}),j()),k&1&&(_e=v[0].header.includes("logs")),_e?A?(A.p(v,k),k&1&&_(A,1)):(A=We(v),A.c(),_(A,1),A.m(h,ee)):A&&(K(),w(A,1,1,()=>{A=null}),j()),k&1&&(ge=v[0].header.includes("logsv2")),ge?x?(x.p(v,k),k&1&&_(x,1)):(x=ye(v),x.c(),_(x,1),x.m(h,te)):x&&(K(),w(x,1,1,()=>{x=null}),j()),k&1&&($e=v[0].header.includes("network")),$e?H?(H.p(v,k),k&1&&_(H,1)):(H=De(v),H.c(),_(H,1),H.m(h,se)):H&&(K(),w(H,1,1,()=>{H=null}),j()),k&1&&(be=v[0].header.includes("backgroundJobs")),be?N?(N.p(v,k),k&1&&_(N,1)):(N=Oe(v),N.c(),_(N,1),N.m(h,le)):N&&(K(),w(N,1,1,()=>{N=null}),j()),k&1&&(ke=v[0].header.includes("constants")),ke?S?(S.p(v,k),k&1&&_(S,1)):(S=Je(v),S.c(),_(S,1),S.m(h,ae)):S&&(K(),w(S,1,1,()=>{S=null}),j()),k&1&&(we=v[0].header.includes("liquid")),we?q?(q.p(Ce(v),k),k&1&&_(q,1)):(q=Re(Ce(v)),q.c(),_(q,1),q.m(h,ne)):q&&(K(),w(q,1,1,()=>{q=null}),j()),k&1&&(ze=v[0].header.includes("graphiql")),ze?T?(T.p(Le(v),k),k&1&&_(T,1)):(T=Be(Le(v)),T.c(),_(T,1),T.m(h,null)):T&&(K(),w(T,1,1,()=>{T=null}),j())},i(v){X||(_(I),_(V),_(A),_(x),_(H),_(N),_(S),_(q),_(T),X=!0)},o(v){w(I),w(V),w(A),w(x),w(H),w(N),w(S),w(q),w(T),X=!1},d(v){v&&d(t),R.d(),I&&I.d(),V&&V.d(),A&&A.d(),x&&x.d(),H&&H.d(),N&&N.d(),S&&S.d(),q&&q.d(),T&&T.d()}}}function dt(o,t,e){let l,i;return fe(o,G,c=>e(0,l=c)),fe(o,it,c=>e(1,i=c)),[l,i,async()=>{l.tables.length||Ee(G,l.tables=await rt.get(),l)}]}class mt extends de{constructor(t){super(),me(this,t,dt,pt,pe,{})}}function Ke(o){let t,e="Disconnected from the instance";return{c(){t=g("div"),t.textContent=e,this.h()},l(l){t=$(l,"DIV",{class:!0,"data-svelte-h":!0}),J(t)!=="svelte-1k8ucix"&&(t.textContent=e),this.h()},h(){u(t,"class","connectionIndicator svelte-1cyr69k"),L(t,"offline",o[0].online===!1)},m(l,i){P(l,t,i)},p(l,i){i&1&&L(t,"offline",l[0].online===!1)},d(l){l&&d(t)}}}function vt(o){let t,e=o[0].online===!1&&Ke(o);return{c(){e&&e.c(),t=Se()},l(l){e&&e.l(l),t=Se()},m(l,i){e&&e.m(l,i),P(l,t,i)},p(l,[i]){l[0].online===!1?e?e.p(l,i):(e=Ke(l),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:Q,o:Q,d(l){l&&d(t),e&&e.d(l)}}}let _t=7e3;function gt(o,t,e){let l;fe(o,G,c=>e(0,l=c));let i;Xe(async()=>(n(),i=setInterval(n,_t),()=>clearInterval(i)));const n=async()=>{if(document.visibilityState!=="hidden"){const c=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333";fetch(`${c}/info`).then(a=>a.json()).then(a=>{a&&Ee(G,l.online=a,l)}).catch(a=>{Ee(G,l.online=!1,l)})}};return[l]}class $t extends de{constructor(t){super(),me(this,t,gt,vt,pe,{})}}function je(o,t,e){const l=o.slice();return l[4]=t[e],l}function Fe(o,t){let e,l,i=t[4].message+"",n,c,a,s,r,f,E;a=new F({props:{icon:"x",size:"10"}});function b(){return t[2](t[4])}return{key:o,first:null,c(){e=g("div"),l=new et(!1),n=C(),c=g("button"),W(a.$$.fragment),this.h()},l(m){e=$(m,"DIV",{class:!0});var h=z(e);l=tt(h,!1),n=M(h),c=$(h,"BUTTON",{class:!0});var B=z(c);y(a.$$.fragment,B),B.forEach(d),h.forEach(d),this.h()},h(){l.a=n,u(c,"class","svelte-fq192n"),u(e,"class","notification svelte-fq192n"),L(e,"success",t[4].type==="success"),L(e,"error",t[4].type==="error"),L(e,"info",t[4].type==="info"),this.first=e},m(m,h){P(m,e,h),l.m(i,e),p(e,n),p(e,c),D(a,c,null),r=!0,f||(E=Me(c,"click",b),f=!0)},p(m,h){t=m,(!r||h&2)&&i!==(i=t[4].message+"")&&l.p(i),(!r||h&2)&&L(e,"success",t[4].type==="success"),(!r||h&2)&&L(e,"error",t[4].type==="error"),(!r||h&2)&&L(e,"info",t[4].type==="info")},i(m){r||(_(a.$$.fragment,m),m&&Ie(()=>{r&&(s||(s=he(e,ue,{duration:100},!0)),s.run(1))}),r=!0)},o(m){w(a.$$.fragment,m),m&&(s||(s=he(e,ue,{duration:100},!1)),s.run(0)),r=!1},d(m){m&&d(e),O(a),m&&s&&s.end(),f=!1,E()}}}function bt(o){let t,e=[],l=new Map,i,n,c,a,s,r,f=Te(o[1].notifications);const E=b=>b[4].id;for(let b=0;bo[3].call(t))},m(b,m){P(b,t,m);for(let h=0;h{r&&(a||(a=he(n,ue,{duration:100},!0)),a.run(1))}),r=!0}},o(b){for(let m=0;me(1,l=a));let i=0;Ze(()=>{l.notifications.forEach(a=>{a.timeout||(a.type==="success"||a.type==="info")&&(a.timeout=setTimeout(()=>G.notification.remove(a.id),7e3))})});const n=a=>G.notification.remove(a.id);function c(){i=this.clientHeight,e(0,i)}return[i,l,n,c]}class wt extends de{constructor(t){super(),me(this,t,kt,bt,pe,{})}}function zt(o){let t,e,l,i,n;t=new mt({});const c=o[1].default,a=st(c,o,o[0],null);return i=new wt({}),{c(){W(t.$$.fragment),e=C(),a&&a.c(),l=C(),W(i.$$.fragment)},l(s){y(t.$$.fragment,s),e=M(s),a&&a.l(s),l=M(s),y(i.$$.fragment,s)},m(s,r){D(t,s,r),P(s,e,r),a&&a.m(s,r),P(s,l,r),D(i,s,r),n=!0},p(s,[r]){a&&a.p&&(!n||r&1)&<(a,c,s,s[0],n?nt(c,s[0],r,null):at(s[0]),null)},i(s){n||(_(t.$$.fragment,s),_(a,s),_(i.$$.fragment,s),n=!0)},o(s){w(t.$$.fragment,s),w(a,s),w(i.$$.fragment,s),n=!1},d(s){s&&(d(e),d(l)),O(t,s),a&&a.d(s),O(i,s)}}}function Lt(o,t,e){let{$$slots:l={},$$scope:i}=t;return o.$$set=n=>{"$$scope"in n&&e(0,i=n.$$scope)},[i,l]}class Nt extends de{constructor(t){super(),me(this,t,Lt,zt,pe,{})}}export{Nt as component}; diff --git a/gui/next/build/_app/immutable/nodes/1.B1ovvcWz.js b/gui/next/build/_app/immutable/nodes/1.B1ovvcWz.js deleted file mode 100644 index 5f4b060b3..000000000 --- a/gui/next/build/_app/immutable/nodes/1.B1ovvcWz.js +++ /dev/null @@ -1 +0,0 @@ -import{s as x,e as u,t as h,a as S,c as d,b as v,d as g,f as m,g as j,i as _,h as b,j as E,n as $,k}from"../chunks/scheduler.CKQ5dLhN.js";import{S as q,i as y}from"../chunks/index.CGVWAVV-.js";import{p as C}from"../chunks/stores.BLuxmlax.js";function H(i){var f;let a,s=i[0].status+"",r,o,n,p=((f=i[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(s),o=S(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var t=v(a);r=g(t,s),t.forEach(m),o=j(e),n=d(e,"P",{});var l=v(n);c=g(l,p),l.forEach(m)},m(e,t){_(e,a,t),b(a,r),_(e,o,t),_(e,n,t),b(n,c)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&E(r,s),t&1&&p!==(p=((l=e[0].error)==null?void 0:l.message)+"")&&E(c,p)},i:$,o:$,d(e){e&&(m(a),m(o),m(n))}}}function P(i,a,s){let r;return k(i,C,o=>s(0,r=o)),[r]}class B extends q{constructor(a){super(),y(this,a,P,H,x,{})}}export{B as component}; diff --git a/gui/next/build/_app/immutable/nodes/1.CD3leUXn.js b/gui/next/build/_app/immutable/nodes/1.CD3leUXn.js new file mode 100644 index 000000000..05b971a3f --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/1.CD3leUXn.js @@ -0,0 +1 @@ +import{S as x,i as S,s as j,n as u,d as c,a as h,b as _,c as d,e as v,f as g,g as b,h as k,j as E,t as $,k as q,l as y}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{p as C}from"../chunks/C6Nbyvij.js";function H(p){var f;let a,s=p[0].status+"",r,n,o,i=((f=p[0].error)==null?void 0:f.message)+"",m;return{c(){a=E("h1"),r=$(s),n=q(),o=E("p"),m=$(i)},l(e){a=v(e,"H1",{});var t=g(a);r=b(t,s),t.forEach(c),n=k(e),o=v(e,"P",{});var l=g(o);m=b(l,i),l.forEach(c)},m(e,t){_(e,a,t),d(a,r),_(e,n,t),_(e,o,t),d(o,m)},p(e,[t]){var l;t&1&&s!==(s=e[0].status+"")&&h(r,s),t&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&h(m,i)},i:u,o:u,d(e){e&&(c(a),c(n),c(o))}}}function P(p,a,s){let r;return y(p,C,n=>s(0,r=n)),[r]}class B extends x{constructor(a){super(),S(this,a,P,H,j,{})}}export{B as component}; diff --git a/gui/next/build/_app/immutable/nodes/10.7hS_xzU-.js b/gui/next/build/_app/immutable/nodes/10.7hS_xzU-.js new file mode 100644 index 000000000..e57dc69a9 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/10.7hS_xzU-.js @@ -0,0 +1 @@ +import{S as t,i as e,s as o}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";class r extends t{constructor(s){super(),e(this,s,null,null,o,{})}}export{r as component}; diff --git a/gui/next/build/_app/immutable/nodes/10.BOVZRVUg.js b/gui/next/build/_app/immutable/nodes/10.BOVZRVUg.js deleted file mode 100644 index 42ac7c16e..000000000 --- a/gui/next/build/_app/immutable/nodes/10.BOVZRVUg.js +++ /dev/null @@ -1 +0,0 @@ -import{s}from"../chunks/scheduler.CKQ5dLhN.js";import{S as t,i as e}from"../chunks/index.CGVWAVV-.js";class l extends t{constructor(o){super(),e(this,o,null,null,s,{})}}export{l as component}; diff --git a/gui/next/build/_app/immutable/nodes/11.D0wEx6D6.js b/gui/next/build/_app/immutable/nodes/11.D0wEx6D6.js new file mode 100644 index 000000000..a9c48a40b --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/11.D0wEx6D6.js @@ -0,0 +1 @@ +import{S as se,i as ae,s as ne,m as ie,d,o as N,p as j,u as re,q as oe,r as ce,z as k,b as m,c as _,e as b,f as L,j as g,a7 as fe,P as ue,C as de,E as z,I as B,ad as _e,v as me,K as P,h as w,L as F,k as D,M as K,l as pe,R as V,H as M,y as I,n as U,g as H,t as y,a as A}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{p as he}from"../chunks/C6Nbyvij.js";import{b as ve}from"../chunks/CIy9Z9Qf.js";import{A as be}from"../chunks/CqRAXfEk.js";import{J as ge}from"../chunks/CMNnzBs7.js";function qe(f){let e,a,o,i,r,s;const l=f[3].default,t=ie(l,f,f[2],null);return{c(){e=g("template"),a=g("pre"),o=g("code"),t&&t.c(),this.h()},l(n){e=b(n,"TEMPLATE",{});var c=L(e.content);a=b(c,"PRE",{class:!0});var p=L(a);o=b(p,"CODE",{class:!0});var h=L(o);t&&t.l(h),h.forEach(d),p.forEach(d),c.forEach(d),this.h()},h(){k(o,"class",i="language-"+f[0]),k(a,"class",r="line-numbers language-"+f[0])},m(n,c){m(n,e,c),_(e.content,a),_(a,o),t&&t.m(o,null),f[4](e),s=!0},p(n,[c]){t&&t.p&&(!s||c&4)&&re(t,l,n,n[2],s?ce(l,n[2],c,null):oe(n[2]),null),(!s||c&1&&i!==(i="language-"+n[0]))&&k(o,"class",i),(!s||c&1&&r!==(r="line-numbers language-"+n[0]))&&k(a,"class",r)},i(n){s||(j(t,n),s=!0)},o(n){N(t,n),s=!1},d(n){n&&d(e),t&&t.d(n),f[4](null)}}}function ke(f,e,a){let{$$slots:o={},$$scope:i}=e,{language:r}=e,s;fe(async()=>{var n;await ue(),(n=document.querySelector("#code"))==null||n.remove();const t=s.content.cloneNode(!0);t.firstChild.id="code",s.after(t),Prism.highlightAll()});function l(t){de[t?"unshift":"push"](()=>{s=t,a(1,s)})}return f.$$set=t=>{"language"in t&&a(0,r=t.language),"$$scope"in t&&a(2,i=t.$$scope)},[r,s,i,o,l]}class Ce extends se{constructor(e){super(),ae(this,e,ke,qe,ne,{language:0})}}function $e(f){let e,a,o,i,r,s,l,t,n=f[1].source_name&&W(f),c=f[1].id&&X(f),p=f[1].error_message&&x(f),h=f[1].liquid_body&&ee(f),$=f[1].partial_name&&te(f),q=f[1].arguments&&le(f);return{c(){e=g("dl"),n&&n.c(),a=I(),c&&c.c(),o=D(),p&&p.c(),i=D(),h&&h.c(),r=D(),$&&$.c(),s=D(),q&&q.c(),l=I(),this.h()},l(u){e=b(u,"DL",{class:!0});var v=L(e);n&&n.l(v),a=I(),c&&c.l(v),v.forEach(d),o=w(u),p&&p.l(u),i=w(u),h&&h.l(u),r=w(u),$&&$.l(u),s=w(u),q&&q.l(u),l=I(),this.h()},h(){k(e,"class","info svelte-7qclwq")},m(u,v){m(u,e,v),n&&n.m(e,null),_(e,a),c&&c.m(e,null),m(u,o,v),p&&p.m(u,v),m(u,i,v),h&&h.m(u,v),m(u,r,v),$&&$.m(u,v),m(u,s,v),q&&q.m(u,v),m(u,l,v),t=!0},p(u,v){u[1].source_name?n?n.p(u,v):(n=W(u),n.c(),n.m(e,a)):n&&(n.d(1),n=null),u[1].id?c?c.p(u,v):(c=X(u),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u[1].error_message?p?p.p(u,v):(p=x(u),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),u[1].liquid_body?h?(h.p(u,v),v&2&&j(h,1)):(h=ee(u),h.c(),j(h,1),h.m(r.parentNode,r)):h&&(V(),N(h,1,1,()=>{h=null}),M()),u[1].partial_name?$?$.p(u,v):($=te(u),$.c(),$.m(s.parentNode,s)):$&&($.d(1),$=null),u[1].arguments?q?(q.p(u,v),v&2&&j(q,1)):(q=le(u),q.c(),j(q,1),q.m(l.parentNode,l)):q&&(V(),N(q,1,1,()=>{q=null}),M())},i(u){t||(j(h),j(q),t=!0)},o(u){N(h),N(q),t=!1},d(u){u&&(d(e),d(o),d(i),d(r),d(s),d(l)),n&&n.d(),c&&c.d(),p&&p.d(u),h&&h.d(u),$&&$.d(u),q&&q.d(u)}}}function we(f){let e;return{c(){e=y("There is no such background job")},l(a){e=H(a,"There is no such background job")},m(a,o){m(a,e,o)},p:U,i:U,o:U,d(a){a&&d(e)}}}function W(f){let e,a,o="ID:",i,r,s=f[1].id+"",l,t;return{c(){e=g("div"),a=g("dt"),a.textContent=o,i=D(),r=g("dd"),l=y(s),t=D(),this.h()},l(n){e=b(n,"DIV",{class:!0});var c=L(e);a=b(c,"DT",{class:!0,"data-svelte-h":!0}),P(a)!=="svelte-179gw2t"&&(a.textContent=o),i=w(c),r=b(c,"DD",{});var p=L(r);l=H(p,s),p.forEach(d),t=w(c),c.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(n,c){m(n,e,c),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t)},p(n,c){c&2&&s!==(s=n[1].id+"")&&A(l,s)},d(n){n&&d(e)}}}function X(f){let e,a,o="Created at:",i,r,s=new Date(f[1].created_at).toLocaleString()+"",l,t,n,c,p="Run at:",h,$,q=new Date(f[1].run_at).toLocaleString()+"",u,v,J,O,S=f[1].dead_at&&Y(f),T=f[1].arguments.url&&Z(f);return{c(){e=g("div"),a=g("dt"),a.textContent=o,i=D(),r=g("dd"),l=y(s),t=D(),n=g("div"),c=g("dt"),c.textContent=p,h=D(),$=g("dd"),u=y(q),v=D(),S&&S.c(),J=I(),T&&T.c(),O=I(),this.h()},l(C){e=b(C,"DIV",{class:!0});var E=L(e);a=b(E,"DT",{class:!0,"data-svelte-h":!0}),P(a)!=="svelte-psrdxl"&&(a.textContent=o),i=w(E),r=b(E,"DD",{});var G=L(r);l=H(G,s),G.forEach(d),t=w(E),E.forEach(d),n=b(C,"DIV",{class:!0});var R=L(n);c=b(R,"DT",{class:!0,"data-svelte-h":!0}),P(c)!=="svelte-u0lbhu"&&(c.textContent=p),h=w(R),$=b(R,"DD",{});var Q=L($);u=H(Q,q),Q.forEach(d),v=w(R),R.forEach(d),S&&S.l(C),J=I(),T&&T.l(C),O=I(),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq"),k(c,"class","svelte-7qclwq"),k(n,"class","svelte-7qclwq")},m(C,E){m(C,e,E),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t),m(C,n,E),_(n,c),_(n,h),_(n,$),_($,u),_(n,v),S&&S.m(C,E),m(C,J,E),T&&T.m(C,E),m(C,O,E)},p(C,E){E&2&&s!==(s=new Date(C[1].created_at).toLocaleString()+"")&&A(l,s),E&2&&q!==(q=new Date(C[1].run_at).toLocaleString()+"")&&A(u,q),C[1].dead_at?S?S.p(C,E):(S=Y(C),S.c(),S.m(J.parentNode,J)):S&&(S.d(1),S=null),C[1].arguments.url?T?T.p(C,E):(T=Z(C),T.c(),T.m(O.parentNode,O)):T&&(T.d(1),T=null)},d(C){C&&(d(e),d(n),d(J),d(O)),S&&S.d(C),T&&T.d(C)}}}function Y(f){let e,a,o="Dead at:",i,r,s=new Date(f[1].dead_at).toLocaleString()+"",l,t;return{c(){e=g("div"),a=g("dt"),a.textContent=o,i=D(),r=g("dd"),l=y(s),t=D(),this.h()},l(n){e=b(n,"DIV",{class:!0});var c=L(e);a=b(c,"DT",{class:!0,"data-svelte-h":!0}),P(a)!=="svelte-1gjx1j5"&&(a.textContent=o),i=w(c),r=b(c,"DD",{class:!0});var p=L(r);l=H(p,s),p.forEach(d),t=w(c),c.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(r,"class","error svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(n,c){m(n,e,c),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t)},p(n,c){c&2&&s!==(s=new Date(n[1].dead_at).toLocaleString()+"")&&A(l,s)},d(n){n&&d(e)}}}function Z(f){let e,a,o="URL:",i,r,s=(f[1].arguments.context.location.href||"/")+"",l;return{c(){e=g("div"),a=g("dt"),a.textContent=o,i=D(),r=g("dd"),l=y(s),this.h()},l(t){e=b(t,"DIV",{class:!0});var n=L(e);a=b(n,"DT",{class:!0,"data-svelte-h":!0}),P(a)!=="svelte-vrqyfv"&&(a.textContent=o),i=w(n),r=b(n,"DD",{});var c=L(r);l=H(c,s),c.forEach(d),n.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(t,n){m(t,e,n),_(e,a),_(e,i),_(e,r),_(r,l)},p(t,n){n&2&&s!==(s=(t[1].arguments.context.location.href||"/")+"")&&A(l,s)},d(t){t&&d(e)}}}function x(f){let e,a="Error message",o,i,r=f[1].error_message+"",s;return{c(){e=g("h2"),e.textContent=a,o=D(),i=g("code"),s=y(r),this.h()},l(l){e=b(l,"H2",{class:!0,"data-svelte-h":!0}),P(e)!=="svelte-46lcxd"&&(e.textContent=a),o=w(l),i=b(l,"CODE",{class:!0});var t=L(i);s=H(t,r),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),_(i,s)},p(l,t){t&2&&r!==(r=l[1].error_message+"")&&A(s,r)},d(l){l&&(d(e),d(o),d(i))}}}function ee(f){let e,a="Background job code:",o,i,r;return i=new Ce({props:{language:"liquid",$$slots:{default:[De]},$$scope:{ctx:f}}}),{c(){e=g("h2"),e.textContent=a,o=D(),K(i.$$.fragment),this.h()},l(s){e=b(s,"H2",{class:!0,"data-svelte-h":!0}),P(e)!=="svelte-dymu4w"&&(e.textContent=a),o=w(s),F(i.$$.fragment,s),this.h()},h(){k(e,"class","svelte-7qclwq")},m(s,l){m(s,e,l),m(s,o,l),B(i,s,l),r=!0},p(s,l){const t={};l&10&&(t.$$scope={dirty:l,ctx:s}),i.$set(t)},i(s){r||(j(i.$$.fragment,s),r=!0)},o(s){N(i.$$.fragment,s),r=!1},d(s){s&&(d(e),d(o)),z(i,s)}}}function De(f){let e=f[1].liquid_body+"",a;return{c(){a=y(e)},l(o){a=H(o,e)},m(o,i){m(o,a,i)},p(o,i){i&2&&e!==(e=o[1].liquid_body+"")&&A(a,e)},d(o){o&&d(a)}}}function te(f){let e,a="Background function name:",o,i,r=f[1].partial_name+"",s;return{c(){e=g("h2"),e.textContent=a,o=D(),i=g("code"),s=y(r),this.h()},l(l){e=b(l,"H2",{class:!0,"data-svelte-h":!0}),P(e)!=="svelte-1qty0jf"&&(e.textContent=a),o=w(l),i=b(l,"CODE",{class:!0});var t=L(i);s=H(t,r),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),_(i,s)},p(l,t){t&2&&r!==(r=l[1].partial_name+"")&&A(s,r)},d(l){l&&(d(e),d(o),d(i))}}}function le(f){let e,a="Arguments",o,i,r,s;return r=new ge({props:{value:f[1].arguments,expandedLines:1,showFullLines:!0}}),{c(){e=g("h2"),e.textContent=a,o=D(),i=g("code"),K(r.$$.fragment),this.h()},l(l){e=b(l,"H2",{class:!0,"data-svelte-h":!0}),P(e)!=="svelte-h49jwy"&&(e.textContent=a),o=w(l),i=b(l,"CODE",{class:!0});var t=L(i);F(r.$$.fragment,t),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),B(r,i,null),s=!0},p(l,t){const n={};t&2&&(n.value=l[1].arguments),r.$set(n)},i(l){s||(j(r.$$.fragment,l),s=!0)},o(l){N(r.$$.fragment,l),s=!1},d(l){l&&(d(e),d(o),d(i)),z(r)}}}function Ee(f){let e,a,o,i;const r=[we,$e],s=[];function l(t,n){return t[1]===null?0:1}return e=l(f),a=s[e]=r[e](f),{c(){a.c(),o=I()},l(t){a.l(t),o=I()},m(t,n){s[e].m(t,n),m(t,o,n),i=!0},p(t,n){let c=e;e=l(t),e===c?s[e].p(t,n):(V(),N(s[c],1,1,()=>{s[c]=null}),M(),a=s[e],a?a.p(t,n):(a=s[e]=r[e](t),a.c()),j(a,1),a.m(o.parentNode,o))},i(t){i||(j(a),i=!0)},o(t){N(a),i=!1},d(t){t&&d(o),s[e].d(t)}}}function Le(f){let e,a="",o,i,r,s;return r=new be({props:{title:f[1].source_name||f[1].id||"Loading…",closeUrl:"/backgroundJobs?"+f[0].url.searchParams.toString(),$$slots:{default:[Ee]},$$scope:{ctx:f}}}),{c(){e=g("script"),e.innerHTML=a,i=D(),K(r.$$.fragment),this.h()},l(l){const t=me("svelte-1pgpgj4",document.head);e=b(t,"SCRIPT",{src:!0,"data-manual":!0,"data-svelte-h":!0}),P(e)!=="svelte-6mxszl"&&(e.innerHTML=a),t.forEach(d),i=w(l),F(r.$$.fragment,l),this.h()},h(){_e(e.src,o="/prism.js")||k(e,"src",o),k(e,"data-manual","")},m(l,t){_(document.head,e),m(l,i,t),B(r,l,t),s=!0},p(l,[t]){const n={};t&2&&(n.title=l[1].source_name||l[1].id||"Loading…"),t&1&&(n.closeUrl="/backgroundJobs?"+l[0].url.searchParams.toString()),t&10&&(n.$$scope={dirty:t,ctx:l}),r.$set(n)},i(l){s||(j(r.$$.fragment,l),s=!0)},o(l){N(r.$$.fragment,l),s=!1},d(l){l&&d(i),d(e),z(r,l)}}}function Se(f,e,a){let o;pe(f,he,s=>a(0,o=s));let i={};const r=async()=>{await ve.get({id:o.params.id,type:o.params.type.toUpperCase()}).then(s=>{s.results.length?a(1,i=s.results[0]):a(1,i=null)})};return f.$$.update=()=>{f.$$.dirty&1&&o.params.id&&r(o.params.id)},[o,i]}class ye extends se{constructor(e){super(),ae(this,e,Se,Le,ne,{})}}export{ye as component}; diff --git a/gui/next/build/_app/immutable/nodes/11.DGqxXEVk.js b/gui/next/build/_app/immutable/nodes/11.DGqxXEVk.js deleted file mode 100644 index e204a0294..000000000 --- a/gui/next/build/_app/immutable/nodes/11.DGqxXEVk.js +++ /dev/null @@ -1 +0,0 @@ -import{s as se,l as ie,e as b,c as g,b as L,f as d,y as k,i as m,h as _,u as re,m as oe,o as ce,W as fe,H as ue,z as de,a as w,p as _e,A as I,g as D,a0 as me,k as pe,v as N,t as P,d as A,n as V,j as y}from"../chunks/scheduler.CKQ5dLhN.js";import{S as ae,i as ne,t as j,a as H,c as z,d as B,m as F,f as W,g as R,e as M}from"../chunks/index.CGVWAVV-.js";import{p as he}from"../chunks/stores.BLuxmlax.js";import{b as ve}from"../chunks/backgroundJob.cWe0itmY.js";import{A as be}from"../chunks/Aside.CzwHeuWZ.js";import{J as ge}from"../chunks/JSONTree.B6rnjEUC.js";function qe(f){let e,a,o,i,r,s;const l=f[3].default,t=ie(l,f,f[2],null);return{c(){e=b("template"),a=b("pre"),o=b("code"),t&&t.c(),this.h()},l(n){e=g(n,"TEMPLATE",{});var c=L(e.content);a=g(c,"PRE",{class:!0});var p=L(a);o=g(p,"CODE",{class:!0});var h=L(o);t&&t.l(h),h.forEach(d),p.forEach(d),c.forEach(d),this.h()},h(){k(o,"class",i="language-"+f[0]),k(a,"class",r="line-numbers language-"+f[0])},m(n,c){m(n,e,c),_(e.content,a),_(a,o),t&&t.m(o,null),f[4](e),s=!0},p(n,[c]){t&&t.p&&(!s||c&4)&&re(t,l,n,n[2],s?ce(l,n[2],c,null):oe(n[2]),null),(!s||c&1&&i!==(i="language-"+n[0]))&&k(o,"class",i),(!s||c&1&&r!==(r="line-numbers language-"+n[0]))&&k(a,"class",r)},i(n){s||(j(t,n),s=!0)},o(n){H(t,n),s=!1},d(n){n&&d(e),t&&t.d(n),f[4](null)}}}function ke(f,e,a){let{$$slots:o={},$$scope:i}=e,{language:r}=e,s;fe(async()=>{var n;await ue(),(n=document.querySelector("#code"))==null||n.remove();const t=s.content.cloneNode(!0);t.firstChild.id="code",s.after(t),Prism.highlightAll()});function l(t){de[t?"unshift":"push"](()=>{s=t,a(1,s)})}return f.$$set=t=>{"language"in t&&a(0,r=t.language),"$$scope"in t&&a(2,i=t.$$scope)},[r,s,i,o,l]}class Ce extends ae{constructor(e){super(),ne(this,e,ke,qe,se,{language:0})}}function $e(f){let e,a,o,i,r,s,l,t,n=f[1].source_name&&Q(f),c=f[1].id&&X(f),p=f[1].error_message&&x(f),h=f[1].liquid_body&&ee(f),$=f[1].partial_name&&te(f),q=f[1].arguments&&le(f);return{c(){e=b("dl"),n&&n.c(),a=N(),c&&c.c(),o=w(),p&&p.c(),i=w(),h&&h.c(),r=w(),$&&$.c(),s=w(),q&&q.c(),l=N(),this.h()},l(u){e=g(u,"DL",{class:!0});var v=L(e);n&&n.l(v),a=N(),c&&c.l(v),v.forEach(d),o=D(u),p&&p.l(u),i=D(u),h&&h.l(u),r=D(u),$&&$.l(u),s=D(u),q&&q.l(u),l=N(),this.h()},h(){k(e,"class","info svelte-7qclwq")},m(u,v){m(u,e,v),n&&n.m(e,null),_(e,a),c&&c.m(e,null),m(u,o,v),p&&p.m(u,v),m(u,i,v),h&&h.m(u,v),m(u,r,v),$&&$.m(u,v),m(u,s,v),q&&q.m(u,v),m(u,l,v),t=!0},p(u,v){u[1].source_name?n?n.p(u,v):(n=Q(u),n.c(),n.m(e,a)):n&&(n.d(1),n=null),u[1].id?c?c.p(u,v):(c=X(u),c.c(),c.m(e,null)):c&&(c.d(1),c=null),u[1].error_message?p?p.p(u,v):(p=x(u),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),u[1].liquid_body?h?(h.p(u,v),v&2&&j(h,1)):(h=ee(u),h.c(),j(h,1),h.m(r.parentNode,r)):h&&(R(),H(h,1,1,()=>{h=null}),M()),u[1].partial_name?$?$.p(u,v):($=te(u),$.c(),$.m(s.parentNode,s)):$&&($.d(1),$=null),u[1].arguments?q?(q.p(u,v),v&2&&j(q,1)):(q=le(u),q.c(),j(q,1),q.m(l.parentNode,l)):q&&(R(),H(q,1,1,()=>{q=null}),M())},i(u){t||(j(h),j(q),t=!0)},o(u){H(h),H(q),t=!1},d(u){u&&(d(e),d(o),d(i),d(r),d(s),d(l)),n&&n.d(),c&&c.d(),p&&p.d(u),h&&h.d(u),$&&$.d(u),q&&q.d(u)}}}function we(f){let e;return{c(){e=P("There is no such background job")},l(a){e=A(a,"There is no such background job")},m(a,o){m(a,e,o)},p:V,i:V,o:V,d(a){a&&d(e)}}}function Q(f){let e,a,o="ID:",i,r,s=f[1].id+"",l,t;return{c(){e=b("div"),a=b("dt"),a.textContent=o,i=w(),r=b("dd"),l=P(s),t=w(),this.h()},l(n){e=g(n,"DIV",{class:!0});var c=L(e);a=g(c,"DT",{class:!0,"data-svelte-h":!0}),I(a)!=="svelte-179gw2t"&&(a.textContent=o),i=D(c),r=g(c,"DD",{});var p=L(r);l=A(p,s),p.forEach(d),t=D(c),c.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(n,c){m(n,e,c),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t)},p(n,c){c&2&&s!==(s=n[1].id+"")&&y(l,s)},d(n){n&&d(e)}}}function X(f){let e,a,o="Created at:",i,r,s=new Date(f[1].created_at).toLocaleString()+"",l,t,n,c,p="Run at:",h,$,q=new Date(f[1].run_at).toLocaleString()+"",u,v,J,O,S=f[1].dead_at&&Y(f),T=f[1].arguments.url&&Z(f);return{c(){e=b("div"),a=b("dt"),a.textContent=o,i=w(),r=b("dd"),l=P(s),t=w(),n=b("div"),c=b("dt"),c.textContent=p,h=w(),$=b("dd"),u=P(q),v=w(),S&&S.c(),J=N(),T&&T.c(),O=N(),this.h()},l(C){e=g(C,"DIV",{class:!0});var E=L(e);a=g(E,"DT",{class:!0,"data-svelte-h":!0}),I(a)!=="svelte-psrdxl"&&(a.textContent=o),i=D(E),r=g(E,"DD",{});var G=L(r);l=A(G,s),G.forEach(d),t=D(E),E.forEach(d),n=g(C,"DIV",{class:!0});var U=L(n);c=g(U,"DT",{class:!0,"data-svelte-h":!0}),I(c)!=="svelte-u0lbhu"&&(c.textContent=p),h=D(U),$=g(U,"DD",{});var K=L($);u=A(K,q),K.forEach(d),v=D(U),U.forEach(d),S&&S.l(C),J=N(),T&&T.l(C),O=N(),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq"),k(c,"class","svelte-7qclwq"),k(n,"class","svelte-7qclwq")},m(C,E){m(C,e,E),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t),m(C,n,E),_(n,c),_(n,h),_(n,$),_($,u),_(n,v),S&&S.m(C,E),m(C,J,E),T&&T.m(C,E),m(C,O,E)},p(C,E){E&2&&s!==(s=new Date(C[1].created_at).toLocaleString()+"")&&y(l,s),E&2&&q!==(q=new Date(C[1].run_at).toLocaleString()+"")&&y(u,q),C[1].dead_at?S?S.p(C,E):(S=Y(C),S.c(),S.m(J.parentNode,J)):S&&(S.d(1),S=null),C[1].arguments.url?T?T.p(C,E):(T=Z(C),T.c(),T.m(O.parentNode,O)):T&&(T.d(1),T=null)},d(C){C&&(d(e),d(n),d(J),d(O)),S&&S.d(C),T&&T.d(C)}}}function Y(f){let e,a,o="Dead at:",i,r,s=new Date(f[1].dead_at).toLocaleString()+"",l,t;return{c(){e=b("div"),a=b("dt"),a.textContent=o,i=w(),r=b("dd"),l=P(s),t=w(),this.h()},l(n){e=g(n,"DIV",{class:!0});var c=L(e);a=g(c,"DT",{class:!0,"data-svelte-h":!0}),I(a)!=="svelte-1gjx1j5"&&(a.textContent=o),i=D(c),r=g(c,"DD",{class:!0});var p=L(r);l=A(p,s),p.forEach(d),t=D(c),c.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(r,"class","error svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(n,c){m(n,e,c),_(e,a),_(e,i),_(e,r),_(r,l),_(e,t)},p(n,c){c&2&&s!==(s=new Date(n[1].dead_at).toLocaleString()+"")&&y(l,s)},d(n){n&&d(e)}}}function Z(f){let e,a,o="URL:",i,r,s=(f[1].arguments.context.location.href||"/")+"",l;return{c(){e=b("div"),a=b("dt"),a.textContent=o,i=w(),r=b("dd"),l=P(s),this.h()},l(t){e=g(t,"DIV",{class:!0});var n=L(e);a=g(n,"DT",{class:!0,"data-svelte-h":!0}),I(a)!=="svelte-vrqyfv"&&(a.textContent=o),i=D(n),r=g(n,"DD",{});var c=L(r);l=A(c,s),c.forEach(d),n.forEach(d),this.h()},h(){k(a,"class","svelte-7qclwq"),k(e,"class","svelte-7qclwq")},m(t,n){m(t,e,n),_(e,a),_(e,i),_(e,r),_(r,l)},p(t,n){n&2&&s!==(s=(t[1].arguments.context.location.href||"/")+"")&&y(l,s)},d(t){t&&d(e)}}}function x(f){let e,a="Error message",o,i,r=f[1].error_message+"",s;return{c(){e=b("h2"),e.textContent=a,o=w(),i=b("code"),s=P(r),this.h()},l(l){e=g(l,"H2",{class:!0,"data-svelte-h":!0}),I(e)!=="svelte-46lcxd"&&(e.textContent=a),o=D(l),i=g(l,"CODE",{class:!0});var t=L(i);s=A(t,r),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),_(i,s)},p(l,t){t&2&&r!==(r=l[1].error_message+"")&&y(s,r)},d(l){l&&(d(e),d(o),d(i))}}}function ee(f){let e,a="Background job code:",o,i,r;return i=new Ce({props:{language:"liquid",$$slots:{default:[De]},$$scope:{ctx:f}}}),{c(){e=b("h2"),e.textContent=a,o=w(),z(i.$$.fragment),this.h()},l(s){e=g(s,"H2",{class:!0,"data-svelte-h":!0}),I(e)!=="svelte-dymu4w"&&(e.textContent=a),o=D(s),B(i.$$.fragment,s),this.h()},h(){k(e,"class","svelte-7qclwq")},m(s,l){m(s,e,l),m(s,o,l),F(i,s,l),r=!0},p(s,l){const t={};l&10&&(t.$$scope={dirty:l,ctx:s}),i.$set(t)},i(s){r||(j(i.$$.fragment,s),r=!0)},o(s){H(i.$$.fragment,s),r=!1},d(s){s&&(d(e),d(o)),W(i,s)}}}function De(f){let e=f[1].liquid_body+"",a;return{c(){a=P(e)},l(o){a=A(o,e)},m(o,i){m(o,a,i)},p(o,i){i&2&&e!==(e=o[1].liquid_body+"")&&y(a,e)},d(o){o&&d(a)}}}function te(f){let e,a="Background function name:",o,i,r=f[1].partial_name+"",s;return{c(){e=b("h2"),e.textContent=a,o=w(),i=b("code"),s=P(r),this.h()},l(l){e=g(l,"H2",{class:!0,"data-svelte-h":!0}),I(e)!=="svelte-1qty0jf"&&(e.textContent=a),o=D(l),i=g(l,"CODE",{class:!0});var t=L(i);s=A(t,r),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),_(i,s)},p(l,t){t&2&&r!==(r=l[1].partial_name+"")&&y(s,r)},d(l){l&&(d(e),d(o),d(i))}}}function le(f){let e,a="Arguments",o,i,r,s;return r=new ge({props:{value:f[1].arguments,expandedLines:1,showFullLines:!0}}),{c(){e=b("h2"),e.textContent=a,o=w(),i=b("code"),z(r.$$.fragment),this.h()},l(l){e=g(l,"H2",{class:!0,"data-svelte-h":!0}),I(e)!=="svelte-h49jwy"&&(e.textContent=a),o=D(l),i=g(l,"CODE",{class:!0});var t=L(i);B(r.$$.fragment,t),t.forEach(d),this.h()},h(){k(e,"class","svelte-7qclwq"),k(i,"class","svelte-7qclwq")},m(l,t){m(l,e,t),m(l,o,t),m(l,i,t),F(r,i,null),s=!0},p(l,t){const n={};t&2&&(n.value=l[1].arguments),r.$set(n)},i(l){s||(j(r.$$.fragment,l),s=!0)},o(l){H(r.$$.fragment,l),s=!1},d(l){l&&(d(e),d(o),d(i)),W(r)}}}function Ee(f){let e,a,o,i;const r=[we,$e],s=[];function l(t,n){return t[1]===null?0:1}return e=l(f),a=s[e]=r[e](f),{c(){a.c(),o=N()},l(t){a.l(t),o=N()},m(t,n){s[e].m(t,n),m(t,o,n),i=!0},p(t,n){let c=e;e=l(t),e===c?s[e].p(t,n):(R(),H(s[c],1,1,()=>{s[c]=null}),M(),a=s[e],a?a.p(t,n):(a=s[e]=r[e](t),a.c()),j(a,1),a.m(o.parentNode,o))},i(t){i||(j(a),i=!0)},o(t){H(a),i=!1},d(t){t&&d(o),s[e].d(t)}}}function Le(f){let e,a="",o,i,r,s;return r=new be({props:{title:f[1].source_name||f[1].id||"Loading…",closeUrl:"/backgroundJobs?"+f[0].url.searchParams.toString(),$$slots:{default:[Ee]},$$scope:{ctx:f}}}),{c(){e=b("script"),e.innerHTML=a,i=w(),z(r.$$.fragment),this.h()},l(l){const t=_e("svelte-1pgpgj4",document.head);e=g(t,"SCRIPT",{src:!0,"data-manual":!0,"data-svelte-h":!0}),I(e)!=="svelte-6mxszl"&&(e.innerHTML=a),t.forEach(d),i=D(l),B(r.$$.fragment,l),this.h()},h(){me(e.src,o="/prism.js")||k(e,"src",o),k(e,"data-manual","")},m(l,t){_(document.head,e),m(l,i,t),F(r,l,t),s=!0},p(l,[t]){const n={};t&2&&(n.title=l[1].source_name||l[1].id||"Loading…"),t&1&&(n.closeUrl="/backgroundJobs?"+l[0].url.searchParams.toString()),t&10&&(n.$$scope={dirty:t,ctx:l}),r.$set(n)},i(l){s||(j(r.$$.fragment,l),s=!0)},o(l){H(r.$$.fragment,l),s=!1},d(l){l&&d(i),d(e),W(r,l)}}}function Se(f,e,a){let o;pe(f,he,s=>a(0,o=s));let i={};const r=async()=>{await ve.get({id:o.params.id,type:o.params.type.toUpperCase()}).then(s=>{s.results.length?a(1,i=s.results[0]):a(1,i=null)})};return f.$$.update=()=>{f.$$.dirty&1&&o.params.id&&r(o.params.id)},[o,i]}class Ae extends ae{constructor(e){super(),ne(this,e,Se,Le,se,{})}}export{Ae as component}; diff --git a/gui/next/build/_app/immutable/nodes/12.DAwDUajM.js b/gui/next/build/_app/immutable/nodes/12.DAwDUajM.js new file mode 100644 index 000000000..7dde3d4df --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/12.DAwDUajM.js @@ -0,0 +1,26 @@ +import{S as Ue,i as De,s as Pe,d as N,E as ce,O as Ae,x as Se,o as G,p as K,F as Te,H as Ce,b as de,c as n,I as me,J as te,V as be,z as l,v as Re,h as F,e as m,f as O,K as se,g as ge,L as _e,k as I,j as _,t as Ee,M as he,l as He,n as qe,X as Be,a3 as Ve,a as Le,Q as Y,R as Ne}from"../chunks/n7YEDvJi.js";import{e as ke}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{f as Ke}from"../chunks/BaKpYqK2.js";import{g as ve}from"../chunks/BD1m7lx9.js";import{s as j}from"../chunks/Bp_ajb_u.js";import{I as pe}from"../chunks/DHO4ENnJ.js";const ne={get:()=>ve({query:` + query { + constants( + per_page: 100 + ) { + results { + name, + value, + updated_at + } + } + }`}).then(t=>t.constants.results),edit:e=>{e=Object.fromEntries(e.entries());const t=` + mutation { + constant_set(name: "${e.name}", value: "${e.value}"){ + name, + value + } + }`;return ve({query:t})},delete:e=>{e=Object.fromEntries(e.entries());const t=` + mutation { + constant_unset(name: "${e.name}"){ + name + } + } + `;return ve({query:t})}};function ye(e,t,a){const o=e.slice();return o[13]=t[a],o[14]=t,o[15]=a,o}function Fe(e){let t,a,o="Clear filter",E,i,h,y,R;return i=new pe({props:{icon:"x",size:"12"}}),{c(){t=_("button"),a=_("span"),a.textContent=o,E=I(),he(i.$$.fragment),this.h()},l(f){t=m(f,"BUTTON",{class:!0});var k=O(t);a=m(k,"SPAN",{class:!0,"data-svelte-h":!0}),se(a)!=="svelte-1bu6mgu"&&(a.textContent=o),E=F(k),_e(i.$$.fragment,k),k.forEach(N),this.h()},h(){l(a,"class","label svelte-9flr1b"),l(t,"class","clearFilter svelte-9flr1b")},m(f,k){de(f,t,k),n(t,a),n(t,E),me(i,t,null),h=!0,y||(R=te(t,"click",e[8]),y=!0)},p:qe,i(f){h||(K(i.$$.fragment,f),h=!0)},o(f){G(i.$$.fragment,f),h=!1},d(f){f&&N(t),ce(i),y=!1,R()}}}function Ie(e){let t,a,o,E,i,h,y,R="Delete constant",f,k,z,T,C,U=e[13].name+"",J,r,c,v,Q,q,H,g,W,D,V,Z,M,d,P=e[13].exposed?"Hide value":"Show value",u,ae,B,s,$,p,L="Save",A,le,b,x,re;k=new pe({props:{icon:"x",size:"14"}});function oe(){return e[10](e[13],e[14],e[15])}B=new pe({props:{icon:e[13].exposed?"eyeStriked":"eye"}});function Oe(){return e[11](e[13],e[14],e[15])}function Me(...S){return e[12](e[15],...S)}return{c(){t=_("li"),a=_("form"),o=_("input"),i=I(),h=_("button"),y=_("span"),y.textContent=R,f=I(),he(k.$$.fragment),z=I(),T=_("form"),C=_("label"),J=Ee(U),c=I(),v=_("input"),q=I(),H=_("fieldset"),g=_("input"),Z=I(),M=_("button"),d=_("span"),u=Ee(P),ae=I(),he(B.$$.fragment),$=I(),p=_("button"),p.textContent=L,A=I(),this.h()},l(S){t=m(S,"LI",{class:!0});var w=O(t);a=m(w,"FORM",{class:!0});var ee=O(a);o=m(ee,"INPUT",{type:!0,name:!0,class:!0}),i=F(ee),h=m(ee,"BUTTON",{type:!0,title:!0,class:!0});var ie=O(h);y=m(ie,"SPAN",{class:!0,"data-svelte-h":!0}),se(y)!=="svelte-1p7u8ms"&&(y.textContent=R),f=F(ie),_e(k.$$.fragment,ie),ie.forEach(N),ee.forEach(N),z=F(w),T=m(w,"FORM",{class:!0});var X=O(T);C=m(X,"LABEL",{for:!0,class:!0});var $e=O(C);J=ge($e,U),$e.forEach(N),c=F(X),v=m(X,"INPUT",{type:!0,name:!0,class:!0}),q=F(X),H=m(X,"FIELDSET",{class:!0});var ue=O(H);g=m(ue,"INPUT",{name:!0,id:!0,class:!0}),Z=F(ue),M=m(ue,"BUTTON",{type:!0,class:!0,title:!0});var fe=O(M);d=m(fe,"SPAN",{class:!0});var we=O(d);u=ge(we,P),we.forEach(N),ae=F(fe),_e(B.$$.fragment,fe),fe.forEach(N),ue.forEach(N),$=F(X),p=m(X,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),se(p)!=="svelte-1g3xn8h"&&(p.textContent=L),X.forEach(N),A=F(w),w.forEach(N),this.h()},h(){l(o,"type","hidden"),l(o,"name","name"),o.value=E=e[13].name,l(o,"class","svelte-9flr1b"),l(y,"class","label svelte-9flr1b"),l(h,"type","submit"),l(h,"title","Delete constant"),l(h,"class","svelte-9flr1b"),l(a,"class","delete svelte-9flr1b"),l(C,"for",r=e[13].name),l(C,"class","svelte-9flr1b"),l(v,"type","hidden"),l(v,"name","name"),v.value=Q=e[13].name,l(v,"class","svelte-9flr1b"),g.disabled=W=!e[13].exposed,l(g,"name","value"),g.value=D=e[13].value,l(g,"id",V=e[13].name),l(g,"class","svelte-9flr1b"),Y(g,"exposed",e[13].exposed),l(d,"class","label svelte-9flr1b"),l(M,"type","button"),l(M,"class","toggleExposition svelte-9flr1b"),l(M,"title",s=e[13].exposed?"Hide value":"Show value"),l(H,"class","svelte-9flr1b"),l(p,"type","submit"),l(p,"class","button svelte-9flr1b"),Y(p,"needed",e[1][e[15]].changed),l(T,"class","edit svelte-9flr1b"),l(t,"class","svelte-9flr1b"),Y(t,"hidden",e[0]&&e[3](e[13])),Y(t,"highlighted",e[2].highlighted.constant===e[13].name)},m(S,w){de(S,t,w),n(t,a),n(a,o),n(a,i),n(a,h),n(h,y),n(h,f),me(k,h,null),n(t,z),n(t,T),n(T,C),n(C,J),n(T,c),n(T,v),n(T,q),n(T,H),n(H,g),n(H,Z),n(H,M),n(M,d),n(d,u),n(M,ae),me(B,M,null),n(T,$),n(T,p),n(t,A),b=!0,x||(re=[te(a,"submit",be(e[9])),te(g,"input",oe),te(M,"click",Oe),te(T,"submit",be(Me))],x=!0)},p(S,w){e=S,(!b||w&2&&E!==(E=e[13].name))&&(o.value=E),(!b||w&2)&&U!==(U=e[13].name+"")&&Le(J,U),(!b||w&2&&r!==(r=e[13].name))&&l(C,"for",r),(!b||w&2&&Q!==(Q=e[13].name))&&(v.value=Q),(!b||w&2&&W!==(W=!e[13].exposed))&&(g.disabled=W),(!b||w&2&&D!==(D=e[13].value)&&g.value!==D)&&(g.value=D),(!b||w&2&&V!==(V=e[13].name))&&l(g,"id",V),(!b||w&2)&&Y(g,"exposed",e[13].exposed),(!b||w&2)&&P!==(P=e[13].exposed?"Hide value":"Show value")&&Le(u,P);const ee={};w&2&&(ee.icon=e[13].exposed?"eyeStriked":"eye"),B.$set(ee),(!b||w&2&&s!==(s=e[13].exposed?"Hide value":"Show value"))&&l(M,"title",s),(!b||w&2)&&Y(p,"needed",e[1][e[15]].changed),(!b||w&11)&&Y(t,"hidden",e[0]&&e[3](e[13])),(!b||w&6)&&Y(t,"highlighted",e[2].highlighted.constant===e[13].name)},i(S){b||(K(k.$$.fragment,S),K(B.$$.fragment,S),S&&(le||Be(()=>{le=Ve(t,Ke,{duration:100,delay:10*e[15]}),le.start()})),b=!0)},o(S){G(k.$$.fragment,S),G(B.$$.fragment,S),b=!1},d(S){S&&N(t),ce(k),ce(B),x=!1,Se(re)}}}function je(e){var B;let t,a,o,E,i,h,y="Find:",R,f,k,z,T,C,U,J=' ',r,c,v=' ',Q,q,H,g,W,D,V,Z,M;document.title=t="Constants"+((B=e[2].online)!=null&&B.MPKIT_URL?": "+e[2].online.MPKIT_URL.replace("https://",""):"");let d=e[0]&&Fe(e);g=new pe({props:{icon:"arrowRight"}});let P=ke(e[1]),u=[];for(let s=0;sG(u[s],1,1,()=>{u[s]=null});return{c(){a=I(),o=_("div"),E=_("nav"),i=_("form"),h=_("label"),h.textContent=y,R=I(),f=_("input"),k=I(),d&&d.c(),z=I(),T=_("section"),C=_("form"),U=_("fieldset"),U.innerHTML=J,r=I(),c=_("fieldset"),c.innerHTML=v,Q=I(),q=_("button"),H=Ee(`Add + `),he(g.$$.fragment),W=I(),D=_("ul");for(let s=0;s{d=null}),Ce()),$&63){P=ke(s[1]);let L;for(L=0;La(2,o=r));let E="",i=[];(async()=>await ne.get())().then(r=>{a(1,i=r)});const h=r=>r.name.toLowerCase().indexOf(E.toLowerCase())===-1&&r.value.toLowerCase().indexOf(E.toLowerCase())===-1,y=async(r,c)=>{r.preventDefault();const v=await ne.edit(new FormData(r.target));v.errors?j.notification.create("error",`Failed to update ${v.constant_set.name} constant`):(a(1,i[c].changed=!1,i),j.highlight("constant",v.constant_set.name),j.notification.create("success",`Constant ${v.constant_set.name} updated`))},R=async r=>{if(r.preventDefault(),confirm("Are you sure you want to delete this constant?")){const c=await ne.delete(new FormData(r.target));c.errors?j.notification.create("success",`Failed to delete ${c.constant_unset.name} constant`):(j.notification.create("success",`Constant ${c.constant_unset.name} deleted`),await ne.get().then(v=>{a(1,i=v)}))}},f=async r=>{r.preventDefault();const c=await ne.edit(new FormData(r.target));c.errors?j.notification.create("error",`Failed to create ${c.constant_set.name} constant`):(r.target.reset(),j.notification.create("success",`Constant ${c.constant_set.name} created`),await ne.get().then(v=>{a(1,i=v),j.highlight("constant",c.constant_set.name)}))};function k(){E=this.value,a(0,E)}return[E,i,o,h,y,R,f,k,()=>a(0,E=""),r=>R(r),(r,c,v)=>a(1,c[v].changed=!0,i),(r,c,v)=>a(1,c[v].exposed=!r.exposed,i),(r,c)=>y(c,r)]}class xe extends Ue{constructor(t){super(),De(this,t,ze,je,Pe,{})}}export{xe as component}; diff --git a/gui/next/build/_app/immutable/nodes/12.DEQesRsU.js b/gui/next/build/_app/immutable/nodes/12.DEQesRsU.js deleted file mode 100644 index 67cae88c9..000000000 --- a/gui/next/build/_app/immutable/nodes/12.DEQesRsU.js +++ /dev/null @@ -1,26 +0,0 @@ -import{s as Ue,a as F,e as m,t as be,p as De,f as N,g as S,c as _,b as O,A as se,d as ge,y as l,i as ce,h as n,B as Ce,C as te,J as Ee,F as Pe,r as Ie,k as Ae,n as Be,G as Q,j as Te,M as Re}from"../chunks/scheduler.CKQ5dLhN.js";import{S as qe,i as He,c as de,d as me,m as _e,t as j,a as X,e as Le,f as he,j as Ve,g as Ne}from"../chunks/index.CGVWAVV-.js";import{e as ke}from"../chunks/each.BWzj3zy9.js";import{f as je}from"../chunks/index.WWWgbq8H.js";import{g as ve}from"../chunks/graphql.BD1m7lx9.js";import{s as K}from"../chunks/state.nqMW8J5l.js";import{I as pe}from"../chunks/Icon.CkKwi_WD.js";const ne={get:()=>ve({query:` - query { - constants( - per_page: 100 - ) { - results { - name, - value, - updated_at - } - } - }`}).then(t=>t.constants.results),edit:e=>{e=Object.fromEntries(e.entries());const t=` - mutation { - constant_set(name: "${e.name}", value: "${e.value}"){ - name, - value - } - }`;return ve({query:t})},delete:e=>{e=Object.fromEntries(e.entries());const t=` - mutation { - constant_unset(name: "${e.name}"){ - name - } - } - `;return ve({query:t})}};function ye(e,t,a){const o=e.slice();return o[13]=t[a],o[14]=t,o[15]=a,o}function Fe(e){let t,a,o="Clear filter",E,i,h,y,B;return i=new pe({props:{icon:"x",size:"12"}}),{c(){t=m("button"),a=m("span"),a.textContent=o,E=F(),de(i.$$.fragment),this.h()},l(f){t=_(f,"BUTTON",{class:!0});var k=O(t);a=_(k,"SPAN",{class:!0,"data-svelte-h":!0}),se(a)!=="svelte-1bu6mgu"&&(a.textContent=o),E=S(k),me(i.$$.fragment,k),k.forEach(N),this.h()},h(){l(a,"class","label svelte-9flr1b"),l(t,"class","clearFilter svelte-9flr1b")},m(f,k){ce(f,t,k),n(t,a),n(t,E),_e(i,t,null),h=!0,y||(B=te(t,"click",e[8]),y=!0)},p:Be,i(f){h||(j(i.$$.fragment,f),h=!0)},o(f){X(i.$$.fragment,f),h=!1},d(f){f&&N(t),he(i),y=!1,B()}}}function Se(e){let t,a,o,E,i,h,y,B="Delete constant",f,k,z,C,T,U=e[13].name+"",G,r,c,v,J,q,R,g,W,D,V,Z,M,d,P=e[13].exposed?"Hide value":"Show value",u,ae,H,s,$,p,L="Save",A,le,b,x,re;k=new pe({props:{icon:"x",size:"14"}});function oe(){return e[10](e[13],e[14],e[15])}H=new pe({props:{icon:e[13].exposed?"eyeStriked":"eye"}});function Oe(){return e[11](e[13],e[14],e[15])}function Me(...I){return e[12](e[15],...I)}return{c(){t=m("li"),a=m("form"),o=m("input"),i=F(),h=m("button"),y=m("span"),y.textContent=B,f=F(),de(k.$$.fragment),z=F(),C=m("form"),T=m("label"),G=be(U),c=F(),v=m("input"),q=F(),R=m("fieldset"),g=m("input"),Z=F(),M=m("button"),d=m("span"),u=be(P),ae=F(),de(H.$$.fragment),$=F(),p=m("button"),p.textContent=L,A=F(),this.h()},l(I){t=_(I,"LI",{class:!0});var w=O(t);a=_(w,"FORM",{class:!0});var ee=O(a);o=_(ee,"INPUT",{type:!0,name:!0,class:!0}),i=S(ee),h=_(ee,"BUTTON",{type:!0,title:!0,class:!0});var ie=O(h);y=_(ie,"SPAN",{class:!0,"data-svelte-h":!0}),se(y)!=="svelte-1p7u8ms"&&(y.textContent=B),f=S(ie),me(k.$$.fragment,ie),ie.forEach(N),ee.forEach(N),z=S(w),C=_(w,"FORM",{class:!0});var Y=O(C);T=_(Y,"LABEL",{for:!0,class:!0});var $e=O(T);G=ge($e,U),$e.forEach(N),c=S(Y),v=_(Y,"INPUT",{type:!0,name:!0,class:!0}),q=S(Y),R=_(Y,"FIELDSET",{class:!0});var ue=O(R);g=_(ue,"INPUT",{name:!0,id:!0,class:!0}),Z=S(ue),M=_(ue,"BUTTON",{type:!0,class:!0,title:!0});var fe=O(M);d=_(fe,"SPAN",{class:!0});var we=O(d);u=ge(we,P),we.forEach(N),ae=S(fe),me(H.$$.fragment,fe),fe.forEach(N),ue.forEach(N),$=S(Y),p=_(Y,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),se(p)!=="svelte-1g3xn8h"&&(p.textContent=L),Y.forEach(N),A=S(w),w.forEach(N),this.h()},h(){l(o,"type","hidden"),l(o,"name","name"),o.value=E=e[13].name,l(o,"class","svelte-9flr1b"),l(y,"class","label svelte-9flr1b"),l(h,"type","submit"),l(h,"title","Delete constant"),l(h,"class","svelte-9flr1b"),l(a,"class","delete svelte-9flr1b"),l(T,"for",r=e[13].name),l(T,"class","svelte-9flr1b"),l(v,"type","hidden"),l(v,"name","name"),v.value=J=e[13].name,l(v,"class","svelte-9flr1b"),g.disabled=W=!e[13].exposed,l(g,"name","value"),g.value=D=e[13].value,l(g,"id",V=e[13].name),l(g,"class","svelte-9flr1b"),Q(g,"exposed",e[13].exposed),l(d,"class","label svelte-9flr1b"),l(M,"type","button"),l(M,"class","toggleExposition svelte-9flr1b"),l(M,"title",s=e[13].exposed?"Hide value":"Show value"),l(R,"class","svelte-9flr1b"),l(p,"type","submit"),l(p,"class","button svelte-9flr1b"),Q(p,"needed",e[1][e[15]].changed),l(C,"class","edit svelte-9flr1b"),l(t,"class","svelte-9flr1b"),Q(t,"hidden",e[0]&&e[3](e[13])),Q(t,"highlighted",e[2].highlighted.constant===e[13].name)},m(I,w){ce(I,t,w),n(t,a),n(a,o),n(a,i),n(a,h),n(h,y),n(h,f),_e(k,h,null),n(t,z),n(t,C),n(C,T),n(T,G),n(C,c),n(C,v),n(C,q),n(C,R),n(R,g),n(R,Z),n(R,M),n(M,d),n(d,u),n(M,ae),_e(H,M,null),n(C,$),n(C,p),n(t,A),b=!0,x||(re=[te(a,"submit",Ee(e[9])),te(g,"input",oe),te(M,"click",Oe),te(C,"submit",Ee(Me))],x=!0)},p(I,w){e=I,(!b||w&2&&E!==(E=e[13].name))&&(o.value=E),(!b||w&2)&&U!==(U=e[13].name+"")&&Te(G,U),(!b||w&2&&r!==(r=e[13].name))&&l(T,"for",r),(!b||w&2&&J!==(J=e[13].name))&&(v.value=J),(!b||w&2&&W!==(W=!e[13].exposed))&&(g.disabled=W),(!b||w&2&&D!==(D=e[13].value)&&g.value!==D)&&(g.value=D),(!b||w&2&&V!==(V=e[13].name))&&l(g,"id",V),(!b||w&2)&&Q(g,"exposed",e[13].exposed),(!b||w&2)&&P!==(P=e[13].exposed?"Hide value":"Show value")&&Te(u,P);const ee={};w&2&&(ee.icon=e[13].exposed?"eyeStriked":"eye"),H.$set(ee),(!b||w&2&&s!==(s=e[13].exposed?"Hide value":"Show value"))&&l(M,"title",s),(!b||w&2)&&Q(p,"needed",e[1][e[15]].changed),(!b||w&11)&&Q(t,"hidden",e[0]&&e[3](e[13])),(!b||w&6)&&Q(t,"highlighted",e[2].highlighted.constant===e[13].name)},i(I){b||(j(k.$$.fragment,I),j(H.$$.fragment,I),I&&(le||Re(()=>{le=Ve(t,je,{duration:100,delay:10*e[15]}),le.start()})),b=!0)},o(I){X(k.$$.fragment,I),X(H.$$.fragment,I),b=!1},d(I){I&&N(t),he(k),he(H),x=!1,Ie(re)}}}function Ke(e){var H;let t,a,o,E,i,h,y="Find:",B,f,k,z,C,T,U,G=' ',r,c,v=' ',J,q,R,g,W,D,V,Z,M;document.title=t="Constants"+((H=e[2].online)!=null&&H.MPKIT_URL?": "+e[2].online.MPKIT_URL.replace("https://",""):"");let d=e[0]&&Fe(e);g=new pe({props:{icon:"arrowRight"}});let P=ke(e[1]),u=[];for(let s=0;sX(u[s],1,1,()=>{u[s]=null});return{c(){a=F(),o=m("div"),E=m("nav"),i=m("form"),h=m("label"),h.textContent=y,B=F(),f=m("input"),k=F(),d&&d.c(),z=F(),C=m("section"),T=m("form"),U=m("fieldset"),U.innerHTML=G,r=F(),c=m("fieldset"),c.innerHTML=v,J=F(),q=m("button"),R=be(`Add\r - `),de(g.$$.fragment),W=F(),D=m("ul");for(let s=0;s{d=null}),Le()),$&63){P=ke(s[1]);let L;for(L=0;La(2,o=r));let E="",i=[];(async()=>await ne.get())().then(r=>{a(1,i=r)});const h=r=>r.name.toLowerCase().indexOf(E.toLowerCase())===-1&&r.value.toLowerCase().indexOf(E.toLowerCase())===-1,y=async(r,c)=>{r.preventDefault();const v=await ne.edit(new FormData(r.target));v.errors?K.notification.create("error",`Failed to update ${v.constant_set.name} constant`):(a(1,i[c].changed=!1,i),K.highlight("constant",v.constant_set.name),K.notification.create("success",`Constant ${v.constant_set.name} updated`))},B=async r=>{if(r.preventDefault(),confirm("Are you sure you want to delete this constant?")){const c=await ne.delete(new FormData(r.target));c.errors?K.notification.create("success",`Failed to delete ${c.constant_unset.name} constant`):(K.notification.create("success",`Constant ${c.constant_unset.name} deleted`),await ne.get().then(v=>{a(1,i=v)}))}},f=async r=>{r.preventDefault();const c=await ne.edit(new FormData(r.target));c.errors?K.notification.create("error",`Failed to create ${c.constant_set.name} constant`):(r.target.reset(),K.notification.create("success",`Constant ${c.constant_set.name} created`),await ne.get().then(v=>{a(1,i=v),K.highlight("constant",c.constant_set.name)}))};function k(){E=this.value,a(0,E)}return[E,i,o,h,y,B,f,k,()=>a(0,E=""),r=>B(r),(r,c,v)=>a(1,c[v].changed=!0,i),(r,c,v)=>a(1,c[v].exposed=!r.exposed,i),(r,c)=>y(c,r)]}class xe extends qe{constructor(t){super(),He(this,t,ze,Ke,Ue,{})}}export{xe as component}; diff --git a/gui/next/build/_app/immutable/nodes/13.BaKdxk9B.js b/gui/next/build/_app/immutable/nodes/13.BaKdxk9B.js new file mode 100644 index 000000000..0cd374f43 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/13.BaKdxk9B.js @@ -0,0 +1 @@ +import{S as i,i as l,s as c,n as o,v as p,d,l as m}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{s as u}from"../chunks/Bp_ajb_u.js";function _(n){var s;let e;return document.title=e="Database"+((s=n[0].online)!=null&&s.MPKIT_URL?": "+n[0].online.MPKIT_URL.replace("https://",""):""),{c:o,l(t){p("svelte-1bpefxl",document.head).forEach(d)},m:o,p(t,[a]){var r;a&1&&e!==(e="Database"+((r=t[0].online)!=null&&r.MPKIT_URL?": "+t[0].online.MPKIT_URL.replace("https://",""):""))&&(document.title=e)},i:o,o,d:o}}function f(n,e,s){let t;return m(n,u,a=>s(0,t=a)),[t]}class v extends i{constructor(e){super(),l(this,e,f,_,c,{})}}export{v as component}; diff --git a/gui/next/build/_app/immutable/nodes/13.BeNxU1VC.js b/gui/next/build/_app/immutable/nodes/13.BeNxU1VC.js deleted file mode 100644 index 5536cb0cc..000000000 --- a/gui/next/build/_app/immutable/nodes/13.BeNxU1VC.js +++ /dev/null @@ -1 +0,0 @@ -import{s as i,n as o,p as l,f as c,k as p}from"../chunks/scheduler.CKQ5dLhN.js";import{S as m,i as d}from"../chunks/index.CGVWAVV-.js";import{s as u}from"../chunks/state.nqMW8J5l.js";function _(n){var s;let e;return document.title=e="Database"+((s=n[0].online)!=null&&s.MPKIT_URL?": "+n[0].online.MPKIT_URL.replace("https://",""):""),{c:o,l(t){l("svelte-1bpefxl",document.head).forEach(c)},m:o,p(t,[a]){var r;a&1&&e!==(e="Database"+((r=t[0].online)!=null&&r.MPKIT_URL?": "+t[0].online.MPKIT_URL.replace("https://",""):""))&&(document.title=e)},i:o,o,d:o}}function f(n,e,s){let t;return p(n,u,a=>s(0,t=a)),[t]}class I extends m{constructor(e){super(),d(this,e,f,_,i,{})}}export{I as component}; diff --git a/gui/next/build/_app/immutable/nodes/14.7fbd7OfH.js b/gui/next/build/_app/immutable/nodes/14.7fbd7OfH.js new file mode 100644 index 000000000..405422551 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/14.7fbd7OfH.js @@ -0,0 +1,72 @@ +import{S as Ze,i as Ge,s as Qe,d as h,o as R,p as D,R as ge,H as $e,b as A,J as le,V as _t,e as g,f as I,j as $,l as Pe,O as Ke,y as Ae,N as Fe,ag as gt,C as rt,x as st,ae as Ye,F as re,c,z as _,X as dt,K as ne,h as L,k as F,a as _e,g as W,t as X,E as se,I as ie,L as oe,M as ue,n as Ue,W as Tt,a9 as hl,ai as At,Q as ke,Y as Rt,a5 as bl,P as gl,D as $l,ab as wl,G as yl,v as kl,ac as El}from"../chunks/n7YEDvJi.js";import{g as Tl}from"../chunks/D0QH3NT1.js";import"../chunks/IHki7fMi.js";import{p as wt}from"../chunks/C6Nbyvij.js";import{s as H}from"../chunks/Bp_ajb_u.js";import{g as ut}from"../chunks/BD1m7lx9.js";import{b as Ut,c as Cl}from"../chunks/BkeFH9yg.js";import{I as Se}from"../chunks/DHO4ENnJ.js";import{e as Ee,u as Nl,o as Sl}from"../chunks/DMhVG_ro.js";import{p as ml}from"../chunks/6Lnq5zID.js";import{c as Ol,T as Il}from"../chunks/B9_cNKsK.js";import{J as Dl}from"../chunks/CMNnzBs7.js";import{q as Ll}from"../chunks/iVSWiVfi.js";import{t as Fl}from"../chunks/x4PJc0Qf.js";import{N as Pl}from"../chunks/CYamOUSl.js";const Al=(r=[])=>{let e="",l={},t="";const n={int:["value_int","not_value_int"],float:["not_value_float","value_float"],bool:["exists","not_value_boolean","value_boolean"],range:["range"],array:["value_array","not_value_array","value_in","not_value_in","array_overlaps","not_array_overlaps"]};for(const a of r){if(!a.minFilterValue&&!a.maxFilterValue&&!a.value)break;let s="",o="";n.int.includes(a.operation)?(s="integer",o=parseInt(a.value)):n.float.includes(a.operation)?(s="float",o=parseFloat(a.value)):n.bool.includes(a.operation)?(s="boolean",o=a.value==="true"):n.range.includes(a.operation)?(s="range",o={},o[a.minFilter]=a.minFilterValue,o[a.maxFilter]=a.maxFilterValue):n.array.includes(a.operation)?(s="array",o=JSON.parse(a.value)):(s="string",o=a.value),a.name!=="id"&&(e+=`, $${a.name}: ${Cl[s]||"String"}`,l[a.name]=o,t+=`{ + name: "${a.name}", + ${a.operation}: $${a.name} + }`)}return e.length&&(e=e.slice(2),e=`(${e})`),t=` + properties: [${t}] + `,{variablesDefinition:e,variables:l,propertiesFilter:t}},Ne={get:r=>{var d,f,m;const l={...{deleted:!1,filters:{page:1}},...r},t=l.table?`table_id: { value: ${l.table} }`:"",n=(f=(d=l.filters)==null?void 0:d.attributes)==null?void 0:f.findIndex(b=>b.name==="id");let a="";n>=0&&l.filters.attributes[n].value&&(a=`id: { ${l.filters.attributes[n].operation}: ${l.filters.attributes[n].value} }`);let s="";l.sort?l.sort.by==="id"||l.sort.by==="created_at"||l.sort.by==="updated_at"?s=`${l.sort.by}: { order: ${l.sort.order} }`:s=`properties: { name: "${l.sort.by}", order: ${l.sort.order} }`:s="created_at: { order: DESC }";const o=l.deleted==="true"?"deleted_at: { exists: true }":"",i=Al((m=l.filters)==null?void 0:m.attributes),u=` + query${i.variablesDefinition} { + records( + page: ${l.filters.page} + per_page: 20, + sort: { ${s} }, + filter: { + ${t} + ${a} + ${o} + ${i.propertiesFilter} + } + ) { + current_page + total_pages + results { + id + created_at + updated_at + deleted_at + properties + } + } + }`;return ut({query:u,variables:i.variables}).then(b=>{H.data("records",b.records)})},create:r=>{const l=Object.fromEntries(r.properties.entries()).tableName,t=Ut(r.properties),n=` + mutation${t.variablesDefinition} { + record_create(record: { + table: "${l}", + properties: [${t.properties}] + }) { + id + } + }`;return ut({query:n,variables:t.variables})},edit:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,t=e.recordId,n=Ut(r.properties),a=` + mutation${n.variablesDefinition} { + record_update( + id: ${t}, + record: { + table: "${l}" + properties: [${n.properties}] + } + ) { + id + } + }`;return ut({query:a,variables:n.variables})},delete:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,t=e.recordId,n=` + mutation { + record_delete(table: "${l}", id: ${t}) { + id + } + }`;return ut({query:n})},restore:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,n=` + mutation { + record_update( + id: ${e.recordId}, + record: { + table: "${l}", + deleted_at: null + } + ) { + id + } + }`;return ut({query:n})}};function Vt(r,e,l){const t=r.slice();return t[10]=e[l],t[11]=e,t[12]=l,t}function jt(r,e,l){const t=r.slice();return t[13]=e[l],t}function zt(r,e,l){const t=r.slice();return t[16]=e[l],t}function Bt(r){let e,l,t=Ee(r[1].filters.attributes),n=[];for(let s=0;sR(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{S[O]=null}),$e(),m=S[f],m?m.p(r,w):(m=S[f]=q[f](r),m.c()),D(m,1),m.m(e,b))},i(N){C||(D(m),C=!0)},o(N){R(m),C=!1},d(N){N&&h(e),Ke(p,N),S[f].d(),E=!1,st(v)}}}function Bl(r){var s;let e,l,t,n,a=((s=r[1].table)==null?void 0:s.properties)&&Bt(r);return{c(){e=$("form"),a&&a.c()},l(o){e=g(o,"FORM",{});var i=I(e);a&&a.l(i),i.forEach(h)},m(o,i){A(o,e,i),a&&a.m(e,null),r[9](e),l=!0,t||(n=le(e,"submit",_t(r[3])),t=!0)},p(o,[i]){var u;(u=o[1].table)!=null&&u.properties?a?(a.p(o,i),i&2&&D(a,1)):(a=Bt(o),a.c(),D(a,1),a.m(e,null)):a&&(ge(),R(a,1,1,()=>{a=null}),$e())},i(o){l||(D(a),l=!0)},o(o){R(a),l=!1},d(o){o&&h(e),a&&a.d(),r[9](null),t=!1,n()}}}function Ml(r,e,l){let t;Pe(r,H,b=>l(1,t=b));let n;const a={id:["value"],string:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"],text:["value","exists","not_value"],array:["array_contains","value_array","value_in","exists","array_overlaps","not_array_contains","not_array_overlaps","not_value_array","not_value_in"],boolean:["value_boolean","exists","not_value_boolean"],integer:["value_int","exists","not_value_int","range"],float:["value_float","exists","not_value_float","range"],upload:["value","exists","not_value"],datetime:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"],date:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"]},s=()=>{Fe(H,t.filters={page:1,attributes:[Object.fromEntries(new FormData(n).entries())],deleted:t.filters.deleted},t),Ne.get({table:t.table.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};function o(b,C){b[C].name=gt(this),H.set(t)}const i=(b,C,E)=>{var v;Fe(H,C[E].attribute_type=((v=t.table.properties.find(k=>k.name===b.name))==null?void 0:v.attribute_type)||"id",t)};function u(b,C){b[C].attribute_type=this.value,H.set(t)}function d(b,C){b[C].operation=gt(this),H.set(t)}function f(b,C){b[C].value=this.value,H.set(t)}function m(b){rt[b?"unshift":"push"](()=>{n=b,l(0,n)})}return[n,t,a,s,o,i,u,d,f,m]}class ql extends Ze{constructor(e){super(),Ge(this,e,Ml,Bl,Qe,{})}}function Jt(r,e,l){const t=r.slice();return t[8]=e[l],t}function Wt(r){let e,l,t="created at",n,a="updated at",s,o="id",i,u,d,f="DESC [Z→A]",m,b="ASC [A→Z]",C,E,v,k,p,y,T,z=Ee(r[1].table.properties),q=[];for(let w=0;wr[3].call(e)),d.__value="DESC",re(d,d.__value),m.__value="ASC",re(m,m.__value),_(u,"name","order"),_(u,"id","sort_order"),_(u,"class","svelte-yzlk61"),r[1].sort.order===void 0&&dt(()=>r[5].call(u)),_(E,"for","sort_order"),_(E,"class","button svelte-yzlk61")},m(w,O){A(w,e,O),c(e,l),c(e,n),c(e,s);for(let P=0;P{j[P]=null}),$e(),k=j[v],k||(k=j[v]=S[v](w),k.c()),D(k,1),k.m(E,null))},i(w){p||(D(k),p=!0)},o(w){R(k),p=!1},d(w){w&&(h(e),h(i),h(u),h(C),h(E)),Ke(q,w),j[v].d(),y=!1,st(T)}}}function Xt(r){let e,l=r[8].name+"",t,n,a;return{c(){e=$("option"),t=X(l),n=F(),this.h()},l(s){e=g(s,"OPTION",{});var o=I(e);t=W(o,l),n=L(o),o.forEach(h),this.h()},h(){e.__value=a=r[8].name,re(e,e.__value)},m(s,o){A(s,e,o),c(e,t),c(e,n)},p(s,o){o&2&&l!==(l=s[8].name+"")&&_e(t,l),o&2&&a!==(a=s[8].name)&&(e.__value=a,re(e,e.__value))},d(s){s&&h(e)}}}function Hl(r){let e,l;return e=new Se({props:{icon:"sortAZ"}}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function Jl(r){let e,l;return e=new Se({props:{icon:"sortZA"}}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function Wl(r){var s;let e,l,t,n,a=((s=r[1].table)==null?void 0:s.properties)&&Wt(r);return{c(){e=$("form"),a&&a.c(),this.h()},l(o){e=g(o,"FORM",{class:!0});var i=I(e);a&&a.l(i),i.forEach(h),this.h()},h(){_(e,"class","svelte-yzlk61")},m(o,i){A(o,e,i),a&&a.m(e,null),r[7](e),l=!0,t||(n=le(e,"submit",_t(r[2])),t=!0)},p(o,[i]){var u;(u=o[1].table)!=null&&u.properties?a?(a.p(o,i),i&2&&D(a,1)):(a=Wt(o),a.c(),D(a,1),a.m(e,null)):a&&(ge(),R(a,1,1,()=>{a=null}),$e())},i(o){l||(D(a),l=!0)},o(o){R(a),l=!1},d(o){o&&h(e),a&&a.d(),r[7](null),t=!1,n()}}}function Xl(r,e,l){let t;Pe(r,H,f=>l(1,t=f));let n;const a=()=>{Fe(H,t.filters.page=1,t),Ne.get({table:t.table.id,filters:t.filters,sort:Object.fromEntries(new FormData(n).entries()),deleted:t.filters.deleted})};function s(){t.sort.by=gt(this),H.set(t)}const o=()=>n.requestSubmit();function i(){t.sort.order=gt(this),H.set(t)}const u=()=>n.requestSubmit();function d(f){rt[f?"unshift":"push"](()=>{n=f,l(0,n)})}return[n,t,a,s,o,i,u,d]}class Yl extends Ze{constructor(e){super(),Ge(this,e,Xl,Wl,Qe,{})}}function Kl(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;return u=new Se({props:{icon:"x",size:"22"}}),{c(){e=$("form"),l=$("input"),n=F(),a=$("input"),s=F(),o=$("button"),i=$("i"),ue(u.$$.fragment),d=X(` + Delete record`),this.h()},l(C){e=g(C,"FORM",{});var E=I(e);l=g(E,"INPUT",{type:!0,name:!0}),n=L(E),a=g(E,"INPUT",{type:!0,name:!0}),s=L(E),o=g(E,"BUTTON",{class:!0});var v=I(o);i=g(v,"I",{class:!0});var k=I(i);oe(u.$$.fragment,k),k.forEach(h),d=W(v,` + Delete record`),v.forEach(h),E.forEach(h),this.h()},h(){_(l,"type","hidden"),_(l,"name","tableName"),l.value=t=r[0].name,_(a,"type","hidden"),_(a,"name","recordId"),a.value=r[1],_(i,"class","svelte-ooaugn"),_(o,"class","danger")},m(C,E){A(C,e,E),c(e,l),c(e,n),c(e,a),c(e,s),c(e,o),c(o,i),ie(u,i,null),c(o,d),r[4](e),f=!0,m||(b=le(e,"submit",r[3]),m=!0)},p(C,[E]){(!f||E&1&&t!==(t=C[0].name))&&(l.value=t),(!f||E&2)&&(a.value=C[1])},i(C){f||(D(u.$$.fragment,C),f=!0)},o(C){R(u.$$.fragment,C),f=!1},d(C){C&&h(e),se(u),r[4](null),m=!1,b()}}}function Zl(r,e,l){let t,n;Pe(r,H,f=>l(5,t=f)),Pe(r,wt,f=>l(6,n=f));let{table:a}=e,{id:s}=e,o,i=Tt();const u=async f=>{if(f.preventDefault(),confirm("Are you sure you want to delete this record?")){i("success");const m=await Ne.delete({table:a.name,properties:new FormData(o)});m.errors?H.notification.create("error",`Record ${m.record_delete.id} could not be deleted`):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.notification.create("success",`Record ${m.record_delete.id} deleted`))}};function d(f){rt[f?"unshift":"push"](()=>{o=f,l(2,o)})}return r.$$set=f=>{"table"in f&&l(0,a=f.table),"id"in f&&l(1,s=f.id)},[a,s,o,u,d]}class Gl extends Ze{constructor(e){super(),Ge(this,e,Zl,Kl,Qe,{table:0,id:1})}}function Ql(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;return u=new Se({props:{icon:"recycleRefresh"}}),{c(){e=$("form"),l=$("input"),n=F(),a=$("input"),s=F(),o=$("button"),i=$("i"),ue(u.$$.fragment),d=X(` + Restore record`),this.h()},l(C){e=g(C,"FORM",{});var E=I(e);l=g(E,"INPUT",{type:!0,name:!0}),n=L(E),a=g(E,"INPUT",{type:!0,name:!0}),s=L(E),o=g(E,"BUTTON",{});var v=I(o);i=g(v,"I",{});var k=I(i);oe(u.$$.fragment,k),k.forEach(h),d=W(v,` + Restore record`),v.forEach(h),E.forEach(h),this.h()},h(){_(l,"type","hidden"),_(l,"name","tableName"),l.value=t=r[0].name,_(a,"type","hidden"),_(a,"name","recordId"),a.value=r[1]},m(C,E){A(C,e,E),c(e,l),c(e,n),c(e,a),c(e,s),c(e,o),c(o,i),ie(u,i,null),c(o,d),r[4](e),f=!0,m||(b=le(e,"submit",r[3]),m=!0)},p(C,[E]){(!f||E&1&&t!==(t=C[0].name))&&(l.value=t),(!f||E&2)&&(a.value=C[1])},i(C){f||(D(u.$$.fragment,C),f=!0)},o(C){R(u.$$.fragment,C),f=!1},d(C){C&&h(e),se(u),r[4](null),m=!1,b()}}}function xl(r,e,l){let t,n;Pe(r,H,f=>l(5,t=f)),Pe(r,wt,f=>l(6,n=f));let{table:a}=e,{id:s}=e,o,i=Tt();const u=async f=>{f.preventDefault(),i("success");const m=await Ne.restore({table:a.name,properties:new FormData(o)});m.errors?H.notification.create("error",`Record ${m.record_update.id} could not be restored`):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.notification.create("success",`Record ${m.record_update.id} restored`))};function d(f){rt[f?"unshift":"push"](()=>{o=f,l(2,o)})}return r.$$set=f=>{"table"in f&&l(0,a=f.table),"id"in f&&l(1,s=f.id)},[a,s,o,u,d]}class er extends Ze{constructor(e){super(),Ge(this,e,xl,Ql,Qe,{table:0,id:1})}}function tr(r){let e,l;return e=new Gl({props:{table:r[1].table,id:r[0].id}}),e.$on("success",r[6]),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.table=t[1].table),n&1&&(a.id=t[0].id),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function lr(r){let e,l;return e=new er({props:{table:r[1].table,id:r[0].id}}),e.$on("success",r[5]),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.table=t[1].table),n&1&&(a.id=t[0].id),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function rr(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;a=new Se({props:{icon:"copy",size:"22"}});const C=[lr,tr],E=[];function v(k,p){return k[1].filters.deleted==="true"?0:1}return u=v(r),d=E[u]=C[u](r),{c(){e=$("menu"),l=$("ul"),t=$("li"),n=$("button"),ue(a.$$.fragment),s=X(` + Copy record`),o=F(),i=$("li"),d.c(),this.h()},l(k){e=g(k,"MENU",{class:!0});var p=I(e);l=g(p,"UL",{});var y=I(l);t=g(y,"LI",{class:!0});var T=I(t);n=g(T,"BUTTON",{type:!0});var z=I(n);oe(a.$$.fragment,z),s=W(z,` + Copy record`),z.forEach(h),T.forEach(h),o=L(y),i=g(y,"LI",{class:!0});var q=I(i);d.l(q),q.forEach(h),y.forEach(h),p.forEach(h),this.h()},h(){_(n,"type","button"),_(t,"class","svelte-1tht2a1"),_(i,"class","svelte-1tht2a1"),_(e,"class","content-context svelte-1tht2a1")},m(k,p){A(k,e,p),c(e,l),c(l,t),c(t,n),ie(a,n,null),c(n,s),c(l,o),c(l,i),E[u].m(i,null),f=!0,m||(b=[le(window,"keyup",r[3]),le(n,"click",r[4]),hl(Ol.call(null,e,r[7]))],m=!0)},p(k,[p]){let y=u;u=v(k),u===y?E[u].p(k,p):(ge(),R(E[y],1,1,()=>{E[y]=null}),$e(),d=E[u],d?d.p(k,p):(d=E[u]=C[u](k),d.c()),D(d,1),d.m(i,null))},i(k){f||(D(a.$$.fragment,k),D(d),f=!0)},o(k){R(a.$$.fragment,k),R(d),f=!1},d(k){k&&h(e),se(a),E[u].d(),m=!1,st(b)}}}function nr(r,e,l){let t;Pe(r,H,f=>l(1,t=f));let{record:n}=e;const a=Tt(),s=f=>{f.key==="Escape"&&a("close")},o=()=>{a("close"),Fe(H,t.record={...n},t),Fe(H,t.record.id=null,t)},i=()=>a("close"),u=()=>a("close"),d=()=>a("close");return r.$$set=f=>{"record"in f&&l(0,n=f.record)},[n,t,a,s,o,i,u,d]}class ar extends Ze{constructor(e){super(),Ge(this,e,nr,rr,Qe,{record:0})}}function Yt(r,e,l){const t=r.slice();return t[5]=e[l],t}function Kt(r,e,l){const t=r.slice();t[8]=e[l];const n=ml(t[5].properties[t[8].name],t[8].attribute_type);return t[9]=n,t}function Zt(r,e,l){const t=r.slice();return t[8]=e[l],t}function Gt(r){var z,q;let e,l,t,n,a="id",s,o,i,u="created at",d,f,m="updated at",b,C,E,v,k=Ee(r[1].table.properties),p=[];for(let S=0;S{T=null}),$e()),(!v||j&2&&E!==(E=At(S[1].view.tableStyle)+" svelte-1bwwtph"))&&_(e,"class",E)},i(S){v||(D(T),v=!0)},o(S){R(T),v=!1},d(S){S&&h(e),Ke(p,S),y&&y.d(),T&&T.d()}}}function Qt(r){let e,l=r[8].name+"",t,n,a,s,o=r[8].attribute_type+"",i,u;return{c(){e=$("th"),t=X(l),n=F(),a=$("small"),s=X("("),i=X(o),u=X(")"),this.h()},l(d){e=g(d,"TH",{class:!0});var f=I(e);t=W(f,l),n=L(f),a=g(f,"SMALL",{class:!0});var m=I(a);s=W(m,"("),i=W(m,o),u=W(m,")"),m.forEach(h),f.forEach(h),this.h()},h(){_(a,"class","type svelte-1bwwtph"),_(e,"class","svelte-1bwwtph")},m(d,f){A(d,e,f),c(e,t),c(e,n),c(e,a),c(a,s),c(a,i),c(a,u)},p(d,f){f&2&&l!==(l=d[8].name+"")&&_e(t,l),f&2&&o!==(o=d[8].attribute_type+"")&&_e(i,o)},d(d){d&&h(e)}}}function xt(r){let e,l="deleted at";return{c(){e=$("th"),e.textContent=l,this.h()},l(t){e=g(t,"TH",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1jwm27o"&&(e.textContent=l),this.h()},h(){_(e,"class","svelte-1bwwtph")},m(t,n){A(t,e,n)},d(t){t&&h(e)}}}function el(r){var o;let e=[],l=new Map,t,n,a=Ee((o=r[1].records)==null?void 0:o.results);const s=i=>i[5].id;for(let i=0;i{s[d]=null}),$e(),l=s[e],l?l.p(i,u):(l=s[e]=a[e](i),l.c()),D(l,1),l.m(t.parentNode,t))},i(i){n||(D(l),n=!0)},o(i){R(l),n=!1},d(i){i&&h(t),s[e].d(i)}}}function sr(r){let e=r[9].value+"",l;return{c(){l=X(e)},l(t){l=W(t,e)},m(t,n){A(t,l,n)},p(t,n){n&2&&e!==(e=t[9].value+"")&&_e(l,e)},i:Ue,o:Ue,d(t){t&&h(l)}}}function ir(r){let e,l,t,n;const a=[ur,or],s=[];function o(i,u){return i[1].view.tableStyle==="expanded"?0:1}return e=o(r),l=s[e]=a[e](r),{c(){l.c(),t=Ae()},l(i){l.l(i),t=Ae()},m(i,u){s[e].m(i,u),A(i,t,u),n=!0},p(i,u){let d=e;e=o(i),e===d?s[e].p(i,u):(ge(),R(s[d],1,1,()=>{s[d]=null}),$e(),l=s[e],l?l.p(i,u):(l=s[e]=a[e](i),l.c()),D(l,1),l.m(t.parentNode,t))},i(i){n||(D(l),n=!0)},o(i){R(l),n=!1},d(i){i&&h(t),s[e].d(i)}}}function or(r){let e=JSON.stringify(r[9].value)+"",l;return{c(){l=X(e)},l(t){l=W(t,e)},m(t,n){A(t,l,n)},p(t,n){n&2&&e!==(e=JSON.stringify(t[9].value)+"")&&_e(l,e)},i:Ue,o:Ue,d(t){t&&h(l)}}}function ur(r){let e,l;return e=new Dl({props:{value:r[9].value}}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.value=t[9].value),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function rl(r){let e,l,t=r[9].value!==void 0&&ll(r);return{c(){e=$("td"),t&&t.c(),this.h()},l(n){e=g(n,"TD",{class:!0});var a=I(e);t&&t.l(a),a.forEach(h),this.h()},h(){_(e,"class","svelte-1bwwtph"),ke(e,"value-null",r[9].type==="null")},m(n,a){A(n,e,a),t&&t.m(e,null),l=!0},p(n,a){n[9].value!==void 0?t?(t.p(n,a),a&2&&D(t,1)):(t=ll(n),t.c(),D(t,1),t.m(e,null)):t&&(ge(),R(t,1,1,()=>{t=null}),$e()),(!l||a&2)&&ke(e,"value-null",n[9].type==="null")},i(n){l||(D(t),l=!0)},o(n){R(t),l=!1},d(n){n&&h(e),t&&t.d()}}}function nl(r){var i,u;let e,l=new Date((i=r[5])==null?void 0:i.deleted_at).toLocaleDateString(void 0,{})+"",t,n,a,s=new Date((u=r[5])==null?void 0:u.deleted_at).toLocaleTimeString(void 0,{})+"",o;return{c(){e=$("td"),t=X(l),n=F(),a=$("span"),o=X(s),this.h()},l(d){e=g(d,"TD",{class:!0});var f=I(e);t=W(f,l),n=L(f),a=g(f,"SPAN",{class:!0});var m=I(a);o=W(m,s),m.forEach(h),f.forEach(h),this.h()},h(){_(a,"class","svelte-1bwwtph"),_(e,"class","date svelte-1bwwtph")},m(d,f){A(d,e,f),c(e,t),c(e,n),c(e,a),c(a,o)},p(d,f){var m,b;f&2&&l!==(l=new Date((m=d[5])==null?void 0:m.deleted_at).toLocaleDateString(void 0,{})+"")&&_e(t,l),f&2&&s!==(s=new Date((b=d[5])==null?void 0:b.deleted_at).toLocaleTimeString(void 0,{})+"")&&_e(o,s)},d(d){d&&h(e)}}}function al(r,e){var nt,ye,ze,at;let l,t,n,a,s,o,i="More options",u,d,f,m,b,C="Edit record",E,v,k,p,y=e[5].id+"",T,z,q,S,j=new Date((nt=e[5])==null?void 0:nt.created_at).toLocaleDateString(void 0,{})+"",N,w,O,P=new Date((ye=e[5])==null?void 0:ye.created_at).toLocaleTimeString(void 0,{})+"",M,Z,G,U=new Date((ze=e[5])==null?void 0:ze.updated_at).toLocaleDateString(void 0,{})+"",K,B,ae,Ce=new Date((at=e[5])==null?void 0:at.updated_at).toLocaleTimeString(void 0,{})+"",me,ee,Oe,fe,we,Ve;d=new Se({props:{icon:"navigationMenuVertical",size:"16"}});function it(){return e[2](e[5])}v=new Se({props:{icon:"pencil",size:"16"}});function je(){return e[3](e[5])}let ce=e[0].id===e[5].id&&tl(e),De=Ee(e[1].table.properties),Q=[];for(let Y=0;YR(Q[Y],1,1,()=>{Q[Y]=null});let pe=e[1].filters.deleted==="true"&&nl(e);return{key:r,first:null,c(){l=$("tr"),t=$("td"),n=$("div"),a=$("div"),s=$("button"),o=$("span"),o.textContent=i,u=F(),ue(d.$$.fragment),f=F(),m=$("button"),b=$("span"),b.textContent=C,E=F(),ue(v.$$.fragment),k=F(),ce&&ce.c(),p=F(),T=X(y),z=F();for(let Y=0;Y{ce=null}),$e()),(!fe||J&2)&&y!==(y=e[5].id+"")&&_e(T,y),J&2){De=Ee(e[1].table.properties);let de;for(de=0;de{t=null}),$e())},i(a){l||(D(t),l=!0)},o(a){R(t),l=!1},d(a){a&&h(e),t&&t.d(a)}}}function cr(r,e,l){let t;Pe(r,H,i=>l(1,t=i));let n={id:null};return[n,t,i=>l(0,n.id=i.id,n),i=>{Fe(H,t.record=i,t)},()=>l(0,n.id=null,n)]}class dr extends Ze{constructor(e){super(),Ge(this,e,cr,fr,Qe,{})}}var ct=new Map;function _r(r){var e=ct.get(r);e&&e.destroy()}function pr(r){var e=ct.get(r);e&&e.update()}var ft=null;typeof window>"u"?((ft=function(r){return r}).destroy=function(r){return r},ft.update=function(r){return r}):((ft=function(r,e){return r&&Array.prototype.forEach.call(r.length?r:[r],function(l){return function(t){if(t&&t.nodeName&&t.nodeName==="TEXTAREA"&&!ct.has(t)){var n,a=null,s=window.getComputedStyle(t),o=(n=t.value,function(){u({testForHeightReduction:n===""||!t.value.startsWith(n),restoreTextAlign:null}),n=t.value}),i=(function(f){t.removeEventListener("autosize:destroy",i),t.removeEventListener("autosize:update",d),t.removeEventListener("input",o),window.removeEventListener("resize",d),Object.keys(f).forEach(function(m){return t.style[m]=f[m]}),ct.delete(t)}).bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",i),t.addEventListener("autosize:update",d),t.addEventListener("input",o),window.addEventListener("resize",d),t.style.overflowX="hidden",t.style.wordWrap="break-word",ct.set(t,{destroy:i,update:d}),d()}function u(f){var m,b,C=f.restoreTextAlign,E=C===void 0?null:C,v=f.testForHeightReduction,k=v===void 0||v,p=s.overflowY;if(t.scrollHeight!==0&&(s.resize==="vertical"?t.style.resize="none":s.resize==="both"&&(t.style.resize="horizontal"),k&&(m=function(T){for(var z=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&z.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return z.forEach(function(q){var S=q[0],j=q[1];S.style.scrollBehavior="auto",S.scrollTop=j,S.style.scrollBehavior=null})}}(t),t.style.height=""),b=s.boxSizing==="content-box"?t.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):t.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&b>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(t.style.overflow="scroll"),b=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(t.style.overflow="hidden"),t.style.height=b+"px",E&&(t.style.textAlign=E),m&&m(),a!==b&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),a=b),p!==s.overflow&&!E)){var y=s.textAlign;s.overflow==="hidden"&&(t.style.textAlign=y==="start"?"end":"start"),u({restoreTextAlign:y,testForHeightReduction:!0})}}function d(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(l)}),r}).destroy=function(r){return r&&Array.prototype.forEach.call(r.length?r:[r],_r),r},ft.update=function(r){return r&&Array.prototype.forEach.call(r.length?r:[r],pr),r});var $t=ft;const Ct=r=>($t(r),{destroy(){$t.destroy(r)}});Ct.update=$t.update;Ct.destroy=$t.destroy;function sl(r,e,l){const t=r.slice();return t[13]=e[l],t}function il(r,e,l){const t=r.slice();t[16]=e[l];const n=t[1].properties?ml(t[1].properties[t[16].name],t[16].attribute_type):{type:t[16].attribute_type,value:""};return t[17]=n,t}function ol(r){let e,l;return{c(){e=$("input"),this.h()},l(t){e=g(t,"INPUT",{type:!0,name:!0}),this.h()},h(){_(e,"type","hidden"),_(e,"name","recordId"),e.value=l=r[1].id},m(t,n){A(t,e,n)},p(t,n){n&2&&l!==(l=t[1].id)&&(e.value=l)},d(t){t&&h(e)}}}function hr(r){let e=r[16].attribute_type+"",l,t,n,a,s;return{c(){l=X(e),t=F(),n=$("input"),this.h()},l(o){l=W(o,e),t=L(o),n=g(o,"INPUT",{type:!0,name:!0}),this.h()},h(){_(n,"type","hidden"),_(n,"name",a=r[16].name+"[type]"),n.value=s=r[16].attribute_type},m(o,i){A(o,l,i),A(o,t,i),A(o,n,i)},p(o,i){i&1&&e!==(e=o[16].attribute_type+"")&&_e(l,e),i&1&&a!==(a=o[16].name+"[type]")&&_(n,"name",a),i&1&&s!==(s=o[16].attribute_type)&&(n.value=s)},i:Ue,o:Ue,d(o){o&&(h(l),h(t),h(n))}}}function mr(r){let e,l;return e=new Il({props:{name:r[16].name+"[type]",options:[{value:"string",label:"string"},{value:"json",label:"json"}],checked:r[17].type==="json"?"json":"string"}}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},p(t,n){const a={};n&1&&(a.name=t[16].name+"[type]"),n&3&&(a.checked=t[17].type==="json"?"json":"string"),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function ul(r){let e;return{c(){e=X("(non editable)")},l(l){e=W(l,"(non editable)")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function vr(r){let e,l,t,n,a,s,o;return{c(){e=$("textarea"),this.h()},l(i){e=g(i,"TEXTAREA",{rows:!0,name:!0,id:!0,class:!0}),I(e).forEach(h),this.h()},h(){_(e,"rows","1"),_(e,"name",l=r[16].name+"[value]"),_(e,"id",t="edit_"+r[16].name),e.disabled=n=r[16].attribute_type==="upload",e.value=a=r[17].type==="json"||r[17].type==="jsonEscaped"?JSON.stringify(r[17].value,void 0,2):r[17].value,_(e,"class","svelte-1udbufw")},m(i,u){A(i,e,u),s||(o=hl(Ct.call(null,e)),s=!0)},p(i,u){u&1&&l!==(l=i[16].name+"[value]")&&_(e,"name",l),u&1&&t!==(t="edit_"+i[16].name)&&_(e,"id",t),u&1&&n!==(n=i[16].attribute_type==="upload")&&(e.disabled=n),u&3&&a!==(a=i[17].type==="json"||i[17].type==="jsonEscaped"?JSON.stringify(i[17].value,void 0,2):i[17].value)&&(e.value=a)},d(i){i&&h(e),s=!1,o()}}}function br(r){let e,l,t,n,a,s,o,i,u,d;return{c(){e=$("select"),l=$("option"),t=$("option"),n=X("true"),s=$("option"),o=X("false"),this.h()},l(f){e=g(f,"SELECT",{name:!0,id:!0,class:!0});var m=I(e);l=g(m,"OPTION",{class:!0}),I(l).forEach(h),t=g(m,"OPTION",{});var b=I(t);n=W(b,"true"),b.forEach(h),s=g(m,"OPTION",{});var C=I(s);o=W(C,"false"),C.forEach(h),m.forEach(h),this.h()},h(){l.__value="",re(l,l.__value),_(l,"class","value-null"),t.__value="true",re(t,t.__value),t.selected=a=r[17].value==="true",s.__value="false",re(s,s.__value),s.selected=i=r[17].value==="false",_(e,"name",u=r[16].name+"[value]"),_(e,"id",d="edit_"+r[16].name),_(e,"class","svelte-1udbufw")},m(f,m){A(f,e,m),c(e,l),c(e,t),c(t,n),c(e,s),c(s,o)},p(f,m){m&3&&a!==(a=f[17].value==="true")&&(t.selected=a),m&3&&i!==(i=f[17].value==="false")&&(s.selected=i),m&1&&u!==(u=f[16].name+"[value]")&&_(e,"name",u),m&1&&d!==(d="edit_"+f[16].name)&&_(e,"id",d)},d(f){f&&h(e)}}}function fl(r){let e=r[5][r[16].name].message+"",l;return{c(){l=X(e)},l(t){l=W(t,e)},m(t,n){A(t,l,n)},p(t,n){n&33&&e!==(e=t[5][t[16].name].message+"")&&_e(l,e)},d(t){t&&h(l)}}}function cl(r){let e,l,t,n=r[16].name+"",a,s,o,i,u,d,f,m,b,C,E,v,k;const p=[mr,hr],y=[];function T(w,O){return w[16].attribute_type==="string"?0:1}u=T(r),d=y[u]=p[u](r);let z=r[16].attribute_type==="upload"&&ul();function q(w,O){return w[16].attribute_type==="boolean"?br:vr}let S=q(r),j=S(r),N=r[5][r[16].name]&&fl(r);return{c(){e=$("fieldset"),l=$("dir"),t=$("label"),a=X(n),s=$("br"),o=F(),i=$("div"),d.c(),f=F(),z&&z.c(),b=F(),C=$("div"),j.c(),E=F(),v=$("div"),N&&N.c(),this.h()},l(w){e=g(w,"FIELDSET",{class:!0});var O=I(e);l=g(O,"DIR",{});var P=I(l);t=g(P,"LABEL",{for:!0,class:!0});var M=I(t);a=W(M,n),s=g(M,"BR",{}),o=L(M),i=g(M,"DIV",{class:!0});var Z=I(i);d.l(Z),f=L(Z),z&&z.l(Z),Z.forEach(h),M.forEach(h),P.forEach(h),b=L(O),C=g(O,"DIV",{});var G=I(C);j.l(G),E=L(G),v=g(G,"DIV",{role:!0,class:!0});var U=I(v);N&&N.l(U),U.forEach(h),G.forEach(h),O.forEach(h),this.h()},h(){_(i,"class","type svelte-1udbufw"),_(t,"for",m="edit_"+r[16].name),_(t,"class","svelte-1udbufw"),_(v,"role","alert"),_(v,"class","svelte-1udbufw"),_(e,"class","svelte-1udbufw")},m(w,O){A(w,e,O),c(e,l),c(l,t),c(t,a),c(t,s),c(t,o),c(t,i),y[u].m(i,null),c(i,f),z&&z.m(i,null),c(e,b),c(e,C),j.m(C,null),c(C,E),c(C,v),N&&N.m(v,null),k=!0},p(w,O){(!k||O&1)&&n!==(n=w[16].name+"")&&_e(a,n);let P=u;u=T(w),u===P?y[u].p(w,O):(ge(),R(y[P],1,1,()=>{y[P]=null}),$e(),d=y[u],d?d.p(w,O):(d=y[u]=p[u](w),d.c()),D(d,1),d.m(i,f)),w[16].attribute_type==="upload"?z||(z=ul(),z.c(),z.m(i,null)):z&&(z.d(1),z=null),(!k||O&1&&m!==(m="edit_"+w[16].name))&&_(t,"for",m),S===(S=q(w))&&j?j.p(w,O):(j.d(1),j=S(w),j&&(j.c(),j.m(C,E))),w[5][w[16].name]?N?N.p(w,O):(N=fl(w),N.c(),N.m(v,null)):N&&(N.d(1),N=null)},i(w){k||(D(d),k=!0)},o(w){R(d),k=!1},d(w){w&&h(e),y[u].d(),z&&z.d(),j.d(),N&&N.d()}}}function dl(r){let e,l=JSON.stringify(r[13])+"",t,n;return{c(){e=$("li"),t=X(l),n=F(),this.h()},l(a){e=g(a,"LI",{class:!0});var s=I(e);t=W(s,l),n=L(s),s.forEach(h),this.h()},h(){_(e,"class","svelte-1udbufw")},m(a,s){A(a,e,s),c(e,t),c(e,n)},p(a,s){s&16&&l!==(l=JSON.stringify(a[13])+"")&&_e(t,l)},d(a){a&&h(e)}}}function gr(r){let e;return{c(){e=X("Create record")},l(l){e=W(l,"Create record")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function $r(r){let e;return{c(){e=X("Edit record")},l(l){e=W(l,"Edit record")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function wr(r){let e,l,t,n,a,s,o,i,u,d,f,m,b,C="Cancel",E,v,k,p,y,T,z,q,S=r[1].id&&ol(r),j=Ee(r[0]),N=[];for(let U=0;UR(N[U],1,1,()=>{N[U]=null});let O=Ee(r[4]),P=[];for(let U=0;U{T&&(y||(y=Rt(e,r[7],{},!0)),y.run(1))}),T=!0}},o(U){N=N.filter(Boolean);for(let K=0;Kl(6,t=v)),Pe(r,wt,v=>l(12,n=v));let{properties:a}=e,{editing:s}=e,o,i,u=[],d={};const f=function(v,{delay:k=0,duration:p=150}){return{delay:k,duration:p,css:y=>{const T=Ll(y);return`opacity: ${T}; transform: scale(${T});`}}};bl(()=>{setTimeout(()=>{o.showModal()},10)}),document.addEventListener("keydown",v=>{v.key==="Escape"&&(v.preventDefault(),Fe(H,t.record=null,t))},{once:!0});const m=async v=>{v.preventDefault();const k=new FormData(i);l(5,d={});for(const p of k.entries())if(p[0].endsWith("[type]")&&(p[1]==="json"||p[1]==="array")){const y=p[0].replace("[type]",""),T=k.get(y+"[value]");T!==""&&!Fl(T)&&l(5,d[y]={property:y,message:`Not a valid ${p[1]}`},d)}if(Object.keys(d).length)await gl(),document.querySelector('[role="alert"]:not(:empty)').scrollIntoView({behavior:"smooth",block:"center"});else if(t.record.id){const p=await Ne.edit({table:t.table.name,id:t.record.id,properties:k});p.errors?l(4,u=p.errors):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.highlight("record",p.record_update.id),H.notification.create("success",`Record ${p.record_update.id} updated`),Fe(H,t.record=null,t))}else{const p=await Ne.create({table:t.table.name,properties:k});p.errors?l(4,u=p.errors):(H.clearFilters(),Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.highlight("record",p.record_create.id),H.notification.create("success",`Record ${p.record_create.id} created`),Fe(H,t.record=null,t))}},b=()=>Fe(H,t.record=null,t);function C(v){rt[v?"unshift":"push"](()=>{i=v,l(3,i)})}function E(v){rt[v?"unshift":"push"](()=>{o=v,l(2,o)})}return r.$$set=v=>{"properties"in v&&l(0,a=v.properties),"editing"in v&&l(1,s=v.editing)},[a,s,o,i,u,d,t,f,m,b,C,E]}class kr extends Ze{constructor(e){super(),Ge(this,e,yr,wr,Qe,{properties:0,editing:1})}}const{document:Et}=Tl;function Er(r){let e;return{c(){e=X("Work in progress :)")},l(l){e=W(l,"Work in progress :)")},m(l,t){A(l,e,t)},i:Ue,o:Ue,d(l){l&&h(e)}}}function Tr(r){let e,l;return e=new dr({}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function _l(r){let e,l,t,n,a,s,o;const i=[Nr,Cr],u=[];function d(f,m){return f[0].view.tableStyle==="collapsed"?0:1}return l=d(r),t=u[l]=i[l](r),{c(){e=$("button"),t.c(),this.h()},l(f){e=g(f,"BUTTON",{class:!0,title:!0});var m=I(e);t.l(m),m.forEach(h),this.h()},h(){_(e,"class","button"),_(e,"title",n=r[0].view.tableStyle==="expanded"?"Collapse values":"Expand values")},m(f,m){A(f,e,m),u[l].m(e,null),a=!0,s||(o=le(e,"click",_t(function(){El(r[0].view.tableStyle==="collapsed"?H.setView({tableStyle:"expanded"}):H.setView({tableStyle:"collapsed"}))&&(r[0].view.tableStyle==="collapsed"?H.setView({tableStyle:"expanded"}):H.setView({tableStyle:"collapsed"})).apply(this,arguments)})),s=!0)},p(f,m){r=f;let b=l;l=d(r),l!==b&&(ge(),R(u[b],1,1,()=>{u[b]=null}),$e(),t=u[l],t||(t=u[l]=i[l](r),t.c()),D(t,1),t.m(e,null)),(!a||m&1&&n!==(n=r[0].view.tableStyle==="expanded"?"Collapse values":"Expand values"))&&_(e,"title",n)},i(f){a||(D(t),a=!0)},o(f){R(t),a=!1},d(f){f&&h(e),u[l].d(),s=!1,o()}}}function Cr(r){let e,l="Collapse values",t,n,a;return n=new Se({props:{icon:"collapse"}}),{c(){e=$("span"),e.textContent=l,t=F(),ue(n.$$.fragment),this.h()},l(s){e=g(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-jserey"&&(e.textContent=l),t=L(s),oe(n.$$.fragment,s),this.h()},h(){_(e,"class","label")},m(s,o){A(s,e,o),A(s,t,o),ie(n,s,o),a=!0},i(s){a||(D(n.$$.fragment,s),a=!0)},o(s){R(n.$$.fragment,s),a=!1},d(s){s&&(h(e),h(t)),se(n,s)}}}function Nr(r){let e,l="Expand values",t,n,a;return n=new Se({props:{icon:"expand"}}),{c(){e=$("span"),e.textContent=l,t=F(),ue(n.$$.fragment),this.h()},l(s){e=g(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1tvmrgx"&&(e.textContent=l),t=L(s),oe(n.$$.fragment,s),this.h()},h(){_(e,"class","label")},m(s,o){A(s,e,o),A(s,t,o),ie(n,s,o),a=!0},i(s){a||(D(n.$$.fragment,s),a=!0)},o(s){R(n.$$.fragment,s),a=!1},d(s){s&&(h(e),h(t)),se(n,s)}}}function pl(r){let e,l;return e=new kr({props:{properties:r[0].table.properties,editing:r[0].record}}),{c(){ue(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,n){ie(e,t,n),l=!0},p(t,n){const a={};n&1&&(a.properties=t[0].table.properties),n&1&&(a.editing=t[0].record),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){se(e,t)}}}function Sr(r){var Dt,Lt,Ft,Pt;let e,l,t,n,a,s,o,i,u,d,f="Refresh current view",m,b,C,E,v,k,p,y,T,z="Page:",q,S,j,N,w=(((Dt=r[0].records)==null?void 0:Dt.total_pages)||1)+"",O,P,M,Z,G,U,K,B="Create new record",ae,Ce,me,ee,Oe,fe,we,Ve,it,je,ce,De=r[0].filters.deleted==="false"?"ing":"",Q,ot,pe,nt,ye,ze,at,Y,J,Te=r[0].filters.deleted==="true"?"ing":"",Ie,Re,Le,de,te,xe,qe,He,he,yt,kt,Nt;Et.title=e=(((Lt=r[0].table)==null?void 0:Lt.name)||"Loading…")+((Ft=r[0].online)!=null&&Ft.MPKIT_URL?": "+r[0].online.MPKIT_URL.replace("https://",""):""),a=new ql({}),o=new Yl({}),b=new Se({props:{icon:"refresh"}});const St=[Tr,Er],et=[];function Ot(V,x){return V[0].view.database!=="tiles"?0:1}E=Ot(r),v=et[E]=St[E](r);function vl(V){r[5](V)}let It={name:"page",min:1,max:(Pt=r[0].records)==null?void 0:Pt.total_pages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};r[0].filters.page!==void 0&&(It.value=r[0].filters.page),S=new Pl({props:It}),rt.push(()=>$l(S,"value",vl)),S.$on("input",r[6]),G=new Se({props:{icon:"plus"}});let ve=r[0].view.database!=="tiles"&&_l(r);Ve=new Se({props:{icon:"leaf"}}),ze=new Se({props:{icon:"recycle"}});let be=r[0].record!==null&&pl(r);return yt=wl(r[9][0]),{c(){l=F(),t=$("section"),n=$("nav"),ue(a.$$.fragment),s=F(),ue(o.$$.fragment),i=F(),u=$("button"),d=$("span"),d.textContent=f,m=F(),ue(b.$$.fragment),C=F(),v.c(),k=F(),p=$("nav"),y=$("div"),T=$("label"),T.textContent=z,q=F(),ue(S.$$.fragment),N=X(` + of `),O=X(w),P=F(),M=$("div"),Z=$("button"),ue(G.$$.fragment),U=F(),K=$("span"),K.textContent=B,ae=F(),ve&&ve.c(),Ce=F(),me=$("div"),ee=$("input"),fe=F(),we=$("label"),ue(Ve.$$.fragment),it=F(),je=$("span"),ce=X("Show"),Q=X(De),ot=X(" current database state"),nt=F(),ye=$("label"),ue(ze.$$.fragment),at=F(),Y=$("span"),J=X("Show"),Ie=X(Te),Re=X(" deleted records"),de=F(),te=$("input"),qe=F(),be&&be.c(),He=Ae(),this.h()},l(V){kl("svelte-1ke6alb",Et.head).forEach(h),l=L(V),t=g(V,"SECTION",{class:!0});var Be=I(t);n=g(Be,"NAV",{class:!0});var Me=I(n);oe(a.$$.fragment,Me),s=L(Me),oe(o.$$.fragment,Me),i=L(Me),u=g(Me,"BUTTON",{class:!0,title:!0});var tt=I(u);d=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),ne(d)!=="svelte-iqo23s"&&(d.textContent=f),m=L(tt),oe(b.$$.fragment,tt),tt.forEach(h),Me.forEach(h),C=L(Be),v.l(Be),k=L(Be),p=g(Be,"NAV",{class:!0});var lt=I(p);y=g(lt,"DIV",{});var Je=I(y);T=g(Je,"LABEL",{for:!0,"data-svelte-h":!0}),ne(T)!=="svelte-1r8oyu6"&&(T.textContent=z),q=L(Je),oe(S.$$.fragment,Je),N=W(Je,` + of `),O=W(Je,w),Je.forEach(h),P=L(lt),M=g(lt,"DIV",{id:!0,class:!0});var We=I(M);Z=g(We,"BUTTON",{class:!0,title:!0});var pt=I(Z);oe(G.$$.fragment,pt),U=L(pt),K=g(pt,"SPAN",{class:!0,"data-svelte-h":!0}),ne(K)!=="svelte-19x6y3e"&&(K.textContent=B),pt.forEach(h),ae=L(We),ve&&ve.l(We),Ce=L(We),me=g(We,"DIV",{class:!0});var Xe=I(me);ee=g(Xe,"INPUT",{type:!0,name:!0,id:!0,class:!0}),fe=L(Xe),we=g(Xe,"LABEL",{for:!0,class:!0,title:!0});var ht=I(we);oe(Ve.$$.fragment,ht),it=L(ht),je=g(ht,"SPAN",{class:!0});var mt=I(je);ce=W(mt,"Show"),Q=W(mt,De),ot=W(mt," current database state"),mt.forEach(h),ht.forEach(h),nt=L(Xe),ye=g(Xe,"LABEL",{for:!0,class:!0,title:!0});var vt=I(ye);oe(ze.$$.fragment,vt),at=L(vt),Y=g(vt,"SPAN",{class:!0});var bt=I(Y);J=W(bt,"Show"),Ie=W(bt,Te),Re=W(bt," deleted records"),bt.forEach(h),vt.forEach(h),de=L(Xe),te=g(Xe,"INPUT",{type:!0,name:!0,id:!0,class:!0}),Xe.forEach(h),We.forEach(h),lt.forEach(h),Be.forEach(h),qe=L(V),be&&be.l(V),He=Ae(),this.h()},h(){_(d,"class","label"),_(u,"class","button svelte-afbo94"),_(u,"title","Refresh current view (R)"),ke(u,"refreshing",r[2]),_(n,"class","svelte-afbo94"),_(T,"for","page"),_(K,"class","label"),_(Z,"class","button"),_(Z,"title","Create new record"),_(ee,"type","radio"),_(ee,"name","deleted"),_(ee,"id","deletedTrue"),ee.__value="false",re(ee,ee.__value),ee.disabled=Oe=r[0].filters.deleted==="false",_(ee,"class","svelte-afbo94"),_(je,"class","label"),_(we,"for","deletedTrue"),_(we,"class","button"),_(we,"title",pe="Show"+(r[0].filters.deleted==="false"?"ing":"")+" current database state"),ke(we,"active",r[0].filters.deleted==="false"),ke(we,"disabled",r[0].filters.deleted==="false"),_(Y,"class","label"),_(ye,"for","deletedFalse"),_(ye,"class","button"),_(ye,"title",Le="Show"+(r[0].filters.deleted==="true"?"ing":"")+" deleted records"),ke(ye,"active",r[0].filters.deleted==="true"),ke(ye,"disabled",r[0].filters.deleted==="true"),_(te,"type","radio"),_(te,"name","deleted"),_(te,"id","deletedFalse"),te.__value="true",re(te,te.__value),te.disabled=xe=r[0].filters.deleted==="true",_(te,"class","svelte-afbo94"),_(me,"class","combo svelte-afbo94"),_(M,"id","viewOptions"),_(M,"class","svelte-afbo94"),_(p,"class","pagination svelte-afbo94"),_(t,"class","svelte-afbo94"),yt.p(ee,te)},m(V,x){A(V,l,x),A(V,t,x),c(t,n),ie(a,n,null),c(n,s),ie(o,n,null),c(n,i),c(n,u),c(u,d),c(u,m),ie(b,u,null),c(t,C),et[E].m(t,null),c(t,k),c(t,p),c(p,y),c(y,T),c(y,q),ie(S,y,null),c(y,N),c(y,O),c(p,P),c(p,M),c(M,Z),ie(G,Z,null),c(Z,U),c(Z,K),c(M,ae),ve&&ve.m(M,null),c(M,Ce),c(M,me),c(me,ee),ee.checked=ee.__value===r[0].filters.deleted,c(me,fe),c(me,we),ie(Ve,we,null),c(we,it),c(we,je),c(je,ce),c(je,Q),c(je,ot),c(me,nt),c(me,ye),ie(ze,ye,null),c(ye,at),c(ye,Y),c(Y,J),c(Y,Ie),c(Y,Re),c(me,de),c(me,te),te.checked=te.__value===r[0].filters.deleted,A(V,qe,x),be&&be.m(V,x),A(V,He,x),he=!0,kt||(Nt=[le(window,"keypress",r[4]),le(u,"click",r[3]),le(Z,"click",_t(r[7])),le(ee,"change",r[8]),le(ee,"change",r[10]),le(te,"change",r[11]),le(te,"change",r[12])],kt=!0)},p(V,[x]){var tt,lt,Je,We;(!he||x&1)&&e!==(e=(((tt=V[0].table)==null?void 0:tt.name)||"Loading…")+((lt=V[0].online)!=null&<.MPKIT_URL?": "+V[0].online.MPKIT_URL.replace("https://",""):""))&&(Et.title=e),(!he||x&4)&&ke(u,"refreshing",V[2]);let Be=E;E=Ot(V),E!==Be&&(ge(),R(et[Be],1,1,()=>{et[Be]=null}),$e(),v=et[E],v||(v=et[E]=St[E](V),v.c()),D(v,1),v.m(t,k));const Me={};x&1&&(Me.max=(Je=V[0].records)==null?void 0:Je.total_pages),!j&&x&1&&(j=!0,Me.value=V[0].filters.page,yl(()=>j=!1)),S.$set(Me),(!he||x&1)&&w!==(w=(((We=V[0].records)==null?void 0:We.total_pages)||1)+"")&&_e(O,w),V[0].view.database!=="tiles"?ve?(ve.p(V,x),x&1&&D(ve,1)):(ve=_l(V),ve.c(),D(ve,1),ve.m(M,Ce)):ve&&(ge(),R(ve,1,1,()=>{ve=null}),$e()),(!he||x&1&&Oe!==(Oe=V[0].filters.deleted==="false"))&&(ee.disabled=Oe),x&1&&(ee.checked=ee.__value===V[0].filters.deleted),(!he||x&1)&&De!==(De=V[0].filters.deleted==="false"?"ing":"")&&_e(Q,De),(!he||x&1&&pe!==(pe="Show"+(V[0].filters.deleted==="false"?"ing":"")+" current database state"))&&_(we,"title",pe),(!he||x&1)&&ke(we,"active",V[0].filters.deleted==="false"),(!he||x&1)&&ke(we,"disabled",V[0].filters.deleted==="false"),(!he||x&1)&&Te!==(Te=V[0].filters.deleted==="true"?"ing":"")&&_e(Ie,Te),(!he||x&1&&Le!==(Le="Show"+(V[0].filters.deleted==="true"?"ing":"")+" deleted records"))&&_(ye,"title",Le),(!he||x&1)&&ke(ye,"active",V[0].filters.deleted==="true"),(!he||x&1)&&ke(ye,"disabled",V[0].filters.deleted==="true"),(!he||x&1&&xe!==(xe=V[0].filters.deleted==="true"))&&(te.disabled=xe),x&1&&(te.checked=te.__value===V[0].filters.deleted),V[0].record!==null?be?(be.p(V,x),x&1&&D(be,1)):(be=pl(V),be.c(),D(be,1),be.m(He.parentNode,He)):be&&(ge(),R(be,1,1,()=>{be=null}),$e())},i(V){he||(D(a.$$.fragment,V),D(o.$$.fragment,V),D(b.$$.fragment,V),D(v),D(S.$$.fragment,V),D(G.$$.fragment,V),D(ve),D(Ve.$$.fragment,V),D(ze.$$.fragment,V),D(be),he=!0)},o(V){R(a.$$.fragment,V),R(o.$$.fragment,V),R(b.$$.fragment,V),R(v),R(S.$$.fragment,V),R(G.$$.fragment,V),R(ve),R(Ve.$$.fragment,V),R(ze.$$.fragment,V),R(be),he=!1},d(V){V&&(h(l),h(t),h(qe),h(He)),se(a),se(o),se(b),et[E].d(),se(S),se(G),ve&&ve.d(),se(Ve),se(ze),be&&be.d(V),yt.r(),kt=!1,st(Nt)}}}function Or(r,e,l){let t,n;Pe(r,H,v=>l(0,t=v)),Pe(r,wt,v=>l(1,n=v));let a=!1;const s=()=>{l(2,a=!0),Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}).then(()=>l(2,a=!1))},o=v=>{document.activeElement===document.body&&!v.target.matches("input, textarea")&&v.key==="r"&&s()},i=[[]];function u(v){r.$$.not_equal(t.filters.page,v)&&(t.filters.page=v,H.set(t))}const d=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})},f=()=>Fe(H,t.record={},t);function m(){t.filters.deleted=this.__value,H.set(t)}const b=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};function C(){t.filters.deleted=this.__value,H.set(t)}const E=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};return r.$$.update=()=>{r.$$.dirty&3&&Fe(H,t.table=t.tables.filter(v=>v.id===n.params.id)[0],t),r.$$.dirty&2&&n.params.id&&Ne.get({table:n.params.id})&&H.clearFilters()},[t,n,a,s,o,u,d,f,m,i,b,C,E]}class Jr extends Ze{constructor(e){super(),Ge(this,e,Or,Sr,Qe,{})}}export{Jr as component}; diff --git a/gui/next/build/_app/immutable/nodes/14.DYE1QyX1.js b/gui/next/build/_app/immutable/nodes/14.DYE1QyX1.js deleted file mode 100644 index a95aa61f2..000000000 --- a/gui/next/build/_app/immutable/nodes/14.DYE1QyX1.js +++ /dev/null @@ -1,72 +0,0 @@ -import{s as Ke,e as g,c as $,b as I,f as h,i as A,C as le,J as _t,k as Pe,v as Ae,F as Ze,a as L,A as ne,g as F,y as _,B as re,M as dt,h as c,a1 as Xe,r as st,E as Fe,a3 as gt,z as rt,t as W,d as Y,j as _e,n as Ue,L as Tt,Y as ml,ah as At,G as ke,U as gl,H as $l,_ as wl,p as yl,D as kl,Z as El}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Ge,i as Qe,t as D,g as ge,a as R,e as $e,c as se,d as ie,m as oe,f as ue,h as Rt,b as Tl}from"../chunks/index.CGVWAVV-.js";import{g as Cl}from"../chunks/globals.D0QH3NT1.js";import{p as wt}from"../chunks/stores.BLuxmlax.js";import{s as H}from"../chunks/state.nqMW8J5l.js";import{g as ut}from"../chunks/graphql.BD1m7lx9.js";import{b as Ut,c as Nl}from"../chunks/buildMutationIngredients.BkeFH9yg.js";import{I as Se}from"../chunks/Icon.CkKwi_WD.js";import{e as Ee,u as Sl,o as Ol}from"../chunks/each.BWzj3zy9.js";import{p as vl}from"../chunks/parseValue.BxCUwhRQ.js";import{c as Il,T as Dl}from"../chunks/Toggle.CtBEfrzX.js";import{J as Ll}from"../chunks/JSONTree.B6rnjEUC.js";import{q as Fl}from"../chunks/index.iVSWiVfi.js";import{t as Pl}from"../chunks/tryParseJSON.x4PJc0Qf.js";import{N as Al}from"../chunks/Number.B4JDnNHn.js";const Rl=(r=[])=>{let e="",l={},t="";const n={string:["array_contains","not_array_contains","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with","value"],int:["value_int","not_value_int"],float:["not_value_float","value_float"],bool:["exists","not_value_boolean","value_boolean"],range:["range"],array:["value_array","not_value_array","value_in","not_value_in","array_overlaps","not_array_overlaps"]};for(const a of r){if(!a.minFilterValue&&!a.maxFilterValue&&!a.value)break;let s="",o="";n.int.includes(a.operation)?(s="integer",o=parseInt(a.value)):n.float.includes(a.operation)?(s="float",o=parseFloat(a.value)):n.bool.includes(a.operation)?(s="boolean",o=a.value==="true"):n.range.includes(a.operation)?(s="range",o={},o[a.minFilter]=a.minFilterValue,o[a.maxFilter]=a.maxFilterValue):n.array.includes(a.operation)?(s="array",o=JSON.parse(a.value)):(s="string",o=a.value),a.name!=="id"&&(e+=`, $${a.name}: ${Nl[s]||"String"}`,l[a.name]=o,t+=`{ - name: "${a.name}", - ${a.operation}: $${a.name} - }`)}return e.length&&(e=e.slice(2),e=`(${e})`),t=` - properties: [${t}] - `,{variablesDefinition:e,variables:l,propertiesFilter:t}},Ne={get:r=>{var d,f,m;const l={...{deleted:!1,filters:{page:1}},...r},t=l.table?`table_id: { value: ${l.table} }`:"",n=(f=(d=l.filters)==null?void 0:d.attributes)==null?void 0:f.findIndex(b=>b.name==="id");let a="";n>=0&&l.filters.attributes[n].value&&(a=`id: { ${l.filters.attributes[n].operation}: ${l.filters.attributes[n].value} }`);let s="";l.sort?l.sort.by==="id"||l.sort.by==="created_at"||l.sort.by==="updated_at"?s=`${l.sort.by}: { order: ${l.sort.order} }`:s=`properties: { name: "${l.sort.by}", order: ${l.sort.order} }`:s="created_at: { order: DESC }";const o=l.deleted==="true"?"deleted_at: { exists: true }":"",i=Rl((m=l.filters)==null?void 0:m.attributes),u=` - query${i.variablesDefinition} { - records( - page: ${l.filters.page} - per_page: 20, - sort: { ${s} }, - filter: { - ${t} - ${a} - ${o} - ${i.propertiesFilter} - } - ) { - current_page - total_pages - results { - id - created_at - updated_at - deleted_at - properties - } - } - }`;return ut({query:u,variables:i.variables}).then(b=>{H.data("records",b.records)})},create:r=>{const l=Object.fromEntries(r.properties.entries()).tableName,t=Ut(r.properties),n=` - mutation${t.variablesDefinition} { - record_create(record: { - table: "${l}", - properties: [${t.properties}] - }) { - id - } - }`;return ut({query:n,variables:t.variables})},edit:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,t=e.recordId,n=Ut(r.properties),a=` - mutation${n.variablesDefinition} { - record_update( - id: ${t}, - record: { - table: "${l}" - properties: [${n.properties}] - } - ) { - id - } - }`;return ut({query:a,variables:n.variables})},delete:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,t=e.recordId,n=` - mutation { - record_delete(table: "${l}", id: ${t}) { - id - } - }`;return ut({query:n})},restore:r=>{let e=Object.fromEntries(r.properties.entries());const l=e.tableName,n=` - mutation { - record_update( - id: ${e.recordId}, - record: { - table: "${l}", - deleted_at: null - } - ) { - id - } - }`;return ut({query:n})}};function jt(r,e,l){const t=r.slice();return t[10]=e[l],t[11]=e,t[12]=l,t}function Vt(r,e,l){const t=r.slice();return t[13]=e[l],t}function Bt(r,e,l){const t=r.slice();return t[16]=e[l],t}function zt(r){let e,l,t=Ee(r[1].filters.attributes),n=[];for(let s=0;sR(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{S[O]=null}),$e(),m=S[f],m?m.p(r,w):(m=S[f]=q[f](r),m.c()),D(m,1),m.m(e,b))},i(N){C||(D(m),C=!0)},o(N){R(m),C=!1},d(N){N&&h(e),Ze(p,N),S[f].d(),E=!1,st(v)}}}function Ml(r){var s;let e,l,t,n,a=((s=r[1].table)==null?void 0:s.properties)&&zt(r);return{c(){e=g("form"),a&&a.c()},l(o){e=$(o,"FORM",{});var i=I(e);a&&a.l(i),i.forEach(h)},m(o,i){A(o,e,i),a&&a.m(e,null),r[9](e),l=!0,t||(n=le(e,"submit",_t(r[3])),t=!0)},p(o,[i]){var u;(u=o[1].table)!=null&&u.properties?a?(a.p(o,i),i&2&&D(a,1)):(a=zt(o),a.c(),D(a,1),a.m(e,null)):a&&(ge(),R(a,1,1,()=>{a=null}),$e())},i(o){l||(D(a),l=!0)},o(o){R(a),l=!1},d(o){o&&h(e),a&&a.d(),r[9](null),t=!1,n()}}}function ql(r,e,l){let t;Pe(r,H,b=>l(1,t=b));let n;const a={id:["value"],string:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"],text:["value","exists","not_value"],array:["array_contains","value_array","value_in","exists","array_overlaps","not_array_contains","not_array_overlaps","not_value_array","not_value_in"],boolean:["value_boolean","exists","not_value_boolean"],integer:["value_int","exists","not_value_int","range"],float:["value_float","exists","not_value_float","range"],upload:["value","exists","not_value"],datetime:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"],date:["value","exists","contains","ends_with","not_contains","not_ends_with","not_starts_with","not_value","starts_with"]},s=()=>{Fe(H,t.filters={page:1,attributes:[Object.fromEntries(new FormData(n).entries())],deleted:t.filters.deleted},t),Ne.get({table:t.table.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};function o(b,C){b[C].name=gt(this),H.set(t)}const i=(b,C,E)=>{var v;Fe(H,C[E].attribute_type=((v=t.table.properties.find(k=>k.name===b.name))==null?void 0:v.attribute_type)||"id",t)};function u(b,C){b[C].attribute_type=this.value,H.set(t)}function d(b,C){b[C].operation=gt(this),H.set(t)}function f(b,C){b[C].value=this.value,H.set(t)}function m(b){rt[b?"unshift":"push"](()=>{n=b,l(0,n)})}return[n,t,a,s,o,i,u,d,f,m]}class Hl extends Ge{constructor(e){super(),Qe(this,e,ql,Ml,Ke,{})}}function Jt(r,e,l){const t=r.slice();return t[8]=e[l],t}function Wt(r){let e,l,t="created at",n,a="updated at",s,o="id",i,u,d,f="DESC [Z→A]",m,b="ASC [A→Z]",C,E,v,k,p,y,T,B=Ee(r[1].table.properties),q=[];for(let w=0;wr[3].call(e)),d.__value="DESC",re(d,d.__value),m.__value="ASC",re(m,m.__value),_(u,"name","order"),_(u,"id","sort_order"),_(u,"class","svelte-yzlk61"),r[1].sort.order===void 0&&dt(()=>r[5].call(u)),_(E,"for","sort_order"),_(E,"class","button svelte-yzlk61")},m(w,O){A(w,e,O),c(e,l),c(e,n),c(e,s);for(let P=0;P{V[P]=null}),$e(),k=V[v],k||(k=V[v]=S[v](w),k.c()),D(k,1),k.m(E,null))},i(w){p||(D(k),p=!0)},o(w){R(k),p=!1},d(w){w&&(h(e),h(i),h(u),h(C),h(E)),Ze(q,w),V[v].d(),y=!1,st(T)}}}function Yt(r){let e,l=r[8].name+"",t,n,a;return{c(){e=g("option"),t=W(l),n=L(),this.h()},l(s){e=$(s,"OPTION",{});var o=I(e);t=Y(o,l),n=F(o),o.forEach(h),this.h()},h(){e.__value=a=r[8].name,re(e,e.__value)},m(s,o){A(s,e,o),c(e,t),c(e,n)},p(s,o){o&2&&l!==(l=s[8].name+"")&&_e(t,l),o&2&&a!==(a=s[8].name)&&(e.__value=a,re(e,e.__value))},d(s){s&&h(e)}}}function Jl(r){let e,l;return e=new Se({props:{icon:"sortAZ"}}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function Wl(r){let e,l;return e=new Se({props:{icon:"sortZA"}}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function Yl(r){var s;let e,l,t,n,a=((s=r[1].table)==null?void 0:s.properties)&&Wt(r);return{c(){e=g("form"),a&&a.c(),this.h()},l(o){e=$(o,"FORM",{class:!0});var i=I(e);a&&a.l(i),i.forEach(h),this.h()},h(){_(e,"class","svelte-yzlk61")},m(o,i){A(o,e,i),a&&a.m(e,null),r[7](e),l=!0,t||(n=le(e,"submit",_t(r[2])),t=!0)},p(o,[i]){var u;(u=o[1].table)!=null&&u.properties?a?(a.p(o,i),i&2&&D(a,1)):(a=Wt(o),a.c(),D(a,1),a.m(e,null)):a&&(ge(),R(a,1,1,()=>{a=null}),$e())},i(o){l||(D(a),l=!0)},o(o){R(a),l=!1},d(o){o&&h(e),a&&a.d(),r[7](null),t=!1,n()}}}function Xl(r,e,l){let t;Pe(r,H,f=>l(1,t=f));let n;const a=()=>{Fe(H,t.filters.page=1,t),Ne.get({table:t.table.id,filters:t.filters,sort:Object.fromEntries(new FormData(n).entries()),deleted:t.filters.deleted})};function s(){t.sort.by=gt(this),H.set(t)}const o=()=>n.requestSubmit();function i(){t.sort.order=gt(this),H.set(t)}const u=()=>n.requestSubmit();function d(f){rt[f?"unshift":"push"](()=>{n=f,l(0,n)})}return[n,t,a,s,o,i,u,d]}class Zl extends Ge{constructor(e){super(),Qe(this,e,Xl,Yl,Ke,{})}}function Kl(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;return u=new Se({props:{icon:"x",size:"22"}}),{c(){e=g("form"),l=g("input"),n=L(),a=g("input"),s=L(),o=g("button"),i=g("i"),se(u.$$.fragment),d=W(`\r - Delete record`),this.h()},l(C){e=$(C,"FORM",{});var E=I(e);l=$(E,"INPUT",{type:!0,name:!0}),n=F(E),a=$(E,"INPUT",{type:!0,name:!0}),s=F(E),o=$(E,"BUTTON",{class:!0});var v=I(o);i=$(v,"I",{class:!0});var k=I(i);ie(u.$$.fragment,k),k.forEach(h),d=Y(v,`\r - Delete record`),v.forEach(h),E.forEach(h),this.h()},h(){_(l,"type","hidden"),_(l,"name","tableName"),l.value=t=r[0].name,_(a,"type","hidden"),_(a,"name","recordId"),a.value=r[1],_(i,"class","svelte-ooaugn"),_(o,"class","danger")},m(C,E){A(C,e,E),c(e,l),c(e,n),c(e,a),c(e,s),c(e,o),c(o,i),oe(u,i,null),c(o,d),r[4](e),f=!0,m||(b=le(e,"submit",r[3]),m=!0)},p(C,[E]){(!f||E&1&&t!==(t=C[0].name))&&(l.value=t),(!f||E&2)&&(a.value=C[1])},i(C){f||(D(u.$$.fragment,C),f=!0)},o(C){R(u.$$.fragment,C),f=!1},d(C){C&&h(e),ue(u),r[4](null),m=!1,b()}}}function Gl(r,e,l){let t,n;Pe(r,H,f=>l(5,t=f)),Pe(r,wt,f=>l(6,n=f));let{table:a}=e,{id:s}=e,o,i=Tt();const u=async f=>{if(f.preventDefault(),confirm("Are you sure you want to delete this record?")){i("success");const m=await Ne.delete({table:a.name,properties:new FormData(o)});m.errors?H.notification.create("error",`Record ${m.record_delete.id} could not be deleted`):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.notification.create("success",`Record ${m.record_delete.id} deleted`))}};function d(f){rt[f?"unshift":"push"](()=>{o=f,l(2,o)})}return r.$$set=f=>{"table"in f&&l(0,a=f.table),"id"in f&&l(1,s=f.id)},[a,s,o,u,d]}class Ql extends Ge{constructor(e){super(),Qe(this,e,Gl,Kl,Ke,{table:0,id:1})}}function xl(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;return u=new Se({props:{icon:"recycleRefresh"}}),{c(){e=g("form"),l=g("input"),n=L(),a=g("input"),s=L(),o=g("button"),i=g("i"),se(u.$$.fragment),d=W(`\r - Restore record`),this.h()},l(C){e=$(C,"FORM",{});var E=I(e);l=$(E,"INPUT",{type:!0,name:!0}),n=F(E),a=$(E,"INPUT",{type:!0,name:!0}),s=F(E),o=$(E,"BUTTON",{});var v=I(o);i=$(v,"I",{});var k=I(i);ie(u.$$.fragment,k),k.forEach(h),d=Y(v,`\r - Restore record`),v.forEach(h),E.forEach(h),this.h()},h(){_(l,"type","hidden"),_(l,"name","tableName"),l.value=t=r[0].name,_(a,"type","hidden"),_(a,"name","recordId"),a.value=r[1]},m(C,E){A(C,e,E),c(e,l),c(e,n),c(e,a),c(e,s),c(e,o),c(o,i),oe(u,i,null),c(o,d),r[4](e),f=!0,m||(b=le(e,"submit",r[3]),m=!0)},p(C,[E]){(!f||E&1&&t!==(t=C[0].name))&&(l.value=t),(!f||E&2)&&(a.value=C[1])},i(C){f||(D(u.$$.fragment,C),f=!0)},o(C){R(u.$$.fragment,C),f=!1},d(C){C&&h(e),ue(u),r[4](null),m=!1,b()}}}function er(r,e,l){let t,n;Pe(r,H,f=>l(5,t=f)),Pe(r,wt,f=>l(6,n=f));let{table:a}=e,{id:s}=e,o,i=Tt();const u=async f=>{f.preventDefault(),i("success");const m=await Ne.restore({table:a.name,properties:new FormData(o)});m.errors?H.notification.create("error",`Record ${m.record_update.id} could not be restored`):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.notification.create("success",`Record ${m.record_update.id} restored`))};function d(f){rt[f?"unshift":"push"](()=>{o=f,l(2,o)})}return r.$$set=f=>{"table"in f&&l(0,a=f.table),"id"in f&&l(1,s=f.id)},[a,s,o,u,d]}class tr extends Ge{constructor(e){super(),Qe(this,e,er,xl,Ke,{table:0,id:1})}}function lr(r){let e,l;return e=new Ql({props:{table:r[1].table,id:r[0].id}}),e.$on("success",r[6]),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.table=t[1].table),n&1&&(a.id=t[0].id),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function rr(r){let e,l;return e=new tr({props:{table:r[1].table,id:r[0].id}}),e.$on("success",r[5]),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.table=t[1].table),n&1&&(a.id=t[0].id),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function nr(r){let e,l,t,n,a,s,o,i,u,d,f,m,b;a=new Se({props:{icon:"copy",size:"22"}});const C=[rr,lr],E=[];function v(k,p){return k[1].filters.deleted==="true"?0:1}return u=v(r),d=E[u]=C[u](r),{c(){e=g("menu"),l=g("ul"),t=g("li"),n=g("button"),se(a.$$.fragment),s=W(`\r - Copy record`),o=L(),i=g("li"),d.c(),this.h()},l(k){e=$(k,"MENU",{class:!0});var p=I(e);l=$(p,"UL",{});var y=I(l);t=$(y,"LI",{class:!0});var T=I(t);n=$(T,"BUTTON",{type:!0});var B=I(n);ie(a.$$.fragment,B),s=Y(B,`\r - Copy record`),B.forEach(h),T.forEach(h),o=F(y),i=$(y,"LI",{class:!0});var q=I(i);d.l(q),q.forEach(h),y.forEach(h),p.forEach(h),this.h()},h(){_(n,"type","button"),_(t,"class","svelte-1tht2a1"),_(i,"class","svelte-1tht2a1"),_(e,"class","content-context svelte-1tht2a1")},m(k,p){A(k,e,p),c(e,l),c(l,t),c(t,n),oe(a,n,null),c(n,s),c(l,o),c(l,i),E[u].m(i,null),f=!0,m||(b=[le(window,"keyup",r[3]),le(n,"click",r[4]),ml(Il.call(null,e,r[7]))],m=!0)},p(k,[p]){let y=u;u=v(k),u===y?E[u].p(k,p):(ge(),R(E[y],1,1,()=>{E[y]=null}),$e(),d=E[u],d?d.p(k,p):(d=E[u]=C[u](k),d.c()),D(d,1),d.m(i,null))},i(k){f||(D(a.$$.fragment,k),D(d),f=!0)},o(k){R(a.$$.fragment,k),R(d),f=!1},d(k){k&&h(e),ue(a),E[u].d(),m=!1,st(b)}}}function ar(r,e,l){let t;Pe(r,H,f=>l(1,t=f));let{record:n}=e;const a=Tt(),s=f=>{f.key==="Escape"&&a("close")},o=()=>{a("close"),Fe(H,t.record={...n},t),Fe(H,t.record.id=null,t)},i=()=>a("close"),u=()=>a("close"),d=()=>a("close");return r.$$set=f=>{"record"in f&&l(0,n=f.record)},[n,t,a,s,o,i,u,d]}class sr extends Ge{constructor(e){super(),Qe(this,e,ar,nr,Ke,{record:0})}}function Xt(r,e,l){const t=r.slice();return t[5]=e[l],t}function Zt(r,e,l){const t=r.slice();t[8]=e[l];const n=vl(t[5].properties[t[8].name],t[8].attribute_type);return t[9]=n,t}function Kt(r,e,l){const t=r.slice();return t[8]=e[l],t}function Gt(r){var B,q;let e,l,t,n,a="id",s,o,i,u="created at",d,f,m="updated at",b,C,E,v,k=Ee(r[1].table.properties),p=[];for(let S=0;S{T=null}),$e()),(!v||V&2&&E!==(E=At(S[1].view.tableStyle)+" svelte-1bwwtph"))&&_(e,"class",E)},i(S){v||(D(T),v=!0)},o(S){R(T),v=!1},d(S){S&&h(e),Ze(p,S),y&&y.d(),T&&T.d()}}}function Qt(r){let e,l=r[8].name+"",t,n,a,s,o=r[8].attribute_type+"",i,u;return{c(){e=g("th"),t=W(l),n=L(),a=g("small"),s=W("("),i=W(o),u=W(")"),this.h()},l(d){e=$(d,"TH",{class:!0});var f=I(e);t=Y(f,l),n=F(f),a=$(f,"SMALL",{class:!0});var m=I(a);s=Y(m,"("),i=Y(m,o),u=Y(m,")"),m.forEach(h),f.forEach(h),this.h()},h(){_(a,"class","type svelte-1bwwtph"),_(e,"class","svelte-1bwwtph")},m(d,f){A(d,e,f),c(e,t),c(e,n),c(e,a),c(a,s),c(a,i),c(a,u)},p(d,f){f&2&&l!==(l=d[8].name+"")&&_e(t,l),f&2&&o!==(o=d[8].attribute_type+"")&&_e(i,o)},d(d){d&&h(e)}}}function xt(r){let e,l="deleted at";return{c(){e=g("th"),e.textContent=l,this.h()},l(t){e=$(t,"TH",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1jwm27o"&&(e.textContent=l),this.h()},h(){_(e,"class","svelte-1bwwtph")},m(t,n){A(t,e,n)},d(t){t&&h(e)}}}function el(r){var o;let e=[],l=new Map,t,n,a=Ee((o=r[1].records)==null?void 0:o.results);const s=i=>i[5].id;for(let i=0;i{s[d]=null}),$e(),l=s[e],l?l.p(i,u):(l=s[e]=a[e](i),l.c()),D(l,1),l.m(t.parentNode,t))},i(i){n||(D(l),n=!0)},o(i){R(l),n=!1},d(i){i&&h(t),s[e].d(i)}}}function ir(r){let e=r[9].value+"",l;return{c(){l=W(e)},l(t){l=Y(t,e)},m(t,n){A(t,l,n)},p(t,n){n&2&&e!==(e=t[9].value+"")&&_e(l,e)},i:Ue,o:Ue,d(t){t&&h(l)}}}function or(r){let e,l,t,n;const a=[fr,ur],s=[];function o(i,u){return i[1].view.tableStyle==="expanded"?0:1}return e=o(r),l=s[e]=a[e](r),{c(){l.c(),t=Ae()},l(i){l.l(i),t=Ae()},m(i,u){s[e].m(i,u),A(i,t,u),n=!0},p(i,u){let d=e;e=o(i),e===d?s[e].p(i,u):(ge(),R(s[d],1,1,()=>{s[d]=null}),$e(),l=s[e],l?l.p(i,u):(l=s[e]=a[e](i),l.c()),D(l,1),l.m(t.parentNode,t))},i(i){n||(D(l),n=!0)},o(i){R(l),n=!1},d(i){i&&h(t),s[e].d(i)}}}function ur(r){let e=JSON.stringify(r[9].value)+"",l;return{c(){l=W(e)},l(t){l=Y(t,e)},m(t,n){A(t,l,n)},p(t,n){n&2&&e!==(e=JSON.stringify(t[9].value)+"")&&_e(l,e)},i:Ue,o:Ue,d(t){t&&h(l)}}}function fr(r){let e,l;return e=new Ll({props:{value:r[9].value}}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},p(t,n){const a={};n&2&&(a.value=t[9].value),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function rl(r){let e,l,t=r[9].value!==void 0&&ll(r);return{c(){e=g("td"),t&&t.c(),this.h()},l(n){e=$(n,"TD",{class:!0});var a=I(e);t&&t.l(a),a.forEach(h),this.h()},h(){_(e,"class","svelte-1bwwtph"),ke(e,"value-null",r[9].type==="null")},m(n,a){A(n,e,a),t&&t.m(e,null),l=!0},p(n,a){n[9].value!==void 0?t?(t.p(n,a),a&2&&D(t,1)):(t=ll(n),t.c(),D(t,1),t.m(e,null)):t&&(ge(),R(t,1,1,()=>{t=null}),$e()),(!l||a&2)&&ke(e,"value-null",n[9].type==="null")},i(n){l||(D(t),l=!0)},o(n){R(t),l=!1},d(n){n&&h(e),t&&t.d()}}}function nl(r){var i,u;let e,l=new Date((i=r[5])==null?void 0:i.deleted_at).toLocaleDateString(void 0,{})+"",t,n,a,s=new Date((u=r[5])==null?void 0:u.deleted_at).toLocaleTimeString(void 0,{})+"",o;return{c(){e=g("td"),t=W(l),n=L(),a=g("span"),o=W(s),this.h()},l(d){e=$(d,"TD",{class:!0});var f=I(e);t=Y(f,l),n=F(f),a=$(f,"SPAN",{class:!0});var m=I(a);o=Y(m,s),m.forEach(h),f.forEach(h),this.h()},h(){_(a,"class","svelte-1bwwtph"),_(e,"class","date svelte-1bwwtph")},m(d,f){A(d,e,f),c(e,t),c(e,n),c(e,a),c(a,o)},p(d,f){var m,b;f&2&&l!==(l=new Date((m=d[5])==null?void 0:m.deleted_at).toLocaleDateString(void 0,{})+"")&&_e(t,l),f&2&&s!==(s=new Date((b=d[5])==null?void 0:b.deleted_at).toLocaleTimeString(void 0,{})+"")&&_e(o,s)},d(d){d&&h(e)}}}function al(r,e){var nt,ye,Be,at;let l,t,n,a,s,o,i="More options",u,d,f,m,b,C="Edit record",E,v,k,p,y=e[5].id+"",T,B,q,S,V=new Date((nt=e[5])==null?void 0:nt.created_at).toLocaleDateString(void 0,{})+"",N,w,O,P=new Date((ye=e[5])==null?void 0:ye.created_at).toLocaleTimeString(void 0,{})+"",M,K,G,U=new Date((Be=e[5])==null?void 0:Be.updated_at).toLocaleDateString(void 0,{})+"",Z,z,ae,Ce=new Date((at=e[5])==null?void 0:at.updated_at).toLocaleTimeString(void 0,{})+"",me,ee,Oe,fe,we,je;d=new Se({props:{icon:"navigationMenuVertical",size:"16"}});function it(){return e[2](e[5])}v=new Se({props:{icon:"pencil",size:"16"}});function Ve(){return e[3](e[5])}let ce=e[0].id===e[5].id&&tl(e),De=Ee(e[1].table.properties),Q=[];for(let X=0;XR(Q[X],1,1,()=>{Q[X]=null});let pe=e[1].filters.deleted==="true"&&nl(e);return{key:r,first:null,c(){l=g("tr"),t=g("td"),n=g("div"),a=g("div"),s=g("button"),o=g("span"),o.textContent=i,u=L(),se(d.$$.fragment),f=L(),m=g("button"),b=g("span"),b.textContent=C,E=L(),se(v.$$.fragment),k=L(),ce&&ce.c(),p=L(),T=W(y),B=L();for(let X=0;X{ce=null}),$e()),(!fe||J&2)&&y!==(y=e[5].id+"")&&_e(T,y),J&2){De=Ee(e[1].table.properties);let de;for(de=0;de{t=null}),$e())},i(a){l||(D(t),l=!0)},o(a){R(t),l=!1},d(a){a&&h(e),t&&t.d(a)}}}function dr(r,e,l){let t;Pe(r,H,i=>l(1,t=i));let n={id:null};return[n,t,i=>l(0,n.id=i.id,n),i=>{Fe(H,t.record=i,t)},()=>l(0,n.id=null,n)]}class _r extends Ge{constructor(e){super(),Qe(this,e,dr,cr,Ke,{})}}var ct=new Map;function pr(r){var e=ct.get(r);e&&e.destroy()}function hr(r){var e=ct.get(r);e&&e.update()}var ft=null;typeof window>"u"?((ft=function(r){return r}).destroy=function(r){return r},ft.update=function(r){return r}):((ft=function(r,e){return r&&Array.prototype.forEach.call(r.length?r:[r],function(l){return function(t){if(t&&t.nodeName&&t.nodeName==="TEXTAREA"&&!ct.has(t)){var n,a=null,s=window.getComputedStyle(t),o=(n=t.value,function(){u({testForHeightReduction:n===""||!t.value.startsWith(n),restoreTextAlign:null}),n=t.value}),i=(function(f){t.removeEventListener("autosize:destroy",i),t.removeEventListener("autosize:update",d),t.removeEventListener("input",o),window.removeEventListener("resize",d),Object.keys(f).forEach(function(m){return t.style[m]=f[m]}),ct.delete(t)}).bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",i),t.addEventListener("autosize:update",d),t.addEventListener("input",o),window.addEventListener("resize",d),t.style.overflowX="hidden",t.style.wordWrap="break-word",ct.set(t,{destroy:i,update:d}),d()}function u(f){var m,b,C=f.restoreTextAlign,E=C===void 0?null:C,v=f.testForHeightReduction,k=v===void 0||v,p=s.overflowY;if(t.scrollHeight!==0&&(s.resize==="vertical"?t.style.resize="none":s.resize==="both"&&(t.style.resize="horizontal"),k&&(m=function(T){for(var B=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&B.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return B.forEach(function(q){var S=q[0],V=q[1];S.style.scrollBehavior="auto",S.scrollTop=V,S.style.scrollBehavior=null})}}(t),t.style.height=""),b=s.boxSizing==="content-box"?t.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):t.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&b>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(t.style.overflow="scroll"),b=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(t.style.overflow="hidden"),t.style.height=b+"px",E&&(t.style.textAlign=E),m&&m(),a!==b&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),a=b),p!==s.overflow&&!E)){var y=s.textAlign;s.overflow==="hidden"&&(t.style.textAlign=y==="start"?"end":"start"),u({restoreTextAlign:y,testForHeightReduction:!0})}}function d(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(l)}),r}).destroy=function(r){return r&&Array.prototype.forEach.call(r.length?r:[r],pr),r},ft.update=function(r){return r&&Array.prototype.forEach.call(r.length?r:[r],hr),r});var $t=ft;const Ct=r=>($t(r),{destroy(){$t.destroy(r)}});Ct.update=$t.update;Ct.destroy=$t.destroy;function sl(r,e,l){const t=r.slice();return t[13]=e[l],t}function il(r,e,l){const t=r.slice();t[16]=e[l];const n=t[1].properties?vl(t[1].properties[t[16].name],t[16].attribute_type):{type:t[16].attribute_type,value:""};return t[17]=n,t}function ol(r){let e,l;return{c(){e=g("input"),this.h()},l(t){e=$(t,"INPUT",{type:!0,name:!0}),this.h()},h(){_(e,"type","hidden"),_(e,"name","recordId"),e.value=l=r[1].id},m(t,n){A(t,e,n)},p(t,n){n&2&&l!==(l=t[1].id)&&(e.value=l)},d(t){t&&h(e)}}}function mr(r){let e=r[16].attribute_type+"",l,t,n,a,s;return{c(){l=W(e),t=L(),n=g("input"),this.h()},l(o){l=Y(o,e),t=F(o),n=$(o,"INPUT",{type:!0,name:!0}),this.h()},h(){_(n,"type","hidden"),_(n,"name",a=r[16].name+"[type]"),n.value=s=r[16].attribute_type},m(o,i){A(o,l,i),A(o,t,i),A(o,n,i)},p(o,i){i&1&&e!==(e=o[16].attribute_type+"")&&_e(l,e),i&1&&a!==(a=o[16].name+"[type]")&&_(n,"name",a),i&1&&s!==(s=o[16].attribute_type)&&(n.value=s)},i:Ue,o:Ue,d(o){o&&(h(l),h(t),h(n))}}}function vr(r){let e,l;return e=new Dl({props:{name:r[16].name+"[type]",options:[{value:"string",label:"string"},{value:"json",label:"json"}],checked:r[17].type==="json"?"json":"string"}}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},p(t,n){const a={};n&1&&(a.name=t[16].name+"[type]"),n&3&&(a.checked=t[17].type==="json"?"json":"string"),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function ul(r){let e;return{c(){e=W("(non editable)")},l(l){e=Y(l,"(non editable)")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function br(r){let e,l,t,n,a,s,o;return{c(){e=g("textarea"),this.h()},l(i){e=$(i,"TEXTAREA",{rows:!0,name:!0,id:!0,class:!0}),I(e).forEach(h),this.h()},h(){_(e,"rows","1"),_(e,"name",l=r[16].name+"[value]"),_(e,"id",t="edit_"+r[16].name),e.disabled=n=r[16].attribute_type==="upload",e.value=a=r[17].type==="json"||r[17].type==="jsonEscaped"&&!_l?JSON.stringify(r[17].value,void 0,2):r[17].value,_(e,"class","svelte-1udbufw")},m(i,u){A(i,e,u),s||(o=ml(Ct.call(null,e)),s=!0)},p(i,u){u&1&&l!==(l=i[16].name+"[value]")&&_(e,"name",l),u&1&&t!==(t="edit_"+i[16].name)&&_(e,"id",t),u&1&&n!==(n=i[16].attribute_type==="upload")&&(e.disabled=n),u&3&&a!==(a=i[17].type==="json"||i[17].type==="jsonEscaped"&&!_l?JSON.stringify(i[17].value,void 0,2):i[17].value)&&(e.value=a)},d(i){i&&h(e),s=!1,o()}}}function gr(r){let e,l,t,n,a,s,o,i,u,d;return{c(){e=g("select"),l=g("option"),t=g("option"),n=W("true"),s=g("option"),o=W("false"),this.h()},l(f){e=$(f,"SELECT",{name:!0,id:!0,class:!0});var m=I(e);l=$(m,"OPTION",{class:!0}),I(l).forEach(h),t=$(m,"OPTION",{});var b=I(t);n=Y(b,"true"),b.forEach(h),s=$(m,"OPTION",{});var C=I(s);o=Y(C,"false"),C.forEach(h),m.forEach(h),this.h()},h(){l.__value="",re(l,l.__value),_(l,"class","value-null"),t.__value="true",re(t,t.__value),t.selected=a=r[17].value==="true",s.__value="false",re(s,s.__value),s.selected=i=r[17].value==="false",_(e,"name",u=r[16].name+"[value]"),_(e,"id",d="edit_"+r[16].name),_(e,"class","svelte-1udbufw")},m(f,m){A(f,e,m),c(e,l),c(e,t),c(t,n),c(e,s),c(s,o)},p(f,m){m&3&&a!==(a=f[17].value==="true")&&(t.selected=a),m&3&&i!==(i=f[17].value==="false")&&(s.selected=i),m&1&&u!==(u=f[16].name+"[value]")&&_(e,"name",u),m&1&&d!==(d="edit_"+f[16].name)&&_(e,"id",d)},d(f){f&&h(e)}}}function fl(r){let e=r[5][r[16].name].message+"",l;return{c(){l=W(e)},l(t){l=Y(t,e)},m(t,n){A(t,l,n)},p(t,n){n&33&&e!==(e=t[5][t[16].name].message+"")&&_e(l,e)},d(t){t&&h(l)}}}function cl(r){let e,l,t,n=r[16].name+"",a,s,o,i,u,d,f,m,b,C,E,v,k;const p=[vr,mr],y=[];function T(w,O){return w[16].attribute_type==="string"?0:1}u=T(r),d=y[u]=p[u](r);let B=r[16].attribute_type==="upload"&&ul();function q(w,O){return w[16].attribute_type==="boolean"?gr:br}let S=q(r),V=S(r),N=r[5][r[16].name]&&fl(r);return{c(){e=g("fieldset"),l=g("dir"),t=g("label"),a=W(n),s=g("br"),o=L(),i=g("div"),d.c(),f=L(),B&&B.c(),b=L(),C=g("div"),V.c(),E=L(),v=g("div"),N&&N.c(),this.h()},l(w){e=$(w,"FIELDSET",{class:!0});var O=I(e);l=$(O,"DIR",{});var P=I(l);t=$(P,"LABEL",{for:!0,class:!0});var M=I(t);a=Y(M,n),s=$(M,"BR",{}),o=F(M),i=$(M,"DIV",{class:!0});var K=I(i);d.l(K),f=F(K),B&&B.l(K),K.forEach(h),M.forEach(h),P.forEach(h),b=F(O),C=$(O,"DIV",{});var G=I(C);V.l(G),E=F(G),v=$(G,"DIV",{role:!0,class:!0});var U=I(v);N&&N.l(U),U.forEach(h),G.forEach(h),O.forEach(h),this.h()},h(){_(i,"class","type svelte-1udbufw"),_(t,"for",m="edit_"+r[16].name),_(t,"class","svelte-1udbufw"),_(v,"role","alert"),_(v,"class","svelte-1udbufw"),_(e,"class","svelte-1udbufw")},m(w,O){A(w,e,O),c(e,l),c(l,t),c(t,a),c(t,s),c(t,o),c(t,i),y[u].m(i,null),c(i,f),B&&B.m(i,null),c(e,b),c(e,C),V.m(C,null),c(C,E),c(C,v),N&&N.m(v,null),k=!0},p(w,O){(!k||O&1)&&n!==(n=w[16].name+"")&&_e(a,n);let P=u;u=T(w),u===P?y[u].p(w,O):(ge(),R(y[P],1,1,()=>{y[P]=null}),$e(),d=y[u],d?d.p(w,O):(d=y[u]=p[u](w),d.c()),D(d,1),d.m(i,f)),w[16].attribute_type==="upload"?B||(B=ul(),B.c(),B.m(i,null)):B&&(B.d(1),B=null),(!k||O&1&&m!==(m="edit_"+w[16].name))&&_(t,"for",m),S===(S=q(w))&&V?V.p(w,O):(V.d(1),V=S(w),V&&(V.c(),V.m(C,E))),w[5][w[16].name]?N?N.p(w,O):(N=fl(w),N.c(),N.m(v,null)):N&&(N.d(1),N=null)},i(w){k||(D(d),k=!0)},o(w){R(d),k=!1},d(w){w&&h(e),y[u].d(),B&&B.d(),V.d(),N&&N.d()}}}function dl(r){let e,l=JSON.stringify(r[13])+"",t,n;return{c(){e=g("li"),t=W(l),n=L(),this.h()},l(a){e=$(a,"LI",{class:!0});var s=I(e);t=Y(s,l),n=F(s),s.forEach(h),this.h()},h(){_(e,"class","svelte-1udbufw")},m(a,s){A(a,e,s),c(e,t),c(e,n)},p(a,s){s&16&&l!==(l=JSON.stringify(a[13])+"")&&_e(t,l)},d(a){a&&h(e)}}}function $r(r){let e;return{c(){e=W("Create record")},l(l){e=Y(l,"Create record")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function wr(r){let e;return{c(){e=W("Edit record")},l(l){e=Y(l,"Edit record")},m(l,t){A(l,e,t)},d(l){l&&h(e)}}}function yr(r){let e,l,t,n,a,s,o,i,u,d,f,m,b,C="Cancel",E,v,k,p,y,T,B,q,S=r[1].id&&ol(r),V=Ee(r[0]),N=[];for(let U=0;UR(N[U],1,1,()=>{N[U]=null});let O=Ee(r[4]),P=[];for(let U=0;U{T&&(y||(y=Rt(e,r[7],{},!0)),y.run(1))}),T=!0}},o(U){N=N.filter(Boolean);for(let Z=0;Zl(6,t=v)),Pe(r,wt,v=>l(12,n=v));let{properties:a}=e,{editing:s}=e,o,i,u=[],d={};const f=function(v,{delay:k=0,duration:p=150}){return{delay:k,duration:p,css:y=>{const T=Fl(y);return`opacity: ${T}; transform: scale(${T});`}}};gl(()=>{setTimeout(()=>{o.showModal()},10)}),document.addEventListener("keydown",v=>{v.key==="Escape"&&(v.preventDefault(),Fe(H,t.record=null,t))},{once:!0});const m=async v=>{v.preventDefault();const k=new FormData(i);l(5,d={});for(const p of k.entries())if(p[0].endsWith("[type]")&&(p[1]==="json"||p[1]==="array")){const y=p[0].replace("[type]",""),T=k.get(y+"[value]");T!==""&&!Pl(T)&&l(5,d[y]={property:y,message:`Not a valid ${p[1]}`},d)}if(Object.keys(d).length)await $l(),document.querySelector('[role="alert"]:not(:empty)').scrollIntoView({behavior:"smooth",block:"center"});else if(t.record.id){const p=await Ne.edit({table:t.table.name,id:t.record.id,properties:k});p.errors?l(4,u=p.errors):(Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.highlight("record",p.record_update.id),H.notification.create("success",`Record ${p.record_update.id} updated`),Fe(H,t.record=null,t))}else{const p=await Ne.create({table:t.table.name,properties:k});p.errors?l(4,u=p.errors):(H.clearFilters(),Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}),H.highlight("record",p.record_create.id),H.notification.create("success",`Record ${p.record_create.id} created`),Fe(H,t.record=null,t))}},b=()=>Fe(H,t.record=null,t);function C(v){rt[v?"unshift":"push"](()=>{i=v,l(3,i)})}function E(v){rt[v?"unshift":"push"](()=>{o=v,l(2,o)})}return r.$$set=v=>{"properties"in v&&l(0,a=v.properties),"editing"in v&&l(1,s=v.editing)},[a,s,o,i,u,d,t,f,m,b,C,E]}class Er extends Ge{constructor(e){super(),Qe(this,e,kr,yr,Ke,{properties:0,editing:1})}}const{document:Et}=Cl;function Tr(r){let e;return{c(){e=W("Work in progress :)")},l(l){e=Y(l,"Work in progress :)")},m(l,t){A(l,e,t)},i:Ue,o:Ue,d(l){l&&h(e)}}}function Cr(r){let e,l;return e=new _r({}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function pl(r){let e,l,t,n,a,s,o;const i=[Sr,Nr],u=[];function d(f,m){return f[0].view.tableStyle==="collapsed"?0:1}return l=d(r),t=u[l]=i[l](r),{c(){e=g("button"),t.c(),this.h()},l(f){e=$(f,"BUTTON",{class:!0,title:!0});var m=I(e);t.l(m),m.forEach(h),this.h()},h(){_(e,"class","button"),_(e,"title",n=r[0].view.tableStyle==="expanded"?"Collapse values":"Expand values")},m(f,m){A(f,e,m),u[l].m(e,null),a=!0,s||(o=le(e,"click",_t(function(){El(r[0].view.tableStyle==="collapsed"?H.setView({tableStyle:"expanded"}):H.setView({tableStyle:"collapsed"}))&&(r[0].view.tableStyle==="collapsed"?H.setView({tableStyle:"expanded"}):H.setView({tableStyle:"collapsed"})).apply(this,arguments)})),s=!0)},p(f,m){r=f;let b=l;l=d(r),l!==b&&(ge(),R(u[b],1,1,()=>{u[b]=null}),$e(),t=u[l],t||(t=u[l]=i[l](r),t.c()),D(t,1),t.m(e,null)),(!a||m&1&&n!==(n=r[0].view.tableStyle==="expanded"?"Collapse values":"Expand values"))&&_(e,"title",n)},i(f){a||(D(t),a=!0)},o(f){R(t),a=!1},d(f){f&&h(e),u[l].d(),s=!1,o()}}}function Nr(r){let e,l="Collapse values",t,n,a;return n=new Se({props:{icon:"collapse"}}),{c(){e=g("span"),e.textContent=l,t=L(),se(n.$$.fragment),this.h()},l(s){e=$(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-jserey"&&(e.textContent=l),t=F(s),ie(n.$$.fragment,s),this.h()},h(){_(e,"class","label")},m(s,o){A(s,e,o),A(s,t,o),oe(n,s,o),a=!0},i(s){a||(D(n.$$.fragment,s),a=!0)},o(s){R(n.$$.fragment,s),a=!1},d(s){s&&(h(e),h(t)),ue(n,s)}}}function Sr(r){let e,l="Expand values",t,n,a;return n=new Se({props:{icon:"expand"}}),{c(){e=g("span"),e.textContent=l,t=L(),se(n.$$.fragment),this.h()},l(s){e=$(s,"SPAN",{class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-1tvmrgx"&&(e.textContent=l),t=F(s),ie(n.$$.fragment,s),this.h()},h(){_(e,"class","label")},m(s,o){A(s,e,o),A(s,t,o),oe(n,s,o),a=!0},i(s){a||(D(n.$$.fragment,s),a=!0)},o(s){R(n.$$.fragment,s),a=!1},d(s){s&&(h(e),h(t)),ue(n,s)}}}function hl(r){let e,l;return e=new Er({props:{properties:r[0].table.properties,editing:r[0].record}}),{c(){se(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,n){oe(e,t,n),l=!0},p(t,n){const a={};n&1&&(a.properties=t[0].table.properties),n&1&&(a.editing=t[0].record),e.$set(a)},i(t){l||(D(e.$$.fragment,t),l=!0)},o(t){R(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function Or(r){var Dt,Lt,Ft,Pt;let e,l,t,n,a,s,o,i,u,d,f="Refresh current view",m,b,C,E,v,k,p,y,T,B="Page:",q,S,V,N,w=(((Dt=r[0].records)==null?void 0:Dt.total_pages)||1)+"",O,P,M,K,G,U,Z,z="Create new record",ae,Ce,me,ee,Oe,fe,we,je,it,Ve,ce,De=r[0].filters.deleted==="false"?"ing":"",Q,ot,pe,nt,ye,Be,at,X,J,Te=r[0].filters.deleted==="true"?"ing":"",Ie,Re,Le,de,te,xe,qe,He,he,yt,kt,Nt;Et.title=e=(((Lt=r[0].table)==null?void 0:Lt.name)||"Loading…")+((Ft=r[0].online)!=null&&Ft.MPKIT_URL?": "+r[0].online.MPKIT_URL.replace("https://",""):""),a=new Hl({}),o=new Zl({}),b=new Se({props:{icon:"refresh"}});const St=[Cr,Tr],et=[];function Ot(j,x){return j[0].view.database!=="tiles"?0:1}E=Ot(r),v=et[E]=St[E](r);function bl(j){r[5](j)}let It={name:"page",min:1,max:(Pt=r[0].records)==null?void 0:Pt.total_pages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};r[0].filters.page!==void 0&&(It.value=r[0].filters.page),S=new Al({props:It}),rt.push(()=>Tl(S,"value",bl)),S.$on("input",r[6]),G=new Se({props:{icon:"plus"}});let ve=r[0].view.database!=="tiles"&&pl(r);je=new Se({props:{icon:"leaf"}}),Be=new Se({props:{icon:"recycle"}});let be=r[0].record!==null&&hl(r);return yt=wl(r[9][0]),{c(){l=L(),t=g("section"),n=g("nav"),se(a.$$.fragment),s=L(),se(o.$$.fragment),i=L(),u=g("button"),d=g("span"),d.textContent=f,m=L(),se(b.$$.fragment),C=L(),v.c(),k=L(),p=g("nav"),y=g("div"),T=g("label"),T.textContent=B,q=L(),se(S.$$.fragment),N=W(`\r - of `),O=W(w),P=L(),M=g("div"),K=g("button"),se(G.$$.fragment),U=L(),Z=g("span"),Z.textContent=z,ae=L(),ve&&ve.c(),Ce=L(),me=g("div"),ee=g("input"),fe=L(),we=g("label"),se(je.$$.fragment),it=L(),Ve=g("span"),ce=W("Show"),Q=W(De),ot=W(" current database state"),nt=L(),ye=g("label"),se(Be.$$.fragment),at=L(),X=g("span"),J=W("Show"),Ie=W(Te),Re=W(" deleted records"),de=L(),te=g("input"),qe=L(),be&&be.c(),He=Ae(),this.h()},l(j){yl("svelte-1ke6alb",Et.head).forEach(h),l=F(j),t=$(j,"SECTION",{class:!0});var ze=I(t);n=$(ze,"NAV",{class:!0});var Me=I(n);ie(a.$$.fragment,Me),s=F(Me),ie(o.$$.fragment,Me),i=F(Me),u=$(Me,"BUTTON",{class:!0,title:!0});var tt=I(u);d=$(tt,"SPAN",{class:!0,"data-svelte-h":!0}),ne(d)!=="svelte-iqo23s"&&(d.textContent=f),m=F(tt),ie(b.$$.fragment,tt),tt.forEach(h),Me.forEach(h),C=F(ze),v.l(ze),k=F(ze),p=$(ze,"NAV",{class:!0});var lt=I(p);y=$(lt,"DIV",{});var Je=I(y);T=$(Je,"LABEL",{for:!0,"data-svelte-h":!0}),ne(T)!=="svelte-1r8oyu6"&&(T.textContent=B),q=F(Je),ie(S.$$.fragment,Je),N=Y(Je,`\r - of `),O=Y(Je,w),Je.forEach(h),P=F(lt),M=$(lt,"DIV",{id:!0,class:!0});var We=I(M);K=$(We,"BUTTON",{class:!0,title:!0});var pt=I(K);ie(G.$$.fragment,pt),U=F(pt),Z=$(pt,"SPAN",{class:!0,"data-svelte-h":!0}),ne(Z)!=="svelte-19x6y3e"&&(Z.textContent=z),pt.forEach(h),ae=F(We),ve&&ve.l(We),Ce=F(We),me=$(We,"DIV",{class:!0});var Ye=I(me);ee=$(Ye,"INPUT",{type:!0,name:!0,id:!0,class:!0}),fe=F(Ye),we=$(Ye,"LABEL",{for:!0,class:!0,title:!0});var ht=I(we);ie(je.$$.fragment,ht),it=F(ht),Ve=$(ht,"SPAN",{class:!0});var mt=I(Ve);ce=Y(mt,"Show"),Q=Y(mt,De),ot=Y(mt," current database state"),mt.forEach(h),ht.forEach(h),nt=F(Ye),ye=$(Ye,"LABEL",{for:!0,class:!0,title:!0});var vt=I(ye);ie(Be.$$.fragment,vt),at=F(vt),X=$(vt,"SPAN",{class:!0});var bt=I(X);J=Y(bt,"Show"),Ie=Y(bt,Te),Re=Y(bt," deleted records"),bt.forEach(h),vt.forEach(h),de=F(Ye),te=$(Ye,"INPUT",{type:!0,name:!0,id:!0,class:!0}),Ye.forEach(h),We.forEach(h),lt.forEach(h),ze.forEach(h),qe=F(j),be&&be.l(j),He=Ae(),this.h()},h(){_(d,"class","label"),_(u,"class","button svelte-afbo94"),_(u,"title","Refresh current view (R)"),ke(u,"refreshing",r[2]),_(n,"class","svelte-afbo94"),_(T,"for","page"),_(Z,"class","label"),_(K,"class","button"),_(K,"title","Create new record"),_(ee,"type","radio"),_(ee,"name","deleted"),_(ee,"id","deletedTrue"),ee.__value="false",re(ee,ee.__value),ee.disabled=Oe=r[0].filters.deleted==="false",_(ee,"class","svelte-afbo94"),_(Ve,"class","label"),_(we,"for","deletedTrue"),_(we,"class","button"),_(we,"title",pe="Show"+(r[0].filters.deleted==="false"?"ing":"")+" current database state"),ke(we,"active",r[0].filters.deleted==="false"),ke(we,"disabled",r[0].filters.deleted==="false"),_(X,"class","label"),_(ye,"for","deletedFalse"),_(ye,"class","button"),_(ye,"title",Le="Show"+(r[0].filters.deleted==="true"?"ing":"")+" deleted records"),ke(ye,"active",r[0].filters.deleted==="true"),ke(ye,"disabled",r[0].filters.deleted==="true"),_(te,"type","radio"),_(te,"name","deleted"),_(te,"id","deletedFalse"),te.__value="true",re(te,te.__value),te.disabled=xe=r[0].filters.deleted==="true",_(te,"class","svelte-afbo94"),_(me,"class","combo svelte-afbo94"),_(M,"id","viewOptions"),_(M,"class","svelte-afbo94"),_(p,"class","pagination svelte-afbo94"),_(t,"class","svelte-afbo94"),yt.p(ee,te)},m(j,x){A(j,l,x),A(j,t,x),c(t,n),oe(a,n,null),c(n,s),oe(o,n,null),c(n,i),c(n,u),c(u,d),c(u,m),oe(b,u,null),c(t,C),et[E].m(t,null),c(t,k),c(t,p),c(p,y),c(y,T),c(y,q),oe(S,y,null),c(y,N),c(y,O),c(p,P),c(p,M),c(M,K),oe(G,K,null),c(K,U),c(K,Z),c(M,ae),ve&&ve.m(M,null),c(M,Ce),c(M,me),c(me,ee),ee.checked=ee.__value===r[0].filters.deleted,c(me,fe),c(me,we),oe(je,we,null),c(we,it),c(we,Ve),c(Ve,ce),c(Ve,Q),c(Ve,ot),c(me,nt),c(me,ye),oe(Be,ye,null),c(ye,at),c(ye,X),c(X,J),c(X,Ie),c(X,Re),c(me,de),c(me,te),te.checked=te.__value===r[0].filters.deleted,A(j,qe,x),be&&be.m(j,x),A(j,He,x),he=!0,kt||(Nt=[le(window,"keypress",r[4]),le(u,"click",r[3]),le(K,"click",_t(r[7])),le(ee,"change",r[8]),le(ee,"change",r[10]),le(te,"change",r[11]),le(te,"change",r[12])],kt=!0)},p(j,[x]){var tt,lt,Je,We;(!he||x&1)&&e!==(e=(((tt=j[0].table)==null?void 0:tt.name)||"Loading…")+((lt=j[0].online)!=null&<.MPKIT_URL?": "+j[0].online.MPKIT_URL.replace("https://",""):""))&&(Et.title=e),(!he||x&4)&&ke(u,"refreshing",j[2]);let ze=E;E=Ot(j),E!==ze&&(ge(),R(et[ze],1,1,()=>{et[ze]=null}),$e(),v=et[E],v||(v=et[E]=St[E](j),v.c()),D(v,1),v.m(t,k));const Me={};x&1&&(Me.max=(Je=j[0].records)==null?void 0:Je.total_pages),!V&&x&1&&(V=!0,Me.value=j[0].filters.page,kl(()=>V=!1)),S.$set(Me),(!he||x&1)&&w!==(w=(((We=j[0].records)==null?void 0:We.total_pages)||1)+"")&&_e(O,w),j[0].view.database!=="tiles"?ve?(ve.p(j,x),x&1&&D(ve,1)):(ve=pl(j),ve.c(),D(ve,1),ve.m(M,Ce)):ve&&(ge(),R(ve,1,1,()=>{ve=null}),$e()),(!he||x&1&&Oe!==(Oe=j[0].filters.deleted==="false"))&&(ee.disabled=Oe),x&1&&(ee.checked=ee.__value===j[0].filters.deleted),(!he||x&1)&&De!==(De=j[0].filters.deleted==="false"?"ing":"")&&_e(Q,De),(!he||x&1&&pe!==(pe="Show"+(j[0].filters.deleted==="false"?"ing":"")+" current database state"))&&_(we,"title",pe),(!he||x&1)&&ke(we,"active",j[0].filters.deleted==="false"),(!he||x&1)&&ke(we,"disabled",j[0].filters.deleted==="false"),(!he||x&1)&&Te!==(Te=j[0].filters.deleted==="true"?"ing":"")&&_e(Ie,Te),(!he||x&1&&Le!==(Le="Show"+(j[0].filters.deleted==="true"?"ing":"")+" deleted records"))&&_(ye,"title",Le),(!he||x&1)&&ke(ye,"active",j[0].filters.deleted==="true"),(!he||x&1)&&ke(ye,"disabled",j[0].filters.deleted==="true"),(!he||x&1&&xe!==(xe=j[0].filters.deleted==="true"))&&(te.disabled=xe),x&1&&(te.checked=te.__value===j[0].filters.deleted),j[0].record!==null?be?(be.p(j,x),x&1&&D(be,1)):(be=hl(j),be.c(),D(be,1),be.m(He.parentNode,He)):be&&(ge(),R(be,1,1,()=>{be=null}),$e())},i(j){he||(D(a.$$.fragment,j),D(o.$$.fragment,j),D(b.$$.fragment,j),D(v),D(S.$$.fragment,j),D(G.$$.fragment,j),D(ve),D(je.$$.fragment,j),D(Be.$$.fragment,j),D(be),he=!0)},o(j){R(a.$$.fragment,j),R(o.$$.fragment,j),R(b.$$.fragment,j),R(v),R(S.$$.fragment,j),R(G.$$.fragment,j),R(ve),R(je.$$.fragment,j),R(Be.$$.fragment,j),R(be),he=!1},d(j){j&&(h(l),h(t),h(qe),h(He)),ue(a),ue(o),ue(b),et[E].d(),ue(S),ue(G),ve&&ve.d(),ue(je),ue(Be),be&&be.d(j),yt.r(),kt=!1,st(Nt)}}}function Ir(r,e,l){let t,n;Pe(r,H,v=>l(0,t=v)),Pe(r,wt,v=>l(1,n=v));let a=!1;const s=()=>{l(2,a=!0),Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted}).then(()=>l(2,a=!1))},o=v=>{document.activeElement===document.body&&!v.target.matches("input, textarea")&&v.key==="r"&&s()},i=[[]];function u(v){r.$$.not_equal(t.filters.page,v)&&(t.filters.page=v,H.set(t))}const d=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})},f=()=>Fe(H,t.record={},t);function m(){t.filters.deleted=this.__value,H.set(t)}const b=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};function C(){t.filters.deleted=this.__value,H.set(t)}const E=()=>{Ne.get({table:n.params.id,filters:t.filters,sort:t.sort,deleted:t.filters.deleted})};return r.$$.update=()=>{r.$$.dirty&3&&Fe(H,t.table=t.tables.filter(v=>v.id===n.params.id)[0],t),r.$$.dirty&2&&n.params.id&&Ne.get({table:n.params.id})&&H.clearFilters()},[t,n,a,s,o,u,d,f,m,i,b,C,E]}class Wr extends Ge{constructor(e){super(),Qe(this,e,Ir,Or,Ke,{})}}export{Wr as component}; diff --git a/gui/next/build/_app/immutable/nodes/15.BII74jAo.js b/gui/next/build/_app/immutable/nodes/15.BII74jAo.js deleted file mode 100644 index 036029165..000000000 --- a/gui/next/build/_app/immutable/nodes/15.BII74jAo.js +++ /dev/null @@ -1 +0,0 @@ -import{s as Ze,a as L,e as p,p as xe,f as _,g as C,c as g,b as $,A as ne,y as d,i as V,h as u,B as Ne,C as le,r as Ke,k as et,U as tt,V as lt,W as st,n as ve,F as Ge,t as G,d as W,G as ae,J as nt,j as X,M as at,E as ge,H as ot,z as rt,v as Ee}from"../chunks/scheduler.CKQ5dLhN.js";import{S as it,i as ft,c as ie,d as fe,m as ue,t as E,a as B,e as oe,f as ce,g as re,j as ut}from"../chunks/index.CGVWAVV-.js";import{g as ct}from"../chunks/globals.D0QH3NT1.js";import{e as Le}from"../chunks/each.BWzj3zy9.js";import{f as dt}from"../chunks/index.WWWgbq8H.js";import{s as pe}from"../chunks/state.nqMW8J5l.js";import{t as We}from"../chunks/tryParseJSON.x4PJc0Qf.js";import{J as Qe}from"../chunks/JSONTree.B6rnjEUC.js";import{I as ke}from"../chunks/Icon.CkKwi_WD.js";import{A as _t}from"../chunks/Aside.CzwHeuWZ.js";const ht={get:async n=>{const t=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}/api/logs`:"http://localhost:3333/api/logs",a=n.last??null;return fetch(`${t}?lastId=`+a).then(e=>e.ok?e.json():Promise.reject(e)).then(e=>(e.logs.forEach(l=>{l.downloaded_at=Date.now()}),e)).catch(e=>({error:e}))}},{document:Ce}=ct;function Pe(n,t,a){const e=n.slice();e[23]=t[a],e[25]=t,e[26]=a;const l=e[23].message.length<262144&&We(e[23].message);return e[24]=l,e}function Ue(n,t,a){const e=n.slice();e[23]=t[a],e[27]=t,e[28]=a;const l=e[23].message.length<262144&&We(e[23].message);return e[24]=l,e}function Oe(n){let t,a,e="Clear filter",l,o,s,r,i;return o=new ke({props:{icon:"x",size:"12"}}),{c(){t=p("button"),a=p("span"),a.textContent=e,l=L(),ie(o.$$.fragment),this.h()},l(f){t=g(f,"BUTTON",{class:!0});var h=$(t);a=g(h,"SPAN",{class:!0,"data-svelte-h":!0}),ne(a)!=="svelte-1bu6mgu"&&(a.textContent=e),l=C(h),fe(o.$$.fragment,h),h.forEach(_),this.h()},h(){d(a,"class","label svelte-8fkf35"),d(t,"class","clearFilter svelte-8fkf35")},m(f,h){V(f,t,h),u(t,a),u(t,l),ue(o,t,null),s=!0,r||(i=le(t,"click",n[9]),r=!0)},p:ve,i(f){s||(E(o.$$.fragment,f),s=!0)},o(f){B(o.$$.fragment,f),s=!1},d(f){f&&_(t),ce(o),r=!1,i()}}}function Be(n){let t,a,e=Le(n[4].logs.logs),l=[];for(let s=0;sB(l[s],1,1,()=>{l[s]=null});return{c(){t=p("table");for(let s=0;see&&Ve(n);return{c(){a=G(t),e=L(),o&&o.c(),l=Ee()},l(s){a=W(s,t),e=C(s),o&&o.l(s),l=Ee()},m(s,r){V(s,a,r),V(s,e,r),o&&o.m(s,r),V(s,l,r)},p(s,r){r&16&&t!==(t=s[23].message.substr(0,ee)+"")&&X(a,t),s[23].message.length>ee?o?o.p(s,r):(o=Ve(s),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},d(s){s&&(_(a),_(e),_(l)),o&&o.d(s)}}}function vt(n){let t=n[23].message+"",a;return{c(){a=G(t)},l(e){a=W(e,t)},m(e,l){V(e,a,l)},p(e,l){l&16&&t!==(t=e[23].message+"")&&X(a,t)},d(e){e&&_(a)}}}function Ve(n){let t,a,e=n[23].message.length-ee+"",l,o,s,r;function i(){return n[11](n[23],n[27],n[28])}return{c(){t=p("div"),a=p("button"),l=G(e),o=G(" more characters"),this.h()},l(f){t=g(f,"DIV",{class:!0});var h=$(t);a=g(h,"BUTTON",{type:!0,class:!0});var v=$(a);l=W(v,e),o=W(v," more characters"),v.forEach(_),h.forEach(_),this.h()},h(){d(a,"type","button"),d(a,"class","svelte-8fkf35"),d(t,"class","longStringInfo svelte-8fkf35")},m(f,h){V(f,t,h),u(t,a),u(a,l),u(a,o),s||(r=le(a,"click",i),s=!0)},p(f,h){n=f,h&16&&e!==(e=n[23].message.length-ee+"")&&X(l,e)},d(f){f&&_(t),s=!1,r()}}}function Ae(n){let t,a,e,l=n[23].data.url+"",o,s,r=n[23].data.user&&Me(n);return{c(){t=p("ul"),a=p("li"),e=G("Page: "),o=G(l),s=L(),r&&r.c(),this.h()},l(i){t=g(i,"UL",{class:!0});var f=$(t);a=g(f,"LI",{});var h=$(a);e=W(h,"Page: "),o=W(h,l),h.forEach(_),s=C(f),r&&r.l(f),f.forEach(_),this.h()},h(){d(t,"class","info svelte-8fkf35")},m(i,f){V(i,t,f),u(t,a),u(a,e),u(a,o),u(t,s),r&&r.m(t,null)},p(i,f){f&16&&l!==(l=i[23].data.url+"")&&X(o,l),i[23].data.user?r?r.p(i,f):(r=Me(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&_(t),r&&r.d()}}}function Me(n){let t,a,e,l=n[23].data.user.id+"",o,s;return{c(){t=p("li"),a=G("User ID: "),e=p("a"),o=G(l),this.h()},l(r){t=g(r,"LI",{});var i=$(t);a=W(i,"User ID: "),e=g(i,"A",{href:!0,class:!0});var f=$(e);o=W(f,l),f.forEach(_),i.forEach(_),this.h()},h(){d(e,"href",s="/users/"+n[23].data.user.id),d(e,"class","svelte-8fkf35")},m(r,i){V(r,t,i),u(t,a),u(t,e),u(e,o)},p(r,i){i&16&&l!==(l=r[23].data.user.id+"")&&X(o,l),i&16&&s!==(s="/users/"+r[23].data.user.id)&&d(e,"href",s)},d(r){r&&_(t)}}}function Fe(n){var Se;let t,a,e,l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"",o,s,r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"",i,f,h,v,M=n[23].error_type+"",z,H,A,F,T,j,q,D,R,y,K,te="Copy message",Y,c,I,m,w,P="Pin this log",b,S,k,U,N,Z,de;const se=[pt,mt],x=[];function _e(J,O){return J[24]?0:1}F=_e(n),T=x[F]=se[F](n);let Q=((Se=n[23].data)==null?void 0:Se.url)&&Ae(n);c=new ke({props:{icon:"copy"}});function Xe(...J){return n[12](n[23],...J)}S=new ke({props:{icon:"pin"}});function Ye(){return n[13](n[23])}function Ie(...J){return n[14](n[23],...J)}return{c(){t=p("tr"),a=p("td"),e=p("time"),o=G(l),s=L(),i=G(r),h=L(),v=p("td"),z=G(M),H=L(),A=p("td"),T.c(),j=L(),Q&&Q.c(),q=L(),D=p("td"),R=p("div"),y=p("button"),K=p("span"),K.textContent=te,Y=L(),ie(c.$$.fragment),I=L(),m=p("button"),w=p("span"),w.textContent=P,b=L(),ie(S.$$.fragment),k=L(),this.h()},l(J){t=g(J,"TR",{class:!0});var O=$(t);a=g(O,"TD",{class:!0});var me=$(a);e=g(me,"TIME",{datetime:!0,class:!0});var he=$(e);o=W(he,l),s=C(he),i=W(he,r),he.forEach(_),me.forEach(_),h=C(O),v=g(O,"TD",{class:!0});var De=$(v);z=W(De,M),De.forEach(_),H=C(O),A=g(O,"TD",{class:!0});var be=$(A);T.l(be),j=C(be),Q&&Q.l(be),be.forEach(_),q=C(O),D=g(O,"TD",{class:!0});var ye=$(D);R=g(ye,"DIV",{class:!0});var $e=$(R);y=g($e,"BUTTON",{type:!0,class:!0,title:!0});var we=$(y);K=g(we,"SPAN",{class:!0,"data-svelte-h":!0}),ne(K)!=="svelte-1qjln59"&&(K.textContent=te),Y=C(we),fe(c.$$.fragment,we),we.forEach(_),I=C($e),m=g($e,"BUTTON",{type:!0,class:!0,title:!0});var Te=$(m);w=g(Te,"SPAN",{class:!0,"data-svelte-h":!0}),ne(w)!=="svelte-yzd8i4"&&(w.textContent=P),b=C(Te),fe(S.$$.fragment,Te),Te.forEach(_),$e.forEach(_),ye.forEach(_),k=C(O),O.forEach(_),this.h()},h(){d(e,"datetime",f=n[23].created_at),d(e,"class","svelte-8fkf35"),d(a,"class","date svelte-8fkf35"),d(v,"class","logType svelte-8fkf35"),d(A,"class","message svelte-8fkf35"),d(K,"class","label"),d(y,"type","button"),d(y,"class","button svelte-8fkf35"),d(y,"title","Copy message"),d(w,"class","label"),d(m,"type","button"),d(m,"class","button svelte-8fkf35"),d(m,"title","Pin this log"),ae(m,"active",n[2].find(Ie)),d(R,"class","svelte-8fkf35"),d(D,"class","actions svelte-8fkf35"),d(t,"class","svelte-8fkf35"),ae(t,"hidden",n[1]&&n[5](n[23])||n[23].hidden),ae(t,"error",n[23].error_type.match(/error/i)),ae(t,"fresh",n[23].downloaded_at>n[4].logs.downloaded_at[0])},m(J,O){V(J,t,O),u(t,a),u(a,e),u(e,o),u(e,s),u(e,i),u(t,h),u(t,v),u(v,z),u(t,H),u(t,A),x[F].m(A,null),u(A,j),Q&&Q.m(A,null),u(t,q),u(t,D),u(D,R),u(R,y),u(y,K),u(y,Y),ue(c,y,null),u(R,I),u(R,m),u(m,w),u(m,b),ue(S,m,null),u(t,k),N=!0,Z||(de=[le(y,"click",Xe),le(m,"click",nt(Ye))],Z=!0)},p(J,O){var he;n=J,(!N||O&16)&&l!==(l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"")&&X(o,l),(!N||O&16)&&r!==(r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"")&&X(i,r),(!N||O&16&&f!==(f=n[23].created_at))&&d(e,"datetime",f),(!N||O&16)&&M!==(M=n[23].error_type+"")&&X(z,M);let me=F;F=_e(n),F===me?x[F].p(n,O):(re(),B(x[me],1,1,()=>{x[me]=null}),oe(),T=x[F],T?T.p(n,O):(T=x[F]=se[F](n),T.c()),E(T,1),T.m(A,j)),(he=n[23].data)!=null&&he.url?Q?Q.p(n,O):(Q=Ae(n),Q.c(),Q.m(A,null)):Q&&(Q.d(1),Q=null),(!N||O&20)&&ae(m,"active",n[2].find(Ie)),(!N||O&50)&&ae(t,"hidden",n[1]&&n[5](n[23])||n[23].hidden),(!N||O&16)&&ae(t,"error",n[23].error_type.match(/error/i)),(!N||O&16)&&ae(t,"fresh",n[23].downloaded_at>n[4].logs.downloaded_at[0])},i(J){N||(E(T),E(c.$$.fragment,J),E(S.$$.fragment,J),J&&(U||at(()=>{U=ut(t,dt,{duration:200}),U.start()})),N=!0)},o(J){B(T),B(c.$$.fragment,J),B(S.$$.fragment,J),N=!1},d(J){J&&_(t),x[F].d(),Q&&Q.d(),ce(c),ce(S),Z=!1,Ke(de)}}}function je(n){let t,a="No newer logs to show
Checking every 3 seconds";return{c(){t=p("footer"),t.innerHTML=a,this.h()},l(e){t=g(e,"FOOTER",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-akhvzo"&&(t.innerHTML=a),this.h()},h(){d(t,"class","svelte-8fkf35")},m(e,l){V(e,t,l)},d(e){e&&_(t)}}}function Re(n){let t,a;return t=new _t({props:{$$slots:{default:[Tt]},$$scope:{ctx:n}}}),{c(){ie(t.$$.fragment)},l(e){fe(t.$$.fragment,e)},m(e,l){ue(t,e,l),a=!0},p(e,l){const o={};l&536870916&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){B(t.$$.fragment,e),a=!1},d(e){ce(t,e)}}}function qe(n){let t,a,e=Le(n[2]),l=[];for(let s=0;sB(l[s],1,1,()=>{l[s]=null});return{c(){t=p("ul");for(let s=0;see&&Je(n);return{c(){a=G(t),e=L(),o&&o.c(),l=Ee()},l(s){a=W(s,t),e=C(s),o&&o.l(s),l=Ee()},m(s,r){V(s,a,r),V(s,e,r),o&&o.m(s,r),V(s,l,r)},p(s,r){r&4&&t!==(t=s[23].message.substr(0,ee)+"")&&X(a,t),s[23].message.length>ee?o?o.p(s,r):(o=Je(s),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},d(s){s&&(_(a),_(e),_(l)),o&&o.d(s)}}}function wt(n){let t=n[23].message+"",a;return{c(){a=G(t)},l(e){a=W(e,t)},m(e,l){V(e,a,l)},p(e,l){l&4&&t!==(t=e[23].message+"")&&X(a,t)},d(e){e&&_(a)}}}function Je(n){let t,a=n[23].message.length-ee+"",e,l,o,s;function r(){return n[17](n[23],n[25],n[26])}return{c(){t=p("button"),e=G(a),l=G(" more characters"),this.h()},l(i){t=g(i,"BUTTON",{type:!0,class:!0});var f=$(t);e=W(f,a),l=W(f," more characters"),f.forEach(_),this.h()},h(){d(t,"type","button"),d(t,"class","svelte-8fkf35")},m(i,f){V(i,t,f),u(t,e),u(t,l),o||(s=le(t,"click",r),o=!0)},p(i,f){n=i,f&4&&a!==(a=n[23].message.length-ee+"")&&X(e,a)},d(i){i&&_(t),o=!1,s()}}}function He(n){var P;let t,a,e,l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"",o,s,r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"",i,f,h,v,M,z="Remove log from pinned panel",H,A,F,T,j,q,D,R,y,K,te;A=new ke({props:{icon:"trash",size:"18"}});function Y(){return n[16](n[23])}let c=((P=n[23].data)==null?void 0:P.url)&&ze(n);const I=[bt,kt],m=[];function w(b,S){return b[24]?0:1}return q=w(n),D=m[q]=I[q](n),{c(){t=p("li"),a=p("div"),e=p("time"),o=G(l),s=L(),i=G(r),h=L(),v=p("button"),M=p("span"),M.textContent=z,H=L(),ie(A.$$.fragment),F=L(),c&&c.c(),T=L(),j=p("div"),D.c(),R=L(),this.h()},l(b){t=g(b,"LI",{class:!0});var S=$(t);a=g(S,"DIV",{class:!0});var k=$(a);e=g(k,"TIME",{class:!0,datetime:!0});var U=$(e);o=W(U,l),s=C(U),i=W(U,r),U.forEach(_),h=C(k),v=g(k,"BUTTON",{type:!0,title:!0,class:!0});var N=$(v);M=g(N,"SPAN",{class:!0,"data-svelte-h":!0}),ne(M)!=="svelte-flzfhp"&&(M.textContent=z),H=C(N),fe(A.$$.fragment,N),N.forEach(_),k.forEach(_),F=C(S),c&&c.l(S),T=C(S),j=g(S,"DIV",{class:!0});var Z=$(j);D.l(Z),Z.forEach(_),R=C(S),S.forEach(_),this.h()},h(){d(e,"class","date svelte-8fkf35"),d(e,"datetime",f=n[23].created_at),d(M,"class","label"),d(v,"type","button"),d(v,"title","Remove log from pinned panel"),d(v,"class","svelte-8fkf35"),d(a,"class","info svelte-8fkf35"),d(j,"class","message svelte-8fkf35"),d(t,"class","svelte-8fkf35")},m(b,S){V(b,t,S),u(t,a),u(a,e),u(e,o),u(e,s),u(e,i),u(a,h),u(a,v),u(v,M),u(v,H),ue(A,v,null),u(t,F),c&&c.m(t,null),u(t,T),u(t,j),m[q].m(j,null),u(t,R),y=!0,K||(te=le(v,"click",Y),K=!0)},p(b,S){var U;n=b,(!y||S&4)&&l!==(l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"")&&X(o,l),(!y||S&4)&&r!==(r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"")&&X(i,r),(!y||S&4&&f!==(f=n[23].created_at))&&d(e,"datetime",f),(U=n[23].data)!=null&&U.url?c?c.p(n,S):(c=ze(n),c.c(),c.m(t,T)):c&&(c.d(1),c=null);let k=q;q=w(n),q===k?m[q].p(n,S):(re(),B(m[k],1,1,()=>{m[k]=null}),oe(),D=m[q],D?D.p(n,S):(D=m[q]=I[q](n),D.c()),E(D,1),D.m(j,null))},i(b){y||(E(A.$$.fragment,b),E(D),y=!0)},o(b){B(A.$$.fragment,b),B(D),y=!1},d(b){b&&_(t),ce(A),c&&c.d(),m[q].d(),K=!1,te()}}}function Tt(n){let t,a,e,l="Clear pinned logs",o,s,r,i,f=n[2]&&qe(n);return{c(){t=p("div"),a=p("nav"),e=p("button"),e.textContent=l,o=L(),f&&f.c(),this.h()},l(h){t=g(h,"DIV",{class:!0});var v=$(t);a=g(v,"NAV",{class:!0});var M=$(a);e=g(M,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-eeid91"&&(e.textContent=l),M.forEach(_),o=C(v),f&&f.l(v),v.forEach(_),this.h()},h(){d(e,"type","button"),d(e,"class","button svelte-8fkf35"),d(a,"class","asideNav svelte-8fkf35"),d(t,"class","pins svelte-8fkf35")},m(h,v){V(h,t,v),u(t,a),u(a,e),u(t,o),f&&f.m(t,null),s=!0,r||(i=le(e,"click",n[15]),r=!0)},p(h,v){h[2]?f?(f.p(h,v),v&4&&E(f,1)):(f=qe(h),f.c(),E(f,1),f.m(t,null)):f&&(re(),B(f,1,1,()=>{f=null}),oe())},i(h){s||(E(f),s=!0)},o(h){B(f),s=!1},d(h){h&&_(t),f&&f.d(),r=!1,i()}}}function Et(n){var S;let t,a,e,l,o,s,r,i="Filter:",f,h,v,M,z,H,A="Clear screen",F,T,j,q="Toggle pinned logs panel",D,R,y,K,te,Y,c,I;Ce.title=t="Logs"+((S=n[4].online)!=null&&S.MPKIT_URL?": "+n[4].online.MPKIT_URL.replace("https://",""):"");let m=n[1]&&Oe(n);R=new ke({props:{icon:"pin"}});let w=n[4].logs.logs&&Be(n),P=!n[1]&&je(),b=n[3]&&Re(n);return{c(){a=L(),e=p("div"),l=p("section"),o=p("nav"),s=p("form"),r=p("label"),r.textContent=i,f=L(),h=p("input"),v=L(),m&&m.c(),M=L(),z=p("div"),H=p("button"),H.textContent=A,F=L(),T=p("button"),j=p("span"),j.textContent=q,D=L(),ie(R.$$.fragment),y=L(),w&&w.c(),K=L(),P&&P.c(),te=L(),b&&b.c(),this.h()},l(k){xe("svelte-dfdkqr",Ce.head).forEach(_),a=C(k),e=g(k,"DIV",{class:!0});var N=$(e);l=g(N,"SECTION",{class:!0});var Z=$(l);o=g(Z,"NAV",{class:!0});var de=$(o);s=g(de,"FORM",{});var se=$(s);r=g(se,"LABEL",{for:!0,"data-svelte-h":!0}),ne(r)!=="svelte-kf6j7o"&&(r.textContent=i),f=C(se),h=g(se,"INPUT",{type:!0,id:!0,class:!0}),v=C(se),m&&m.l(se),se.forEach(_),M=C(de),z=g(de,"DIV",{class:!0});var x=$(z);H=g(x,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),ne(H)!=="svelte-1hlqgjb"&&(H.textContent=A),F=C(x),T=g(x,"BUTTON",{type:!0,title:!0,class:!0});var _e=$(T);j=g(_e,"SPAN",{class:!0,"data-svelte-h":!0}),ne(j)!=="svelte-1o6petk"&&(j.textContent=q),D=C(_e),fe(R.$$.fragment,_e),_e.forEach(_),x.forEach(_),de.forEach(_),y=C(Z),w&&w.l(Z),K=C(Z),P&&P.l(Z),Z.forEach(_),te=C(N),b&&b.l(N),N.forEach(_),this.h()},h(){d(r,"for","filter"),d(h,"type","text"),d(h,"id","filter"),d(h,"class","svelte-8fkf35"),d(H,"type","button"),d(H,"class","button"),d(j,"class","label"),d(T,"type","button"),d(T,"title","Toggle pinned logs panel"),d(T,"class","button"),d(z,"class","svelte-8fkf35"),d(o,"class","svelte-8fkf35"),d(l,"class","logs svelte-8fkf35"),d(e,"class","container svelte-8fkf35")},m(k,U){V(k,a,U),V(k,e,U),u(e,l),u(l,o),u(o,s),u(s,r),u(s,f),u(s,h),Ne(h,n[1]),u(s,v),m&&m.m(s,null),u(o,M),u(o,z),u(z,H),u(z,F),u(z,T),u(T,j),u(T,D),ue(R,T,null),u(l,y),w&&w.m(l,null),u(l,K),P&&P.m(l,null),u(e,te),b&&b.m(e,null),n[18](e),Y=!0,c||(I=[le(h,"input",n[8]),le(H,"click",n[10]),le(T,"click",n[7])],c=!0)},p(k,[U]){var N;(!Y||U&16)&&t!==(t="Logs"+((N=k[4].online)!=null&&N.MPKIT_URL?": "+k[4].online.MPKIT_URL.replace("https://",""):""))&&(Ce.title=t),U&2&&h.value!==k[1]&&Ne(h,k[1]),k[1]?m?(m.p(k,U),U&2&&E(m,1)):(m=Oe(k),m.c(),E(m,1),m.m(s,null)):m&&(re(),B(m,1,1,()=>{m=null}),oe()),k[4].logs.logs?w?(w.p(k,U),U&16&&E(w,1)):(w=Be(k),w.c(),E(w,1),w.m(l,K)):w&&(re(),B(w,1,1,()=>{w=null}),oe()),k[1]?P&&(P.d(1),P=null):P||(P=je(),P.c(),P.m(l,null)),k[3]?b?(b.p(k,U),U&8&&E(b,1)):(b=Re(k),b.c(),E(b,1),b.m(e,null)):b&&(re(),B(b,1,1,()=>{b=null}),oe())},i(k){Y||(E(m),E(R.$$.fragment,k),E(w),E(b),Y=!0)},o(k){B(m),B(R.$$.fragment,k),B(w),B(b),Y=!1},d(k){k&&(_(a),_(e)),m&&m.d(),ce(R),w&&w.d(),P&&P.d(),b&&b.d(),n[18](null),c=!1,Ke(I)}}}let ee=262144;function Lt(n,t,a){let e;et(n,pe,c=>a(4,e=c));let l,o="",s=[],r,i;tt(()=>(f(),M(),i=setInterval(()=>{document.visibilityState!=="hidden"&&f()},3e3),()=>clearInterval(i)));const f=async()=>{var m,w,P;const c=((w=(m=e.logs.logs)==null?void 0:m.at(-1))==null?void 0:w.id)??null,I=await ht.get({last:c});c?(P=I.logs)!=null&&P.length&&(ge(pe,e.logs.logs=[...e.logs.logs,...I.logs],e),e.logs.downloaded_at.push(Date.now()),e.logs.downloaded_at.length>2&&e.logs.downloaded_at.splice(0,1)):e.logs.logs||(ge(pe,e.logs=I,e),e.logs.downloaded_at||ge(pe,e.logs.downloaded_at=[Date.now()],e))},h=c=>c.hidden===!0||c.error_type.toLowerCase().indexOf(o)===-1&&c.message.toLowerCase().indexOf(o)===-1;let v=!1;lt(()=>{{const c=document.querySelector(".logs");c&&Math.abs(c.scrollHeight-c.scrollTop-c.clientHeight)<10&&(v=!1)}}),st(async()=>{var c;v||(await ot(),document.querySelector("footer").scrollIntoView(),(c=e.logs.logs)!=null&&c.length&&(v=!0))});const M=()=>{a(3,r=localStorage.pinnedPanel==="true"),a(2,s=localStorage.pinnedLogs?JSON.parse(localStorage.pinnedLogs):[])},z=c=>{s.find(I=>I.id===c.id)?a(2,s=s.filter(I=>I.id!==c.id)):a(2,s=[...s,c]),localStorage.pinnedLogs=JSON.stringify(s)},H=()=>{r?(a(3,r=!1),localStorage.pinnedPanel=!1):(a(3,r=!0),localStorage.pinnedPanel=!0)};function A(){o=this.value,a(1,o)}const F=()=>a(1,o=""),T=()=>e.logs.logs.forEach((c,I)=>ge(pe,e.logs.logs[I].hidden=!0,e)),j=(c,I,m)=>ge(pe,I[m].showFull=!0,e),q=(c,I)=>navigator.clipboard.writeText(c.message).then(()=>{I.target.classList.add("confirmation"),setTimeout(()=>I.target.classList.remove("confirmation"),1e3)}),D=c=>z(c),R=(c,I)=>I.id===c.id,y=()=>{localStorage.pinnedLogs=[],a(2,s=[])},K=c=>z(c),te=(c,I,m)=>a(2,I[m].showFull=!0,s);function Y(c){rt[c?"unshift":"push"](()=>{l=c,a(0,l)})}return[l,o,s,r,e,h,z,H,A,F,T,j,q,D,R,y,K,te,Y]}class Vt extends it{constructor(t){super(),ft(this,t,Lt,Et,Ze,{})}}export{Vt as component}; diff --git a/gui/next/build/_app/immutable/nodes/15.C4B31mxr.js b/gui/next/build/_app/immutable/nodes/15.C4B31mxr.js new file mode 100644 index 000000000..d6eedf29c --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/15.C4B31mxr.js @@ -0,0 +1 @@ +import{S as Ze,i as xe,s as et,d as _,E as ie,x as Ke,o as V,p as E,F as Ne,H as oe,b as B,c as u,I as fe,J as le,z as d,v as tt,h as L,e as p,f as $,K as ne,L as ue,k as C,j as g,M as ce,l as lt,a5 as st,N as ge,a6 as nt,a7 as at,n as ve,O as Qe,R as re,C as ot,X as rt,a3 as it,a as W,Q as ae,V as ft,g as Q,t as X,y as Ee,P as ut}from"../chunks/n7YEDvJi.js";import{g as ct}from"../chunks/D0QH3NT1.js";import{e as Le}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{f as dt}from"../chunks/BaKpYqK2.js";import{s as pe}from"../chunks/Bp_ajb_u.js";import{t as Xe}from"../chunks/x4PJc0Qf.js";import{J as Ge}from"../chunks/CMNnzBs7.js";import{I as ke}from"../chunks/DHO4ENnJ.js";import{A as _t}from"../chunks/CqRAXfEk.js";const ht={get:async n=>{const t=typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}/api/logs`:"http://localhost:3333/api/logs",a=n.last??null;return fetch(`${t}?lastId=`+a).then(e=>e.ok?e.json():Promise.reject(e)).then(e=>(e.logs.forEach(l=>{l.downloaded_at=Date.now()}),e)).catch(e=>({error:e}))}},{document:Ce}=ct;function Pe(n,t,a){const e=n.slice();e[23]=t[a],e[25]=t,e[26]=a;const l=e[23].message.length<262144&&Xe(e[23].message);return e[24]=l,e}function Oe(n,t,a){const e=n.slice();e[23]=t[a],e[27]=t,e[28]=a;const l=e[23].message.length<262144&&Xe(e[23].message);return e[24]=l,e}function Ue(n){let t,a,e="Clear filter",l,o,s,r,i;return o=new ke({props:{icon:"x",size:"12"}}),{c(){t=g("button"),a=g("span"),a.textContent=e,l=C(),ce(o.$$.fragment),this.h()},l(f){t=p(f,"BUTTON",{class:!0});var h=$(t);a=p(h,"SPAN",{class:!0,"data-svelte-h":!0}),ne(a)!=="svelte-1bu6mgu"&&(a.textContent=e),l=L(h),ue(o.$$.fragment,h),h.forEach(_),this.h()},h(){d(a,"class","label svelte-8fkf35"),d(t,"class","clearFilter svelte-8fkf35")},m(f,h){B(f,t,h),u(t,a),u(t,l),fe(o,t,null),s=!0,r||(i=le(t,"click",n[9]),r=!0)},p:ve,i(f){s||(E(o.$$.fragment,f),s=!0)},o(f){V(o.$$.fragment,f),s=!1},d(f){f&&_(t),ie(o),r=!1,i()}}}function Ve(n){let t,a,e=Le(n[4].logs.logs),l=[];for(let s=0;sV(l[s],1,1,()=>{l[s]=null});return{c(){t=g("table");for(let s=0;see&&Be(n);return{c(){a=X(t),e=C(),o&&o.c(),l=Ee()},l(s){a=Q(s,t),e=L(s),o&&o.l(s),l=Ee()},m(s,r){B(s,a,r),B(s,e,r),o&&o.m(s,r),B(s,l,r)},p(s,r){r&16&&t!==(t=s[23].message.substr(0,ee)+"")&&W(a,t),s[23].message.length>ee?o?o.p(s,r):(o=Be(s),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},d(s){s&&(_(a),_(e),_(l)),o&&o.d(s)}}}function vt(n){let t=n[23].message+"",a;return{c(){a=X(t)},l(e){a=Q(e,t)},m(e,l){B(e,a,l)},p(e,l){l&16&&t!==(t=e[23].message+"")&&W(a,t)},d(e){e&&_(a)}}}function Be(n){let t,a,e=n[23].message.length-ee+"",l,o,s,r;function i(){return n[11](n[23],n[27],n[28])}return{c(){t=g("div"),a=g("button"),l=X(e),o=X(" more characters"),this.h()},l(f){t=p(f,"DIV",{class:!0});var h=$(t);a=p(h,"BUTTON",{type:!0,class:!0});var v=$(a);l=Q(v,e),o=Q(v," more characters"),v.forEach(_),h.forEach(_),this.h()},h(){d(a,"type","button"),d(a,"class","svelte-8fkf35"),d(t,"class","longStringInfo svelte-8fkf35")},m(f,h){B(f,t,h),u(t,a),u(a,l),u(a,o),s||(r=le(a,"click",i),s=!0)},p(f,h){n=f,h&16&&e!==(e=n[23].message.length-ee+"")&&W(l,e)},d(f){f&&_(t),s=!1,r()}}}function Me(n){let t,a,e,l=n[23].data.url+"",o,s,r=n[23].data.user&&Ae(n);return{c(){t=g("ul"),a=g("li"),e=X("Page: "),o=X(l),s=C(),r&&r.c(),this.h()},l(i){t=p(i,"UL",{class:!0});var f=$(t);a=p(f,"LI",{});var h=$(a);e=Q(h,"Page: "),o=Q(h,l),h.forEach(_),s=L(f),r&&r.l(f),f.forEach(_),this.h()},h(){d(t,"class","info svelte-8fkf35")},m(i,f){B(i,t,f),u(t,a),u(a,e),u(a,o),u(t,s),r&&r.m(t,null)},p(i,f){f&16&&l!==(l=i[23].data.url+"")&&W(o,l),i[23].data.user?r?r.p(i,f):(r=Ae(i),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(i){i&&_(t),r&&r.d()}}}function Ae(n){let t,a,e,l=n[23].data.user.id+"",o,s;return{c(){t=g("li"),a=X("User ID: "),e=g("a"),o=X(l),this.h()},l(r){t=p(r,"LI",{});var i=$(t);a=Q(i,"User ID: "),e=p(i,"A",{href:!0,class:!0});var f=$(e);o=Q(f,l),f.forEach(_),i.forEach(_),this.h()},h(){d(e,"href",s="/users/"+n[23].data.user.id),d(e,"class","svelte-8fkf35")},m(r,i){B(r,t,i),u(t,a),u(t,e),u(e,o)},p(r,i){i&16&&l!==(l=r[23].data.user.id+"")&&W(o,l),i&16&&s!==(s="/users/"+r[23].data.user.id)&&d(e,"href",s)},d(r){r&&_(t)}}}function Fe(n){var Se;let t,a,e,l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"",o,s,r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"",i,f,h,v,A=n[23].error_type+"",z,H,M,F,T,j,q,D,R,y,K,te="Copy message",Y,c,I,m,w,P="Pin this log",b,S,k,O,N,Z,de;const se=[pt,mt],x=[];function _e(J,U){return J[24]?0:1}F=_e(n),T=x[F]=se[F](n);let G=((Se=n[23].data)==null?void 0:Se.url)&&Me(n);c=new ke({props:{icon:"copy"}});function We(...J){return n[12](n[23],...J)}S=new ke({props:{icon:"pin"}});function Ye(){return n[13](n[23])}function Ie(...J){return n[14](n[23],...J)}return{c(){t=g("tr"),a=g("td"),e=g("time"),o=X(l),s=C(),i=X(r),h=C(),v=g("td"),z=X(A),H=C(),M=g("td"),T.c(),j=C(),G&&G.c(),q=C(),D=g("td"),R=g("div"),y=g("button"),K=g("span"),K.textContent=te,Y=C(),ce(c.$$.fragment),I=C(),m=g("button"),w=g("span"),w.textContent=P,b=C(),ce(S.$$.fragment),k=C(),this.h()},l(J){t=p(J,"TR",{class:!0});var U=$(t);a=p(U,"TD",{class:!0});var me=$(a);e=p(me,"TIME",{datetime:!0,class:!0});var he=$(e);o=Q(he,l),s=L(he),i=Q(he,r),he.forEach(_),me.forEach(_),h=L(U),v=p(U,"TD",{class:!0});var De=$(v);z=Q(De,A),De.forEach(_),H=L(U),M=p(U,"TD",{class:!0});var be=$(M);T.l(be),j=L(be),G&&G.l(be),be.forEach(_),q=L(U),D=p(U,"TD",{class:!0});var ye=$(D);R=p(ye,"DIV",{class:!0});var $e=$(R);y=p($e,"BUTTON",{type:!0,class:!0,title:!0});var we=$(y);K=p(we,"SPAN",{class:!0,"data-svelte-h":!0}),ne(K)!=="svelte-1qjln59"&&(K.textContent=te),Y=L(we),ue(c.$$.fragment,we),we.forEach(_),I=L($e),m=p($e,"BUTTON",{type:!0,class:!0,title:!0});var Te=$(m);w=p(Te,"SPAN",{class:!0,"data-svelte-h":!0}),ne(w)!=="svelte-yzd8i4"&&(w.textContent=P),b=L(Te),ue(S.$$.fragment,Te),Te.forEach(_),$e.forEach(_),ye.forEach(_),k=L(U),U.forEach(_),this.h()},h(){d(e,"datetime",f=n[23].created_at),d(e,"class","svelte-8fkf35"),d(a,"class","date svelte-8fkf35"),d(v,"class","logType svelte-8fkf35"),d(M,"class","message svelte-8fkf35"),d(K,"class","label"),d(y,"type","button"),d(y,"class","button svelte-8fkf35"),d(y,"title","Copy message"),d(w,"class","label"),d(m,"type","button"),d(m,"class","button svelte-8fkf35"),d(m,"title","Pin this log"),ae(m,"active",n[2].find(Ie)),d(R,"class","svelte-8fkf35"),d(D,"class","actions svelte-8fkf35"),d(t,"class","svelte-8fkf35"),ae(t,"hidden",n[1]&&n[5](n[23])||n[23].hidden),ae(t,"error",n[23].error_type.match(/error/i)),ae(t,"fresh",n[23].downloaded_at>n[4].logs.downloaded_at[0])},m(J,U){B(J,t,U),u(t,a),u(a,e),u(e,o),u(e,s),u(e,i),u(t,h),u(t,v),u(v,z),u(t,H),u(t,M),x[F].m(M,null),u(M,j),G&&G.m(M,null),u(t,q),u(t,D),u(D,R),u(R,y),u(y,K),u(y,Y),fe(c,y,null),u(R,I),u(R,m),u(m,w),u(m,b),fe(S,m,null),u(t,k),N=!0,Z||(de=[le(y,"click",We),le(m,"click",ft(Ye))],Z=!0)},p(J,U){var he;n=J,(!N||U&16)&&l!==(l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"")&&W(o,l),(!N||U&16)&&r!==(r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"")&&W(i,r),(!N||U&16&&f!==(f=n[23].created_at))&&d(e,"datetime",f),(!N||U&16)&&A!==(A=n[23].error_type+"")&&W(z,A);let me=F;F=_e(n),F===me?x[F].p(n,U):(re(),V(x[me],1,1,()=>{x[me]=null}),oe(),T=x[F],T?T.p(n,U):(T=x[F]=se[F](n),T.c()),E(T,1),T.m(M,j)),(he=n[23].data)!=null&&he.url?G?G.p(n,U):(G=Me(n),G.c(),G.m(M,null)):G&&(G.d(1),G=null),(!N||U&20)&&ae(m,"active",n[2].find(Ie)),(!N||U&50)&&ae(t,"hidden",n[1]&&n[5](n[23])||n[23].hidden),(!N||U&16)&&ae(t,"error",n[23].error_type.match(/error/i)),(!N||U&16)&&ae(t,"fresh",n[23].downloaded_at>n[4].logs.downloaded_at[0])},i(J){N||(E(T),E(c.$$.fragment,J),E(S.$$.fragment,J),J&&(O||rt(()=>{O=it(t,dt,{duration:200}),O.start()})),N=!0)},o(J){V(T),V(c.$$.fragment,J),V(S.$$.fragment,J),N=!1},d(J){J&&_(t),x[F].d(),G&&G.d(),ie(c),ie(S),Z=!1,Ke(de)}}}function je(n){let t,a="No newer logs to show
Checking every 3 seconds";return{c(){t=g("footer"),t.innerHTML=a,this.h()},l(e){t=p(e,"FOOTER",{class:!0,"data-svelte-h":!0}),ne(t)!=="svelte-akhvzo"&&(t.innerHTML=a),this.h()},h(){d(t,"class","svelte-8fkf35")},m(e,l){B(e,t,l)},d(e){e&&_(t)}}}function Re(n){let t,a;return t=new _t({props:{$$slots:{default:[Tt]},$$scope:{ctx:n}}}),{c(){ce(t.$$.fragment)},l(e){ue(t.$$.fragment,e)},m(e,l){fe(t,e,l),a=!0},p(e,l){const o={};l&536870916&&(o.$$scope={dirty:l,ctx:e}),t.$set(o)},i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){V(t.$$.fragment,e),a=!1},d(e){ie(t,e)}}}function qe(n){let t,a,e=Le(n[2]),l=[];for(let s=0;sV(l[s],1,1,()=>{l[s]=null});return{c(){t=g("ul");for(let s=0;see&&Je(n);return{c(){a=X(t),e=C(),o&&o.c(),l=Ee()},l(s){a=Q(s,t),e=L(s),o&&o.l(s),l=Ee()},m(s,r){B(s,a,r),B(s,e,r),o&&o.m(s,r),B(s,l,r)},p(s,r){r&4&&t!==(t=s[23].message.substr(0,ee)+"")&&W(a,t),s[23].message.length>ee?o?o.p(s,r):(o=Je(s),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},d(s){s&&(_(a),_(e),_(l)),o&&o.d(s)}}}function wt(n){let t=n[23].message+"",a;return{c(){a=X(t)},l(e){a=Q(e,t)},m(e,l){B(e,a,l)},p(e,l){l&4&&t!==(t=e[23].message+"")&&W(a,t)},d(e){e&&_(a)}}}function Je(n){let t,a=n[23].message.length-ee+"",e,l,o,s;function r(){return n[17](n[23],n[25],n[26])}return{c(){t=g("button"),e=X(a),l=X(" more characters"),this.h()},l(i){t=p(i,"BUTTON",{type:!0,class:!0});var f=$(t);e=Q(f,a),l=Q(f," more characters"),f.forEach(_),this.h()},h(){d(t,"type","button"),d(t,"class","svelte-8fkf35")},m(i,f){B(i,t,f),u(t,e),u(t,l),o||(s=le(t,"click",r),o=!0)},p(i,f){n=i,f&4&&a!==(a=n[23].message.length-ee+"")&&W(e,a)},d(i){i&&_(t),o=!1,s()}}}function He(n){var P;let t,a,e,l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"",o,s,r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"",i,f,h,v,A,z="Remove log from pinned panel",H,M,F,T,j,q,D,R,y,K,te;M=new ke({props:{icon:"trash",size:"18"}});function Y(){return n[16](n[23])}let c=((P=n[23].data)==null?void 0:P.url)&&ze(n);const I=[bt,kt],m=[];function w(b,S){return b[24]?0:1}return q=w(n),D=m[q]=I[q](n),{c(){t=g("li"),a=g("div"),e=g("time"),o=X(l),s=C(),i=X(r),h=C(),v=g("button"),A=g("span"),A.textContent=z,H=C(),ce(M.$$.fragment),F=C(),c&&c.c(),T=C(),j=g("div"),D.c(),R=C(),this.h()},l(b){t=p(b,"LI",{class:!0});var S=$(t);a=p(S,"DIV",{class:!0});var k=$(a);e=p(k,"TIME",{class:!0,datetime:!0});var O=$(e);o=Q(O,l),s=L(O),i=Q(O,r),O.forEach(_),h=L(k),v=p(k,"BUTTON",{type:!0,title:!0,class:!0});var N=$(v);A=p(N,"SPAN",{class:!0,"data-svelte-h":!0}),ne(A)!=="svelte-flzfhp"&&(A.textContent=z),H=L(N),ue(M.$$.fragment,N),N.forEach(_),k.forEach(_),F=L(S),c&&c.l(S),T=L(S),j=p(S,"DIV",{class:!0});var Z=$(j);D.l(Z),Z.forEach(_),R=L(S),S.forEach(_),this.h()},h(){d(e,"class","date svelte-8fkf35"),d(e,"datetime",f=n[23].created_at),d(A,"class","label"),d(v,"type","button"),d(v,"title","Remove log from pinned panel"),d(v,"class","svelte-8fkf35"),d(a,"class","info svelte-8fkf35"),d(j,"class","message svelte-8fkf35"),d(t,"class","svelte-8fkf35")},m(b,S){B(b,t,S),u(t,a),u(a,e),u(e,o),u(e,s),u(e,i),u(a,h),u(a,v),u(v,A),u(v,H),fe(M,v,null),u(t,F),c&&c.m(t,null),u(t,T),u(t,j),m[q].m(j,null),u(t,R),y=!0,K||(te=le(v,"click",Y),K=!0)},p(b,S){var O;n=b,(!y||S&4)&&l!==(l=new Date(n[23].created_at).toLocaleDateString(void 0,{})+"")&&W(o,l),(!y||S&4)&&r!==(r=new Date(n[23].created_at).toLocaleTimeString(void 0,{})+"")&&W(i,r),(!y||S&4&&f!==(f=n[23].created_at))&&d(e,"datetime",f),(O=n[23].data)!=null&&O.url?c?c.p(n,S):(c=ze(n),c.c(),c.m(t,T)):c&&(c.d(1),c=null);let k=q;q=w(n),q===k?m[q].p(n,S):(re(),V(m[k],1,1,()=>{m[k]=null}),oe(),D=m[q],D?D.p(n,S):(D=m[q]=I[q](n),D.c()),E(D,1),D.m(j,null))},i(b){y||(E(M.$$.fragment,b),E(D),y=!0)},o(b){V(M.$$.fragment,b),V(D),y=!1},d(b){b&&_(t),ie(M),c&&c.d(),m[q].d(),K=!1,te()}}}function Tt(n){let t,a,e,l="Clear pinned logs",o,s,r,i,f=n[2]&&qe(n);return{c(){t=g("div"),a=g("nav"),e=g("button"),e.textContent=l,o=C(),f&&f.c(),this.h()},l(h){t=p(h,"DIV",{class:!0});var v=$(t);a=p(v,"NAV",{class:!0});var A=$(a);e=p(A,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),ne(e)!=="svelte-eeid91"&&(e.textContent=l),A.forEach(_),o=L(v),f&&f.l(v),v.forEach(_),this.h()},h(){d(e,"type","button"),d(e,"class","button svelte-8fkf35"),d(a,"class","asideNav svelte-8fkf35"),d(t,"class","pins svelte-8fkf35")},m(h,v){B(h,t,v),u(t,a),u(a,e),u(t,o),f&&f.m(t,null),s=!0,r||(i=le(e,"click",n[15]),r=!0)},p(h,v){h[2]?f?(f.p(h,v),v&4&&E(f,1)):(f=qe(h),f.c(),E(f,1),f.m(t,null)):f&&(re(),V(f,1,1,()=>{f=null}),oe())},i(h){s||(E(f),s=!0)},o(h){V(f),s=!1},d(h){h&&_(t),f&&f.d(),r=!1,i()}}}function Et(n){var S;let t,a,e,l,o,s,r,i="Filter:",f,h,v,A,z,H,M="Clear screen",F,T,j,q="Toggle pinned logs panel",D,R,y,K,te,Y,c,I;Ce.title=t="Logs"+((S=n[4].online)!=null&&S.MPKIT_URL?": "+n[4].online.MPKIT_URL.replace("https://",""):"");let m=n[1]&&Ue(n);R=new ke({props:{icon:"pin"}});let w=n[4].logs.logs&&Ve(n),P=!n[1]&&je(),b=n[3]&&Re(n);return{c(){a=C(),e=g("div"),l=g("section"),o=g("nav"),s=g("form"),r=g("label"),r.textContent=i,f=C(),h=g("input"),v=C(),m&&m.c(),A=C(),z=g("div"),H=g("button"),H.textContent=M,F=C(),T=g("button"),j=g("span"),j.textContent=q,D=C(),ce(R.$$.fragment),y=C(),w&&w.c(),K=C(),P&&P.c(),te=C(),b&&b.c(),this.h()},l(k){tt("svelte-dfdkqr",Ce.head).forEach(_),a=L(k),e=p(k,"DIV",{class:!0});var N=$(e);l=p(N,"SECTION",{class:!0});var Z=$(l);o=p(Z,"NAV",{class:!0});var de=$(o);s=p(de,"FORM",{});var se=$(s);r=p(se,"LABEL",{for:!0,"data-svelte-h":!0}),ne(r)!=="svelte-kf6j7o"&&(r.textContent=i),f=L(se),h=p(se,"INPUT",{type:!0,id:!0,class:!0}),v=L(se),m&&m.l(se),se.forEach(_),A=L(de),z=p(de,"DIV",{class:!0});var x=$(z);H=p(x,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),ne(H)!=="svelte-1hlqgjb"&&(H.textContent=M),F=L(x),T=p(x,"BUTTON",{type:!0,title:!0,class:!0});var _e=$(T);j=p(_e,"SPAN",{class:!0,"data-svelte-h":!0}),ne(j)!=="svelte-1o6petk"&&(j.textContent=q),D=L(_e),ue(R.$$.fragment,_e),_e.forEach(_),x.forEach(_),de.forEach(_),y=L(Z),w&&w.l(Z),K=L(Z),P&&P.l(Z),Z.forEach(_),te=L(N),b&&b.l(N),N.forEach(_),this.h()},h(){d(r,"for","filter"),d(h,"type","text"),d(h,"id","filter"),d(h,"class","svelte-8fkf35"),d(H,"type","button"),d(H,"class","button"),d(j,"class","label"),d(T,"type","button"),d(T,"title","Toggle pinned logs panel"),d(T,"class","button"),d(z,"class","svelte-8fkf35"),d(o,"class","svelte-8fkf35"),d(l,"class","logs svelte-8fkf35"),d(e,"class","container svelte-8fkf35")},m(k,O){B(k,a,O),B(k,e,O),u(e,l),u(l,o),u(o,s),u(s,r),u(s,f),u(s,h),Ne(h,n[1]),u(s,v),m&&m.m(s,null),u(o,A),u(o,z),u(z,H),u(z,F),u(z,T),u(T,j),u(T,D),fe(R,T,null),u(l,y),w&&w.m(l,null),u(l,K),P&&P.m(l,null),u(e,te),b&&b.m(e,null),n[18](e),Y=!0,c||(I=[le(h,"input",n[8]),le(H,"click",n[10]),le(T,"click",n[7])],c=!0)},p(k,[O]){var N;(!Y||O&16)&&t!==(t="Logs"+((N=k[4].online)!=null&&N.MPKIT_URL?": "+k[4].online.MPKIT_URL.replace("https://",""):""))&&(Ce.title=t),O&2&&h.value!==k[1]&&Ne(h,k[1]),k[1]?m?(m.p(k,O),O&2&&E(m,1)):(m=Ue(k),m.c(),E(m,1),m.m(s,null)):m&&(re(),V(m,1,1,()=>{m=null}),oe()),k[4].logs.logs?w?(w.p(k,O),O&16&&E(w,1)):(w=Ve(k),w.c(),E(w,1),w.m(l,K)):w&&(re(),V(w,1,1,()=>{w=null}),oe()),k[1]?P&&(P.d(1),P=null):P||(P=je(),P.c(),P.m(l,null)),k[3]?b?(b.p(k,O),O&8&&E(b,1)):(b=Re(k),b.c(),E(b,1),b.m(e,null)):b&&(re(),V(b,1,1,()=>{b=null}),oe())},i(k){Y||(E(m),E(R.$$.fragment,k),E(w),E(b),Y=!0)},o(k){V(m),V(R.$$.fragment,k),V(w),V(b),Y=!1},d(k){k&&(_(a),_(e)),m&&m.d(),ie(R),w&&w.d(),P&&P.d(),b&&b.d(),n[18](null),c=!1,Ke(I)}}}let ee=262144;function Lt(n,t,a){let e;lt(n,pe,c=>a(4,e=c));let l,o="",s=[],r,i;st(()=>(f(),A(),i=setInterval(()=>{document.visibilityState!=="hidden"&&f()},3e3),()=>clearInterval(i)));const f=async()=>{var m,w,P;const c=((w=(m=e.logs.logs)==null?void 0:m.at(-1))==null?void 0:w.id)??null,I=await ht.get({last:c});c?(P=I.logs)!=null&&P.length&&(ge(pe,e.logs.logs=[...e.logs.logs,...I.logs],e),e.logs.downloaded_at.push(Date.now()),e.logs.downloaded_at.length>2&&e.logs.downloaded_at.splice(0,1)):e.logs.logs||(ge(pe,e.logs=I,e),e.logs.downloaded_at||ge(pe,e.logs.downloaded_at=[Date.now()],e))},h=c=>c.hidden===!0||c.error_type.toLowerCase().indexOf(o)===-1&&c.message.toLowerCase().indexOf(o)===-1;let v=!1;nt(()=>{{const c=document.querySelector(".logs");c&&Math.abs(c.scrollHeight-c.scrollTop-c.clientHeight)<10&&(v=!1)}}),at(async()=>{var c;v||(await ut(),document.querySelector("footer").scrollIntoView(),(c=e.logs.logs)!=null&&c.length&&(v=!0))});const A=()=>{a(3,r=localStorage.pinnedPanel==="true"),a(2,s=localStorage.pinnedLogs?JSON.parse(localStorage.pinnedLogs):[])},z=c=>{s.find(I=>I.id===c.id)?a(2,s=s.filter(I=>I.id!==c.id)):a(2,s=[...s,c]),localStorage.pinnedLogs=JSON.stringify(s)},H=()=>{r?(a(3,r=!1),localStorage.pinnedPanel=!1):(a(3,r=!0),localStorage.pinnedPanel=!0)};function M(){o=this.value,a(1,o)}const F=()=>a(1,o=""),T=()=>e.logs.logs.forEach((c,I)=>ge(pe,e.logs.logs[I].hidden=!0,e)),j=(c,I,m)=>ge(pe,I[m].showFull=!0,e),q=(c,I)=>navigator.clipboard.writeText(c.message).then(()=>{I.target.classList.add("confirmation"),setTimeout(()=>I.target.classList.remove("confirmation"),1e3)}),D=c=>z(c),R=(c,I)=>I.id===c.id,y=()=>{localStorage.pinnedLogs=[],a(2,s=[])},K=c=>z(c),te=(c,I,m)=>a(2,I[m].showFull=!0,s);function Y(c){ot[c?"unshift":"push"](()=>{l=c,a(0,l)})}return[l,o,s,r,e,h,z,H,M,F,T,j,q,D,R,y,K,te,Y]}class Bt extends Ze{constructor(t){super(),xe(this,t,Lt,Et,et,{})}}export{Bt as component}; diff --git a/gui/next/build/_app/immutable/nodes/16.7hS_xzU-.js b/gui/next/build/_app/immutable/nodes/16.7hS_xzU-.js new file mode 100644 index 000000000..e57dc69a9 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/16.7hS_xzU-.js @@ -0,0 +1 @@ +import{S as t,i as e,s as o}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";class r extends t{constructor(s){super(),e(this,s,null,null,o,{})}}export{r as component}; diff --git a/gui/next/build/_app/immutable/nodes/16.BOVZRVUg.js b/gui/next/build/_app/immutable/nodes/16.BOVZRVUg.js deleted file mode 100644 index 42ac7c16e..000000000 --- a/gui/next/build/_app/immutable/nodes/16.BOVZRVUg.js +++ /dev/null @@ -1 +0,0 @@ -import{s}from"../chunks/scheduler.CKQ5dLhN.js";import{S as t,i as e}from"../chunks/index.CGVWAVV-.js";class l extends t{constructor(o){super(),e(this,o,null,null,s,{})}}export{l as component}; diff --git a/gui/next/build/_app/immutable/nodes/17.CkW4N9sZ.js b/gui/next/build/_app/immutable/nodes/17.CkW4N9sZ.js deleted file mode 100644 index cc8327a71..000000000 --- a/gui/next/build/_app/immutable/nodes/17.CkW4N9sZ.js +++ /dev/null @@ -1 +0,0 @@ -import{s as ae,e as v,a as V,c as b,b as L,g as K,A as U,f as g,y as h,G as A,i as T,h as k,C as ne,p as ie,a0 as ce,k as Z,t as O,v as x,d as F,j as H,n as ee,E as te}from"../chunks/scheduler.CKQ5dLhN.js";import{S as oe,i as re,c as I,d as N,m as q,t as $,a as C,f as z,g as B,e as G}from"../chunks/index.CGVWAVV-.js";import{p as fe}from"../chunks/stores.BLuxmlax.js";import{l as ue}from"../chunks/logsv2.twsCDidx.js";import{s as J}from"../chunks/state.nqMW8J5l.js";import{t as me}from"../chunks/tryParseJSON.x4PJc0Qf.js";import{A as pe}from"../chunks/Aside.CzwHeuWZ.js";import{J as _e}from"../chunks/JSONTree.B6rnjEUC.js";import{I as de}from"../chunks/Icon.CkKwi_WD.js";function ge(r){let e,t,s,l,n="Copy",o,c,a,f;return t=new de({props:{icon:r[0]?"check":r[2]?"x":"copy",size:"16"}}),{c(){e=v("button"),I(t.$$.fragment),s=V(),l=v("span"),l.textContent=n,this.h()},l(i){e=b(i,"BUTTON",{title:!0,class:!0,"aria-disabled":!0});var _=L(e);N(t.$$.fragment,_),s=K(_),l=b(_,"SPAN",{class:!0,"data-svelte-h":!0}),U(l)!=="svelte-uxc2fm"&&(l.textContent=n),_.forEach(g),this.h()},h(){h(l,"class","label"),h(e,"title","Copy message to clipboard"),h(e,"class","button compact svelte-kur7tm"),h(e,"aria-disabled",o=r[1]||r[0]||r[2]),A(e,"progressing",r[1])},m(i,_){T(i,e,_),q(t,e,null),k(e,s),k(e,l),c=!0,a||(f=ne(e,"click",r[3]),a=!0)},p(i,[_]){const w={};_&5&&(w.icon=i[0]?"check":i[2]?"x":"copy"),t.$set(w),(!c||_&7&&o!==(o=i[1]||i[0]||i[2]))&&h(e,"aria-disabled",o),(!c||_&2)&&A(e,"progressing",i[1])},i(i){c||($(t.$$.fragment,i),c=!0)},o(i){C(t.$$.fragment,i),c=!1},d(i){i&&g(e),z(t),a=!1,f()}}}function he(r,e,t){let{text:s}=e,l=!1,n=!1,o=!1;const c=()=>{t(1,n=!0),navigator.clipboard.writeText(s.toString()).then(()=>{setTimeout(()=>{t(0,l=!0)},150),setTimeout(()=>{t(1,n=!1)},300),setTimeout(()=>{t(1,n=!0)},2300),setTimeout(()=>{t(0,l=!1)},2450),setTimeout(()=>{t(1,n=!1)},2600)}).catch(a=>{t(1,n=!1),t(2,o=!0),console.error(a)})};return r.$$set=a=>{"text"in a&&t(4,s=a.text)},[l,n,o,c,s]}class ve extends oe{constructor(e){super(),re(this,e,he,ge,ae,{text:4})}}function M(r){const e=r.slice(),t=me(e[1].logv2.message);return e[3]=t,e}function se(r){let e,t="Message:",s,l,n;return l=new ve({props:{text:r[1].logv2.message}}),{c(){e=v("dt"),e.textContent=t,s=v("dd"),I(l.$$.fragment),this.h()},l(o){e=b(o,"DT",{"data-svelte-h":!0}),U(e)!=="svelte-j9d3r1"&&(e.textContent=t),s=b(o,"DD",{class:!0});var c=L(s);N(l.$$.fragment,c),c.forEach(g),this.h()},h(){h(s,"class","svelte-2gl9bd")},m(o,c){T(o,e,c),T(o,s,c),q(l,s,null),n=!0},p(o,c){const a={};c&2&&(a.text=o[1].logv2.message),l.$set(a)},i(o){n||($(l.$$.fragment,o),n=!0)},o(o){C(l.$$.fragment,o),n=!1},d(o){o&&(g(e),g(s)),z(l)}}}function le(r){let e,t,s,l;const n=[$e,be],o=[];function c(a,f){return a[3]?0:1}return t=c(r),s=o[t]=n[t](r),{c(){e=v("div"),s.c(),this.h()},l(a){e=b(a,"DIV",{class:!0});var f=L(e);s.l(f),f.forEach(g),this.h()},h(){h(e,"class","code svelte-2gl9bd"),A(e,"json",r[3])},m(a,f){T(a,e,f),o[t].m(e,null),l=!0},p(a,f){let i=t;t=c(a),t===i?o[t].p(a,f):(B(),C(o[i],1,1,()=>{o[i]=null}),G(),s=o[t],s?s.p(a,f):(s=o[t]=n[t](a),s.c()),$(s,1),s.m(e,null)),(!l||f&2)&&A(e,"json",a[3])},i(a){l||($(s),l=!0)},o(a){C(s),l=!1},d(a){a&&g(e),o[t].d()}}}function be(r){let e=r[1].logv2.message+"",t;return{c(){t=O(e)},l(s){t=F(s,e)},m(s,l){T(s,t,l)},p(s,l){l&2&&e!==(e=s[1].logv2.message+"")&&H(t,e)},i:ee,o:ee,d(s){s&&g(t)}}}function $e(r){let e,t;return e=new _e({props:{value:r[3],showFullLines:!0}}),{c(){I(e.$$.fragment)},l(s){N(e.$$.fragment,s)},m(s,l){q(e,s,l),t=!0},p(s,l){const n={};l&2&&(n.value=s[3]),e.$set(n)},i(s){t||($(e.$$.fragment,s),t=!0)},o(s){C(e.$$.fragment,s),t=!1},d(s){z(e,s)}}}function ke(r){var Q,W,X;let e,t,s="Time:",l,n=new Date(((Q=r[1].logv2)==null?void 0:Q.options_at)/1e3).toLocaleString()+"",o,c,a="URL:",f,i,_=new URL("https://"+((W=r[1].logv2)==null?void 0:W.options_data_url)).pathname+new URL("https://"+((X=r[1].logv2)==null?void 0:X.options_data_url)).search+"",w,P,R,S,D,m=r[1].logv2.message&&se(r),p=r[1].logv2.message&&le(M(r));return{c(){e=v("dl"),t=v("dt"),t.textContent=s,l=v("dd"),o=O(n),c=v("dt"),c.textContent=a,f=v("dd"),i=v("a"),w=O(_),m&&m.c(),R=V(),p&&p.c(),S=x(),this.h()},l(u){e=b(u,"DL",{class:!0});var d=L(e);t=b(d,"DT",{"data-svelte-h":!0}),U(t)!=="svelte-toke4h"&&(t.textContent=s),l=b(d,"DD",{class:!0});var y=L(l);o=F(y,n),y.forEach(g),c=b(d,"DT",{"data-svelte-h":!0}),U(c)!=="svelte-vrqyfv"&&(c.textContent=a),f=b(d,"DD",{class:!0});var E=L(f);i=b(E,"A",{href:!0,class:!0});var j=L(i);w=F(j,_),j.forEach(g),E.forEach(g),m&&m.l(d),d.forEach(g),R=K(u),p&&p.l(u),S=x(),this.h()},h(){var u;h(l,"class","svelte-2gl9bd"),h(i,"href",P="https://"+((u=r[1].logv2)==null?void 0:u.options_data_url)),h(i,"class","svelte-2gl9bd"),h(f,"class","svelte-2gl9bd"),h(e,"class","svelte-2gl9bd")},m(u,d){T(u,e,d),k(e,t),k(e,l),k(l,o),k(e,c),k(e,f),k(f,i),k(i,w),m&&m.m(e,null),T(u,R,d),p&&p.m(u,d),T(u,S,d),D=!0},p(u,d){var y,E,j,Y;(!D||d&2)&&n!==(n=new Date(((y=u[1].logv2)==null?void 0:y.options_at)/1e3).toLocaleString()+"")&&H(o,n),(!D||d&2)&&_!==(_=new URL("https://"+((E=u[1].logv2)==null?void 0:E.options_data_url)).pathname+new URL("https://"+((j=u[1].logv2)==null?void 0:j.options_data_url)).search+"")&&H(w,_),(!D||d&2&&P!==(P="https://"+((Y=u[1].logv2)==null?void 0:Y.options_data_url)))&&h(i,"href",P),u[1].logv2.message?m?(m.p(u,d),d&2&&$(m,1)):(m=se(u),m.c(),$(m,1),m.m(e,null)):m&&(B(),C(m,1,1,()=>{m=null}),G()),u[1].logv2.message?p?(p.p(M(u),d),d&2&&$(p,1)):(p=le(M(u)),p.c(),$(p,1),p.m(S.parentNode,S)):p&&(B(),C(p,1,1,()=>{p=null}),G())},i(u){D||($(m),$(p),D=!0)},o(u){C(m),C(p),D=!1},d(u){u&&(g(e),g(R),g(S)),m&&m.d(),p&&p.d(u)}}}function Ce(r){var c;let e,t="",s,l,n,o;return n=new pe({props:{title:((c=r[1].logv2)==null?void 0:c.type)??"Loading…",closeUrl:"/logsv2?"+r[0].url.searchParams.toString(),$$slots:{default:[ke]},$$scope:{ctx:r}}}),{c(){e=v("script"),e.innerHTML=t,l=V(),I(n.$$.fragment),this.h()},l(a){const f=ie("svelte-1pgpgj4",document.head);e=b(f,"SCRIPT",{src:!0,"data-manual":!0,"data-svelte-h":!0}),U(e)!=="svelte-6mxszl"&&(e.innerHTML=t),f.forEach(g),l=K(a),N(n.$$.fragment,a),this.h()},h(){ce(e.src,s="/prism.js")||h(e,"src",s),h(e,"data-manual","")},m(a,f){k(document.head,e),T(a,l,f),q(n,a,f),o=!0},p(a,[f]){var _;const i={};f&2&&(i.title=((_=a[1].logv2)==null?void 0:_.type)??"Loading…"),f&1&&(i.closeUrl="/logsv2?"+a[0].url.searchParams.toString()),f&18&&(i.$$scope={dirty:f,ctx:a}),n.$set(i)},i(a){o||($(n.$$.fragment,a),o=!0)},o(a){C(n.$$.fragment,a),o=!1},d(a){a&&g(l),g(e),z(n,a)}}}function Te(r,e,t){let s,l;Z(r,fe,o=>t(0,s=o)),Z(r,J,o=>t(1,l=o));const n=async()=>{var c;const o=(c=l.logsv2.hits)==null?void 0:c.find(a=>a._timestamp==s.params.id);if(o)te(J,l.logv2=o,l);else{const a={size:1,sql:`select * from logs where _timestamp = ${s.params.id}`};await ue.get(a).then(f=>{te(J,l.logv2=f.hits[0],l)})}};return r.$$.update=()=>{r.$$.dirty&1&&s.params.id&&n()},[s,l]}class Re extends oe{constructor(e){super(),re(this,e,Te,Ce,ae,{})}}export{Re as component}; diff --git a/gui/next/build/_app/immutable/nodes/17.DGuxwaeC.js b/gui/next/build/_app/immutable/nodes/17.DGuxwaeC.js new file mode 100644 index 000000000..e78571e40 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/17.DGuxwaeC.js @@ -0,0 +1 @@ +import{S as ae,i as oe,s as re,d as g,E as P,o as C,p as v,z as h,Q as N,b as T,I as q,c as k,J as ne,e as b,f as D,L as z,h as Q,K as U,j as $,M as A,k as V,ad as ie,v as ce,l as Z,a as H,R as O,H as F,g as B,y as x,t as K,N as ee,n as te}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{p as ue}from"../chunks/C6Nbyvij.js";import{l as fe}from"../chunks/twsCDidx.js";import{s as J}from"../chunks/Bp_ajb_u.js";import{t as pe}from"../chunks/x4PJc0Qf.js";import{A as me}from"../chunks/CqRAXfEk.js";import{J as _e}from"../chunks/CMNnzBs7.js";import{I as de}from"../chunks/DHO4ENnJ.js";function ge(r){let e,t,s,l,n="Copy",o,c,a,u;return t=new de({props:{icon:r[0]?"check":r[2]?"x":"copy",size:"16"}}),{c(){e=$("button"),A(t.$$.fragment),s=V(),l=$("span"),l.textContent=n,this.h()},l(i){e=b(i,"BUTTON",{title:!0,class:!0,"aria-disabled":!0});var _=D(e);z(t.$$.fragment,_),s=Q(_),l=b(_,"SPAN",{class:!0,"data-svelte-h":!0}),U(l)!=="svelte-uxc2fm"&&(l.textContent=n),_.forEach(g),this.h()},h(){h(l,"class","label"),h(e,"title","Copy message to clipboard"),h(e,"class","button compact svelte-kur7tm"),h(e,"aria-disabled",o=r[1]||r[0]||r[2]),N(e,"progressing",r[1])},m(i,_){T(i,e,_),q(t,e,null),k(e,s),k(e,l),c=!0,a||(u=ne(e,"click",r[3]),a=!0)},p(i,[_]){const w={};_&5&&(w.icon=i[0]?"check":i[2]?"x":"copy"),t.$set(w),(!c||_&7&&o!==(o=i[1]||i[0]||i[2]))&&h(e,"aria-disabled",o),(!c||_&2)&&N(e,"progressing",i[1])},i(i){c||(v(t.$$.fragment,i),c=!0)},o(i){C(t.$$.fragment,i),c=!1},d(i){i&&g(e),P(t),a=!1,u()}}}function he(r,e,t){let{text:s}=e,l=!1,n=!1,o=!1;const c=()=>{t(1,n=!0),navigator.clipboard.writeText(s.toString()).then(()=>{setTimeout(()=>{t(0,l=!0)},150),setTimeout(()=>{t(1,n=!1)},300),setTimeout(()=>{t(1,n=!0)},2300),setTimeout(()=>{t(0,l=!1)},2450),setTimeout(()=>{t(1,n=!1)},2600)}).catch(a=>{t(1,n=!1),t(2,o=!0),console.error(a)})};return r.$$set=a=>{"text"in a&&t(4,s=a.text)},[l,n,o,c,s]}class ve extends ae{constructor(e){super(),oe(this,e,he,ge,re,{text:4})}}function M(r){const e=r.slice(),t=pe(e[1].logv2.message);return e[3]=t,e}function se(r){let e,t="Message:",s,l,n;return l=new ve({props:{text:r[1].logv2.message}}),{c(){e=$("dt"),e.textContent=t,s=$("dd"),A(l.$$.fragment),this.h()},l(o){e=b(o,"DT",{"data-svelte-h":!0}),U(e)!=="svelte-j9d3r1"&&(e.textContent=t),s=b(o,"DD",{class:!0});var c=D(s);z(l.$$.fragment,c),c.forEach(g),this.h()},h(){h(s,"class","svelte-2gl9bd")},m(o,c){T(o,e,c),T(o,s,c),q(l,s,null),n=!0},p(o,c){const a={};c&2&&(a.text=o[1].logv2.message),l.$set(a)},i(o){n||(v(l.$$.fragment,o),n=!0)},o(o){C(l.$$.fragment,o),n=!1},d(o){o&&(g(e),g(s)),P(l)}}}function le(r){let e,t,s,l;const n=[$e,be],o=[];function c(a,u){return a[3]?0:1}return t=c(r),s=o[t]=n[t](r),{c(){e=$("div"),s.c(),this.h()},l(a){e=b(a,"DIV",{class:!0});var u=D(e);s.l(u),u.forEach(g),this.h()},h(){h(e,"class","code svelte-2gl9bd"),N(e,"json",r[3])},m(a,u){T(a,e,u),o[t].m(e,null),l=!0},p(a,u){let i=t;t=c(a),t===i?o[t].p(a,u):(O(),C(o[i],1,1,()=>{o[i]=null}),F(),s=o[t],s?s.p(a,u):(s=o[t]=n[t](a),s.c()),v(s,1),s.m(e,null)),(!l||u&2)&&N(e,"json",a[3])},i(a){l||(v(s),l=!0)},o(a){C(s),l=!1},d(a){a&&g(e),o[t].d()}}}function be(r){let e=r[1].logv2.message+"",t;return{c(){t=K(e)},l(s){t=B(s,e)},m(s,l){T(s,t,l)},p(s,l){l&2&&e!==(e=s[1].logv2.message+"")&&H(t,e)},i:te,o:te,d(s){s&&g(t)}}}function $e(r){let e,t;return e=new _e({props:{value:r[3],showFullLines:!0}}),{c(){A(e.$$.fragment)},l(s){z(e.$$.fragment,s)},m(s,l){q(e,s,l),t=!0},p(s,l){const n={};l&2&&(n.value=s[3]),e.$set(n)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){C(e.$$.fragment,s),t=!1},d(s){P(e,s)}}}function ke(r){var G,W,X;let e,t,s="Time:",l,n=new Date(((G=r[1].logv2)==null?void 0:G.options_at)/1e3).toLocaleString()+"",o,c,a="URL:",u,i,_=new URL("https://"+((W=r[1].logv2)==null?void 0:W.options_data_url)).pathname+new URL("https://"+((X=r[1].logv2)==null?void 0:X.options_data_url)).search+"",w,R,I,S,L,p=r[1].logv2.message&&se(r),m=r[1].logv2.message&&le(M(r));return{c(){e=$("dl"),t=$("dt"),t.textContent=s,l=$("dd"),o=K(n),c=$("dt"),c.textContent=a,u=$("dd"),i=$("a"),w=K(_),p&&p.c(),I=V(),m&&m.c(),S=x(),this.h()},l(f){e=b(f,"DL",{class:!0});var d=D(e);t=b(d,"DT",{"data-svelte-h":!0}),U(t)!=="svelte-toke4h"&&(t.textContent=s),l=b(d,"DD",{class:!0});var y=D(l);o=B(y,n),y.forEach(g),c=b(d,"DT",{"data-svelte-h":!0}),U(c)!=="svelte-vrqyfv"&&(c.textContent=a),u=b(d,"DD",{class:!0});var E=D(u);i=b(E,"A",{href:!0,class:!0});var j=D(i);w=B(j,_),j.forEach(g),E.forEach(g),p&&p.l(d),d.forEach(g),I=Q(f),m&&m.l(f),S=x(),this.h()},h(){var f;h(l,"class","svelte-2gl9bd"),h(i,"href",R="https://"+((f=r[1].logv2)==null?void 0:f.options_data_url)),h(i,"class","svelte-2gl9bd"),h(u,"class","svelte-2gl9bd"),h(e,"class","svelte-2gl9bd")},m(f,d){T(f,e,d),k(e,t),k(e,l),k(l,o),k(e,c),k(e,u),k(u,i),k(i,w),p&&p.m(e,null),T(f,I,d),m&&m.m(f,d),T(f,S,d),L=!0},p(f,d){var y,E,j,Y;(!L||d&2)&&n!==(n=new Date(((y=f[1].logv2)==null?void 0:y.options_at)/1e3).toLocaleString()+"")&&H(o,n),(!L||d&2)&&_!==(_=new URL("https://"+((E=f[1].logv2)==null?void 0:E.options_data_url)).pathname+new URL("https://"+((j=f[1].logv2)==null?void 0:j.options_data_url)).search+"")&&H(w,_),(!L||d&2&&R!==(R="https://"+((Y=f[1].logv2)==null?void 0:Y.options_data_url)))&&h(i,"href",R),f[1].logv2.message?p?(p.p(f,d),d&2&&v(p,1)):(p=se(f),p.c(),v(p,1),p.m(e,null)):p&&(O(),C(p,1,1,()=>{p=null}),F()),f[1].logv2.message?m?(m.p(M(f),d),d&2&&v(m,1)):(m=le(M(f)),m.c(),v(m,1),m.m(S.parentNode,S)):m&&(O(),C(m,1,1,()=>{m=null}),F())},i(f){L||(v(p),v(m),L=!0)},o(f){C(p),C(m),L=!1},d(f){f&&(g(e),g(I),g(S)),p&&p.d(),m&&m.d(f)}}}function Ce(r){var c;let e,t="",s,l,n,o;return n=new me({props:{title:((c=r[1].logv2)==null?void 0:c.type)??"Loading…",closeUrl:"/logsv2?"+r[0].url.searchParams.toString(),$$slots:{default:[ke]},$$scope:{ctx:r}}}),{c(){e=$("script"),e.innerHTML=t,l=V(),A(n.$$.fragment),this.h()},l(a){const u=ce("svelte-1pgpgj4",document.head);e=b(u,"SCRIPT",{src:!0,"data-manual":!0,"data-svelte-h":!0}),U(e)!=="svelte-6mxszl"&&(e.innerHTML=t),u.forEach(g),l=Q(a),z(n.$$.fragment,a),this.h()},h(){ie(e.src,s="/prism.js")||h(e,"src",s),h(e,"data-manual","")},m(a,u){k(document.head,e),T(a,l,u),q(n,a,u),o=!0},p(a,[u]){var _;const i={};u&2&&(i.title=((_=a[1].logv2)==null?void 0:_.type)??"Loading…"),u&1&&(i.closeUrl="/logsv2?"+a[0].url.searchParams.toString()),u&18&&(i.$$scope={dirty:u,ctx:a}),n.$set(i)},i(a){o||(v(n.$$.fragment,a),o=!0)},o(a){C(n.$$.fragment,a),o=!1},d(a){a&&g(l),g(e),P(n,a)}}}function Te(r,e,t){let s,l;Z(r,ue,o=>t(0,s=o)),Z(r,J,o=>t(1,l=o));const n=async()=>{var c;const o=(c=l.logsv2.hits)==null?void 0:c.find(a=>a._timestamp==s.params.id);if(o)ee(J,l.logv2=o,l);else{const a={size:1,sql:`select * from logs where _timestamp = ${s.params.id}`};await fe.get(a).then(u=>{ee(J,l.logv2=u.hits[0],l)})}};return r.$$.update=()=>{r.$$.dirty&1&&s.params.id&&n()},[s,l]}class Ie extends ae{constructor(e){super(),oe(this,e,Te,Ce,re,{})}}export{Ie as component}; diff --git a/gui/next/build/_app/immutable/nodes/18.7hS_xzU-.js b/gui/next/build/_app/immutable/nodes/18.7hS_xzU-.js new file mode 100644 index 000000000..e57dc69a9 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/18.7hS_xzU-.js @@ -0,0 +1 @@ +import{S as t,i as e,s as o}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";class r extends t{constructor(s){super(),e(this,s,null,null,o,{})}}export{r as component}; diff --git a/gui/next/build/_app/immutable/nodes/18.BOVZRVUg.js b/gui/next/build/_app/immutable/nodes/18.BOVZRVUg.js deleted file mode 100644 index 42ac7c16e..000000000 --- a/gui/next/build/_app/immutable/nodes/18.BOVZRVUg.js +++ /dev/null @@ -1 +0,0 @@ -import{s}from"../chunks/scheduler.CKQ5dLhN.js";import{S as t,i as e}from"../chunks/index.CGVWAVV-.js";class l extends t{constructor(o){super(),e(this,o,null,null,s,{})}}export{l as component}; diff --git a/gui/next/build/_app/immutable/nodes/19.8Kp_zJo7.js b/gui/next/build/_app/immutable/nodes/19.8Kp_zJo7.js deleted file mode 100644 index 7ec9fd011..000000000 --- a/gui/next/build/_app/immutable/nodes/19.8Kp_zJo7.js +++ /dev/null @@ -1 +0,0 @@ -import{s as De,k as ve,v as ke,i as qe,f as p,e as d,t as m,a as ye,c as i,b as w,A as C,d as h,g as Re,y as c,G as x,h as n,j as k,E as ge}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Te,i as $e,c as Pe,d as Se,m as Ee,t as Fe,a as Ne,f as Ae}from"../chunks/index.CGVWAVV-.js";import{p as Le}from"../chunks/stores.BLuxmlax.js";import{n as Ie}from"../chunks/network.hGAcGvnf.js";import{s as ne}from"../chunks/state.nqMW8J5l.js";import{A as Ue}from"../chunks/Aside.CzwHeuWZ.js";const be={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};function Ce(a){let e,o,t="Time",r,u=new Date(a[1].network._timestamp/1e3).toLocaleString()+"",f,v,y="Request path",g,b,L=a[1].network.http_request_path+"",B,O,R,re="Request method",T,I=a[1].network.http_request_method+"",V,$,le="Status",_,U=a[1].network.lb_status_code+"",K,ee,M=be[a[1].network.lb_status_code]+"",J,P,de="Client IP",S,j=a[1].network.client+"",Q,E,ie="Client user agent",F,z=a[1].network.user_agent+"",W,N,ue="Processing time",q,G=parseFloat(a[1].network.request_processing_time)+parseFloat(a[1].network.target_processing_time)+"",X,te,A,_e="Response size",D,H=parseInt(a[1].network.sent_bytes)+"",Y,se;return{c(){e=d("dl"),o=d("dt"),o.textContent=t,r=d("dd"),f=m(u),v=d("dt"),v.textContent=y,g=d("dd"),b=d("a"),B=m(L),R=d("dt"),R.textContent=re,T=d("dd"),V=m(I),$=d("dt"),$.textContent=le,_=d("dd"),K=m(U),ee=ye(),J=m(M),P=d("dt"),P.textContent=de,S=d("dd"),Q=m(j),E=d("dt"),E.textContent=ie,F=d("dd"),W=m(z),N=d("dt"),N.textContent=ue,q=d("dd"),X=m(G),te=m("s"),A=d("dt"),A.textContent=_e,D=d("dd"),Y=m(H),se=m(" bytes"),this.h()},l(l){e=i(l,"DL",{class:!0});var s=w(e);o=i(s,"DT",{"data-svelte-h":!0}),C(o)!=="svelte-k4tc9n"&&(o.textContent=t),r=i(s,"DD",{class:!0});var ce=w(r);f=h(ce,u),ce.forEach(p),v=i(s,"DT",{"data-svelte-h":!0}),C(v)!=="svelte-1j5pznm"&&(v.textContent=y),g=i(s,"DD",{class:!0});var pe=w(g);b=i(pe,"A",{href:!0,class:!0});var fe=w(b);B=h(fe,L),fe.forEach(p),pe.forEach(p),R=i(s,"DT",{"data-svelte-h":!0}),C(R)!=="svelte-1wn7isk"&&(R.textContent=re),T=i(s,"DD",{class:!0});var me=w(T);V=h(me,I),me.forEach(p),$=i(s,"DT",{"data-svelte-h":!0}),C($)!=="svelte-1e9eis"&&($.textContent=le),_=i(s,"DD",{class:!0});var Z=w(_);K=h(Z,U),ee=Re(Z),J=h(Z,M),Z.forEach(p),P=i(s,"DT",{"data-svelte-h":!0}),C(P)!=="svelte-1rrvc96"&&(P.textContent=de),S=i(s,"DD",{class:!0});var he=w(S);Q=h(he,j),he.forEach(p),E=i(s,"DT",{"data-svelte-h":!0}),C(E)!=="svelte-on2p8j"&&(E.textContent=ie),F=i(s,"DD",{class:!0});var we=w(F);W=h(we,z),we.forEach(p),N=i(s,"DT",{"data-svelte-h":!0}),C(N)!=="svelte-1wlbq2"&&(N.textContent=ue),q=i(s,"DD",{class:!0});var oe=w(q);X=h(oe,G),te=h(oe,"s"),oe.forEach(p),A=i(s,"DT",{"data-svelte-h":!0}),C(A)!=="svelte-jqr426"&&(A.textContent=_e),D=i(s,"DD",{class:!0});var ae=w(D);Y=h(ae,H),se=h(ae," bytes"),ae.forEach(p),s.forEach(p),this.h()},h(){c(r,"class","svelte-ebu0yn"),c(b,"href",O=a[1].network.http_request_url),c(b,"class","svelte-ebu0yn"),c(g,"class","svelte-ebu0yn"),c(T,"class","svelte-ebu0yn"),c(_,"class","svelte-ebu0yn"),x(_,"success",a[1].network.lb_status_code>=200&&a[1].network.lb_status_code<300),x(_,"error",a[1].network.http_request_protocol.lb_status_code>=400&&a[1].network.http_request_protocol.lb_status_code<600),c(S,"class","svelte-ebu0yn"),c(F,"class","svelte-ebu0yn"),c(q,"class","svelte-ebu0yn"),c(D,"class","svelte-ebu0yn"),c(e,"class","definitions svelte-ebu0yn")},m(l,s){qe(l,e,s),n(e,o),n(e,r),n(r,f),n(e,v),n(e,g),n(g,b),n(b,B),n(e,R),n(e,T),n(T,V),n(e,$),n(e,_),n(_,K),n(_,ee),n(_,J),n(e,P),n(e,S),n(S,Q),n(e,E),n(e,F),n(F,W),n(e,N),n(e,q),n(q,X),n(q,te),n(e,A),n(e,D),n(D,Y),n(D,se)},p(l,s){s&2&&u!==(u=new Date(l[1].network._timestamp/1e3).toLocaleString()+"")&&k(f,u),s&2&&L!==(L=l[1].network.http_request_path+"")&&k(B,L),s&2&&O!==(O=l[1].network.http_request_url)&&c(b,"href",O),s&2&&I!==(I=l[1].network.http_request_method+"")&&k(V,I),s&2&&U!==(U=l[1].network.lb_status_code+"")&&k(K,U),s&2&&M!==(M=be[l[1].network.lb_status_code]+"")&&k(J,M),s&2&&x(_,"success",l[1].network.lb_status_code>=200&&l[1].network.lb_status_code<300),s&2&&x(_,"error",l[1].network.http_request_protocol.lb_status_code>=400&&l[1].network.http_request_protocol.lb_status_code<600),s&2&&j!==(j=l[1].network.client+"")&&k(Q,j),s&2&&z!==(z=l[1].network.user_agent+"")&&k(W,z),s&2&&G!==(G=parseFloat(l[1].network.request_processing_time)+parseFloat(l[1].network.target_processing_time)+"")&&k(X,G),s&2&&H!==(H=parseInt(l[1].network.sent_bytes)+"")&&k(Y,H)},d(l){l&&p(e)}}}function Me(a){let e,o=a[1].network._timestamp&&Ce(a);return{c(){o&&o.c(),e=ke()},l(t){o&&o.l(t),e=ke()},m(t,r){o&&o.m(t,r),qe(t,e,r)},p(t,r){t[1].network._timestamp?o?o.p(t,r):(o=Ce(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){t&&p(e),o&&o.d(t)}}}function je(a){let e,o;return e=new Ue({props:{title:a[1].network.lb_status_code?`${a[1].network.http_request_method} ${a[1].network.http_request_path}`:"Loading…",closeUrl:"/network?"+a[0].url.searchParams.toString(),$$slots:{default:[Me]},$$scope:{ctx:a}}}),{c(){Pe(e.$$.fragment)},l(t){Se(e.$$.fragment,t)},m(t,r){Ee(e,t,r),o=!0},p(t,[r]){const u={};r&2&&(u.title=t[1].network.lb_status_code?`${t[1].network.http_request_method} ${t[1].network.http_request_path}`:"Loading…"),r&1&&(u.closeUrl="/network?"+t[0].url.searchParams.toString()),r&10&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){o||(Fe(e.$$.fragment,t),o=!0)},o(t){Ne(e.$$.fragment,t),o=!1},d(t){Ae(e,t)}}}function ze(a,e,o){let t,r;ve(a,Le,f=>o(0,t=f)),ve(a,ne,f=>o(1,r=f));const u=async()=>{var v;const f=(v=r.networks.hits)==null?void 0:v.find(y=>y._timestamp==t.params.id);if(f)ge(ne,r.network=f,r);else{const y={size:1,sql:`select * from requests where _timestamp = ${t.params.id}`};await Ie.get(y).then(g=>{ge(ne,r.network=g.hits[0],r)})}};return a.$$.update=()=>{a.$$.dirty&1&&t.params.id&&u()},[t,r]}class Je extends Te{constructor(e){super(),$e(this,e,ze,je,De,{})}}export{Je as component}; diff --git a/gui/next/build/_app/immutable/nodes/19.C47gtE90.js b/gui/next/build/_app/immutable/nodes/19.C47gtE90.js new file mode 100644 index 000000000..49ac56799 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/19.C47gtE90.js @@ -0,0 +1 @@ +import{S as De,i as ye,s as Re,E as Te,o as $e,p as Pe,I as Se,L as Ee,M as Ne,l as ve,d as c,b as qe,y as ke,N as ge,a as k,z as p,Q as x,c as n,e as d,f as w,K as C,g as m,h as Fe,j as i,t as h,k as Le}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{p as Ie}from"../chunks/C6Nbyvij.js";import{n as Ae}from"../chunks/hGAcGvnf.js";import{s as ne}from"../chunks/Bp_ajb_u.js";import{A as Ue}from"../chunks/CqRAXfEk.js";const be={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"};function Ce(a){let e,o,t="Time",r,u=new Date(a[1].network._timestamp/1e3).toLocaleString()+"",f,v,y="Request path",g,b,I=a[1].network.http_request_path+"",B,K,R,re="Request method",T,A=a[1].network.http_request_method+"",O,$,le="Status",_,U=a[1].network.lb_status_code+"",V,ee,M=be[a[1].network.lb_status_code]+"",Q,P,de="Client IP",S,z=a[1].network.client+"",J,E,ie="Client user agent",N,j=a[1].network.user_agent+"",W,F,ue="Processing time",q,G=parseFloat(a[1].network.request_processing_time)+parseFloat(a[1].network.target_processing_time)+"",X,te,L,_e="Response size",D,H=parseInt(a[1].network.sent_bytes)+"",Y,se;return{c(){e=i("dl"),o=i("dt"),o.textContent=t,r=i("dd"),f=h(u),v=i("dt"),v.textContent=y,g=i("dd"),b=i("a"),B=h(I),R=i("dt"),R.textContent=re,T=i("dd"),O=h(A),$=i("dt"),$.textContent=le,_=i("dd"),V=h(U),ee=Le(),Q=h(M),P=i("dt"),P.textContent=de,S=i("dd"),J=h(z),E=i("dt"),E.textContent=ie,N=i("dd"),W=h(j),F=i("dt"),F.textContent=ue,q=i("dd"),X=h(G),te=h("s"),L=i("dt"),L.textContent=_e,D=i("dd"),Y=h(H),se=h(" bytes"),this.h()},l(l){e=d(l,"DL",{class:!0});var s=w(e);o=d(s,"DT",{"data-svelte-h":!0}),C(o)!=="svelte-k4tc9n"&&(o.textContent=t),r=d(s,"DD",{class:!0});var pe=w(r);f=m(pe,u),pe.forEach(c),v=d(s,"DT",{"data-svelte-h":!0}),C(v)!=="svelte-1j5pznm"&&(v.textContent=y),g=d(s,"DD",{class:!0});var ce=w(g);b=d(ce,"A",{href:!0,class:!0});var fe=w(b);B=m(fe,I),fe.forEach(c),ce.forEach(c),R=d(s,"DT",{"data-svelte-h":!0}),C(R)!=="svelte-1wn7isk"&&(R.textContent=re),T=d(s,"DD",{class:!0});var me=w(T);O=m(me,A),me.forEach(c),$=d(s,"DT",{"data-svelte-h":!0}),C($)!=="svelte-1e9eis"&&($.textContent=le),_=d(s,"DD",{class:!0});var Z=w(_);V=m(Z,U),ee=Fe(Z),Q=m(Z,M),Z.forEach(c),P=d(s,"DT",{"data-svelte-h":!0}),C(P)!=="svelte-1rrvc96"&&(P.textContent=de),S=d(s,"DD",{class:!0});var he=w(S);J=m(he,z),he.forEach(c),E=d(s,"DT",{"data-svelte-h":!0}),C(E)!=="svelte-on2p8j"&&(E.textContent=ie),N=d(s,"DD",{class:!0});var we=w(N);W=m(we,j),we.forEach(c),F=d(s,"DT",{"data-svelte-h":!0}),C(F)!=="svelte-1wlbq2"&&(F.textContent=ue),q=d(s,"DD",{class:!0});var oe=w(q);X=m(oe,G),te=m(oe,"s"),oe.forEach(c),L=d(s,"DT",{"data-svelte-h":!0}),C(L)!=="svelte-jqr426"&&(L.textContent=_e),D=d(s,"DD",{class:!0});var ae=w(D);Y=m(ae,H),se=m(ae," bytes"),ae.forEach(c),s.forEach(c),this.h()},h(){p(r,"class","svelte-ebu0yn"),p(b,"href",K=a[1].network.http_request_url),p(b,"class","svelte-ebu0yn"),p(g,"class","svelte-ebu0yn"),p(T,"class","svelte-ebu0yn"),p(_,"class","svelte-ebu0yn"),x(_,"success",a[1].network.lb_status_code>=200&&a[1].network.lb_status_code<300),x(_,"error",a[1].network.http_request_protocol.lb_status_code>=400&&a[1].network.http_request_protocol.lb_status_code<600),p(S,"class","svelte-ebu0yn"),p(N,"class","svelte-ebu0yn"),p(q,"class","svelte-ebu0yn"),p(D,"class","svelte-ebu0yn"),p(e,"class","definitions svelte-ebu0yn")},m(l,s){qe(l,e,s),n(e,o),n(e,r),n(r,f),n(e,v),n(e,g),n(g,b),n(b,B),n(e,R),n(e,T),n(T,O),n(e,$),n(e,_),n(_,V),n(_,ee),n(_,Q),n(e,P),n(e,S),n(S,J),n(e,E),n(e,N),n(N,W),n(e,F),n(e,q),n(q,X),n(q,te),n(e,L),n(e,D),n(D,Y),n(D,se)},p(l,s){s&2&&u!==(u=new Date(l[1].network._timestamp/1e3).toLocaleString()+"")&&k(f,u),s&2&&I!==(I=l[1].network.http_request_path+"")&&k(B,I),s&2&&K!==(K=l[1].network.http_request_url)&&p(b,"href",K),s&2&&A!==(A=l[1].network.http_request_method+"")&&k(O,A),s&2&&U!==(U=l[1].network.lb_status_code+"")&&k(V,U),s&2&&M!==(M=be[l[1].network.lb_status_code]+"")&&k(Q,M),s&2&&x(_,"success",l[1].network.lb_status_code>=200&&l[1].network.lb_status_code<300),s&2&&x(_,"error",l[1].network.http_request_protocol.lb_status_code>=400&&l[1].network.http_request_protocol.lb_status_code<600),s&2&&z!==(z=l[1].network.client+"")&&k(J,z),s&2&&j!==(j=l[1].network.user_agent+"")&&k(W,j),s&2&&G!==(G=parseFloat(l[1].network.request_processing_time)+parseFloat(l[1].network.target_processing_time)+"")&&k(X,G),s&2&&H!==(H=parseInt(l[1].network.sent_bytes)+"")&&k(Y,H)},d(l){l&&c(e)}}}function Me(a){let e,o=a[1].network._timestamp&&Ce(a);return{c(){o&&o.c(),e=ke()},l(t){o&&o.l(t),e=ke()},m(t,r){o&&o.m(t,r),qe(t,e,r)},p(t,r){t[1].network._timestamp?o?o.p(t,r):(o=Ce(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){t&&c(e),o&&o.d(t)}}}function ze(a){let e,o;return e=new Ue({props:{title:a[1].network.lb_status_code?`${a[1].network.http_request_method} ${a[1].network.http_request_path}`:"Loading…",closeUrl:"/network?"+a[0].url.searchParams.toString(),$$slots:{default:[Me]},$$scope:{ctx:a}}}),{c(){Ne(e.$$.fragment)},l(t){Ee(e.$$.fragment,t)},m(t,r){Se(e,t,r),o=!0},p(t,[r]){const u={};r&2&&(u.title=t[1].network.lb_status_code?`${t[1].network.http_request_method} ${t[1].network.http_request_path}`:"Loading…"),r&1&&(u.closeUrl="/network?"+t[0].url.searchParams.toString()),r&10&&(u.$$scope={dirty:r,ctx:t}),e.$set(u)},i(t){o||(Pe(e.$$.fragment,t),o=!0)},o(t){$e(e.$$.fragment,t),o=!1},d(t){Te(e,t)}}}function je(a,e,o){let t,r;ve(a,Ie,f=>o(0,t=f)),ve(a,ne,f=>o(1,r=f));const u=async()=>{var v;const f=(v=r.networks.hits)==null?void 0:v.find(y=>y._timestamp==t.params.id);if(f)ge(ne,r.network=f,r);else{const y={size:1,sql:`select * from requests where _timestamp = ${t.params.id}`};await Ae.get(y).then(g=>{ge(ne,r.network=g.hits[0],r)})}};return a.$$.update=()=>{a.$$.dirty&1&&t.params.id&&u()},[t,r]}class Qe extends De{constructor(e){super(),ye(this,e,je,ze,Re,{})}}export{Qe as component}; diff --git a/gui/next/build/_app/immutable/nodes/2.CGFuMAZt.js b/gui/next/build/_app/immutable/nodes/2.CGFuMAZt.js new file mode 100644 index 000000000..c657dba19 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/2.CGFuMAZt.js @@ -0,0 +1,7 @@ +import{S as Ue,i as je,s as Ae,d as u,E as me,o as V,p as B,b as Q,c as l,I as pe,J as he,z as c,e as d,f as y,h as L,L as ge,g as W,j as f,k as N,M as ve,t as X,W as Xe,C as Le,D as at,ac as He,m as nt,O as st,x as Ye,ae as Je,H as Ze,G as lt,a as De,u as rt,q as ot,r as it,F as Pe,X as ut,v as dt,K as ae,l as Ve,af as ft,R as xe,Q as ze,ag as ct}from"../chunks/n7YEDvJi.js";import{e as Ke}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import"../chunks/BkTZdoZE.js";import{p as _t}from"../chunks/C6Nbyvij.js";import{b as Me}from"../chunks/CIy9Z9Qf.js";import{s as Ce}from"../chunks/Bp_ajb_u.js";import{I as Oe}from"../chunks/DHO4ENnJ.js";import{N as mt}from"../chunks/CYamOUSl.js";const be=e=>{const t=e instanceof Date?e:new Date(e),a=new Intl.RelativeTimeFormat("en"),n={years:3600*24*365,months:3600*24*30,weeks:3600*24*7,days:3600*24,hours:3600,minutes:60,seconds:1},s=(t.getTime()-Date.now())/1e3;for(let i in n)if(n[i]{o.preventDefault();const p=await Me.retry({properties:new FormData(s)});p.errors?Ce.notification.create("error",`Background job ${p.admin_background_job_retry.id} could not be run again`):(i("itemsChanged"),Ce.notification.create("success",`Background job ${p.admin_background_job_retry.id} planned to run again`))};function v(o){Le[o?"unshift":"push"](()=>{s=o,a(1,s)})}return e.$$set=o=>{"id"in o&&a(0,n=o.id)},[n,s,_,v]}class gt extends Ue{constructor(t){super(),je(this,t,ht,pt,Ae,{id:0})}}function vt(e){let t,a,n,s,i,_,v,o,p,h;return _=new Oe({props:{icon:"x",size:"22"}}),{c(){t=f("form"),a=f("input"),n=N(),s=f("button"),i=f("i"),ve(_.$$.fragment),v=X(` + Delete background job`),this.h()},l(r){t=d(r,"FORM",{});var b=y(t);a=d(b,"INPUT",{type:!0,name:!0}),n=L(b),s=d(b,"BUTTON",{class:!0});var P=y(s);i=d(P,"I",{class:!0});var k=y(i);ge(_.$$.fragment,k),k.forEach(u),v=W(P,` + Delete background job`),P.forEach(u),b.forEach(u),this.h()},h(){c(a,"type","hidden"),c(a,"name","id"),a.value=e[0],c(i,"class","svelte-ooaugn"),c(s,"class","danger")},m(r,b){Q(r,t,b),l(t,a),l(t,n),l(t,s),l(s,i),pe(_,i,null),l(s,v),e[3](t),o=!0,p||(h=he(t,"submit",e[2]),p=!0)},p(r,[b]){(!o||b&1)&&(a.value=r[0])},i(r){o||(B(_.$$.fragment,r),o=!0)},o(r){V(_.$$.fragment,r),o=!1},d(r){r&&u(t),me(_),e[3](null),p=!1,h()}}}function bt(e,t,a){let{id:n}=t,s;const i=Xe(),_=async o=>{if(o.preventDefault(),confirm("Are you sure you want to delete this background job?")){const p=await Me.delete({properties:new FormData(s)});p.errors?Ce.notification.create("error",`Background job ${p.admin_background_job_delete.id} could not be deleted`):(i("itemsChanged"),Ce.notification.create("success",`Background job ${p.admin_background_job_delete.id} deleted`))}};function v(o){Le[o?"unshift":"push"](()=>{s=o,a(1,s)})}return e.$$set=o=>{"id"in o&&a(0,n=o.id)},[n,s,_,v]}class Et extends Ue{constructor(t){super(),je(this,t,bt,vt,Ae,{id:0})}}function Ge(e,t,a){const n=e.slice();return n[16]=t[a],n}function yt(e){let t;return{c(){t=X("Runs")},l(a){t=W(a,"Runs")},m(a,n){Q(a,t,n)},d(a){a&&u(t)}}}function $t(e){let t;return{c(){t=X("Failed")},l(a){t=W(a,"Failed")},m(a,n){Q(a,t,n)},d(a){a&&u(t)}}}function Qe(e){let t,a,n;return a=new gt({props:{id:e[16].id}}),a.$on("itemsChanged",e[6]),{c(){t=f("li"),ve(a.$$.fragment),this.h()},l(s){t=d(s,"LI",{class:!0});var i=y(t);ge(a.$$.fragment,i),i.forEach(u),this.h()},h(){c(t,"class","svelte-1m1ug4d")},m(s,i){Q(s,t,i),pe(a,t,null),n=!0},p(s,i){const _={};i&2&&(_.id=s[16].id),a.$set(_)},i(s){n||(B(a.$$.fragment,s),n=!0)},o(s){V(a.$$.fragment,s),n=!1},d(s){s&&u(t),me(a)}}}function kt(e){let t=(e[16].run_at_parsed||be(new Date(e[16].run_at)))+"",a;return{c(){a=X(t)},l(n){a=W(n,t)},m(n,s){Q(n,a,s)},p(n,s){s&2&&t!==(t=(n[16].run_at_parsed||be(new Date(n[16].run_at)))+"")&&De(a,t)},d(n){n&&u(a)}}}function Dt(e){let t=(e[16].dead_at_parsed||be(new Date(e[16].dead_at))||"")+"",a;return{c(){a=X(t)},l(n){a=W(n,t)},m(n,s){Q(n,a,s)},p(n,s){s&2&&t!==(t=(n[16].dead_at_parsed||be(new Date(n[16].dead_at))||"")+"")&&De(a,t)},d(n){n&&u(a)}}}function We(e){let t,a,n,s,i,_="More options",v,o,p,h,r,b,P,k,te,w,z=(e[16].source_name||e[16].id)+"",E,A,K,R,M=e[16].queue+"",ne,se,U,ie,F,J,ue;o=new Oe({props:{icon:"navigationMenuVertical",size:"16"}});function Ee(){return e[11](e[16])}let g=e[16].dead_at&&Qe(e);k=new Et({props:{id:e[16].id}}),k.$on("itemsChanged",e[6]);function G($,C){return $[0].type==="DEAD"?Dt:kt}let le=G(e),j=le(e);return{c(){t=f("tr"),a=f("td"),n=f("div"),s=f("button"),i=f("span"),i.textContent=_,v=N(),ve(o.$$.fragment),p=N(),h=f("menu"),r=f("ul"),g&&g.c(),b=N(),P=f("li"),ve(k.$$.fragment),te=N(),w=f("a"),E=X(z),K=N(),R=f("td"),ne=X(M),se=N(),U=f("td"),j.c(),ie=N(),this.h()},l($){t=d($,"TR",{class:!0});var C=y(t);a=d(C,"TD",{class:!0});var Y=y(a);n=d(Y,"DIV",{class:!0});var H=y(n);s=d(H,"BUTTON",{class:!0});var Z=y(s);i=d(Z,"SPAN",{class:!0,"data-svelte-h":!0}),ae(i)!=="svelte-1agpmtc"&&(i.textContent=_),v=L(Z),ge(o.$$.fragment,Z),Z.forEach(u),p=L(H),h=d(H,"MENU",{class:!0});var de=y(h);r=d(de,"UL",{});var O=y(r);g&&g.l(O),b=L(O),P=d(O,"LI",{class:!0});var fe=y(P);ge(k.$$.fragment,fe),fe.forEach(u),O.forEach(u),de.forEach(u),te=L(H),w=d(H,"A",{href:!0,class:!0});var ye=y(w);E=W(ye,z),ye.forEach(u),H.forEach(u),Y.forEach(u),K=L(C),R=d(C,"TD",{class:!0});var $e=y(R);ne=W($e,M),$e.forEach(u),se=L(C),U=d(C,"TD",{class:!0});var re=y(U);j.l(re),re.forEach(u),ie=L(C),C.forEach(u),this.h()},h(){c(i,"class","label"),c(s,"class","button compact more svelte-1m1ug4d"),c(P,"class","svelte-1m1ug4d"),c(h,"class","content-context svelte-1m1ug4d"),ze(h,"active",e[2].id===e[16].id),c(w,"href",A="/backgroundJobs/"+e[0].type.toLowerCase()+"/"+e[16].id+"?"+e[4].url.searchParams.toString()),c(w,"class","svelte-1m1ug4d"),c(n,"class","svelte-1m1ug4d"),c(a,"class","id svelte-1m1ug4d"),c(R,"class","svelte-1m1ug4d"),c(U,"class","svelte-1m1ug4d"),c(t,"class","svelte-1m1ug4d")},m($,C){Q($,t,C),l(t,a),l(a,n),l(n,s),l(s,i),l(s,v),pe(o,s,null),l(n,p),l(n,h),l(h,r),g&&g.m(r,null),l(r,b),l(r,P),pe(k,P,null),l(n,te),l(n,w),l(w,E),l(t,K),l(t,R),l(R,ne),l(t,se),l(t,U),j.m(U,null),l(t,ie),F=!0,J||(ue=[he(s,"click",Ee),he(a,"mouseleave",e[12])],J=!0)},p($,C){e=$,e[16].dead_at?g?(g.p(e,C),C&2&&B(g,1)):(g=Qe(e),g.c(),B(g,1),g.m(r,b)):g&&(xe(),V(g,1,1,()=>{g=null}),Ze());const Y={};C&2&&(Y.id=e[16].id),k.$set(Y),(!F||C&6)&&ze(h,"active",e[2].id===e[16].id),(!F||C&2)&&z!==(z=(e[16].source_name||e[16].id)+"")&&De(E,z),(!F||C&19&&A!==(A="/backgroundJobs/"+e[0].type.toLowerCase()+"/"+e[16].id+"?"+e[4].url.searchParams.toString()))&&c(w,"href",A),(!F||C&2)&&M!==(M=e[16].queue+"")&&De(ne,M),le===(le=G(e))&&j?j.p(e,C):(j.d(1),j=le(e),j&&(j.c(),j.m(U,null)))},i($){F||(B(o.$$.fragment,$),B(g),B(k.$$.fragment,$),F=!0)},o($){V(o.$$.fragment,$),V(g),V(k.$$.fragment,$),F=!1},d($){$&&u(t),me(o),g&&g.d(),me(k),j.d(),J=!1,Ye(ue)}}}function Ct(e){var qe;let t,a,n,s,i,_,v,o,p="Type:",h,r,b,P="Scheduled",k,te="Failed",w,z="Running",E,A,K,R,M,ne="Name / id",se,U,ie="Priority",F,J,ue,Ee,g,G,le="Page:",j,$,C,Y,H=(e[1].total_pages||1)+"",Z,de,O,fe,ye;document.title=t="Jobs"+((qe=e[5].online)!=null&&qe.MPKIT_URL?": "+e[5].online.MPKIT_URL.replace("https://",""):"");function $e(m,T){return m[0].type==="DEAD"?$t:yt}let re=$e(e),x=re(e),oe=Ke(e[1].results),D=[];for(let m=0;mV(D[m],1,1,()=>{D[m]=null});function tt(m){e[13](m)}let Se={form:"filters",name:"page",min:1,max:e[1].total_pages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};e[0].page!==void 0&&(Se.value=e[0].page),$=new mt({props:Se}),Le.push(()=>at($,"value",tt)),$.$on("input",function(){He(e[3].requestSubmit())&&e[3].requestSubmit().apply(this,arguments)});const Ne=e[8].default,S=nt(Ne,e,e[7],null);return{c(){a=N(),n=f("div"),s=f("div"),i=f("nav"),_=f("form"),v=f("fieldset"),o=f("label"),o.textContent=p,h=N(),r=f("select"),b=f("option"),b.textContent=P,k=f("option"),k.textContent=te,w=f("option"),w.textContent=z,E=N(),A=f("table"),K=f("thead"),R=f("tr"),M=f("th"),M.textContent=ne,se=N(),U=f("th"),U.textContent=ie,F=N(),J=f("th"),x.c(),ue=N();for(let m=0;me[9].call(r)),c(v,"class","svelte-1m1ug4d"),c(_,"id","filters"),c(_,"class","svelte-1m1ug4d"),c(i,"class","filters svelte-1m1ug4d"),c(M,"class","id svelte-1m1ug4d"),c(U,"class","svelte-1m1ug4d"),c(J,"class","svelte-1m1ug4d"),c(K,"class","svelte-1m1ug4d"),c(A,"class","svelte-1m1ug4d"),c(G,"for","page"),c(g,"class","pagination svelte-1m1ug4d"),c(s,"class","svelte-1m1ug4d"),c(n,"class","container svelte-1m1ug4d")},m(m,T){Q(m,a,T),Q(m,n,T),l(n,s),l(s,i),l(i,_),l(_,v),l(v,o),l(v,h),l(v,r),l(r,b),l(r,k),l(r,w),Je(r,e[0].type,!0),e[10](_),l(s,E),l(s,A),l(A,K),l(K,R),l(R,M),l(R,se),l(R,U),l(R,F),l(R,J),x.m(J,null),l(A,ue);for(let q=0;qC=!1)),$.$set(q),(!O||T&2)&&H!==(H=(e[1].total_pages||1)+"")&&De(Z,H),S&&S.p&&(!O||T&128)&&rt(S,Ne,e,e[7],O?it(Ne,e[7],T,null):ot(e[7]),null)},i(m){if(!O){for(let T=0;Ta(4,n=E)),Ve(e,Ce,E=>a(5,s=E));let{$$slots:i={},$$scope:_}=t,v={results:[]},o={id:null},p={page:1,type:"SCHEDULED",...Object.fromEntries(n.url.searchParams)},h,r;const b=async()=>{clearInterval(r),a(1,v=await Me.get(p)),r=setInterval(()=>{v.results.forEach(E=>{p.type==="DEAD"?E.dead_at_parsed=be(new Date(E.dead_at)):E.run_at_parsed=be(new Date(E.run_at))})},1e3)};ft(()=>{clearInterval(r)});function P(){p.type=ct(this),a(0,p)}function k(E){Le[E?"unshift":"push"](()=>{h=E,a(3,h)})}const te=E=>a(2,o.id=E.id,o),w=()=>a(2,o.id=null,o);function z(E){e.$$.not_equal(p.page,E)&&(p.page=E,a(0,p))}return e.$$set=E=>{"$$scope"in E&&a(7,_=E.$$scope)},e.$$.update=()=>{e.$$.dirty&1&&p&&b()},[p,v,o,h,n,s,b,_,i,P,k,te,w,z]}class Mt extends Ue{constructor(t){super(),je(this,t,Tt,Ct,Ae,{})}}export{Mt as component}; diff --git a/gui/next/build/_app/immutable/nodes/2.CeKUIDP3.js b/gui/next/build/_app/immutable/nodes/2.CeKUIDP3.js deleted file mode 100644 index 88665cf1a..000000000 --- a/gui/next/build/_app/immutable/nodes/2.CeKUIDP3.js +++ /dev/null @@ -1,7 +0,0 @@ -import{s as Ae,e as d,a as L,t as Z,c as f,b as y,g as N,d as Q,f as u,y as c,i as W,h as l,C as me,L as We,z as Le,Z as He,l as at,p as nt,A as ae,B as Pe,M as st,a1 as Ve,D as lt,j as De,u as rt,m as ot,o as it,F as ut,r as Xe,k as ze,a2 as dt,G as Je,a3 as ft}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Ue,i as je,c as pe,d as he,m as ge,t as F,a as z,f as ve,b as ct,e as Ye,g as xe}from"../chunks/index.CGVWAVV-.js";import{e as Ke}from"../chunks/each.BWzj3zy9.js";import"../chunks/entry.COceLI_i.js";import{p as _t}from"../chunks/stores.BLuxmlax.js";import{b as Me}from"../chunks/backgroundJob.cWe0itmY.js";import{s as Ce}from"../chunks/state.nqMW8J5l.js";import{I as Se}from"../chunks/Icon.CkKwi_WD.js";import{N as mt}from"../chunks/Number.B4JDnNHn.js";const be=e=>{const t=e instanceof Date?e:new Date(e),a=new Intl.RelativeTimeFormat("en"),n={years:3600*24*365,months:3600*24*30,weeks:3600*24*7,days:3600*24,hours:3600,minutes:60,seconds:1},s=(t.getTime()-Date.now())/1e3;for(let i in n)if(n[i]{o.preventDefault();const p=await Me.retry({properties:new FormData(s)});p.errors?Ce.notification.create("error",`Background job ${p.admin_background_job_retry.id} could not be run again`):(i("itemsChanged"),Ce.notification.create("success",`Background job ${p.admin_background_job_retry.id} planned to run again`))};function v(o){Le[o?"unshift":"push"](()=>{s=o,a(1,s)})}return e.$$set=o=>{"id"in o&&a(0,n=o.id)},[n,s,_,v]}class gt extends Ue{constructor(t){super(),je(this,t,ht,pt,Ae,{id:0})}}function vt(e){let t,a,n,s,i,_,v,o,p,h;return _=new Se({props:{icon:"x",size:"22"}}),{c(){t=d("form"),a=d("input"),n=L(),s=d("button"),i=d("i"),pe(_.$$.fragment),v=Z(`\r - Delete background job`),this.h()},l(r){t=f(r,"FORM",{});var b=y(t);a=f(b,"INPUT",{type:!0,name:!0}),n=N(b),s=f(b,"BUTTON",{class:!0});var P=y(s);i=f(P,"I",{class:!0});var k=y(i);he(_.$$.fragment,k),k.forEach(u),v=Q(P,`\r - Delete background job`),P.forEach(u),b.forEach(u),this.h()},h(){c(a,"type","hidden"),c(a,"name","id"),a.value=e[0],c(i,"class","svelte-ooaugn"),c(s,"class","danger")},m(r,b){W(r,t,b),l(t,a),l(t,n),l(t,s),l(s,i),ge(_,i,null),l(s,v),e[3](t),o=!0,p||(h=me(t,"submit",e[2]),p=!0)},p(r,[b]){(!o||b&1)&&(a.value=r[0])},i(r){o||(F(_.$$.fragment,r),o=!0)},o(r){z(_.$$.fragment,r),o=!1},d(r){r&&u(t),ve(_),e[3](null),p=!1,h()}}}function bt(e,t,a){let{id:n}=t,s;const i=We(),_=async o=>{if(o.preventDefault(),confirm("Are you sure you want to delete this background job?")){const p=await Me.delete({properties:new FormData(s)});p.errors?Ce.notification.create("error",`Background job ${p.admin_background_job_delete.id} could not be deleted`):(i("itemsChanged"),Ce.notification.create("success",`Background job ${p.admin_background_job_delete.id} deleted`))}};function v(o){Le[o?"unshift":"push"](()=>{s=o,a(1,s)})}return e.$$set=o=>{"id"in o&&a(0,n=o.id)},[n,s,_,v]}class Et extends Ue{constructor(t){super(),je(this,t,bt,vt,Ae,{id:0})}}function Ge(e,t,a){const n=e.slice();return n[16]=t[a],n}function yt(e){let t;return{c(){t=Z("Runs")},l(a){t=Q(a,"Runs")},m(a,n){W(a,t,n)},d(a){a&&u(t)}}}function $t(e){let t;return{c(){t=Z("Failed")},l(a){t=Q(a,"Failed")},m(a,n){W(a,t,n)},d(a){a&&u(t)}}}function Ze(e){let t,a,n;return a=new gt({props:{id:e[16].id}}),a.$on("itemsChanged",e[6]),{c(){t=d("li"),pe(a.$$.fragment),this.h()},l(s){t=f(s,"LI",{class:!0});var i=y(t);he(a.$$.fragment,i),i.forEach(u),this.h()},h(){c(t,"class","svelte-1m1ug4d")},m(s,i){W(s,t,i),ge(a,t,null),n=!0},p(s,i){const _={};i&2&&(_.id=s[16].id),a.$set(_)},i(s){n||(F(a.$$.fragment,s),n=!0)},o(s){z(a.$$.fragment,s),n=!1},d(s){s&&u(t),ve(a)}}}function kt(e){let t=(e[16].run_at_parsed||be(new Date(e[16].run_at)))+"",a;return{c(){a=Z(t)},l(n){a=Q(n,t)},m(n,s){W(n,a,s)},p(n,s){s&2&&t!==(t=(n[16].run_at_parsed||be(new Date(n[16].run_at)))+"")&&De(a,t)},d(n){n&&u(a)}}}function Dt(e){let t=(e[16].dead_at_parsed||be(new Date(e[16].dead_at))||"")+"",a;return{c(){a=Z(t)},l(n){a=Q(n,t)},m(n,s){W(n,a,s)},p(n,s){s&2&&t!==(t=(n[16].dead_at_parsed||be(new Date(n[16].dead_at))||"")+"")&&De(a,t)},d(n){n&&u(a)}}}function Qe(e){let t,a,n,s,i,_="More options",v,o,p,h,r,b,P,k,te,w,J=(e[16].source_name||e[16].id)+"",E,j,K,R,M=e[16].queue+"",ne,se,A,ie,q,V,ue;o=new Se({props:{icon:"navigationMenuVertical",size:"16"}});function Ee(){return e[11](e[16])}let g=e[16].dead_at&&Ze(e);k=new Et({props:{id:e[16].id}}),k.$on("itemsChanged",e[6]);function G($,C){return $[0].type==="DEAD"?Dt:kt}let le=G(e),U=le(e);return{c(){t=d("tr"),a=d("td"),n=d("div"),s=d("button"),i=d("span"),i.textContent=_,v=L(),pe(o.$$.fragment),p=L(),h=d("menu"),r=d("ul"),g&&g.c(),b=L(),P=d("li"),pe(k.$$.fragment),te=L(),w=d("a"),E=Z(J),K=L(),R=d("td"),ne=Z(M),se=L(),A=d("td"),U.c(),ie=L(),this.h()},l($){t=f($,"TR",{class:!0});var C=y(t);a=f(C,"TD",{class:!0});var X=y(a);n=f(X,"DIV",{class:!0});var H=y(n);s=f(H,"BUTTON",{class:!0});var Y=y(s);i=f(Y,"SPAN",{class:!0,"data-svelte-h":!0}),ae(i)!=="svelte-1agpmtc"&&(i.textContent=_),v=N(Y),he(o.$$.fragment,Y),Y.forEach(u),p=N(H),h=f(H,"MENU",{class:!0});var de=y(h);r=f(de,"UL",{});var S=y(r);g&&g.l(S),b=N(S),P=f(S,"LI",{class:!0});var fe=y(P);he(k.$$.fragment,fe),fe.forEach(u),S.forEach(u),de.forEach(u),te=N(H),w=f(H,"A",{href:!0,class:!0});var ye=y(w);E=Q(ye,J),ye.forEach(u),H.forEach(u),X.forEach(u),K=N(C),R=f(C,"TD",{class:!0});var $e=y(R);ne=Q($e,M),$e.forEach(u),se=N(C),A=f(C,"TD",{class:!0});var re=y(A);U.l(re),re.forEach(u),ie=N(C),C.forEach(u),this.h()},h(){c(i,"class","label"),c(s,"class","button compact more svelte-1m1ug4d"),c(P,"class","svelte-1m1ug4d"),c(h,"class","content-context svelte-1m1ug4d"),Je(h,"active",e[2].id===e[16].id),c(w,"href",j="/backgroundJobs/"+e[0].type.toLowerCase()+"/"+e[16].id+"?"+e[4].url.searchParams.toString()),c(w,"class","svelte-1m1ug4d"),c(n,"class","svelte-1m1ug4d"),c(a,"class","id svelte-1m1ug4d"),c(R,"class","svelte-1m1ug4d"),c(A,"class","svelte-1m1ug4d"),c(t,"class","svelte-1m1ug4d")},m($,C){W($,t,C),l(t,a),l(a,n),l(n,s),l(s,i),l(s,v),ge(o,s,null),l(n,p),l(n,h),l(h,r),g&&g.m(r,null),l(r,b),l(r,P),ge(k,P,null),l(n,te),l(n,w),l(w,E),l(t,K),l(t,R),l(R,ne),l(t,se),l(t,A),U.m(A,null),l(t,ie),q=!0,V||(ue=[me(s,"click",Ee),me(a,"mouseleave",e[12])],V=!0)},p($,C){e=$,e[16].dead_at?g?(g.p(e,C),C&2&&F(g,1)):(g=Ze(e),g.c(),F(g,1),g.m(r,b)):g&&(xe(),z(g,1,1,()=>{g=null}),Ye());const X={};C&2&&(X.id=e[16].id),k.$set(X),(!q||C&6)&&Je(h,"active",e[2].id===e[16].id),(!q||C&2)&&J!==(J=(e[16].source_name||e[16].id)+"")&&De(E,J),(!q||C&19&&j!==(j="/backgroundJobs/"+e[0].type.toLowerCase()+"/"+e[16].id+"?"+e[4].url.searchParams.toString()))&&c(w,"href",j),(!q||C&2)&&M!==(M=e[16].queue+"")&&De(ne,M),le===(le=G(e))&&U?U.p(e,C):(U.d(1),U=le(e),U&&(U.c(),U.m(A,null)))},i($){q||(F(o.$$.fragment,$),F(g),F(k.$$.fragment,$),q=!0)},o($){z(o.$$.fragment,$),z(g),z(k.$$.fragment,$),q=!1},d($){$&&u(t),ve(o),g&&g.d(),ve(k),U.d(),V=!1,Xe(ue)}}}function Ct(e){var Be;let t,a,n,s,i,_,v,o,p="Type:",h,r,b,P="Scheduled",k,te="Failed",w,J="Running",E,j,K,R,M,ne="Name / id",se,A,ie="Priority",q,V,ue,Ee,g,G,le="Page:",U,$,C,X,H=(e[1].total_pages||1)+"",Y,de,S,fe,ye;document.title=t="Jobs"+((Be=e[5].online)!=null&&Be.MPKIT_URL?": "+e[5].online.MPKIT_URL.replace("https://",""):"");function $e(m,T){return m[0].type==="DEAD"?$t:yt}let re=$e(e),x=re(e),oe=Ke(e[1].results),D=[];for(let m=0;mz(D[m],1,1,()=>{D[m]=null});function tt(m){e[13](m)}let Oe={form:"filters",name:"page",min:1,max:e[1].total_pages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};e[0].page!==void 0&&(Oe.value=e[0].page),$=new mt({props:Oe}),Le.push(()=>ct($,"value",tt)),$.$on("input",function(){He(e[3].requestSubmit())&&e[3].requestSubmit().apply(this,arguments)});const Ne=e[8].default,O=at(Ne,e,e[7],null);return{c(){a=L(),n=d("div"),s=d("div"),i=d("nav"),_=d("form"),v=d("fieldset"),o=d("label"),o.textContent=p,h=L(),r=d("select"),b=d("option"),b.textContent=P,k=d("option"),k.textContent=te,w=d("option"),w.textContent=J,E=L(),j=d("table"),K=d("thead"),R=d("tr"),M=d("th"),M.textContent=ne,se=L(),A=d("th"),A.textContent=ie,q=L(),V=d("th"),x.c(),ue=L();for(let m=0;me[9].call(r)),c(v,"class","svelte-1m1ug4d"),c(_,"id","filters"),c(_,"class","svelte-1m1ug4d"),c(i,"class","filters svelte-1m1ug4d"),c(M,"class","id svelte-1m1ug4d"),c(A,"class","svelte-1m1ug4d"),c(V,"class","svelte-1m1ug4d"),c(K,"class","svelte-1m1ug4d"),c(j,"class","svelte-1m1ug4d"),c(G,"for","page"),c(g,"class","pagination svelte-1m1ug4d"),c(s,"class","svelte-1m1ug4d"),c(n,"class","container svelte-1m1ug4d")},m(m,T){W(m,a,T),W(m,n,T),l(n,s),l(s,i),l(i,_),l(_,v),l(v,o),l(v,h),l(v,r),l(r,b),l(r,k),l(r,w),Ve(r,e[0].type,!0),e[10](_),l(s,E),l(s,j),l(j,K),l(K,R),l(R,M),l(R,se),l(R,A),l(R,q),l(R,V),x.m(V,null),l(j,ue);for(let B=0;BC=!1)),$.$set(B),(!S||T&2)&&H!==(H=(e[1].total_pages||1)+"")&&De(Y,H),O&&O.p&&(!S||T&128)&&rt(O,Ne,e,e[7],S?it(Ne,e[7],T,null):ot(e[7]),null)},i(m){if(!S){for(let T=0;Ta(4,n=E)),ze(e,Ce,E=>a(5,s=E));let{$$slots:i={},$$scope:_}=t,v={results:[]},o={id:null},p={page:1,type:"SCHEDULED",...Object.fromEntries(n.url.searchParams)},h,r;const b=async()=>{clearInterval(r),a(1,v=await Me.get(p)),r=setInterval(()=>{v.results.forEach(E=>{p.type==="DEAD"?E.dead_at_parsed=be(new Date(E.dead_at)):E.run_at_parsed=be(new Date(E.run_at))})},1e3)};dt(()=>{clearInterval(r)});function P(){p.type=ft(this),a(0,p)}function k(E){Le[E?"unshift":"push"](()=>{h=E,a(3,h)})}const te=E=>a(2,o.id=E.id,o),w=()=>a(2,o.id=null,o);function J(E){e.$$.not_equal(p.page,E)&&(p.page=E,a(0,p))}return e.$$set=E=>{"$$scope"in E&&a(7,_=E.$$scope)},e.$$.update=()=>{e.$$.dirty&1&&p&&b()},[p,v,o,h,n,s,b,_,i,P,k,te,w,J]}class Mt extends Ue{constructor(t){super(),je(this,t,Tt,Ct,Ae,{})}}export{Mt as component}; diff --git a/gui/next/build/_app/immutable/nodes/20.CuxZsU7V.js b/gui/next/build/_app/immutable/nodes/20.CuxZsU7V.js deleted file mode 100644 index 493d6e488..000000000 --- a/gui/next/build/_app/immutable/nodes/20.CuxZsU7V.js +++ /dev/null @@ -1 +0,0 @@ -import{s as i,n as o,p as c,f as l,k as p}from"../chunks/scheduler.CKQ5dLhN.js";import{S as m,i as d}from"../chunks/index.CGVWAVV-.js";import{s as u}from"../chunks/state.nqMW8J5l.js";function _(n){var s;let e;return document.title=e="Users"+((s=n[0].online)!=null&&s.MPKIT_URL?": "+n[0].online.MPKIT_URL.replace("https://",""):""),{c:o,l(t){c("svelte-mcmxo",document.head).forEach(l)},m:o,p(t,[a]){var r;a&1&&e!==(e="Users"+((r=t[0].online)!=null&&r.MPKIT_URL?": "+t[0].online.MPKIT_URL.replace("https://",""):""))&&(document.title=e)},i:o,o,d:o}}function f(n,e,s){let t;return p(n,u,a=>s(0,t=a)),[t]}class I extends m{constructor(e){super(),d(this,e,f,_,i,{})}}export{I as component}; diff --git a/gui/next/build/_app/immutable/nodes/20.DxmxD44t.js b/gui/next/build/_app/immutable/nodes/20.DxmxD44t.js new file mode 100644 index 000000000..c0fb38492 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/20.DxmxD44t.js @@ -0,0 +1 @@ +import{S as i,i as c,s as l,n as s,v as p,d as m,l as d}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{s as u}from"../chunks/Bp_ajb_u.js";function _(n){var o;let e;return document.title=e="Users"+((o=n[0].online)!=null&&o.MPKIT_URL?": "+n[0].online.MPKIT_URL.replace("https://",""):""),{c:s,l(t){p("svelte-mcmxo",document.head).forEach(m)},m:s,p(t,[a]){var r;a&1&&e!==(e="Users"+((r=t[0].online)!=null&&r.MPKIT_URL?": "+t[0].online.MPKIT_URL.replace("https://",""):""))&&(document.title=e)},i:s,o:s,d:s}}function h(n,e,o){let t;return d(n,u,a=>o(0,t=a)),[t]}class v extends i{constructor(e){super(),c(this,e,h,_,l,{})}}export{v as component}; diff --git a/gui/next/build/_app/immutable/nodes/21.CCu7Jrf_.js b/gui/next/build/_app/immutable/nodes/21.CCu7Jrf_.js deleted file mode 100644 index 4fc13242b..000000000 --- a/gui/next/build/_app/immutable/nodes/21.CCu7Jrf_.js +++ /dev/null @@ -1 +0,0 @@ -import{s as Be,a as G,p as We,f as u,g as H,i as c,k as Te,e as h,t as J,v as F,c as v,b as M,d as K,y as R,h as k,j as O,A as z,F as Ge,n as Le}from"../chunks/scheduler.CKQ5dLhN.js";import{S as He,i as Qe,c as Ne,d as qe,m as ze,t as N,a as q,f as Ve,g as le,e as ie}from"../chunks/index.CGVWAVV-.js";import{e as we}from"../chunks/each.BWzj3zy9.js";import{p as Xe}from"../chunks/stores.BLuxmlax.js";import{u as Ye}from"../chunks/user.CRviTK4n.js";import{s as Ze}from"../chunks/state.nqMW8J5l.js";import{t as ye}from"../chunks/tryParseJSON.x4PJc0Qf.js";import{A as xe}from"../chunks/Aside.CzwHeuWZ.js";import{J as et}from"../chunks/JSONTree.B6rnjEUC.js";function Se(o,t,f){const l=o.slice();return l[4]=t[f][0],l[5]=t[f][1],l}function Ie(o){var i;let t,f=((i=o[1])==null?void 0:i.id)+"",l;return{c(){t=J("ID: "),l=J(f)},l(s){t=K(s,"ID: "),l=K(s,f)},m(s,a){c(s,t,a),c(s,l,a)},p(s,a){var e;a&2&&f!==(f=((e=s[1])==null?void 0:e.id)+"")&&O(l,f)},d(s){s&&(u(t),u(l))}}}function je(o){var a;let t,f="External ID:",l,i=((a=o[1])==null?void 0:a.external_id)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i),this.h()},l(e){t=v(e,"DT",{class:!0,"data-svelte-h":!0}),z(t)!=="svelte-1xroeo8"&&(t.textContent=f),l=v(e,"DD",{class:!0});var n=M(l);s=K(n,i),n.forEach(u),this.h()},h(){R(t,"class","svelte-uhfiox"),R(l,"class","svelte-uhfiox")},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.external_id)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Pe(o){var a;let t,f="JWT:",l,i=((a=o[1])==null?void 0:a.jwt_token)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i),this.h()},l(e){t=v(e,"DT",{class:!0,"data-svelte-h":!0}),z(t)!=="svelte-l7ssfz"&&(t.textContent=f),l=v(e,"DD",{class:!0});var n=M(l);s=K(n,i),n.forEach(u),this.h()},h(){R(t,"class","svelte-uhfiox"),R(l,"class","svelte-uhfiox")},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.jwt_token)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Ue(o){var a;let t,f="First name:",l,i=((a=o[1])==null?void 0:a.name)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-8iyt8l"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.name)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Me(o){var a;let t,f="First name:",l,i=((a=o[1])==null?void 0:a.first_name)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-8iyt8l"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.first_name)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Fe(o){var a;let t,f="Middle name:",l,i=((a=o[1])==null?void 0:a.middle_name)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-1eitmmc"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.middle_name)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Je(o){var a;let t,f="Last name:",l,i=((a=o[1])==null?void 0:a.last_name)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-1sn8cp"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.last_name)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Ke(o){var a;let t,f="Slug:",l,i=((a=o[1])==null?void 0:a.slug)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-q9mm1z"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.slug)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Oe(o){var a;let t,f="Language:",l,i=((a=o[1])==null?void 0:a.language)+"",s;return{c(){t=h("dt"),t.textContent=f,l=h("dd"),s=J(i)},l(e){t=v(e,"DT",{"data-svelte-h":!0}),z(t)!=="svelte-14i3pp2"&&(t.textContent=f),l=v(e,"DD",{});var n=M(l);s=K(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,s)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.language)+"")&&O(s,i)},d(e){e&&(u(t),u(l))}}}function Re(o){let t,f,l=we(Object.entries(o[1].properties)),i=[];for(let a=0;aq(i[a],1,1,()=>{i[a]=null});return{c(){t=h("dl");for(let a=0;a{g[_]=null}),ie(),e=g[a],e?e.p(p,b):(e=g[a]=C[a](p),e.c()),N(e,1),e.m(i,n))},i(p){r||(N(e),r=!0)},o(p){q(e),r=!1},d(p){p&&(u(t),u(i)),g[a].d()}}}function it(o){var ne,ae,fe,se,oe,re,de,ue,_e,ce,me,pe;let t,f,l,i,s=new Date((ne=o[1])==null?void 0:ne.created_at).toLocaleDateString(void 0,{})+"",a,e,n=new Date((ae=o[1])==null?void 0:ae.created_at).toLocaleTimeString(void 0,{})+"",r,C,g,$,p,b,_,Y,Z,y,x,ee,te,Q,V,E=((fe=o[1])==null?void 0:fe.id)&&Ie(o),T=((se=o[1])==null?void 0:se.external_id)&&je(o),L=((oe=o[1])==null?void 0:oe.jwt_token)&&Pe(o),w=((re=o[1])==null?void 0:re.name)&&Ue(o),S=((de=o[1])==null?void 0:de.first_name)&&Me(o),I=((ue=o[1])==null?void 0:ue.middle_name)&&Fe(o),j=((_e=o[1])==null?void 0:_e.last_name)&&Je(o),P=((ce=o[1])==null?void 0:ce.slug)&&Ke(o),U=((me=o[1])==null?void 0:me.language)&&Oe(o),D=((pe=o[1])==null?void 0:pe.properties)&&Re(o);return{c(){t=h("div"),f=h("div"),E&&E.c(),l=G(),i=h("time"),a=J(s),e=G(),r=J(n),g=G(),$=h("dl"),T&&T.c(),p=F(),L&&L.c(),b=G(),_=h("dl"),w&&w.c(),Y=F(),S&&S.c(),Z=F(),I&&I.c(),y=F(),j&&j.c(),x=F(),P&&P.c(),ee=F(),U&&U.c(),te=G(),D&&D.c(),Q=F(),this.h()},l(d){t=v(d,"DIV",{});var m=M(t);f=v(m,"DIV",{class:!0});var B=M(f);E&&E.l(B),l=H(B),i=v(B,"TIME",{datetime:!0,class:!0});var W=M(i);a=K(W,s),e=H(W),r=K(W,n),W.forEach(u),B.forEach(u),m.forEach(u),g=H(d),$=v(d,"DL",{class:!0});var X=M($);T&&T.l(X),p=F(),L&&L.l(X),X.forEach(u),b=H(d),_=v(d,"DL",{class:!0});var A=M(_);w&&w.l(A),Y=F(),S&&S.l(A),Z=F(),I&&I.l(A),y=F(),j&&j.l(A),x=F(),P&&P.l(A),ee=F(),U&&U.l(A),A.forEach(u),te=H(d),D&&D.l(d),Q=F(),this.h()},h(){var d;R(i,"datetime",C=(d=o[1])==null?void 0:d.created_at),R(i,"class","svelte-uhfiox"),R(f,"class","info svelte-uhfiox"),R($,"class","tech svelte-uhfiox"),R(_,"class","personal definitions svelte-uhfiox")},m(d,m){c(d,t,m),k(t,f),E&&E.m(f,null),k(f,l),k(f,i),k(i,a),k(i,e),k(i,r),c(d,g,m),c(d,$,m),T&&T.m($,null),k($,p),L&&L.m($,null),c(d,b,m),c(d,_,m),w&&w.m(_,null),k(_,Y),S&&S.m(_,null),k(_,Z),I&&I.m(_,null),k(_,y),j&&j.m(_,null),k(_,x),P&&P.m(_,null),k(_,ee),U&&U.m(_,null),c(d,te,m),D&&D.m(d,m),c(d,Q,m),V=!0},p(d,m){var B,W,X,A,he,ve,ke,be,De,ge,Ce,$e,Ee;(B=d[1])!=null&&B.id?E?E.p(d,m):(E=Ie(d),E.c(),E.m(f,l)):E&&(E.d(1),E=null),(!V||m&2)&&s!==(s=new Date((W=d[1])==null?void 0:W.created_at).toLocaleDateString(void 0,{})+"")&&O(a,s),(!V||m&2)&&n!==(n=new Date((X=d[1])==null?void 0:X.created_at).toLocaleTimeString(void 0,{})+"")&&O(r,n),(!V||m&2&&C!==(C=(A=d[1])==null?void 0:A.created_at))&&R(i,"datetime",C),(he=d[1])!=null&&he.external_id?T?T.p(d,m):(T=je(d),T.c(),T.m($,p)):T&&(T.d(1),T=null),(ve=d[1])!=null&&ve.jwt_token?L?L.p(d,m):(L=Pe(d),L.c(),L.m($,null)):L&&(L.d(1),L=null),(ke=d[1])!=null&&ke.name?w?w.p(d,m):(w=Ue(d),w.c(),w.m(_,Y)):w&&(w.d(1),w=null),(be=d[1])!=null&&be.first_name?S?S.p(d,m):(S=Me(d),S.c(),S.m(_,Z)):S&&(S.d(1),S=null),(De=d[1])!=null&&De.middle_name?I?I.p(d,m):(I=Fe(d),I.c(),I.m(_,y)):I&&(I.d(1),I=null),(ge=d[1])!=null&&ge.last_name?j?j.p(d,m):(j=Je(d),j.c(),j.m(_,x)):j&&(j.d(1),j=null),(Ce=d[1])!=null&&Ce.slug?P?P.p(d,m):(P=Ke(d),P.c(),P.m(_,ee)):P&&(P.d(1),P=null),($e=d[1])!=null&&$e.language?U?U.p(d,m):(U=Oe(d),U.c(),U.m(_,null)):U&&(U.d(1),U=null),(Ee=d[1])!=null&&Ee.properties?D?(D.p(d,m),m&2&&N(D,1)):(D=Re(d),D.c(),N(D,1),D.m(Q.parentNode,Q)):D&&(le(),q(D,1,1,()=>{D=null}),ie())},i(d){V||(N(D),V=!0)},o(d){q(D),V=!1},d(d){d&&(u(t),u(g),u($),u(b),u(_),u(te),u(Q)),E&&E.d(),T&&T.d(),L&&L.d(),w&&w.d(),S&&S.d(),I&&I.d(),j&&j.d(),P&&P.d(),U&&U.d(),D&&D.d(d)}}}function nt(o){var s,a,e,n;let t,f,l,i;return document.title=t=(((s=o[1])==null?void 0:s.email)??"Users")+((a=o[2].online)!=null&&a.MPKIT_URL?": "+o[2].online.MPKIT_URL.replace("https://",""):""),l=new xe({props:{title:((e=o[1])==null?void 0:e.email)??((n=o[1])==null?void 0:n.id)??"Loading…",closeUrl:"/users?"+o[0].url.searchParams.toString(),$$slots:{default:[it]},$$scope:{ctx:o}}}),{c(){f=G(),Ne(l.$$.fragment)},l(r){We("svelte-n9gl86",document.head).forEach(u),f=H(r),qe(l.$$.fragment,r)},m(r,C){c(r,f,C),ze(l,r,C),i=!0},p(r,[C]){var $,p,b,_;(!i||C&6)&&t!==(t=((($=r[1])==null?void 0:$.email)??"Users")+((p=r[2].online)!=null&&p.MPKIT_URL?": "+r[2].online.MPKIT_URL.replace("https://",""):""))&&(document.title=t);const g={};C&2&&(g.title=((b=r[1])==null?void 0:b.email)??((_=r[1])==null?void 0:_.id)??"Loading…"),C&1&&(g.closeUrl="/users?"+r[0].url.searchParams.toString()),C&258&&(g.$$scope={dirty:C,ctx:r}),l.$set(g)},i(r){i||(N(l.$$.fragment,r),i=!0)},o(r){q(l.$$.fragment,r),i=!1},d(r){r&&u(f),Ve(l,r)}}}function at(o,t,f){let l,i;Te(o,Xe,e=>f(0,l=e)),Te(o,Ze,e=>f(2,i=e));let s;const a=async()=>{const e={attribute:"id",value:l.params.id};await Ye.get(e).then(n=>{f(1,s=n.results[0])})};return o.$$.update=()=>{o.$$.dirty&1&&l.params.id&&a()},[l,s,i]}class pt extends He{constructor(t){super(),Qe(this,t,at,nt,Be,{})}}export{pt as component}; diff --git a/gui/next/build/_app/immutable/nodes/21.Dfq71RmU.js b/gui/next/build/_app/immutable/nodes/21.Dfq71RmU.js new file mode 100644 index 000000000..96cf7d285 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/21.Dfq71RmU.js @@ -0,0 +1 @@ +import{S as Be,i as He,s as We,d as u,E as Ne,o as q,p as N,b as c,I as qe,v as Ge,h as W,L as Ae,k as G,M as Ve,l as Te,a as J,z,R as le,H as ie,c as k,e as h,f as M,g as O,y as K,j as v,t as R,K as A,O as Qe,n as Le}from"../chunks/n7YEDvJi.js";import{e as we}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{p as Xe}from"../chunks/C6Nbyvij.js";import{u as Ye}from"../chunks/CNoDK8-a.js";import{s as Ze}from"../chunks/Bp_ajb_u.js";import{t as ye}from"../chunks/x4PJc0Qf.js";import{A as xe}from"../chunks/CqRAXfEk.js";import{J as et}from"../chunks/CMNnzBs7.js";function Ie(o,t,s){const l=o.slice();return l[4]=t[s][0],l[5]=t[s][1],l}function Se(o){var i;let t,s=((i=o[1])==null?void 0:i.id)+"",l;return{c(){t=R("ID: "),l=R(s)},l(f){t=O(f,"ID: "),l=O(f,s)},m(f,a){c(f,t,a),c(f,l,a)},p(f,a){var e;a&2&&s!==(s=((e=f[1])==null?void 0:e.id)+"")&&J(l,s)},d(f){f&&(u(t),u(l))}}}function je(o){var a;let t,s="External ID:",l,i=((a=o[1])==null?void 0:a.external_id)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i),this.h()},l(e){t=h(e,"DT",{class:!0,"data-svelte-h":!0}),A(t)!=="svelte-1xroeo8"&&(t.textContent=s),l=h(e,"DD",{class:!0});var n=M(l);f=O(n,i),n.forEach(u),this.h()},h(){z(t,"class","svelte-uhfiox"),z(l,"class","svelte-uhfiox")},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.external_id)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Pe(o){var a;let t,s="JWT:",l,i=((a=o[1])==null?void 0:a.jwt_token)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i),this.h()},l(e){t=h(e,"DT",{class:!0,"data-svelte-h":!0}),A(t)!=="svelte-l7ssfz"&&(t.textContent=s),l=h(e,"DD",{class:!0});var n=M(l);f=O(n,i),n.forEach(u),this.h()},h(){z(t,"class","svelte-uhfiox"),z(l,"class","svelte-uhfiox")},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.jwt_token)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Ue(o){var a;let t,s="First name:",l,i=((a=o[1])==null?void 0:a.name)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-8iyt8l"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.name)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Me(o){var a;let t,s="First name:",l,i=((a=o[1])==null?void 0:a.first_name)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-8iyt8l"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.first_name)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Ke(o){var a;let t,s="Middle name:",l,i=((a=o[1])==null?void 0:a.middle_name)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-1eitmmc"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.middle_name)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Oe(o){var a;let t,s="Last name:",l,i=((a=o[1])==null?void 0:a.last_name)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-1sn8cp"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.last_name)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Re(o){var a;let t,s="Slug:",l,i=((a=o[1])==null?void 0:a.slug)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-q9mm1z"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.slug)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function Je(o){var a;let t,s="Language:",l,i=((a=o[1])==null?void 0:a.language)+"",f;return{c(){t=v("dt"),t.textContent=s,l=v("dd"),f=R(i)},l(e){t=h(e,"DT",{"data-svelte-h":!0}),A(t)!=="svelte-14i3pp2"&&(t.textContent=s),l=h(e,"DD",{});var n=M(l);f=O(n,i),n.forEach(u)},m(e,n){c(e,t,n),c(e,l,n),k(l,f)},p(e,n){var r;n&2&&i!==(i=((r=e[1])==null?void 0:r.language)+"")&&J(f,i)},d(e){e&&(u(t),u(l))}}}function ze(o){let t,s,l=we(Object.entries(o[1].properties)),i=[];for(let a=0;aq(i[a],1,1,()=>{i[a]=null});return{c(){t=v("dl");for(let a=0;a{g[_]=null}),ie(),e=g[a],e?e.p(p,b):(e=g[a]=C[a](p),e.c()),N(e,1),e.m(i,n))},i(p){r||(N(e),r=!0)},o(p){q(e),r=!1},d(p){p&&(u(t),u(i)),g[a].d()}}}function it(o){var ne,ae,se,fe,oe,re,de,ue,_e,ce,me,pe;let t,s,l,i,f=new Date((ne=o[1])==null?void 0:ne.created_at).toLocaleDateString(void 0,{})+"",a,e,n=new Date((ae=o[1])==null?void 0:ae.created_at).toLocaleTimeString(void 0,{})+"",r,C,g,$,p,b,_,Y,Z,y,x,ee,te,Q,V,E=((se=o[1])==null?void 0:se.id)&&Se(o),T=((fe=o[1])==null?void 0:fe.external_id)&&je(o),L=((oe=o[1])==null?void 0:oe.jwt_token)&&Pe(o),w=((re=o[1])==null?void 0:re.name)&&Ue(o),I=((de=o[1])==null?void 0:de.first_name)&&Me(o),S=((ue=o[1])==null?void 0:ue.middle_name)&&Ke(o),j=((_e=o[1])==null?void 0:_e.last_name)&&Oe(o),P=((ce=o[1])==null?void 0:ce.slug)&&Re(o),U=((me=o[1])==null?void 0:me.language)&&Je(o),D=((pe=o[1])==null?void 0:pe.properties)&&ze(o);return{c(){t=v("div"),s=v("div"),E&&E.c(),l=G(),i=v("time"),a=R(f),e=G(),r=R(n),g=G(),$=v("dl"),T&&T.c(),p=K(),L&&L.c(),b=G(),_=v("dl"),w&&w.c(),Y=K(),I&&I.c(),Z=K(),S&&S.c(),y=K(),j&&j.c(),x=K(),P&&P.c(),ee=K(),U&&U.c(),te=G(),D&&D.c(),Q=K(),this.h()},l(d){t=h(d,"DIV",{});var m=M(t);s=h(m,"DIV",{class:!0});var B=M(s);E&&E.l(B),l=W(B),i=h(B,"TIME",{datetime:!0,class:!0});var H=M(i);a=O(H,f),e=W(H),r=O(H,n),H.forEach(u),B.forEach(u),m.forEach(u),g=W(d),$=h(d,"DL",{class:!0});var X=M($);T&&T.l(X),p=K(),L&&L.l(X),X.forEach(u),b=W(d),_=h(d,"DL",{class:!0});var F=M(_);w&&w.l(F),Y=K(),I&&I.l(F),Z=K(),S&&S.l(F),y=K(),j&&j.l(F),x=K(),P&&P.l(F),ee=K(),U&&U.l(F),F.forEach(u),te=W(d),D&&D.l(d),Q=K(),this.h()},h(){var d;z(i,"datetime",C=(d=o[1])==null?void 0:d.created_at),z(i,"class","svelte-uhfiox"),z(s,"class","info svelte-uhfiox"),z($,"class","tech svelte-uhfiox"),z(_,"class","personal definitions svelte-uhfiox")},m(d,m){c(d,t,m),k(t,s),E&&E.m(s,null),k(s,l),k(s,i),k(i,a),k(i,e),k(i,r),c(d,g,m),c(d,$,m),T&&T.m($,null),k($,p),L&&L.m($,null),c(d,b,m),c(d,_,m),w&&w.m(_,null),k(_,Y),I&&I.m(_,null),k(_,Z),S&&S.m(_,null),k(_,y),j&&j.m(_,null),k(_,x),P&&P.m(_,null),k(_,ee),U&&U.m(_,null),c(d,te,m),D&&D.m(d,m),c(d,Q,m),V=!0},p(d,m){var B,H,X,F,he,ve,ke,be,De,ge,Ce,$e,Ee;(B=d[1])!=null&&B.id?E?E.p(d,m):(E=Se(d),E.c(),E.m(s,l)):E&&(E.d(1),E=null),(!V||m&2)&&f!==(f=new Date((H=d[1])==null?void 0:H.created_at).toLocaleDateString(void 0,{})+"")&&J(a,f),(!V||m&2)&&n!==(n=new Date((X=d[1])==null?void 0:X.created_at).toLocaleTimeString(void 0,{})+"")&&J(r,n),(!V||m&2&&C!==(C=(F=d[1])==null?void 0:F.created_at))&&z(i,"datetime",C),(he=d[1])!=null&&he.external_id?T?T.p(d,m):(T=je(d),T.c(),T.m($,p)):T&&(T.d(1),T=null),(ve=d[1])!=null&&ve.jwt_token?L?L.p(d,m):(L=Pe(d),L.c(),L.m($,null)):L&&(L.d(1),L=null),(ke=d[1])!=null&&ke.name?w?w.p(d,m):(w=Ue(d),w.c(),w.m(_,Y)):w&&(w.d(1),w=null),(be=d[1])!=null&&be.first_name?I?I.p(d,m):(I=Me(d),I.c(),I.m(_,Z)):I&&(I.d(1),I=null),(De=d[1])!=null&&De.middle_name?S?S.p(d,m):(S=Ke(d),S.c(),S.m(_,y)):S&&(S.d(1),S=null),(ge=d[1])!=null&&ge.last_name?j?j.p(d,m):(j=Oe(d),j.c(),j.m(_,x)):j&&(j.d(1),j=null),(Ce=d[1])!=null&&Ce.slug?P?P.p(d,m):(P=Re(d),P.c(),P.m(_,ee)):P&&(P.d(1),P=null),($e=d[1])!=null&&$e.language?U?U.p(d,m):(U=Je(d),U.c(),U.m(_,null)):U&&(U.d(1),U=null),(Ee=d[1])!=null&&Ee.properties?D?(D.p(d,m),m&2&&N(D,1)):(D=ze(d),D.c(),N(D,1),D.m(Q.parentNode,Q)):D&&(le(),q(D,1,1,()=>{D=null}),ie())},i(d){V||(N(D),V=!0)},o(d){q(D),V=!1},d(d){d&&(u(t),u(g),u($),u(b),u(_),u(te),u(Q)),E&&E.d(),T&&T.d(),L&&L.d(),w&&w.d(),I&&I.d(),S&&S.d(),j&&j.d(),P&&P.d(),U&&U.d(),D&&D.d(d)}}}function nt(o){var f,a,e,n;let t,s,l,i;return document.title=t=(((f=o[1])==null?void 0:f.email)??"Users")+((a=o[2].online)!=null&&a.MPKIT_URL?": "+o[2].online.MPKIT_URL.replace("https://",""):""),l=new xe({props:{title:((e=o[1])==null?void 0:e.email)??((n=o[1])==null?void 0:n.id)??"Loading…",closeUrl:"/users?"+o[0].url.searchParams.toString(),$$slots:{default:[it]},$$scope:{ctx:o}}}),{c(){s=G(),Ve(l.$$.fragment)},l(r){Ge("svelte-n9gl86",document.head).forEach(u),s=W(r),Ae(l.$$.fragment,r)},m(r,C){c(r,s,C),qe(l,r,C),i=!0},p(r,[C]){var $,p,b,_;(!i||C&6)&&t!==(t=((($=r[1])==null?void 0:$.email)??"Users")+((p=r[2].online)!=null&&p.MPKIT_URL?": "+r[2].online.MPKIT_URL.replace("https://",""):""))&&(document.title=t);const g={};C&2&&(g.title=((b=r[1])==null?void 0:b.email)??((_=r[1])==null?void 0:_.id)??"Loading…"),C&1&&(g.closeUrl="/users?"+r[0].url.searchParams.toString()),C&258&&(g.$$scope={dirty:C,ctx:r}),l.$set(g)},i(r){i||(N(l.$$.fragment,r),i=!0)},o(r){q(l.$$.fragment,r),i=!1},d(r){r&&u(s),Ne(l,r)}}}function at(o,t,s){let l,i;Te(o,Xe,e=>s(0,l=e)),Te(o,Ze,e=>s(2,i=e));let f;const a=async()=>{const e={attribute:"id",value:l.params.id};await Ye.get(e).then(n=>{s(1,f=n.results[0])})};return o.$$.update=()=>{o.$$.dirty&1&&l.params.id&&a()},[l,f,i]}class pt extends Be{constructor(t){super(),He(this,t,at,nt,We,{})}}export{pt as component}; diff --git a/gui/next/build/_app/immutable/nodes/3.BGS2qweN.js b/gui/next/build/_app/immutable/nodes/3.BGS2qweN.js new file mode 100644 index 000000000..08e34e732 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/3.BGS2qweN.js @@ -0,0 +1 @@ +import{S as l,i,s as r,m as u,o as f,p as _,u as c,q as p,r as m}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";function $(n){let s;const a=n[1].default,e=u(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&c(e,a,t,t[0],s?m(a,t[0],o,null):p(t[0]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class q extends l{constructor(s){super(),i(this,s,d,$,r,{})}}export{q as component}; diff --git a/gui/next/build/_app/immutable/nodes/3.DPd-OXBN.js b/gui/next/build/_app/immutable/nodes/3.DPd-OXBN.js deleted file mode 100644 index dbbe00985..000000000 --- a/gui/next/build/_app/immutable/nodes/3.DPd-OXBN.js +++ /dev/null @@ -1 +0,0 @@ -import{s as l,l as i,u as r,m as u,o as f}from"../chunks/scheduler.CKQ5dLhN.js";import{S as _,i as c,t as m,a as p}from"../chunks/index.CGVWAVV-.js";function $(n){let s;const a=n[1].default,e=i(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(m(e,t),s=!0)},o(t){p(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class S extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{S as component}; diff --git a/gui/next/build/_app/immutable/nodes/4.DM9kxUlW.js b/gui/next/build/_app/immutable/nodes/4.DM9kxUlW.js new file mode 100644 index 000000000..b6cbe3958 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/4.DM9kxUlW.js @@ -0,0 +1 @@ +import{S as le,i as ae,s as ne,d as g,O as ie,x as ce,o as L,p as C,R as fe,H as ue,F as G,b as B,c as p,J as z,z as b,e as v,f as I,h as K,K as P,j as k,k as A,l as Y,N as de,W as he,a5 as re,n as R,E as F,I as J,L as Q,M as W,X as _e,a3 as me,a as pe,Q as M,g as be,t as ge,C as Z,m as ve,u as ke,q as Ee,r as ye}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{e as x}from"../chunks/DMhVG_ro.js";import{f as Se}from"../chunks/BaKpYqK2.js";import{p as Ie}from"../chunks/C6Nbyvij.js";import{s as ee}from"../chunks/Bp_ajb_u.js";import{t as we}from"../chunks/t7b_BBSP.js";import{I as oe}from"../chunks/DHO4ENnJ.js";function te(i,e,t){const r=i.slice();return r[15]=e[t],r[17]=t,r}function Ce(i){let e,t,r;return t=new oe({props:{icon:"search",size:"18"}}),{c(){e=k("i"),W(t.$$.fragment),this.h()},l(o){e=v(o,"I",{class:!0});var l=I(e);Q(t.$$.fragment,l),l.forEach(g),this.h()},h(){b(e,"class","svelte-117f3bg")},m(o,l){B(o,e,l),J(t,e,null),r=!0},p:R,i(o){r||(C(t.$$.fragment,o),r=!0)},o(o){L(t.$$.fragment,o),r=!1},d(o){o&&g(e),F(t)}}}function De(i){let e,t,r="Reset filter",o,l,d,s,a;return l=new oe({props:{icon:"x",size:"18"}}),{c(){e=k("button"),t=k("span"),t.textContent=r,o=A(),W(l.$$.fragment),this.h()},l(n){e=v(n,"BUTTON",{class:!0});var m=I(e);t=v(m,"SPAN",{class:!0,"data-svelte-h":!0}),P(t)!=="svelte-8g7ehw"&&(t.textContent=r),o=K(m),Q(l.$$.fragment,m),m.forEach(g),this.h()},h(){b(t,"class","label"),b(e,"class","svelte-117f3bg")},m(n,m){B(n,e,m),p(e,t),p(e,o),J(l,e,null),d=!0,s||(a=z(e,"click",i[8]),s=!0)},p:R,i(n){d||(C(l.$$.fragment,n),d=!0)},o(n){L(l.$$.fragment,n),d=!1},d(n){n&&g(e),F(l),s=!1,a()}}}function se(i){let e,t,r=i[15].name+"",o,l,d,s;return{c(){e=k("li"),t=k("a"),o=ge(r),d=A(),this.h()},l(a){e=v(a,"LI",{});var n=I(e);t=v(n,"A",{href:!0,class:!0});var m=I(t);o=be(m,r),m.forEach(g),d=K(n),n.forEach(g),this.h()},h(){b(t,"href",l="/database/table/"+i[15].id),b(t,"class","svelte-117f3bg"),M(t,"active",i[15].id===i[4].params.id)},m(a,n){B(a,e,n),p(e,t),p(t,o),p(e,d)},p(a,n){n&1&&r!==(r=a[15].name+"")&&pe(o,r),n&1&&l!==(l="/database/table/"+a[15].id)&&b(t,"href",l),n&17&&M(t,"active",a[15].id===a[4].params.id)},i(a){a&&(s||_e(()=>{s=me(e,Se,{duration:100,delay:7*i[17]}),s.start()}))},o:R,d(a){a&&g(e)}}}function $e(i){let e,t,r,o,l,d,s,a,n,m="Ctrl",y,j="K",V,D,$,N,H,c;const T=[De,Ce],S=[];function U(f,_){return f[3]?0:1}o=U(i),l=S[o]=T[o](i);let w=x(i[0]),h=[];for(let f=0;f{S[E]=null}),ue(),l=S[o],l?l.p(f,_):(l=S[o]=T[o](f),l.c()),C(l,1),l.m(r,d)),_&8&&s.value!==f[3]&&G(s,f[3]),_&17){w=x(f[0]);let u;for(u=0;ut(4,r=c)),Y(i,ee,c=>t(13,o=c));let l=o.tables,d=l,s,a,n;(async()=>await we.get())().then(c=>{l=c,t(0,d=c),de(ee,o.tables=c,o)});const m=he();re(async()=>{a.focus(),document.addEventListener("keydown",c=>{c.ctrlKey&&c.key==="k"&&(c.preventDefault(),m("sidebarNeeded"),a.focus(),a.select())}),r.data.table&&s.querySelector(`[href$="${r.data.table.id}"]`).scrollIntoView({behavior:"smooth",block:"center"})});const y=()=>{n?t(0,d=l.filter(c=>c.name.includes(n))):t(0,d=l)},j=c=>{c.key==="Escape"&&(t(3,n=""),y()),c.key==="Enter"&&s.querySelector("li:first-child a").click()},V=c=>{var T,S,U,w,h,f,_,E,u,q;c.key==="ArrowDown"&&s.contains(document.activeElement)&&(c.preventDefault(),document.activeElement.matches("input")?(T=s.querySelector("a"))==null||T.focus():(h=(w=(U=(S=document.activeElement)==null?void 0:S.parentElement)==null?void 0:U.nextElementSibling)==null?void 0:w.querySelector("a"))==null||h.focus()),c.key==="ArrowUp"&&s.contains(document.activeElement)&&(c.preventDefault(),(f=document.activeElement)!=null&&f.matches("li:first-child a")?a.focus():(q=(u=(E=(_=document.activeElement)==null?void 0:_.parentElement)==null?void 0:E.previousElementSibling)==null?void 0:u.querySelector("a"))==null||q.focus()),c.key==="Escape"&&s.contains(document.activeElement)&&(a.focus(),t(3,n=""),y())},D=()=>{t(3,n=null),y()};function $(c){Z[c?"unshift":"push"](()=>{a=c,t(2,a)})}function N(){n=this.value,t(3,n)}function H(c){Z[c?"unshift":"push"](()=>{s=c,t(1,s)})}return[d,s,a,n,r,y,j,V,D,$,N,H]}class Ne extends le{constructor(e){super(),ae(this,e,qe,$e,ne,{})}}function Ke(i){let e,t,r,o,l;r=new Ne({}),r.$on("sidebarNeeded",i[3]);const d=i[2].default,s=ve(d,i,i[1],null);return{c(){e=k("div"),t=k("div"),W(r.$$.fragment),o=A(),s&&s.c(),this.h()},l(a){e=v(a,"DIV",{class:!0});var n=I(e);t=v(n,"DIV",{class:!0});var m=I(t);Q(r.$$.fragment,m),m.forEach(g),o=K(n),s&&s.l(n),n.forEach(g),this.h()},h(){b(t,"class","tables-container svelte-s8xmdg"),b(e,"class","container svelte-s8xmdg"),M(e,"tablesHidden",i[0])},m(a,n){B(a,e,n),p(e,t),J(r,t,null),p(e,o),s&&s.m(e,null),l=!0},p(a,[n]){s&&s.p&&(!l||n&2)&&ke(s,d,a,a[1],l?ye(d,a[1],n,null):Ee(a[1]),null),(!l||n&1)&&M(e,"tablesHidden",a[0])},i(a){l||(C(r.$$.fragment,a),C(s,a),l=!0)},o(a){L(r.$$.fragment,a),L(s,a),l=!1},d(a){a&&g(e),F(r),s&&s.d(a)}}}function Ae(i,e,t){let{$$slots:r={},$$scope:o}=e,l=!1;re(()=>{document.addEventListener("keydown",s=>{!s.target.matches("input, textarea")&&s.key==="b"&&(t(0,l=!l),localStorage.tablesHidden=l)})});const d=()=>t(0,l=!1);return i.$$set=s=>{"$$scope"in s&&t(1,o=s.$$scope)},[l,o,r,d]}class Me extends le{constructor(e){super(),ae(this,e,Ae,Ke,ne,{})}}export{Me as component}; diff --git a/gui/next/build/_app/immutable/nodes/4.DzlISiii.js b/gui/next/build/_app/immutable/nodes/4.DzlISiii.js deleted file mode 100644 index 35802bfa7..000000000 --- a/gui/next/build/_app/immutable/nodes/4.DzlISiii.js +++ /dev/null @@ -1 +0,0 @@ -import{s as le,e as v,a as N,c as k,b as w,g as K,A as F,f as g,y as b,i as j,h as p,B as X,C as H,F as ie,r as ce,k as Y,E as fe,L as ue,U as ae,t as de,d as he,G as M,j as _e,M as me,n as G,z as Z,l as pe,u as be,m as ge,o as ve}from"../chunks/scheduler.CKQ5dLhN.js";import{S as ne,i as re,g as ke,a as L,e as Ee,t as C,j as ye,c as O,d as R,m as J,f as Q}from"../chunks/index.CGVWAVV-.js";import{e as x}from"../chunks/each.BWzj3zy9.js";import{f as Se}from"../chunks/index.WWWgbq8H.js";import{p as we}from"../chunks/stores.BLuxmlax.js";import{s as ee}from"../chunks/state.nqMW8J5l.js";import{t as Ie}from"../chunks/table.Cmn0kCDk.js";import{I as oe}from"../chunks/Icon.CkKwi_WD.js";function te(i,e,t){const r=i.slice();return r[15]=e[t],r[17]=t,r}function Ce(i){let e,t,r;return t=new oe({props:{icon:"search",size:"18"}}),{c(){e=v("i"),O(t.$$.fragment),this.h()},l(o){e=k(o,"I",{class:!0});var l=w(e);R(t.$$.fragment,l),l.forEach(g),this.h()},h(){b(e,"class","svelte-117f3bg")},m(o,l){j(o,e,l),J(t,e,null),r=!0},p:G,i(o){r||(C(t.$$.fragment,o),r=!0)},o(o){L(t.$$.fragment,o),r=!1},d(o){o&&g(e),Q(t)}}}function De(i){let e,t,r="Reset filter",o,l,d,s,a;return l=new oe({props:{icon:"x",size:"18"}}),{c(){e=v("button"),t=v("span"),t.textContent=r,o=N(),O(l.$$.fragment),this.h()},l(n){e=k(n,"BUTTON",{class:!0});var m=w(e);t=k(m,"SPAN",{class:!0,"data-svelte-h":!0}),F(t)!=="svelte-8g7ehw"&&(t.textContent=r),o=K(m),R(l.$$.fragment,m),m.forEach(g),this.h()},h(){b(t,"class","label"),b(e,"class","svelte-117f3bg")},m(n,m){j(n,e,m),p(e,t),p(e,o),J(l,e,null),d=!0,s||(a=H(e,"click",i[8]),s=!0)},p:G,i(n){d||(C(l.$$.fragment,n),d=!0)},o(n){L(l.$$.fragment,n),d=!1},d(n){n&&g(e),Q(l),s=!1,a()}}}function se(i){let e,t,r=i[15].name+"",o,l,d,s;return{c(){e=v("li"),t=v("a"),o=de(r),d=N(),this.h()},l(a){e=k(a,"LI",{});var n=w(e);t=k(n,"A",{href:!0,class:!0});var m=w(t);o=he(m,r),m.forEach(g),d=K(n),n.forEach(g),this.h()},h(){b(t,"href",l="/database/table/"+i[15].id),b(t,"class","svelte-117f3bg"),M(t,"active",i[15].id===i[4].params.id)},m(a,n){j(a,e,n),p(e,t),p(t,o),p(e,d)},p(a,n){n&1&&r!==(r=a[15].name+"")&&_e(o,r),n&1&&l!==(l="/database/table/"+a[15].id)&&b(t,"href",l),n&17&&M(t,"active",a[15].id===a[4].params.id)},i(a){a&&(s||me(()=>{s=ye(e,Se,{duration:100,delay:7*i[17]}),s.start()}))},o:G,d(a){a&&g(e)}}}function $e(i){let e,t,r,o,l,d,s,a,n,m="Ctrl",y,z="K",V,D,$,A,T,c;const U=[De,Ce],S=[];function B(f,_){return f[3]?0:1}o=B(i),l=S[o]=U[o](i);let I=x(i[0]),h=[];for(let f=0;f{S[E]=null}),Ee(),l=S[o],l?l.p(f,_):(l=S[o]=U[o](f),l.c()),C(l,1),l.m(r,d)),_&8&&s.value!==f[3]&&X(s,f[3]),_&17){I=x(f[0]);let u;for(u=0;ut(4,r=c)),Y(i,ee,c=>t(13,o=c));let l=o.tables,d=l,s,a,n;(async()=>await Ie.get())().then(c=>{l=c,t(0,d=c),fe(ee,o.tables=c,o)});const m=ue();ae(async()=>{a.focus(),document.addEventListener("keydown",c=>{c.ctrlKey&&c.key==="k"&&(c.preventDefault(),m("sidebarNeeded"),a.focus(),a.select())}),r.data.table&&s.querySelector(`[href$="${r.data.table.id}"]`).scrollIntoView({behavior:"smooth",block:"center"})});const y=()=>{n?t(0,d=l.filter(c=>c.name.includes(n))):t(0,d=l)},z=c=>{c.key==="Escape"&&(t(3,n=""),y()),c.key==="Enter"&&s.querySelector("li:first-child a").click()},V=c=>{var U,S,B,I,h,f,_,E,u,q;c.key==="ArrowDown"&&s.contains(document.activeElement)&&(c.preventDefault(),document.activeElement.matches("input")?(U=s.querySelector("a"))==null||U.focus():(h=(I=(B=(S=document.activeElement)==null?void 0:S.parentElement)==null?void 0:B.nextElementSibling)==null?void 0:I.querySelector("a"))==null||h.focus()),c.key==="ArrowUp"&&s.contains(document.activeElement)&&(c.preventDefault(),(f=document.activeElement)!=null&&f.matches("li:first-child a")?a.focus():(q=(u=(E=(_=document.activeElement)==null?void 0:_.parentElement)==null?void 0:E.previousElementSibling)==null?void 0:u.querySelector("a"))==null||q.focus()),c.key==="Escape"&&s.contains(document.activeElement)&&(a.focus(),t(3,n=""),y())},D=()=>{t(3,n=null),y()};function $(c){Z[c?"unshift":"push"](()=>{a=c,t(2,a)})}function A(){n=this.value,t(3,n)}function T(c){Z[c?"unshift":"push"](()=>{s=c,t(1,s)})}return[d,s,a,n,r,y,z,V,D,$,A,T]}class Ae extends ne{constructor(e){super(),re(this,e,qe,$e,le,{})}}function Ne(i){let e,t,r,o,l;r=new Ae({}),r.$on("sidebarNeeded",i[3]);const d=i[2].default,s=pe(d,i,i[1],null);return{c(){e=v("div"),t=v("div"),O(r.$$.fragment),o=N(),s&&s.c(),this.h()},l(a){e=k(a,"DIV",{class:!0});var n=w(e);t=k(n,"DIV",{class:!0});var m=w(t);R(r.$$.fragment,m),m.forEach(g),o=K(n),s&&s.l(n),n.forEach(g),this.h()},h(){b(t,"class","tables-container svelte-s8xmdg"),b(e,"class","container svelte-s8xmdg"),M(e,"tablesHidden",i[0])},m(a,n){j(a,e,n),p(e,t),J(r,t,null),p(e,o),s&&s.m(e,null),l=!0},p(a,[n]){s&&s.p&&(!l||n&2)&&be(s,d,a,a[1],l?ve(d,a[1],n,null):ge(a[1]),null),(!l||n&1)&&M(e,"tablesHidden",a[0])},i(a){l||(C(r.$$.fragment,a),C(s,a),l=!0)},o(a){L(r.$$.fragment,a),L(s,a),l=!1},d(a){a&&g(e),Q(r),s&&s.d(a)}}}function Ke(i,e,t){let{$$slots:r={},$$scope:o}=e,l=!1;ae(()=>{document.addEventListener("keydown",s=>{!s.target.matches("input, textarea")&&s.key==="b"&&(t(0,l=!l),localStorage.tablesHidden=l)})});const d=()=>t(0,l=!1);return i.$$set=s=>{"$$scope"in s&&t(1,o=s.$$scope)},[l,o,r,d]}class Me extends ne{constructor(e){super(),re(this,e,Ke,Ne,le,{})}}export{Me as component}; diff --git a/gui/next/build/_app/immutable/nodes/5.BGS2qweN.js b/gui/next/build/_app/immutable/nodes/5.BGS2qweN.js new file mode 100644 index 000000000..08e34e732 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/5.BGS2qweN.js @@ -0,0 +1 @@ +import{S as l,i,s as r,m as u,o as f,p as _,u as c,q as p,r as m}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";function $(n){let s;const a=n[1].default,e=u(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&c(e,a,t,t[0],s?m(a,t[0],o,null):p(t[0]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class q extends l{constructor(s){super(),i(this,s,d,$,r,{})}}export{q as component}; diff --git a/gui/next/build/_app/immutable/nodes/5.DPd-OXBN.js b/gui/next/build/_app/immutable/nodes/5.DPd-OXBN.js deleted file mode 100644 index dbbe00985..000000000 --- a/gui/next/build/_app/immutable/nodes/5.DPd-OXBN.js +++ /dev/null @@ -1 +0,0 @@ -import{s as l,l as i,u as r,m as u,o as f}from"../chunks/scheduler.CKQ5dLhN.js";import{S as _,i as c,t as m,a as p}from"../chunks/index.CGVWAVV-.js";function $(n){let s;const a=n[1].default,e=i(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(m(e,t),s=!0)},o(t){p(e,t),s=!1},d(t){e&&e.d(t)}}}function d(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class S extends _{constructor(s){super(),c(this,s,d,$,l,{})}}export{S as component}; diff --git a/gui/next/build/_app/immutable/nodes/6.BbecMI95.js b/gui/next/build/_app/immutable/nodes/6.BbecMI95.js deleted file mode 100644 index 406c3bce6..000000000 --- a/gui/next/build/_app/immutable/nodes/6.BbecMI95.js +++ /dev/null @@ -1,3 +0,0 @@ -import{s as ze,z as Fe,a as A,e as _,t as se,p as He,f as p,g as C,c,b as E,A as ie,d as ae,y as a,i as _e,h as n,B as me,C as ue,D as Ke,j as fe,r as Ve,k as we,E as je,F as Ge,G as Z,l as Ye,u as Je,m as Qe,o as We,H as Xe}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Ze,i as xe,b as et,c as de,d as be,m as Ee,t as j,a as x,e as tt,f as Te,g as st}from"../chunks/index.CGVWAVV-.js";import{g as at}from"../chunks/globals.D0QH3NT1.js";import{e as ye}from"../chunks/each.BWzj3zy9.js";import{g as lt}from"../chunks/entry.COceLI_i.js";import{p as rt}from"../chunks/stores.BLuxmlax.js";import{l as nt}from"../chunks/logsv2.twsCDidx.js";import{s as Me}from"../chunks/state.nqMW8J5l.js";import{I as Ne}from"../chunks/Icon.CkKwi_WD.js";import{N as ot}from"../chunks/Number.B4JDnNHn.js";const{document:Se}=at;function Oe(t,l,i){const e=t.slice();return e[16]=l[i],e}function Re(t){let l,i=ye(t[3].logsv2.hits),e=[];for(let s=0;set(U,"value",qe)),U.$on("input",t[14]);let b=t[0].params.id&&Be(t);return{c(){i=A(),e=_("div"),s=_("section"),f=_("nav"),r=_("form"),g=_("label"),g.textContent=w,k=A(),v=_("input"),T=A(),S=_("fieldset"),y=_("label"),de(L.$$.fragment),D=A(),d=_("input"),N=A(),P=_("button"),m=_("span"),m.textContent=B,h=A(),de(u.$$.fragment),G=A(),F=_("article"),M=_("table"),O=_("thead"),O.innerHTML=ee,Y=A(),I&&I.c(),J=A(),R=_("nav"),K=_("label"),K.textContent=Le,ce=A(),de(U.$$.fragment),he=se(`\r - of `),z=_("span"),le=se(te),ge=A(),b&&b.c(),this.h()},l(o){He("svelte-dfdkqr",Se.head).forEach(p),i=C(o),e=c(o,"DIV",{class:!0});var H=E(e);s=c(H,"SECTION",{class:!0});var q=E(s);f=c(q,"NAV",{class:!0});var De=E(f);r=c(De,"FORM",{action:!0,id:!0,class:!0});var Q=E(r);g=c(Q,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ie(g)!=="svelte-125i4ut"&&(g.textContent=w),k=C(Q),v=c(Q,"INPUT",{type:!0,name:!0,id:!0,min:!0,max:!0,class:!0}),T=C(Q),S=c(Q,"FIELDSET",{class:!0});var W=E(S);y=c(W,"LABEL",{for:!0,class:!0});var $e=E(y);be(L.$$.fragment,$e),$e.forEach(p),D=C(W),d=c(W,"INPUT",{type:!0,name:!0,id:!0,placeholder:!0,class:!0}),N=C(W),P=c(W,"BUTTON",{type:!0,class:!0});var ne=E(P);m=c(ne,"SPAN",{class:!0,"data-svelte-h":!0}),ie(m)!=="svelte-y4mewk"&&(m.textContent=B),h=C(ne),be(u.$$.fragment,ne),ne.forEach(p),W.forEach(p),Q.forEach(p),De.forEach(p),G=C(q),F=c(q,"ARTICLE",{class:!0});var Ae=E(F);M=c(Ae,"TABLE",{class:!0});var oe=E(M);O=c(oe,"THEAD",{class:!0,"data-svelte-h":!0}),ie(O)!=="svelte-uyatsk"&&(O.innerHTML=ee),Y=C(oe),I&&I.l(oe),oe.forEach(p),Ae.forEach(p),J=C(q),R=c(q,"NAV",{class:!0});var X=E(R);K=c(X,"LABEL",{for:!0,"data-svelte-h":!0}),ie(K)!=="svelte-1xadase"&&(K.textContent=Le),ce=C(X),be(U.$$.fragment,X),he=ae(X,`\r - of `),z=c(X,"SPAN",{class:!0,title:!0});var Ce=E(z);le=ae(Ce,te),Ce.forEach(p),X.forEach(p),q.forEach(p),ge=C(H),b&&b.l(H),H.forEach(p),this.h()},h(){a(g,"for","start_time"),a(g,"class","label svelte-1mrr17l"),a(v,"type","date"),a(v,"name","start_time"),a(v,"id","start_time"),a(v,"min",t[5].toISOString().split("T")[0]),a(v,"max",t[4].toISOString().split("T")[0]),a(v,"class","svelte-1mrr17l"),a(y,"for","filter_message"),a(y,"class","svelte-1mrr17l"),a(d,"type","text"),a(d,"name","message"),a(d,"id","filter_message"),a(d,"placeholder","Find logs"),a(d,"class","svelte-1mrr17l"),a(m,"class","label svelte-1mrr17l"),a(P,"type","submit"),a(P,"class","button svelte-1mrr17l"),a(S,"class","search svelte-1mrr17l"),a(r,"action",""),a(r,"id","filters"),a(r,"class","svelte-1mrr17l"),a(f,"class","filters svelte-1mrr17l"),a(O,"class","svelte-1mrr17l"),a(M,"class","svelte-1mrr17l"),a(F,"class","content svelte-1mrr17l"),a(K,"for","page"),a(z,"class","info svelte-1mrr17l"),a(z,"title",re=t[3].logsv2.total+" logs total"),a(R,"class","pagination svelte-1mrr17l"),a(s,"class","container svelte-1mrr17l"),a(e,"class","page svelte-1mrr17l")},m(o,$){_e(o,i,$),_e(o,e,$),n(e,s),n(s,f),n(f,r),n(r,g),n(r,k),n(r,v),me(v,t[2].start_time),n(r,T),n(r,S),n(S,y),Ee(L,y,null),n(S,D),n(S,d),me(d,t[2].message),n(S,N),n(S,P),n(P,m),n(P,h),Ee(u,P,null),t[11](r),n(s,G),n(s,F),n(F,M),n(M,O),n(M,Y),I&&I.m(M,null),n(s,J),n(s,R),n(R,K),n(R,ce),Ee(U,R,null),n(R,he),n(R,z),n(z,le),n(e,ge),b&&b.m(e,null),V=!0,ve||(Pe=[ue(v,"input",t[8]),ue(v,"input",t[9]),ue(d,"input",t[10]),ue(r,"submit",t[12])],ve=!0)},p(o,[$]){var q;(!V||$&8)&&l!==(l="Logs"+((q=o[3].online)!=null&&q.MPKIT_URL?": "+o[3].online.MPKIT_URL.replace("https://",""):""))&&(Se.title=l),$&4&&me(v,o[2].start_time),$&4&&d.value!==o[2].message&&me(d,o[2].message),o[3].logsv2.hits?I?I.p(o,$):(I=Re(o),I.c(),I.m(M,null)):I&&(I.d(1),I=null);const H={};$&8&&(H.max=Math.ceil(o[3].logsv2.total/o[3].logsv2.size)||20),!pe&&$&4&&(pe=!0,H.value=o[2].page,Ke(()=>pe=!1)),U.$set(H),(!V||$&8)&&te!==(te=(Math.ceil(o[3].logsv2.total/o[3].logsv2.size)||1)+"")&&fe(le,te),(!V||$&8&&re!==(re=o[3].logsv2.total+" logs total"))&&a(z,"title",re),o[0].params.id?b?(b.p(o,$),$&1&&j(b,1)):(b=Be(o),b.c(),j(b,1),b.m(e,null)):b&&(st(),x(b,1,1,()=>{b=null}),tt())},i(o){V||(j(L.$$.fragment,o),j(u.$$.fragment,o),j(U.$$.fragment,o),j(b),V=!0)},o(o){x(L.$$.fragment,o),x(u.$$.fragment,o),x(U.$$.fragment,o),x(b),V=!1},d(o){o&&(p(i),p(e)),Te(L),Te(u),t[11](null),I&&I.d(),Te(U),b&&b.d(),ve=!1,Ve(Pe)}}}function mt(t,l,i){let e,s;we(t,Me,m=>i(3,e=m)),we(t,rt,m=>i(0,s=m));let{$$slots:f={},$$scope:r}=l,g;const w=new Date,k=1e3*60*60*24,v=new Date(w-k*3);let T={page:1,start_time:w.toISOString().split("T")[0],...Object.fromEntries(s.url.searchParams)};function S(){T.start_time=this.value,i(2,T)}const y=()=>g.requestSubmit();function L(){T.message=this.value,i(2,T)}function D(m){Fe[m?"unshift":"push"](()=>{g=m,i(1,g)})}const d=async m=>{var B;((B=m.submitter)==null?void 0:B.dataset.action)!=="numberIncrease"&&(m.preventDefault(),i(2,T.page=1,T),await Xe(),lt(document.location.pathname+"?"+new URLSearchParams(new FormData(m.target)).toString()))};function N(m){t.$$.not_equal(T.page,m)&&(T.page=m,i(2,T))}const P=m=>{g.requestSubmit(m.detail.submitter)};return t.$$set=m=>{"$$scope"in m&&i(6,r=m.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&nt.get(Object.fromEntries(s.url.searchParams)).then(m=>je(Me,e.logsv2=m,e))},[s,g,T,e,w,v,r,f,S,y,L,D,d,N,P]}class Et extends Ze{constructor(l){super(),xe(this,l,mt,it,ze,{})}}export{Et as component}; diff --git a/gui/next/build/_app/immutable/nodes/6.Co53nSuQ.js b/gui/next/build/_app/immutable/nodes/6.Co53nSuQ.js new file mode 100644 index 000000000..8f3f727e3 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/6.Co53nSuQ.js @@ -0,0 +1,3 @@ +import{S as ze,i as Ke,s as He,C as Be,D as Ve,d as p,E as de,x as je,o as x,p as j,F as ie,G as Ge,a as fe,z as a,H as Je,b as _e,c as n,I as be,J as me,v as Qe,h as A,e as _,f as E,K as ue,L as Ee,g as se,k as C,j as c,M as Te,t as ae,l as we,N as Ye,O as We,m as Xe,u as Ze,q as xe,r as et,P as tt,Q as Z,R as st}from"../chunks/n7YEDvJi.js";import{g as at}from"../chunks/D0QH3NT1.js";import{e as Me}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{g as lt}from"../chunks/BkTZdoZE.js";import{p as rt}from"../chunks/C6Nbyvij.js";import{l as nt}from"../chunks/twsCDidx.js";import{s as ye}from"../chunks/Bp_ajb_u.js";import{I as Ne}from"../chunks/DHO4ENnJ.js";import{N as ot}from"../chunks/CYamOUSl.js";const{document:Le}=at;function Oe(t,l,i){const e=t.slice();return e[16]=l[i],e}function Re(t){let l,i=Me(t[3].logsv2.hits),e=[];for(let s=0;sVe(U,"value",Fe)),U.$on("input",t[14]);let b=t[0].params.id&&qe(t);return{c(){i=C(),e=c("div"),s=c("section"),f=c("nav"),r=c("form"),g=c("label"),g.textContent=w,k=C(),v=c("input"),T=C(),L=c("fieldset"),M=c("label"),Te(S.$$.fragment),D=C(),d=c("input"),N=C(),P=c("button"),m=c("span"),m.textContent=q,h=C(),Te(u.$$.fragment),G=C(),B=c("article"),y=c("table"),O=c("thead"),O.innerHTML=ee,J=C(),I&&I.c(),Q=C(),R=c("nav"),H=c("label"),H.textContent=Se,ce=C(),Te(U.$$.fragment),he=ae(` + of `),z=c("span"),le=ae(te),ge=C(),b&&b.c(),this.h()},l(o){Qe("svelte-dfdkqr",Le.head).forEach(p),i=A(o),e=_(o,"DIV",{class:!0});var K=E(e);s=_(K,"SECTION",{class:!0});var F=E(s);f=_(F,"NAV",{class:!0});var De=E(f);r=_(De,"FORM",{action:!0,id:!0,class:!0});var Y=E(r);g=_(Y,"LABEL",{for:!0,class:!0,"data-svelte-h":!0}),ue(g)!=="svelte-125i4ut"&&(g.textContent=w),k=A(Y),v=_(Y,"INPUT",{type:!0,name:!0,id:!0,min:!0,max:!0,class:!0}),T=A(Y),L=_(Y,"FIELDSET",{class:!0});var W=E(L);M=_(W,"LABEL",{for:!0,class:!0});var $e=E(M);Ee(S.$$.fragment,$e),$e.forEach(p),D=A(W),d=_(W,"INPUT",{type:!0,name:!0,id:!0,placeholder:!0,class:!0}),N=A(W),P=_(W,"BUTTON",{type:!0,class:!0});var ne=E(P);m=_(ne,"SPAN",{class:!0,"data-svelte-h":!0}),ue(m)!=="svelte-y4mewk"&&(m.textContent=q),h=A(ne),Ee(u.$$.fragment,ne),ne.forEach(p),W.forEach(p),Y.forEach(p),De.forEach(p),G=A(F),B=_(F,"ARTICLE",{class:!0});var Ae=E(B);y=_(Ae,"TABLE",{class:!0});var oe=E(y);O=_(oe,"THEAD",{class:!0,"data-svelte-h":!0}),ue(O)!=="svelte-uyatsk"&&(O.innerHTML=ee),J=A(oe),I&&I.l(oe),oe.forEach(p),Ae.forEach(p),Q=A(F),R=_(F,"NAV",{class:!0});var X=E(R);H=_(X,"LABEL",{for:!0,"data-svelte-h":!0}),ue(H)!=="svelte-1xadase"&&(H.textContent=Se),ce=A(X),Ee(U.$$.fragment,X),he=se(X,` + of `),z=_(X,"SPAN",{class:!0,title:!0});var Ce=E(z);le=se(Ce,te),Ce.forEach(p),X.forEach(p),F.forEach(p),ge=A(K),b&&b.l(K),K.forEach(p),this.h()},h(){a(g,"for","start_time"),a(g,"class","label svelte-1mrr17l"),a(v,"type","date"),a(v,"name","start_time"),a(v,"id","start_time"),a(v,"min",t[5].toISOString().split("T")[0]),a(v,"max",t[4].toISOString().split("T")[0]),a(v,"class","svelte-1mrr17l"),a(M,"for","filter_message"),a(M,"class","svelte-1mrr17l"),a(d,"type","text"),a(d,"name","message"),a(d,"id","filter_message"),a(d,"placeholder","Find logs"),a(d,"class","svelte-1mrr17l"),a(m,"class","label svelte-1mrr17l"),a(P,"type","submit"),a(P,"class","button svelte-1mrr17l"),a(L,"class","search svelte-1mrr17l"),a(r,"action",""),a(r,"id","filters"),a(r,"class","svelte-1mrr17l"),a(f,"class","filters svelte-1mrr17l"),a(O,"class","svelte-1mrr17l"),a(y,"class","svelte-1mrr17l"),a(B,"class","content svelte-1mrr17l"),a(H,"for","page"),a(z,"class","info svelte-1mrr17l"),a(z,"title",re=t[3].logsv2.total+" logs total"),a(R,"class","pagination svelte-1mrr17l"),a(s,"class","container svelte-1mrr17l"),a(e,"class","page svelte-1mrr17l")},m(o,$){_e(o,i,$),_e(o,e,$),n(e,s),n(s,f),n(f,r),n(r,g),n(r,k),n(r,v),ie(v,t[2].start_time),n(r,T),n(r,L),n(L,M),be(S,M,null),n(L,D),n(L,d),ie(d,t[2].message),n(L,N),n(L,P),n(P,m),n(P,h),be(u,P,null),t[11](r),n(s,G),n(s,B),n(B,y),n(y,O),n(y,J),I&&I.m(y,null),n(s,Q),n(s,R),n(R,H),n(R,ce),be(U,R,null),n(R,he),n(R,z),n(z,le),n(e,ge),b&&b.m(e,null),V=!0,ve||(Pe=[me(v,"input",t[8]),me(v,"input",t[9]),me(d,"input",t[10]),me(r,"submit",t[12])],ve=!0)},p(o,[$]){var F;(!V||$&8)&&l!==(l="Logs"+((F=o[3].online)!=null&&F.MPKIT_URL?": "+o[3].online.MPKIT_URL.replace("https://",""):""))&&(Le.title=l),$&4&&ie(v,o[2].start_time),$&4&&d.value!==o[2].message&&ie(d,o[2].message),o[3].logsv2.hits?I?I.p(o,$):(I=Re(o),I.c(),I.m(y,null)):I&&(I.d(1),I=null);const K={};$&8&&(K.max=Math.ceil(o[3].logsv2.total/o[3].logsv2.size)||20),!pe&&$&4&&(pe=!0,K.value=o[2].page,Ge(()=>pe=!1)),U.$set(K),(!V||$&8)&&te!==(te=(Math.ceil(o[3].logsv2.total/o[3].logsv2.size)||1)+"")&&fe(le,te),(!V||$&8&&re!==(re=o[3].logsv2.total+" logs total"))&&a(z,"title",re),o[0].params.id?b?(b.p(o,$),$&1&&j(b,1)):(b=qe(o),b.c(),j(b,1),b.m(e,null)):b&&(st(),x(b,1,1,()=>{b=null}),Je())},i(o){V||(j(S.$$.fragment,o),j(u.$$.fragment,o),j(U.$$.fragment,o),j(b),V=!0)},o(o){x(S.$$.fragment,o),x(u.$$.fragment,o),x(U.$$.fragment,o),x(b),V=!1},d(o){o&&(p(i),p(e)),de(S),de(u),t[11](null),I&&I.d(),de(U),b&&b.d(),ve=!1,je(Pe)}}}function mt(t,l,i){let e,s;we(t,ye,m=>i(3,e=m)),we(t,rt,m=>i(0,s=m));let{$$slots:f={},$$scope:r}=l,g;const w=new Date,k=1e3*60*60*24,v=new Date(w-k*3);let T={page:1,start_time:w.toISOString().split("T")[0],...Object.fromEntries(s.url.searchParams)};function L(){T.start_time=this.value,i(2,T)}const M=()=>g.requestSubmit();function S(){T.message=this.value,i(2,T)}function D(m){Be[m?"unshift":"push"](()=>{g=m,i(1,g)})}const d=async m=>{var q;((q=m.submitter)==null?void 0:q.dataset.action)!=="numberIncrease"&&(m.preventDefault(),i(2,T.page=1,T),await tt(),lt(document.location.pathname+"?"+new URLSearchParams(new FormData(m.target)).toString()))};function N(m){t.$$.not_equal(T.page,m)&&(T.page=m,i(2,T))}const P=m=>{g.requestSubmit(m.detail.submitter)};return t.$$set=m=>{"$$scope"in m&&i(6,r=m.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&nt.get(Object.fromEntries(s.url.searchParams)).then(m=>Ye(ye,e.logsv2=m,e))},[s,g,T,e,w,v,r,f,L,M,S,D,d,N,P]}class Et extends ze{constructor(l){super(),Ke(this,l,mt,it,He,{})}}export{Et as component}; diff --git a/gui/next/build/_app/immutable/nodes/7.CKEMr56f.js b/gui/next/build/_app/immutable/nodes/7.CKEMr56f.js new file mode 100644 index 000000000..febcb0845 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/7.CKEMr56f.js @@ -0,0 +1 @@ +import{S as Rl,i as Ul,s as Hl,d as _,E as Ie,O as Qt,x as Wt,o as Z,p as B,R as Nt,H as Ct,b as U,c as n,I as Oe,J as Ee,V as Vl,z as o,e as f,f as g,h as O,K as ie,L as Le,j as h,k as L,M as qe,W as Bl,a as G,g as M,t as y,C as Ce,Q as be,F as oe,a9 as jl,v as Kl,l as kl,a5 as Zl,n as Jl,m as zl,u as Yl,q as Gl,r as Ql,N as wl,P as Tl,aa as Wl,ab as Xl,ac as Nl}from"../chunks/n7YEDvJi.js";import{e as Qe}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{o as xl,b as es,a as ts}from"../chunks/BkTZdoZE.js";import{p as ls}from"../chunks/C6Nbyvij.js";import{n as ss}from"../chunks/hGAcGvnf.js";import{s as Gt}from"../chunks/Bp_ajb_u.js";import{T as as,c as rs}from"../chunks/B9_cNKsK.js";import{I as We}from"../chunks/DHO4ENnJ.js";import{g as ns}from"../chunks/D0QH3NT1.js";const{window:os}=ns;function Cl(t,l,s){const e=t.slice();return e[9]=l[s],e[11]=s,e}function Il(t){let l,s,e=t[9].name+"",a,i,r,u,E,P,p,k,c,b,C,T,w=t[9].name+"",d,N,v,m,D,S,j,ue;return m=new We({props:{icon:"x"}}),{c(){l=h("li"),s=h("a"),a=y(e),r=L(),u=h("form"),E=h("input"),P=L(),p=h("input"),c=L(),b=h("button"),C=h("span"),T=y("Delete '"),d=y(w),N=y("' preset"),v=L(),qe(m.$$.fragment),D=L(),this.h()},l(A){l=f(A,"LI",{class:!0});var R=g(l);s=f(R,"A",{href:!0,class:!0});var Q=g(s);a=M(Q,e),Q.forEach(_),r=O(R),u=f(R,"FORM",{class:!0});var x=g(u);E=f(x,"INPUT",{type:!0,name:!0}),P=O(x),p=f(x,"INPUT",{type:!0,name:!0}),c=O(x),b=f(x,"BUTTON",{type:!0,class:!0});var Y=g(b);C=f(Y,"SPAN",{class:!0});var W=g(C);T=M(W,"Delete '"),d=M(W,w),N=M(W,"' preset"),W.forEach(_),v=O(Y),Le(m.$$.fragment,Y),Y.forEach(_),x.forEach(_),D=O(R),R.forEach(_),this.h()},h(){o(s,"href",i="/network?"+t[9].url),o(s,"class","svelte-778p5v"),o(E,"type","hidden"),o(E,"name","id"),E.value=t[11],o(p,"type","hidden"),o(p,"name","name"),p.value=k=t[9].name,o(C,"class","label"),o(b,"type","submit"),o(b,"class","svelte-778p5v"),o(u,"class","svelte-778p5v"),o(l,"class","svelte-778p5v")},m(A,R){U(A,l,R),n(l,s),n(s,a),n(l,r),n(l,u),n(u,E),n(u,P),n(u,p),n(u,c),n(u,b),n(b,C),n(C,T),n(C,d),n(C,N),n(b,v),Oe(m,b,null),n(l,D),S=!0,j||(ue=Ee(u,"submit",Vl(t[5])),j=!0)},p(A,R){(!S||R&4)&&e!==(e=A[9].name+"")&&G(a,e),(!S||R&4&&i!==(i="/network?"+A[9].url))&&o(s,"href",i),(!S||R&4&&k!==(k=A[9].name))&&(p.value=k),(!S||R&4)&&w!==(w=A[9].name+"")&&G(d,w)},i(A){S||(B(m.$$.fragment,A),S=!0)},o(A){Z(m.$$.fragment,A),S=!1},d(A){A&&_(l),Ie(m),j=!1,ue()}}}function Ol(t){let l,s="You can save your current filters selection to get back to them quickly in the future.";return{c(){l=h("div"),l.textContent=s,this.h()},l(e){l=f(e,"DIV",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-14bf7on"&&(l.textContent=s),this.h()},h(){o(l,"class","message svelte-778p5v")},m(e,a){U(e,l,a)},d(e){e&&_(l)}}}function is(t){let l,s,e,a,i,r,u="Save currently selected filters as new preset",E,P,p,k,c,b,C,T;P=new We({props:{icon:"plus"}});let w=Qe(t[2]),d=[];for(let m=0;mZ(d[m],1,1,()=>{d[m]=null});let v=!t[2].length&&Ol();return{c(){l=h("div"),s=h("form"),e=h("input"),a=L(),i=h("button"),r=h("span"),r.textContent=u,E=L(),qe(P.$$.fragment),p=L(),k=h("ul");for(let m=0;m{r("close")});function E(c){let b=new URLSearchParams(document.location.search);b.delete("start_time"),s(2,i=[...i,{url:b.toString(),name:a.value}]),localStorage.posNetworkLogsPresets=JSON.stringify(i),s(1,a.value="",a)}function P(c){const b=new FormData(c.target),C=b.get("id"),T=b.get("name");window.confirm(`Are you sure that you want to delete '${T}' preset?`)&&(i.splice(C,1),s(2,i),localStorage.posNetworkLogsPresets=JSON.stringify(i))}function p(c){Ce[c?"unshift":"push"](()=>{a=c,s(1,a)})}function k(c){Ce[c?"unshift":"push"](()=>{e=c,s(0,e)})}return[e,a,i,u,E,P,p,k]}class _s extends Rl{constructor(l){super(),Ul(this,l,us,is,Hl,{})}}function Ll(t,l,s){const e=t.slice();return e[33]=l[s],e}function ql(t,l,s){const e=t.slice();return e[36]=l[s],e}function Dl(t){let l,s;return l=new _s({}),l.$on("close",t[13]),{c(){qe(l.$$.fragment)},l(e){Le(l.$$.fragment,e)},m(e,a){Oe(l,e,a),s=!0},p:Jl,i(e){s||(B(l.$$.fragment,e),s=!0)},o(e){Z(l.$$.fragment,e),s=!1},d(e){Ie(l,e)}}}function cs(t){let l,s;return l=new We({props:{icon:"sortAZ"}}),{c(){qe(l.$$.fragment)},l(e){Le(l.$$.fragment,e)},m(e,a){Oe(l,e,a),s=!0},i(e){s||(B(l.$$.fragment,e),s=!0)},o(e){Z(l.$$.fragment,e),s=!1},d(e){Ie(l,e)}}}function fs(t){let l,s;return l=new We({props:{icon:"sortZA"}}),{c(){qe(l.$$.fragment)},l(e){Le(l.$$.fragment,e)},m(e,a){Oe(l,e,a),s=!0},i(e){s||(B(l.$$.fragment,e),s=!0)},o(e){Z(l.$$.fragment,e),s=!1},d(e){Ie(l,e)}}}function Al(t){let l,s=Qe(t[10].networks.aggs.filters),e=[];for(let a=0;a=200&&t[33].lb_status_code<300),be(u,"info",t[33].lb_status_code>=300&&t[33].lb_status_code<400),be(u,"error",t[33].lb_status_code>=400&&t[33].lb_status_code<600)},m(c,b){U(c,l,b),n(l,s),n(s,a),U(c,r,b),U(c,u,b),n(u,E),n(E,p)},p(c,b){b[0]&1024&&e!==(e=new Date(c[33]._timestamp/1e3).toLocaleString()+"")&&G(a,e),b[0]&1536&&i!==(i="/network/"+c[33]._timestamp+"?"+c[9].url.searchParams.toString())&&o(s,"href",i),b[0]&1024&&P!==(P=c[33].lb_status_code+"")&&G(p,P),b[0]&1536&&k!==(k="/network/"+c[33]._timestamp+"?"+c[9].url.searchParams.toString())&&o(E,"href",k),b[0]&1024&&be(u,"success",c[33].lb_status_code>=200&&c[33].lb_status_code<300),b[0]&1024&&be(u,"info",c[33].lb_status_code>=300&&c[33].lb_status_code<400),b[0]&1024&&be(u,"error",c[33].lb_status_code>=400&&c[33].lb_status_code<600)},d(c){c&&(_(l),_(r),_(u))}}}function gs(t){let l,s,e=t[33].count+"",a;return{c(){l=h("td"),s=h("div"),a=y(e),this.h()},l(i){l=f(i,"TD",{class:!0});var r=g(l);s=f(r,"DIV",{class:!0});var u=g(s);a=M(u,e),u.forEach(_),r.forEach(_),this.h()},h(){o(s,"class","svelte-lmet59"),o(l,"class","count svelte-lmet59")},m(i,r){U(i,l,r),n(l,s),n(s,a)},p(i,r){r[0]&1024&&e!==(e=i[33].count+"")&&G(a,e)},d(i){i&&_(l)}}}function ps(t){let l,s,e=t[33].http_request_method+"",a,i,r=t[33].http_request_path+"",u;return{c(){l=h("div"),s=h("span"),a=y(e),i=L(),u=y(r),this.h()},l(E){l=f(E,"DIV",{class:!0});var P=g(l);s=f(P,"SPAN",{class:!0});var p=g(s);a=M(p,e),p.forEach(_),i=O(P),u=M(P,r),P.forEach(_),this.h()},h(){o(s,"class","method svelte-lmet59"),o(l,"class","svelte-lmet59")},m(E,P){U(E,l,P),n(l,s),n(s,a),n(l,i),n(l,u)},p(E,P){P[0]&1024&&e!==(e=E[33].http_request_method+"")&&G(a,e),P[0]&1024&&r!==(r=E[33].http_request_path+"")&&G(u,r)},d(E){E&&_(l)}}}function vs(t){let l,s,e,a=t[33].http_request_method+"",i,r,u=t[33].http_request_path+"",E,P;return{c(){l=h("a"),s=h("div"),e=h("span"),i=y(a),r=L(),E=y(u),this.h()},l(p){l=f(p,"A",{href:!0,class:!0});var k=g(l);s=f(k,"DIV",{class:!0});var c=g(s);e=f(c,"SPAN",{class:!0});var b=g(e);i=M(b,a),b.forEach(_),r=O(c),E=M(c,u),c.forEach(_),k.forEach(_),this.h()},h(){o(e,"class","method svelte-lmet59"),o(s,"class","svelte-lmet59"),o(l,"href",P="/network/"+t[33]._timestamp+"?"+t[9].url.searchParams.toString()),o(l,"class","svelte-lmet59")},m(p,k){U(p,l,k),n(l,s),n(s,e),n(e,i),n(s,r),n(s,E)},p(p,k){k[0]&1024&&a!==(a=p[33].http_request_method+"")&&G(i,a),k[0]&1024&&u!==(u=p[33].http_request_path+"")&&G(E,u),k[0]&1536&&P!==(P="/network/"+p[33]._timestamp+"?"+p[9].url.searchParams.toString())&&o(l,"href",P)},d(p){p&&_(l)}}}function bs(t){let l,s=Math.round((parseFloat(t[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"",e,a,i;return{c(){l=h("div"),e=y(s),a=y("s"),this.h()},l(r){l=f(r,"DIV",{title:!0,class:!0});var u=g(l);e=M(u,s),a=M(u,"s"),u.forEach(_),this.h()},h(){o(l,"title",i="Median: "+Math.round((parseFloat(t[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMean: "+Math.round((parseFloat(t[33].avg_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMin: "+Math.round((parseFloat(t[33].min_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMax: "+Math.round((parseFloat(t[33].max_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s"),o(l,"class","svelte-lmet59")},m(r,u){U(r,l,u),n(l,e),n(l,a)},p(r,u){u[0]&1024&&s!==(s=Math.round((parseFloat(r[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"")&&G(e,s),u[0]&1024&&i!==(i="Median: "+Math.round((parseFloat(r[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMean: "+Math.round((parseFloat(r[33].avg_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMin: "+Math.round((parseFloat(r[33].min_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMax: "+Math.round((parseFloat(r[33].max_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s")&&o(l,"title",i)},d(r){r&&_(l)}}}function Es(t){let l,s=Math.round((parseFloat(t[33].target_processing_time)+Number.EPSILON)*1e3)/1e3+"",e,a,i;return{c(){l=h("a"),e=y(s),a=y("s"),this.h()},l(r){l=f(r,"A",{href:!0,class:!0});var u=g(l);e=M(u,s),a=M(u,"s"),u.forEach(_),this.h()},h(){o(l,"href",i="/network/"+t[33]._timestamp+"?"+t[9].url.searchParams.toString()),o(l,"class","svelte-lmet59")},m(r,u){U(r,l,u),n(l,e),n(l,a)},p(r,u){u[0]&1024&&s!==(s=Math.round((parseFloat(r[33].target_processing_time)+Number.EPSILON)*1e3)/1e3+"")&&G(e,s),u[0]&1536&&i!==(i="/network/"+r[33]._timestamp+"?"+r[9].url.searchParams.toString())&&o(l,"href",i)},d(r){r&&_(l)}}}function $l(t){let l,s,e,a,i,r,u,E,P;function p(v,m){return m[0]&512&&(s=null),s==null&&(s=!!v[9].url.searchParams.get("aggregate")),s?gs:ds}let k=p(t,[-1,-1]),c=k(t);function b(v,m){return m[0]&512&&(i=null),i==null&&(i=!v[9].url.searchParams.get("aggregate")),i?vs:ps}let C=b(t,[-1,-1]),T=C(t);function w(v,m){return m[0]&512&&(E=null),E==null&&(E=!v[9].url.searchParams.get("aggregate")),E?Es:bs}let d=w(t,[-1,-1]),N=d(t);return{c(){l=h("tr"),c.c(),e=L(),a=h("td"),T.c(),r=L(),u=h("td"),N.c(),P=L(),this.h()},l(v){l=f(v,"TR",{class:!0});var m=g(l);c.l(m),e=O(m),a=f(m,"TD",{class:!0});var D=g(a);T.l(D),D.forEach(_),r=O(m),u=f(m,"TD",{class:!0});var S=g(u);N.l(S),S.forEach(_),P=O(m),m.forEach(_),this.h()},h(){o(a,"class","request svelte-lmet59"),o(u,"class","duration svelte-lmet59"),o(l,"class","svelte-lmet59"),be(l,"active",t[33]._timestamp&&t[9].params.id==t[33]._timestamp)},m(v,m){U(v,l,m),c.m(l,null),n(l,e),n(l,a),T.m(a,null),n(l,r),n(l,u),N.m(u,null),n(l,P)},p(v,m){k===(k=p(v,m))&&c?c.p(v,m):(c.d(1),c=k(v),c&&(c.c(),c.m(l,e))),C===(C=b(v,m))&&T?T.p(v,m):(T.d(1),T=C(v),T&&(T.c(),T.m(a,null))),d===(d=w(v,m))&&N?N.p(v,m):(N.d(1),N=d(v),N&&(N.c(),N.m(u,null))),m[0]&1536&&be(l,"active",v[33]._timestamp&&v[9].params.id==v[33]._timestamp)},d(v){v&&_(l),c.d(),T.d(),N.d()}}}function Fl(t){let l;const s=t[15].default,e=zl(s,t,t[14],null);return{c(){e&&e.c()},l(a){e&&e.l(a)},m(a,i){e&&e.m(a,i),l=!0},p(a,i){e&&e.p&&(!l||i[0]&16384)&&Yl(e,s,a,a[14],l?Ql(s,a[14],i,null):Gl(a[14]),null)},i(a){l||(B(e,a),l=!0)},o(a){Z(e,a),l=!1},d(a){e&&e.d(a)}}}function Ps(t){var rl,nl,ol,il,ul;let l,s,e,a,i,r,u="Filters",E,P,p,k,c="Choose filters preset",b,C,T,w,d,N="Reset",v,m,D,S,j,ue,A,R,Q,x,Y,W,lt='',Xe,ee,K,X,Be,I,je,te,It,st,at,le,Ot,rt,nt,se,Lt,ot,it,ae,qt,ut,_t,re,Dt,ct,ft,At,_e,me,Mt,ht,de,yt,mt,$t,we,dt,ce,fe,Ft,De,Ae,Xt='',Rt,ne,gt,Ut,ge,Me,xt="Status Code",Ht,pe,Vt,Bt,Ke,Ze,Pe,Je,he,pt,vt,Te,xe=t[9].url.searchParams.get("aggregate")=="http_request_path"?"Aggregated ":"",bt,jt,et=t[9].url.searchParams.get("aggregate")=="http_request_path"?"s":"",Et,Kt,ye,el="Processing Time",Zt,Jt,$,zt,tl;document.title=l="Logs"+((rl=t[10].online)!=null&&rl.MPKIT_URL?": "+t[10].online.MPKIT_URL.replace("https://",""):""),C=new We({props:{icon:"controlls"}}),m=new We({props:{icon:"disable"}});let H=t[7]&&Dl(t);Q=new as({props:{name:"aggregate",options:[{value:"http_request_path",label:"Aggregate requests"}],checked:t[9].url.searchParams.get("aggregate")}}),Q.$on("change",t[19]);const ll=[fs,cs],$e=[];function sl(F,q){return q[0]&512&&(dt=null),dt==null&&(dt=F[9].url.searchParams.get("order")==="DESC"||!F[9].url.searchParams.get("order")),dt?0:1}ce=sl(t,[-1,-1]),fe=$e[ce]=ll[ce](t);let J=((ol=(nl=t[10].networks)==null?void 0:nl.aggs)==null?void 0:ol.filters)&&Al(t);function al(F,q){return q[0]&512&&(pt=null),pt==null&&(pt=!!F[9].url.searchParams.get("aggregate")),pt?ms:hs}let Pt=al(t,[-1,-1]),Se=Pt(t),z=((ul=(il=t[10].networks)==null?void 0:il.aggs)==null?void 0:ul.results)&&yl(t),V=t[9].params.id&&Fl(t);return{c(){s=L(),e=h("div"),a=h("nav"),i=h("header"),r=h("h2"),r.textContent=u,E=L(),P=h("nav"),p=h("button"),k=h("span"),k.textContent=c,b=L(),qe(C.$$.fragment),T=L(),w=h("a"),d=h("span"),d.textContent=N,v=L(),qe(m.$$.fragment),D=L(),S=h("dialog"),H&&H.c(),ue=L(),A=h("form"),R=h("fieldset"),qe(Q.$$.fragment),x=L(),Y=h("fieldset"),W=h("h3"),W.innerHTML=lt,Xe=L(),ee=h("div"),K=h("select"),X=h("option"),Be=y("Count"),te=h("option"),It=y("Request path"),le=h("option"),Ot=y("Processing time"),se=h("option"),Lt=y("Time"),ae=h("option"),qt=y("Request path"),re=h("option"),Dt=y("Processing Time"),At=L(),_e=h("select"),me=h("option"),Mt=y("DESC [Z→A]"),de=h("option"),yt=y("ASC [A→Z]"),$t=L(),we=h("label"),fe.c(),Ft=L(),De=h("fieldset"),Ae=h("h3"),Ae.innerHTML=Xt,Rt=L(),ne=h("input"),Ut=L(),ge=h("fieldset"),Me=h("h3"),Me.textContent=xt,Ht=L(),pe=h("input"),Vt=L(),J&&J.c(),Bt=L(),Ke=h("section"),Ze=h("article"),Pe=h("table"),Je=h("thead"),he=h("tr"),Se.c(),vt=L(),Te=h("th"),bt=y(xe),jt=y("Request"),Et=y(et),Kt=L(),ye=h("th"),ye.textContent=el,Zt=L(),z&&z.c(),Jt=L(),V&&V.c(),this.h()},l(F){Kl("svelte-dfdkqr",document.head).forEach(_),s=O(F),e=f(F,"DIV",{class:!0});var ke=g(e);a=f(ke,"NAV",{class:!0});var ve=g(a);i=f(ve,"HEADER",{class:!0});var Fe=g(i);r=f(Fe,"H2",{class:!0,"data-svelte-h":!0}),ie(r)!=="svelte-1ydm89n"&&(r.textContent=u),E=O(Fe),P=f(Fe,"NAV",{class:!0});var Re=g(P);p=f(Re,"BUTTON",{type:!0,title:!0,class:!0});var Ue=g(p);k=f(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),ie(k)!=="svelte-p09m9k"&&(k.textContent=c),b=O(Ue),Le(C.$$.fragment,Ue),Ue.forEach(_),T=O(Re),w=f(Re,"A",{href:!0,title:!0,class:!0});var He=g(w);d=f(He,"SPAN",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-1c96jh2"&&(d.textContent=N),v=O(He),Le(m.$$.fragment,He),He.forEach(_),Re.forEach(_),Fe.forEach(_),D=O(ve),S=f(ve,"DIALOG",{class:!0});var tt=g(S);H&&H.l(tt),tt.forEach(_),ue=O(ve),A=f(ve,"FORM",{action:!0,id:!0,class:!0});var Ne=g(A);R=f(Ne,"FIELDSET",{class:!0});var _l=g(R);Le(Q.$$.fragment,_l),_l.forEach(_),x=O(Ne),Y=f(Ne,"FIELDSET",{class:!0});var St=g(Y);W=f(St,"H3",{class:!0,"data-svelte-h":!0}),ie(W)!=="svelte-e2rbyt"&&(W.innerHTML=lt),Xe=O(St),ee=f(St,"DIV",{class:!0});var ze=g(ee);K=f(ze,"SELECT",{name:!0,id:!0,class:!0});var Ve=g(K);X=f(Ve,"OPTION",{});var cl=g(X);Be=M(cl,"Count"),cl.forEach(_),te=f(Ve,"OPTION",{});var fl=g(te);It=M(fl,"Request path"),fl.forEach(_),le=f(Ve,"OPTION",{});var hl=g(le);Ot=M(hl,"Processing time"),hl.forEach(_),se=f(Ve,"OPTION",{});var ml=g(se);Lt=M(ml,"Time"),ml.forEach(_),ae=f(Ve,"OPTION",{});var dl=g(ae);qt=M(dl,"Request path"),dl.forEach(_),re=f(Ve,"OPTION",{});var gl=g(re);Dt=M(gl,"Processing Time"),gl.forEach(_),Ve.forEach(_),At=O(ze),_e=f(ze,"SELECT",{name:!0,id:!0,class:!0});var Yt=g(_e);me=f(Yt,"OPTION",{});var pl=g(me);Mt=M(pl,"DESC [Z→A]"),pl.forEach(_),de=f(Yt,"OPTION",{});var vl=g(de);yt=M(vl,"ASC [A→Z]"),vl.forEach(_),Yt.forEach(_),$t=O(ze),we=f(ze,"LABEL",{for:!0,class:!0});var bl=g(we);fe.l(bl),bl.forEach(_),ze.forEach(_),St.forEach(_),Ft=O(Ne),De=f(Ne,"FIELDSET",{});var kt=g(De);Ae=f(kt,"H3",{class:!0,"data-svelte-h":!0}),ie(Ae)!=="svelte-kjwpiv"&&(Ae.innerHTML=Xt),Rt=O(kt),ne=f(kt,"INPUT",{type:!0,name:!0,id:!0,min:!0,max:!0,class:!0}),kt.forEach(_),Ut=O(Ne),ge=f(Ne,"FIELDSET",{});var Ye=g(ge);Me=f(Ye,"H3",{class:!0,"data-svelte-h":!0}),ie(Me)!=="svelte-tzgpg7"&&(Me.textContent=xt),Ht=O(Ye),pe=f(Ye,"INPUT",{type:!0,name:!0,class:!0}),Vt=O(Ye),J&&J.l(Ye),Ye.forEach(_),Ne.forEach(_),ve.forEach(_),Bt=O(ke),Ke=f(ke,"SECTION",{class:!0});var El=g(Ke);Ze=f(El,"ARTICLE",{class:!0});var Pl=g(Ze);Pe=f(Pl,"TABLE",{class:!0});var wt=g(Pe);Je=f(wt,"THEAD",{class:!0});var Sl=g(Je);he=f(Sl,"TR",{class:!0});var Ge=g(he);Se.l(Ge),vt=O(Ge),Te=f(Ge,"TH",{class:!0});var Tt=g(Te);bt=M(Tt,xe),jt=M(Tt,"Request"),Et=M(Tt,et),Tt.forEach(_),Kt=O(Ge),ye=f(Ge,"TH",{class:!0,"data-svelte-h":!0}),ie(ye)!=="svelte-1h8jpo9"&&(ye.textContent=el),Ge.forEach(_),Sl.forEach(_),Zt=O(wt),z&&z.l(wt),wt.forEach(_),Pl.forEach(_),El.forEach(_),Jt=O(ke),V&&V.l(ke),ke.forEach(_),this.h()},h(){o(r,"class","svelte-lmet59"),o(k,"class","label svelte-lmet59"),o(p,"type","button"),o(p,"title","Saved filters presets"),o(p,"class","svelte-lmet59"),be(p,"active",t[7]),o(d,"class","label svelte-lmet59"),o(w,"href","/network"),o(w,"title","Reset filters"),o(w,"class","reset svelte-lmet59"),o(P,"class","svelte-lmet59"),o(i,"class","svelte-lmet59"),o(S,"class","presets content-context svelte-lmet59"),o(R,"class","toggle svelte-lmet59"),o(W,"class","svelte-lmet59"),X.selected=I=t[9].url.searchParams.get("order_by")==="count",X.__value="count",oe(X,X.__value),X.hidden=je=!t[9].url.searchParams.get("aggregate")&&!t[4],te.selected=st=t[9].url.searchParams.get("order_by")==="http_request_path",te.__value="http_request_path",oe(te,te.__value),te.hidden=at=!t[9].url.searchParams.get("aggregate")&&!t[4],le.selected=rt=t[9].url.searchParams.get("order_by")==="median_target_processing_time",le.__value="median_target_processing_time",oe(le,le.__value),le.hidden=nt=!t[9].url.searchParams.get("aggregate")&&!t[4],se.selected=ot=t[9].url.searchParams.get("order_by")==="_timestamp"||!t[9].url.searchParams.get("order_by")&&!t[9].url.searchParams.get("aggregate"),se.__value="_timestamp",oe(se,se.__value),se.hidden=it=t[9].url.searchParams.get("aggregate")||t[4],ae.selected=ut=t[9].url.searchParams.get("order_by")==="http_request_path",ae.__value="http_request_path",oe(ae,ae.__value),ae.hidden=_t=t[9].url.searchParams.get("aggregate")||t[4],re.selected=ct=t[9].url.searchParams.get("order_by")==="target_processing_time",re.__value="target_processing_time",oe(re,re.__value),re.hidden=ft=t[9].url.searchParams.get("aggregate")||t[4],o(K,"name","order_by"),o(K,"id","order_by"),o(K,"class","svelte-lmet59"),me.__value="DESC",oe(me,me.__value),me.selected=ht=t[9].url.searchParams.get("order")==="DESC",de.__value="ASC",oe(de,de.__value),de.selected=mt=t[9].url.searchParams.get("order")==="ASC",o(_e,"name","order"),o(_e,"id","order"),o(_e,"class","svelte-lmet59"),o(we,"for","order"),o(we,"class","button svelte-lmet59"),o(ee,"class","svelte-lmet59"),o(Y,"class","sort svelte-lmet59"),o(Ae,"class","svelte-lmet59"),o(ne,"type","date"),o(ne,"name","start_time"),o(ne,"id","start_time"),o(ne,"min",t[12].toISOString().split("T")[0]),o(ne,"max",t[11].toISOString().split("T")[0]),ne.value=gt=t[9].url.searchParams.get("start_time")||t[11].toISOString().split("T")[0],o(ne,"class","svelte-lmet59"),o(Me,"class","svelte-lmet59"),o(pe,"type","text"),o(pe,"name","lb_status_codes"),o(pe,"class","svelte-lmet59"),o(A,"action",""),o(A,"id","filters"),o(A,"class","svelte-lmet59"),o(a,"class","filters svelte-lmet59"),o(Te,"class","svelte-lmet59"),o(ye,"class","duration svelte-lmet59"),o(he,"class","svelte-lmet59"),o(Je,"class","svelte-lmet59"),o(Pe,"class","svelte-lmet59"),o(Ze,"class","content svelte-lmet59"),o(Ke,"class","container svelte-lmet59"),o(e,"class","page svelte-lmet59")},m(F,q){U(F,s,q),U(F,e,q),n(e,a),n(a,i),n(i,r),n(i,E),n(i,P),n(P,p),n(p,k),n(p,b),Oe(C,p,null),t[16](p),n(P,T),n(P,w),n(w,d),n(w,v),Oe(m,w,null),n(a,D),n(a,S),H&&H.m(S,null),t[18](S),n(a,ue),n(a,A),n(A,R),Oe(Q,R,null),n(A,x),n(A,Y),n(Y,W),n(Y,Xe),n(Y,ee),n(ee,K),n(K,X),n(X,Be),n(K,te),n(te,It),n(K,le),n(le,Ot),n(K,se),n(se,Lt),n(K,ae),n(ae,qt),n(K,re),n(re,Dt),t[20](K),n(ee,At),n(ee,_e),n(_e,me),n(me,Mt),n(_e,de),n(de,yt),t[22](_e),n(ee,$t),n(ee,we),$e[ce].m(we,null),n(A,Ft),n(A,De),n(De,Ae),n(De,Rt),n(De,ne),n(A,Ut),n(A,ge),n(ge,Me),n(ge,Ht),n(ge,pe),oe(pe,t[5]),n(ge,Vt),J&&J.m(ge,null),t[28](A),n(e,Bt),n(e,Ke),n(Ke,Ze),n(Ze,Pe),n(Pe,Je),n(Je,he),Se.m(he,null),n(he,vt),n(he,Te),n(Te,bt),n(Te,jt),n(Te,Et),n(he,Kt),n(he,ye),n(Pe,Zt),z&&z.m(Pe,null),n(e,Jt),V&&V.m(e,null),t[29](e),$=!0,zt||(tl=[Ee(p,"click",t[13]),jl(j=rs.call(null,S,t[17])),Ee(K,"change",t[21]),Ee(_e,"change",t[23]),Ee(ne,"input",function(){Nl(t[1].requestSubmit())&&t[1].requestSubmit().apply(this,arguments)}),Ee(pe,"input",t[24])],zt=!0)},p(F,q){var Fe,Re,Ue,He,tt;t=F,(!$||q[0]&1024)&&l!==(l="Logs"+((Fe=t[10].online)!=null&&Fe.MPKIT_URL?": "+t[10].online.MPKIT_URL.replace("https://",""):""))&&(document.title=l),(!$||q[0]&128)&&be(p,"active",t[7]),t[7]?H?(H.p(t,q),q[0]&128&&B(H,1)):(H=Dl(t),H.c(),B(H,1),H.m(S,null)):H&&(Nt(),Z(H,1,1,()=>{H=null}),Ct()),j&&Nl(j.update)&&q[0]&384&&j.update.call(null,t[17]);const ke={};q[0]&512&&(ke.checked=t[9].url.searchParams.get("aggregate")),Q.$set(ke),(!$||q[0]&512&&I!==(I=t[9].url.searchParams.get("order_by")==="count"))&&(X.selected=I),(!$||q[0]&528&&je!==(je=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(X.hidden=je),(!$||q[0]&512&&st!==(st=t[9].url.searchParams.get("order_by")==="http_request_path"))&&(te.selected=st),(!$||q[0]&528&&at!==(at=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(te.hidden=at),(!$||q[0]&512&&rt!==(rt=t[9].url.searchParams.get("order_by")==="median_target_processing_time"))&&(le.selected=rt),(!$||q[0]&528&&nt!==(nt=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(le.hidden=nt),(!$||q[0]&512&&ot!==(ot=t[9].url.searchParams.get("order_by")==="_timestamp"||!t[9].url.searchParams.get("order_by")&&!t[9].url.searchParams.get("aggregate")))&&(se.selected=ot),(!$||q[0]&528&&it!==(it=t[9].url.searchParams.get("aggregate")||t[4]))&&(se.hidden=it),(!$||q[0]&512&&ut!==(ut=t[9].url.searchParams.get("order_by")==="http_request_path"))&&(ae.selected=ut),(!$||q[0]&528&&_t!==(_t=t[9].url.searchParams.get("aggregate")||t[4]))&&(ae.hidden=_t),(!$||q[0]&512&&ct!==(ct=t[9].url.searchParams.get("order_by")==="target_processing_time"))&&(re.selected=ct),(!$||q[0]&528&&ft!==(ft=t[9].url.searchParams.get("aggregate")||t[4]))&&(re.hidden=ft),(!$||q[0]&512&&ht!==(ht=t[9].url.searchParams.get("order")==="DESC"))&&(me.selected=ht),(!$||q[0]&512&&mt!==(mt=t[9].url.searchParams.get("order")==="ASC"))&&(de.selected=mt);let ve=ce;ce=sl(t,q),ce!==ve&&(Nt(),Z($e[ve],1,1,()=>{$e[ve]=null}),Ct(),fe=$e[ce],fe||(fe=$e[ce]=ll[ce](t),fe.c()),B(fe,1),fe.m(we,null)),(!$||q[0]&512&>!==(gt=t[9].url.searchParams.get("start_time")||t[11].toISOString().split("T")[0]))&&(ne.value=gt),q[0]&32&&pe.value!==t[5]&&oe(pe,t[5]),(Ue=(Re=t[10].networks)==null?void 0:Re.aggs)!=null&&Ue.filters?J?J.p(t,q):(J=Al(t),J.c(),J.m(ge,null)):J&&(J.d(1),J=null),Pt!==(Pt=al(t,q))&&(Se.d(1),Se=Pt(t),Se&&(Se.c(),Se.m(he,vt))),(!$||q[0]&512)&&xe!==(xe=t[9].url.searchParams.get("aggregate")=="http_request_path"?"Aggregated ":"")&&G(bt,xe),(!$||q[0]&512)&&et!==(et=t[9].url.searchParams.get("aggregate")=="http_request_path"?"s":"")&&G(Et,et),(tt=(He=t[10].networks)==null?void 0:He.aggs)!=null&&tt.results?z?z.p(t,q):(z=yl(t),z.c(),z.m(Pe,null)):z&&(z.d(1),z=null),t[9].params.id?V?(V.p(t,q),q[0]&512&&B(V,1)):(V=Fl(t),V.c(),B(V,1),V.m(e,null)):V&&(Nt(),Z(V,1,1,()=>{V=null}),Ct())},i(F){$||(B(C.$$.fragment,F),B(m.$$.fragment,F),B(H),B(Q.$$.fragment,F),B(fe),B(V),$=!0)},o(F){Z(C.$$.fragment,F),Z(m.$$.fragment,F),Z(H),Z(Q.$$.fragment,F),Z(fe),Z(V),$=!1},d(F){F&&(_(s),_(e)),Ie(C),t[16](null),Ie(m),H&&H.d(),t[18](null),Ie(Q),t[20](null),t[22](null),$e[ce].d(),J&&J.d(),t[28](null),Se.d(),z&&z.d(),V&&V.d(),t[29](null),zt=!1,Wt(tl)}}}function Ss(t,l,s){var Be;let e,a;kl(t,ls,I=>s(9,e=I)),kl(t,Gt,I=>s(10,a=I));let{$$slots:i={},$$scope:r}=l,u,E;const P=new Date,p=1e3*60*60*24,k=new Date(P-p*3);let c,b,C=!!e.url.searchParams.get("aggregated"),T=((Be=e.url.searchParams.get("lb_status_codes"))==null?void 0:Be.split(","))||[],w=!1,d=!1,N;function v(I){a.networks.aggs&&wl(Gt,a.networks.aggs.results=[],a),ss.get(I).then(je=>{wl(Gt,a.networks=je,a)})}Zl(()=>{v(Object.fromEntries(e.url.searchParams))});let m=e.url.searchParams.toString();es(()=>{m=e.url.searchParams.toString()}),ts(()=>{var I;m!==e.url.searchParams.toString()&&(v(Object.fromEntries(e.url.searchParams)),m=e.url.searchParams.toString(),s(5,T=((I=e.url.searchParams.get("lb_status_codes"))==null?void 0:I.split(","))||[]))});function D(I){w.open?(w.close(),s(7,d=!1)):(w.show(),s(7,d=!0))}const S=[[]];function j(I){Ce[I?"unshift":"push"](()=>{N=I,s(8,N)})}const ue=I=>d&&I.target!==N&&D();function A(I){Ce[I?"unshift":"push"](()=>{w=I,s(6,w)})}const R=async I=>{s(4,C=!!I.target.checked),await Tl(),s(2,c.value=I.target.checked?"count":"_timestamp",c),console.log(c.value),s(3,b.value="DESC",b),await Tl(),E.requestSubmit()};function Q(I){Ce[I?"unshift":"push"](()=>{c=I,s(2,c)})}const x=()=>E.requestSubmit();function Y(I){Ce[I?"unshift":"push"](()=>{b=I,s(3,b)})}const W=()=>E.requestSubmit();function lt(){T=this.value,s(5,T)}function Xe(){T=Wl(S[0],this.__value,this.checked),s(5,T)}const ee=()=>{E.requestSubmit()};function K(I){Ce[I?"unshift":"push"](()=>{E=I,s(1,E)})}function X(I){Ce[I?"unshift":"push"](()=>{u=I,s(0,u)})}return t.$$set=I=>{"$$scope"in I&&s(14,r=I.$$scope)},[u,E,c,b,C,T,w,d,N,e,a,P,k,D,r,i,j,ue,A,R,Q,x,Y,W,lt,Xe,S,ee,K,X]}class As extends Rl{constructor(l){super(),Ul(this,l,Ss,Ps,Hl,{},null,[-1,-1])}}export{As as component}; diff --git a/gui/next/build/_app/immutable/nodes/7.DIZjSVTI.js b/gui/next/build/_app/immutable/nodes/7.DIZjSVTI.js deleted file mode 100644 index ee59090e8..000000000 --- a/gui/next/build/_app/immutable/nodes/7.DIZjSVTI.js +++ /dev/null @@ -1 +0,0 @@ -import{s as Rl,e as f,a as O,c as h,b as g,g as L,A as ie,f as _,y as o,i as U,h as n,C as Ee,J as Ul,F as Qt,r as Wt,L as Vl,t as M,d as y,j as G,z as Ce,p as jl,G as be,B as oe,Y as Zl,Z as kl,k as wl,U as Kl,n as Jl,_ as zl,l as Yl,u as Gl,m as Ql,o as Wl,H as Tl,$ as Xl,E as Nl}from"../chunks/scheduler.CKQ5dLhN.js";import{S as Hl,i as Bl,c as Ie,d as Oe,m as Le,t as V,g as Nt,e as Ct,a as K,f as qe}from"../chunks/index.CGVWAVV-.js";import{e as Qe}from"../chunks/each.BWzj3zy9.js";import{o as xl,b as es,a as ts}from"../chunks/entry.COceLI_i.js";import{p as ls}from"../chunks/stores.BLuxmlax.js";import{n as ss}from"../chunks/network.hGAcGvnf.js";import{s as Gt}from"../chunks/state.nqMW8J5l.js";import{T as as,c as rs}from"../chunks/Toggle.CtBEfrzX.js";import{I as We}from"../chunks/Icon.CkKwi_WD.js";import{g as ns}from"../chunks/globals.D0QH3NT1.js";const{window:os}=ns;function Cl(t,l,s){const e=t.slice();return e[9]=l[s],e[11]=s,e}function Il(t){let l,s,e=t[9].name+"",a,i,r,u,E,P,p,k,c,b,C,T,w=t[9].name+"",d,N,v,m,D,S,j,ue;return m=new We({props:{icon:"x"}}),{c(){l=f("li"),s=f("a"),a=M(e),r=O(),u=f("form"),E=f("input"),P=O(),p=f("input"),c=O(),b=f("button"),C=f("span"),T=M("Delete '"),d=M(w),N=M("' preset"),v=O(),Ie(m.$$.fragment),D=O(),this.h()},l(A){l=h(A,"LI",{class:!0});var R=g(l);s=h(R,"A",{href:!0,class:!0});var Q=g(s);a=y(Q,e),Q.forEach(_),r=L(R),u=h(R,"FORM",{class:!0});var x=g(u);E=h(x,"INPUT",{type:!0,name:!0}),P=L(x),p=h(x,"INPUT",{type:!0,name:!0}),c=L(x),b=h(x,"BUTTON",{type:!0,class:!0});var Y=g(b);C=h(Y,"SPAN",{class:!0});var W=g(C);T=y(W,"Delete '"),d=y(W,w),N=y(W,"' preset"),W.forEach(_),v=L(Y),Oe(m.$$.fragment,Y),Y.forEach(_),x.forEach(_),D=L(R),R.forEach(_),this.h()},h(){o(s,"href",i="/network?"+t[9].url),o(s,"class","svelte-778p5v"),o(E,"type","hidden"),o(E,"name","id"),E.value=t[11],o(p,"type","hidden"),o(p,"name","name"),p.value=k=t[9].name,o(C,"class","label"),o(b,"type","submit"),o(b,"class","svelte-778p5v"),o(u,"class","svelte-778p5v"),o(l,"class","svelte-778p5v")},m(A,R){U(A,l,R),n(l,s),n(s,a),n(l,r),n(l,u),n(u,E),n(u,P),n(u,p),n(u,c),n(u,b),n(b,C),n(C,T),n(C,d),n(C,N),n(b,v),Le(m,b,null),n(l,D),S=!0,j||(ue=Ee(u,"submit",Ul(t[5])),j=!0)},p(A,R){(!S||R&4)&&e!==(e=A[9].name+"")&&G(a,e),(!S||R&4&&i!==(i="/network?"+A[9].url))&&o(s,"href",i),(!S||R&4&&k!==(k=A[9].name))&&(p.value=k),(!S||R&4)&&w!==(w=A[9].name+"")&&G(d,w)},i(A){S||(V(m.$$.fragment,A),S=!0)},o(A){K(m.$$.fragment,A),S=!1},d(A){A&&_(l),qe(m),j=!1,ue()}}}function Ol(t){let l,s="You can save your current filters selection to get back to them quickly in the future.";return{c(){l=f("div"),l.textContent=s,this.h()},l(e){l=h(e,"DIV",{class:!0,"data-svelte-h":!0}),ie(l)!=="svelte-14bf7on"&&(l.textContent=s),this.h()},h(){o(l,"class","message svelte-778p5v")},m(e,a){U(e,l,a)},d(e){e&&_(l)}}}function is(t){let l,s,e,a,i,r,u="Save currently selected filters as new preset",E,P,p,k,c,b,C,T;P=new We({props:{icon:"plus"}});let w=Qe(t[2]),d=[];for(let m=0;mK(d[m],1,1,()=>{d[m]=null});let v=!t[2].length&&Ol();return{c(){l=f("div"),s=f("form"),e=f("input"),a=O(),i=f("button"),r=f("span"),r.textContent=u,E=O(),Ie(P.$$.fragment),p=O(),k=f("ul");for(let m=0;m{r("close")});function E(c){let b=new URLSearchParams(document.location.search);b.delete("start_time"),s(2,i=[...i,{url:b.toString(),name:a.value}]),localStorage.posNetworkLogsPresets=JSON.stringify(i),s(1,a.value="",a)}function P(c){const b=new FormData(c.target),C=b.get("id"),T=b.get("name");window.confirm(`Are you sure that you want to delete '${T}' preset?`)&&(i.splice(C,1),s(2,i),localStorage.posNetworkLogsPresets=JSON.stringify(i))}function p(c){Ce[c?"unshift":"push"](()=>{a=c,s(1,a)})}function k(c){Ce[c?"unshift":"push"](()=>{e=c,s(0,e)})}return[e,a,i,u,E,P,p,k]}class _s extends Hl{constructor(l){super(),Bl(this,l,us,is,Rl,{})}}function Ll(t,l,s){const e=t.slice();return e[33]=l[s],e}function ql(t,l,s){const e=t.slice();return e[36]=l[s],e}function Dl(t){let l,s;return l=new _s({}),l.$on("close",t[13]),{c(){Ie(l.$$.fragment)},l(e){Oe(l.$$.fragment,e)},m(e,a){Le(l,e,a),s=!0},p:Jl,i(e){s||(V(l.$$.fragment,e),s=!0)},o(e){K(l.$$.fragment,e),s=!1},d(e){qe(l,e)}}}function cs(t){let l,s;return l=new We({props:{icon:"sortAZ"}}),{c(){Ie(l.$$.fragment)},l(e){Oe(l.$$.fragment,e)},m(e,a){Le(l,e,a),s=!0},i(e){s||(V(l.$$.fragment,e),s=!0)},o(e){K(l.$$.fragment,e),s=!1},d(e){qe(l,e)}}}function fs(t){let l,s;return l=new We({props:{icon:"sortZA"}}),{c(){Ie(l.$$.fragment)},l(e){Oe(l.$$.fragment,e)},m(e,a){Le(l,e,a),s=!0},i(e){s||(V(l.$$.fragment,e),s=!0)},o(e){K(l.$$.fragment,e),s=!1},d(e){qe(l,e)}}}function Al(t){let l,s=Qe(t[10].networks.aggs.filters),e=[];for(let a=0;a=200&&t[33].lb_status_code<300),be(u,"info",t[33].lb_status_code>=300&&t[33].lb_status_code<400),be(u,"error",t[33].lb_status_code>=400&&t[33].lb_status_code<600)},m(c,b){U(c,l,b),n(l,s),n(s,a),U(c,r,b),U(c,u,b),n(u,E),n(E,p)},p(c,b){b[0]&1024&&e!==(e=new Date(c[33]._timestamp/1e3).toLocaleString()+"")&&G(a,e),b[0]&1536&&i!==(i="/network/"+c[33]._timestamp+"?"+c[9].url.searchParams.toString())&&o(s,"href",i),b[0]&1024&&P!==(P=c[33].lb_status_code+"")&&G(p,P),b[0]&1536&&k!==(k="/network/"+c[33]._timestamp+"?"+c[9].url.searchParams.toString())&&o(E,"href",k),b[0]&1024&&be(u,"success",c[33].lb_status_code>=200&&c[33].lb_status_code<300),b[0]&1024&&be(u,"info",c[33].lb_status_code>=300&&c[33].lb_status_code<400),b[0]&1024&&be(u,"error",c[33].lb_status_code>=400&&c[33].lb_status_code<600)},d(c){c&&(_(l),_(r),_(u))}}}function gs(t){let l,s,e=t[33].count+"",a;return{c(){l=f("td"),s=f("div"),a=M(e),this.h()},l(i){l=h(i,"TD",{class:!0});var r=g(l);s=h(r,"DIV",{class:!0});var u=g(s);a=y(u,e),u.forEach(_),r.forEach(_),this.h()},h(){o(s,"class","svelte-lmet59"),o(l,"class","count svelte-lmet59")},m(i,r){U(i,l,r),n(l,s),n(s,a)},p(i,r){r[0]&1024&&e!==(e=i[33].count+"")&&G(a,e)},d(i){i&&_(l)}}}function ps(t){let l,s,e=t[33].http_request_method+"",a,i,r=t[33].http_request_path+"",u;return{c(){l=f("div"),s=f("span"),a=M(e),i=O(),u=M(r),this.h()},l(E){l=h(E,"DIV",{class:!0});var P=g(l);s=h(P,"SPAN",{class:!0});var p=g(s);a=y(p,e),p.forEach(_),i=L(P),u=y(P,r),P.forEach(_),this.h()},h(){o(s,"class","method svelte-lmet59"),o(l,"class","svelte-lmet59")},m(E,P){U(E,l,P),n(l,s),n(s,a),n(l,i),n(l,u)},p(E,P){P[0]&1024&&e!==(e=E[33].http_request_method+"")&&G(a,e),P[0]&1024&&r!==(r=E[33].http_request_path+"")&&G(u,r)},d(E){E&&_(l)}}}function vs(t){let l,s,e,a=t[33].http_request_method+"",i,r,u=t[33].http_request_path+"",E,P;return{c(){l=f("a"),s=f("div"),e=f("span"),i=M(a),r=O(),E=M(u),this.h()},l(p){l=h(p,"A",{href:!0,class:!0});var k=g(l);s=h(k,"DIV",{class:!0});var c=g(s);e=h(c,"SPAN",{class:!0});var b=g(e);i=y(b,a),b.forEach(_),r=L(c),E=y(c,u),c.forEach(_),k.forEach(_),this.h()},h(){o(e,"class","method svelte-lmet59"),o(s,"class","svelte-lmet59"),o(l,"href",P="/network/"+t[33]._timestamp+"?"+t[9].url.searchParams.toString()),o(l,"class","svelte-lmet59")},m(p,k){U(p,l,k),n(l,s),n(s,e),n(e,i),n(s,r),n(s,E)},p(p,k){k[0]&1024&&a!==(a=p[33].http_request_method+"")&&G(i,a),k[0]&1024&&u!==(u=p[33].http_request_path+"")&&G(E,u),k[0]&1536&&P!==(P="/network/"+p[33]._timestamp+"?"+p[9].url.searchParams.toString())&&o(l,"href",P)},d(p){p&&_(l)}}}function bs(t){let l,s=Math.round((parseFloat(t[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"",e,a,i;return{c(){l=f("div"),e=M(s),a=M("s"),this.h()},l(r){l=h(r,"DIV",{title:!0,class:!0});var u=g(l);e=y(u,s),a=y(u,"s"),u.forEach(_),this.h()},h(){o(l,"title",i="Median: "+Math.round((parseFloat(t[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMean: "+Math.round((parseFloat(t[33].avg_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMin: "+Math.round((parseFloat(t[33].min_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMax: "+Math.round((parseFloat(t[33].max_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s"),o(l,"class","svelte-lmet59")},m(r,u){U(r,l,u),n(l,e),n(l,a)},p(r,u){u[0]&1024&&s!==(s=Math.round((parseFloat(r[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"")&&G(e,s),u[0]&1024&&i!==(i="Median: "+Math.round((parseFloat(r[33].median_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMean: "+Math.round((parseFloat(r[33].avg_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMin: "+Math.round((parseFloat(r[33].min_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s \rMax: "+Math.round((parseFloat(r[33].max_target_processing_time)+Number.EPSILON)*1e3)/1e3+"s")&&o(l,"title",i)},d(r){r&&_(l)}}}function Es(t){let l,s=Math.round((parseFloat(t[33].target_processing_time)+Number.EPSILON)*1e3)/1e3+"",e,a,i;return{c(){l=f("a"),e=M(s),a=M("s"),this.h()},l(r){l=h(r,"A",{href:!0,class:!0});var u=g(l);e=y(u,s),a=y(u,"s"),u.forEach(_),this.h()},h(){o(l,"href",i="/network/"+t[33]._timestamp+"?"+t[9].url.searchParams.toString()),o(l,"class","svelte-lmet59")},m(r,u){U(r,l,u),n(l,e),n(l,a)},p(r,u){u[0]&1024&&s!==(s=Math.round((parseFloat(r[33].target_processing_time)+Number.EPSILON)*1e3)/1e3+"")&&G(e,s),u[0]&1536&&i!==(i="/network/"+r[33]._timestamp+"?"+r[9].url.searchParams.toString())&&o(l,"href",i)},d(r){r&&_(l)}}}function $l(t){let l,s,e,a,i,r,u,E,P;function p(v,m){return m[0]&512&&(s=null),s==null&&(s=!!v[9].url.searchParams.get("aggregate")),s?gs:ds}let k=p(t,[-1,-1]),c=k(t);function b(v,m){return m[0]&512&&(i=null),i==null&&(i=!v[9].url.searchParams.get("aggregate")),i?vs:ps}let C=b(t,[-1,-1]),T=C(t);function w(v,m){return m[0]&512&&(E=null),E==null&&(E=!v[9].url.searchParams.get("aggregate")),E?Es:bs}let d=w(t,[-1,-1]),N=d(t);return{c(){l=f("tr"),c.c(),e=O(),a=f("td"),T.c(),r=O(),u=f("td"),N.c(),P=O(),this.h()},l(v){l=h(v,"TR",{class:!0});var m=g(l);c.l(m),e=L(m),a=h(m,"TD",{class:!0});var D=g(a);T.l(D),D.forEach(_),r=L(m),u=h(m,"TD",{class:!0});var S=g(u);N.l(S),S.forEach(_),P=L(m),m.forEach(_),this.h()},h(){o(a,"class","request svelte-lmet59"),o(u,"class","duration svelte-lmet59"),o(l,"class","svelte-lmet59"),be(l,"active",t[33]._timestamp&&t[9].params.id==t[33]._timestamp)},m(v,m){U(v,l,m),c.m(l,null),n(l,e),n(l,a),T.m(a,null),n(l,r),n(l,u),N.m(u,null),n(l,P)},p(v,m){k===(k=p(v,m))&&c?c.p(v,m):(c.d(1),c=k(v),c&&(c.c(),c.m(l,e))),C===(C=b(v,m))&&T?T.p(v,m):(T.d(1),T=C(v),T&&(T.c(),T.m(a,null))),d===(d=w(v,m))&&N?N.p(v,m):(N.d(1),N=d(v),N&&(N.c(),N.m(u,null))),m[0]&1536&&be(l,"active",v[33]._timestamp&&v[9].params.id==v[33]._timestamp)},d(v){v&&_(l),c.d(),T.d(),N.d()}}}function Fl(t){let l;const s=t[15].default,e=Yl(s,t,t[14],null);return{c(){e&&e.c()},l(a){e&&e.l(a)},m(a,i){e&&e.m(a,i),l=!0},p(a,i){e&&e.p&&(!l||i[0]&16384)&&Gl(e,s,a,a[14],l?Wl(s,a[14],i,null):Ql(a[14]),null)},i(a){l||(V(e,a),l=!0)},o(a){K(e,a),l=!1},d(a){e&&e.d(a)}}}function Ps(t){var rl,nl,ol,il,ul;let l,s,e,a,i,r,u="Filters",E,P,p,k,c="Choose filters preset",b,C,T,w,d,N="Reset",v,m,D,S,j,ue,A,R,Q,x,Y,W,lt='',Xe,ee,Z,X,Ve,I,je,te,It,st,at,le,Ot,rt,nt,se,Lt,ot,it,ae,qt,ut,_t,re,Dt,ct,ft,At,_e,me,Mt,ht,de,yt,mt,$t,we,dt,ce,fe,Ft,De,Ae,Xt='',Rt,ne,gt,Ut,ge,Me,xt="Status Code",Ht,pe,Bt,Vt,Ze,Ke,Pe,Je,he,pt,vt,Te,xe=t[9].url.searchParams.get("aggregate")=="http_request_path"?"Aggregated ":"",bt,jt,et=t[9].url.searchParams.get("aggregate")=="http_request_path"?"s":"",Et,Zt,ye,el="Processing Time",Kt,Jt,$,zt,tl;document.title=l="Logs"+((rl=t[10].online)!=null&&rl.MPKIT_URL?": "+t[10].online.MPKIT_URL.replace("https://",""):""),C=new We({props:{icon:"controlls"}}),m=new We({props:{icon:"disable"}});let H=t[7]&&Dl(t);Q=new as({props:{name:"aggregate",options:[{value:"http_request_path",label:"Aggregate requests"}],checked:t[9].url.searchParams.get("aggregate")}}),Q.$on("change",t[19]);const ll=[fs,cs],$e=[];function sl(F,q){return q[0]&512&&(dt=null),dt==null&&(dt=F[9].url.searchParams.get("order")==="DESC"||!F[9].url.searchParams.get("order")),dt?0:1}ce=sl(t,[-1,-1]),fe=$e[ce]=ll[ce](t);let J=((ol=(nl=t[10].networks)==null?void 0:nl.aggs)==null?void 0:ol.filters)&&Al(t);function al(F,q){return q[0]&512&&(pt=null),pt==null&&(pt=!!F[9].url.searchParams.get("aggregate")),pt?ms:hs}let Pt=al(t,[-1,-1]),Se=Pt(t),z=((ul=(il=t[10].networks)==null?void 0:il.aggs)==null?void 0:ul.results)&&yl(t),B=t[9].params.id&&Fl(t);return{c(){s=O(),e=f("div"),a=f("nav"),i=f("header"),r=f("h2"),r.textContent=u,E=O(),P=f("nav"),p=f("button"),k=f("span"),k.textContent=c,b=O(),Ie(C.$$.fragment),T=O(),w=f("a"),d=f("span"),d.textContent=N,v=O(),Ie(m.$$.fragment),D=O(),S=f("dialog"),H&&H.c(),ue=O(),A=f("form"),R=f("fieldset"),Ie(Q.$$.fragment),x=O(),Y=f("fieldset"),W=f("h3"),W.innerHTML=lt,Xe=O(),ee=f("div"),Z=f("select"),X=f("option"),Ve=M("Count"),te=f("option"),It=M("Request path"),le=f("option"),Ot=M("Processing time"),se=f("option"),Lt=M("Time"),ae=f("option"),qt=M("Request path"),re=f("option"),Dt=M("Processing Time"),At=O(),_e=f("select"),me=f("option"),Mt=M("DESC [Z→A]"),de=f("option"),yt=M("ASC [A→Z]"),$t=O(),we=f("label"),fe.c(),Ft=O(),De=f("fieldset"),Ae=f("h3"),Ae.innerHTML=Xt,Rt=O(),ne=f("input"),Ut=O(),ge=f("fieldset"),Me=f("h3"),Me.textContent=xt,Ht=O(),pe=f("input"),Bt=O(),J&&J.c(),Vt=O(),Ze=f("section"),Ke=f("article"),Pe=f("table"),Je=f("thead"),he=f("tr"),Se.c(),vt=O(),Te=f("th"),bt=M(xe),jt=M("Request"),Et=M(et),Zt=O(),ye=f("th"),ye.textContent=el,Kt=O(),z&&z.c(),Jt=O(),B&&B.c(),this.h()},l(F){jl("svelte-dfdkqr",document.head).forEach(_),s=L(F),e=h(F,"DIV",{class:!0});var ke=g(e);a=h(ke,"NAV",{class:!0});var ve=g(a);i=h(ve,"HEADER",{class:!0});var Fe=g(i);r=h(Fe,"H2",{class:!0,"data-svelte-h":!0}),ie(r)!=="svelte-1ydm89n"&&(r.textContent=u),E=L(Fe),P=h(Fe,"NAV",{class:!0});var Re=g(P);p=h(Re,"BUTTON",{type:!0,title:!0,class:!0});var Ue=g(p);k=h(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),ie(k)!=="svelte-p09m9k"&&(k.textContent=c),b=L(Ue),Oe(C.$$.fragment,Ue),Ue.forEach(_),T=L(Re),w=h(Re,"A",{href:!0,title:!0,class:!0});var He=g(w);d=h(He,"SPAN",{class:!0,"data-svelte-h":!0}),ie(d)!=="svelte-1c96jh2"&&(d.textContent=N),v=L(He),Oe(m.$$.fragment,He),He.forEach(_),Re.forEach(_),Fe.forEach(_),D=L(ve),S=h(ve,"DIALOG",{class:!0});var tt=g(S);H&&H.l(tt),tt.forEach(_),ue=L(ve),A=h(ve,"FORM",{action:!0,id:!0,class:!0});var Ne=g(A);R=h(Ne,"FIELDSET",{class:!0});var _l=g(R);Oe(Q.$$.fragment,_l),_l.forEach(_),x=L(Ne),Y=h(Ne,"FIELDSET",{class:!0});var St=g(Y);W=h(St,"H3",{class:!0,"data-svelte-h":!0}),ie(W)!=="svelte-e2rbyt"&&(W.innerHTML=lt),Xe=L(St),ee=h(St,"DIV",{class:!0});var ze=g(ee);Z=h(ze,"SELECT",{name:!0,id:!0,class:!0});var Be=g(Z);X=h(Be,"OPTION",{});var cl=g(X);Ve=y(cl,"Count"),cl.forEach(_),te=h(Be,"OPTION",{});var fl=g(te);It=y(fl,"Request path"),fl.forEach(_),le=h(Be,"OPTION",{});var hl=g(le);Ot=y(hl,"Processing time"),hl.forEach(_),se=h(Be,"OPTION",{});var ml=g(se);Lt=y(ml,"Time"),ml.forEach(_),ae=h(Be,"OPTION",{});var dl=g(ae);qt=y(dl,"Request path"),dl.forEach(_),re=h(Be,"OPTION",{});var gl=g(re);Dt=y(gl,"Processing Time"),gl.forEach(_),Be.forEach(_),At=L(ze),_e=h(ze,"SELECT",{name:!0,id:!0,class:!0});var Yt=g(_e);me=h(Yt,"OPTION",{});var pl=g(me);Mt=y(pl,"DESC [Z→A]"),pl.forEach(_),de=h(Yt,"OPTION",{});var vl=g(de);yt=y(vl,"ASC [A→Z]"),vl.forEach(_),Yt.forEach(_),$t=L(ze),we=h(ze,"LABEL",{for:!0,class:!0});var bl=g(we);fe.l(bl),bl.forEach(_),ze.forEach(_),St.forEach(_),Ft=L(Ne),De=h(Ne,"FIELDSET",{});var kt=g(De);Ae=h(kt,"H3",{class:!0,"data-svelte-h":!0}),ie(Ae)!=="svelte-kjwpiv"&&(Ae.innerHTML=Xt),Rt=L(kt),ne=h(kt,"INPUT",{type:!0,name:!0,id:!0,min:!0,max:!0,class:!0}),kt.forEach(_),Ut=L(Ne),ge=h(Ne,"FIELDSET",{});var Ye=g(ge);Me=h(Ye,"H3",{class:!0,"data-svelte-h":!0}),ie(Me)!=="svelte-tzgpg7"&&(Me.textContent=xt),Ht=L(Ye),pe=h(Ye,"INPUT",{type:!0,name:!0,class:!0}),Bt=L(Ye),J&&J.l(Ye),Ye.forEach(_),Ne.forEach(_),ve.forEach(_),Vt=L(ke),Ze=h(ke,"SECTION",{class:!0});var El=g(Ze);Ke=h(El,"ARTICLE",{class:!0});var Pl=g(Ke);Pe=h(Pl,"TABLE",{class:!0});var wt=g(Pe);Je=h(wt,"THEAD",{class:!0});var Sl=g(Je);he=h(Sl,"TR",{class:!0});var Ge=g(he);Se.l(Ge),vt=L(Ge),Te=h(Ge,"TH",{class:!0});var Tt=g(Te);bt=y(Tt,xe),jt=y(Tt,"Request"),Et=y(Tt,et),Tt.forEach(_),Zt=L(Ge),ye=h(Ge,"TH",{class:!0,"data-svelte-h":!0}),ie(ye)!=="svelte-1h8jpo9"&&(ye.textContent=el),Ge.forEach(_),Sl.forEach(_),Kt=L(wt),z&&z.l(wt),wt.forEach(_),Pl.forEach(_),El.forEach(_),Jt=L(ke),B&&B.l(ke),ke.forEach(_),this.h()},h(){o(r,"class","svelte-lmet59"),o(k,"class","label svelte-lmet59"),o(p,"type","button"),o(p,"title","Saved filters presets"),o(p,"class","svelte-lmet59"),be(p,"active",t[7]),o(d,"class","label svelte-lmet59"),o(w,"href","/network"),o(w,"title","Reset filters"),o(w,"class","reset svelte-lmet59"),o(P,"class","svelte-lmet59"),o(i,"class","svelte-lmet59"),o(S,"class","presets content-context svelte-lmet59"),o(R,"class","toggle svelte-lmet59"),o(W,"class","svelte-lmet59"),X.selected=I=t[9].url.searchParams.get("order_by")==="count",X.__value="count",oe(X,X.__value),X.hidden=je=!t[9].url.searchParams.get("aggregate")&&!t[4],te.selected=st=t[9].url.searchParams.get("order_by")==="http_request_path",te.__value="http_request_path",oe(te,te.__value),te.hidden=at=!t[9].url.searchParams.get("aggregate")&&!t[4],le.selected=rt=t[9].url.searchParams.get("order_by")==="median_target_processing_time",le.__value="median_target_processing_time",oe(le,le.__value),le.hidden=nt=!t[9].url.searchParams.get("aggregate")&&!t[4],se.selected=ot=t[9].url.searchParams.get("order_by")==="_timestamp"||!t[9].url.searchParams.get("order_by")&&!t[9].url.searchParams.get("aggregate"),se.__value="_timestamp",oe(se,se.__value),se.hidden=it=t[9].url.searchParams.get("aggregate")||t[4],ae.selected=ut=t[9].url.searchParams.get("order_by")==="http_request_path",ae.__value="http_request_path",oe(ae,ae.__value),ae.hidden=_t=t[9].url.searchParams.get("aggregate")||t[4],re.selected=ct=t[9].url.searchParams.get("order_by")==="target_processing_time",re.__value="target_processing_time",oe(re,re.__value),re.hidden=ft=t[9].url.searchParams.get("aggregate")||t[4],o(Z,"name","order_by"),o(Z,"id","order_by"),o(Z,"class","svelte-lmet59"),me.__value="DESC",oe(me,me.__value),me.selected=ht=t[9].url.searchParams.get("order")==="DESC",de.__value="ASC",oe(de,de.__value),de.selected=mt=t[9].url.searchParams.get("order")==="ASC",o(_e,"name","order"),o(_e,"id","order"),o(_e,"class","svelte-lmet59"),o(we,"for","order"),o(we,"class","button svelte-lmet59"),o(ee,"class","svelte-lmet59"),o(Y,"class","sort svelte-lmet59"),o(Ae,"class","svelte-lmet59"),o(ne,"type","date"),o(ne,"name","start_time"),o(ne,"id","start_time"),o(ne,"min",t[12].toISOString().split("T")[0]),o(ne,"max",t[11].toISOString().split("T")[0]),ne.value=gt=t[9].url.searchParams.get("start_time")||t[11].toISOString().split("T")[0],o(ne,"class","svelte-lmet59"),o(Me,"class","svelte-lmet59"),o(pe,"type","text"),o(pe,"name","lb_status_codes"),o(pe,"class","svelte-lmet59"),o(A,"action",""),o(A,"id","filters"),o(A,"class","svelte-lmet59"),o(a,"class","filters svelte-lmet59"),o(Te,"class","svelte-lmet59"),o(ye,"class","duration svelte-lmet59"),o(he,"class","svelte-lmet59"),o(Je,"class","svelte-lmet59"),o(Pe,"class","svelte-lmet59"),o(Ke,"class","content svelte-lmet59"),o(Ze,"class","container svelte-lmet59"),o(e,"class","page svelte-lmet59")},m(F,q){U(F,s,q),U(F,e,q),n(e,a),n(a,i),n(i,r),n(i,E),n(i,P),n(P,p),n(p,k),n(p,b),Le(C,p,null),t[16](p),n(P,T),n(P,w),n(w,d),n(w,v),Le(m,w,null),n(a,D),n(a,S),H&&H.m(S,null),t[18](S),n(a,ue),n(a,A),n(A,R),Le(Q,R,null),n(A,x),n(A,Y),n(Y,W),n(Y,Xe),n(Y,ee),n(ee,Z),n(Z,X),n(X,Ve),n(Z,te),n(te,It),n(Z,le),n(le,Ot),n(Z,se),n(se,Lt),n(Z,ae),n(ae,qt),n(Z,re),n(re,Dt),t[20](Z),n(ee,At),n(ee,_e),n(_e,me),n(me,Mt),n(_e,de),n(de,yt),t[22](_e),n(ee,$t),n(ee,we),$e[ce].m(we,null),n(A,Ft),n(A,De),n(De,Ae),n(De,Rt),n(De,ne),n(A,Ut),n(A,ge),n(ge,Me),n(ge,Ht),n(ge,pe),oe(pe,t[5]),n(ge,Bt),J&&J.m(ge,null),t[28](A),n(e,Vt),n(e,Ze),n(Ze,Ke),n(Ke,Pe),n(Pe,Je),n(Je,he),Se.m(he,null),n(he,vt),n(he,Te),n(Te,bt),n(Te,jt),n(Te,Et),n(he,Zt),n(he,ye),n(Pe,Kt),z&&z.m(Pe,null),n(e,Jt),B&&B.m(e,null),t[29](e),$=!0,zt||(tl=[Ee(p,"click",t[13]),Zl(j=rs.call(null,S,t[17])),Ee(Z,"change",t[21]),Ee(_e,"change",t[23]),Ee(ne,"input",function(){kl(t[1].requestSubmit())&&t[1].requestSubmit().apply(this,arguments)}),Ee(pe,"input",t[24])],zt=!0)},p(F,q){var Fe,Re,Ue,He,tt;t=F,(!$||q[0]&1024)&&l!==(l="Logs"+((Fe=t[10].online)!=null&&Fe.MPKIT_URL?": "+t[10].online.MPKIT_URL.replace("https://",""):""))&&(document.title=l),(!$||q[0]&128)&&be(p,"active",t[7]),t[7]?H?(H.p(t,q),q[0]&128&&V(H,1)):(H=Dl(t),H.c(),V(H,1),H.m(S,null)):H&&(Nt(),K(H,1,1,()=>{H=null}),Ct()),j&&kl(j.update)&&q[0]&384&&j.update.call(null,t[17]);const ke={};q[0]&512&&(ke.checked=t[9].url.searchParams.get("aggregate")),Q.$set(ke),(!$||q[0]&512&&I!==(I=t[9].url.searchParams.get("order_by")==="count"))&&(X.selected=I),(!$||q[0]&528&&je!==(je=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(X.hidden=je),(!$||q[0]&512&&st!==(st=t[9].url.searchParams.get("order_by")==="http_request_path"))&&(te.selected=st),(!$||q[0]&528&&at!==(at=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(te.hidden=at),(!$||q[0]&512&&rt!==(rt=t[9].url.searchParams.get("order_by")==="median_target_processing_time"))&&(le.selected=rt),(!$||q[0]&528&&nt!==(nt=!t[9].url.searchParams.get("aggregate")&&!t[4]))&&(le.hidden=nt),(!$||q[0]&512&&ot!==(ot=t[9].url.searchParams.get("order_by")==="_timestamp"||!t[9].url.searchParams.get("order_by")&&!t[9].url.searchParams.get("aggregate")))&&(se.selected=ot),(!$||q[0]&528&&it!==(it=t[9].url.searchParams.get("aggregate")||t[4]))&&(se.hidden=it),(!$||q[0]&512&&ut!==(ut=t[9].url.searchParams.get("order_by")==="http_request_path"))&&(ae.selected=ut),(!$||q[0]&528&&_t!==(_t=t[9].url.searchParams.get("aggregate")||t[4]))&&(ae.hidden=_t),(!$||q[0]&512&&ct!==(ct=t[9].url.searchParams.get("order_by")==="target_processing_time"))&&(re.selected=ct),(!$||q[0]&528&&ft!==(ft=t[9].url.searchParams.get("aggregate")||t[4]))&&(re.hidden=ft),(!$||q[0]&512&&ht!==(ht=t[9].url.searchParams.get("order")==="DESC"))&&(me.selected=ht),(!$||q[0]&512&&mt!==(mt=t[9].url.searchParams.get("order")==="ASC"))&&(de.selected=mt);let ve=ce;ce=sl(t,q),ce!==ve&&(Nt(),K($e[ve],1,1,()=>{$e[ve]=null}),Ct(),fe=$e[ce],fe||(fe=$e[ce]=ll[ce](t),fe.c()),V(fe,1),fe.m(we,null)),(!$||q[0]&512&>!==(gt=t[9].url.searchParams.get("start_time")||t[11].toISOString().split("T")[0]))&&(ne.value=gt),q[0]&32&&pe.value!==t[5]&&oe(pe,t[5]),(Ue=(Re=t[10].networks)==null?void 0:Re.aggs)!=null&&Ue.filters?J?J.p(t,q):(J=Al(t),J.c(),J.m(ge,null)):J&&(J.d(1),J=null),Pt!==(Pt=al(t,q))&&(Se.d(1),Se=Pt(t),Se&&(Se.c(),Se.m(he,vt))),(!$||q[0]&512)&&xe!==(xe=t[9].url.searchParams.get("aggregate")=="http_request_path"?"Aggregated ":"")&&G(bt,xe),(!$||q[0]&512)&&et!==(et=t[9].url.searchParams.get("aggregate")=="http_request_path"?"s":"")&&G(Et,et),(tt=(He=t[10].networks)==null?void 0:He.aggs)!=null&&tt.results?z?z.p(t,q):(z=yl(t),z.c(),z.m(Pe,null)):z&&(z.d(1),z=null),t[9].params.id?B?(B.p(t,q),q[0]&512&&V(B,1)):(B=Fl(t),B.c(),V(B,1),B.m(e,null)):B&&(Nt(),K(B,1,1,()=>{B=null}),Ct())},i(F){$||(V(C.$$.fragment,F),V(m.$$.fragment,F),V(H),V(Q.$$.fragment,F),V(fe),V(B),$=!0)},o(F){K(C.$$.fragment,F),K(m.$$.fragment,F),K(H),K(Q.$$.fragment,F),K(fe),K(B),$=!1},d(F){F&&(_(s),_(e)),qe(C),t[16](null),qe(m),H&&H.d(),t[18](null),qe(Q),t[20](null),t[22](null),$e[ce].d(),J&&J.d(),t[28](null),Se.d(),z&&z.d(),B&&B.d(),t[29](null),zt=!1,Wt(tl)}}}function Ss(t,l,s){var Ve;let e,a;wl(t,ls,I=>s(9,e=I)),wl(t,Gt,I=>s(10,a=I));let{$$slots:i={},$$scope:r}=l,u,E;const P=new Date,p=1e3*60*60*24,k=new Date(P-p*3);let c,b,C=!!e.url.searchParams.get("aggregated"),T=((Ve=e.url.searchParams.get("lb_status_codes"))==null?void 0:Ve.split(","))||[],w=!1,d=!1,N;function v(I){a.networks.aggs&&Nl(Gt,a.networks.aggs.results=[],a),ss.get(I).then(je=>{Nl(Gt,a.networks=je,a)})}Kl(()=>{v(Object.fromEntries(e.url.searchParams))});let m=e.url.searchParams.toString();es(()=>{m=e.url.searchParams.toString()}),ts(()=>{var I;m!==e.url.searchParams.toString()&&(v(Object.fromEntries(e.url.searchParams)),m=e.url.searchParams.toString(),s(5,T=((I=e.url.searchParams.get("lb_status_codes"))==null?void 0:I.split(","))||[]))});function D(I){w.open?(w.close(),s(7,d=!1)):(w.show(),s(7,d=!0))}const S=[[]];function j(I){Ce[I?"unshift":"push"](()=>{N=I,s(8,N)})}const ue=I=>d&&I.target!==N&&D();function A(I){Ce[I?"unshift":"push"](()=>{w=I,s(6,w)})}const R=async I=>{s(4,C=!!I.target.checked),await Tl(),s(2,c.value=I.target.checked?"count":"_timestamp",c),console.log(c.value),s(3,b.value="DESC",b),await Tl(),E.requestSubmit()};function Q(I){Ce[I?"unshift":"push"](()=>{c=I,s(2,c)})}const x=()=>E.requestSubmit();function Y(I){Ce[I?"unshift":"push"](()=>{b=I,s(3,b)})}const W=()=>E.requestSubmit();function lt(){T=this.value,s(5,T)}function Xe(){T=Xl(S[0],this.__value,this.checked),s(5,T)}const ee=()=>{E.requestSubmit()};function Z(I){Ce[I?"unshift":"push"](()=>{E=I,s(1,E)})}function X(I){Ce[I?"unshift":"push"](()=>{u=I,s(0,u)})}return t.$$set=I=>{"$$scope"in I&&s(14,r=I.$$scope)},[u,E,c,b,C,T,w,d,N,e,a,P,k,D,r,i,j,ue,A,R,Q,x,Y,W,lt,Xe,S,ee,Z,X]}class As extends Hl{constructor(l){super(),Bl(this,l,Ss,Ps,Rl,{},null,[-1,-1])}}export{As as component}; diff --git a/gui/next/build/_app/immutable/nodes/8.C5n3zv3J.js b/gui/next/build/_app/immutable/nodes/8.C5n3zv3J.js new file mode 100644 index 000000000..023724fd5 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/8.C5n3zv3J.js @@ -0,0 +1,7 @@ +import{S as He,i as ze,s as Je,d as _,E as me,o as H,p as O,b as ee,c as o,I as ve,J as _e,z as u,e as v,f as b,h as A,L as pe,g as fe,j as p,k as M,M as he,t as ce,W as xe,C as Ue,x as Ke,a9 as Ct,O as Ye,Y as qe,X as et,R as Ce,H as ye,V as $t,K as ue,l as Qe,a5 as yt,N as we,a as De,n as Ze,F as Ie,D as Pt,ae as rt,G as wt,v as It,m as Dt,u as Nt,q as jt,r as Lt,P as it,ag as Ot,Q as Oe}from"../chunks/n7YEDvJi.js";import{g as St}from"../chunks/D0QH3NT1.js";import{e as Se}from"../chunks/DMhVG_ro.js";import"../chunks/IHki7fMi.js";import{g as Ut}from"../chunks/BkTZdoZE.js";import{s as re}from"../chunks/Bp_ajb_u.js";import{q as kt}from"../chunks/iVSWiVfi.js";import{p as At}from"../chunks/C6Nbyvij.js";import{u as Ae}from"../chunks/CNoDK8-a.js";import{c as Mt,T as Rt}from"../chunks/B9_cNKsK.js";import{I as Ne}from"../chunks/DHO4ENnJ.js";import{p as Vt}from"../chunks/6Lnq5zID.js";import{t as Bt}from"../chunks/x4PJc0Qf.js";import{N as Ft}from"../chunks/CYamOUSl.js";function qt(l){let e,a,t,s,r,n,f,i,h,m;return n=new Ne({props:{icon:"x",size:"22"}}),{c(){e=p("form"),a=p("input"),t=M(),s=p("button"),r=p("i"),he(n.$$.fragment),f=ce(` + Delete user`),this.h()},l(c){e=v(c,"FORM",{});var E=b(e);a=v(E,"INPUT",{type:!0,name:!0}),t=A(E),s=v(E,"BUTTON",{class:!0});var T=b(s);r=v(T,"I",{class:!0});var C=b(r);pe(n.$$.fragment,C),C.forEach(_),f=fe(T,` + Delete user`),T.forEach(_),E.forEach(_),this.h()},h(){u(a,"type","hidden"),u(a,"name","id"),a.value=l[0],u(r,"class","svelte-ooaugn"),u(s,"class","danger")},m(c,E){ee(c,e,E),o(e,a),o(e,t),o(e,s),o(s,r),ve(n,r,null),o(s,f),l[3](e),i=!0,h||(m=_e(e,"submit",l[2]),h=!0)},p(c,[E]){(!i||E&1)&&(a.value=c[0])},i(c){i||(O(n.$$.fragment,c),i=!0)},o(c){H(n.$$.fragment,c),i=!1},d(c){c&&_(e),me(n),l[3](null),h=!1,m()}}}function Ht(l,e,a){let{id:t}=e,s,r=xe();const n=async i=>{if(i.preventDefault(),confirm("Are you sure you want to delete this user?")){r("close");const m=new FormData(s).get("id");(await Ae.delete(m)).errors?re.notification.create("error",`Record ${m} could not be deleted`):(re.notification.create("success",`Record ${m} deleted`),r("success"))}};function f(i){Ue[i?"unshift":"push"](()=>{s=i,a(1,s)})}return l.$$set=i=>{"id"in i&&a(0,t=i.id)},[t,s,n,f]}class zt extends He{constructor(e){super(),ze(this,e,Ht,qt,Je,{id:0})}}function Jt(l){let e,a,t,s,r,n,f;return s=new zt({props:{id:l[0].id}}),s.$on("success",l[3]),s.$on("close",l[4]),{c(){e=p("menu"),a=p("ul"),t=p("li"),he(s.$$.fragment),this.h()},l(i){e=v(i,"MENU",{class:!0});var h=b(e);a=v(h,"UL",{});var m=b(a);t=v(m,"LI",{class:!0});var c=b(t);pe(s.$$.fragment,c),c.forEach(_),m.forEach(_),h.forEach(_),this.h()},h(){u(t,"class","svelte-8i1sxu"),u(e,"class","content-context svelte-8i1sxu")},m(i,h){ee(i,e,h),o(e,a),o(a,t),ve(s,t,null),r=!0,n||(f=[_e(window,"keyup",l[2]),Ct(Mt.call(null,e,l[5]))],n=!0)},p(i,[h]){const m={};h&1&&(m.id=i[0].id),s.$set(m)},i(i){r||(O(s.$$.fragment,i),r=!0)},o(i){H(s.$$.fragment,i),r=!1},d(i){i&&_(e),me(s),n=!1,Ke(f)}}}function Kt(l,e,a){let{record:t}=e;const s=xe(),r=h=>{h.key==="Escape"&&s("close")},n=()=>s("reload"),f=()=>s("close"),i=()=>s("close");return l.$$set=h=>{"record"in h&&a(0,t=h.record)},[t,s,r,n,f,i]}class Gt extends He{constructor(e){super(),ze(this,e,Kt,Jt,Je,{record:0})}}function ot(l,e,a){const t=l.slice();return t[13]=e[a],t}function ut(l,e,a){const t=l.slice();t[16]=e[a];const s=t[1]!==null?Vt(t[1].properties[t[16].name],t[16].attribute_type):{type:t[16].attribute_type,value:""};return t[17]=s,t}function ft(l){let e,a=`
`;return{c(){e=p("fieldset"),e.innerHTML=a,this.h()},l(t){e=v(t,"FIELDSET",{class:!0,"data-svelte-h":!0}),ue(e)!=="svelte-1u8xex3"&&(e.innerHTML=a),this.h()},h(){u(e,"class","svelte-26svji")},m(t,s){ee(t,e,s)},d(t){t&&_(e)}}}function Wt(l){let e=l[16].attribute_type+"",a,t,s,r,n;return{c(){a=ce(e),t=M(),s=p("input"),this.h()},l(f){a=fe(f,e),t=A(f),s=v(f,"INPUT",{type:!0,name:!0,class:!0}),this.h()},h(){u(s,"type","hidden"),u(s,"name",r=l[16].name+"[type]"),s.value=n=l[16].attribute_type,u(s,"class","svelte-26svji")},m(f,i){ee(f,a,i),ee(f,t,i),ee(f,s,i)},p(f,i){i&1&&e!==(e=f[16].attribute_type+"")&&De(a,e),i&1&&r!==(r=f[16].name+"[type]")&&u(s,"name",r),i&1&&n!==(n=f[16].attribute_type)&&(s.value=n)},i:Ze,o:Ze,d(f){f&&(_(a),_(t),_(s))}}}function Xt(l){let e,a;return e=new Rt({props:{name:l[16].name+"[type]",options:[{value:"string",label:"string"},{value:"json",label:"json"}],checked:l[17].type==="json"?"json":"string"}}),{c(){he(e.$$.fragment)},l(t){pe(e.$$.fragment,t)},m(t,s){ve(e,t,s),a=!0},p(t,s){const r={};s&1&&(r.name=t[16].name+"[type]"),s&3&&(r.checked=t[17].type==="json"?"json":"string"),e.$set(r)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){H(e.$$.fragment,t),a=!1},d(t){me(e,t)}}}function Yt(l){let e,a,t,s;return{c(){e=p("textarea"),this.h()},l(r){e=v(r,"TEXTAREA",{rows:!0,name:!0,id:!0,class:!0}),b(e).forEach(_),this.h()},h(){u(e,"rows","1"),u(e,"name",a=l[16].name+"[value]"),u(e,"id",t="edit_"+l[16].name),e.value=s=l[17].type==="json"||l[17].type==="jsonEscaped"?JSON.stringify(l[17].value,void 0,2):l[17].value,u(e,"class","svelte-26svji")},m(r,n){ee(r,e,n)},p(r,n){n&1&&a!==(a=r[16].name+"[value]")&&u(e,"name",a),n&1&&t!==(t="edit_"+r[16].name)&&u(e,"id",t),n&3&&s!==(s=r[17].type==="json"||r[17].type==="jsonEscaped"?JSON.stringify(r[17].value,void 0,2):r[17].value)&&(e.value=s)},d(r){r&&_(e)}}}function Qt(l){let e,a,t,s,r,n,f,i,h,m;return{c(){e=p("select"),a=p("option"),t=p("option"),s=ce("true"),n=p("option"),f=ce("false"),this.h()},l(c){e=v(c,"SELECT",{name:!0,id:!0});var E=b(e);a=v(E,"OPTION",{class:!0}),b(a).forEach(_),t=v(E,"OPTION",{});var T=b(t);s=fe(T,"true"),T.forEach(_),n=v(E,"OPTION",{});var C=b(n);f=fe(C,"false"),C.forEach(_),E.forEach(_),this.h()},h(){a.__value="",Ie(a,a.__value),u(a,"class","value-null"),t.__value="true",Ie(t,t.__value),t.selected=r=l[17].value==="true",n.__value="false",Ie(n,n.__value),n.selected=i=l[17].value==="false",u(e,"name",h=l[16].name+"[value]"),u(e,"id",m="edit_"+l[16].name)},m(c,E){ee(c,e,E),o(e,a),o(e,t),o(t,s),o(e,n),o(n,f)},p(c,E){E&3&&r!==(r=c[17].value==="true")&&(t.selected=r),E&3&&i!==(i=c[17].value==="false")&&(n.selected=i),E&1&&h!==(h=c[16].name+"[value]")&&u(e,"name",h),E&1&&m!==(m="edit_"+c[16].name)&&u(e,"id",m)},d(c){c&&_(e)}}}function ct(l){let e=l[5][l[16].name].message+"",a;return{c(){a=ce(e)},l(t){a=fe(t,e)},m(t,s){ee(t,a,s)},p(t,s){s&33&&e!==(e=t[5][t[16].name].message+"")&&De(a,e)},d(t){t&&_(a)}}}function dt(l){let e,a,t,s=l[16].name+"",r,n,f,i,h,m,c,E,T,C,F,P;const k=[Xt,Wt],y=[];function z($,B){return $[16].attribute_type==="string"?0:1}h=z(l),m=y[h]=k[h](l);function S($,B){return $[16].attribute_type==="boolean"?Qt:Yt}let R=S(l),J=R(l),U=l[5][l[16].name]&&ct(l);return{c(){e=p("fieldset"),a=p("dir"),t=p("label"),r=ce(s),n=p("br"),f=M(),i=p("div"),m.c(),E=M(),T=p("div"),J.c(),C=M(),F=p("div"),U&&U.c(),this.h()},l($){e=v($,"FIELDSET",{class:!0});var B=b(e);a=v(B,"DIR",{});var K=b(a);t=v(K,"LABEL",{for:!0,class:!0});var q=b(t);r=fe(q,s),n=v(q,"BR",{}),f=A(q),i=v(q,"DIV",{class:!0});var V=b(i);m.l(V),V.forEach(_),q.forEach(_),K.forEach(_),E=A(B),T=v(B,"DIV",{});var W=b(T);J.l(W),C=A(W),F=v(W,"DIV",{role:!0,class:!0});var I=b(F);U&&U.l(I),I.forEach(_),W.forEach(_),B.forEach(_),this.h()},h(){u(i,"class","type svelte-26svji"),u(t,"for",c="edit_"+l[16].name),u(t,"class","svelte-26svji"),u(F,"role","alert"),u(F,"class","svelte-26svji"),u(e,"class","svelte-26svji")},m($,B){ee($,e,B),o(e,a),o(a,t),o(t,r),o(t,n),o(t,f),o(t,i),y[h].m(i,null),o(e,E),o(e,T),J.m(T,null),o(T,C),o(T,F),U&&U.m(F,null),P=!0},p($,B){(!P||B&1)&&s!==(s=$[16].name+"")&&De(r,s);let K=h;h=z($),h===K?y[h].p($,B):(Ce(),H(y[K],1,1,()=>{y[K]=null}),ye(),m=y[h],m?m.p($,B):(m=y[h]=k[h]($),m.c()),O(m,1),m.m(i,null)),(!P||B&1&&c!==(c="edit_"+$[16].name))&&u(t,"for",c),R===(R=S($))&&J?J.p($,B):(J.d(1),J=R($),J&&(J.c(),J.m(T,C))),$[5][$[16].name]?U?U.p($,B):(U=ct($),U.c(),U.m(F,null)):U&&(U.d(1),U=null)},i($){P||(O(m),P=!0)},o($){H(m),P=!1},d($){$&&_(e),y[h].d(),J.d(),U&&U.d()}}}function _t(l){let e,a=(l[13].message??JSON.stringify(l[13]))+"",t,s;return{c(){e=p("li"),t=ce(a),s=M(),this.h()},l(r){e=v(r,"LI",{class:!0});var n=b(e);t=fe(n,a),s=A(n),n.forEach(_),this.h()},h(){u(e,"class","svelte-26svji")},m(r,n){ee(r,e,n),o(e,t),o(e,s)},p(r,n){n&16&&a!==(a=(r[13].message??JSON.stringify(r[13]))+"")&&De(t,a)},d(r){r&&_(e)}}}function Zt(l){let e;return{c(){e=ce("Edit user")},l(a){e=fe(a,"Edit user")},m(a,t){ee(a,e,t)},d(a){a&&_(e)}}}function xt(l){let e;return{c(){e=ce("Create user")},l(a){e=fe(a,"Create user")},m(a,t){ee(a,e,t)},d(a){a&&_(e)}}}function el(l){let e,a,t,s,r,n=``,f,i,h,m,c,E,T,C,F,P,k,y,z="Cancel",S,R,J,U,$,B,K,q,V=l[1]===null&&ft(),W=Se(l[0]),I=[];for(let d=0;dH(I[d],1,1,()=>{I[d]=null});let L=Se(l[4]),N=[];for(let d=0;d{B&&($||($=qe(e,l[7],{},!0)),$.run(1))}),B=!0}},o(d){I=I.filter(Boolean);for(let j=0;ja(6,t=P));let s,r,n=[],f={},{userProperties:i}=e,{userToEdit:h}=e;const m=xe(),c=function(P,{delay:k=0,duration:y=150}){return{delay:k,duration:y,css:z=>{const S=kt(z);return`opacity: ${S}; transform: scale(${S});`}}};yt(()=>{setTimeout(()=>{s.showModal()},10)}),document.addEventListener("keydown",P=>{P.key==="Escape"&&(P.preventDefault(),we(re,t.user=void 0,t))},{once:!0});const E=async P=>{P.preventDefault();const k=new FormData(r);a(5,f={});for(const y of k.entries())if(y[0].endsWith("[type]")&&(y[1]==="json"||y[1]==="array")){const z=y[0].replace("[type]",""),S=k.get(z+"[value]");S!==""&&!Bt(S)&&a(5,f[z]={property:z,message:`Not a valid ${y[1]}`},f)}if(Object.keys(f).length)await tick(),document.querySelector('[role="alert"]:not(:empty)').scrollIntoView({behavior:"smooth",block:"center"});else if(h===null){const y=k.get("email"),z=k.get("password");k.delete("email"),k.delete("password");const S=await Ae.create(y,z,k);S.errors?a(4,n=S.errors):(we(re,t.user=void 0,t),re.notification.create("success",`User ${S.user.id} created`),m("success"))}else{const y=k.get("email");k.delete("email");const z=await Ae.edit(h.id,y,k);z.errors?a(4,n=z.errors):(we(re,t.user=void 0,t),re.notification.create("success",`User ${z.user_update.id} edited`),m("success"))}},T=()=>we(re,t.user=void 0,t);function C(P){Ue[P?"unshift":"push"](()=>{r=P,a(3,r)})}function F(P){Ue[P?"unshift":"push"](()=>{s=P,a(2,s)})}return l.$$set=P=>{"userProperties"in P&&a(0,i=P.userProperties),"userToEdit"in P&&a(1,h=P.userToEdit)},[i,h,s,r,n,f,t,c,E,T,C,F]}class ll extends He{constructor(e){super(),ze(this,e,tl,el,Je,{userProperties:0,userToEdit:1})}}const{document:Xe}=St;function mt(l,e,a){const t=l.slice();return t[28]=e[a],t}function vt(l){let e,a,t="Clear filters",s,r,n,f,i,h;return r=new Ne({props:{icon:"x",size:"14"}}),{c(){e=p("button"),a=p("span"),a.textContent=t,s=M(),he(r.$$.fragment),this.h()},l(m){e=v(m,"BUTTON",{type:!0,class:!0});var c=b(e);a=v(c,"SPAN",{class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-ki22n5"&&(a.textContent=t),s=A(c),pe(r.$$.fragment,c),c.forEach(_),this.h()},h(){u(a,"class","label svelte-1g093it"),u(e,"type","button"),u(e,"class","clear svelte-1g093it")},m(m,c){ee(m,e,c),o(e,a),o(e,s),ve(r,e,null),f=!0,i||(h=_e(e,"click",l[10]),i=!0)},p:Ze,i(m){f||(O(r.$$.fragment,m),m&&et(()=>{f&&(n||(n=qe(e,l[8],{},!0)),n.run(1))}),f=!0)},o(m){H(r.$$.fragment,m),m&&(n||(n=qe(e,l[8],{},!1)),n.run(0)),f=!1},d(m){m&&_(e),me(r),m&&n&&n.end(),i=!1,h()}}}function pt(l){let e,a,t=Se(l[1]),s=[];for(let n=0;nH(s[n],1,1,()=>{s[n]=null});return{c(){e=p("tbody");for(let n=0;n{d=null}),ye()),(!L||g&2)&&J!==(J=l[28].id+"")&&De(U,J),(!L||g&34&&$!==($="/users/"+l[28].id+"?"+l[5].url.searchParams.toString()))&&u(R,"href",$),(!L||g&2)&&V!==(V=l[28].email+"")&&De(W,V),(!L||g&34&&I!==(I="/users/"+l[28].id+"?"+l[5].url.searchParams.toString()))&&u(q,"href",I),(!L||g&34)&&Oe(e,"active",l[5].params.id==l[28].id),(!L||g&18)&&Oe(e,"context",l[4].id===l[28].id)},i(j){L||(O(c.$$.fragment,j),O(k.$$.fragment,j),O(d),L=!0)},o(j){H(c.$$.fragment,j),H(k.$$.fragment,j),H(d),L=!1},d(j){j&&_(e),me(c),me(k),d&&d.d(),N=!1,Ke(se)}}}function bt(l){let e;const a=l[13].default,t=Dt(a,l,l[12],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&4096)&&Nt(t,a,s,s[12],e?Lt(a,s[12],r,null):jt(s[12]),null)},i(s){e||(O(t,s),e=!0)},o(s){H(t,s),e=!1},d(s){t&&t.d(s)}}}function Et(l){let e,a;return e=new ll({props:{userProperties:l[2],userToEdit:l[6].user}}),e.$on("success",l[26]),{c(){he(e.$$.fragment)},l(t){pe(e.$$.fragment,t)},m(t,s){ve(e,t,s),a=!0},p(t,s){const r={};s&4&&(r.userProperties=t[2]),s&64&&(r.userToEdit=t[6].user),e.$set(r)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){H(e.$$.fragment,t),a=!1},d(t){me(e,t)}}}function sl(l){var st;let e,a,t,s,r,n,f,i="Filter by",h,m,c,E,T="email",C,F="id",P,k,y,z,S,R,J="Apply filter",U,$,B,K,q,V,W=' ID Email',I,w,L,N,se,ge="Page:",ae,d,j,g,G=l[3].totalPages+"",de,Ee,X,ne,ie,le,oe="Create a new user",je,Pe,$e,Ge,tt;Xe.title=e="Users"+((st=l[6].online)!=null&&st.MPKIT_URL?": "+l[6].online.MPKIT_URL.replace("https://",""):"");let Y=l[3].value&&vt(l);$=new Ne({props:{icon:"arrowRight"}});let Q=l[1]&&pt(l);function Tt(D){l[23](D)}let lt={form:"filters",name:"page",min:1,max:l[3].totalPages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};l[3].page!==void 0&&(lt.value=l[3].page),d=new Ft({props:lt}),Ue.push(()=>Pt(d,"value",Tt)),d.$on("input",l[24]),ne=new Ne({props:{icon:"plus"}});let Z=l[5].params.id&&bt(l),x=l[6].user!==void 0&&Et(l);return{c(){a=M(),t=p("div"),s=p("section"),r=p("nav"),n=p("form"),f=p("label"),f.textContent=i,h=M(),m=p("fieldset"),c=p("select"),E=p("option"),E.textContent=T,C=p("option"),C.textContent=F,P=M(),k=p("input"),y=M(),Y&&Y.c(),z=M(),S=p("button"),R=p("span"),R.textContent=J,U=M(),he($.$$.fragment),B=M(),K=p("article"),q=p("table"),V=p("thead"),V.innerHTML=W,I=M(),Q&&Q.c(),w=M(),L=p("nav"),N=p("div"),se=p("label"),se.textContent=ge,ae=M(),he(d.$$.fragment),g=ce(` + of `),de=ce(G),Ee=M(),X=p("button"),he(ne.$$.fragment),ie=M(),le=p("span"),le.textContent=oe,je=M(),Z&&Z.c(),Pe=M(),x&&x.c(),this.h()},l(D){It("svelte-mcmxo",Xe.head).forEach(_),a=A(D),t=v(D,"DIV",{class:!0});var be=b(t);s=v(be,"SECTION",{class:!0});var ke=b(s);r=v(ke,"NAV",{class:!0});var at=b(r);n=v(at,"FORM",{action:!0,id:!0,class:!0});var Me=b(n);f=v(Me,"LABEL",{for:!0,"data-svelte-h":!0}),ue(f)!=="svelte-rbwhex"&&(f.textContent=i),h=A(Me),m=v(Me,"FIELDSET",{class:!0});var Te=b(m);c=v(Te,"SELECT",{id:!0,name:!0,class:!0});var We=b(c);E=v(We,"OPTION",{"data-svelte-h":!0}),ue(E)!=="svelte-51kto6"&&(E.textContent=T),C=v(We,"OPTION",{"data-svelte-h":!0}),ue(C)!=="svelte-ns3pfu"&&(C.textContent=F),We.forEach(_),P=A(Te),k=v(Te,"INPUT",{type:!0,name:!0,class:!0}),y=A(Te),Y&&Y.l(Te),z=A(Te),S=v(Te,"BUTTON",{type:!0,class:!0});var Re=b(S);R=v(Re,"SPAN",{class:!0,"data-svelte-h":!0}),ue(R)!=="svelte-ctu7wl"&&(R.textContent=J),U=A(Re),pe($.$$.fragment,Re),Re.forEach(_),Te.forEach(_),Me.forEach(_),at.forEach(_),B=A(ke),K=v(ke,"ARTICLE",{class:!0});var nt=b(K);q=v(nt,"TABLE",{class:!0});var Ve=b(q);V=v(Ve,"THEAD",{class:!0,"data-svelte-h":!0}),ue(V)!=="svelte-17vx132"&&(V.innerHTML=W),I=A(Ve),Q&&Q.l(Ve),Ve.forEach(_),nt.forEach(_),w=A(ke),L=v(ke,"NAV",{class:!0});var Be=b(L);N=v(Be,"DIV",{});var Le=b(N);se=v(Le,"LABEL",{for:!0,"data-svelte-h":!0}),ue(se)!=="svelte-1r8oyu6"&&(se.textContent=ge),ae=A(Le),pe(d.$$.fragment,Le),g=fe(Le,` + of `),de=fe(Le,G),Le.forEach(_),Ee=A(Be),X=v(Be,"BUTTON",{class:!0,title:!0});var Fe=b(X);pe(ne.$$.fragment,Fe),ie=A(Fe),le=v(Fe,"SPAN",{class:!0,"data-svelte-h":!0}),ue(le)!=="svelte-vjukmr"&&(le.textContent=oe),Fe.forEach(_),Be.forEach(_),ke.forEach(_),je=A(be),Z&&Z.l(be),Pe=A(be),x&&x.l(be),be.forEach(_),this.h()},h(){u(f,"for","filters_attribute"),E.__value="email",Ie(E,E.__value),C.__value="id",Ie(C,C.__value),u(c,"id","filters_attribute"),u(c,"name","attribute"),u(c,"class","svelte-1g093it"),l[3].attribute===void 0&&et(()=>l[14].call(c)),u(k,"type","text"),u(k,"name","value"),u(k,"class","svelte-1g093it"),u(R,"class","label svelte-1g093it"),u(S,"type","submit"),u(S,"class","button svelte-1g093it"),u(m,"class","search svelte-1g093it"),u(n,"action",""),u(n,"id","filters"),u(n,"class","svelte-1g093it"),u(r,"class","filters svelte-1g093it"),u(V,"class","svelte-1g093it"),u(q,"class","svelte-1g093it"),u(K,"class","contetnt"),u(se,"for","page"),u(le,"class","label"),u(X,"class","button"),u(X,"title","Create user"),u(L,"class","pagination svelte-1g093it"),u(s,"class","container svelte-1g093it"),u(t,"class","page svelte-1g093it")},m(D,te){ee(D,a,te),ee(D,t,te),o(t,s),o(s,r),o(r,n),o(n,f),o(n,h),o(n,m),o(m,c),o(c,E),o(c,C),rt(c,l[3].attribute,!0),o(m,P),o(m,k),Ie(k,l[3].value),o(m,y),Y&&Y.m(m,null),o(m,z),o(m,S),o(S,R),o(S,U),ve($,S,null),l[17](n),o(s,B),o(s,K),o(K,q),o(q,V),o(q,I),Q&&Q.m(q,null),o(s,w),o(s,L),o(L,N),o(N,se),o(N,ae),ve(d,N,null),o(N,g),o(N,de),o(L,Ee),o(L,X),ve(ne,X,null),o(X,ie),o(X,le),o(t,je),Z&&Z.m(t,null),o(t,Pe),x&&x.m(t,null),$e=!0,Ge||(tt=[_e(c,"change",l[14]),_e(c,"change",l[15]),_e(k,"input",l[16]),_e(n,"submit",l[18]),_e(X,"click",$t(l[25]))],Ge=!0)},p(D,[te]){var ke;(!$e||te&64)&&e!==(e="Users"+((ke=D[6].online)!=null&&ke.MPKIT_URL?": "+D[6].online.MPKIT_URL.replace("https://",""):""))&&(Xe.title=e),te&8&&rt(c,D[3].attribute),te&8&&k.value!==D[3].value&&Ie(k,D[3].value),D[3].value?Y?(Y.p(D,te),te&8&&O(Y,1)):(Y=vt(D),Y.c(),O(Y,1),Y.m(m,z)):Y&&(Ce(),H(Y,1,1,()=>{Y=null}),ye()),D[1]?Q?(Q.p(D,te),te&2&&O(Q,1)):(Q=pt(D),Q.c(),O(Q,1),Q.m(q,null)):Q&&(Ce(),H(Q,1,1,()=>{Q=null}),ye());const be={};te&8&&(be.max=D[3].totalPages),!j&&te&8&&(j=!0,be.value=D[3].page,wt(()=>j=!1)),d.$set(be),(!$e||te&8)&&G!==(G=D[3].totalPages+"")&&De(de,G),D[5].params.id?Z?(Z.p(D,te),te&32&&O(Z,1)):(Z=bt(D),Z.c(),O(Z,1),Z.m(t,Pe)):Z&&(Ce(),H(Z,1,1,()=>{Z=null}),ye()),D[6].user!==void 0?x?(x.p(D,te),te&64&&O(x,1)):(x=Et(D),x.c(),O(x,1),x.m(t,null)):x&&(Ce(),H(x,1,1,()=>{x=null}),ye())},i(D){$e||(O(Y),O($.$$.fragment,D),O(Q),O(d.$$.fragment,D),O(ne.$$.fragment,D),O(Z),O(x),$e=!0)},o(D){H(Y),H($.$$.fragment,D),H(Q),H(d.$$.fragment,D),H(ne.$$.fragment,D),H(Z),H(x),$e=!1},d(D){D&&(_(a),_(t)),Y&&Y.d(),me($),l[17](null),Q&&Q.d(),me(d),me(ne),Z&&Z.d(),x&&x.d(),Ge=!1,Ke(tt)}}}function al(l,e,a){let t,s;Qe(l,At,w=>a(5,t=w)),Qe(l,re,w=>a(6,s=w));let{$$slots:r={},$$scope:n}=e,f,i=[],h=null,m={page:1,attribute:"email",value:""},c={page:1,totalPages:1,attribute:"email",value:"",...Object.fromEntries(t.url.searchParams)};we(re,s.user=void 0,s);let E={id:null};const T=function(){const w=Object.fromEntries(t.url.searchParams);Ae.get(w).then(L=>{a(1,i=L.results),a(3,c.totalPages=L.total_pages,c)})},C=function(w,{delay:L=0,duration:N=150}){return{delay:L,duration:N,css:se=>`scale: ${kt(se)};`}},F=function(w=null){h===null?Ae.getCustomProperties().then(L=>{a(2,h=L),we(re,s.user=w,s)}).catch(()=>{re.notification.create("error","Could not load table properties. Please try again later.")}):we(re,s.user=w,s)},P=async function(){a(3,c=structuredClone(m)),await it(),f.requestSubmit()},k=async function(w){w.preventDefault();const L=t.url.searchParams,N=new URLSearchParams(new FormData(w.target));L.get("value")!==N.get("value")&&(N.set("page",1),a(3,c.page=1,c)),await Ut(document.location.pathname+"?"+N.toString()),await it(),await T()};function y(){c.attribute=Ot(this),a(3,c)}const z=()=>a(3,c.value="",c);function S(){c.value=this.value,a(3,c)}function R(w){Ue[w?"unshift":"push"](()=>{f=w,a(0,f)})}const J=w=>k(w),U=w=>a(4,E.id=w.id,E),$=w=>{F(w)},B=()=>T(),K=()=>a(4,E.id=null,E);function q(w){l.$$.not_equal(c.page,w)&&(c.page=w,a(3,c))}const V=w=>{f.requestSubmit(w.detail.submitter)},W=()=>F(),I=()=>T();return l.$$set=w=>{"$$scope"in w&&a(12,n=w.$$scope)},T(),[f,i,h,c,E,t,s,T,C,F,P,k,n,r,y,z,S,R,J,U,$,B,K,q,V,W,I]}class bl extends He{constructor(e){super(),ze(this,e,al,sl,Je,{})}}export{bl as component}; diff --git a/gui/next/build/_app/immutable/nodes/8.DaJnnOWR.js b/gui/next/build/_app/immutable/nodes/8.DaJnnOWR.js deleted file mode 100644 index 95ac2dd44..000000000 --- a/gui/next/build/_app/immutable/nodes/8.DaJnnOWR.js +++ /dev/null @@ -1,7 +0,0 @@ -import{s as He,e as p,a as A,t as fe,c as v,b,g as M,f as _,d as ce,y as u,i as ee,h as o,C as _e,L as xe,z as Ue,Y as Ct,r as Je,A as ue,J as kt,M as et,F as Xe,k as Qe,U as Pt,E as we,j as De,n as Ze,B as Ie,p as wt,a1 as rt,D as It,G as Oe,l as Dt,u as jt,m as Nt,o as Lt,H as it,a3 as Ot}from"../chunks/scheduler.CKQ5dLhN.js";import{S as ze,i as Ke,c as me,d as pe,m as ve,t as O,a as H,f as he,g as ye,e as Ce,h as qe,b as St}from"../chunks/index.CGVWAVV-.js";import{g as Ut}from"../chunks/globals.D0QH3NT1.js";import{e as Se}from"../chunks/each.BWzj3zy9.js";import{g as At}from"../chunks/entry.COceLI_i.js";import{s as re}from"../chunks/state.nqMW8J5l.js";import{q as Tt}from"../chunks/index.iVSWiVfi.js";import{p as Mt}from"../chunks/stores.BLuxmlax.js";import{u as Ae}from"../chunks/user.CRviTK4n.js";import{c as Rt,T as Bt}from"../chunks/Toggle.CtBEfrzX.js";import{I as je}from"../chunks/Icon.CkKwi_WD.js";import{p as Vt}from"../chunks/parseValue.BxCUwhRQ.js";import{t as Ft}from"../chunks/tryParseJSON.x4PJc0Qf.js";import{N as qt}from"../chunks/Number.B4JDnNHn.js";function Ht(l){let e,a,t,s,r,n,f,i,h,m;return n=new je({props:{icon:"x",size:"22"}}),{c(){e=p("form"),a=p("input"),t=A(),s=p("button"),r=p("i"),me(n.$$.fragment),f=fe(`\r - Delete user`),this.h()},l(c){e=v(c,"FORM",{});var E=b(e);a=v(E,"INPUT",{type:!0,name:!0}),t=M(E),s=v(E,"BUTTON",{class:!0});var T=b(s);r=v(T,"I",{class:!0});var y=b(r);pe(n.$$.fragment,y),y.forEach(_),f=ce(T,`\r - Delete user`),T.forEach(_),E.forEach(_),this.h()},h(){u(a,"type","hidden"),u(a,"name","id"),a.value=l[0],u(r,"class","svelte-ooaugn"),u(s,"class","danger")},m(c,E){ee(c,e,E),o(e,a),o(e,t),o(e,s),o(s,r),ve(n,r,null),o(s,f),l[3](e),i=!0,h||(m=_e(e,"submit",l[2]),h=!0)},p(c,[E]){(!i||E&1)&&(a.value=c[0])},i(c){i||(O(n.$$.fragment,c),i=!0)},o(c){H(n.$$.fragment,c),i=!1},d(c){c&&_(e),he(n),l[3](null),h=!1,m()}}}function Jt(l,e,a){let{id:t}=e,s,r=xe();const n=async i=>{if(i.preventDefault(),confirm("Are you sure you want to delete this user?")){r("close");const m=new FormData(s).get("id");(await Ae.delete(m)).errors?re.notification.create("error",`Record ${m} could not be deleted`):(re.notification.create("success",`Record ${m} deleted`),r("success"))}};function f(i){Ue[i?"unshift":"push"](()=>{s=i,a(1,s)})}return l.$$set=i=>{"id"in i&&a(0,t=i.id)},[t,s,n,f]}class zt extends ze{constructor(e){super(),Ke(this,e,Jt,Ht,He,{id:0})}}function Kt(l){let e,a,t,s,r,n,f;return s=new zt({props:{id:l[0].id}}),s.$on("success",l[3]),s.$on("close",l[4]),{c(){e=p("menu"),a=p("ul"),t=p("li"),me(s.$$.fragment),this.h()},l(i){e=v(i,"MENU",{class:!0});var h=b(e);a=v(h,"UL",{});var m=b(a);t=v(m,"LI",{class:!0});var c=b(t);pe(s.$$.fragment,c),c.forEach(_),m.forEach(_),h.forEach(_),this.h()},h(){u(t,"class","svelte-8i1sxu"),u(e,"class","content-context svelte-8i1sxu")},m(i,h){ee(i,e,h),o(e,a),o(a,t),ve(s,t,null),r=!0,n||(f=[_e(window,"keyup",l[2]),Ct(Rt.call(null,e,l[5]))],n=!0)},p(i,[h]){const m={};h&1&&(m.id=i[0].id),s.$set(m)},i(i){r||(O(s.$$.fragment,i),r=!0)},o(i){H(s.$$.fragment,i),r=!1},d(i){i&&_(e),he(s),n=!1,Je(f)}}}function Gt(l,e,a){let{record:t}=e;const s=xe(),r=h=>{h.key==="Escape"&&s("close")},n=()=>s("reload"),f=()=>s("close"),i=()=>s("close");return l.$$set=h=>{"record"in h&&a(0,t=h.record)},[t,s,r,n,f,i]}class Yt extends ze{constructor(e){super(),Ke(this,e,Gt,Kt,He,{record:0})}}function ot(l,e,a){const t=l.slice();return t[13]=e[a],t}function ut(l,e,a){const t=l.slice();t[16]=e[a];const s=t[1]!==null?Vt(t[1].properties[t[16].name],t[16].attribute_type):{type:t[16].attribute_type,value:""};return t[17]=s,t}function ft(l){let e,a=`
`;return{c(){e=p("fieldset"),e.innerHTML=a,this.h()},l(t){e=v(t,"FIELDSET",{class:!0,"data-svelte-h":!0}),ue(e)!=="svelte-1u8xex3"&&(e.innerHTML=a),this.h()},h(){u(e,"class","svelte-26svji")},m(t,s){ee(t,e,s)},d(t){t&&_(e)}}}function Wt(l){let e=l[16].attribute_type+"",a,t,s,r,n;return{c(){a=fe(e),t=A(),s=p("input"),this.h()},l(f){a=ce(f,e),t=M(f),s=v(f,"INPUT",{type:!0,name:!0,class:!0}),this.h()},h(){u(s,"type","hidden"),u(s,"name",r=l[16].name+"[type]"),s.value=n=l[16].attribute_type,u(s,"class","svelte-26svji")},m(f,i){ee(f,a,i),ee(f,t,i),ee(f,s,i)},p(f,i){i&1&&e!==(e=f[16].attribute_type+"")&&De(a,e),i&1&&r!==(r=f[16].name+"[type]")&&u(s,"name",r),i&1&&n!==(n=f[16].attribute_type)&&(s.value=n)},i:Ze,o:Ze,d(f){f&&(_(a),_(t),_(s))}}}function Xt(l){let e,a;return e=new Bt({props:{name:l[16].name+"[type]",options:[{value:"string",label:"string"},{value:"json",label:"json"}],checked:l[17].type==="json"?"json":"string"}}),{c(){me(e.$$.fragment)},l(t){pe(e.$$.fragment,t)},m(t,s){ve(e,t,s),a=!0},p(t,s){const r={};s&1&&(r.name=t[16].name+"[type]"),s&3&&(r.checked=t[17].type==="json"?"json":"string"),e.$set(r)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){H(e.$$.fragment,t),a=!1},d(t){he(e,t)}}}function Qt(l){let e,a,t,s;return{c(){e=p("textarea"),this.h()},l(r){e=v(r,"TEXTAREA",{rows:!0,name:!0,id:!0,class:!0}),b(e).forEach(_),this.h()},h(){u(e,"rows","1"),u(e,"name",a=l[16].name+"[value]"),u(e,"id",t="edit_"+l[16].name),e.value=s=l[17].type==="json"||l[17].type==="jsonEscaped"&&!mt?JSON.stringify(l[17].value,void 0,2):l[17].value,u(e,"class","svelte-26svji")},m(r,n){ee(r,e,n)},p(r,n){n&1&&a!==(a=r[16].name+"[value]")&&u(e,"name",a),n&1&&t!==(t="edit_"+r[16].name)&&u(e,"id",t),n&3&&s!==(s=r[17].type==="json"||r[17].type==="jsonEscaped"&&!mt?JSON.stringify(r[17].value,void 0,2):r[17].value)&&(e.value=s)},d(r){r&&_(e)}}}function Zt(l){let e,a,t,s,r,n,f,i,h,m;return{c(){e=p("select"),a=p("option"),t=p("option"),s=fe("true"),n=p("option"),f=fe("false"),this.h()},l(c){e=v(c,"SELECT",{name:!0,id:!0});var E=b(e);a=v(E,"OPTION",{class:!0}),b(a).forEach(_),t=v(E,"OPTION",{});var T=b(t);s=ce(T,"true"),T.forEach(_),n=v(E,"OPTION",{});var y=b(n);f=ce(y,"false"),y.forEach(_),E.forEach(_),this.h()},h(){a.__value="",Ie(a,a.__value),u(a,"class","value-null"),t.__value="true",Ie(t,t.__value),t.selected=r=l[17].value==="true",n.__value="false",Ie(n,n.__value),n.selected=i=l[17].value==="false",u(e,"name",h=l[16].name+"[value]"),u(e,"id",m="edit_"+l[16].name)},m(c,E){ee(c,e,E),o(e,a),o(e,t),o(t,s),o(e,n),o(n,f)},p(c,E){E&3&&r!==(r=c[17].value==="true")&&(t.selected=r),E&3&&i!==(i=c[17].value==="false")&&(n.selected=i),E&1&&h!==(h=c[16].name+"[value]")&&u(e,"name",h),E&1&&m!==(m="edit_"+c[16].name)&&u(e,"id",m)},d(c){c&&_(e)}}}function ct(l){let e=l[5][l[16].name].message+"",a;return{c(){a=fe(e)},l(t){a=ce(t,e)},m(t,s){ee(t,a,s)},p(t,s){s&33&&e!==(e=t[5][t[16].name].message+"")&&De(a,e)},d(t){t&&_(a)}}}function dt(l){let e,a,t,s=l[16].name+"",r,n,f,i,h,m,c,E,T,y,F,P;const k=[Xt,Wt],C=[];function J($,V){return $[16].attribute_type==="string"?0:1}h=J(l),m=C[h]=k[h](l);function S($,V){return $[16].attribute_type==="boolean"?Zt:Qt}let R=S(l),z=R(l),U=l[5][l[16].name]&&ct(l);return{c(){e=p("fieldset"),a=p("dir"),t=p("label"),r=fe(s),n=p("br"),f=A(),i=p("div"),m.c(),E=A(),T=p("div"),z.c(),y=A(),F=p("div"),U&&U.c(),this.h()},l($){e=v($,"FIELDSET",{class:!0});var V=b(e);a=v(V,"DIR",{});var K=b(a);t=v(K,"LABEL",{for:!0,class:!0});var q=b(t);r=ce(q,s),n=v(q,"BR",{}),f=M(q),i=v(q,"DIV",{class:!0});var B=b(i);m.l(B),B.forEach(_),q.forEach(_),K.forEach(_),E=M(V),T=v(V,"DIV",{});var Y=b(T);z.l(Y),y=M(Y),F=v(Y,"DIV",{role:!0,class:!0});var I=b(F);U&&U.l(I),I.forEach(_),Y.forEach(_),V.forEach(_),this.h()},h(){u(i,"class","type svelte-26svji"),u(t,"for",c="edit_"+l[16].name),u(t,"class","svelte-26svji"),u(F,"role","alert"),u(F,"class","svelte-26svji"),u(e,"class","svelte-26svji")},m($,V){ee($,e,V),o(e,a),o(a,t),o(t,r),o(t,n),o(t,f),o(t,i),C[h].m(i,null),o(e,E),o(e,T),z.m(T,null),o(T,y),o(T,F),U&&U.m(F,null),P=!0},p($,V){(!P||V&1)&&s!==(s=$[16].name+"")&&De(r,s);let K=h;h=J($),h===K?C[h].p($,V):(ye(),H(C[K],1,1,()=>{C[K]=null}),Ce(),m=C[h],m?m.p($,V):(m=C[h]=k[h]($),m.c()),O(m,1),m.m(i,null)),(!P||V&1&&c!==(c="edit_"+$[16].name))&&u(t,"for",c),R===(R=S($))&&z?z.p($,V):(z.d(1),z=R($),z&&(z.c(),z.m(T,y))),$[5][$[16].name]?U?U.p($,V):(U=ct($),U.c(),U.m(F,null)):U&&(U.d(1),U=null)},i($){P||(O(m),P=!0)},o($){H(m),P=!1},d($){$&&_(e),C[h].d(),z.d(),U&&U.d()}}}function _t(l){let e,a=(l[13].message??JSON.stringify(l[13]))+"",t,s;return{c(){e=p("li"),t=fe(a),s=A(),this.h()},l(r){e=v(r,"LI",{class:!0});var n=b(e);t=ce(n,a),s=M(n),n.forEach(_),this.h()},h(){u(e,"class","svelte-26svji")},m(r,n){ee(r,e,n),o(e,t),o(e,s)},p(r,n){n&16&&a!==(a=(r[13].message??JSON.stringify(r[13]))+"")&&De(t,a)},d(r){r&&_(e)}}}function xt(l){let e;return{c(){e=fe("Edit user")},l(a){e=ce(a,"Edit user")},m(a,t){ee(a,e,t)},d(a){a&&_(e)}}}function el(l){let e;return{c(){e=fe("Create user")},l(a){e=ce(a,"Create user")},m(a,t){ee(a,e,t)},d(a){a&&_(e)}}}function tl(l){let e,a,t,s,r,n=``,f,i,h,m,c,E,T,y,F,P,k,C,J="Cancel",S,R,z,U,$,V,K,q,B=l[1]===null&&ft(),Y=Se(l[0]),I=[];for(let d=0;dH(I[d],1,1,()=>{I[d]=null});let L=Se(l[4]),j=[];for(let d=0;d{V&&($||($=qe(e,l[7],{},!0)),$.run(1))}),V=!0}},o(d){I=I.filter(Boolean);for(let N=0;Na(6,t=P));let s,r,n=[],f={},{userProperties:i}=e,{userToEdit:h}=e;const m=xe(),c=function(P,{delay:k=0,duration:C=150}){return{delay:k,duration:C,css:J=>{const S=Tt(J);return`opacity: ${S}; transform: scale(${S});`}}};Pt(()=>{setTimeout(()=>{s.showModal()},10)}),document.addEventListener("keydown",P=>{P.key==="Escape"&&(P.preventDefault(),we(re,t.user=void 0,t))},{once:!0});const E=async P=>{P.preventDefault();const k=new FormData(r);a(5,f={});for(const C of k.entries())if(C[0].endsWith("[type]")&&(C[1]==="json"||C[1]==="array")){const J=C[0].replace("[type]",""),S=k.get(J+"[value]");S!==""&&!Ft(S)&&a(5,f[J]={property:J,message:`Not a valid ${C[1]}`},f)}if(Object.keys(f).length)await tick(),document.querySelector('[role="alert"]:not(:empty)').scrollIntoView({behavior:"smooth",block:"center"});else if(h===null){const C=k.get("email"),J=k.get("password");k.delete("email"),k.delete("password");const S=await Ae.create(C,J,k);S.errors?a(4,n=S.errors):(we(re,t.user=void 0,t),re.notification.create("success",`User ${S.user.id} created`),m("success"))}else{const C=k.get("email");k.delete("email");const J=await Ae.edit(h.id,C,k);J.errors?a(4,n=J.errors):(we(re,t.user=void 0,t),re.notification.create("success",`User ${J.user_update.id} edited`),m("success"))}},T=()=>we(re,t.user=void 0,t);function y(P){Ue[P?"unshift":"push"](()=>{r=P,a(3,r)})}function F(P){Ue[P?"unshift":"push"](()=>{s=P,a(2,s)})}return l.$$set=P=>{"userProperties"in P&&a(0,i=P.userProperties),"userToEdit"in P&&a(1,h=P.userToEdit)},[i,h,s,r,n,f,t,c,E,T,y,F]}class sl extends ze{constructor(e){super(),Ke(this,e,ll,tl,He,{userProperties:0,userToEdit:1})}}const{document:We}=Ut;function pt(l,e,a){const t=l.slice();return t[28]=e[a],t}function vt(l){let e,a,t="Clear filters",s,r,n,f,i,h;return r=new je({props:{icon:"x",size:"14"}}),{c(){e=p("button"),a=p("span"),a.textContent=t,s=A(),me(r.$$.fragment),this.h()},l(m){e=v(m,"BUTTON",{type:!0,class:!0});var c=b(e);a=v(c,"SPAN",{class:!0,"data-svelte-h":!0}),ue(a)!=="svelte-ki22n5"&&(a.textContent=t),s=M(c),pe(r.$$.fragment,c),c.forEach(_),this.h()},h(){u(a,"class","label svelte-1g093it"),u(e,"type","button"),u(e,"class","clear svelte-1g093it")},m(m,c){ee(m,e,c),o(e,a),o(e,s),ve(r,e,null),f=!0,i||(h=_e(e,"click",l[10]),i=!0)},p:Ze,i(m){f||(O(r.$$.fragment,m),m&&et(()=>{f&&(n||(n=qe(e,l[8],{},!0)),n.run(1))}),f=!0)},o(m){H(r.$$.fragment,m),m&&(n||(n=qe(e,l[8],{},!1)),n.run(0)),f=!1},d(m){m&&_(e),he(r),m&&n&&n.end(),i=!1,h()}}}function ht(l){let e,a,t=Se(l[1]),s=[];for(let n=0;nH(s[n],1,1,()=>{s[n]=null});return{c(){e=p("tbody");for(let n=0;n{d=null}),Ce()),(!L||g&2)&&z!==(z=l[28].id+"")&&De(U,z),(!L||g&34&&$!==($="/users/"+l[28].id+"?"+l[5].url.searchParams.toString()))&&u(R,"href",$),(!L||g&2)&&B!==(B=l[28].email+"")&&De(Y,B),(!L||g&34&&I!==(I="/users/"+l[28].id+"?"+l[5].url.searchParams.toString()))&&u(q,"href",I),(!L||g&34)&&Oe(e,"active",l[5].params.id==l[28].id),(!L||g&18)&&Oe(e,"context",l[4].id===l[28].id)},i(N){L||(O(c.$$.fragment,N),O(k.$$.fragment,N),O(d),L=!0)},o(N){H(c.$$.fragment,N),H(k.$$.fragment,N),H(d),L=!1},d(N){N&&_(e),he(c),he(k),d&&d.d(),j=!1,Je(se)}}}function Et(l){let e;const a=l[13].default,t=Dt(a,l,l[12],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&4096)&&jt(t,a,s,s[12],e?Lt(a,s[12],r,null):Nt(s[12]),null)},i(s){e||(O(t,s),e=!0)},o(s){H(t,s),e=!1},d(s){t&&t.d(s)}}}function $t(l){let e,a;return e=new sl({props:{userProperties:l[2],userToEdit:l[6].user}}),e.$on("success",l[26]),{c(){me(e.$$.fragment)},l(t){pe(e.$$.fragment,t)},m(t,s){ve(e,t,s),a=!0},p(t,s){const r={};s&4&&(r.userProperties=t[2]),s&64&&(r.userToEdit=t[6].user),e.$set(r)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){H(e.$$.fragment,t),a=!1},d(t){he(e,t)}}}function al(l){var st;let e,a,t,s,r,n,f,i="Filter by",h,m,c,E,T="email",y,F="id",P,k,C,J,S,R,z="Apply filter",U,$,V,K,q,B,Y=' ID Email',I,w,L,j,se,ge="Page:",ae,d,N,g,G=l[3].totalPages+"",de,Ee,W,ne,ie,le,oe="Create a new user",Ne,Pe,$e,Ge,tt;We.title=e="Users"+((st=l[6].online)!=null&&st.MPKIT_URL?": "+l[6].online.MPKIT_URL.replace("https://",""):"");let X=l[3].value&&vt(l);$=new je({props:{icon:"arrowRight"}});let Q=l[1]&&ht(l);function yt(D){l[23](D)}let lt={form:"filters",name:"page",min:1,max:l[3].totalPages,step:1,decreaseLabel:"Previous page",increaseLabel:"Next page",style:"navigation"};l[3].page!==void 0&&(lt.value=l[3].page),d=new qt({props:lt}),Ue.push(()=>St(d,"value",yt)),d.$on("input",l[24]),ne=new je({props:{icon:"plus"}});let Z=l[5].params.id&&Et(l),x=l[6].user!==void 0&&$t(l);return{c(){a=A(),t=p("div"),s=p("section"),r=p("nav"),n=p("form"),f=p("label"),f.textContent=i,h=A(),m=p("fieldset"),c=p("select"),E=p("option"),E.textContent=T,y=p("option"),y.textContent=F,P=A(),k=p("input"),C=A(),X&&X.c(),J=A(),S=p("button"),R=p("span"),R.textContent=z,U=A(),me($.$$.fragment),V=A(),K=p("article"),q=p("table"),B=p("thead"),B.innerHTML=Y,I=A(),Q&&Q.c(),w=A(),L=p("nav"),j=p("div"),se=p("label"),se.textContent=ge,ae=A(),me(d.$$.fragment),g=fe(`\r - of `),de=fe(G),Ee=A(),W=p("button"),me(ne.$$.fragment),ie=A(),le=p("span"),le.textContent=oe,Ne=A(),Z&&Z.c(),Pe=A(),x&&x.c(),this.h()},l(D){wt("svelte-mcmxo",We.head).forEach(_),a=M(D),t=v(D,"DIV",{class:!0});var be=b(t);s=v(be,"SECTION",{class:!0});var ke=b(s);r=v(ke,"NAV",{class:!0});var at=b(r);n=v(at,"FORM",{action:!0,id:!0,class:!0});var Me=b(n);f=v(Me,"LABEL",{for:!0,"data-svelte-h":!0}),ue(f)!=="svelte-rbwhex"&&(f.textContent=i),h=M(Me),m=v(Me,"FIELDSET",{class:!0});var Te=b(m);c=v(Te,"SELECT",{id:!0,name:!0,class:!0});var Ye=b(c);E=v(Ye,"OPTION",{"data-svelte-h":!0}),ue(E)!=="svelte-51kto6"&&(E.textContent=T),y=v(Ye,"OPTION",{"data-svelte-h":!0}),ue(y)!=="svelte-ns3pfu"&&(y.textContent=F),Ye.forEach(_),P=M(Te),k=v(Te,"INPUT",{type:!0,name:!0,class:!0}),C=M(Te),X&&X.l(Te),J=M(Te),S=v(Te,"BUTTON",{type:!0,class:!0});var Re=b(S);R=v(Re,"SPAN",{class:!0,"data-svelte-h":!0}),ue(R)!=="svelte-ctu7wl"&&(R.textContent=z),U=M(Re),pe($.$$.fragment,Re),Re.forEach(_),Te.forEach(_),Me.forEach(_),at.forEach(_),V=M(ke),K=v(ke,"ARTICLE",{class:!0});var nt=b(K);q=v(nt,"TABLE",{class:!0});var Be=b(q);B=v(Be,"THEAD",{class:!0,"data-svelte-h":!0}),ue(B)!=="svelte-17vx132"&&(B.innerHTML=Y),I=M(Be),Q&&Q.l(Be),Be.forEach(_),nt.forEach(_),w=M(ke),L=v(ke,"NAV",{class:!0});var Ve=b(L);j=v(Ve,"DIV",{});var Le=b(j);se=v(Le,"LABEL",{for:!0,"data-svelte-h":!0}),ue(se)!=="svelte-1r8oyu6"&&(se.textContent=ge),ae=M(Le),pe(d.$$.fragment,Le),g=ce(Le,`\r - of `),de=ce(Le,G),Le.forEach(_),Ee=M(Ve),W=v(Ve,"BUTTON",{class:!0,title:!0});var Fe=b(W);pe(ne.$$.fragment,Fe),ie=M(Fe),le=v(Fe,"SPAN",{class:!0,"data-svelte-h":!0}),ue(le)!=="svelte-vjukmr"&&(le.textContent=oe),Fe.forEach(_),Ve.forEach(_),ke.forEach(_),Ne=M(be),Z&&Z.l(be),Pe=M(be),x&&x.l(be),be.forEach(_),this.h()},h(){u(f,"for","filters_attribute"),E.__value="email",Ie(E,E.__value),y.__value="id",Ie(y,y.__value),u(c,"id","filters_attribute"),u(c,"name","attribute"),u(c,"class","svelte-1g093it"),l[3].attribute===void 0&&et(()=>l[14].call(c)),u(k,"type","text"),u(k,"name","value"),u(k,"class","svelte-1g093it"),u(R,"class","label svelte-1g093it"),u(S,"type","submit"),u(S,"class","button svelte-1g093it"),u(m,"class","search svelte-1g093it"),u(n,"action",""),u(n,"id","filters"),u(n,"class","svelte-1g093it"),u(r,"class","filters svelte-1g093it"),u(B,"class","svelte-1g093it"),u(q,"class","svelte-1g093it"),u(K,"class","contetnt"),u(se,"for","page"),u(le,"class","label"),u(W,"class","button"),u(W,"title","Create user"),u(L,"class","pagination svelte-1g093it"),u(s,"class","container svelte-1g093it"),u(t,"class","page svelte-1g093it")},m(D,te){ee(D,a,te),ee(D,t,te),o(t,s),o(s,r),o(r,n),o(n,f),o(n,h),o(n,m),o(m,c),o(c,E),o(c,y),rt(c,l[3].attribute,!0),o(m,P),o(m,k),Ie(k,l[3].value),o(m,C),X&&X.m(m,null),o(m,J),o(m,S),o(S,R),o(S,U),ve($,S,null),l[17](n),o(s,V),o(s,K),o(K,q),o(q,B),o(q,I),Q&&Q.m(q,null),o(s,w),o(s,L),o(L,j),o(j,se),o(j,ae),ve(d,j,null),o(j,g),o(j,de),o(L,Ee),o(L,W),ve(ne,W,null),o(W,ie),o(W,le),o(t,Ne),Z&&Z.m(t,null),o(t,Pe),x&&x.m(t,null),$e=!0,Ge||(tt=[_e(c,"change",l[14]),_e(c,"change",l[15]),_e(k,"input",l[16]),_e(n,"submit",l[18]),_e(W,"click",kt(l[25]))],Ge=!0)},p(D,[te]){var ke;(!$e||te&64)&&e!==(e="Users"+((ke=D[6].online)!=null&&ke.MPKIT_URL?": "+D[6].online.MPKIT_URL.replace("https://",""):""))&&(We.title=e),te&8&&rt(c,D[3].attribute),te&8&&k.value!==D[3].value&&Ie(k,D[3].value),D[3].value?X?(X.p(D,te),te&8&&O(X,1)):(X=vt(D),X.c(),O(X,1),X.m(m,J)):X&&(ye(),H(X,1,1,()=>{X=null}),Ce()),D[1]?Q?(Q.p(D,te),te&2&&O(Q,1)):(Q=ht(D),Q.c(),O(Q,1),Q.m(q,null)):Q&&(ye(),H(Q,1,1,()=>{Q=null}),Ce());const be={};te&8&&(be.max=D[3].totalPages),!N&&te&8&&(N=!0,be.value=D[3].page,It(()=>N=!1)),d.$set(be),(!$e||te&8)&&G!==(G=D[3].totalPages+"")&&De(de,G),D[5].params.id?Z?(Z.p(D,te),te&32&&O(Z,1)):(Z=Et(D),Z.c(),O(Z,1),Z.m(t,Pe)):Z&&(ye(),H(Z,1,1,()=>{Z=null}),Ce()),D[6].user!==void 0?x?(x.p(D,te),te&64&&O(x,1)):(x=$t(D),x.c(),O(x,1),x.m(t,null)):x&&(ye(),H(x,1,1,()=>{x=null}),Ce())},i(D){$e||(O(X),O($.$$.fragment,D),O(Q),O(d.$$.fragment,D),O(ne.$$.fragment,D),O(Z),O(x),$e=!0)},o(D){H(X),H($.$$.fragment,D),H(Q),H(d.$$.fragment,D),H(ne.$$.fragment,D),H(Z),H(x),$e=!1},d(D){D&&(_(a),_(t)),X&&X.d(),he($),l[17](null),Q&&Q.d(),he(d),he(ne),Z&&Z.d(),x&&x.d(),Ge=!1,Je(tt)}}}function nl(l,e,a){let t,s;Qe(l,Mt,w=>a(5,t=w)),Qe(l,re,w=>a(6,s=w));let{$$slots:r={},$$scope:n}=e,f,i=[],h=null,m={page:1,attribute:"email",value:""},c={page:1,totalPages:1,attribute:"email",value:"",...Object.fromEntries(t.url.searchParams)};we(re,s.user=void 0,s);let E={id:null};const T=function(){const w=Object.fromEntries(t.url.searchParams);Ae.get(w).then(L=>{a(1,i=L.results),a(3,c.totalPages=L.total_pages,c)})},y=function(w,{delay:L=0,duration:j=150}){return{delay:L,duration:j,css:se=>`scale: ${Tt(se)};`}},F=function(w=null){h===null?Ae.getCustomProperties().then(L=>{a(2,h=L),we(re,s.user=w,s)}).catch(()=>{re.notification.create("error","Could not load table properties. Please try again later.")}):we(re,s.user=w,s)},P=async function(){a(3,c=structuredClone(m)),await it(),f.requestSubmit()},k=async function(w){w.preventDefault();const L=t.url.searchParams,j=new URLSearchParams(new FormData(w.target));L.get("value")!==j.get("value")&&(j.set("page",1),a(3,c.page=1,c)),await At(document.location.pathname+"?"+j.toString()),await it(),await T()};function C(){c.attribute=Ot(this),a(3,c)}const J=()=>a(3,c.value="",c);function S(){c.value=this.value,a(3,c)}function R(w){Ue[w?"unshift":"push"](()=>{f=w,a(0,f)})}const z=w=>k(w),U=w=>a(4,E.id=w.id,E),$=w=>{F(w)},V=()=>T(),K=()=>a(4,E.id=null,E);function q(w){l.$$.not_equal(c.page,w)&&(c.page=w,a(3,c))}const B=w=>{f.requestSubmit(w.detail.submitter)},Y=()=>F(),I=()=>T();return l.$$set=w=>{"$$scope"in w&&a(12,n=w.$$scope)},T(),[f,i,h,c,E,t,s,T,y,F,P,k,n,r,C,J,S,R,z,U,$,V,K,q,B,Y,I]}class El extends ze{constructor(e){super(),Ke(this,e,nl,al,He,{})}}export{El as component}; diff --git a/gui/next/build/_app/immutable/nodes/9.C0seAjWB.js b/gui/next/build/_app/immutable/nodes/9.C0seAjWB.js deleted file mode 100644 index b26a8db07..000000000 --- a/gui/next/build/_app/immutable/nodes/9.C0seAjWB.js +++ /dev/null @@ -1,6 +0,0 @@ -import{P as co,Q as uo,R as Bl,S as fo,s as ho,a as i,e as l,t as I,p as vo,f as a,g as c,c as n,b as o,A as U,d as N,y as t,G as A,I as so,i as ks,h as e,C as q,j as be,r as po,k as mo,E as ca,n as z,v as lo,M as _o}from"../chunks/scheduler.CKQ5dLhN.js";import{g as ro,a as m,e as io,t as p,S as go,i as $o,c as $,d as b,m as k,f as L,h as no}from"../chunks/index.CGVWAVV-.js";import{f as ao}from"../chunks/index.WWWgbq8H.js";import{s as Ss}from"../chunks/state.nqMW8J5l.js";import{t as bo}from"../chunks/table.Cmn0kCDk.js";import{I as E}from"../chunks/Icon.CkKwi_WD.js";function ko(s,u){const w=u.token={};function d(f,_,v,C){if(u.token!==w)return;u.resolved=C;let D=u.ctx;v!==void 0&&(D=D.slice(),D[v]=C);const M=f&&(u.current=f)(D);let P=!1;u.block&&(u.blocks?u.blocks.forEach((S,ke)=>{ke!==_&&S&&(ro(),m(S,1,1,()=>{u.blocks[ke]===S&&(u.blocks[ke]=null)}),io())}):u.block.d(1),M.c(),p(M,1),M.m(u.mount(),u.anchor),P=!0),u.block=M,u.blocks&&(u.blocks[_]=M),P&&fo()}if(co(s)){const f=uo();if(s.then(_=>{Bl(f),d(u.then,1,u.value,_),Bl(null)},_=>{if(Bl(f),d(u.catch,2,u.error,_),Bl(null),!u.hasCatch)throw _}),u.current!==u.pending)return d(u.pending,0),!0}else{if(u.current!==u.then)return d(u.then,1,u.value,s),!0;u.resolved=s}}function Lo(s,u,w){const d=u.slice(),{resolved:f}=s;s.current===s.then&&(d[s.value]=f),s.current===s.catch&&(d[s.error]=f),s.block.p(d,w)}function Eo(s){return{c:z,l:z,m:z,p:z,i:z,o:z,d:z}}function wo(s){let u,w,d=s[23].version!==s[1].online.version&&oo(s);return{c(){d&&d.c(),u=lo()},l(f){d&&d.l(f),u=lo()},m(f,_){d&&d.m(f,_),ks(f,u,_),w=!0},p(f,_){f[23].version!==f[1].online.version?d?(d.p(f,_),_&2&&p(d,1)):(d=oo(f),d.c(),p(d,1),d.m(u.parentNode,u)):d&&(ro(),m(d,1,1,()=>{d=null}),io())},i(f){w||(p(d),w=!0)},o(f){m(d),w=!1},d(f){f&&a(u),d&&d.d(f)}}}function oo(s){let u,w,d,f,_="Update available",v,C,D,M;return w=new E({props:{icon:"arrowTripleUp"}}),{c(){u=l("button"),$(w.$$.fragment),d=i(),f=l("span"),f.textContent=_,this.h()},l(P){u=n(P,"BUTTON",{title:!0,class:!0});var S=o(u);b(w.$$.fragment,S),d=c(S),f=n(S,"SPAN",{"data-svelte-h":!0}),U(f)!=="svelte-16bfzxk"&&(f.textContent=_),S.forEach(a),this.h()},h(){t(u,"title","Update to pos-cli version "+s[23].version),t(u,"class","update svelte-50so3t")},m(P,S){ks(P,u,S),k(w,u,null),e(u,d),e(u,f),C=!0,D||(M=q(u,"click",s[6]),D=!0)},p:z,i(P){C||(p(w.$$.fragment,P),P&&_o(()=>{C&&(v||(v=no(u,ao,{},!0)),v.run(1))}),C=!0)},o(P){m(w.$$.fragment,P),P&&(v||(v=no(u,ao,{},!1)),v.run(0)),C=!1},d(P){P&&a(u),L(w),P&&v&&v.end(),D=!1,M()}}}function Uo(s){return{c:z,l:z,m:z,p:z,i:z,o:z,d:z}}function Co(s){var Da;let u,w,d,f,_,v,C,D,M,P,S="Database",ke,Le,Hl='
  • Inspect tables and records
  • Create, edit or delete records
  • Filter and find any record
  • ',As,ie,Ke,j,Ee,Ms,we,Ol="Show more information about Database tool",Bs,We,O,T,Ue,Xe,Ls=s[1].header.includes("database")?"Unpin Database from":"Pin Database to",Hs,Jl,Os,Fl,J,ce,Rt,Ye,Ql,Ze,ua="Users",Gl,ye,da='
  • Inspect registered users and their personal data
  • ',Vl,Ce,jt,te,xe,Rl,et,fa="Show more information about Users tool",jl,Kt,K,Pe,Kl,tt,Es=s[1].header.includes("users")?"Unpin Users from":"Pin Users to",Js,Wl,Fs,Xl,F,ue,Wt,st,Yl,lt,ha="Logs",Zl,nt,va='
  • View system logs
  • Inspect logs you've outputted yourself
  • Debug Liquid or GraphQL errors
  • ',yl,Te,Xt,se,at,xl,ot,pa="Show more information about Logs tool",en,Yt,W,Ie,tn,rt,ws=s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to",Qs,sn,Gs,ln,Q,de,Zt,it,nn,ct,ma="Background Jobs",an,ut,_a='
  • List scheduled background jobs
  • Debug background jobs that failed to run
  • ',on,Ne,yt,le,dt,rn,ft,ga="Show more information about Background Jobs tool",cn,xt,X,qe,un,ht,Us=s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to",Vs,dn,Rs,fn,G,fe,es,vt,hn,pt,$a="Constants",vn,mt,ba='
  • Check all constants in one place
  • Create new constants
  • Edit or delete existing ones
  • ',pn,De,ts,ne,_t,mn,gt,ka="Show more information about Constants tool",_n,ss,Y,ze,gn,$t,Cs=s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to",js,$n,Ks,bn,ae,V,he,bt,kt,kn,Lt,La="Liquid Evaluator",Ln,Et,Ea='
  • Run Liquid code against your instance
  • Test Liquid logic
  • Quickly prototype your ideas
  • ',En,Se,ls,oe,wt,wn,Ut,wa="Show more information about Liquid Evaluator",Un,ns,Z,Ae,Cn,Ct,Ps=s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to",Ws,Pn,Xs,Tn,R,ve,Pt,Tt,In,It,Ua="GraphiQL",Nn,Nt,Ca='
  • Run GraphQL against your instance
  • Explore documentation
  • Quickly prototype your queries and mutations
  • ',qn,Me,as,re,qt,Dn,Dt,Pa="Show more information about GraphiQL",zn,os,y,Be,Sn,zt,Ts=s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to",Ys,An,Zs,Mn,He,Oe,Je,x,Fe,Bn,St,Is=s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to",ys,Hn,xs,On,pe,rs,At,Jn,is,Ta="Logs v2",Fn,Qe,ee,Ge,Qn,Mt,Ns=s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to",el,Gn,tl,Vn,me,cs,Bt,Rn,us,Ia="Network Logs",jn,Ht,Na=`Early access - New tools in testable versions`,sl,_e,ds,Kn,Ve,fs,Re,Ot,Wn,Xn,hs,je,Jt,Yn,g,Zn,qa;document.title=u="platformOS"+((Da=s[1].online)!=null&&Da.MPKIT_URL?": "+s[1].online.MPKIT_URL.replace("https://",""):""),D=new E({props:{icon:"database",size:"48"}}),Ee=new E({props:{icon:"info",size:"14"}}),T=new E({props:{icon:s[1].header.includes("database")?"pinFilled":"pin",size:"14"}}),Ye=new E({props:{icon:"users",size:"48"}}),xe=new E({props:{icon:"info",size:"14"}}),Pe=new E({props:{icon:s[1].header.includes("users")?"pinFilled":"pin",size:"14"}}),st=new E({props:{icon:"log",size:"48"}}),at=new E({props:{icon:"info",size:"14"}}),Ie=new E({props:{icon:s[1].header.includes("logs")?"pinFilled":"pin",size:"14"}}),it=new E({props:{icon:"backgroundJob",size:"48"}}),dt=new E({props:{icon:"info",size:"14"}}),qe=new E({props:{icon:s[1].header.includes("backgroundJobs")?"pinFilled":"pin",size:"14"}}),vt=new E({props:{icon:"constant",size:"48"}}),_t=new E({props:{icon:"info",size:"14"}}),ze=new E({props:{icon:s[1].header.includes("constants")?"pinFilled":"pin",size:"14"}}),kt=new E({props:{icon:"liquid",size:"48"}}),wt=new E({props:{icon:"info",size:"14"}}),Ae=new E({props:{icon:s[1].header.includes("liquid")?"pinFilled":"pin",size:"14"}}),Tt=new E({props:{icon:"graphql",size:"48"}}),qt=new E({props:{icon:"info",size:"14"}}),Be=new E({props:{icon:s[1].header.includes("graphiql")?"pinFilled":"pin",size:"14"}}),Fe=new E({props:{icon:s[1].header.includes("logsv2")?"pinFilled":"pin",size:"12"}}),At=new E({props:{icon:"logFresh",size:"24"}}),Ge=new E({props:{icon:s[1].header.includes("network")?"pinFilled":"pin",size:"12"}}),Bt=new E({props:{icon:"globeMessage",size:"24"}});let B={ctx:s,current:null,token:null,hasCatch:!1,pending:Uo,then:wo,catch:Eo,value:23,blocks:[,,,]};return ko(s[5](),B),Ot=new E({props:{icon:"book"}}),Jt=new E({props:{icon:"serverSettings"}}),{c(){w=i(),d=l("nav"),f=l("ul"),_=l("li"),v=l("a"),C=l("div"),$(D.$$.fragment),M=i(),P=l("h2"),P.textContent=S,ke=i(),Le=l("ul"),Le.innerHTML=Hl,As=i(),ie=l("ul"),Ke=l("li"),j=l("button"),$(Ee.$$.fragment),Ms=i(),we=l("span"),we.textContent=Ol,Bs=i(),We=l("li"),O=l("button"),$(T.$$.fragment),Ue=i(),Xe=l("span"),Hs=I(Ls),Jl=I(" header menu"),Fl=i(),J=l("li"),ce=l("a"),Rt=l("div"),$(Ye.$$.fragment),Ql=i(),Ze=l("h2"),Ze.textContent=ua,Gl=i(),ye=l("ul"),ye.innerHTML=da,Vl=i(),Ce=l("ul"),jt=l("li"),te=l("button"),$(xe.$$.fragment),Rl=i(),et=l("span"),et.textContent=fa,jl=i(),Kt=l("li"),K=l("button"),$(Pe.$$.fragment),Kl=i(),tt=l("span"),Js=I(Es),Wl=I(" header menu"),Xl=i(),F=l("li"),ue=l("a"),Wt=l("div"),$(st.$$.fragment),Yl=i(),lt=l("h2"),lt.textContent=ha,Zl=i(),nt=l("ul"),nt.innerHTML=va,yl=i(),Te=l("ul"),Xt=l("li"),se=l("button"),$(at.$$.fragment),xl=i(),ot=l("span"),ot.textContent=pa,en=i(),Yt=l("li"),W=l("button"),$(Ie.$$.fragment),tn=i(),rt=l("span"),Qs=I(ws),sn=I(" header menu"),ln=i(),Q=l("li"),de=l("a"),Zt=l("div"),$(it.$$.fragment),nn=i(),ct=l("h2"),ct.textContent=ma,an=i(),ut=l("ul"),ut.innerHTML=_a,on=i(),Ne=l("ul"),yt=l("li"),le=l("button"),$(dt.$$.fragment),rn=i(),ft=l("span"),ft.textContent=ga,cn=i(),xt=l("li"),X=l("button"),$(qe.$$.fragment),un=i(),ht=l("span"),Vs=I(Us),dn=I(" header menu"),fn=i(),G=l("li"),fe=l("a"),es=l("div"),$(vt.$$.fragment),hn=i(),pt=l("h2"),pt.textContent=$a,vn=i(),mt=l("ul"),mt.innerHTML=ba,pn=i(),De=l("ul"),ts=l("li"),ne=l("button"),$(_t.$$.fragment),mn=i(),gt=l("span"),gt.textContent=ka,_n=i(),ss=l("li"),Y=l("button"),$(ze.$$.fragment),gn=i(),$t=l("span"),js=I(Cs),$n=I(" header menu"),bn=i(),ae=l("ul"),V=l("li"),he=l("a"),bt=l("div"),$(kt.$$.fragment),kn=i(),Lt=l("h2"),Lt.textContent=La,Ln=i(),Et=l("ul"),Et.innerHTML=Ea,En=i(),Se=l("ul"),ls=l("li"),oe=l("button"),$(wt.$$.fragment),wn=i(),Ut=l("span"),Ut.textContent=wa,Un=i(),ns=l("li"),Z=l("button"),$(Ae.$$.fragment),Cn=i(),Ct=l("span"),Ws=I(Ps),Pn=I(" header menu"),Tn=i(),R=l("li"),ve=l("a"),Pt=l("div"),$(Tt.$$.fragment),In=i(),It=l("h2"),It.textContent=Ua,Nn=i(),Nt=l("ul"),Nt.innerHTML=Ca,qn=i(),Me=l("ul"),as=l("li"),re=l("button"),$(qt.$$.fragment),Dn=i(),Dt=l("span"),Dt.textContent=Pa,zn=i(),os=l("li"),y=l("button"),$(Be.$$.fragment),Sn=i(),zt=l("span"),Ys=I(Ts),An=I(" header menu"),Mn=i(),He=l("li"),Oe=l("ul"),Je=l("li"),x=l("button"),$(Fe.$$.fragment),Bn=i(),St=l("span"),ys=I(Is),Hn=I(" header menu"),On=i(),pe=l("a"),rs=l("i"),$(At.$$.fragment),Jn=i(),is=l("h3"),is.textContent=Ta,Fn=i(),Qe=l("li"),ee=l("button"),$(Ge.$$.fragment),Qn=i(),Mt=l("span"),el=I(Ns),Gn=I(" header menu"),Vn=i(),me=l("a"),cs=l("i"),$(Bt.$$.fragment),Rn=i(),us=l("h3"),us.textContent=Ia,jn=i(),Ht=l("h2"),Ht.innerHTML=Na,sl=i(),_e=l("footer"),ds=l("div"),B.block.c(),Kn=i(),Ve=l("ul"),fs=l("li"),Re=l("a"),$(Ot.$$.fragment),Wn=I(`\r - Documentation`),Xn=i(),hs=l("li"),je=l("a"),$(Jt.$$.fragment),Yn=I(`\r - Partner Portal`),this.h()},l(r){vo("svelte-zlk2mt",document.head).forEach(a),w=c(r),d=n(r,"NAV",{class:!0});var ge=o(d);f=n(ge,"UL",{class:!0});var H=o(f);_=n(H,"LI",{class:!0});var $e=o(_);v=n($e,"A",{href:!0,class:!0});var Ft=o(v);C=n(Ft,"DIV",{class:!0});var qs=o(C);b(D.$$.fragment,qs),qs.forEach(a),M=c(Ft),P=n(Ft,"H2",{class:!0,"data-svelte-h":!0}),U(P)!=="svelte-1a38a01"&&(P.textContent=S),Ft.forEach(a),ke=c($e),Le=n($e,"UL",{class:!0,"data-svelte-h":!0}),U(Le)!=="svelte-1tj1zl5"&&(Le.innerHTML=Hl),As=c($e),ie=n($e,"UL",{class:!0});var Qt=o(ie);Ke=n(Qt,"LI",{class:!0});var Ds=o(Ke);j=n(Ds,"BUTTON",{title:!0,class:!0});var Gt=o(j);b(Ee.$$.fragment,Gt),Ms=c(Gt),we=n(Gt,"SPAN",{class:!0,"data-svelte-h":!0}),U(we)!=="svelte-vg36pf"&&(we.textContent=Ol),Gt.forEach(a),Ds.forEach(a),Bs=c(Qt),We=n(Qt,"LI",{class:!0});var zs=o(We);O=n(zs,"BUTTON",{title:!0,class:!0});var Vt=o(O);b(T.$$.fragment,Vt),Ue=c(Vt),Xe=n(Vt,"SPAN",{class:!0});var yn=o(Xe);Hs=N(yn,Ls),Jl=N(yn," header menu"),yn.forEach(a),Vt.forEach(a),zs.forEach(a),Qt.forEach(a),$e.forEach(a),Fl=c(H),J=n(H,"LI",{class:!0});var vs=o(J);ce=n(vs,"A",{href:!0,class:!0});var ll=o(ce);Rt=n(ll,"DIV",{class:!0});var za=o(Rt);b(Ye.$$.fragment,za),za.forEach(a),Ql=c(ll),Ze=n(ll,"H2",{class:!0,"data-svelte-h":!0}),U(Ze)!=="svelte-bvmn5u"&&(Ze.textContent=ua),ll.forEach(a),Gl=c(vs),ye=n(vs,"UL",{class:!0,"data-svelte-h":!0}),U(ye)!=="svelte-ml78fh"&&(ye.innerHTML=da),Vl=c(vs),Ce=n(vs,"UL",{class:!0});var nl=o(Ce);jt=n(nl,"LI",{class:!0});var Sa=o(jt);te=n(Sa,"BUTTON",{title:!0,class:!0});var al=o(te);b(xe.$$.fragment,al),Rl=c(al),et=n(al,"SPAN",{class:!0,"data-svelte-h":!0}),U(et)!=="svelte-10o6fc2"&&(et.textContent=fa),al.forEach(a),Sa.forEach(a),jl=c(nl),Kt=n(nl,"LI",{class:!0});var Aa=o(Kt);K=n(Aa,"BUTTON",{title:!0,class:!0});var ol=o(K);b(Pe.$$.fragment,ol),Kl=c(ol),tt=n(ol,"SPAN",{class:!0});var xn=o(tt);Js=N(xn,Es),Wl=N(xn," header menu"),xn.forEach(a),ol.forEach(a),Aa.forEach(a),nl.forEach(a),vs.forEach(a),Xl=c(H),F=n(H,"LI",{class:!0});var ps=o(F);ue=n(ps,"A",{href:!0,class:!0});var rl=o(ue);Wt=n(rl,"DIV",{class:!0});var Ma=o(Wt);b(st.$$.fragment,Ma),Ma.forEach(a),Yl=c(rl),lt=n(rl,"H2",{class:!0,"data-svelte-h":!0}),U(lt)!=="svelte-1ef7qq7"&&(lt.textContent=ha),rl.forEach(a),Zl=c(ps),nt=n(ps,"UL",{class:!0,"data-svelte-h":!0}),U(nt)!=="svelte-16nvdoq"&&(nt.innerHTML=va),yl=c(ps),Te=n(ps,"UL",{class:!0});var il=o(Te);Xt=n(il,"LI",{class:!0});var Ba=o(Xt);se=n(Ba,"BUTTON",{title:!0,class:!0});var cl=o(se);b(at.$$.fragment,cl),xl=c(cl),ot=n(cl,"SPAN",{class:!0,"data-svelte-h":!0}),U(ot)!=="svelte-7a5jqd"&&(ot.textContent=pa),cl.forEach(a),Ba.forEach(a),en=c(il),Yt=n(il,"LI",{class:!0});var Ha=o(Yt);W=n(Ha,"BUTTON",{title:!0,class:!0});var ul=o(W);b(Ie.$$.fragment,ul),tn=c(ul),rt=n(ul,"SPAN",{class:!0});var ea=o(rt);Qs=N(ea,ws),sn=N(ea," header menu"),ea.forEach(a),ul.forEach(a),Ha.forEach(a),il.forEach(a),ps.forEach(a),ln=c(H),Q=n(H,"LI",{class:!0});var ms=o(Q);de=n(ms,"A",{href:!0,class:!0});var dl=o(de);Zt=n(dl,"DIV",{class:!0});var Oa=o(Zt);b(it.$$.fragment,Oa),Oa.forEach(a),nn=c(dl),ct=n(dl,"H2",{class:!0,"data-svelte-h":!0}),U(ct)!=="svelte-1bxtcha"&&(ct.textContent=ma),dl.forEach(a),an=c(ms),ut=n(ms,"UL",{class:!0,"data-svelte-h":!0}),U(ut)!=="svelte-198kha5"&&(ut.innerHTML=_a),on=c(ms),Ne=n(ms,"UL",{class:!0});var fl=o(Ne);yt=n(fl,"LI",{class:!0});var Ja=o(yt);le=n(Ja,"BUTTON",{title:!0,class:!0});var hl=o(le);b(dt.$$.fragment,hl),rn=c(hl),ft=n(hl,"SPAN",{class:!0,"data-svelte-h":!0}),U(ft)!=="svelte-12zm1eu"&&(ft.textContent=ga),hl.forEach(a),Ja.forEach(a),cn=c(fl),xt=n(fl,"LI",{class:!0});var Fa=o(xt);X=n(Fa,"BUTTON",{title:!0,class:!0});var vl=o(X);b(qe.$$.fragment,vl),un=c(vl),ht=n(vl,"SPAN",{class:!0});var ta=o(ht);Vs=N(ta,Us),dn=N(ta," header menu"),ta.forEach(a),vl.forEach(a),Fa.forEach(a),fl.forEach(a),ms.forEach(a),fn=c(H),G=n(H,"LI",{class:!0});var _s=o(G);fe=n(_s,"A",{href:!0,class:!0});var pl=o(fe);es=n(pl,"DIV",{class:!0});var Qa=o(es);b(vt.$$.fragment,Qa),Qa.forEach(a),hn=c(pl),pt=n(pl,"H2",{class:!0,"data-svelte-h":!0}),U(pt)!=="svelte-187k1uv"&&(pt.textContent=$a),pl.forEach(a),vn=c(_s),mt=n(_s,"UL",{class:!0,"data-svelte-h":!0}),U(mt)!=="svelte-1hxwc9f"&&(mt.innerHTML=ba),pn=c(_s),De=n(_s,"UL",{class:!0});var ml=o(De);ts=n(ml,"LI",{class:!0});var Ga=o(ts);ne=n(Ga,"BUTTON",{title:!0,class:!0});var _l=o(ne);b(_t.$$.fragment,_l),mn=c(_l),gt=n(_l,"SPAN",{class:!0,"data-svelte-h":!0}),U(gt)!=="svelte-96zp3x"&&(gt.textContent=ka),_l.forEach(a),Ga.forEach(a),_n=c(ml),ss=n(ml,"LI",{class:!0});var Va=o(ss);Y=n(Va,"BUTTON",{title:!0,class:!0});var gl=o(Y);b(ze.$$.fragment,gl),gn=c(gl),$t=n(gl,"SPAN",{class:!0});var sa=o($t);js=N(sa,Cs),$n=N(sa," header menu"),sa.forEach(a),gl.forEach(a),Va.forEach(a),ml.forEach(a),_s.forEach(a),H.forEach(a),bn=c(ge),ae=n(ge,"UL",{class:!0});var gs=o(ae);V=n(gs,"LI",{class:!0});var $s=o(V);he=n($s,"A",{href:!0,class:!0});var $l=o(he);bt=n($l,"DIV",{class:!0,style:!0});var Ra=o(bt);b(kt.$$.fragment,Ra),Ra.forEach(a),kn=c($l),Lt=n($l,"H2",{class:!0,"data-svelte-h":!0}),U(Lt)!=="svelte-1945w61"&&(Lt.textContent=La),$l.forEach(a),Ln=c($s),Et=n($s,"UL",{class:!0,"data-svelte-h":!0}),U(Et)!=="svelte-1k625ps"&&(Et.innerHTML=Ea),En=c($s),Se=n($s,"UL",{class:!0});var bl=o(Se);ls=n(bl,"LI",{class:!0});var ja=o(ls);oe=n(ja,"BUTTON",{title:!0,class:!0});var kl=o(oe);b(wt.$$.fragment,kl),wn=c(kl),Ut=n(kl,"SPAN",{class:!0,"data-svelte-h":!0}),U(Ut)!=="svelte-zgpe6t"&&(Ut.textContent=wa),kl.forEach(a),ja.forEach(a),Un=c(bl),ns=n(bl,"LI",{class:!0});var Ka=o(ns);Z=n(Ka,"BUTTON",{title:!0,class:!0});var Ll=o(Z);b(Ae.$$.fragment,Ll),Cn=c(Ll),Ct=n(Ll,"SPAN",{class:!0});var la=o(Ct);Ws=N(la,Ps),Pn=N(la," header menu"),la.forEach(a),Ll.forEach(a),Ka.forEach(a),bl.forEach(a),$s.forEach(a),Tn=c(gs),R=n(gs,"LI",{class:!0});var bs=o(R);ve=n(bs,"A",{href:!0,class:!0});var El=o(ve);Pt=n(El,"DIV",{class:!0,style:!0});var Wa=o(Pt);b(Tt.$$.fragment,Wa),Wa.forEach(a),In=c(El),It=n(El,"H2",{class:!0,"data-svelte-h":!0}),U(It)!=="svelte-v0z4e8"&&(It.textContent=Ua),El.forEach(a),Nn=c(bs),Nt=n(bs,"UL",{class:!0,"data-svelte-h":!0}),U(Nt)!=="svelte-17bqupm"&&(Nt.innerHTML=Ca),qn=c(bs),Me=n(bs,"UL",{class:!0});var wl=o(Me);as=n(wl,"LI",{class:!0});var Xa=o(as);re=n(Xa,"BUTTON",{title:!0,class:!0});var Ul=o(re);b(qt.$$.fragment,Ul),Dn=c(Ul),Dt=n(Ul,"SPAN",{class:!0,"data-svelte-h":!0}),U(Dt)!=="svelte-1mz1lxe"&&(Dt.textContent=Pa),Ul.forEach(a),Xa.forEach(a),zn=c(wl),os=n(wl,"LI",{class:!0});var Ya=o(os);y=n(Ya,"BUTTON",{title:!0,class:!0});var Cl=o(y);b(Be.$$.fragment,Cl),Sn=c(Cl),zt=n(Cl,"SPAN",{class:!0});var na=o(zt);Ys=N(na,Ts),An=N(na," header menu"),na.forEach(a),Cl.forEach(a),Ya.forEach(a),wl.forEach(a),bs.forEach(a),Mn=c(gs),He=n(gs,"LI",{class:!0});var Pl=o(He);Oe=n(Pl,"UL",{class:!0});var Tl=o(Oe);Je=n(Tl,"LI",{class:!0});var Il=o(Je);x=n(Il,"BUTTON",{title:!0,class:!0});var Nl=o(x);b(Fe.$$.fragment,Nl),Bn=c(Nl),St=n(Nl,"SPAN",{class:!0});var aa=o(St);ys=N(aa,Is),Hn=N(aa," header menu"),aa.forEach(a),Nl.forEach(a),On=c(Il),pe=n(Il,"A",{href:!0,class:!0});var ql=o(pe);rs=n(ql,"I",{class:!0});var Za=o(rs);b(At.$$.fragment,Za),Za.forEach(a),Jn=c(ql),is=n(ql,"H3",{"data-svelte-h":!0}),U(is)!=="svelte-12gavf5"&&(is.textContent=Ta),ql.forEach(a),Il.forEach(a),Fn=c(Tl),Qe=n(Tl,"LI",{class:!0});var Dl=o(Qe);ee=n(Dl,"BUTTON",{title:!0,class:!0});var zl=o(ee);b(Ge.$$.fragment,zl),Qn=c(zl),Mt=n(zl,"SPAN",{class:!0});var oa=o(Mt);el=N(oa,Ns),Gn=N(oa," header menu"),oa.forEach(a),zl.forEach(a),Vn=c(Dl),me=n(Dl,"A",{href:!0,class:!0});var Sl=o(me);cs=n(Sl,"I",{class:!0});var ya=o(cs);b(Bt.$$.fragment,ya),ya.forEach(a),Rn=c(Sl),us=n(Sl,"H3",{"data-svelte-h":!0}),U(us)!=="svelte-16npeyx"&&(us.textContent=Ia),Sl.forEach(a),Dl.forEach(a),Tl.forEach(a),jn=c(Pl),Ht=n(Pl,"H2",{class:!0,"data-svelte-h":!0}),U(Ht)!=="svelte-bhbezd"&&(Ht.innerHTML=Na),Pl.forEach(a),gs.forEach(a),ge.forEach(a),sl=c(r),_e=n(r,"FOOTER",{class:!0});var Al=o(_e);ds=n(Al,"DIV",{});var xa=o(ds);B.block.l(xa),xa.forEach(a),Kn=c(Al),Ve=n(Al,"UL",{class:!0});var Ml=o(Ve);fs=n(Ml,"LI",{class:!0});var eo=o(fs);Re=n(eo,"A",{href:!0,class:!0});var ra=o(Re);b(Ot.$$.fragment,ra),Wn=N(ra,`\r - Documentation`),ra.forEach(a),eo.forEach(a),Xn=c(Ml),hs=n(Ml,"LI",{class:!0});var to=o(hs);je=n(to,"A",{href:!0,class:!0});var ia=o(je);b(Jt.$$.fragment,ia),Yn=N(ia,`\r - Partner Portal`),ia.forEach(a),to.forEach(a),Ml.forEach(a),Al.forEach(a),this.h()},h(){t(C,"class","icon svelte-50so3t"),t(P,"class","svelte-50so3t"),t(v,"href","/database"),t(v,"class","svelte-50so3t"),t(Le,"class","description svelte-50so3t"),t(we,"class","label"),t(j,"title","More information"),t(j,"class","svelte-50so3t"),t(Ke,"class","svelte-50so3t"),t(Xe,"class","label"),t(O,"title",Os=(s[1].header.includes("database")?"Unpin Database from":"Pin Database to")+" header menu"),t(O,"class","svelte-50so3t"),t(We,"class","svelte-50so3t"),t(ie,"class","actions svelte-50so3t"),t(_,"class","application svelte-50so3t"),A(_,"showDescription",s[0].includes("database")),t(Rt,"class","icon svelte-50so3t"),t(Ze,"class","svelte-50so3t"),t(ce,"href","/users"),t(ce,"class","svelte-50so3t"),t(ye,"class","description svelte-50so3t"),t(et,"class","label"),t(te,"title","More information"),t(te,"class","svelte-50so3t"),t(jt,"class","svelte-50so3t"),t(tt,"class","label"),t(K,"title",Fs=(s[1].header.includes("users")?"Unpin Users from":"Pin Users to")+" header menu"),t(K,"class","svelte-50so3t"),t(Kt,"class","svelte-50so3t"),t(Ce,"class","actions svelte-50so3t"),t(J,"class","application svelte-50so3t"),A(J,"showDescription",s[0].includes("users")),t(Wt,"class","icon svelte-50so3t"),t(lt,"class","svelte-50so3t"),t(ue,"href","/logs"),t(ue,"class","svelte-50so3t"),t(nt,"class","description svelte-50so3t"),t(ot,"class","label"),t(se,"title","More information"),t(se,"class","svelte-50so3t"),t(Xt,"class","svelte-50so3t"),t(rt,"class","label"),t(W,"title",Gs=(s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")+" header menu"),t(W,"class","svelte-50so3t"),t(Yt,"class","svelte-50so3t"),t(Te,"class","actions svelte-50so3t"),t(F,"class","application svelte-50so3t"),A(F,"showDescription",s[0].includes("logs")),t(Zt,"class","icon svelte-50so3t"),t(ct,"class","svelte-50so3t"),t(de,"href","/backgroundJobs"),t(de,"class","svelte-50so3t"),t(ut,"class","description svelte-50so3t"),t(ft,"class","label"),t(le,"title","More information"),t(le,"class","svelte-50so3t"),t(yt,"class","svelte-50so3t"),t(ht,"class","label"),t(X,"title",Rs=(s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")+" header menu"),t(X,"class","svelte-50so3t"),t(xt,"class","svelte-50so3t"),t(Ne,"class","actions svelte-50so3t"),t(Q,"class","application svelte-50so3t"),A(Q,"showDescription",s[0].includes("backgroundJobs")),t(es,"class","icon svelte-50so3t"),t(pt,"class","svelte-50so3t"),t(fe,"href","/constants"),t(fe,"class","svelte-50so3t"),t(mt,"class","description svelte-50so3t"),t(gt,"class","label"),t(ne,"title","More information"),t(ne,"class","svelte-50so3t"),t(ts,"class","svelte-50so3t"),t($t,"class","label"),t(Y,"title",Ks=(s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")+" header menu"),t(Y,"class","svelte-50so3t"),t(ss,"class","svelte-50so3t"),t(De,"class","actions svelte-50so3t"),t(G,"class","application svelte-50so3t"),A(G,"showDescription",s[0].includes("constants")),t(f,"class","applications svelte-50so3t"),t(bt,"class","icon svelte-50so3t"),so(bt,"color","#aeb0b3"),t(Lt,"class","svelte-50so3t"),t(he,"href",(typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333")+"/gui/liquid"),t(he,"class","svelte-50so3t"),t(Et,"class","description svelte-50so3t"),t(Ut,"class","label"),t(oe,"title","More information"),t(oe,"class","svelte-50so3t"),t(ls,"class","svelte-50so3t"),t(Ct,"class","label"),t(Z,"title",Xs=(s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")+" header menu"),t(Z,"class","svelte-50so3t"),t(ns,"class","svelte-50so3t"),t(Se,"class","actions svelte-50so3t"),t(V,"class","application svelte-50so3t"),A(V,"showDescription",s[0].includes("liquid")),t(Pt,"class","icon svelte-50so3t"),so(Pt,"color","#f30e9c"),t(It,"class","svelte-50so3t"),t(ve,"href",(typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333")+"/gui/graphql"),t(ve,"class","svelte-50so3t"),t(Nt,"class","description svelte-50so3t"),t(Dt,"class","label"),t(re,"title","More information"),t(re,"class","svelte-50so3t"),t(as,"class","svelte-50so3t"),t(zt,"class","label"),t(y,"title",Zs=(s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")+" header menu"),t(y,"class","svelte-50so3t"),t(os,"class","svelte-50so3t"),t(Me,"class","actions svelte-50so3t"),t(R,"class","application svelte-50so3t"),A(R,"showDescription",s[0].includes("graphiql")),t(St,"class","label"),t(x,"title",xs=(s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")+" header menu"),t(x,"class","svelte-50so3t"),t(rs,"class","svelte-50so3t"),t(pe,"href","/logsv2"),t(pe,"class","svelte-50so3t"),t(Je,"class","svelte-50so3t"),t(Mt,"class","label"),t(ee,"title",tl=(s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")+" header menu"),t(ee,"class","svelte-50so3t"),t(cs,"class","svelte-50so3t"),t(me,"href","/network"),t(me,"class","svelte-50so3t"),t(Qe,"class","svelte-50so3t"),t(Oe,"class","svelte-50so3t"),t(Ht,"class","svelte-50so3t"),t(He,"class","early svelte-50so3t"),t(ae,"class","applications svelte-50so3t"),t(d,"class","svelte-50so3t"),t(Re,"href","https://documentation.platformos.com"),t(Re,"class","button svelte-50so3t"),t(fs,"class","svelte-50so3t"),t(je,"href","https://partners.platformos.com"),t(je,"class","button svelte-50so3t"),t(hs,"class","svelte-50so3t"),t(Ve,"class","svelte-50so3t"),t(_e,"class","svelte-50so3t")},m(r,h){ks(r,w,h),ks(r,d,h),e(d,f),e(f,_),e(_,v),e(v,C),k(D,C,null),e(v,M),e(v,P),e(_,ke),e(_,Le),e(_,As),e(_,ie),e(ie,Ke),e(Ke,j),k(Ee,j,null),e(j,Ms),e(j,we),e(ie,Bs),e(ie,We),e(We,O),k(T,O,null),e(O,Ue),e(O,Xe),e(Xe,Hs),e(Xe,Jl),e(f,Fl),e(f,J),e(J,ce),e(ce,Rt),k(Ye,Rt,null),e(ce,Ql),e(ce,Ze),e(J,Gl),e(J,ye),e(J,Vl),e(J,Ce),e(Ce,jt),e(jt,te),k(xe,te,null),e(te,Rl),e(te,et),e(Ce,jl),e(Ce,Kt),e(Kt,K),k(Pe,K,null),e(K,Kl),e(K,tt),e(tt,Js),e(tt,Wl),e(f,Xl),e(f,F),e(F,ue),e(ue,Wt),k(st,Wt,null),e(ue,Yl),e(ue,lt),e(F,Zl),e(F,nt),e(F,yl),e(F,Te),e(Te,Xt),e(Xt,se),k(at,se,null),e(se,xl),e(se,ot),e(Te,en),e(Te,Yt),e(Yt,W),k(Ie,W,null),e(W,tn),e(W,rt),e(rt,Qs),e(rt,sn),e(f,ln),e(f,Q),e(Q,de),e(de,Zt),k(it,Zt,null),e(de,nn),e(de,ct),e(Q,an),e(Q,ut),e(Q,on),e(Q,Ne),e(Ne,yt),e(yt,le),k(dt,le,null),e(le,rn),e(le,ft),e(Ne,cn),e(Ne,xt),e(xt,X),k(qe,X,null),e(X,un),e(X,ht),e(ht,Vs),e(ht,dn),e(f,fn),e(f,G),e(G,fe),e(fe,es),k(vt,es,null),e(fe,hn),e(fe,pt),e(G,vn),e(G,mt),e(G,pn),e(G,De),e(De,ts),e(ts,ne),k(_t,ne,null),e(ne,mn),e(ne,gt),e(De,_n),e(De,ss),e(ss,Y),k(ze,Y,null),e(Y,gn),e(Y,$t),e($t,js),e($t,$n),e(d,bn),e(d,ae),e(ae,V),e(V,he),e(he,bt),k(kt,bt,null),e(he,kn),e(he,Lt),e(V,Ln),e(V,Et),e(V,En),e(V,Se),e(Se,ls),e(ls,oe),k(wt,oe,null),e(oe,wn),e(oe,Ut),e(Se,Un),e(Se,ns),e(ns,Z),k(Ae,Z,null),e(Z,Cn),e(Z,Ct),e(Ct,Ws),e(Ct,Pn),e(ae,Tn),e(ae,R),e(R,ve),e(ve,Pt),k(Tt,Pt,null),e(ve,In),e(ve,It),e(R,Nn),e(R,Nt),e(R,qn),e(R,Me),e(Me,as),e(as,re),k(qt,re,null),e(re,Dn),e(re,Dt),e(Me,zn),e(Me,os),e(os,y),k(Be,y,null),e(y,Sn),e(y,zt),e(zt,Ys),e(zt,An),e(ae,Mn),e(ae,He),e(He,Oe),e(Oe,Je),e(Je,x),k(Fe,x,null),e(x,Bn),e(x,St),e(St,ys),e(St,Hn),e(Je,On),e(Je,pe),e(pe,rs),k(At,rs,null),e(pe,Jn),e(pe,is),e(Oe,Fn),e(Oe,Qe),e(Qe,ee),k(Ge,ee,null),e(ee,Qn),e(ee,Mt),e(Mt,el),e(Mt,Gn),e(Qe,Vn),e(Qe,me),e(me,cs),k(Bt,cs,null),e(me,Rn),e(me,us),e(He,jn),e(He,Ht),ks(r,sl,h),ks(r,_e,h),e(_e,ds),B.block.m(ds,B.anchor=null),B.mount=()=>ds,B.anchor=null,e(_e,Kn),e(_e,Ve),e(Ve,fs),e(fs,Re),k(Ot,Re,null),e(Re,Wn),e(Ve,Xn),e(Ve,hs),e(hs,je),k(Jt,je,null),e(je,Yn),g=!0,Zn||(qa=[q(v,"focus",s[2],{once:!0}),q(v,"mouseover",s[2],{once:!0}),q(j,"click",s[7]),q(O,"click",s[8]),q(te,"click",s[9]),q(K,"click",s[10]),q(se,"click",s[11]),q(W,"click",s[12]),q(le,"click",s[13]),q(X,"click",s[14]),q(ne,"click",s[15]),q(Y,"click",s[16]),q(oe,"click",s[17]),q(Z,"click",s[18]),q(re,"click",s[19]),q(y,"click",s[20]),q(x,"click",s[21]),q(ee,"click",s[22])],Zn=!0)},p(r,[h]){var Vt;s=r,(!g||h&2)&&u!==(u="platformOS"+((Vt=s[1].online)!=null&&Vt.MPKIT_URL?": "+s[1].online.MPKIT_URL.replace("https://",""):""))&&(document.title=u);const ge={};h&2&&(ge.icon=s[1].header.includes("database")?"pinFilled":"pin"),T.$set(ge),(!g||h&2)&&Ls!==(Ls=s[1].header.includes("database")?"Unpin Database from":"Pin Database to")&&be(Hs,Ls),(!g||h&2&&Os!==(Os=(s[1].header.includes("database")?"Unpin Database from":"Pin Database to")+" header menu"))&&t(O,"title",Os),(!g||h&1)&&A(_,"showDescription",s[0].includes("database"));const H={};h&2&&(H.icon=s[1].header.includes("users")?"pinFilled":"pin"),Pe.$set(H),(!g||h&2)&&Es!==(Es=s[1].header.includes("users")?"Unpin Users from":"Pin Users to")&&be(Js,Es),(!g||h&2&&Fs!==(Fs=(s[1].header.includes("users")?"Unpin Users from":"Pin Users to")+" header menu"))&&t(K,"title",Fs),(!g||h&1)&&A(J,"showDescription",s[0].includes("users"));const $e={};h&2&&($e.icon=s[1].header.includes("logs")?"pinFilled":"pin"),Ie.$set($e),(!g||h&2)&&ws!==(ws=s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")&&be(Qs,ws),(!g||h&2&&Gs!==(Gs=(s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")+" header menu"))&&t(W,"title",Gs),(!g||h&1)&&A(F,"showDescription",s[0].includes("logs"));const Ft={};h&2&&(Ft.icon=s[1].header.includes("backgroundJobs")?"pinFilled":"pin"),qe.$set(Ft),(!g||h&2)&&Us!==(Us=s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")&&be(Vs,Us),(!g||h&2&&Rs!==(Rs=(s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")+" header menu"))&&t(X,"title",Rs),(!g||h&1)&&A(Q,"showDescription",s[0].includes("backgroundJobs"));const qs={};h&2&&(qs.icon=s[1].header.includes("constants")?"pinFilled":"pin"),ze.$set(qs),(!g||h&2)&&Cs!==(Cs=s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")&&be(js,Cs),(!g||h&2&&Ks!==(Ks=(s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")+" header menu"))&&t(Y,"title",Ks),(!g||h&1)&&A(G,"showDescription",s[0].includes("constants"));const Qt={};h&2&&(Qt.icon=s[1].header.includes("liquid")?"pinFilled":"pin"),Ae.$set(Qt),(!g||h&2)&&Ps!==(Ps=s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")&&be(Ws,Ps),(!g||h&2&&Xs!==(Xs=(s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")+" header menu"))&&t(Z,"title",Xs),(!g||h&1)&&A(V,"showDescription",s[0].includes("liquid"));const Ds={};h&2&&(Ds.icon=s[1].header.includes("graphiql")?"pinFilled":"pin"),Be.$set(Ds),(!g||h&2)&&Ts!==(Ts=s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")&&be(Ys,Ts),(!g||h&2&&Zs!==(Zs=(s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")+" header menu"))&&t(y,"title",Zs),(!g||h&1)&&A(R,"showDescription",s[0].includes("graphiql"));const Gt={};h&2&&(Gt.icon=s[1].header.includes("logsv2")?"pinFilled":"pin"),Fe.$set(Gt),(!g||h&2)&&Is!==(Is=s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")&&be(ys,Is),(!g||h&2&&xs!==(xs=(s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")+" header menu"))&&t(x,"title",xs);const zs={};h&2&&(zs.icon=s[1].header.includes("network")?"pinFilled":"pin"),Ge.$set(zs),(!g||h&2)&&Ns!==(Ns=s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")&&be(el,Ns),(!g||h&2&&tl!==(tl=(s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")+" header menu"))&&t(ee,"title",tl),Lo(B,s,h)},i(r){g||(p(D.$$.fragment,r),p(Ee.$$.fragment,r),p(T.$$.fragment,r),p(Ye.$$.fragment,r),p(xe.$$.fragment,r),p(Pe.$$.fragment,r),p(st.$$.fragment,r),p(at.$$.fragment,r),p(Ie.$$.fragment,r),p(it.$$.fragment,r),p(dt.$$.fragment,r),p(qe.$$.fragment,r),p(vt.$$.fragment,r),p(_t.$$.fragment,r),p(ze.$$.fragment,r),p(kt.$$.fragment,r),p(wt.$$.fragment,r),p(Ae.$$.fragment,r),p(Tt.$$.fragment,r),p(qt.$$.fragment,r),p(Be.$$.fragment,r),p(Fe.$$.fragment,r),p(At.$$.fragment,r),p(Ge.$$.fragment,r),p(Bt.$$.fragment,r),p(B.block),p(Ot.$$.fragment,r),p(Jt.$$.fragment,r),g=!0)},o(r){m(D.$$.fragment,r),m(Ee.$$.fragment,r),m(T.$$.fragment,r),m(Ye.$$.fragment,r),m(xe.$$.fragment,r),m(Pe.$$.fragment,r),m(st.$$.fragment,r),m(at.$$.fragment,r),m(Ie.$$.fragment,r),m(it.$$.fragment,r),m(dt.$$.fragment,r),m(qe.$$.fragment,r),m(vt.$$.fragment,r),m(_t.$$.fragment,r),m(ze.$$.fragment,r),m(kt.$$.fragment,r),m(wt.$$.fragment,r),m(Ae.$$.fragment,r),m(Tt.$$.fragment,r),m(qt.$$.fragment,r),m(Be.$$.fragment,r),m(Fe.$$.fragment,r),m(At.$$.fragment,r),m(Ge.$$.fragment,r),m(Bt.$$.fragment,r);for(let h=0;h<3;h+=1){const ge=B.blocks[h];m(ge)}m(Ot.$$.fragment,r),m(Jt.$$.fragment,r),g=!1},d(r){r&&(a(w),a(d),a(sl),a(_e)),L(D),L(Ee),L(T),L(Ye),L(xe),L(Pe),L(st),L(at),L(Ie),L(it),L(dt),L(qe),L(vt),L(_t),L(ze),L(kt),L(wt),L(Ae),L(Tt),L(qt),L(Be),L(Fe),L(At),L(Ge),L(Bt),B.block.d(),B.token=null,B=null,L(Ot),L(Jt),Zn=!1,po(qa)}}}function Po(s,u,w){let d;mo(s,Ss,T=>w(1,d=T));let f=[];const _=async()=>{d.tables.length||ca(Ss,d.tables=await bo.get(),d)},v=T=>{d.header.indexOf(T)>-1?ca(Ss,d.header=d.header.filter(Ue=>Ue!==T),d):ca(Ss,d.header=[...d.header,T],d),localStorage.header=JSON.stringify(d.header)},C=T=>{f.indexOf(T)>-1?w(0,f=f.filter(Ue=>Ue!==T)):w(0,f=[...f,T])};return[f,d,_,v,C,async()=>await(await fetch("https://registry.npmjs.org/@platformos/pos-cli/latest")).json(),()=>{navigator.clipboard.writeText("npm i -g @platformos/pos-cli@latest").then(()=>{Ss.notification.create("info","
    Update command copied to clipboard Run npm i -g @platformos/pos-cli@latest in the terminal
    ")}).catch(T=>{copying=!1,error=!0,console.error(T)})},()=>C("database"),()=>v("database"),()=>C("users"),()=>v("users"),()=>C("logs"),()=>v("logs"),()=>C("backgroundJobs"),()=>v("backgroundJobs"),()=>C("constants"),()=>v("constants"),()=>C("liquid"),()=>v("liquid"),()=>C("graphiql"),()=>v("graphiql"),()=>v("logsv2"),()=>v("network")]}class So extends go{constructor(u){super(),$o(this,u,Po,Co,ho,{})}}export{So as component}; diff --git a/gui/next/build/_app/immutable/nodes/9.fY49Dkx3.js b/gui/next/build/_app/immutable/nodes/9.fY49Dkx3.js new file mode 100644 index 000000000..4c2441139 --- /dev/null +++ b/gui/next/build/_app/immutable/nodes/9.fY49Dkx3.js @@ -0,0 +1,6 @@ +import{$ as co,a0 as uo,a1 as Bl,R as ro,o as m,H as io,p,a2 as fo,S as ho,i as vo,s as po,d as a,E as $,x as mo,a as be,z as t,Q as A,b as ks,c as e,I as b,J as q,T as so,v as _o,h as i,e as l,f as o,L as k,K as U,g as I,k as c,j as n,M as L,t as N,l as go,N as ca,n as z,y as lo,Y as no,X as $o}from"../chunks/n7YEDvJi.js";import"../chunks/IHki7fMi.js";import{f as ao}from"../chunks/BaKpYqK2.js";import{s as Ss}from"../chunks/Bp_ajb_u.js";import{t as bo}from"../chunks/t7b_BBSP.js";import{I as E}from"../chunks/DHO4ENnJ.js";function ko(s,u){const w=u.token={};function d(f,_,v,C){if(u.token!==w)return;u.resolved=C;let D=u.ctx;v!==void 0&&(D=D.slice(),D[v]=C);const M=f&&(u.current=f)(D);let P=!1;u.block&&(u.blocks?u.blocks.forEach((S,ke)=>{ke!==_&&S&&(ro(),m(S,1,1,()=>{u.blocks[ke]===S&&(u.blocks[ke]=null)}),io())}):u.block.d(1),M.c(),p(M,1),M.m(u.mount(),u.anchor),P=!0),u.block=M,u.blocks&&(u.blocks[_]=M),P&&fo()}if(co(s)){const f=uo();if(s.then(_=>{Bl(f),d(u.then,1,u.value,_),Bl(null)},_=>{if(Bl(f),d(u.catch,2,u.error,_),Bl(null),!u.hasCatch)throw _}),u.current!==u.pending)return d(u.pending,0),!0}else{if(u.current!==u.then)return d(u.then,1,u.value,s),!0;u.resolved=s}}function Lo(s,u,w){const d=u.slice(),{resolved:f}=s;s.current===s.then&&(d[s.value]=f),s.current===s.catch&&(d[s.error]=f),s.block.p(d,w)}function Eo(s){return{c:z,l:z,m:z,p:z,i:z,o:z,d:z}}function wo(s){let u,w,d=s[23].version!==s[1].online.version&&oo(s);return{c(){d&&d.c(),u=lo()},l(f){d&&d.l(f),u=lo()},m(f,_){d&&d.m(f,_),ks(f,u,_),w=!0},p(f,_){f[23].version!==f[1].online.version?d?(d.p(f,_),_&2&&p(d,1)):(d=oo(f),d.c(),p(d,1),d.m(u.parentNode,u)):d&&(ro(),m(d,1,1,()=>{d=null}),io())},i(f){w||(p(d),w=!0)},o(f){m(d),w=!1},d(f){f&&a(u),d&&d.d(f)}}}function oo(s){let u,w,d,f,_="Update available",v,C,D,M;return w=new E({props:{icon:"arrowTripleUp"}}),{c(){u=n("button"),L(w.$$.fragment),d=c(),f=n("span"),f.textContent=_,this.h()},l(P){u=l(P,"BUTTON",{title:!0,class:!0});var S=o(u);k(w.$$.fragment,S),d=i(S),f=l(S,"SPAN",{"data-svelte-h":!0}),U(f)!=="svelte-16bfzxk"&&(f.textContent=_),S.forEach(a),this.h()},h(){t(u,"title","Update to pos-cli version "+s[23].version),t(u,"class","update svelte-50so3t")},m(P,S){ks(P,u,S),b(w,u,null),e(u,d),e(u,f),C=!0,D||(M=q(u,"click",s[6]),D=!0)},p:z,i(P){C||(p(w.$$.fragment,P),P&&$o(()=>{C&&(v||(v=no(u,ao,{},!0)),v.run(1))}),C=!0)},o(P){m(w.$$.fragment,P),P&&(v||(v=no(u,ao,{},!1)),v.run(0)),C=!1},d(P){P&&a(u),$(w),P&&v&&v.end(),D=!1,M()}}}function Uo(s){return{c:z,l:z,m:z,p:z,i:z,o:z,d:z}}function Co(s){var Da;let u,w,d,f,_,v,C,D,M,P,S="Database",ke,Le,Hl='
  • Inspect tables and records
  • Create, edit or delete records
  • Filter and find any record
  • ',As,ie,Ke,j,Ee,Ms,we,Jl="Show more information about Database tool",Bs,Xe,J,T,Ue,Ye,Ls=s[1].header.includes("database")?"Unpin Database from":"Pin Database to",Hs,Ol,Js,Fl,O,ce,Rt,We,Ql,Ze,ua="Users",Gl,ye,da='
  • Inspect registered users and their personal data
  • ',Vl,Ce,jt,te,xe,Rl,et,fa="Show more information about Users tool",jl,Kt,K,Pe,Kl,tt,Es=s[1].header.includes("users")?"Unpin Users from":"Pin Users to",Os,Xl,Fs,Yl,F,ue,Xt,st,Wl,lt,ha="Logs",Zl,nt,va='
  • View system logs
  • Inspect logs you've outputted yourself
  • Debug Liquid or GraphQL errors
  • ',yl,Te,Yt,se,at,xl,ot,pa="Show more information about Logs tool",en,Wt,X,Ie,tn,rt,ws=s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to",Qs,sn,Gs,ln,Q,de,Zt,it,nn,ct,ma="Background Jobs",an,ut,_a='
  • List scheduled background jobs
  • Debug background jobs that failed to run
  • ',on,Ne,yt,le,dt,rn,ft,ga="Show more information about Background Jobs tool",cn,xt,Y,qe,un,ht,Us=s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to",Vs,dn,Rs,fn,G,fe,es,vt,hn,pt,$a="Constants",vn,mt,ba='
  • Check all constants in one place
  • Create new constants
  • Edit or delete existing ones
  • ',pn,De,ts,ne,_t,mn,gt,ka="Show more information about Constants tool",_n,ss,W,ze,gn,$t,Cs=s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to",js,$n,Ks,bn,ae,V,he,bt,kt,kn,Lt,La="Liquid Evaluator",Ln,Et,Ea='
  • Run Liquid code against your instance
  • Test Liquid logic
  • Quickly prototype your ideas
  • ',En,Se,ls,oe,wt,wn,Ut,wa="Show more information about Liquid Evaluator",Un,ns,Z,Ae,Cn,Ct,Ps=s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to",Xs,Pn,Ys,Tn,R,ve,Pt,Tt,In,It,Ua="GraphiQL",Nn,Nt,Ca='
  • Run GraphQL against your instance
  • Explore documentation
  • Quickly prototype your queries and mutations
  • ',qn,Me,as,re,qt,Dn,Dt,Pa="Show more information about GraphiQL",zn,os,y,Be,Sn,zt,Ts=s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to",Ws,An,Zs,Mn,He,Je,Oe,x,Fe,Bn,St,Is=s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to",ys,Hn,xs,Jn,pe,rs,At,On,is,Ta="Logs v2",Fn,Qe,ee,Ge,Qn,Mt,Ns=s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to",el,Gn,tl,Vn,me,cs,Bt,Rn,us,Ia="Network Logs",jn,Ht,Na=`Early access + New tools in testable versions`,sl,_e,ds,Kn,Ve,fs,Re,Jt,Xn,Yn,hs,je,Ot,Wn,g,Zn,qa;document.title=u="platformOS"+((Da=s[1].online)!=null&&Da.MPKIT_URL?": "+s[1].online.MPKIT_URL.replace("https://",""):""),D=new E({props:{icon:"database",size:"48"}}),Ee=new E({props:{icon:"info",size:"14"}}),T=new E({props:{icon:s[1].header.includes("database")?"pinFilled":"pin",size:"14"}}),We=new E({props:{icon:"users",size:"48"}}),xe=new E({props:{icon:"info",size:"14"}}),Pe=new E({props:{icon:s[1].header.includes("users")?"pinFilled":"pin",size:"14"}}),st=new E({props:{icon:"log",size:"48"}}),at=new E({props:{icon:"info",size:"14"}}),Ie=new E({props:{icon:s[1].header.includes("logs")?"pinFilled":"pin",size:"14"}}),it=new E({props:{icon:"backgroundJob",size:"48"}}),dt=new E({props:{icon:"info",size:"14"}}),qe=new E({props:{icon:s[1].header.includes("backgroundJobs")?"pinFilled":"pin",size:"14"}}),vt=new E({props:{icon:"constant",size:"48"}}),_t=new E({props:{icon:"info",size:"14"}}),ze=new E({props:{icon:s[1].header.includes("constants")?"pinFilled":"pin",size:"14"}}),kt=new E({props:{icon:"liquid",size:"48"}}),wt=new E({props:{icon:"info",size:"14"}}),Ae=new E({props:{icon:s[1].header.includes("liquid")?"pinFilled":"pin",size:"14"}}),Tt=new E({props:{icon:"graphql",size:"48"}}),qt=new E({props:{icon:"info",size:"14"}}),Be=new E({props:{icon:s[1].header.includes("graphiql")?"pinFilled":"pin",size:"14"}}),Fe=new E({props:{icon:s[1].header.includes("logsv2")?"pinFilled":"pin",size:"12"}}),At=new E({props:{icon:"logFresh",size:"24"}}),Ge=new E({props:{icon:s[1].header.includes("network")?"pinFilled":"pin",size:"12"}}),Bt=new E({props:{icon:"globeMessage",size:"24"}});let B={ctx:s,current:null,token:null,hasCatch:!1,pending:Uo,then:wo,catch:Eo,value:23,blocks:[,,,]};return ko(s[5](),B),Jt=new E({props:{icon:"book"}}),Ot=new E({props:{icon:"serverSettings"}}),{c(){w=c(),d=n("nav"),f=n("ul"),_=n("li"),v=n("a"),C=n("div"),L(D.$$.fragment),M=c(),P=n("h2"),P.textContent=S,ke=c(),Le=n("ul"),Le.innerHTML=Hl,As=c(),ie=n("ul"),Ke=n("li"),j=n("button"),L(Ee.$$.fragment),Ms=c(),we=n("span"),we.textContent=Jl,Bs=c(),Xe=n("li"),J=n("button"),L(T.$$.fragment),Ue=c(),Ye=n("span"),Hs=N(Ls),Ol=N(" header menu"),Fl=c(),O=n("li"),ce=n("a"),Rt=n("div"),L(We.$$.fragment),Ql=c(),Ze=n("h2"),Ze.textContent=ua,Gl=c(),ye=n("ul"),ye.innerHTML=da,Vl=c(),Ce=n("ul"),jt=n("li"),te=n("button"),L(xe.$$.fragment),Rl=c(),et=n("span"),et.textContent=fa,jl=c(),Kt=n("li"),K=n("button"),L(Pe.$$.fragment),Kl=c(),tt=n("span"),Os=N(Es),Xl=N(" header menu"),Yl=c(),F=n("li"),ue=n("a"),Xt=n("div"),L(st.$$.fragment),Wl=c(),lt=n("h2"),lt.textContent=ha,Zl=c(),nt=n("ul"),nt.innerHTML=va,yl=c(),Te=n("ul"),Yt=n("li"),se=n("button"),L(at.$$.fragment),xl=c(),ot=n("span"),ot.textContent=pa,en=c(),Wt=n("li"),X=n("button"),L(Ie.$$.fragment),tn=c(),rt=n("span"),Qs=N(ws),sn=N(" header menu"),ln=c(),Q=n("li"),de=n("a"),Zt=n("div"),L(it.$$.fragment),nn=c(),ct=n("h2"),ct.textContent=ma,an=c(),ut=n("ul"),ut.innerHTML=_a,on=c(),Ne=n("ul"),yt=n("li"),le=n("button"),L(dt.$$.fragment),rn=c(),ft=n("span"),ft.textContent=ga,cn=c(),xt=n("li"),Y=n("button"),L(qe.$$.fragment),un=c(),ht=n("span"),Vs=N(Us),dn=N(" header menu"),fn=c(),G=n("li"),fe=n("a"),es=n("div"),L(vt.$$.fragment),hn=c(),pt=n("h2"),pt.textContent=$a,vn=c(),mt=n("ul"),mt.innerHTML=ba,pn=c(),De=n("ul"),ts=n("li"),ne=n("button"),L(_t.$$.fragment),mn=c(),gt=n("span"),gt.textContent=ka,_n=c(),ss=n("li"),W=n("button"),L(ze.$$.fragment),gn=c(),$t=n("span"),js=N(Cs),$n=N(" header menu"),bn=c(),ae=n("ul"),V=n("li"),he=n("a"),bt=n("div"),L(kt.$$.fragment),kn=c(),Lt=n("h2"),Lt.textContent=La,Ln=c(),Et=n("ul"),Et.innerHTML=Ea,En=c(),Se=n("ul"),ls=n("li"),oe=n("button"),L(wt.$$.fragment),wn=c(),Ut=n("span"),Ut.textContent=wa,Un=c(),ns=n("li"),Z=n("button"),L(Ae.$$.fragment),Cn=c(),Ct=n("span"),Xs=N(Ps),Pn=N(" header menu"),Tn=c(),R=n("li"),ve=n("a"),Pt=n("div"),L(Tt.$$.fragment),In=c(),It=n("h2"),It.textContent=Ua,Nn=c(),Nt=n("ul"),Nt.innerHTML=Ca,qn=c(),Me=n("ul"),as=n("li"),re=n("button"),L(qt.$$.fragment),Dn=c(),Dt=n("span"),Dt.textContent=Pa,zn=c(),os=n("li"),y=n("button"),L(Be.$$.fragment),Sn=c(),zt=n("span"),Ws=N(Ts),An=N(" header menu"),Mn=c(),He=n("li"),Je=n("ul"),Oe=n("li"),x=n("button"),L(Fe.$$.fragment),Bn=c(),St=n("span"),ys=N(Is),Hn=N(" header menu"),Jn=c(),pe=n("a"),rs=n("i"),L(At.$$.fragment),On=c(),is=n("h3"),is.textContent=Ta,Fn=c(),Qe=n("li"),ee=n("button"),L(Ge.$$.fragment),Qn=c(),Mt=n("span"),el=N(Ns),Gn=N(" header menu"),Vn=c(),me=n("a"),cs=n("i"),L(Bt.$$.fragment),Rn=c(),us=n("h3"),us.textContent=Ia,jn=c(),Ht=n("h2"),Ht.innerHTML=Na,sl=c(),_e=n("footer"),ds=n("div"),B.block.c(),Kn=c(),Ve=n("ul"),fs=n("li"),Re=n("a"),L(Jt.$$.fragment),Xn=N(` + Documentation`),Yn=c(),hs=n("li"),je=n("a"),L(Ot.$$.fragment),Wn=N(` + Partner Portal`),this.h()},l(r){_o("svelte-zlk2mt",document.head).forEach(a),w=i(r),d=l(r,"NAV",{class:!0});var ge=o(d);f=l(ge,"UL",{class:!0});var H=o(f);_=l(H,"LI",{class:!0});var $e=o(_);v=l($e,"A",{href:!0,class:!0});var Ft=o(v);C=l(Ft,"DIV",{class:!0});var qs=o(C);k(D.$$.fragment,qs),qs.forEach(a),M=i(Ft),P=l(Ft,"H2",{class:!0,"data-svelte-h":!0}),U(P)!=="svelte-1a38a01"&&(P.textContent=S),Ft.forEach(a),ke=i($e),Le=l($e,"UL",{class:!0,"data-svelte-h":!0}),U(Le)!=="svelte-1tj1zl5"&&(Le.innerHTML=Hl),As=i($e),ie=l($e,"UL",{class:!0});var Qt=o(ie);Ke=l(Qt,"LI",{class:!0});var Ds=o(Ke);j=l(Ds,"BUTTON",{title:!0,class:!0});var Gt=o(j);k(Ee.$$.fragment,Gt),Ms=i(Gt),we=l(Gt,"SPAN",{class:!0,"data-svelte-h":!0}),U(we)!=="svelte-vg36pf"&&(we.textContent=Jl),Gt.forEach(a),Ds.forEach(a),Bs=i(Qt),Xe=l(Qt,"LI",{class:!0});var zs=o(Xe);J=l(zs,"BUTTON",{title:!0,class:!0});var Vt=o(J);k(T.$$.fragment,Vt),Ue=i(Vt),Ye=l(Vt,"SPAN",{class:!0});var yn=o(Ye);Hs=I(yn,Ls),Ol=I(yn," header menu"),yn.forEach(a),Vt.forEach(a),zs.forEach(a),Qt.forEach(a),$e.forEach(a),Fl=i(H),O=l(H,"LI",{class:!0});var vs=o(O);ce=l(vs,"A",{href:!0,class:!0});var ll=o(ce);Rt=l(ll,"DIV",{class:!0});var za=o(Rt);k(We.$$.fragment,za),za.forEach(a),Ql=i(ll),Ze=l(ll,"H2",{class:!0,"data-svelte-h":!0}),U(Ze)!=="svelte-bvmn5u"&&(Ze.textContent=ua),ll.forEach(a),Gl=i(vs),ye=l(vs,"UL",{class:!0,"data-svelte-h":!0}),U(ye)!=="svelte-ml78fh"&&(ye.innerHTML=da),Vl=i(vs),Ce=l(vs,"UL",{class:!0});var nl=o(Ce);jt=l(nl,"LI",{class:!0});var Sa=o(jt);te=l(Sa,"BUTTON",{title:!0,class:!0});var al=o(te);k(xe.$$.fragment,al),Rl=i(al),et=l(al,"SPAN",{class:!0,"data-svelte-h":!0}),U(et)!=="svelte-10o6fc2"&&(et.textContent=fa),al.forEach(a),Sa.forEach(a),jl=i(nl),Kt=l(nl,"LI",{class:!0});var Aa=o(Kt);K=l(Aa,"BUTTON",{title:!0,class:!0});var ol=o(K);k(Pe.$$.fragment,ol),Kl=i(ol),tt=l(ol,"SPAN",{class:!0});var xn=o(tt);Os=I(xn,Es),Xl=I(xn," header menu"),xn.forEach(a),ol.forEach(a),Aa.forEach(a),nl.forEach(a),vs.forEach(a),Yl=i(H),F=l(H,"LI",{class:!0});var ps=o(F);ue=l(ps,"A",{href:!0,class:!0});var rl=o(ue);Xt=l(rl,"DIV",{class:!0});var Ma=o(Xt);k(st.$$.fragment,Ma),Ma.forEach(a),Wl=i(rl),lt=l(rl,"H2",{class:!0,"data-svelte-h":!0}),U(lt)!=="svelte-1ef7qq7"&&(lt.textContent=ha),rl.forEach(a),Zl=i(ps),nt=l(ps,"UL",{class:!0,"data-svelte-h":!0}),U(nt)!=="svelte-16nvdoq"&&(nt.innerHTML=va),yl=i(ps),Te=l(ps,"UL",{class:!0});var il=o(Te);Yt=l(il,"LI",{class:!0});var Ba=o(Yt);se=l(Ba,"BUTTON",{title:!0,class:!0});var cl=o(se);k(at.$$.fragment,cl),xl=i(cl),ot=l(cl,"SPAN",{class:!0,"data-svelte-h":!0}),U(ot)!=="svelte-7a5jqd"&&(ot.textContent=pa),cl.forEach(a),Ba.forEach(a),en=i(il),Wt=l(il,"LI",{class:!0});var Ha=o(Wt);X=l(Ha,"BUTTON",{title:!0,class:!0});var ul=o(X);k(Ie.$$.fragment,ul),tn=i(ul),rt=l(ul,"SPAN",{class:!0});var ea=o(rt);Qs=I(ea,ws),sn=I(ea," header menu"),ea.forEach(a),ul.forEach(a),Ha.forEach(a),il.forEach(a),ps.forEach(a),ln=i(H),Q=l(H,"LI",{class:!0});var ms=o(Q);de=l(ms,"A",{href:!0,class:!0});var dl=o(de);Zt=l(dl,"DIV",{class:!0});var Ja=o(Zt);k(it.$$.fragment,Ja),Ja.forEach(a),nn=i(dl),ct=l(dl,"H2",{class:!0,"data-svelte-h":!0}),U(ct)!=="svelte-1bxtcha"&&(ct.textContent=ma),dl.forEach(a),an=i(ms),ut=l(ms,"UL",{class:!0,"data-svelte-h":!0}),U(ut)!=="svelte-198kha5"&&(ut.innerHTML=_a),on=i(ms),Ne=l(ms,"UL",{class:!0});var fl=o(Ne);yt=l(fl,"LI",{class:!0});var Oa=o(yt);le=l(Oa,"BUTTON",{title:!0,class:!0});var hl=o(le);k(dt.$$.fragment,hl),rn=i(hl),ft=l(hl,"SPAN",{class:!0,"data-svelte-h":!0}),U(ft)!=="svelte-12zm1eu"&&(ft.textContent=ga),hl.forEach(a),Oa.forEach(a),cn=i(fl),xt=l(fl,"LI",{class:!0});var Fa=o(xt);Y=l(Fa,"BUTTON",{title:!0,class:!0});var vl=o(Y);k(qe.$$.fragment,vl),un=i(vl),ht=l(vl,"SPAN",{class:!0});var ta=o(ht);Vs=I(ta,Us),dn=I(ta," header menu"),ta.forEach(a),vl.forEach(a),Fa.forEach(a),fl.forEach(a),ms.forEach(a),fn=i(H),G=l(H,"LI",{class:!0});var _s=o(G);fe=l(_s,"A",{href:!0,class:!0});var pl=o(fe);es=l(pl,"DIV",{class:!0});var Qa=o(es);k(vt.$$.fragment,Qa),Qa.forEach(a),hn=i(pl),pt=l(pl,"H2",{class:!0,"data-svelte-h":!0}),U(pt)!=="svelte-187k1uv"&&(pt.textContent=$a),pl.forEach(a),vn=i(_s),mt=l(_s,"UL",{class:!0,"data-svelte-h":!0}),U(mt)!=="svelte-1hxwc9f"&&(mt.innerHTML=ba),pn=i(_s),De=l(_s,"UL",{class:!0});var ml=o(De);ts=l(ml,"LI",{class:!0});var Ga=o(ts);ne=l(Ga,"BUTTON",{title:!0,class:!0});var _l=o(ne);k(_t.$$.fragment,_l),mn=i(_l),gt=l(_l,"SPAN",{class:!0,"data-svelte-h":!0}),U(gt)!=="svelte-96zp3x"&&(gt.textContent=ka),_l.forEach(a),Ga.forEach(a),_n=i(ml),ss=l(ml,"LI",{class:!0});var Va=o(ss);W=l(Va,"BUTTON",{title:!0,class:!0});var gl=o(W);k(ze.$$.fragment,gl),gn=i(gl),$t=l(gl,"SPAN",{class:!0});var sa=o($t);js=I(sa,Cs),$n=I(sa," header menu"),sa.forEach(a),gl.forEach(a),Va.forEach(a),ml.forEach(a),_s.forEach(a),H.forEach(a),bn=i(ge),ae=l(ge,"UL",{class:!0});var gs=o(ae);V=l(gs,"LI",{class:!0});var $s=o(V);he=l($s,"A",{href:!0,class:!0});var $l=o(he);bt=l($l,"DIV",{class:!0,style:!0});var Ra=o(bt);k(kt.$$.fragment,Ra),Ra.forEach(a),kn=i($l),Lt=l($l,"H2",{class:!0,"data-svelte-h":!0}),U(Lt)!=="svelte-1945w61"&&(Lt.textContent=La),$l.forEach(a),Ln=i($s),Et=l($s,"UL",{class:!0,"data-svelte-h":!0}),U(Et)!=="svelte-1k625ps"&&(Et.innerHTML=Ea),En=i($s),Se=l($s,"UL",{class:!0});var bl=o(Se);ls=l(bl,"LI",{class:!0});var ja=o(ls);oe=l(ja,"BUTTON",{title:!0,class:!0});var kl=o(oe);k(wt.$$.fragment,kl),wn=i(kl),Ut=l(kl,"SPAN",{class:!0,"data-svelte-h":!0}),U(Ut)!=="svelte-zgpe6t"&&(Ut.textContent=wa),kl.forEach(a),ja.forEach(a),Un=i(bl),ns=l(bl,"LI",{class:!0});var Ka=o(ns);Z=l(Ka,"BUTTON",{title:!0,class:!0});var Ll=o(Z);k(Ae.$$.fragment,Ll),Cn=i(Ll),Ct=l(Ll,"SPAN",{class:!0});var la=o(Ct);Xs=I(la,Ps),Pn=I(la," header menu"),la.forEach(a),Ll.forEach(a),Ka.forEach(a),bl.forEach(a),$s.forEach(a),Tn=i(gs),R=l(gs,"LI",{class:!0});var bs=o(R);ve=l(bs,"A",{href:!0,class:!0});var El=o(ve);Pt=l(El,"DIV",{class:!0,style:!0});var Xa=o(Pt);k(Tt.$$.fragment,Xa),Xa.forEach(a),In=i(El),It=l(El,"H2",{class:!0,"data-svelte-h":!0}),U(It)!=="svelte-v0z4e8"&&(It.textContent=Ua),El.forEach(a),Nn=i(bs),Nt=l(bs,"UL",{class:!0,"data-svelte-h":!0}),U(Nt)!=="svelte-17bqupm"&&(Nt.innerHTML=Ca),qn=i(bs),Me=l(bs,"UL",{class:!0});var wl=o(Me);as=l(wl,"LI",{class:!0});var Ya=o(as);re=l(Ya,"BUTTON",{title:!0,class:!0});var Ul=o(re);k(qt.$$.fragment,Ul),Dn=i(Ul),Dt=l(Ul,"SPAN",{class:!0,"data-svelte-h":!0}),U(Dt)!=="svelte-1mz1lxe"&&(Dt.textContent=Pa),Ul.forEach(a),Ya.forEach(a),zn=i(wl),os=l(wl,"LI",{class:!0});var Wa=o(os);y=l(Wa,"BUTTON",{title:!0,class:!0});var Cl=o(y);k(Be.$$.fragment,Cl),Sn=i(Cl),zt=l(Cl,"SPAN",{class:!0});var na=o(zt);Ws=I(na,Ts),An=I(na," header menu"),na.forEach(a),Cl.forEach(a),Wa.forEach(a),wl.forEach(a),bs.forEach(a),Mn=i(gs),He=l(gs,"LI",{class:!0});var Pl=o(He);Je=l(Pl,"UL",{class:!0});var Tl=o(Je);Oe=l(Tl,"LI",{class:!0});var Il=o(Oe);x=l(Il,"BUTTON",{title:!0,class:!0});var Nl=o(x);k(Fe.$$.fragment,Nl),Bn=i(Nl),St=l(Nl,"SPAN",{class:!0});var aa=o(St);ys=I(aa,Is),Hn=I(aa," header menu"),aa.forEach(a),Nl.forEach(a),Jn=i(Il),pe=l(Il,"A",{href:!0,class:!0});var ql=o(pe);rs=l(ql,"I",{class:!0});var Za=o(rs);k(At.$$.fragment,Za),Za.forEach(a),On=i(ql),is=l(ql,"H3",{"data-svelte-h":!0}),U(is)!=="svelte-12gavf5"&&(is.textContent=Ta),ql.forEach(a),Il.forEach(a),Fn=i(Tl),Qe=l(Tl,"LI",{class:!0});var Dl=o(Qe);ee=l(Dl,"BUTTON",{title:!0,class:!0});var zl=o(ee);k(Ge.$$.fragment,zl),Qn=i(zl),Mt=l(zl,"SPAN",{class:!0});var oa=o(Mt);el=I(oa,Ns),Gn=I(oa," header menu"),oa.forEach(a),zl.forEach(a),Vn=i(Dl),me=l(Dl,"A",{href:!0,class:!0});var Sl=o(me);cs=l(Sl,"I",{class:!0});var ya=o(cs);k(Bt.$$.fragment,ya),ya.forEach(a),Rn=i(Sl),us=l(Sl,"H3",{"data-svelte-h":!0}),U(us)!=="svelte-16npeyx"&&(us.textContent=Ia),Sl.forEach(a),Dl.forEach(a),Tl.forEach(a),jn=i(Pl),Ht=l(Pl,"H2",{class:!0,"data-svelte-h":!0}),U(Ht)!=="svelte-bhbezd"&&(Ht.innerHTML=Na),Pl.forEach(a),gs.forEach(a),ge.forEach(a),sl=i(r),_e=l(r,"FOOTER",{class:!0});var Al=o(_e);ds=l(Al,"DIV",{});var xa=o(ds);B.block.l(xa),xa.forEach(a),Kn=i(Al),Ve=l(Al,"UL",{class:!0});var Ml=o(Ve);fs=l(Ml,"LI",{class:!0});var eo=o(fs);Re=l(eo,"A",{href:!0,class:!0});var ra=o(Re);k(Jt.$$.fragment,ra),Xn=I(ra,` + Documentation`),ra.forEach(a),eo.forEach(a),Yn=i(Ml),hs=l(Ml,"LI",{class:!0});var to=o(hs);je=l(to,"A",{href:!0,class:!0});var ia=o(je);k(Ot.$$.fragment,ia),Wn=I(ia,` + Partner Portal`),ia.forEach(a),to.forEach(a),Ml.forEach(a),Al.forEach(a),this.h()},h(){t(C,"class","icon svelte-50so3t"),t(P,"class","svelte-50so3t"),t(v,"href","/database"),t(v,"class","svelte-50so3t"),t(Le,"class","description svelte-50so3t"),t(we,"class","label"),t(j,"title","More information"),t(j,"class","svelte-50so3t"),t(Ke,"class","svelte-50so3t"),t(Ye,"class","label"),t(J,"title",Js=(s[1].header.includes("database")?"Unpin Database from":"Pin Database to")+" header menu"),t(J,"class","svelte-50so3t"),t(Xe,"class","svelte-50so3t"),t(ie,"class","actions svelte-50so3t"),t(_,"class","application svelte-50so3t"),A(_,"showDescription",s[0].includes("database")),t(Rt,"class","icon svelte-50so3t"),t(Ze,"class","svelte-50so3t"),t(ce,"href","/users"),t(ce,"class","svelte-50so3t"),t(ye,"class","description svelte-50so3t"),t(et,"class","label"),t(te,"title","More information"),t(te,"class","svelte-50so3t"),t(jt,"class","svelte-50so3t"),t(tt,"class","label"),t(K,"title",Fs=(s[1].header.includes("users")?"Unpin Users from":"Pin Users to")+" header menu"),t(K,"class","svelte-50so3t"),t(Kt,"class","svelte-50so3t"),t(Ce,"class","actions svelte-50so3t"),t(O,"class","application svelte-50so3t"),A(O,"showDescription",s[0].includes("users")),t(Xt,"class","icon svelte-50so3t"),t(lt,"class","svelte-50so3t"),t(ue,"href","/logs"),t(ue,"class","svelte-50so3t"),t(nt,"class","description svelte-50so3t"),t(ot,"class","label"),t(se,"title","More information"),t(se,"class","svelte-50so3t"),t(Yt,"class","svelte-50so3t"),t(rt,"class","label"),t(X,"title",Gs=(s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")+" header menu"),t(X,"class","svelte-50so3t"),t(Wt,"class","svelte-50so3t"),t(Te,"class","actions svelte-50so3t"),t(F,"class","application svelte-50so3t"),A(F,"showDescription",s[0].includes("logs")),t(Zt,"class","icon svelte-50so3t"),t(ct,"class","svelte-50so3t"),t(de,"href","/backgroundJobs"),t(de,"class","svelte-50so3t"),t(ut,"class","description svelte-50so3t"),t(ft,"class","label"),t(le,"title","More information"),t(le,"class","svelte-50so3t"),t(yt,"class","svelte-50so3t"),t(ht,"class","label"),t(Y,"title",Rs=(s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")+" header menu"),t(Y,"class","svelte-50so3t"),t(xt,"class","svelte-50so3t"),t(Ne,"class","actions svelte-50so3t"),t(Q,"class","application svelte-50so3t"),A(Q,"showDescription",s[0].includes("backgroundJobs")),t(es,"class","icon svelte-50so3t"),t(pt,"class","svelte-50so3t"),t(fe,"href","/constants"),t(fe,"class","svelte-50so3t"),t(mt,"class","description svelte-50so3t"),t(gt,"class","label"),t(ne,"title","More information"),t(ne,"class","svelte-50so3t"),t(ts,"class","svelte-50so3t"),t($t,"class","label"),t(W,"title",Ks=(s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")+" header menu"),t(W,"class","svelte-50so3t"),t(ss,"class","svelte-50so3t"),t(De,"class","actions svelte-50so3t"),t(G,"class","application svelte-50so3t"),A(G,"showDescription",s[0].includes("constants")),t(f,"class","applications svelte-50so3t"),t(bt,"class","icon svelte-50so3t"),so(bt,"color","#aeb0b3"),t(Lt,"class","svelte-50so3t"),t(he,"href",(typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333")+"/gui/liquid"),t(he,"class","svelte-50so3t"),t(Et,"class","description svelte-50so3t"),t(Ut,"class","label"),t(oe,"title","More information"),t(oe,"class","svelte-50so3t"),t(ls,"class","svelte-50so3t"),t(Ct,"class","label"),t(Z,"title",Ys=(s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")+" header menu"),t(Z,"class","svelte-50so3t"),t(ns,"class","svelte-50so3t"),t(Se,"class","actions svelte-50so3t"),t(V,"class","application svelte-50so3t"),A(V,"showDescription",s[0].includes("liquid")),t(Pt,"class","icon svelte-50so3t"),so(Pt,"color","#f30e9c"),t(It,"class","svelte-50so3t"),t(ve,"href",(typeof window<"u"&&window.location.port!=="4173"&&window.location.port!=="5173"?`http://localhost:${parseInt(window.location.port)}`:"http://localhost:3333")+"/gui/graphql"),t(ve,"class","svelte-50so3t"),t(Nt,"class","description svelte-50so3t"),t(Dt,"class","label"),t(re,"title","More information"),t(re,"class","svelte-50so3t"),t(as,"class","svelte-50so3t"),t(zt,"class","label"),t(y,"title",Zs=(s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")+" header menu"),t(y,"class","svelte-50so3t"),t(os,"class","svelte-50so3t"),t(Me,"class","actions svelte-50so3t"),t(R,"class","application svelte-50so3t"),A(R,"showDescription",s[0].includes("graphiql")),t(St,"class","label"),t(x,"title",xs=(s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")+" header menu"),t(x,"class","svelte-50so3t"),t(rs,"class","svelte-50so3t"),t(pe,"href","/logsv2"),t(pe,"class","svelte-50so3t"),t(Oe,"class","svelte-50so3t"),t(Mt,"class","label"),t(ee,"title",tl=(s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")+" header menu"),t(ee,"class","svelte-50so3t"),t(cs,"class","svelte-50so3t"),t(me,"href","/network"),t(me,"class","svelte-50so3t"),t(Qe,"class","svelte-50so3t"),t(Je,"class","svelte-50so3t"),t(Ht,"class","svelte-50so3t"),t(He,"class","early svelte-50so3t"),t(ae,"class","applications svelte-50so3t"),t(d,"class","svelte-50so3t"),t(Re,"href","https://documentation.platformos.com"),t(Re,"class","button svelte-50so3t"),t(fs,"class","svelte-50so3t"),t(je,"href","https://partners.platformos.com"),t(je,"class","button svelte-50so3t"),t(hs,"class","svelte-50so3t"),t(Ve,"class","svelte-50so3t"),t(_e,"class","svelte-50so3t")},m(r,h){ks(r,w,h),ks(r,d,h),e(d,f),e(f,_),e(_,v),e(v,C),b(D,C,null),e(v,M),e(v,P),e(_,ke),e(_,Le),e(_,As),e(_,ie),e(ie,Ke),e(Ke,j),b(Ee,j,null),e(j,Ms),e(j,we),e(ie,Bs),e(ie,Xe),e(Xe,J),b(T,J,null),e(J,Ue),e(J,Ye),e(Ye,Hs),e(Ye,Ol),e(f,Fl),e(f,O),e(O,ce),e(ce,Rt),b(We,Rt,null),e(ce,Ql),e(ce,Ze),e(O,Gl),e(O,ye),e(O,Vl),e(O,Ce),e(Ce,jt),e(jt,te),b(xe,te,null),e(te,Rl),e(te,et),e(Ce,jl),e(Ce,Kt),e(Kt,K),b(Pe,K,null),e(K,Kl),e(K,tt),e(tt,Os),e(tt,Xl),e(f,Yl),e(f,F),e(F,ue),e(ue,Xt),b(st,Xt,null),e(ue,Wl),e(ue,lt),e(F,Zl),e(F,nt),e(F,yl),e(F,Te),e(Te,Yt),e(Yt,se),b(at,se,null),e(se,xl),e(se,ot),e(Te,en),e(Te,Wt),e(Wt,X),b(Ie,X,null),e(X,tn),e(X,rt),e(rt,Qs),e(rt,sn),e(f,ln),e(f,Q),e(Q,de),e(de,Zt),b(it,Zt,null),e(de,nn),e(de,ct),e(Q,an),e(Q,ut),e(Q,on),e(Q,Ne),e(Ne,yt),e(yt,le),b(dt,le,null),e(le,rn),e(le,ft),e(Ne,cn),e(Ne,xt),e(xt,Y),b(qe,Y,null),e(Y,un),e(Y,ht),e(ht,Vs),e(ht,dn),e(f,fn),e(f,G),e(G,fe),e(fe,es),b(vt,es,null),e(fe,hn),e(fe,pt),e(G,vn),e(G,mt),e(G,pn),e(G,De),e(De,ts),e(ts,ne),b(_t,ne,null),e(ne,mn),e(ne,gt),e(De,_n),e(De,ss),e(ss,W),b(ze,W,null),e(W,gn),e(W,$t),e($t,js),e($t,$n),e(d,bn),e(d,ae),e(ae,V),e(V,he),e(he,bt),b(kt,bt,null),e(he,kn),e(he,Lt),e(V,Ln),e(V,Et),e(V,En),e(V,Se),e(Se,ls),e(ls,oe),b(wt,oe,null),e(oe,wn),e(oe,Ut),e(Se,Un),e(Se,ns),e(ns,Z),b(Ae,Z,null),e(Z,Cn),e(Z,Ct),e(Ct,Xs),e(Ct,Pn),e(ae,Tn),e(ae,R),e(R,ve),e(ve,Pt),b(Tt,Pt,null),e(ve,In),e(ve,It),e(R,Nn),e(R,Nt),e(R,qn),e(R,Me),e(Me,as),e(as,re),b(qt,re,null),e(re,Dn),e(re,Dt),e(Me,zn),e(Me,os),e(os,y),b(Be,y,null),e(y,Sn),e(y,zt),e(zt,Ws),e(zt,An),e(ae,Mn),e(ae,He),e(He,Je),e(Je,Oe),e(Oe,x),b(Fe,x,null),e(x,Bn),e(x,St),e(St,ys),e(St,Hn),e(Oe,Jn),e(Oe,pe),e(pe,rs),b(At,rs,null),e(pe,On),e(pe,is),e(Je,Fn),e(Je,Qe),e(Qe,ee),b(Ge,ee,null),e(ee,Qn),e(ee,Mt),e(Mt,el),e(Mt,Gn),e(Qe,Vn),e(Qe,me),e(me,cs),b(Bt,cs,null),e(me,Rn),e(me,us),e(He,jn),e(He,Ht),ks(r,sl,h),ks(r,_e,h),e(_e,ds),B.block.m(ds,B.anchor=null),B.mount=()=>ds,B.anchor=null,e(_e,Kn),e(_e,Ve),e(Ve,fs),e(fs,Re),b(Jt,Re,null),e(Re,Xn),e(Ve,Yn),e(Ve,hs),e(hs,je),b(Ot,je,null),e(je,Wn),g=!0,Zn||(qa=[q(v,"focus",s[2],{once:!0}),q(v,"mouseover",s[2],{once:!0}),q(j,"click",s[7]),q(J,"click",s[8]),q(te,"click",s[9]),q(K,"click",s[10]),q(se,"click",s[11]),q(X,"click",s[12]),q(le,"click",s[13]),q(Y,"click",s[14]),q(ne,"click",s[15]),q(W,"click",s[16]),q(oe,"click",s[17]),q(Z,"click",s[18]),q(re,"click",s[19]),q(y,"click",s[20]),q(x,"click",s[21]),q(ee,"click",s[22])],Zn=!0)},p(r,[h]){var Vt;s=r,(!g||h&2)&&u!==(u="platformOS"+((Vt=s[1].online)!=null&&Vt.MPKIT_URL?": "+s[1].online.MPKIT_URL.replace("https://",""):""))&&(document.title=u);const ge={};h&2&&(ge.icon=s[1].header.includes("database")?"pinFilled":"pin"),T.$set(ge),(!g||h&2)&&Ls!==(Ls=s[1].header.includes("database")?"Unpin Database from":"Pin Database to")&&be(Hs,Ls),(!g||h&2&&Js!==(Js=(s[1].header.includes("database")?"Unpin Database from":"Pin Database to")+" header menu"))&&t(J,"title",Js),(!g||h&1)&&A(_,"showDescription",s[0].includes("database"));const H={};h&2&&(H.icon=s[1].header.includes("users")?"pinFilled":"pin"),Pe.$set(H),(!g||h&2)&&Es!==(Es=s[1].header.includes("users")?"Unpin Users from":"Pin Users to")&&be(Os,Es),(!g||h&2&&Fs!==(Fs=(s[1].header.includes("users")?"Unpin Users from":"Pin Users to")+" header menu"))&&t(K,"title",Fs),(!g||h&1)&&A(O,"showDescription",s[0].includes("users"));const $e={};h&2&&($e.icon=s[1].header.includes("logs")?"pinFilled":"pin"),Ie.$set($e),(!g||h&2)&&ws!==(ws=s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")&&be(Qs,ws),(!g||h&2&&Gs!==(Gs=(s[1].header.includes("logs")?"Unpin Logs from":"Pin Logs to")+" header menu"))&&t(X,"title",Gs),(!g||h&1)&&A(F,"showDescription",s[0].includes("logs"));const Ft={};h&2&&(Ft.icon=s[1].header.includes("backgroundJobs")?"pinFilled":"pin"),qe.$set(Ft),(!g||h&2)&&Us!==(Us=s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")&&be(Vs,Us),(!g||h&2&&Rs!==(Rs=(s[1].header.includes("backgroundJobs")?"Unpin Background Jobs from":"Pin Background Jobs to")+" header menu"))&&t(Y,"title",Rs),(!g||h&1)&&A(Q,"showDescription",s[0].includes("backgroundJobs"));const qs={};h&2&&(qs.icon=s[1].header.includes("constants")?"pinFilled":"pin"),ze.$set(qs),(!g||h&2)&&Cs!==(Cs=s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")&&be(js,Cs),(!g||h&2&&Ks!==(Ks=(s[1].header.includes("constants")?"Unpin Constants from":"Pin Constants to")+" header menu"))&&t(W,"title",Ks),(!g||h&1)&&A(G,"showDescription",s[0].includes("constants"));const Qt={};h&2&&(Qt.icon=s[1].header.includes("liquid")?"pinFilled":"pin"),Ae.$set(Qt),(!g||h&2)&&Ps!==(Ps=s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")&&be(Xs,Ps),(!g||h&2&&Ys!==(Ys=(s[1].header.includes("liquid")?"Unpin Liquid Evaluator from":"Pin Liquid Evaluator to")+" header menu"))&&t(Z,"title",Ys),(!g||h&1)&&A(V,"showDescription",s[0].includes("liquid"));const Ds={};h&2&&(Ds.icon=s[1].header.includes("graphiql")?"pinFilled":"pin"),Be.$set(Ds),(!g||h&2)&&Ts!==(Ts=s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")&&be(Ws,Ts),(!g||h&2&&Zs!==(Zs=(s[1].header.includes("graphiql")?"Unpin GraphiQL from":"Pin GraphiQL to")+" header menu"))&&t(y,"title",Zs),(!g||h&1)&&A(R,"showDescription",s[0].includes("graphiql"));const Gt={};h&2&&(Gt.icon=s[1].header.includes("logsv2")?"pinFilled":"pin"),Fe.$set(Gt),(!g||h&2)&&Is!==(Is=s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")&&be(ys,Is),(!g||h&2&&xs!==(xs=(s[1].header.includes("logsv2")?"Unpin Logs v2 from":"Pin Logs v2 to")+" header menu"))&&t(x,"title",xs);const zs={};h&2&&(zs.icon=s[1].header.includes("network")?"pinFilled":"pin"),Ge.$set(zs),(!g||h&2)&&Ns!==(Ns=s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")&&be(el,Ns),(!g||h&2&&tl!==(tl=(s[1].header.includes("network")?"Unpin Network Logs from":"Pin Network Logs to")+" header menu"))&&t(ee,"title",tl),Lo(B,s,h)},i(r){g||(p(D.$$.fragment,r),p(Ee.$$.fragment,r),p(T.$$.fragment,r),p(We.$$.fragment,r),p(xe.$$.fragment,r),p(Pe.$$.fragment,r),p(st.$$.fragment,r),p(at.$$.fragment,r),p(Ie.$$.fragment,r),p(it.$$.fragment,r),p(dt.$$.fragment,r),p(qe.$$.fragment,r),p(vt.$$.fragment,r),p(_t.$$.fragment,r),p(ze.$$.fragment,r),p(kt.$$.fragment,r),p(wt.$$.fragment,r),p(Ae.$$.fragment,r),p(Tt.$$.fragment,r),p(qt.$$.fragment,r),p(Be.$$.fragment,r),p(Fe.$$.fragment,r),p(At.$$.fragment,r),p(Ge.$$.fragment,r),p(Bt.$$.fragment,r),p(B.block),p(Jt.$$.fragment,r),p(Ot.$$.fragment,r),g=!0)},o(r){m(D.$$.fragment,r),m(Ee.$$.fragment,r),m(T.$$.fragment,r),m(We.$$.fragment,r),m(xe.$$.fragment,r),m(Pe.$$.fragment,r),m(st.$$.fragment,r),m(at.$$.fragment,r),m(Ie.$$.fragment,r),m(it.$$.fragment,r),m(dt.$$.fragment,r),m(qe.$$.fragment,r),m(vt.$$.fragment,r),m(_t.$$.fragment,r),m(ze.$$.fragment,r),m(kt.$$.fragment,r),m(wt.$$.fragment,r),m(Ae.$$.fragment,r),m(Tt.$$.fragment,r),m(qt.$$.fragment,r),m(Be.$$.fragment,r),m(Fe.$$.fragment,r),m(At.$$.fragment,r),m(Ge.$$.fragment,r),m(Bt.$$.fragment,r);for(let h=0;h<3;h+=1){const ge=B.blocks[h];m(ge)}m(Jt.$$.fragment,r),m(Ot.$$.fragment,r),g=!1},d(r){r&&(a(w),a(d),a(sl),a(_e)),$(D),$(Ee),$(T),$(We),$(xe),$(Pe),$(st),$(at),$(Ie),$(it),$(dt),$(qe),$(vt),$(_t),$(ze),$(kt),$(wt),$(Ae),$(Tt),$(qt),$(Be),$(Fe),$(At),$(Ge),$(Bt),B.block.d(),B.token=null,B=null,$(Jt),$(Ot),Zn=!1,mo(qa)}}}function Po(s,u,w){let d;go(s,Ss,T=>w(1,d=T));let f=[];const _=async()=>{d.tables.length||ca(Ss,d.tables=await bo.get(),d)},v=T=>{d.header.indexOf(T)>-1?ca(Ss,d.header=d.header.filter(Ue=>Ue!==T),d):ca(Ss,d.header=[...d.header,T],d),localStorage.header=JSON.stringify(d.header)},C=T=>{f.indexOf(T)>-1?w(0,f=f.filter(Ue=>Ue!==T)):w(0,f=[...f,T])};return[f,d,_,v,C,async()=>await(await fetch("https://registry.npmjs.org/@platformos/pos-cli/latest")).json(),()=>{navigator.clipboard.writeText("npm i -g @platformos/pos-cli@latest").then(()=>{Ss.notification.create("info","
    Update command copied to clipboard Run npm i -g @platformos/pos-cli@latest in the terminal
    ")}).catch(T=>{copying=!1,error=!0,console.error(T)})},()=>C("database"),()=>v("database"),()=>C("users"),()=>v("users"),()=>C("logs"),()=>v("logs"),()=>C("backgroundJobs"),()=>v("backgroundJobs"),()=>C("constants"),()=>v("constants"),()=>C("liquid"),()=>v("liquid"),()=>C("graphiql"),()=>v("graphiql"),()=>v("logsv2"),()=>v("network")]}class So extends ho{constructor(u){super(),vo(this,u,Po,Co,po,{})}}export{So as component}; diff --git a/gui/next/build/_app/version.json b/gui/next/build/_app/version.json index 4b974e5e5..a96bb45ac 100644 --- a/gui/next/build/_app/version.json +++ b/gui/next/build/_app/version.json @@ -1 +1 @@ -{"version":"1750758919196"} \ No newline at end of file +{"version":"1769002270937"} \ No newline at end of file diff --git a/gui/next/build/index.html b/gui/next/build/index.html index ff6ec740e..1631b458c 100644 --- a/gui/next/build/index.html +++ b/gui/next/build/index.html @@ -5,26 +5,26 @@ - - - - - - + + + + + +