diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json new file mode 100644 index 0000000000000000000000000000000000000000..9fc42d39cdc6aeaf9a4d14d4dd1649b2e8ba0094 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json @@ -0,0 +1,106 @@ +{ + "title": "Inline Completer", + "description": "Inline completer settings.", + "jupyter.lab.setting-icon": "completer:inline", + "jupyter.lab.setting-icon-label": "Inline Completer", + "jupyter.lab.transform": true, + "jupyter.lab.shortcuts": [ + { + "command": "inline-completer:next", + "keys": ["Alt ]"], + "selector": ".jp-mod-completer-enabled", + "preventDefault": false + }, + { + "command": "inline-completer:previous", + "keys": ["Alt ["], + "selector": ".jp-mod-completer-enabled", + "preventDefault": false + }, + { + "command": "inline-completer:accept", + "keys": ["Tab"], + "selector": ".jp-mod-inline-completer-active" + }, + { + "command": "inline-completer:accept", + "keys": ["Alt End"], + "selector": ".jp-mod-inline-completer-active" + }, + { + "command": "inline-completer:invoke", + "keys": ["Alt \\"], + "selector": ".jp-mod-completer-enabled", + "preventDefault": false + } + ], + "properties": { + "providers": { + "title": "Inline completion providers", + "type": "object", + "default": {} + }, + "showWidget": { + "title": "Show widget", + "description": "When to show the inline completer widget.", + "type": "string", + "oneOf": [ + { "const": "always", "title": "Always" }, + { "const": "onHover", "title": "On hover" }, + { "const": "never", "title": "Never" } + ], + "default": "onHover" + }, + "showShortcuts": { + "title": "Show shortcuts in the widget", + "description": "Whether to show shortcuts in the inline completer widget.", + "type": "boolean", + "default": true + }, + "suppressIfTabCompleterActive": { + "title": "Suppress when the tab completer is active", + "description": "Whether to suppress the inline completer when the tab completer suggestions are shown.", + "type": "boolean", + "default": true + }, + "streamingAnimation": { + "title": "Streaming animation", + "description": "Transition effect used when streaming tokens from model.", + "type": "string", + "oneOf": [ + { "const": "none", "title": "None" }, + { "const": "uncover", "title": "Uncover" } + ], + "default": "uncover" + }, + "minLines": { + "title": "Reserve lines for inline completion", + "description": "Number of lines to reserve for the ghost text with inline completion suggestion.", + "type": "number", + "default": 0, + "minimum": 0 + }, + "maxLines": { + "title": "Limit inline completion lines", + "description": "Number of lines of inline completion to show before collapsing. Setting zero disables the limit.", + "type": "number", + "default": 0, + "minimum": 0 + }, + "reserveSpaceForLongest": { + "title": "Reserve space for the longest candidate", + "description": "When multiple completions are returned, reserve blank space for up to as many lines as in the longest completion candidate to avoid resizing editor when cycling between the suggestions.", + "type": "boolean", + "default": false + }, + "editorResizeDelay": { + "title": "Editor resize delay", + "description": "When an inline completion gets cancelled the editor may change its size rapidly. When typing in the editor, the completions may get dismissed frequently causing a noticeable jitter of the editor height. Adding a delay prevents the jitter on typing. The value should be in milliseconds.", + "type": "number", + "default": 1000, + "minimum": 0 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json new file mode 100644 index 0000000000000000000000000000000000000000..c23e30f70e074c606bbb22c8efe1c029f201a4bb --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json @@ -0,0 +1,50 @@ +{ + "title": "Code Completion", + "description": "Code Completion settings.", + "jupyter.lab.setting-icon": "completer:widget", + "jupyter.lab.setting-icon-label": "Code Completer", + "jupyter.lab.transform": true, + "properties": { + "availableProviders": { + "title": "Completion providers rank setting.", + "description": "Providers with higher rank will be shown before the ones with lower rank, providers with negative rank are disabled.", + "type": "object", + "patternProperties": { + "^.*$": { + "type": "integer" + } + }, + "additionalProperties": false, + "default": { + "CompletionProvider:context": 500, + "CompletionProvider:kernel": 550 + } + }, + "providerTimeout": { + "title": "Default timeout for a provider.", + "description": "If a provider can not return the response for a completer request before timeout, the result of this provider will be ignored. Value is in millisecond", + "type": "number", + "default": 1000 + }, + "showDocumentationPanel": { + "title": "Show the documentation panel.", + "description": "Documentation panel setting.", + "type": "boolean", + "default": false + }, + "autoCompletion": { + "title": "Enable autocompletion.", + "description": "Autocompletion setting.", + "type": "boolean", + "default": false + }, + "suppressIfInlineCompleterActive": { + "title": "Suppress when the inline completer is active", + "description": "Whether to suppress the tab completer when inline completions are presented.", + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..57ecaa7de666bc3338b738a66fd036b744aef225 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/completer-extension", + "version": "4.4.2", + "description": "JupyterLab - Completer Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/codeeditor": "^4.4.2", + "@jupyterlab/completer": "^4.4.2", + "@jupyterlab/settingregistry": "^4.4.2", + "@jupyterlab/translation": "^4.4.2", + "@jupyterlab/ui-components": "^4.4.2", + "@lumino/commands": "^2.3.2", + "@lumino/coreutils": "^2.2.1", + "@rjsf/utils": "^5.13.4", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json new file mode 100644 index 0000000000000000000000000000000000000000..4e4620e99f34cea0745a158a66783d560ef56a19 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json @@ -0,0 +1,32 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 100 + }, + { + "command": "hub:control-panel", + "rank": 100 + }, + { + "command": "hub:logout", + "rank": 100 + }, + { + "type": "separator", + "rank": 100 + } + ] + } + ] + }, + "title": "JupyterHub", + "description": "JupyterHub settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..34cf9512421e9415b7f208761a314783a70cc1af --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/hub-extension", + "version": "4.4.2", + "description": "JupyterLab integration for JupyterHub", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc", + "build:test": "tsc --build tsconfig.test.json", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "test": "jest", + "test:cov": "jest --collect-coverage", + "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand", + "test:debug:watch": "node --inspect-brk ../../node_modules/.bin/jest --runInBand --watch", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/apputils": "^4.5.2", + "@jupyterlab/coreutils": "^6.4.2", + "@jupyterlab/services": "^7.4.2", + "@jupyterlab/translation": "^4.4.2" + }, + "devDependencies": { + "@types/jest": "^29.2.0", + "jest": "^29.2.0", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..381408f8973d520c16cd79c8e02c39d0ddeefc6b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/launcher-extension", + "version": "4.4.2", + "description": "JupyterLab - Launcher Page Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/apputils": "^4.5.2", + "@jupyterlab/filebrowser": "^4.4.2", + "@jupyterlab/launcher": "^4.4.2", + "@jupyterlab/translation": "^4.4.2", + "@jupyterlab/ui-components": "^4.4.2", + "@lumino/algorithm": "^2.0.3", + "@lumino/coreutils": "^2.2.1", + "@lumino/widgets": "^2.7.1" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json new file mode 100644 index 0000000000000000000000000000000000000000..748cdb3bda4b44319cabe00a7bf07c3ac6eb6689 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json @@ -0,0 +1,36 @@ +{ + "title": "Launcher", + "description": "Launcher settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "launcher:create", + "rank": 0.99 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "launcher:create", + "keys": ["Accel Shift L"], + "selector": "body" + } + ], + "jupyter.lab.toolbars": { + "FileBrowser": [ + { + "name": "new-launcher", + "command": "launcher:create", + "rank": 1 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..98e4501a98f760ef0604cd6aa3fa86e708130bb1 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/mathjax-extension", + "version": "4.4.2", + "description": "A JupyterLab extension providing MathJax Typesetting", + "keywords": [ + "jupyter", + "jupyterlab", + "mathjax" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": { + "name": "Project Jupyter", + "email": "jupyter@googlegroups.com" + }, + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "eslint": "eslint . --ext .ts,.tsx --fix", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/rendermime": "^4.4.2", + "@lumino/coreutils": "^2.2.1", + "mathjax-full": "^3.2.2" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json new file mode 100644 index 0000000000000000000000000000000000000000..e75d46883b4102d28678827ba1778351da90d305 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json @@ -0,0 +1,19 @@ +{ + "title": "Console Tooltips", + "description": "Console tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:dismiss", + "keys": ["Escape"], + "selector": "body.jp-mod-tooltip .jp-CodeConsole-promptCell" + }, + { + "command": "tooltip:launch-console", + "keys": ["Shift Tab"], + "selector": ".jp-CodeConsole-promptCell .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json new file mode 100644 index 0000000000000000000000000000000000000000..137a137c3e4a4b96a973a6ba83b39d3448e99b08 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json @@ -0,0 +1,19 @@ +{ + "title": "Notebook Tooltips", + "description": "Notebook tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:dismiss", + "keys": ["Escape"], + "selector": "body.jp-mod-tooltip .jp-Notebook" + }, + { + "command": "tooltip:launch-notebook", + "keys": ["Shift Tab"], + "selector": ".jp-Notebook.jp-mod-editMode .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace):not(.jp-mod-completer-active)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..140e3bdf14d0c426799e235e95d768571f99aa42 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig @@ -0,0 +1,66 @@ +{ + "name": "@jupyterlab/tooltip-extension", + "version": "4.4.2", + "description": "JupyterLab - Tooltip Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/codeeditor": "^4.4.2", + "@jupyterlab/console": "^4.4.2", + "@jupyterlab/coreutils": "^6.4.2", + "@jupyterlab/fileeditor": "^4.4.2", + "@jupyterlab/notebook": "^4.4.2", + "@jupyterlab/rendermime": "^4.4.2", + "@jupyterlab/services": "^7.4.2", + "@jupyterlab/tooltip": "^4.4.2", + "@jupyterlab/translation": "^4.4.2", + "@lumino/algorithm": "^2.0.3", + "@lumino/coreutils": "^2.2.1", + "@lumino/widgets": "^2.7.1" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..505d7c67707a90fc9259a015f0d8f4c534503ac2 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig @@ -0,0 +1,58 @@ +{ + "name": "@jupyterlab/translation-extension", + "version": "4.4.2", + "description": "JupyterLab - Translation services", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/**/*.{json,}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib tsconfig.tsbuildinfo", + "watch": "tsc -w" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/apputils": "^4.5.2", + "@jupyterlab/mainmenu": "^4.4.2", + "@jupyterlab/settingregistry": "^4.4.2", + "@jupyterlab/translation": "^4.4.2" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json new file mode 100644 index 0000000000000000000000000000000000000000..15d3f582f4cbbbf1adccaf383f7f40f61a733705 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json @@ -0,0 +1,52 @@ +{ + "jupyter.lab.setting-icon": "ui-components:settings", + "jupyter.lab.setting-icon-label": "Language", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "type": "submenu", + "rank": 1, + "submenu": { + "id": "jp-mainmenu-settings-language", + "label": "Language" + } + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ] + }, + "title": "Language", + "description": "Language settings.", + "type": "object", + "properties": { + "locale": { + "type": "string", + "title": "Language locale", + "description": "Set the interface display language. Examples: 'es_CO', 'fr_FR'. Set 'default' to use the server default locale. Requires corresponding language pack to be installed.", + "default": "default" + }, + "stringsPrefix": { + "type": "string", + "title": "Localized strings prefix", + "description": "Add a prefix to localized strings.", + "default": "!!" + }, + "displayStringsPrefix": { + "type": "boolean", + "title": "Display localized strings prefix", + "description": "Display the `stringsPrefix` on localized strings.", + "default": false + } + } +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json new file mode 100644 index 0000000000000000000000000000000000000000..133787723e41addfe5356e69ba2f282166af0894 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json @@ -0,0 +1,70 @@ +{ + "title": "Workspaces Menu", + "description": "Workspaces Menu", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "rank": 10, + "submenu": { + "id": "jp-mainmenu-file-workspaces", + "label": "Workspaces", + "items": [ + { + "command": "workspace-ui:open", + "rank": 0 + }, + { + "command": "workspace-ui:create-new", + "rank": 1 + }, + { + "command": "workspace-ui:clone", + "rank": 2 + }, + { + "command": "workspace-ui:rename", + "rank": 3 + }, + { + "command": "workspace-ui:save", + "rank": 4 + }, + { + "command": "workspace-ui:save-as", + "rank": 5 + }, + { + "command": "workspace-ui:import", + "rank": 6 + }, + { + "command": "workspace-ui:export", + "rank": 7 + }, + { + "type": "separator", + "rank": 8 + }, + { + "command": "workspace-ui:reset", + "rank": 9 + }, + { + "command": "workspace-ui:delete", + "rank": 10 + } + ] + } + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig new file mode 100644 index 0000000000000000000000000000000000000000..1e018519183999c2c8f22a39eb00af312da531a4 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/workspaces-extension", + "version": "4.4.2", + "description": "JupyterLab Extension providing UI for workspace management", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "src/**/*.{ts,tsx}", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:test": "tsc --build tsconfig.test.json", + "clean": "rimraf lib tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.4.2", + "@jupyterlab/apputils": "^4.5.2", + "@jupyterlab/coreutils": "^6.4.2", + "@jupyterlab/filebrowser": "^4.4.2", + "@jupyterlab/running": "^4.4.2", + "@jupyterlab/services": "^7.4.2", + "@jupyterlab/settingregistry": "^4.4.2", + "@jupyterlab/statedb": "^4.4.2", + "@jupyterlab/translation": "^4.4.2", + "@jupyterlab/ui-components": "^4.4.2", + "@jupyterlab/workspaces": "^4.4.2", + "react": "^18.2.0" + }, + "devDependencies": { + "@types/jest": "^29.2.0", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1096.dd4c563e0483cbbeb9c9.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1096.dd4c563e0483cbbeb9c9.js new file mode 100644 index 0000000000000000000000000000000000000000..d3d3b3e40346ad30dbeab73be34f9ab667274a1d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1096.dd4c563e0483cbbeb9c9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1096],{80815:(e,f,o)=>{o.d(f,{A:()=>H});var t=o(31601);var n=o.n(t);var a=o(76314);var r=o.n(a);var c=o(4417);var i=o.n(c);var b=new URL(o(16811),o.b);var s=new URL(o(92459),o.b);var l=new URL(o(14451),o.b);var d=new URL(o(84189),o.b);var m=new URL(o(17868),o.b);var p=new URL(o(45425),o.b);var h=new URL(o(73321),o.b);var u=new URL(o(17129),o.b);var g=new URL(o(2539),o.b);var w=new URL(o(27740),o.b);var y=new URL(o(3537),o.b);var v=new URL(o(63369),o.b);var x=new URL(o(21833),o.b);var F=new URL(o(60651),o.b);var k=new URL(o(37800),o.b);var _=r()(n());var A=i()(b);var T=i()(b,{hash:"?#iefix"});var q=i()(s);var I=i()(l);var z=i()(d);var B=i()(m,{hash:"#fontawesome"});var O=i()(p);var R=i()(p,{hash:"?#iefix"});var j=i()(h);var L=i()(u);var E=i()(g);var S=i()(w,{hash:"#fontawesome"});var C=i()(y);var N=i()(y,{hash:"?#iefix"});var U=i()(v);var D=i()(x);var M=i()(F);var X=i()(k,{hash:"#fontawesome"});_.push([e.id,'/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bacteria:before{content:"\\e059"}.fa-bacterium:before{content:"\\e05a"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\e05b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudflare:before{content:"\\e07d"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\e052"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-deezer:before{content:"\\e077"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edge-legacy:before{content:"\\e078"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\e005"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\e007"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-pay:before{content:"\\e079"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guilded:before{content:"\\e07e"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\e05c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\e05d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\e05e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\e05f"}.fa-handshake-slash:before{content:"\\e060"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\e061"}.fa-head-side-cough-slash:before{content:"\\e062"}.fa-head-side-mask:before{content:"\\e063"}.fa-head-side-virus:before{content:"\\e064"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hive:before{content:"\\e07f"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\e065"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\e013"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-innosoft:before{content:"\\e080"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\e055"}.fa-instalod:before{content:"\\e081"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\e066"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\e067"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\e01a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\e056"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-octopus-deploy:before{content:"\\e082"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\e068"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-perbyte:before{content:"\\e083"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\e01e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\e069"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\e06a"}.fa-pump-soap:before{content:"\\e06b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-rust:before{content:"\\e07a"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\e06c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\e057"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sink:before{content:"\\e06d"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\e06e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\e06f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\e070"}.fa-store-slash:before{content:"\\e071"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-tiktok:before{content:"\\e07b"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\e072"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\e041"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-uncharted:before{content:"\\e084"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\e049"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-unsplash:before{content:"\\e07c"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-users-slash:before{content:"\\e073"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-vest:before{content:"\\e085"}.fa-vest-patches:before{content:"\\e086"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\e074"}.fa-virus-slash:before{content:"\\e075"}.fa-viruses:before{content:"\\e076"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-watchman-monitoring:before{content:"\\e087"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wodu:before{content:"\\e088"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url('+A+");src:url("+T+') format("embedded-opentype"),url('+q+') format("woff2"),url('+I+') format("woff"),url('+z+') format("truetype"),url('+B+') format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url('+O+");src:url("+R+') format("embedded-opentype"),url('+j+') format("woff2"),url('+L+') format("woff"),url('+E+') format("truetype"),url('+S+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url('+C+");src:url("+N+') format("embedded-opentype"),url('+U+') format("woff2"),url('+D+') format("woff"),url('+M+') format("truetype"),url('+X+') format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}',""]);const H=_},14115:(e,f,o)=>{o.d(f,{A:()=>i});var t=o(31601);var n=o.n(t);var a=o(76314);var r=o.n(a);var c=r()(n());c.push([e.id,'/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n.fa.fa-glass:before{content:"\\f000"}.fa.fa-meetup{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-star-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-o:before{content:"\\f005"}.fa.fa-close:before,.fa.fa-remove:before{content:"\\f00d"}.fa.fa-gear:before{content:"\\f013"}.fa.fa-trash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-trash-o:before{content:"\\f2ed"}.fa.fa-file-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-o:before{content:"\\f15b"}.fa.fa-clock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-clock-o:before{content:"\\f017"}.fa.fa-arrow-circle-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-down:before{content:"\\f358"}.fa.fa-arrow-circle-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-up:before{content:"\\f35b"}.fa.fa-play-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-play-circle-o:before{content:"\\f144"}.fa.fa-repeat:before,.fa.fa-rotate-right:before{content:"\\f01e"}.fa.fa-refresh:before{content:"\\f021"}.fa.fa-list-alt{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dedent:before{content:"\\f03b"}.fa.fa-video-camera:before{content:"\\f03d"}.fa.fa-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-picture-o:before{content:"\\f03e"}.fa.fa-photo{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-photo:before{content:"\\f03e"}.fa.fa-image{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-image:before{content:"\\f03e"}.fa.fa-pencil:before{content:"\\f303"}.fa.fa-map-marker:before{content:"\\f3c5"}.fa.fa-pencil-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pencil-square-o:before{content:"\\f044"}.fa.fa-share-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-share-square-o:before{content:"\\f14d"}.fa.fa-check-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-square-o:before{content:"\\f14a"}.fa.fa-arrows:before{content:"\\f0b2"}.fa.fa-times-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-circle-o:before{content:"\\f057"}.fa.fa-check-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-circle-o:before{content:"\\f058"}.fa.fa-mail-forward:before{content:"\\f064"}.fa.fa-expand:before{content:"\\f424"}.fa.fa-compress:before{content:"\\f422"}.fa.fa-eye,.fa.fa-eye-slash{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-warning:before{content:"\\f071"}.fa.fa-calendar:before{content:"\\f073"}.fa.fa-arrows-v:before{content:"\\f338"}.fa.fa-arrows-h:before{content:"\\f337"}.fa.fa-bar-chart{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart:before{content:"\\f080"}.fa.fa-bar-chart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart-o:before{content:"\\f080"}.fa.fa-facebook-square,.fa.fa-twitter-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gears:before{content:"\\f085"}.fa.fa-thumbs-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-up:before{content:"\\f164"}.fa.fa-thumbs-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-down:before{content:"\\f165"}.fa.fa-heart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-heart-o:before{content:"\\f004"}.fa.fa-sign-out:before{content:"\\f2f5"}.fa.fa-linkedin-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin-square:before{content:"\\f08c"}.fa.fa-thumb-tack:before{content:"\\f08d"}.fa.fa-external-link:before{content:"\\f35d"}.fa.fa-sign-in:before{content:"\\f2f6"}.fa.fa-github-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-lemon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lemon-o:before{content:"\\f094"}.fa.fa-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-square-o:before{content:"\\f0c8"}.fa.fa-bookmark-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bookmark-o:before{content:"\\f02e"}.fa.fa-facebook,.fa.fa-twitter{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook:before{content:"\\f39e"}.fa.fa-facebook-f{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-f:before{content:"\\f39e"}.fa.fa-github{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-feed:before{content:"\\f09e"}.fa.fa-hdd-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hdd-o:before{content:"\\f0a0"}.fa.fa-hand-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-right:before{content:"\\f0a4"}.fa.fa-hand-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-left:before{content:"\\f0a5"}.fa.fa-hand-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-up:before{content:"\\f0a6"}.fa.fa-hand-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-down:before{content:"\\f0a7"}.fa.fa-arrows-alt:before{content:"\\f31e"}.fa.fa-group:before{content:"\\f0c0"}.fa.fa-chain:before{content:"\\f0c1"}.fa.fa-scissors:before{content:"\\f0c4"}.fa.fa-files-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-files-o:before{content:"\\f0c5"}.fa.fa-floppy-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-floppy-o:before{content:"\\f0c7"}.fa.fa-navicon:before,.fa.fa-reorder:before{content:"\\f0c9"}.fa.fa-google-plus,.fa.fa-google-plus-square,.fa.fa-pinterest,.fa.fa-pinterest-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus:before{content:"\\f0d5"}.fa.fa-money{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-money:before{content:"\\f3d1"}.fa.fa-unsorted:before{content:"\\f0dc"}.fa.fa-sort-desc:before{content:"\\f0dd"}.fa.fa-sort-asc:before{content:"\\f0de"}.fa.fa-linkedin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin:before{content:"\\f0e1"}.fa.fa-rotate-left:before{content:"\\f0e2"}.fa.fa-legal:before{content:"\\f0e3"}.fa.fa-dashboard:before,.fa.fa-tachometer:before{content:"\\f3fd"}.fa.fa-comment-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comment-o:before{content:"\\f075"}.fa.fa-comments-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comments-o:before{content:"\\f086"}.fa.fa-flash:before{content:"\\f0e7"}.fa.fa-clipboard,.fa.fa-paste{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paste:before{content:"\\f328"}.fa.fa-lightbulb-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lightbulb-o:before{content:"\\f0eb"}.fa.fa-exchange:before{content:"\\f362"}.fa.fa-cloud-download:before{content:"\\f381"}.fa.fa-cloud-upload:before{content:"\\f382"}.fa.fa-bell-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-o:before{content:"\\f0f3"}.fa.fa-cutlery:before{content:"\\f2e7"}.fa.fa-file-text-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-text-o:before{content:"\\f15c"}.fa.fa-building-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-building-o:before{content:"\\f1ad"}.fa.fa-hospital-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hospital-o:before{content:"\\f0f8"}.fa.fa-tablet:before{content:"\\f3fa"}.fa.fa-mobile-phone:before,.fa.fa-mobile:before{content:"\\f3cd"}.fa.fa-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-o:before{content:"\\f111"}.fa.fa-mail-reply:before{content:"\\f3e5"}.fa.fa-github-alt{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-folder-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-o:before{content:"\\f07b"}.fa.fa-folder-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-open-o:before{content:"\\f07c"}.fa.fa-smile-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-smile-o:before{content:"\\f118"}.fa.fa-frown-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-frown-o:before{content:"\\f119"}.fa.fa-meh-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-meh-o:before{content:"\\f11a"}.fa.fa-keyboard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-keyboard-o:before{content:"\\f11c"}.fa.fa-flag-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-flag-o:before{content:"\\f024"}.fa.fa-mail-reply-all:before{content:"\\f122"}.fa.fa-star-half-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-o:before{content:"\\f089"}.fa.fa-star-half-empty{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-empty:before{content:"\\f089"}.fa.fa-star-half-full{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-full:before{content:"\\f089"}.fa.fa-code-fork:before{content:"\\f126"}.fa.fa-chain-broken:before{content:"\\f127"}.fa.fa-shield:before{content:"\\f3ed"}.fa.fa-calendar-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-o:before{content:"\\f133"}.fa.fa-css3,.fa.fa-html5,.fa.fa-maxcdn{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ticket:before{content:"\\f3ff"}.fa.fa-minus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-minus-square-o:before{content:"\\f146"}.fa.fa-level-up:before{content:"\\f3bf"}.fa.fa-level-down:before{content:"\\f3be"}.fa.fa-pencil-square:before{content:"\\f14b"}.fa.fa-external-link-square:before{content:"\\f360"}.fa.fa-compass{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down:before{content:"\\f150"}.fa.fa-toggle-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-down:before{content:"\\f150"}.fa.fa-caret-square-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-up:before{content:"\\f151"}.fa.fa-toggle-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-up:before{content:"\\f151"}.fa.fa-caret-square-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-right:before{content:"\\f152"}.fa.fa-toggle-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-right:before{content:"\\f152"}.fa.fa-eur:before,.fa.fa-euro:before{content:"\\f153"}.fa.fa-gbp:before{content:"\\f154"}.fa.fa-dollar:before,.fa.fa-usd:before{content:"\\f155"}.fa.fa-inr:before,.fa.fa-rupee:before{content:"\\f156"}.fa.fa-cny:before,.fa.fa-jpy:before,.fa.fa-rmb:before,.fa.fa-yen:before{content:"\\f157"}.fa.fa-rouble:before,.fa.fa-rub:before,.fa.fa-ruble:before{content:"\\f158"}.fa.fa-krw:before,.fa.fa-won:before{content:"\\f159"}.fa.fa-bitcoin,.fa.fa-btc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitcoin:before{content:"\\f15a"}.fa.fa-file-text:before{content:"\\f15c"}.fa.fa-sort-alpha-asc:before{content:"\\f15d"}.fa.fa-sort-alpha-desc:before{content:"\\f881"}.fa.fa-sort-amount-asc:before{content:"\\f160"}.fa.fa-sort-amount-desc:before{content:"\\f884"}.fa.fa-sort-numeric-asc:before{content:"\\f162"}.fa.fa-sort-numeric-desc:before{content:"\\f886"}.fa.fa-xing,.fa.fa-xing-square,.fa.fa-youtube,.fa.fa-youtube-play,.fa.fa-youtube-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-youtube-play:before{content:"\\f167"}.fa.fa-adn,.fa.fa-bitbucket,.fa.fa-bitbucket-square,.fa.fa-dropbox,.fa.fa-flickr,.fa.fa-instagram,.fa.fa-stack-overflow{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitbucket-square:before{content:"\\f171"}.fa.fa-tumblr,.fa.fa-tumblr-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-long-arrow-down:before{content:"\\f309"}.fa.fa-long-arrow-up:before{content:"\\f30c"}.fa.fa-long-arrow-left:before{content:"\\f30a"}.fa.fa-long-arrow-right:before{content:"\\f30b"}.fa.fa-android,.fa.fa-apple,.fa.fa-dribbble,.fa.fa-foursquare,.fa.fa-gittip,.fa.fa-gratipay,.fa.fa-linux,.fa.fa-skype,.fa.fa-trello,.fa.fa-windows{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gittip:before{content:"\\f184"}.fa.fa-sun-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sun-o:before{content:"\\f185"}.fa.fa-moon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-moon-o:before{content:"\\f186"}.fa.fa-pagelines,.fa.fa-renren,.fa.fa-stack-exchange,.fa.fa-vk,.fa.fa-weibo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-arrow-circle-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-right:before{content:"\\f35a"}.fa.fa-arrow-circle-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-left:before{content:"\\f359"}.fa.fa-caret-square-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-left:before{content:"\\f191"}.fa.fa-toggle-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-left:before{content:"\\f191"}.fa.fa-dot-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dot-circle-o:before{content:"\\f192"}.fa.fa-vimeo-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-try:before,.fa.fa-turkish-lira:before{content:"\\f195"}.fa.fa-plus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-plus-square-o:before{content:"\\f0fe"}.fa.fa-openid,.fa.fa-slack,.fa.fa-wordpress{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bank:before,.fa.fa-institution:before{content:"\\f19c"}.fa.fa-mortar-board:before{content:"\\f19d"}.fa.fa-delicious,.fa.fa-digg,.fa.fa-drupal,.fa.fa-google,.fa.fa-joomla,.fa.fa-pied-piper-alt,.fa.fa-pied-piper-pp,.fa.fa-reddit,.fa.fa-reddit-square,.fa.fa-stumbleupon,.fa.fa-stumbleupon-circle,.fa.fa-yahoo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-spoon:before{content:"\\f2e5"}.fa.fa-behance,.fa.fa-behance-square,.fa.fa-steam,.fa.fa-steam-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-automobile:before{content:"\\f1b9"}.fa.fa-envelope-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-o:before{content:"\\f0e0"}.fa.fa-deviantart,.fa.fa-soundcloud,.fa.fa-spotify{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-file-pdf-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-pdf-o:before{content:"\\f1c1"}.fa.fa-file-word-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-word-o:before{content:"\\f1c2"}.fa.fa-file-excel-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-excel-o:before{content:"\\f1c3"}.fa.fa-file-powerpoint-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-powerpoint-o:before{content:"\\f1c4"}.fa.fa-file-image-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-image-o:before{content:"\\f1c5"}.fa.fa-file-photo-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-photo-o:before{content:"\\f1c5"}.fa.fa-file-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-picture-o:before{content:"\\f1c5"}.fa.fa-file-archive-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-archive-o:before{content:"\\f1c6"}.fa.fa-file-zip-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-zip-o:before{content:"\\f1c6"}.fa.fa-file-audio-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-audio-o:before{content:"\\f1c7"}.fa.fa-file-sound-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-sound-o:before{content:"\\f1c7"}.fa.fa-file-video-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-video-o:before{content:"\\f1c8"}.fa.fa-file-movie-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-movie-o:before{content:"\\f1c8"}.fa.fa-file-code-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-code-o:before{content:"\\f1c9"}.fa.fa-codepen,.fa.fa-jsfiddle,.fa.fa-vine{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-life-bouy,.fa.fa-life-ring{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-bouy:before{content:"\\f1cd"}.fa.fa-life-buoy{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-buoy:before{content:"\\f1cd"}.fa.fa-life-saver{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-saver:before{content:"\\f1cd"}.fa.fa-support{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-support:before{content:"\\f1cd"}.fa.fa-circle-o-notch:before{content:"\\f1ce"}.fa.fa-ra,.fa.fa-rebel{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ra:before{content:"\\f1d0"}.fa.fa-resistance{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-resistance:before{content:"\\f1d0"}.fa.fa-empire,.fa.fa-ge{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ge:before{content:"\\f1d1"}.fa.fa-git,.fa.fa-git-square,.fa.fa-hacker-news,.fa.fa-y-combinator-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-y-combinator-square:before{content:"\\f1d4"}.fa.fa-yc-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc-square:before{content:"\\f1d4"}.fa.fa-qq,.fa.fa-tencent-weibo,.fa.fa-wechat,.fa.fa-weixin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wechat:before{content:"\\f1d7"}.fa.fa-send:before{content:"\\f1d8"}.fa.fa-paper-plane-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paper-plane-o:before{content:"\\f1d8"}.fa.fa-send-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-send-o:before{content:"\\f1d8"}.fa.fa-circle-thin{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-thin:before{content:"\\f111"}.fa.fa-header:before{content:"\\f1dc"}.fa.fa-sliders:before{content:"\\f1de"}.fa.fa-futbol-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-futbol-o:before{content:"\\f1e3"}.fa.fa-soccer-ball-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-soccer-ball-o:before{content:"\\f1e3"}.fa.fa-slideshare,.fa.fa-twitch,.fa.fa-yelp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-newspaper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-newspaper-o:before{content:"\\f1ea"}.fa.fa-cc-amex,.fa.fa-cc-discover,.fa.fa-cc-mastercard,.fa.fa-cc-paypal,.fa.fa-cc-stripe,.fa.fa-cc-visa,.fa.fa-google-wallet,.fa.fa-paypal{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bell-slash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-slash-o:before{content:"\\f1f6"}.fa.fa-trash:before{content:"\\f2ed"}.fa.fa-copyright{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-eyedropper:before{content:"\\f1fb"}.fa.fa-area-chart:before{content:"\\f1fe"}.fa.fa-pie-chart:before{content:"\\f200"}.fa.fa-line-chart:before{content:"\\f201"}.fa.fa-angellist,.fa.fa-ioxhost,.fa.fa-lastfm,.fa.fa-lastfm-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-cc{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-cc:before{content:"\\f20a"}.fa.fa-ils:before,.fa.fa-shekel:before,.fa.fa-sheqel:before{content:"\\f20b"}.fa.fa-meanpath{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-meanpath:before{content:"\\f2b4"}.fa.fa-buysellads,.fa.fa-connectdevelop,.fa.fa-dashcube,.fa.fa-forumbee,.fa.fa-leanpub,.fa.fa-sellsy,.fa.fa-shirtsinbulk,.fa.fa-simplybuilt,.fa.fa-skyatlas{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-diamond{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-diamond:before{content:"\\f3a5"}.fa.fa-intersex:before{content:"\\f224"}.fa.fa-facebook-official{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-official:before{content:"\\f09a"}.fa.fa-pinterest-p,.fa.fa-whatsapp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-hotel:before{content:"\\f236"}.fa.fa-medium,.fa.fa-viacoin,.fa.fa-y-combinator,.fa.fa-yc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc:before{content:"\\f23b"}.fa.fa-expeditedssl,.fa.fa-opencart,.fa.fa-optin-monster{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-battery-4:before,.fa.fa-battery:before{content:"\\f240"}.fa.fa-battery-3:before{content:"\\f241"}.fa.fa-battery-2:before{content:"\\f242"}.fa.fa-battery-1:before{content:"\\f243"}.fa.fa-battery-0:before{content:"\\f244"}.fa.fa-object-group,.fa.fa-object-ungroup,.fa.fa-sticky-note-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sticky-note-o:before{content:"\\f249"}.fa.fa-cc-diners-club,.fa.fa-cc-jcb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-clone,.fa.fa-hourglass-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hourglass-o:before{content:"\\f254"}.fa.fa-hourglass-1:before{content:"\\f251"}.fa.fa-hourglass-2:before{content:"\\f252"}.fa.fa-hourglass-3:before{content:"\\f253"}.fa.fa-hand-rock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-rock-o:before{content:"\\f255"}.fa.fa-hand-grab-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-grab-o:before{content:"\\f255"}.fa.fa-hand-paper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-paper-o:before{content:"\\f256"}.fa.fa-hand-stop-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-stop-o:before{content:"\\f256"}.fa.fa-hand-scissors-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-scissors-o:before{content:"\\f257"}.fa.fa-hand-lizard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-lizard-o:before{content:"\\f258"}.fa.fa-hand-spock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-spock-o:before{content:"\\f259"}.fa.fa-hand-pointer-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-pointer-o:before{content:"\\f25a"}.fa.fa-hand-peace-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-peace-o:before{content:"\\f25b"}.fa.fa-registered{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-chrome,.fa.fa-creative-commons,.fa.fa-firefox,.fa.fa-get-pocket,.fa.fa-gg,.fa.fa-gg-circle,.fa.fa-internet-explorer,.fa.fa-odnoklassniki,.fa.fa-odnoklassniki-square,.fa.fa-opera,.fa.fa-safari,.fa.fa-tripadvisor,.fa.fa-wikipedia-w{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-television:before{content:"\\f26c"}.fa.fa-500px,.fa.fa-amazon,.fa.fa-contao{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-calendar-plus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-plus-o:before{content:"\\f271"}.fa.fa-calendar-minus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-minus-o:before{content:"\\f272"}.fa.fa-calendar-times-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-times-o:before{content:"\\f273"}.fa.fa-calendar-check-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-check-o:before{content:"\\f274"}.fa.fa-map-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-map-o:before{content:"\\f279"}.fa.fa-commenting:before{content:"\\f4ad"}.fa.fa-commenting-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-commenting-o:before{content:"\\f4ad"}.fa.fa-houzz,.fa.fa-vimeo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-vimeo:before{content:"\\f27d"}.fa.fa-black-tie,.fa.fa-edge,.fa.fa-fonticons,.fa.fa-reddit-alien{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card-alt:before{content:"\\f09d"}.fa.fa-codiepie,.fa.fa-fort-awesome,.fa.fa-mixcloud,.fa.fa-modx,.fa.fa-product-hunt,.fa.fa-scribd,.fa.fa-usb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-pause-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pause-circle-o:before{content:"\\f28b"}.fa.fa-stop-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-stop-circle-o:before{content:"\\f28d"}.fa.fa-bluetooth,.fa.fa-bluetooth-b,.fa.fa-envira,.fa.fa-gitlab,.fa.fa-wheelchair-alt,.fa.fa-wpbeginner,.fa.fa-wpforms{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wheelchair-alt:before{content:"\\f368"}.fa.fa-question-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-question-circle-o:before{content:"\\f059"}.fa.fa-volume-control-phone:before{content:"\\f2a0"}.fa.fa-asl-interpreting:before{content:"\\f2a3"}.fa.fa-deafness:before,.fa.fa-hard-of-hearing:before{content:"\\f2a4"}.fa.fa-glide,.fa.fa-glide-g{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-signing:before{content:"\\f2a7"}.fa.fa-first-order,.fa.fa-google-plus-official,.fa.fa-pied-piper,.fa.fa-snapchat,.fa.fa-snapchat-ghost,.fa.fa-snapchat-square,.fa.fa-themeisle,.fa.fa-viadeo,.fa.fa-viadeo-square,.fa.fa-yoast{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-official:before{content:"\\f2b3"}.fa.fa-google-plus-circle{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-circle:before{content:"\\f2b3"}.fa.fa-fa,.fa.fa-font-awesome{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-fa:before{content:"\\f2b4"}.fa.fa-handshake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-handshake-o:before{content:"\\f2b5"}.fa.fa-envelope-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-open-o:before{content:"\\f2b6"}.fa.fa-linode{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-address-book-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-book-o:before{content:"\\f2b9"}.fa.fa-vcard:before{content:"\\f2bb"}.fa.fa-address-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-card-o:before{content:"\\f2bb"}.fa.fa-vcard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-vcard-o:before{content:"\\f2bb"}.fa.fa-user-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-circle-o:before{content:"\\f2bd"}.fa.fa-user-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-o:before{content:"\\f007"}.fa.fa-id-badge{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license:before{content:"\\f2c2"}.fa.fa-id-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-id-card-o:before{content:"\\f2c2"}.fa.fa-drivers-license-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license-o:before{content:"\\f2c2"}.fa.fa-free-code-camp,.fa.fa-quora,.fa.fa-telegram{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-thermometer-4:before,.fa.fa-thermometer:before{content:"\\f2c7"}.fa.fa-thermometer-3:before{content:"\\f2c8"}.fa.fa-thermometer-2:before{content:"\\f2c9"}.fa.fa-thermometer-1:before{content:"\\f2ca"}.fa.fa-thermometer-0:before{content:"\\f2cb"}.fa.fa-bathtub:before,.fa.fa-s15:before{content:"\\f2cd"}.fa.fa-window-maximize,.fa.fa-window-restore{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle:before{content:"\\f410"}.fa.fa-window-close-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-window-close-o:before{content:"\\f410"}.fa.fa-times-rectangle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle-o:before{content:"\\f410"}.fa.fa-bandcamp,.fa.fa-eercast,.fa.fa-etsy,.fa.fa-grav,.fa.fa-imdb,.fa.fa-ravelry{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-eercast:before{content:"\\f2da"}.fa.fa-snowflake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-snowflake-o:before{content:"\\f2dc"}.fa.fa-superpowers,.fa.fa-wpexplorer{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-cab:before{content:"\\f1ba"}',""]);const i=c},86739:(e,f,o)=>{o.d(f,{A:()=>i});var t=o(31601);var n=o.n(t);var a=o(76314);var r=o.n(a);var c=r()(n());c.push([e.id,'/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */\n\n/**\n * Default styles for xterm.js\n */\n\n.xterm {\n cursor: text;\n position: relative;\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.xterm.focus,\n.xterm:focus {\n outline: none;\n}\n\n.xterm .xterm-helpers {\n position: absolute;\n top: 0;\n /**\n * The z-index of the helpers must be higher than the canvases in order for\n * IMEs to appear on top.\n */\n z-index: 5;\n}\n\n.xterm .xterm-helper-textarea {\n padding: 0;\n border: 0;\n margin: 0;\n /* Move textarea out of the screen to the far left, so that the cursor is not visible */\n position: absolute;\n opacity: 0;\n left: -9999em;\n top: 0;\n width: 0;\n height: 0;\n z-index: -5;\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\n white-space: nowrap;\n overflow: hidden;\n resize: none;\n}\n\n.xterm .composition-view {\n /* TODO: Composition position got messed up somewhere */\n background: #000;\n color: #FFF;\n display: none;\n position: absolute;\n white-space: nowrap;\n z-index: 1;\n}\n\n.xterm .composition-view.active {\n display: block;\n}\n\n.xterm .xterm-viewport {\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\n background-color: #000;\n overflow-y: scroll;\n cursor: default;\n position: absolute;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n}\n\n.xterm .xterm-screen {\n position: relative;\n}\n\n.xterm .xterm-screen canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.xterm .xterm-scroll-area {\n visibility: hidden;\n}\n\n.xterm-char-measure-element {\n display: inline-block;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: -9999em;\n line-height: normal;\n}\n\n.xterm.enable-mouse-events {\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\n cursor: default;\n}\n\n.xterm.xterm-cursor-pointer,\n.xterm .xterm-cursor-pointer {\n cursor: pointer;\n}\n\n.xterm.column-select.focus {\n /* Column selection mode */\n cursor: crosshair;\n}\n\n.xterm .xterm-accessibility:not(.debug),\n.xterm .xterm-message {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 10;\n color: transparent;\n pointer-events: none;\n}\n\n.xterm .xterm-accessibility-tree:not(.debug) *::selection {\n color: transparent;\n}\n\n.xterm .xterm-accessibility-tree {\n user-select: text;\n white-space: pre;\n}\n\n.xterm .live-region {\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.xterm-dim {\n /* Dim should not apply to background, so the opacity of the foreground color is applied\n * explicitly in the generated class and reset to 1 here */\n opacity: 1 !important;\n}\n\n.xterm-underline-1 { text-decoration: underline; }\n.xterm-underline-2 { text-decoration: double underline; }\n.xterm-underline-3 { text-decoration: wavy underline; }\n.xterm-underline-4 { text-decoration: dotted underline; }\n.xterm-underline-5 { text-decoration: dashed underline; }\n\n.xterm-overline {\n text-decoration: overline;\n}\n\n.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }\n.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }\n.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }\n.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }\n.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }\n\n.xterm-strikethrough {\n text-decoration: line-through;\n}\n\n.xterm-screen .xterm-decoration-container .xterm-decoration {\n\tz-index: 6;\n\tposition: absolute;\n}\n\n.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {\n\tz-index: 7;\n}\n\n.xterm-decoration-overview-ruler {\n z-index: 8;\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.xterm-decoration-top {\n z-index: 2;\n position: relative;\n}\n',""]);const i=c},9112:(e,f,o)=>{o.d(f,{A:()=>i});var t=o(31601);var n=o.n(t);var a=o(76314);var r=o.n(a);var c=r()(n());c.push([e.id,":root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error)}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translateX(0)}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:4px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);overflow:hidden;font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.7s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]);const i=c},76314:e=>{e.exports=function(e){var f=[];f.toString=function f(){return this.map((function(f){var o="";var t=typeof f[5]!=="undefined";if(f[4]){o+="@supports (".concat(f[4],") {")}if(f[2]){o+="@media ".concat(f[2]," {")}if(t){o+="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {")}o+=e(f);if(t){o+="}"}if(f[2]){o+="}"}if(f[4]){o+="}"}return o})).join("")};f.i=function e(o,t,n,a,r){if(typeof o==="string"){o=[[null,o,undefined]]}var c={};if(n){for(var i=0;i0?" ".concat(l[5]):""," {").concat(l[1],"}");l[5]=r}}if(t){if(!l[2]){l[2]=t}else{l[1]="@media ".concat(l[2]," {").concat(l[1],"}");l[2]=t}}if(a){if(!l[4]){l[4]="".concat(a)}else{l[1]="@supports (".concat(l[4],") {").concat(l[1],"}");l[4]=a}}f.push(l)}};return f}},4417:e=>{e.exports=function(e,f){if(!f){f={}}if(!e){return e}e=String(e.__esModule?e.default:e);if(/^['"].*['"]$/.test(e)){e=e.slice(1,-1)}if(f.hash){e+=f.hash}if(/["'() \t\n]|(%20)/.test(e)||f.needQuotes){return'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"')}return e}},31601:e=>{e.exports=function(e){return e[1]}},2898:(e,f,o)=>{var t=o(85072);var n=o.n(t);var a=o(97825);var r=o.n(a);var c=o(77659);var i=o.n(c);var b=o(55056);var s=o.n(b);var l=o(10540);var d=o.n(l);var m=o(41113);var p=o.n(m);var h=o(80815);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.A,u);var w=h.A&&h.A.locals?h.A.locals:undefined},40244:(e,f,o)=>{var t=o(85072);var n=o.n(t);var a=o(97825);var r=o.n(a);var c=o(77659);var i=o.n(c);var b=o(55056);var s=o.n(b);var l=o(10540);var d=o.n(l);var m=o(41113);var p=o.n(m);var h=o(14115);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.A,u);var w=h.A&&h.A.locals?h.A.locals:undefined},69448:(e,f,o)=>{var t=o(85072);var n=o.n(t);var a=o(97825);var r=o.n(a);var c=o(77659);var i=o.n(c);var b=o(55056);var s=o.n(b);var l=o(10540);var d=o.n(l);var m=o(41113);var p=o.n(m);var h=o(86739);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.A,u);var w=h.A&&h.A.locals?h.A.locals:undefined},85072:e=>{var f=[];function o(e){var o=-1;for(var t=0;t{var f={};function o(e){if(typeof f[e]==="undefined"){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement){try{o=o.contentDocument.head}catch(t){o=null}}f[e]=o}return f[e]}function t(e,f){var t=o(e);if(!t){throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")}t.appendChild(f)}e.exports=t},10540:e=>{function f(e){var f=document.createElement("style");e.setAttributes(f,e.attributes);e.insert(f,e.options);return f}e.exports=f},55056:(e,f,o)=>{function t(e){var f=true?o.nc:0;if(f){e.setAttribute("nonce",f)}}e.exports=t},97825:e=>{function f(e,f,o){var t="";if(o.supports){t+="@supports (".concat(o.supports,") {")}if(o.media){t+="@media ".concat(o.media," {")}var n=typeof o.layer!=="undefined";if(n){t+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")}t+=o.css;if(n){t+="}"}if(o.media){t+="}"}if(o.supports){t+="}"}var a=o.sourceMap;if(a&&typeof btoa!=="undefined"){t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")}f.styleTagTransform(t,e,f.options)}function o(e){if(e.parentNode===null){return false}e.parentNode.removeChild(e)}function t(e){var t=e.insertStyleElement(e);return{update:function o(n){f(t,e,n)},remove:function e(){o(t)}}}e.exports=t},41113:e=>{function f(e,f){if(f.styleSheet){f.styleSheet.cssText=e}else{while(f.firstChild){f.removeChild(f.firstChild)}f.appendChild(document.createTextNode(e))}}e.exports=f},16811:(e,f,o)=>{e.exports=o.p+"e4299464e7b012968eed.eot"},84189:(e,f,o)=>{e.exports=o.p+"cda59d6efffa685830fd.ttf"},14451:(e,f,o)=>{e.exports=o.p+"f9217f66874b0c01cd8c.woff"},92459:(e,f,o)=>{e.exports=o.p+"8ea8791754915a898a31.woff2"},45425:(e,f,o)=>{e.exports=o.p+"79d088064beb3826054f.eot"},2539:(e,f,o)=>{e.exports=o.p+"e8711bbb871afd8e9dea.ttf"},17129:(e,f,o)=>{e.exports=o.p+"cb9e9e693192413cde2b.woff"},73321:(e,f,o)=>{e.exports=o.p+"e42a88444448ac3d6054.woff2"},3537:(e,f,o)=>{e.exports=o.p+"373c04fd2418f5c77eea.eot"},60651:(e,f,o)=>{e.exports=o.p+"af6397503fcefbd61397.ttf"},21833:(e,f,o)=>{e.exports=o.p+"3f6d3488cf65374f6f67.woff"},63369:(e,f,o)=>{e.exports=o.p+"9834b82ad26e2a37583d.woff2"},23182:(e,f,o)=>{e.exports=o.p+"3de784d07b9fa8f104c1.woff"},27075:(e,f,o)=>{e.exports=o.p+"af04542b29eaac04550a.woff"},51508:(e,f,o)=>{e.exports=o.p+"26683bf201fb258a2237.woff"},31517:(e,f,o)=>{e.exports=o.p+"721921bab0d001ebff02.woff"},13110:(e,f,o)=>{e.exports=o.p+"870673df72e70f87c91a.woff"},91495:(e,f,o)=>{e.exports=o.p+"88b98cad3688915e50da.woff"},35492:(e,f,o)=>{e.exports=o.p+"355254db9ca10a09a3b5.woff"},98072:(e,f,o)=>{e.exports=o.p+"1cb1c39ea642f26a4dfe.woff"},13566:(e,f,o)=>{e.exports=o.p+"8ea8dbb1b02e6f730f55.woff"},21033:(e,f,o)=>{e.exports=o.p+"a009bea404f7a500ded4.woff"},50584:(e,f,o)=>{e.exports=o.p+"32792104b5ef69eded90.woff"},17739:(e,f,o)=>{e.exports=o.p+"fc6ddf5df402b263cfb1.woff"},49485:(e,f,o)=>{e.exports=o.p+"b418136e3b384baaadec.woff"},1910:(e,f,o)=>{e.exports=o.p+"af96f67d7accf5fd2a4a.woff"},4777:(e,f,o)=>{e.exports=o.p+"c49810b53ecc0d87d802.woff"},64452:(e,f,o)=>{e.exports=o.p+"30e889b58cbc51adfbb0.woff"},943:(e,f,o)=>{e.exports=o.p+"5cda41563a095bd70c78.woff"},71698:(e,f,o)=>{e.exports=o.p+"3bc6ecaae7ecf6f8d7f8.woff"},98786:(e,f,o)=>{e.exports=o.p+"c56da8d69f1a0208b8e0.woff"},94665:(e,f,o)=>{e.exports=o.p+"36e0d72d8a7afc696a3e.woff"},83202:(e,f,o)=>{e.exports=o.p+"72bc573386dd1d48c5bb.woff"},77778:(e,f,o)=>{e.exports=o.p+"481e39042508ae313a60.woff"},17868:(e,f,o)=>{e.exports=o.p+"a3b9817780214caf01e8.svg"},27740:(e,f,o)=>{e.exports=o.p+"be0a084962d8066884f7.svg"},37800:(e,f,o)=>{e.exports=o.p+"9674eb1bd55047179038.svg"}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1189.c1482e88f0e949753db6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1189.c1482e88f0e949753db6.js new file mode 100644 index 0000000000000000000000000000000000000000..fa51589242653d7fc169ae28b62d6d81a45d3871 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1189.c1482e88f0e949753db6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1189],{91189:(e,r,t)=>{t.r(r);t.d(r,{tcl:()=>p});function a(e){var r={},t=e.split(" ");for(var a=0;a!?^\/\|]/;function o(e,r,t){r.tokenize=t;return t(e,r)}function s(e,r){var t=r.beforeParams;r.beforeParams=false;var a=e.next();if((a=='"'||a=="'")&&r.inParams){return o(e,r,f(a))}else if(/[\[\]{}\(\),;\.]/.test(a)){if(a=="("&&t)r.inParams=true;else if(a==")")r.inParams=false;return null}else if(/\d/.test(a)){e.eatWhile(/[\w\.]/);return"number"}else if(a=="#"){if(e.eat("*"))return o(e,r,u);if(a=="#"&&e.match(/ *\[ *\[/))return o(e,r,c);e.skipToEnd();return"comment"}else if(a=='"'){e.skipTo(/"/);return"comment"}else if(a=="$"){e.eatWhile(/[$_a-z0-9A-Z\.{:]/);e.eatWhile(/}/);r.beforeParams=true;return"builtin"}else if(l.test(a)){e.eatWhile(l);return"comment"}else{e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var s=e.current().toLowerCase();if(n&&n.propertyIsEnumerable(s))return"keyword";if(i&&i.propertyIsEnumerable(s)){r.beforeParams=true;return"keyword"}return null}}function f(e){return function(r,t){var a=false,n,i=false;while((n=r.next())!=null){if(n==e&&!a){i=true;break}a=!a&&n=="\\"}if(i)t.tokenize=s;return"string"}}function u(e,r){var t=false,a;while(a=e.next()){if(a=="#"&&t){r.tokenize=s;break}t=a=="*"}return"comment"}function c(e,r){var t=0,a;while(a=e.next()){if(a=="#"&&t==2){r.tokenize=s;break}if(a=="]")t++;else if(a!=" ")t=0}return"meta"}const p={name:"tcl",startState:function(){return{tokenize:s,beforeParams:false,inParams:false}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1359.d5f23f0e2a6f67b69751.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1359.d5f23f0e2a6f67b69751.js new file mode 100644 index 0000000000000000000000000000000000000000..84fec4a9a34c64d47e95e572ddadb82ef6f6ac94 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1359.d5f23f0e2a6f67b69751.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1359],{41359:(e,t,s)=>{s.d(t,{Lh:()=>m,NM:()=>b,_$:()=>o,tM:()=>f});var i=s(15051);var n=s(94065);var a=s(96049);var r=s(75905);var u=s(24982);var l=function(){var e=(0,r.K2)((function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s}),"o"),t=[1,18],s=[1,19],i=[1,20],n=[1,41],a=[1,42],u=[1,26],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],b=[1,36],y=[1,37],f=[1,38],k=[1,27],C=[1,28],g=[1,29],m=[1,30],E=[1,31],T=[1,44],D=[1,46],F=[1,43],B=[1,47],_=[1,9],S=[1,8,9],N=[1,58],L=[1,59],$=[1,60],v=[1,61],x=[1,62],O=[1,63],I=[1,64],w=[1,8,9,41],R=[1,76],P=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],K=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],M=[13,58,84,99,101,102],G=[13,58,71,72,84,99,101,102],U=[13,58,66,67,68,69,70,84,99,101,102],Y=[1,98],z=[1,115],Q=[1,107],j=[1,113],W=[1,108],X=[1,109],V=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[22,58,59,80,84,85,86,87,88,89],ee=[1,8,9,39,41,44],te=[1,8,9,22],se=[1,143],ie=[1,8,9,59],ne=[1,8,9,22,58,59,80,84,85,86,87,88,89];var ae={trace:(0,r.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:(0,r.K2)((function e(t,s,i,n,a,r,u){var l=r.length-1;switch(a){case 8:this.$=r[l-1];break;case 9:case 12:case 14:this.$=r[l];break;case 10:case 13:this.$=r[l-2]+"."+r[l];break;case 11:case 15:this.$=r[l-1]+r[l];break;case 16:case 17:this.$=r[l-1]+"~"+r[l]+"~";break;case 18:n.addRelation(r[l]);break;case 19:r[l-1].title=n.cleanupLabel(r[l]);n.addRelation(r[l-1]);break;case 30:this.$=r[l].trim();n.setAccTitle(this.$);break;case 31:case 32:this.$=r[l].trim();n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(r[l-3],r[l-1]);break;case 34:n.addClassesToNamespace(r[l-4],r[l-1]);break;case 35:this.$=r[l];n.addNamespace(r[l]);break;case 36:this.$=[r[l]];break;case 37:this.$=[r[l-1]];break;case 38:r[l].unshift(r[l-2]);this.$=r[l];break;case 40:n.setCssClass(r[l-2],r[l]);break;case 41:n.addMembers(r[l-3],r[l-1]);break;case 42:n.setCssClass(r[l-5],r[l-3]);n.addMembers(r[l-5],r[l-1]);break;case 43:this.$=r[l];n.addClass(r[l]);break;case 44:this.$=r[l-1];n.addClass(r[l-1]);n.setClassLabel(r[l-1],r[l]);break;case 45:n.addAnnotation(r[l],r[l-2]);break;case 46:case 59:this.$=[r[l]];break;case 47:r[l].push(r[l-1]);this.$=r[l];break;case 48:break;case 49:n.addMember(r[l-1],n.cleanupLabel(r[l]));break;case 50:break;case 51:break;case 52:this.$={id1:r[l-2],id2:r[l],relation:r[l-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:r[l-3],id2:r[l],relation:r[l-1],relationTitle1:r[l-2],relationTitle2:"none"};break;case 54:this.$={id1:r[l-3],id2:r[l],relation:r[l-2],relationTitle1:"none",relationTitle2:r[l-1]};break;case 55:this.$={id1:r[l-4],id2:r[l],relation:r[l-2],relationTitle1:r[l-3],relationTitle2:r[l-1]};break;case 56:n.addNote(r[l],r[l-1]);break;case 57:n.addNote(r[l]);break;case 58:this.$=r[l-2];n.defineClass(r[l-1],r[l]);break;case 60:this.$=r[l-2].concat([r[l]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:r[l-2],type2:r[l],lineType:r[l-1]};break;case 66:this.$={type1:"none",type2:r[l],lineType:r[l-1]};break;case 67:this.$={type1:r[l-1],type2:"none",lineType:r[l]};break;case 68:this.$={type1:"none",type2:"none",lineType:r[l]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=r[l-2];n.setClickEvent(r[l-1],r[l]);break;case 77:case 83:this.$=r[l-3];n.setClickEvent(r[l-2],r[l-1]);n.setTooltip(r[l-2],r[l]);break;case 78:this.$=r[l-2];n.setLink(r[l-1],r[l]);break;case 79:this.$=r[l-3];n.setLink(r[l-2],r[l-1],r[l]);break;case 80:this.$=r[l-3];n.setLink(r[l-2],r[l-1]);n.setTooltip(r[l-2],r[l]);break;case 81:this.$=r[l-4];n.setLink(r[l-3],r[l-2],r[l]);n.setTooltip(r[l-3],r[l-1]);break;case 84:this.$=r[l-3];n.setClickEvent(r[l-2],r[l-1],r[l]);break;case 85:this.$=r[l-4];n.setClickEvent(r[l-3],r[l-2],r[l-1]);n.setTooltip(r[l-3],r[l]);break;case 86:this.$=r[l-3];n.setLink(r[l-2],r[l]);break;case 87:this.$=r[l-4];n.setLink(r[l-3],r[l-1],r[l]);break;case 88:this.$=r[l-4];n.setLink(r[l-3],r[l-1]);n.setTooltip(r[l-3],r[l]);break;case 89:this.$=r[l-5];n.setLink(r[l-4],r[l-2],r[l]);n.setTooltip(r[l-4],r[l-1]);break;case 90:this.$=r[l-2];n.setCssStyle(r[l-1],r[l]);break;case 91:n.setCssClass(r[l-1],r[l]);break;case 92:this.$=[r[l]];break;case 93:r[l-2].push(r[l]);this.$=r[l-2];break;case 95:this.$=r[l-1]+r[l];break}}),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:a,47:u,49:l,50:o,52:c,54:h,55:p,58:d,60:A,61:b,62:y,63:f,73:k,74:C,76:g,80:m,81:E,84:T,99:D,101:F,102:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(_,[2,5],{8:[1,48]}),{8:[1,49]},e(S,[2,18],{22:[1,50]}),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),e(S,[2,26]),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),{34:[1,51]},{36:[1,52]},e(S,[2,32]),e(S,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:N,67:L,68:$,69:v,70:x,71:O,72:I}),{39:[1,65]},e(w,[2,39],{39:[1,67],44:[1,66]}),e(S,[2,50]),e(S,[2,51]),{16:68,58:d,84:T,99:D,101:F},{16:39,18:69,19:40,58:d,84:T,99:D,101:F,102:B},{16:39,18:70,19:40,58:d,84:T,99:D,101:F,102:B},{16:39,18:71,19:40,58:d,84:T,99:D,101:F,102:B},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:d,84:T,99:D,101:F,102:B},{13:R,53:75},{56:77,58:[1,78]},e(S,[2,61]),e(S,[2,62]),e(S,[2,63]),e(S,[2,64]),e(P,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:d,84:T,99:D,101:F,102:B}),e(P,[2,14],{20:[1,82]}),{15:83,16:84,58:d,84:T,99:D,101:F},{16:39,18:85,19:40,58:d,84:T,99:D,101:F,102:B},e(K,[2,118]),e(K,[2,119]),e(K,[2,120]),e(K,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:t,35:s,37:i,42:n,46:a,47:u,49:l,50:o,52:c,54:h,55:p,58:d,60:A,61:b,62:y,63:f,73:k,74:C,76:g,80:m,81:E,84:T,99:D,101:F,102:B}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:a,47:u,49:l,50:o,52:c,54:h,55:p,58:d,60:A,61:b,62:y,63:f,73:k,74:C,76:g,80:m,81:E,84:T,99:D,101:F,102:B},e(S,[2,19]),e(S,[2,30]),e(S,[2,31]),{13:[1,89],16:39,18:88,19:40,58:d,84:T,99:D,101:F,102:B},{51:90,64:56,65:57,66:N,67:L,68:$,69:v,70:x,71:O,72:I},e(S,[2,49]),{65:91,71:O,72:I},e(M,[2,68],{64:92,66:N,67:L,68:$,69:v,70:x}),e(G,[2,69]),e(G,[2,70]),e(G,[2,71]),e(G,[2,72]),e(G,[2,73]),e(U,[2,74]),e(U,[2,75]),{8:[1,94],24:95,40:93,43:23,46:a},{16:96,58:d,84:T,99:D,101:F},{45:97,49:Y},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:z,57:104,58:Q,80:j,82:105,83:106,84:W,85:X,86:V,87:q,88:H,89:J},{58:[1,116]},{13:R,53:117},e(S,[2,57]),e(S,[2,123]),{22:z,57:118,58:Q,59:[1,119],80:j,82:105,83:106,84:W,85:X,86:V,87:q,88:H,89:J},e(Z,[2,59]),{16:39,18:120,19:40,58:d,84:T,99:D,101:F,102:B},e(P,[2,15]),e(P,[2,16]),e(P,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:d,84:T,99:D,101:F},e(ee,[2,43],{11:123,12:[1,124]}),e(_,[2,7]),{9:[1,125]},e(te,[2,52]),{16:39,18:126,19:40,58:d,84:T,99:D,101:F,102:B},{13:[1,128],16:39,18:127,19:40,58:d,84:T,99:D,101:F,102:B},e(M,[2,67],{64:129,66:N,67:L,68:$,69:v,70:x}),e(M,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:a},{8:[1,132],41:[2,36]},e(w,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Y},{16:39,18:136,19:40,58:d,84:T,99:D,101:F,102:B},e(S,[2,76],{13:[1,137]}),e(S,[2,78],{13:[1,139],75:[1,138]}),e(S,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(S,[2,90],{59:se}),e(ie,[2,92],{83:144,22:z,58:Q,80:j,84:W,85:X,86:V,87:q,88:H,89:J}),e(ne,[2,94]),e(ne,[2,96]),e(ne,[2,97]),e(ne,[2,98]),e(ne,[2,99]),e(ne,[2,100]),e(ne,[2,101]),e(ne,[2,102]),e(ne,[2,103]),e(ne,[2,104]),e(S,[2,91]),e(S,[2,56]),e(S,[2,58],{59:se}),{58:[1,145]},e(P,[2,13]),{15:146,16:84,58:d,84:T,99:D,101:F},{39:[2,11]},e(ee,[2,44]),{13:[1,147]},{1:[2,4]},e(te,[2,54]),e(te,[2,53]),{16:39,18:148,19:40,58:d,84:T,99:D,101:F,102:B},e(M,[2,65]),e(S,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:a},{45:151,49:Y},e(w,[2,41]),{41:[2,47]},e(S,[2,45]),e(S,[2,77]),e(S,[2,79]),e(S,[2,80],{75:[1,152]}),e(S,[2,83]),e(S,[2,84],{13:[1,153]}),e(S,[2,86],{13:[1,155],75:[1,154]}),{22:z,58:Q,80:j,82:156,83:106,84:W,85:X,86:V,87:q,88:H,89:J},e(ne,[2,95]),e(Z,[2,60]),{39:[2,10]},{14:[1,157]},e(te,[2,55]),e(S,[2,34]),{41:[2,38]},{41:[1,158]},e(S,[2,81]),e(S,[2,85]),e(S,[2,87]),e(S,[2,88],{75:[1,159]}),e(ie,[2,93],{83:144,22:z,58:Q,80:j,84:W,85:X,86:V,87:q,88:H,89:J}),e(ee,[2,8]),e(w,[2,42]),e(S,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:(0,r.K2)((function e(t,s){if(s.recoverable){this.trace(t)}else{var i=new Error(t);i.hash=s;throw i}}),"parseError"),parse:(0,r.K2)((function e(t){var s=this,i=[0],n=[],a=[null],u=[],l=this.table,o="",c=0,h=0,p=0,d=2,A=1;var b=u.slice.call(arguments,1);var y=Object.create(this.lexer);var f={yy:{}};for(var k in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,k)){f.yy[k]=this.yy[k]}}y.setInput(t,f.yy);f.yy.lexer=y;f.yy.parser=this;if(typeof y.yylloc=="undefined"){y.yylloc={}}var C=y.yylloc;u.push(C);var g=y.options&&y.options.ranges;if(typeof f.yy.parseError==="function"){this.parseError=f.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function m(e){i.length=i.length-2*e;a.length=a.length-e;u.length=u.length-e}(0,r.K2)(m,"popStack");function E(){var e;e=n.pop()||y.lex()||A;if(typeof e!=="number"){if(e instanceof Array){n=e;e=n.pop()}e=s.symbols_[e]||e}return e}(0,r.K2)(E,"lex");var T,D,F,B,_,S,N={},L,$,v,x;while(true){F=i[i.length-1];if(this.defaultActions[F]){B=this.defaultActions[F]}else{if(T===null||typeof T=="undefined"){T=E()}B=l[F]&&l[F][T]}if(typeof B==="undefined"||!B.length||!B[0]){var O="";x=[];for(L in l[F]){if(this.terminals_[L]&&L>d){x.push("'"+this.terminals_[L]+"'")}}if(y.showPosition){O="Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[T]||T)+"'"}else{O="Parse error on line "+(c+1)+": Unexpected "+(T==A?"end of input":"'"+(this.terminals_[T]||T)+"'")}this.parseError(O,{text:y.match,token:this.terminals_[T]||T,line:y.yylineno,loc:C,expected:x})}if(B[0]instanceof Array&&B.length>1){throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+T)}switch(B[0]){case 1:i.push(T);a.push(y.yytext);u.push(y.yylloc);i.push(B[1]);T=null;if(!D){h=y.yyleng;o=y.yytext;c=y.yylineno;C=y.yylloc;if(p>0){p--}}else{T=D;D=null}break;case 2:$=this.productions_[B[1]][1];N.$=a[a.length-$];N._$={first_line:u[u.length-($||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-($||1)].first_column,last_column:u[u.length-1].last_column};if(g){N._$.range=[u[u.length-($||1)].range[0],u[u.length-1].range[1]]}S=this.performAction.apply(N,[o,h,c,f.yy,B[1],a,u].concat(b));if(typeof S!=="undefined"){return S}if($){i=i.slice(0,-1*$*2);a=a.slice(0,-1*$);u=u.slice(0,-1*$)}i.push(this.productions_[B[1]][0]);a.push(N.$);u.push(N._$);v=l[i[i.length-2]][i[i.length-1]];i.push(v);break;case 3:return true}}return true}),"parse")};var re=function(){var e={EOF:1,parseError:(0,r.K2)((function e(t,s){if(this.yy.parser){this.yy.parser.parseError(t,s)}else{throw new Error(t)}}),"parseError"),setInput:(0,r.K2)((function(e,t){this.yy=t||this.yy||{};this._input=e;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,r.K2)((function(){var e=this._input[0];this.yytext+=e;this.yyleng++;this.offset++;this.match+=e;this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);if(t){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return e}),"input"),unput:(0,r.K2)((function(e){var t=e.length;var s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-t);this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(s.length-1){this.yylineno-=s.length-1}var n=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t};if(this.options.ranges){this.yylloc.range=[n[0],n[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,r.K2)((function(){this._more=true;return this}),"more"),reject:(0,r.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,r.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,r.K2)((function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,r.K2)((function(){var e=this.match;if(e.length<20){e+=this._input.substr(0,20-e.length)}return(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,r.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,r.K2)((function(e,t){var s,i,n;if(this.options.backtrack_lexer){n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){n.yylloc.range=this.yylloc.range.slice(0)}}i=e[0].match(/(?:\r\n?|\n).*/g);if(i){this.yylineno+=i.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length};this.yytext+=e[0];this.match+=e[0];this.matches=e;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(e[0].length);this.matched+=e[0];s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(s){return s}else if(this._backtrack){for(var a in n){this[a]=n[a]}return false}return false}),"test_match"),next:(0,r.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var e,t,s,i;if(!this._more){this.yytext="";this.match=""}var n=this._currentRules();for(var a=0;at[0].length)){t=s;i=a;if(this.options.backtrack_lexer){e=this.test_match(s,n[a]);if(e!==false){return e}else if(this._backtrack){t=false;continue}else{return false}}else if(!this.options.flex){break}}}if(t){e=this.test_match(t,n[i]);if(e!==false){return e}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,r.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,r.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,r.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,r.K2)((function e(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,r.K2)((function e(t){t=this.conditionStack.length-1-Math.abs(t||0);if(t>=0){return this.conditionStack[t]}else{return"INITIAL"}}),"topState"),pushState:(0,r.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,r.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,r.K2)((function e(t,s,i,n){var a=n;switch(i){case 0:return 60;break;case 1:return 61;break;case 2:return 62;break;case 3:return 63;break;case 4:break;case 5:break;case 6:this.begin("acc_title");return 33;break;case 7:this.popState();return"acc_title_value";break;case 8:this.begin("acc_descr");return 35;break;case 9:this.popState();return"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";break;case 13:return 8;break;case 14:break;case 15:return 7;break;case 16:return 7;break;case 17:return"EDGE_STATE";break;case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState();this.begin("callback_args");break;case 21:return 77;break;case 22:this.popState();break;case 23:return 78;break;case 24:this.popState();break;case 25:return"STR";break;case 26:this.begin("string");break;case 27:return 80;break;case 28:return 55;break;case 29:this.begin("namespace");return 42;break;case 30:this.popState();return 8;break;case 31:break;case 32:this.begin("namespace-body");return 39;break;case 33:this.popState();return 41;break;case 34:return"EOF_IN_STRUCT";break;case 35:return 8;break;case 36:break;case 37:return"EDGE_STATE";break;case 38:this.begin("class");return 46;break;case 39:this.popState();return 8;break;case 40:break;case 41:this.popState();this.popState();return 41;break;case 42:this.begin("class-body");return 39;break;case 43:this.popState();return 41;break;case 44:return"EOF_IN_STRUCT";break;case 45:return"EDGE_STATE";break;case 46:return"OPEN_IN_STRUCT";break;case 47:break;case 48:return"MEMBER";break;case 49:return 81;break;case 50:return 73;break;case 51:return 74;break;case 52:return 76;break;case 53:return 52;break;case 54:return 54;break;case 55:return 47;break;case 56:return 48;break;case 57:return 79;break;case 58:this.popState();break;case 59:return"GENERICTYPE";break;case 60:this.begin("generic");break;case 61:this.popState();break;case 62:return"BQUOTE_STR";break;case 63:this.begin("bqstring");break;case 64:return 75;break;case 65:return 75;break;case 66:return 75;break;case 67:return 75;break;case 68:return 67;break;case 69:return 67;break;case 70:return 69;break;case 71:return 69;break;case 72:return 68;break;case 73:return 66;break;case 74:return 70;break;case 75:return 71;break;case 76:return 72;break;case 77:return 22;break;case 78:return 44;break;case 79:return 99;break;case 80:return 17;break;case 81:return"PLUS";break;case 82:return 85;break;case 83:return 59;break;case 84:return 88;break;case 85:return 88;break;case 86:return 89;break;case 87:return"EQUALS";break;case 88:return"EQUALS";break;case 89:return 58;break;case 90:return 12;break;case 91:return 14;break;case 92:return"PUNCTUATION";break;case 93:return 84;break;case 94:return 101;break;case 95:return 87;break;case 96:return 87;break;case 97:return 9;break}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:true}}};return e}();ae.lexer=re;function ue(){this.yy={}}(0,r.K2)(ue,"Parser");ue.prototype=ae;ae.Parser=ue;return new ue}();l.parser=l;var o=l;var c=["#","+","~","-",""];var h=class{static{(0,r.K2)(this,"ClassMember")}constructor(e,t){this.memberType=t;this.visibility="";this.classifier="";this.text="";const s=(0,r.jZ)(e,(0,r.D7)());this.parseMember(s)}getDisplayDetails(){let e=this.visibility+(0,r.QO)(this.id);if(this.memberType==="method"){e+=`(${(0,r.QO)(this.parameters.trim())})`;if(this.returnType){e+=" : "+(0,r.QO)(this.returnType)}}e=e.trim();const t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t="";if(this.memberType==="method"){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/;const i=s.exec(e);if(i){const e=i[1]?i[1].trim():"";if(c.includes(e)){this.visibility=e}this.id=i[2];this.parameters=i[3]?i[3].trim():"";t=i[4]?i[4].trim():"";this.returnType=i[5]?i[5].trim():"";if(t===""){const e=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(e)){t=e;this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}}else{const s=e.length;const i=e.substring(0,1);const n=e.substring(s-1);if(c.includes(i)){this.visibility=i}if(/[$*]/.exec(n)){t=n}this.id=e.substring(this.visibility===""?0:1,t===""?s:s-1)}this.classifier=t;this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${(0,r.QO)(this.id)}${this.memberType==="method"?`(${(0,r.QO)(this.parameters)})${this.returnType?" : "+(0,r.QO)(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">");if(this.text.startsWith("\\<")){this.text=this.text.replace("\\<","~")}}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}};var p="classId-";var d=0;var A=(0,r.K2)((e=>r.Y2.sanitizeText(e,(0,r.D7)())),"sanitizeText");var b=class{constructor(){this.relations=[];this.classes=new Map;this.styleClasses=new Map;this.notes=[];this.interfaces=[];this.namespaces=new Map;this.namespaceCounter=0;this.functions=[];this.lineType={LINE:0,DOTTED_LINE:1};this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4};this.setupToolTips=(0,r.K2)((e=>{let t=(0,u.Ltv)(".mermaidTooltip");if((t._groups||t)[0][0]===null){t=(0,u.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)}const s=(0,u.Ltv)(e).select("svg");const i=s.selectAll("g.node");i.on("mouseover",(e=>{const s=(0,u.Ltv)(e.currentTarget);const i=s.attr("title");if(i===null){return}const n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9");t.text(s.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px");t.html(t.html().replace(/<br\/>/g,"
"));s.classed("hover",true)})).on("mouseout",(e=>{t.transition().duration(500).style("opacity",0);const s=(0,u.Ltv)(e.currentTarget);s.classed("hover",false)}))}),"setupToolTips");this.direction="TB";this.setAccTitle=r.SV;this.getAccTitle=r.iN;this.setAccDescription=r.EI;this.getAccDescription=r.m7;this.setDiagramTitle=r.ke;this.getDiagramTitle=r.ab;this.getConfig=(0,r.K2)((()=>(0,r.D7)().class),"getConfig");this.functions.push(this.setupToolTips.bind(this));this.clear();this.addRelation=this.addRelation.bind(this);this.addClassesToNamespace=this.addClassesToNamespace.bind(this);this.addNamespace=this.addNamespace.bind(this);this.setCssClass=this.setCssClass.bind(this);this.addMembers=this.addMembers.bind(this);this.addClass=this.addClass.bind(this);this.setClassLabel=this.setClassLabel.bind(this);this.addAnnotation=this.addAnnotation.bind(this);this.addMember=this.addMember.bind(this);this.cleanupLabel=this.cleanupLabel.bind(this);this.addNote=this.addNote.bind(this);this.defineClass=this.defineClass.bind(this);this.setDirection=this.setDirection.bind(this);this.setLink=this.setLink.bind(this);this.bindFunctions=this.bindFunctions.bind(this);this.clear=this.clear.bind(this);this.setTooltip=this.setTooltip.bind(this);this.setClickEvent=this.setClickEvent.bind(this);this.setCssStyle=this.setCssStyle.bind(this)}static{(0,r.K2)(this,"ClassDB")}splitClassNameAndType(e){const t=r.Y2.sanitizeText(e,(0,r.D7)());let s="";let i=t;if(t.indexOf("~")>0){const e=t.split("~");i=A(e[0]);s=A(e[1])}return{className:i,type:s}}setClassLabel(e,t){const s=r.Y2.sanitizeText(e,(0,r.D7)());if(t){t=A(t)}const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=t;this.classes.get(i).text=`${t}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const t=r.Y2.sanitizeText(e,(0,r.D7)());const{className:s,type:i}=this.splitClassNameAndType(t);if(this.classes.has(s)){return}const n=r.Y2.sanitizeText(s,(0,r.D7)());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:p+n+"-"+d});d++}addInterface(e,t){const s={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(s)}lookUpDomId(e){const t=r.Y2.sanitizeText(e,(0,r.D7)());if(this.classes.has(t)){return this.classes.get(t).domId}throw new Error("Class not found: "+t)}clear(){this.relations=[];this.classes=new Map;this.notes=[];this.interfaces=[];this.functions=[];this.functions.push(this.setupToolTips.bind(this));this.namespaces=new Map;this.namespaceCounter=0;this.direction="TB";(0,r.IU)()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(e){r.Rm.debug("Adding relation: "+JSON.stringify(e));const t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(e.relation.type1===this.relationType.LOLLIPOP&&!t.includes(e.relation.type2)){this.addClass(e.id2);this.addInterface(e.id1,e.id2);e.id1=`interface${this.interfaces.length-1}`}else if(e.relation.type2===this.relationType.LOLLIPOP&&!t.includes(e.relation.type1)){this.addClass(e.id1);this.addInterface(e.id2,e.id1);e.id2=`interface${this.interfaces.length-1}`}else{this.addClass(e.id1);this.addClass(e.id2)}e.id1=this.splitClassNameAndType(e.id1).className;e.id2=this.splitClassNameAndType(e.id2).className;e.relationTitle1=r.Y2.sanitizeText(e.relationTitle1.trim(),(0,r.D7)());e.relationTitle2=r.Y2.sanitizeText(e.relationTitle2.trim(),(0,r.D7)());this.relations.push(e)}addAnnotation(e,t){const s=this.splitClassNameAndType(e).className;this.classes.get(s).annotations.push(t)}addMember(e,t){this.addClass(e);const s=this.splitClassNameAndType(e).className;const i=this.classes.get(s);if(typeof t==="string"){const e=t.trim();if(e.startsWith("<<")&&e.endsWith(">>")){i.annotations.push(A(e.substring(2,e.length-2)))}else if(e.indexOf(")")>0){i.methods.push(new h(e,"method"))}else if(e){i.members.push(new h(e,"attribute"))}}}addMembers(e,t){if(Array.isArray(t)){t.reverse();t.forEach((t=>this.addMember(e,t)))}}addNote(e,t){const s={id:`note${this.notes.length}`,class:t,text:e};this.notes.push(s)}cleanupLabel(e){if(e.startsWith(":")){e=e.substring(1)}return A(e.trim())}setCssClass(e,t){e.split(",").forEach((e=>{let s=e;if(/\d/.exec(e[0])){s=p+s}const i=this.classes.get(s);if(i){i.cssClasses+=" "+t}}))}defineClass(e,t){for(const s of e){let e=this.styleClasses.get(s);if(e===void 0){e={id:s,styles:[],textStyles:[]};this.styleClasses.set(s,e)}if(t){t.forEach((t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}))}this.classes.forEach((e=>{if(e.cssClasses.includes(s)){e.styles.push(...t.flatMap((e=>e.split(","))))}}))}}setTooltip(e,t){e.split(",").forEach((e=>{if(t!==void 0){this.classes.get(e).tooltip=A(t)}}))}getTooltip(e,t){if(t&&this.namespaces.has(t)){return this.namespaces.get(t).classes.get(e).tooltip}return this.classes.get(e).tooltip}setLink(e,t,s){const i=(0,r.D7)();e.split(",").forEach((e=>{let n=e;if(/\d/.exec(e[0])){n=p+n}const r=this.classes.get(n);if(r){r.link=a._K.formatUrl(t,i);if(i.securityLevel==="sandbox"){r.linkTarget="_top"}else if(typeof s==="string"){r.linkTarget=A(s)}else{r.linkTarget="_blank"}}}));this.setCssClass(e,"clickable")}setClickEvent(e,t,s){e.split(",").forEach((e=>{this.setClickFunc(e,t,s);this.classes.get(e).haveCallback=true}));this.setCssClass(e,"clickable")}setClickFunc(e,t,s){const i=r.Y2.sanitizeText(e,(0,r.D7)());const n=(0,r.D7)();if(n.securityLevel!=="loose"){return}if(t===void 0){return}const u=i;if(this.classes.has(u)){const e=this.lookUpDomId(u);let i=[];if(typeof s==="string"){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{const s=document.querySelector(`[id="${e}"]`);if(s!==null){s.addEventListener("click",(()=>{a._K.runFunc(t,...i)}),false)}}))}}bindFunctions(e){this.functions.forEach((t=>{t(e)}))}getDirection(){return this.direction}setDirection(e){this.direction=e}addNamespace(e){if(this.namespaces.has(e)){return}this.namespaces.set(e,{id:e,classes:new Map,children:{},domId:p+e+"-"+this.namespaceCounter});this.namespaceCounter++}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t){if(!this.namespaces.has(e)){return}for(const s of t){const{className:t}=this.splitClassNameAndType(s);this.classes.get(t).parent=e;this.namespaces.get(e).classes.set(t,this.classes.get(t))}}setCssStyle(e,t){const s=this.classes.get(e);if(!t||!s){return}for(const i of t){if(i.includes(",")){s.styles.push(...i.split(","))}else{s.styles.push(i)}}}getArrowMarker(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}getData(){const e=[];const t=[];const s=(0,r.D7)();for(const n of this.namespaces.keys()){const t=this.namespaces.get(n);if(t){const i={id:t.id,label:t.id,isGroup:true,padding:s.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:s.look};e.push(i)}}for(const n of this.classes.keys()){const t=this.classes.get(n);if(t){const i=t;i.parentId=t.parent;i.look=s.look;e.push(i)}}let i=0;for(const n of this.notes){i++;const a={id:n.id,label:n.text,isGroup:false,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look};e.push(a);const r=this.classes.get(n.class)?.id??"";if(r){const e={id:`edgeNote${i}`,start:n.id,end:r,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};t.push(e)}}for(const n of this.interfaces){const t={id:n.id,label:n.label,isGroup:false,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};e.push(t)}i=0;for(const n of this.relations){i++;const e={id:(0,a.rY)(n.id1,n.id2,{prefix:"id",counter:i}),start:n.id1,end:n.id2,type:"normal",label:n.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(n.relation.type1),arrowTypeEnd:this.getArrowMarker(n.relation.type2),startLabelRight:n.relationTitle1==="none"?"":n.relationTitle1,endLabelLeft:n.relationTitle2==="none"?"":n.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:n.style||"",pattern:n.relation.lineType==1?"dashed":"solid",look:s.look};t.push(e)}return{nodes:e,edges:t,other:{},config:s,direction:this.getDirection()}}};var y=(0,r.K2)((e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n`),"getStyles");var f=y;var k=(0,r.K2)(((e,t="TB")=>{if(!e.doc){return t}let s=t;for(const i of e.doc){if(i.stmt==="dir"){s=i.value}}return s}),"getDir");var C=(0,r.K2)((function(e,t){return t.db.getClasses()}),"getClasses");var g=(0,r.K2)((async function(e,t,s,u){r.Rm.info("REF0:");r.Rm.info("Drawing class diagram (v3)",t);const{securityLevel:l,state:o,layout:c}=(0,r.D7)();const h=u.db.getData();const p=(0,i.A)(t,l);h.type=u.type;h.layoutAlgorithm=(0,n.q7)(c);h.nodeSpacing=o?.nodeSpacing||50;h.rankSpacing=o?.rankSpacing||50;h.markers=["aggregation","extension","composition","dependency","lollipop"];h.diagramId=t;await(0,n.XX)(h,p);const d=8;a._K.insertTitle(p,"classDiagramTitleText",o?.titleTopMargin??25,u.db.getDiagramTitle());(0,i.P)(p,d,"classDiagram",o?.useMaxWidth??true)}),"draw");var m={getClasses:C,draw:g,getDir:k}},15051:(e,t,s)=>{s.d(t,{A:()=>a,P:()=>r});var i=s(75905);var n=s(24982);var a=(0,i.K2)(((e,t)=>{let s;if(t==="sandbox"){s=(0,n.Ltv)("#i"+e)}const i=t==="sandbox"?(0,n.Ltv)(s.nodes()[0].contentDocument.body):(0,n.Ltv)("body");const a=i.select(`[id="${e}"]`);return a}),"getDiagramElement");var r=(0,i.K2)(((e,t,s,n)=>{e.attr("class",s);const{width:a,height:r,x:o,y:c}=u(e,t);(0,i.a$)(e,r,a,n);const h=l(o,c,a,r,t);e.attr("viewBox",h);i.Rm.debug(`viewBox configured: ${h} with padding: ${t}`)}),"setupViewPortForSVG");var u=(0,i.K2)(((e,t)=>{const s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+t*2,height:s.height+t*2,x:s.x,y:s.y}}),"calculateDimensionsWithPadding");var l=(0,i.K2)(((e,t,s,i,n)=>`${e-n} ${t-n} ${s} ${i}`),"createViewBox")}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1423.4bcf4453e1c1d12d872f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1423.4bcf4453e1c1d12d872f.js new file mode 100644 index 0000000000000000000000000000000000000000..b35d1eedde860a9c6f4278905c082d50edaab70e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1423.4bcf4453e1c1d12d872f.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1423,5606],{75128:(t,e,s)=>{"use strict";s.d(e,{Ar:()=>d,Bc:()=>Qt,Gw:()=>Ot,_5:()=>h,et:()=>u,wm:()=>Wt});var i=s(71674);var n=s.n(i);var o=s(22819);var r=s.n(o);var l=s(4452);var a=s.n(l);class h{constructor(t,e,s,i){this.state=t;this.pos=e;this.explicit=s;this.view=i;this.abortListeners=[];this.abortOnDocChange=false}tokenBefore(t){let e=(0,l.syntaxTree)(this.state).resolveInner(this.pos,-1);while(e&&t.indexOf(e.name)<0)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos);let s=Math.max(e.from,this.pos-250);let i=e.text.slice(s-e.from,this.pos-e.from);let n=i.search(k(t,false));return n<0?null:{from:s+n,to:this.pos,text:i.slice(n)}}get aborted(){return this.abortListeners==null}addEventListener(t,e,s){if(t=="abort"&&this.abortListeners){this.abortListeners.push(e);if(s&&s.onDocChange)this.abortOnDocChange=true}}}function c(t){let e=Object.keys(t).join("");let s=/\w/.test(e);if(s)e=e.replace(/\w/g,"");return`[${s?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function f(t){let e=Object.create(null),s=Object.create(null);for(let{label:n}of t){e[n[0]]=true;for(let t=1;ttypeof t=="string"?{label:t}:t));let[s,i]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:f(e);return t=>{let n=t.matchBefore(i);return n||t.explicit?{from:n?n.from:t.pos,options:e,validFor:s}:null}}function p(t,e){return s=>{for(let i=syntaxTree(s.state).resolveInner(s.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return e(s);if(i.type.isTop)break}return null}}function d(t,e){return s=>{for(let e=(0,l.syntaxTree)(s.state).resolveInner(s.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(s)}}class m{constructor(t,e,s,i){this.completion=t;this.source=e;this.match=s;this.score=i}}function g(t){return t.selection.main.from}function k(t,e){var s;let{source:i}=t;let n=e&&i[0]!="^",o=i[i.length-1]!="$";if(!n&&!o)return t;return new RegExp(`${n?"^":""}(?:${i})${o?"$":""}`,(s=t.flags)!==null&&s!==void 0?s:t.ignoreCase?"i":"")}const b=i.Annotation.define();function x(t,e,s,n){let{main:o}=t.selection,r=s-o.from,l=n-o.from;return Object.assign(Object.assign({},t.changeByRange((a=>{if(a!=o&&s!=n&&t.sliceDoc(a.from+r,a.from+l)!=t.sliceDoc(s,n))return{range:a};let h=t.toText(e);return{changes:{from:a.from+r,to:n==o.from?a.to:a.from+l,insert:h},range:i.EditorSelection.cursor(a.from+r+h.length)}}))),{scrollIntoView:true,userEvent:"input.complete"})}const v=new WeakMap;function w(t){if(!Array.isArray(t))return t;let e=v.get(t);if(!e)v.set(t,e=u(t));return e}const y=i.StateEffect.define();const S=i.StateEffect.define();class C{constructor(t){this.pattern=t;this.chars=[];this.folded=[];this.any=[];this.precise=[];this.byWord=[];this.score=0;this.matched=[];for(let e=0;e=48&&n<=57||n>=97&&n<=122?2:n>=65&&n<=90?1:0:(h=(0,i.fromCodePoint)(n))!=h.toLowerCase()?1:h!=h.toUpperCase()?2:0;if(!b||x==1&&g||v==0&&x!=0){if(e[f]==n||s[f]==n&&(u=true))r[f++]=b;else if(r.length)k=false}v=x;b+=(0,i.codePointSize)(n)}if(f==a&&r[0]==0&&k)return this.result(-100+(u?-200:0),r,t);if(p==a&&d==0)return this.ret(-200-t.length+(m==t.length?0:-100),[0,m]);if(l>-1)return this.ret(-700-t.length,[l,l+this.pattern.length]);if(p==a)return this.ret(-200+-700-t.length,[d,m]);if(f==a)return this.result(-100+(u?-200:0)+-700+(k?0:-1100),r,t);return e.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,t)}result(t,e,s){let n=[],o=0;for(let r of e){let t=r+(this.astral?(0,i.codePointSize)((0,i.codePointAt)(s,r)):1);if(o&&n[o-1]==r)n[o-1]=t;else{n[o++]=r;n[o++]=t}}return this.ret(t-s.length,n)}}class P{constructor(t){this.pattern=t;this.matched=[];this.score=0;this.folded=t.toLowerCase()}match(t){if(t.lengthfalse,activateOnTypingDelay:100,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:false,icons:true,addToOptions:[],positionInfo:I,filterStrict:false,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>s=>A(t(s),e(s)),optionClass:(t,e)=>s=>A(t(s),e(s)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function A(t,e){return t?e?t+" "+e:t:e}function I(t,e,s,i,n,r){let l=t.textDirection==o.Direction.RTL,a=l,h=false;let c="top",f,u;let p=e.left-n.left,d=n.right-e.right;let m=i.right-i.left,g=i.bottom-i.top;if(a&&p=g||t>e.top){f=s.bottom-e.top}else{c="bottom";f=e.bottom-s.top}}let k=(e.bottom-e.top)/r.offsetHeight;let b=(e.right-e.left)/r.offsetWidth;return{style:`${c}: ${f/k}px; max-width: ${u/b}px`,class:"cm-completionInfo-"+(h?l?"left-narrow":"right-narrow":a?"left":"right")}}function O(t){let e=t.addToOptions.slice();if(t.icons)e.push({render(t){let e=document.createElement("div");e.classList.add("cm-completionIcon");if(t.type)e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t)));e.setAttribute("aria-hidden","true");return e},position:20});e.push({render(t,e,s,i){let n=document.createElement("span");n.className="cm-completionLabel";let o=t.displayLabel||t.label,r=0;for(let l=0;lr)n.appendChild(document.createTextNode(o.slice(r,t)));let s=n.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(o.slice(t,e)));s.className="cm-completionMatchedText";r=e}if(rt.position-e.position)).map((t=>t.render))}function D(t,e,s){if(t<=s)return{from:0,to:t};if(e<0)e=0;if(e<=t>>1){let t=Math.floor(e/s);return{from:t*s,to:(t+1)*s}}let i=Math.floor((t-e)/s);return{from:t-(i+1)*s,to:t-i*s}}class R{constructor(t,e,s){this.view=t;this.stateField=e;this.applyCompletion=s;this.info=null;this.infoDestroy=null;this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this};this.space=null;this.currentClass="";let i=t.state.field(e);let{options:n,selected:o}=i.open;let r=t.state.facet(T);this.optionContent=O(r);this.optionClass=r.optionClass;this.tooltipClass=r.tooltipClass;this.range=D(n.length,o,r.maxRenderedOptions);this.dom=document.createElement("div");this.dom.className="cm-tooltip-autocomplete";this.updateTooltipClass(t.state);this.dom.addEventListener("mousedown",(s=>{let{options:i}=t.state.field(e).open;for(let e=s.target,n;e&&e!=this.dom;e=e.parentNode){if(e.nodeName=="LI"&&(n=/-(\d+)$/.exec(e.id))&&+n[1]{let s=t.state.field(this.stateField,false);if(s&&s.tooltip&&t.state.facet(T).closeOnBlur&&e.relatedTarget!=t.contentDOM)t.dispatch({effects:S.of(null)})}));this.showOptions(n,i.id)}mount(){this.updateSel()}showOptions(t,e){if(this.list)this.list.remove();this.list=this.dom.appendChild(this.createListBox(t,e,this.range));this.list.addEventListener("scroll",(()=>{if(this.info)this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let s=t.state.field(this.stateField);let i=t.startState.field(this.stateField);this.updateTooltipClass(t.state);if(s!=i){let{options:n,selected:o,disabled:r}=s.open;if(!i.open||i.open.options!=n){this.range=D(n.length,o,t.state.facet(T).maxRenderedOptions);this.showOptions(n,s.id)}this.updateSel();if(r!=((e=i.open)===null||e===void 0?void 0:e.disabled))this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!r)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))if(t)this.dom.classList.remove(t);for(let t of e.split(" "))if(t)this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t;if(this.info)this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if(e.selected>-1&&e.selected=this.range.to){this.range=D(e.options.length,e.selected,this.view.state.facet(T).maxRenderedOptions);this.showOptions(e.options,t.id)}if(this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:s}=e.options[e.selected];let{info:i}=s;if(!i)return;let n=typeof i==="string"?document.createTextNode(i):i(s);if(!n)return;if("then"in n){n.then((e=>{if(e&&this.view.state.field(this.stateField,false)==t)this.addInfoPane(e,s)})).catch((t=>(0,o.logException)(this.view.state,t,"completion info")))}else{this.addInfoPane(n,s)}}}addInfoPane(t,e){this.destroyInfo();let s=this.info=document.createElement("div");s.className="cm-tooltip cm-completionInfo";if(t.nodeType!=null){s.appendChild(t);this.infoDestroy=null}else{let{dom:e,destroy:i}=t;s.appendChild(e);this.infoDestroy=i||null}this.dom.appendChild(s);this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let s=this.list.firstChild,i=this.range.from;s;s=s.nextSibling,i++){if(s.nodeName!="LI"||!s.id){i--}else if(i==t){if(!s.hasAttribute("aria-selected")){s.setAttribute("aria-selected","true");e=s}}else{if(s.hasAttribute("aria-selected"))s.removeAttribute("aria-selected")}}if(e)N(this.list,e);return e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect();let s=this.info.getBoundingClientRect();let i=t.getBoundingClientRect();let n=this.space;if(!n){let t=this.dom.ownerDocument.documentElement;n={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}if(i.top>Math.min(n.bottom,e.bottom)-10||i.bottom{if(t.target==i)t.preventDefault()}));let n=null;for(let o=s.from;os.from||s.from==0)){n=t;if(typeof a!="string"&&a.header){i.appendChild(a.header(a))}else{let e=i.appendChild(document.createElement("completion-section"));e.textContent=t}}}const h=i.appendChild(document.createElement("li"));h.id=e+"-"+o;h.setAttribute("role","option");let c=this.optionClass(r);if(c)h.className=c;for(let t of this.optionContent){let e=t(r,this.view.state,this.view,l);if(e)h.appendChild(e)}}if(s.from)i.classList.add("cm-completionListIncompleteTop");if(s.tonew R(s,t,e)}function N(t,e){let s=t.getBoundingClientRect();let i=e.getBoundingClientRect();let n=s.height/t.offsetHeight;if(i.tops.bottom)t.scrollTop+=(i.bottom-s.bottom)/n}function L(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function B(t,e){let s=[];let i=null;let n=t=>{s.push(t);let{section:e}=t.completion;if(e){if(!i)i=[];let t=typeof e=="string"?e:e.name;if(!i.some((e=>e.name==t)))i.push(typeof e=="string"?{name:t}:e)}};let o=e.facet(T);for(let h of t)if(h.hasResult()){let t=h.result.getMatch;if(h.result.filter===false){for(let e of h.result.options){n(new m(e,h.source,t?t(e):[],1e9-s.length))}}else{let s=e.sliceDoc(h.from,h.to),i;let r=o.filterStrict?new P(s):new C(s);for(let e of h.result.options)if(i=r.match(e.label)){let s=!e.displayLabel?i.matched:t?t(e,i.matched):[];n(new m(e,h.source,s,i.score+(e.boost||0)))}}}if(i){let t=Object.create(null),e=0;let n=(t,e)=>{var s,i;return((s=t.rank)!==null&&s!==void 0?s:1e9)-((i=e.rank)!==null&&i!==void 0?i:1e9)||(t.namee.score-t.score||a(t.completion,e.completion)))){let t=h.completion;if(!l||l.label!=t.label||l.detail!=t.detail||l.type!=null&&t.type!=null&&l.type!=t.type||l.apply!=t.apply||l.boost!=t.boost)r.push(h);else if(L(h.completion)>L(l))r[r.length-1]=h;l=h.completion}return r}class M{constructor(t,e,s,i,n,o){this.options=t;this.attrs=e;this.tooltip=s;this.timestamp=i;this.selected=n;this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new M(this.options,U(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,s,i,n,o){if(i&&!o&&t.some((t=>t.isPending)))return i.setDisabled();let r=B(t,e);if(!r.length)return i&&t.some((t=>t.isPending))?i.setDisabled():null;let l=e.facet(T).selectOnOpen?0:-1;if(i&&i.selected!=l&&i.selected!=-1){let t=i.options[i.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:Y,above:n.aboveCursor},i?i.timestamp:Date.now(),l,false)}map(t){return new M(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new M(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,true)}}class z{constructor(t,e,s){this.active=t;this.id=e;this.open=s}static start(){return new z(W,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,s=e.facet(T);let i=s.override||e.languageDataAt("autocomplete",g(e)).map(w);let n=i.map((e=>{let i=this.active.find((t=>t.source==e))||new q(e,this.active.some((t=>t.state!=0))?1:0);return i.update(t,s)}));if(n.length==this.active.length&&n.every(((t,e)=>t==this.active[e])))n=this.active;let o=this.open,r=t.effects.some((t=>t.is(_)));if(o&&t.docChanged)o=o.map(t.changes);if(t.selection||n.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!F(n,this.active)||r)o=M.build(n,e,this.id,o,s,r);else if(o&&o.disabled&&!n.some((t=>t.isPending)))o=null;if(!o&&n.every((t=>!t.isPending))&&n.some((t=>t.hasResult())))n=n.map((t=>t.hasResult()?new q(t.source,0):t));for(let l of t.effects)if(l.is(K))o=o&&o.setSelected(l.value,this.id);return n==this.active&&o==this.open?this:new z(n,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?$:j}}function F(t,e){if(t==e)return true;for(let s=0,i=0;;){while(s-1)s["aria-activedescendant"]=t+"-"+e;return s}const W=[];function V(t,e){if(t.isUserEvent("input.complete")){let s=t.annotation(b);if(s&&e.activateOnCompletion(s))return 4|8}let s=t.isUserEvent("input.type");return s&&e.activateOnTyping?4|1:s?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class q{constructor(t,e,s=false){this.source=t;this.state=e;this.explicit=s}hasResult(){return false}get isPending(){return this.state==1}update(t,e){let s=V(t,e),i=this;if(s&8||s&16&&this.touches(t))i=new q(i.source,0);if(s&4&&i.state==0)i=new q(this.source,1);i=i.updateFor(t,s);for(let n of t.effects){if(n.is(y))i=new q(i.source,1,n.value);else if(n.is(S))i=new q(i.source,0);else if(n.is(_))for(let t of n.value)if(t.source==i.source)i=t}return i}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(g(t.state))}}class H extends q{constructor(t,e,s,i,n,o){super(t,3,e);this.limit=s;this.result=i;this.from=n;this.to=o}hasResult(){return true}updateFor(t,e){var s;if(!(e&3))return this.map(t.changes);let i=this.result;if(i.map&&!t.changes.empty)i=i.map(i,t.changes);let n=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1);let r=g(t.state);if(r>o||!i||e&2&&(g(t.startState)==this.from||rt.map(e)))}});const K=i.StateEffect.define();const Q=i.StateField.define({create(){return z.start()},update(t,e){return t.update(e)},provide:t=>[o.showTooltip.from(t,(t=>t.tooltip)),o.EditorView.contentAttributes.from(t,(t=>t.attrs))]});function X(t,e){const s=e.completion.apply||e.completion.label;let i=t.state.field(Q).active.find((t=>t.source==e.source));if(!(i instanceof H))return false;if(typeof s=="string")t.dispatch(Object.assign(Object.assign({},x(t.state,s,i.from,i.to)),{annotations:b.of(e.completion)}));else s(t,e.completion,i.from,i.to);return true}const Y=E(Q,X);function J(t,e="option"){return s=>{let i=s.state.field(Q,false);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+n*(t?1:-1):t?0:l-1;if(a<0)a=e=="page"?0:l-1;else if(a>=l)a=e=="page"?l-1:0;s.dispatch({effects:K.of(a)});return true}}const Z=t=>{let e=t.state.field(Q,false);if(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp{let e=t.state.field(Q,false);if(!e)return false;t.dispatch({effects:y.of(true)});return true};const et=t=>{let e=t.state.field(Q,false);if(!e||!e.active.some((t=>t.state!=0)))return false;t.dispatch({effects:S.of(null)});return true};class st{constructor(t,e){this.active=t;this.context=e;this.time=Date.now();this.updates=[];this.done=undefined}}const it=50,nt=1e3;const ot=o.ViewPlugin.fromClass(class{constructor(t){this.view=t;this.debounceUpdate=-1;this.running=[];this.debounceAccept=-1;this.pendingStart=false;this.composing=0;for(let e of t.state.field(Q).active)if(e.isPending)this.startQuery(e)}update(t){let e=t.state.field(Q);let s=t.state.facet(T);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Q)==e)return;let i=t.transactions.some((t=>{let e=V(t,s);return e&8||(t.selection||t.docChanged)&&!(e&3)}));for(let l=0;lit&&Date.now()-e.time>nt){for(let t of e.context.abortListeners){try{t()}catch(r){(0,o.logException)(this.view.state,r)}}e.context.abortListeners=null;this.running.splice(l--,1)}else{e.updates.push(...t.transactions)}}if(this.debounceUpdate>-1)clearTimeout(this.debounceUpdate);if(t.transactions.some((t=>t.effects.some((t=>t.is(y))))))this.pendingStart=true;let n=this.pendingStart?50:s.activateOnTypingDelay;this.debounceUpdate=e.active.some((t=>t.isPending&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),n):-1;if(this.composing!=0)for(let o of t.transactions){if(o.isUserEvent("input.type"))this.composing=2;else if(this.composing==2&&o.selection)this.composing=3}}startUpdate(){this.debounceUpdate=-1;this.pendingStart=false;let{state:t}=this.view,e=t.field(Q);for(let s of e.active){if(s.isPending&&!this.running.some((t=>t.active.source==s.source)))this.startQuery(s)}if(this.running.length&&e.open&&e.open.disabled)this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(T).updateSyncTime)}startQuery(t){let{state:e}=this.view,s=g(e);let i=new h(e,s,t.explicit,this.view);let n=new st(t,i);this.running.push(n);Promise.resolve(t.source(i)).then((t=>{if(!n.context.aborted){n.done=t||null;this.scheduleAccept()}}),(t=>{this.view.dispatch({effects:S.of(null)});(0,o.logException)(this.view.state,t)}))}scheduleAccept(){if(this.running.every((t=>t.done!==undefined)))this.accept();else if(this.debounceAccept<0)this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(T).updateSyncTime)}accept(){var t;if(this.debounceAccept>-1)clearTimeout(this.debounceAccept);this.debounceAccept=-1;let e=[];let s=this.view.state.facet(T),i=this.view.state.field(Q);for(let n=0;nt.source==o.active.source));if(r&&r.isPending){if(o.done==null){let t=new q(o.active.source,0);for(let e of o.updates)t=t.update(e,s);if(!t.isPending)e.push(t)}else{this.startQuery(r)}}}if(e.length||i.open&&i.open.disabled)this.view.dispatch({effects:_.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Q,false);if(e&&e.tooltip&&this.view.state.facet(T).closeOnBlur){let s=e.open&&(0,o.getTooltip)(this.view,e.open.tooltip);if(!s||!s.dom.contains(t.relatedTarget))setTimeout((()=>this.view.dispatch({effects:S.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){if(this.composing==3){setTimeout((()=>this.view.dispatch({effects:y.of(false)})),20)}this.composing=0}}});const rt=typeof navigator=="object"&&/Win/.test(navigator.platform);const lt=i.Prec.highest(o.EditorView.domEventHandlers({keydown(t,e){let s=e.state.field(Q,false);if(!s||!s.open||s.open.disabled||s.open.selected<0||t.key.length>1||t.ctrlKey&&!(rt&&t.altKey)||t.metaKey)return false;let i=s.open.options[s.open.selected];let n=s.active.find((t=>t.source==i.source));let o=i.completion.commitCharacters||n.result.commitCharacters;if(o&&o.indexOf(t.key)>-1)X(e,i);return false}}));const at=o.EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class ht{constructor(t,e,s,i){this.field=t;this.line=e;this.from=s;this.to=i}}class ct{constructor(t,e,s){this.field=t;this.from=e;this.to=s}map(t){let e=t.mapPos(this.from,-1,i.MapMode.TrackDel);let s=t.mapPos(this.to,1,i.MapMode.TrackDel);return e==null||s==null?null:new ct(this.field,e,s)}}class ft{constructor(t,e){this.lines=t;this.fieldPositions=e}instantiate(t,e){let s=[],i=[e];let n=t.doc.lineAt(e),o=/^\s*/.exec(n.text)[0];for(let a of this.lines){if(s.length){let s=o,n=/^\t*/.exec(a)[0].length;for(let e=0;enew ct(t.field,i[t.line]+t.from,i[t.line]+t.to)));return{text:s,ranges:r}}static parse(t){let e=[];let s=[],i=[],n;for(let o of t.split(/\r\n?|\n/)){while(n=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o)){let t=n[1]?+n[1]:null,r=n[2]||n[3]||"",l=-1;let a=r.replace(/\\[{}]/g,(t=>t[1]));for(let s=0;s=l)t.field++}i.push(new ht(l,s.length,n.index,n.index+a.length));o=o.slice(0,n.index)+r+o.slice(n.index+n[0].length)}o=o.replace(/\\([{}])/g,((t,e,n)=>{for(let o of i)if(o.line==s.length&&o.from>n){o.from--;o.to--}return e}));s.push(o)}return new ft(s,i)}}let ut=o.Decoration.widget({widget:new class extends o.WidgetType{toDOM(){let t=document.createElement("span");t.className="cm-snippetFieldPosition";return t}ignoreEvent(){return false}}});let pt=o.Decoration.mark({class:"cm-snippetField"});class dt{constructor(t,e){this.ranges=t;this.active=e;this.deco=o.Decoration.set(t.map((t=>(t.from==t.to?ut:pt).range(t.from,t.to))))}map(t){let e=[];for(let s of this.ranges){let i=s.map(t);if(!i)return null;e.push(i)}return new dt(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const mt=i.StateEffect.define({map(t,e){return t&&t.map(e)}});const gt=i.StateEffect.define();const kt=i.StateField.define({create(){return null},update(t,e){for(let s of e.effects){if(s.is(mt))return s.value;if(s.is(gt)&&t)return new dt(t.ranges,s.value)}if(t&&e.docChanged)t=t.map(e.changes);if(t&&e.selection&&!t.selectionInsideField(e.selection))t=null;return t},provide:t=>o.EditorView.decorations.from(t,(t=>t?t.deco:o.Decoration.none))});function bt(t,e){return i.EditorSelection.create(t.filter((t=>t.field==e)).map((t=>i.EditorSelection.range(t.from,t.to))))}function xt(t){let e=ft.parse(t);return(t,s,n,o)=>{let{text:r,ranges:l}=e.instantiate(t.state,n);let{main:a}=t.state.selection;let h={changes:{from:n,to:o==a.from?a.to:o,insert:i.Text.of(r)},scrollIntoView:true,annotations:s?[b.of(s),i.Transaction.userEvent.of("input.complete")]:undefined};if(l.length)h.selection=bt(l,0);if(l.some((t=>t.field>0))){let e=new dt(l,0);let s=h.effects=[mt.of(e)];if(t.state.field(kt,false)===undefined)s.push(i.StateEffect.appendConfig.of([kt,It,Dt,at]))}t.dispatch(t.state.update(h))}}function vt(t){return({state:e,dispatch:s})=>{let i=e.field(kt,false);if(!i||t<0&&i.active==0)return false;let n=i.active+t,o=t>0&&!i.ranges.some((e=>e.field==n+t));s(e.update({selection:bt(i.ranges,n),effects:mt.of(o?null:new dt(i.ranges,n)),scrollIntoView:true}));return true}}const wt=({state:t,dispatch:e})=>{let s=t.field(kt,false);if(!s)return false;e(t.update({effects:mt.of(null)}));return true};const yt=vt(1);const St=vt(-1);function Ct(t){let e=t.field(kt,false);return!!(e&&e.ranges.some((t=>t.field==e.active+1)))}function Pt(t){let e=t.field(kt,false);return!!(e&&e.active>0)}const Tt=[{key:"Tab",run:yt,shift:St},{key:"Escape",run:wt}];const At=i.Facet.define({combine(t){return t.length?t[0]:Tt}});const It=i.Prec.highest(o.keymap.compute([At],(t=>t.facet(At))));function Ot(t,e){return Object.assign(Object.assign({},e),{apply:xt(t)})}const Dt=o.EditorView.domEventHandlers({mousedown(t,e){let s=e.state.field(kt,false),i;if(!s||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return false;let n=s.ranges.find((t=>t.from<=i&&t.to>=i));if(!n||n.field==s.active)return false;e.dispatch({selection:bt(s.ranges,n.field),effects:mt.of(s.ranges.some((t=>t.field>n.field))?new dt(s.ranges,n.field):null),scrollIntoView:true});return true}});function Rt(t){let e=t.replace(/[\]\-\\]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${e}]+`,"ug")}catch(s){return new RegExp(`[w${e}]`,"g")}}function Et(t,e){return new RegExp(e(t.source),t.unicode?"u":"")}const Nt=null&&Object.create(null);function Lt(t){return Nt[t]||(Nt[t]=new WeakMap)}function Bt(t,e,s,i,n){for(let o=t.iterLines(),r=0;!o.next().done;){let{value:t}=o,l;e.lastIndex=0;while(l=e.exec(t)){if(!i[l[0]]&&r+l.index!=n){s.push({type:"text",label:l[0]});i[l[0]]=true;if(s.length>=2e3)return}}r+=t.length+1}}function Mt(t,e,s,i,n){let o=t.length>=1e3;let r=o&&e.get(t);if(r)return r;let l=[],a=Object.create(null);if(t.children){let o=0;for(let r of t.children){if(r.length>=1e3){for(let t of Mt(r,e,s,i-o,n-o)){if(!a[t.label]){a[t.label]=true;l.push(t)}}}else{Bt(r,s,l,a,n-o)}o+=r.length+1}}else{Bt(t,s,l,a,n)}if(o&&l.length<2e3)e.set(t,l);return l}const zt=t=>{let e=t.state.languageDataAt("wordChars",t.pos).join("");let s=Rt(e);let i=t.matchBefore(Et(s,(t=>t+"$")));if(!i&&!t.explicit)return null;let n=i?i.from:t.pos;let o=Mt(t.state.doc,Lt(e),s,5e4,n);return{from:n,options:o,validFor:Et(s,(t=>"^"+t))}};const Ft={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]};const $t=i.StateEffect.define({map(t,e){let s=e.mapPos(t,-1,i.MapMode.TrackAfter);return s==null?undefined:s}});const jt=new class extends i.RangeValue{};jt.startSide=1;jt.endSide=-1;const Ut=i.StateField.define({create(){return i.RangeSet.empty},update(t,e){t=t.map(e.changes);if(e.selection){let s=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=s.from&&t<=s.to})}for(let s of e.effects)if(s.is($t))t=t.update({add:[jt.range(s.value,s.value+1)]});return t}});function Wt(){return[_t,Ut]}const Vt="()[]{}<>«»»«[]{}";function qt(t){for(let e=0;e{if((Gt?t.composing:t.compositionStarted)||t.state.readOnly)return false;let o=t.state.selection.main;if(n.length>2||n.length==2&&(0,i.codePointSize)((0,i.codePointAt)(n,0))==1||e!=o.from||s!=o.to)return false;let r=Xt(t.state,n);if(!r)return false;t.dispatch(r);return true}));const Kt=({state:t,dispatch:e})=>{if(t.readOnly)return false;let s=Ht(t,t.selection.main.head);let n=s.brackets||Ft.brackets;let o=null,r=t.changeByRange((e=>{if(e.empty){let s=Zt(t.doc,e.head);for(let o of n){if(o==s&&Jt(t.doc,e.head)==qt((0,i.codePointAt)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:i.EditorSelection.cursor(e.head-o.length)}}}return{range:o=e}}));if(!o)e(t.update(r,{scrollIntoView:true,userEvent:"delete.backward"}));return!o};const Qt=[{key:"Backspace",run:Kt}];function Xt(t,e){let s=Ht(t,t.selection.main.head);let n=s.brackets||Ft.brackets;for(let o of n){let r=qt((0,i.codePointAt)(o,0));if(e==o)return r==o?se(t,o,n.indexOf(o+o+o)>-1,s):te(t,o,r,s.before||Ft.before);if(e==r&&Yt(t,t.selection.main.from))return ee(t,o,r)}return null}function Yt(t,e){let s=false;t.field(Ut).between(0,t.doc.length,(t=>{if(t==e)s=true}));return s}function Jt(t,e){let s=t.sliceString(e,e+2);return s.slice(0,(0,i.codePointSize)((0,i.codePointAt)(s,0)))}function Zt(t,e){let s=t.sliceString(e-2,e);return(0,i.codePointSize)((0,i.codePointAt)(s,0))==s.length?s:s.slice(1)}function te(t,e,s,n){let o=null,r=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:s,from:r.to}],effects:$t.of(r.to+e.length),range:i.EditorSelection.range(r.anchor+e.length,r.head+e.length)};let l=Jt(t.doc,r.head);if(!l||/\s/.test(l)||n.indexOf(l)>-1)return{changes:{insert:e+s,from:r.head},effects:$t.of(r.head+e.length),range:i.EditorSelection.cursor(r.head+e.length)};return{range:o=r}}));return o?null:t.update(r,{scrollIntoView:true,userEvent:"input.type"})}function ee(t,e,s){let n=null,o=t.changeByRange((e=>{if(e.empty&&Jt(t.doc,e.head)==s)return{changes:{from:e.head,to:e.head+s.length,insert:s},range:i.EditorSelection.cursor(e.head+s.length)};return n={range:e}}));return n?null:t.update(o,{scrollIntoView:true,userEvent:"input.type"})}function se(t,e,s,n){let o=n.stringPrefixes||Ft.stringPrefixes;let r=null,l=t.changeByRange((n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:$t.of(n.to+e.length),range:i.EditorSelection.range(n.anchor+e.length,n.head+e.length)};let l=n.head,a=Jt(t.doc,l),h;if(a==e){if(ie(t,l)){return{changes:{insert:e+e,from:l},effects:$t.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}else if(Yt(t,l)){let n=s&&t.sliceDoc(l,l+e.length*3)==e+e+e;let o=n?e+e+e:e;return{changes:{from:l,to:l+o.length,insert:o},range:i.EditorSelection.cursor(l+o.length)}}}else if(s&&t.sliceDoc(l-2*e.length,l)==e+e&&(h=oe(t,l-2*e.length,o))>-1&&ie(t,h)){return{changes:{insert:e+e+e+e,from:l},effects:$t.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}else if(t.charCategorizer(l)(a)!=i.CharCategory.Word){if(oe(t,l,o)>-1&&!ne(t,l,e,o))return{changes:{insert:e+e,from:l},effects:$t.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}return{range:r=n}}));return r?null:t.update(l,{scrollIntoView:true,userEvent:"input.type"})}function ie(t,e){let s=(0,l.syntaxTree)(t).resolveInner(e+1);return s.parent&&s.from==e}function ne(t,e,s,i){let n=(0,l.syntaxTree)(t).resolveInner(e,-1);let o=i.reduce(((t,e)=>Math.max(t,e.length)),0);for(let r=0;r<5;r++){let r=t.sliceDoc(n.from,Math.min(n.to,n.from+s.length+o));let l=r.indexOf(s);if(!l||l>-1&&i.indexOf(r.slice(0,l))>-1){let e=n.firstChild;while(e&&e.from==n.from&&e.to-e.from>s.length+l){if(t.sliceDoc(e.to-s.length,e.to)==s)return false;e=e.firstChild}return true}let a=n.to==e&&n.parent;if(!a)break;n=a}return false}function oe(t,e,s){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=i.CharCategory.Word)return e;for(let o of s){let s=e-o.length;if(t.sliceDoc(s,e)==o&&n(t.sliceDoc(s-1,s))!=i.CharCategory.Word)return s}return-1}function re(t={}){return[lt,Q,T.of(t),ot,ae,at]}const le=[{key:"Ctrl-Space",run:tt},{mac:"Alt-`",run:tt},{key:"Escape",run:et},{key:"ArrowDown",run:J(true)},{key:"ArrowUp",run:J(false)},{key:"PageDown",run:J(true,"page")},{key:"PageUp",run:J(false,"page")},{key:"Enter",run:Z}];const ae=i.Prec.highest(o.keymap.computeN([T],(t=>t.facet(T).defaultKeymap?[le]:[])));function he(t){let e=t.field(Q,false);return e&&e.active.some((t=>t.isPending))?"pending":e&&e.active.some((t=>t.state!=0))?"active":null}const ce=new WeakMap;function fe(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;if(!s||s.disabled)return[];let i=ce.get(s.options);if(!i)ce.set(s.options,i=s.options.map((t=>t.completion)));return i}function ue(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;return s&&!s.disabled&&s.selected>=0?s.options[s.selected].completion:null}function pe(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;return s&&!s.disabled&&s.selected>=0?s.selected:null}function de(t){return K.of(t)}},27421:(t,e,s)=>{"use strict";s.d(e,{Aj:()=>O,Lu:()=>g,U1:()=>D,uC:()=>m});var i=s(66575);var n=s.n(i);var o=s(65606);class r{constructor(t,e,s,i,n,o,r,l,a,h=0,c){this.p=t;this.stack=e;this.state=s;this.reducePos=i;this.pos=n;this.score=o;this.buffer=r;this.bufferBase=l;this.curContext=a;this.lookAhead=h;this.parent=c}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new r(t,[],e,s,s,0,[],0,i?new l(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length);this.state=t}reduce(t){var e;let s=t>>19,i=t&65535;let{parser:n}=this.p;let o=n.dynamicPrecedence(i);if(o)this.score+=o;if(s==0){this.pushState(n.getGoto(this.state,i,true),this.reducePos);if(i=2e3&&!((e=this.p.parser.nodeSet.types[i])===null||e===void 0?void 0:e.isAnonymous)){if(l==this.p.lastBigReductionStart){this.p.bigReductionCount++;this.p.lastBigReductionSize=a}else if(this.p.lastBigReductionSizer)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,s,i=4,n=false){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&t.buffer[i-4]==0&&t.buffer[i-1]>-1){if(e==s)return;if(t.buffer[i-2]>=e){t.buffer[i-2]=s;return}}}if(!n||this.pos==s){this.buffer.push(t,e,s,i)}else{let n=this.buffer.length;if(n>0&&this.buffer[n-4]!=0)while(n>0&&this.buffer[n-2]>s){this.buffer[n]=this.buffer[n-4];this.buffer[n+1]=this.buffer[n-3];this.buffer[n+2]=this.buffer[n-2];this.buffer[n+3]=this.buffer[n-1];n-=4;if(i>4)i-=4}this.buffer[n]=t;this.buffer[n+1]=e;this.buffer[n+2]=s;this.buffer[n+3]=i}}shift(t,e,s,i){if(t&131072){this.pushState(t&65535,this.pos)}else if((t&262144)==0){let n=t,{parser:o}=this.p;if(i>this.pos||e<=o.maxNode){this.pos=i;if(!o.stateFlag(n,1))this.reducePos=i}this.pushState(n,s);this.shiftContext(e,s);if(e<=o.maxNode)this.buffer.push(e,s,i,4)}else{this.pos=i;this.shiftContext(e,s);if(e<=this.p.parser.maxNode)this.buffer.push(e,s,i,4)}}apply(t,e,s,i){if(t&65536)this.reduce(t);else this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;if(s<0||this.p.reused[s]!=t){this.p.reused.push(t);s++}let i=this.pos;this.reducePos=this.pos=i+t.length;this.pushState(e,i);this.buffer.push(s,i,this.reducePos,-1);if(this.curContext)this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this;let e=t.buffer.length;while(e>0&&t.buffer[e-2]>t.reducePos)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;while(t&&i==t.bufferBase)t=t.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;if(s)this.storeNode(t,this.pos,e,4);this.storeNode(0,this.pos,e,s?8:4);this.pos=this.reducePos=e;this.score-=190}canShift(t){for(let e=new a(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return false;if((s&65536)==0)return true;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>4<<1||this.stack.length>=120){let s=[];for(let i=0,n;ie&1&&t==i)))s.push(e[t],i)}e=s}let s=[];for(let i=0;i>19,i=e&65535;let n=this.stack.length-s*3;if(n<0||t.getGoto(this.stack[n],i,false)<0){let t=this.findForcedReduction();if(t==null)return false;e=t}this.storeNode(0,this.pos,this.pos,4,true);this.score-=100}this.reducePos=this.pos;this.reduce(e);return true}findForcedReduction(){let{parser:t}=this.p,e=[];let s=(i,n)=>{if(e.includes(i))return;e.push(i);return t.allActions(i,(e=>{if(e&(262144|131072));else if(e&65536){let s=(e>>19)-n;if(s>1){let i=e&65535,n=this.stack.length-s*3;if(n>=0&&t.getGoto(this.stack[n],i,false)>=0)return s<<19|65536|i}}else{let t=s(e,n+1);if(t!=null)return t}}))};return s(this.state,0)}forceAll(){while(!this.p.parser.stateFlag(this.state,2)){if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,true);break}}return this}get deadEnd(){if(this.stack.length!=3)return false;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,true);this.state=this.stack[0];this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return false;for(let e=0;ethis.lookAhead){this.emitLookAhead();this.lookAhead=t}}close(){if(this.curContext&&this.curContext.tracker.strict)this.emitContext();if(this.lookAhead>0)this.emitLookAhead()}}class l{constructor(t,e){this.tracker=t;this.context=e;this.hash=t.strict?t.hash(e):0}}class a{constructor(t){this.start=t;this.state=t.state;this.stack=t.stack;this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;if(s==0){if(this.stack==this.start.stack)this.stack=this.stack.slice();this.stack.push(this.state,0,0);this.base+=3}else{this.base-=(s-1)*3}let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,true);this.state=i}}class h{constructor(t,e,s){this.stack=t;this.pos=e;this.index=s;this.buffer=t.buffer;if(this.index==0)this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new h(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;if(t!=null){this.index=this.stack.bufferBase-t.bufferBase;this.stack=t;this.buffer=t.buffer}}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4;this.pos-=4;if(this.index==0)this.maybeNext()}fork(){return new h(this.stack,this.pos,this.index)}}function c(t,e=Uint16Array){if(typeof t!="string")return t;let s=null;for(let i=0,n=0;i=92)e--;if(e>=34)e--;let n=e-32;if(n>=46){n-=46;s=true}o+=n;if(s)break;o*=46}if(s)s[n++]=o;else s=new e(o)}return s}class f{constructor(){this.start=-1;this.value=-1;this.end=-1;this.extended=-1;this.lookAhead=0;this.mask=0;this.context=0}}const u=new f;class p{constructor(t,e){this.input=t;this.ranges=e;this.chunk="";this.chunkOff=0;this.chunk2="";this.chunk2Pos=0;this.next=-1;this.token=u;this.rangeIndex=0;this.pos=this.chunkPos=e[0].from;this.range=e[0];this.end=e[e.length-1].to;this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex;let n=this.pos+t;while(ns.to:n>=s.to){if(i==this.ranges.length-1)return null;let t=this.ranges[++i];n+=t.from-s.to;s=t}return n}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&se.to)this.chunk2=this.chunk2.slice(0,e.to-s);i=this.chunk2.charCodeAt(0)}}if(s>=this.token.lookAhead)this.token.lookAhead=s+1;return i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t;this.chunkPos=this.pos;this.chunkOff=0}}readNext(){if(this.chunkOff>=this.chunk.length){this.getChunk();if(this.chunkOff==this.chunk.length)return this.next=-1}return this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){this.chunkOff+=t;while(this.pos+t>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos;this.range=this.ranges[++this.rangeIndex];this.pos=this.range.from}this.pos+=t;if(this.pos>=this.token.lookAhead)this.token.lookAhead=this.pos+1;return this.readNext()}setDone(){this.pos=this.chunkPos=this.end;this.range=this.ranges[this.rangeIndex=this.ranges.length-1];this.chunk="";return this.next=-1}reset(t,e){if(e){this.token=e;e.start=t;e.lookAhead=t+1;e.value=e.extended=-1}else{this.token=u}if(this.pos!=t){this.pos=t;if(t==this.end){this.setDone();return this}while(t=this.range.to)this.range=this.ranges[++this.rangeIndex];if(t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;if(i.to>t)s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e))}return s}}class d{constructor(t,e){this.data=t;this.id=e}token(t,e){let{parser:s}=e.p;k(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}d.prototype.contextual=d.prototype.fallback=d.prototype.extend=false;class m{constructor(t,e,s){this.precTable=e;this.elseToken=s;this.data=typeof t=="string"?c(t):t}token(t,e){let s=t.pos,i=0;for(;;){let s=t.next<0,n=t.resolveOffset(1,1);k(this.data,t,e,0,this.data,this.precTable);if(t.token.value>-1)break;if(this.elseToken==null)return;if(!s)i++;if(n==null)break;t.reset(n,t.token)}if(i){t.reset(s,t.token);t.acceptToken(this.elseToken,i)}}}m.prototype.contextual=d.prototype.fallback=d.prototype.extend=false;class g{constructor(t,e={}){this.token=t;this.contextual=!!e.contextual;this.fallback=!!e.fallback;this.extend=!!e.extend}}function k(t,e,s,i,n,o){let r=0,l=1<0){let s=t[f];if(a.allows(s)&&(e.token.value==-1||e.token.value==s||x(s,e.token.value,n,o))){e.acceptToken(s);break}}let i=e.next,h=0,c=t[r+2];if(e.next<0&&c>h&&t[s+c*3-3]==65535){r=t[s+c*3-1];continue t}for(;h>1;let o=s+n+(n<<1);let l=t[o],a=t[o+1]||65536;if(i=a)h=n+1;else{r=t[o+2];e.advance();continue t}}break}}function b(t,e,s){for(let i=e,n;(n=t[i])!=65535;i++)if(n==s)return i-e;return-1}function x(t,e,s,i){let n=b(s,i,e);return n<0||b(s,i,t)e)&&!n.type.isError)return s<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(s<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return s<0?0:t.length}}}class S{constructor(t,e){this.fragments=t;this.nodeSet=e;this.i=0;this.fragment=null;this.safeFrom=-1;this.safeTo=-1;this.trees=[];this.start=[];this.index=[];this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){this.safeFrom=t.openStart?y(t.tree,t.from+t.offset,1)-t.offset:t.from;this.safeTo=t.openEnd?y(t.tree,t.to+t.offset,-1)-t.offset:t.to;while(this.trees.length){this.trees.pop();this.start.pop();this.index.pop()}this.trees.push(t.tree);this.start.push(-t.offset);this.index.push(0);this.nextStart=this.safeFrom}else{this.nextStart=1e9}}nodeAt(t){if(tt){this.nextStart=r;return null}if(o instanceof i.Tree){if(r==t){if(r=Math.max(this.safeFrom,t)){this.trees.push(o);this.start.push(r);this.index.push(0)}}else{this.index[e]++;this.nextStart=r+o.length}}}}class C{constructor(t,e){this.stream=e;this.tokens=[];this.mainToken=null;this.actions=[];this.tokens=t.tokenizers.map((t=>new f))}getActions(t){let e=0;let s=null;let{parser:i}=t.p,{tokenizers:n}=i;let o=i.stateSlot(t.state,3);let r=t.curContext?t.curContext.hash:0;let l=0;for(let a=0;ah.end+25)l=Math.max(h.lookAhead,l);if(h.value!=0){let n=e;if(h.extended>-1)e=this.addActions(t,h.extended,h.end,e);e=this.addActions(t,h.value,h.end,e);if(!i.extend){s=h;if(e>n)break}}}while(this.actions.length>e)this.actions.pop();if(l)t.setLookAhead(l);if(!s&&t.pos==this.stream.end){s=new f;s.value=t.p.parser.eofTerm;s.start=s.end=t.pos;e=this.addActions(t,s.value,s.end,e)}this.mainToken=s;return this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new f,{pos:s,p:i}=t;e.start=s;e.end=Math.min(s+1,i.stream.end);e.value=s==i.stream.end?i.parser.eofTerm:0;return e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);e.token(this.stream.reset(i,t),s);if(t.value>-1){let{parser:e}=s.p;for(let i=0;i=0&&s.p.parser.dialect.allows(n>>1)){if((n&1)==0)t.value=n>>1;else t.extended=n>>1;break}}}else{t.value=0;t.end=this.stream.clipPos(i+1)}}putAction(t,e,s,i){for(let n=0;nt.bufferLength*4?new S(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos;let s=this.stacks=[];let i,n;if(this.bigReductionCount>300&&t.length==1){let[e]=t;while(e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart){}this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe){s.push(r)}else if(this.advanceStack(r,s,t)){continue}else{if(!i){i=[];n=[]}i.push(r);let t=this.tokens.getMainToken(r);n.push(t.value,t.end)}break}}if(!s.length){let t=i&&E(i);if(t){if(v)console.log("Finish with "+this.stackID(t));return this.stackToTree(t)}if(this.parser.strict){if(v&&i)console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none"));throw new SyntaxError("No parse at "+e)}if(!this.recovering)this.recovering=5}if(this.recovering&&i){let t=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,n,s);if(t){if(v)console.log("Force-finish "+this.stackID(t));return this.stackToTree(t.forceAll())}}if(this.recovering){let t=this.recovering==1?1:this.recovering*3;if(s.length>t){s.sort(((t,e)=>e.score-t.score));while(s.length>t)s.pop()}if(s.some((t=>t.reducePos>e)))this.recovering--}else if(s.length>1){t:for(let t=0;t500&&n.buffer.length>500){if((e.score-n.score||e.buffer.length-n.buffer.length)>0){s.splice(i--,1)}else{s.splice(t--,1);continue t}}}}if(s.length>12)s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,s=e?t.curContext.hash:0;for(let l=this.fragments.nodeAt(n);l;){let n=this.parser.nodeSet.types[l.type.id]==l.type?o.getGoto(t.state,l.type.id):-1;if(n>-1&&l.length&&(!e||(l.prop(i.NodeProp.contextHash)||0)==s)){t.useNode(l,n);if(v)console.log(r+this.stackID(t)+` (via reuse of ${o.getName(l.type.id)})`);return true}if(!(l instanceof i.Tree)||l.children.length==0||l.positions[0]>0)break;let a=l.children[0];if(a instanceof i.Tree&&l.positions[0]==0)l=a;else break}}let l=o.stateSlot(t.state,4);if(l>0){t.reduce(l);if(v)console.log(r+this.stackID(t)+` (via always-reduce ${o.getName(l&65535)})`);return true}if(t.stack.length>=8400){while(t.stack.length>6e3&&t.forceReduce()){}}let a=this.tokens.getActions(t);for(let i=0;in)e.push(u);else s.push(u)}return false}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return false;if(t.pos>s){T(t,e);return true}}}runRecovery(t,e,s){let i=null,n=false;for(let o=0;o ":"";if(r.deadEnd){if(n)continue;n=true;r.restart();if(v)console.log(h+this.stackID(r)+" (restarted)");let t=this.advanceFully(r,s);if(t)continue}let c=r.split(),f=h;for(let t=0;c.forceReduce()&&t<10;t++){if(v)console.log(f+this.stackID(c)+" (via force-reduce)");let t=this.advanceFully(c,s);if(t)break;if(v)f=this.stackID(c)+" -> "}for(let t of r.recoverByInsert(l)){if(v)console.log(h+this.stackID(t)+" (via recover-insert)");this.advanceFully(t,s)}if(this.stream.end>r.pos){if(a==r.pos){a++;l=0}r.recoverByDelete(l,a);if(v)console.log(h+this.stackID(r)+` (via recover-delete ${this.parser.getName(l)})`);T(r,s)}else if(!i||i.scoret;class O{constructor(t){this.start=t.start;this.shift=t.shift||I;this.reduce=t.reduce||I;this.reuse=t.reuse||I;this.hash=t.hash||(()=>0);this.strict=t.strict!==false}}class D extends i.Parser{constructor(t){super();this.wrappers=[];if(t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (${14})`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let i=0;it.topRules[e][1]));let n=[];for(let i=0;i=0){o(s,t,l[e++])}else{let i=l[e+-s];for(let n=-s;n>0;n--)o(l[e++],t,i);e++}}}this.nodeSet=new i.NodeSet(e.map(((e,o)=>i.NodeType.define({name:o>=this.minRepeatTerm?undefined:e,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))));if(t.propSources)this.nodeSet=this.nodeSet.extend(...t.propSources);this.strict=false;this.bufferLength=i.DefaultBufferLength;let r=c(t.tokenData);this.context=t.context;this.specializerSpecs=t.specialized||[];this.specialized=new Uint16Array(this.specializerSpecs.length);for(let i=0;itypeof t=="number"?new d(r,t):t));this.topRules=t.topRules;this.dialects=t.dialects||{};this.dynamicPrecedences=t.dynamicPrecedences||null;this.tokenPrecTable=t.tokenPrec;this.termNames=t.termNames||null;this.maxNode=this.nodeSet.types.length-1;this.dialect=this.parseDialect();this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new P(this,t,e,s);for(let n of this.wrappers)i=n(i,t,e,s);return i}getGoto(t,e,s=false){let i=this.goto;if(e>=i[0])return-1;for(let n=i[e+1];;){let e=i[n++],o=e&1;let r=i[n++];if(o&&s)return r;for(let s=n+(e>>1);n0}validAction(t,e){return!!this.allActions(t,(t=>t==e?true:null))}allActions(t,e){let s=this.stateSlot(t,4);let i=s?e(s):undefined;for(let n=this.stateSlot(t,1);i==null;n+=3){if(this.data[n]==65535){if(this.data[n+1]==1)n=R(this.data,n+2);else break}i=e(R(this.data,n+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535){if(this.data[s+1]==1)s=R(this.data,s+2);else break}if((this.data[s+2]&65536>>16)==0){let t=this.data[s+1];if(!e.some(((e,s)=>s&1&&e==t)))e.push(this.data[s],t)}}return e}configure(t){let e=Object.assign(Object.create(D.prototype),this);if(t.props)e.nodeSet=this.nodeSet.extend(...t.props);if(t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}if(t.tokenizers)e.tokenizers=this.tokenizers.map((e=>{let s=t.tokenizers.find((t=>t.from==e));return s?s.to:e}));if(t.specializers){e.specializers=this.specializers.slice();e.specializerSpecs=this.specializerSpecs.map(((s,i)=>{let n=t.specializers.find((t=>t.from==s.external));if(!n)return s;let o=Object.assign(Object.assign({},s),{external:n.to});e.specializers[i]=N(o);return o}))}if(t.contextTracker)e.context=t.contextTracker;if(t.dialect)e.dialect=this.parseDialect(t.dialect);if(t.strict!=null)e.strict=t.strict;if(t.wrap)e.wrappers=e.wrappers.concat(t.wrap);if(t.bufferLength!=null)e.bufferLength=t.bufferLength;return e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map((()=>false));if(t)for(let n of t.split(" ")){let t=e.indexOf(n);if(t>=0)s[t]=true}let i=null;for(let n=0;nt)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.scoret.external(s,i)<<1|e}return t.get}},65606:t=>{var e=t.exports={};var s;var i;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){s=setTimeout}else{s=n}}catch(t){s=n}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=o}}catch(t){i=o}})();function r(t){if(s===setTimeout){return setTimeout(t,0)}if((s===n||!s)&&setTimeout){s=setTimeout;return setTimeout(t,0)}try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function l(t){if(i===clearTimeout){return clearTimeout(t)}if((i===o||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(t)}try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}var a=[];var h=false;var c;var f=-1;function u(){if(!h||!c){return}h=false;if(c.length){a=c.concat(a)}else{f=-1}if(a.length){p()}}function p(){if(h){return}var t=r(u);h=true;var e=a.length;while(e){c=a;a=[];while(++f1){for(var s=1;s{a.r(t);a.d(t,{asterisk:()=>o});var n=["exten","same","include","ignorepat","switch"],i=["#include","#exec"],r=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function s(e,t){var a="";var r=e.next();if(t.blockComment){if(r=="-"&&e.match("-;",true)){t.blockComment=false}else if(e.skipTo("--;")){e.next();e.next();e.next();t.blockComment=false}else{e.skipToEnd()}return"comment"}if(r==";"){if(e.match("--",true)){if(!e.match("-",false)){t.blockComment=true;return"comment"}}e.skipToEnd();return"comment"}if(r=="["){e.skipTo("]");e.eat("]");return"header"}if(r=='"'){e.skipTo('"');return"string"}if(r=="'"){e.skipTo("'");return"string.special"}if(r=="#"){e.eatWhile(/\w/);a=e.current();if(i.indexOf(a)!==-1){e.skipToEnd();return"strong"}}if(r=="$"){var s=e.peek();if(s=="{"){e.skipTo("}");e.eat("}");return"variableName.special"}}e.eatWhile(/\w/);a=e.current();if(n.indexOf(a)!==-1){t.extenStart=true;switch(a){case"same":t.extenSame=true;break;case"include":case"switch":case"ignorepat":t.extenInclude=true;break;default:break}return"atom"}}const o={name:"asterisk",startState:function(){return{blockComment:false,extenStart:false,extenSame:false,extenInclude:false,extenExten:false,extenPriority:false,extenApplication:false}},token:function(e,t){var a="";if(e.eatSpace())return null;if(t.extenStart){e.eatWhile(/[^\s]/);a=e.current();if(/^=>?$/.test(a)){t.extenExten=true;t.extenStart=false;return"strong"}else{t.extenStart=false;e.skipToEnd();return"error"}}else if(t.extenExten){t.extenExten=false;t.extenPriority=true;e.eatWhile(/[^,]/);if(t.extenInclude){e.skipToEnd();t.extenPriority=false;t.extenInclude=false}if(t.extenSame){t.extenPriority=false;t.extenSame=false;t.extenApplication=true}return"tag"}else if(t.extenPriority){t.extenPriority=false;t.extenApplication=true;e.next();if(t.extenSame)return null;e.eatWhile(/[^,]/);return"number"}else if(t.extenApplication){e.eatWhile(/,/);a=e.current();if(a===",")return null;e.eatWhile(/\w/);a=e.current().toLowerCase();t.extenApplication=false;if(r.indexOf(a)!==-1){return"def"}}else{return s(e,t)}return null},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1445.a0e099c27d073217031a.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1445.a0e099c27d073217031a.js new file mode 100644 index 0000000000000000000000000000000000000000..7acc25e95b492bd98fc51bb34b5a693b533d45f6 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1445.a0e099c27d073217031a.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1445],{49746:()=>{},19977:()=>{},197:()=>{},21866:()=>{},52739:()=>{}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1449.7026e8748d2a77e15d5b.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1449.7026e8748d2a77e15d5b.js new file mode 100644 index 0000000000000000000000000000000000000000..bc96fc667e5b1301262bd037a543ea5bf4004790 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1449.7026e8748d2a77e15d5b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1449],{21449:(e,i,$)=>{$.r(i);$.d(i,{mirc:()=>m});function r(e){var i={},$=e.split(" ");for(var r=0;r<$.length;++r)i[$[r]]=true;return i}var t=r("$! $$ $& $? $+ $abook $abs $active $activecid "+"$activewid $address $addtok $agent $agentname $agentstat $agentver "+"$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime "+"$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind "+"$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes "+"$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color "+"$com $comcall $comchan $comerr $compact $compress $comval $cos $count "+"$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight "+"$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress "+"$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll "+"$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error "+"$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir "+"$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve "+"$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt "+"$group $halted $hash $height $hfind $hget $highlight $hnick $hotline "+"$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil "+"$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect "+"$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile "+"$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive "+"$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock "+"$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer "+"$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext "+"$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode "+"$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile "+"$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly "+"$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree "+"$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo "+"$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex "+"$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline "+"$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin "+"$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname "+"$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped "+"$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp "+"$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel "+"$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver "+"$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor");var a=r("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice "+"away background ban bcopy beep bread break breplace bset btrunc bunset bwrite "+"channel clear clearall cline clipboard close cnick color comclose comopen "+"comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver "+"debug dec describe dialog did didtok disable disconnect dlevel dline dll "+"dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace "+"drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable "+"events exit fclose filter findtext finger firewall flash flist flood flush "+"flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove "+"gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd "+"halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear "+"ialmark identd if ignore iline inc invite iuser join kick linesep links list "+"load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice "+"notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice "+"qme qmsg query queryn quit raw reload remini remote remove rename renwin "+"reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini "+"say scid scon server set showmirc signam sline sockaccept sockclose socklist "+"socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite "+"sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize "+"toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho "+"var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum "+"isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower "+"isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs "+"elseif else goto menu nicklist status title icon size option text edit "+"button check radio box scroll list combo link tab item");var n=r("if elseif else and not or eq ne in ni for foreach while switch");var s=/[+\-*&%=<>!?^\/\|]/;function o(e,i,$){i.tokenize=$;return $(e,i)}function l(e,i){var $=i.beforeParams;i.beforeParams=false;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r)){if(r=="("&&$)i.inParams=true;else if(r==")")i.inParams=false;return null}else if(/\d/.test(r)){e.eatWhile(/[\w\.]/);return"number"}else if(r=="\\"){e.eat("\\");e.eat(/./);return"number"}else if(r=="/"&&e.eat("*")){return o(e,i,c)}else if(r==";"&&e.match(/ *\( *\(/)){return o(e,i,d)}else if(r==";"&&!i.inParams){e.skipToEnd();return"comment"}else if(r=='"'){e.eat(/"/);return"keyword"}else if(r=="$"){e.eatWhile(/[$_a-z0-9A-Z\.:]/);if(t&&t.propertyIsEnumerable(e.current().toLowerCase())){return"keyword"}else{i.beforeParams=true;return"builtin"}}else if(r=="%"){e.eatWhile(/[^,\s()]/);i.beforeParams=true;return"string"}else if(s.test(r)){e.eatWhile(s);return"operator"}else{e.eatWhile(/[\w\$_{}]/);var l=e.current().toLowerCase();if(a&&a.propertyIsEnumerable(l))return"keyword";if(n&&n.propertyIsEnumerable(l)){i.beforeParams=true;return"keyword"}return null}}function c(e,i){var $=false,r;while(r=e.next()){if(r=="/"&&$){i.tokenize=l;break}$=r=="*"}return"comment"}function d(e,i){var $=0,r;while(r=e.next()){if(r==";"&&$==2){i.tokenize=l;break}if(r==")")$++;else if(r!=" ")$=0}return"meta"}const m={name:"mirc",startState:function(){return{tokenize:l,beforeParams:false,inParams:false}},token:function(e,i){if(e.eatSpace())return null;return i.tokenize(e,i)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1491.010c623dd546db976e95.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1491.010c623dd546db976e95.js new file mode 100644 index 0000000000000000000000000000000000000000..9d6fec034e0b98e3e27e985c54a399c9934e3f3e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1491.010c623dd546db976e95.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1491],{21491:(e,t,i)=>{i.r(t);i.d(t,{AsyncCellRenderer:()=>k,BasicKeyHandler:()=>y,BasicMouseHandler:()=>b,BasicSelectionModel:()=>O,BooleanCellEditor:()=>V,CellEditor:()=>D,CellEditorController:()=>K,CellGroup:()=>S,CellRenderer:()=>x,DataGrid:()=>ee,DataModel:()=>q,DateCellEditor:()=>X,DynamicOptionCellEditor:()=>Y,GraphicsContext:()=>$,HyperlinkRenderer:()=>M,ImageRenderer:()=>ne,InputCellEditor:()=>G,IntegerCellEditor:()=>P,IntegerInputValidator:()=>T,JSONModel:()=>ie,MutableDataModel:()=>j,NumberCellEditor:()=>A,NumberInputValidator:()=>B,OptionCellEditor:()=>N,PassInputValidator:()=>L,RendererMap:()=>J,SectionList:()=>Z,SelectionModel:()=>R,TextCellEditor:()=>I,TextInputValidator:()=>W,TextRenderer:()=>v,resolveOption:()=>F});var s=i(76326);var o=i.n(s);var r=i(77162);var n=i.n(r);var l=i(10970);var a=i.n(l);var h=i(34236);var c=i.n(h);var d=i(2336);var u=i.n(d);var f=i(1143);var _=i.n(f);var m=i(42856);var g=i.n(m);var p=i(5592);var w=i.n(p);class y{constructor(){this._disposed=false}get isDisposed(){return this._disposed}dispose(){this._disposed=true}onKeyDown(e,t){if(e.editable&&e.selectionModel.cursorRow!==-1&&e.selectionModel.cursorColumn!==-1){const i=String.fromCharCode(t.keyCode);if(/[a-zA-Z0-9-_ ]/.test(i)){const i=e.selectionModel.cursorRow;const s=e.selectionModel.cursorColumn;const o={grid:e,row:i,column:s};e.editorController.edit(o);if((0,r.getKeyboardLayout)().keyForKeydownEvent(t)==="Space"){t.stopPropagation();t.preventDefault()}return}}switch((0,r.getKeyboardLayout)().keyForKeydownEvent(t)){case"ArrowLeft":this.onArrowLeft(e,t);break;case"ArrowRight":this.onArrowRight(e,t);break;case"ArrowUp":this.onArrowUp(e,t);break;case"ArrowDown":this.onArrowDown(e,t);break;case"PageUp":this.onPageUp(e,t);break;case"PageDown":this.onPageDown(e,t);break;case"Escape":this.onEscape(e,t);break;case"Delete":this.onDelete(e,t);break;case"C":this.onKeyC(e,t);break;case"Enter":if(e.selectionModel){e.moveCursor(t.shiftKey?"up":"down");e.scrollToCursor()}break;case"Tab":if(e.selectionModel){e.moveCursor(t.shiftKey?"left":"right");e.scrollToCursor();t.stopPropagation();t.preventDefault()}break}}onArrowLeft(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(0,e.scrollY);return}if(!i){e.scrollByStep("left");return}let n=i.selectionMode;if(n==="row"&&r){e.scrollTo(0,e.scrollY);return}if(n==="row"){e.scrollByStep("left");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=h?h.c2-1:0;_=l;m=a;g="current"}else if(r){c=l;d=l;u=0;f=0;_=c;m=u;g="all"}else{c=l;d=l;u=a-1;f=a-1;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="column"){e.scrollToColumn(h.c2)}else{e.scrollToCursor()}}onArrowRight(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.maxScrollX,e.scrollY);return}if(!i){e.scrollByStep("right");return}let n=i.selectionMode;if(n==="row"&&r){e.scrollTo(e.maxScrollX,e.scrollY);return}if(n==="row"){e.scrollByStep("right");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=Infinity;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=h?h.c2+1:0;_=l;m=a;g="current"}else if(r){c=l;d=l;u=Infinity;f=Infinity;_=c;m=u;g="all"}else{c=l;d=l;u=a+1;f=a+1;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="column"){e.scrollToColumn(h.c2)}else{e.scrollToCursor()}}onArrowUp(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.scrollX,0);return}if(!i){e.scrollByStep("up");return}let n=i.selectionMode;if(n==="column"&&r){e.scrollTo(e.scrollX,0);return}if(n==="column"){e.scrollByStep("up");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2-1:0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(r){c=0;d=0;u=a;f=a;_=c;m=u;g="all"}else{c=l-1;d=l-1;u=a;f=a;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="row"){e.scrollToRow(h.r2)}else{e.scrollToCursor()}}onArrowDown(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.scrollX,e.maxScrollY);return}if(!i){e.scrollByStep("down");return}let n=i.selectionMode;if(n==="column"&&r){e.scrollTo(e.scrollX,e.maxScrollY);return}if(n==="column"){e.scrollByStep("down");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=Infinity;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2+1:0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(r){c=Infinity;d=Infinity;u=a;f=a;_=c;m=u;g="all"}else{c=l+1;d=l+1;u=a;f=a;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="row"){e.scrollToRow(h.r2)}else{e.scrollToCursor()}}onPageUp(e,t){if(s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();let i=e.selectionModel;if(!i||i.selectionMode==="column"){e.scrollByPage("up");return}let o=Math.floor(e.pageHeight/e.defaultSizes.rowHeight);let r=i.cursorRow;let n=i.cursorColumn;let l=i.currentSelection();let a;let h;let c;let d;let u;let f;let _;if(t.shiftKey){a=l?l.r1:0;h=l?l.r2-o:0;c=l?l.c1:0;d=l?l.c2:0;u=r;f=n;_="current"}else{a=l?l.r1-o:0;h=a;c=n;d=n;u=a;f=n;_="all"}i.select({r1:a,c1:c,r2:h,c2:d,cursorRow:u,cursorColumn:f,clear:_});l=i.currentSelection();if(!l){return}e.scrollToRow(l.r2)}onPageDown(e,t){if(s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();let i=e.selectionModel;if(!i||i.selectionMode==="column"){e.scrollByPage("down");return}let o=Math.floor(e.pageHeight/e.defaultSizes.rowHeight);let r=i.cursorRow;let n=i.cursorColumn;let l=i.currentSelection();let a;let h;let c;let d;let u;let f;let _;if(t.shiftKey){a=l?l.r1:0;h=l?l.r2+o:0;c=l?l.c1:0;d=l?l.c2:0;u=r;f=n;_="current"}else{a=l?l.r1+o:0;h=a;c=n;d=n;u=a;f=n;_="all"}i.select({r1:a,c1:c,r2:h,c2:d,cursorRow:u,cursorColumn:f,clear:_});l=i.currentSelection();if(!l){return}e.scrollToRow(l.r2)}onEscape(e,t){if(e.selectionModel){e.selectionModel.clear()}}onDelete(e,t){if(e.editable&&!e.selectionModel.isEmpty){const t=e.dataModel;let i=t.rowCount("body")-1;let s=t.columnCount("body")-1;for(let o of e.selectionModel.selections()){let e=Math.max(0,Math.min(o.r1,i));let r=Math.max(0,Math.min(o.c1,s));let n=Math.max(0,Math.min(o.r2,i));let l=Math.max(0,Math.min(o.c2,s));for(let i=e;i<=n;++i){for(let e=r;e<=l;++e){t.setData("body",i,e,null)}}}}}onKeyC(e,t){if(t.shiftKey||!s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();e.copyToClipboard()}}class x{}(function(e){function t(e,t){return typeof e==="function"?e(t):e}e.resolveOption=t})(x||(x={}));class v extends x{constructor(e={}){super();this.font=e.font||"12px sans-serif";this.textColor=e.textColor||"#000000";this.backgroundColor=e.backgroundColor||"";this.verticalAlignment=e.verticalAlignment||"center";this.horizontalAlignment=e.horizontalAlignment||"left";this.horizontalPadding=e.horizontalPadding||8;this.format=e.format||v.formatGeneric();this.elideDirection=e.elideDirection||"none";this.wrapText=e.wrapText||false}paint(e,t){this.drawBackground(e,t);this.drawText(e,t)}drawBackground(e,t){let i=x.resolveOption(this.backgroundColor,t);if(!i){return}e.fillStyle=i;e.fillRect(t.x,t.y,t.width,t.height)}getText(e){return this.format(e)}drawText(e,t){let i=x.resolveOption(this.font,t);if(!i){return}let s=x.resolveOption(this.textColor,t);if(!s){return}let o=this.getText(t);if(!o){return}let r=x.resolveOption(this.verticalAlignment,t);let n=x.resolveOption(this.horizontalAlignment,t);let l=x.resolveOption(this.elideDirection,t);let a=x.resolveOption(this.wrapText,t);let h=t.height-(r==="center"?1:2);if(h<=0){return}let c=v.measureFontHeight(i);let d;let u;let f;switch(r){case"top":u=t.y+2+c;break;case"center":u=t.y+t.height/2+c/2;break;case"bottom":u=t.y+t.height-2;break;default:throw"unreachable"}switch(n){case"left":d=t.x+this.horizontalPadding;f=t.width-14;break;case"center":d=t.x+t.width/2;f=t.width;break;case"right":d=t.x+t.width-this.horizontalPadding;f=t.width-14;break;default:throw"unreachable"}if(c>h){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip()}e.font=i;e.fillStyle=s;e.textAlign=n;e.textBaseline="bottom";if(l==="none"&&!a){e.fillText(o,d,u);return}let _=e.measureText(o).width;if(a&&_>f){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip();const i=o.split(/\s(?=\b)/);let s=u;let r=i.shift();if(i.length===0){let t=e.measureText(r).width;while(t>f&&r!==""){for(let i=r.length;i>0;i--){const o=r.substring(0,i);const n=e.measureText(o).width;if(nf){e.fillText(r,d,s);s+=c;r=t}else{r=o}}}e.fillText(r,d,s);return}const m="…";while(_>f&&o.length>1){const t=[...o];if(l==="right"){if(t.length>4&&_>=2*f){o=t.slice(0,Math.floor(t.length/2+1)).join("")+m}else{o=t.slice(0,t.length-2).join("")+m}}else{if(t.length>4&&_>=2*f){o=m+t.slice(Math.floor(t.length/2)).join("")}else{o=m+t.slice(2).join("")}}_=e.measureText(o).width}e.fillText(o,d,u)}}(function(e){function t(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}return String(e)}}e.formatGeneric=t;function i(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toFixed(t)}}e.formatFixed=i;function s(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toPrecision(t)}}e.formatPrecision=s;function o(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toExponential(t)}}e.formatExponential=o;function r(e={}){let t=e.missing||"";let i=new Intl.NumberFormat(e.locales,e.options);return({value:e})=>{if(e===null||e===undefined){return t}return i.format(e)}}e.formatIntlNumber=r;function n(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toDateString()}return new Date(e).toDateString()}}e.formatDate=n;function l(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toTimeString()}return new Date(e).toTimeString()}}e.formatTime=l;function a(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toISOString()}return new Date(e).toISOString()}}e.formatISODateTime=a;function h(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toUTCString()}return new Date(e).toUTCString()}}e.formatUTCDateTime=h;function c(e={}){let t=e.missing||"";let i=new Intl.DateTimeFormat(e.locales,e.options);return({value:e})=>{if(e===null||e===undefined){return t}return i.format(e)}}e.formatIntlDateTime=c;function d(e){let t=C.fontHeightCache[e];if(t!==undefined){return t}C.fontMeasurementGC.font=e;let i=C.fontMeasurementGC.font;C.fontMeasurementNode.style.font=i;document.body.appendChild(C.fontMeasurementNode);t=C.fontMeasurementNode.offsetHeight;document.body.removeChild(C.fontMeasurementNode);C.fontHeightCache[e]=t;C.fontHeightCache[i]=t;return t}e.measureFontHeight=d})(v||(v={}));var C;(function(e){e.fontHeightCache=Object.create(null);e.fontMeasurementNode=(()=>{let e=document.createElement("div");e.style.position="absolute";e.style.top="-99999px";e.style.left="-99999px";e.style.visibility="hidden";e.textContent="M";return e})();e.fontMeasurementGC=(()=>{let e=document.createElement("canvas");e.width=0;e.height=0;return e.getContext("2d")})()})(C||(C={}));class M extends v{constructor(e={}){e.textColor=e.textColor||"navy";e.font=e.font||"bold 12px sans-serif";super(e);this.url=e.url;this.urlName=e.urlName}getText(e){let t=x.resolveOption(this.urlName,e);if(t){return this.format({...e,value:t})}return this.format(e)}drawText(e,t){let i=x.resolveOption(this.font,t);if(!i){return}let s=x.resolveOption(this.textColor,t);if(!s){return}let o=this.getText(t);if(!o){return}let r=x.resolveOption(this.verticalAlignment,t);let n=x.resolveOption(this.horizontalAlignment,t);let l=x.resolveOption(this.elideDirection,t);let a=x.resolveOption(this.wrapText,t);let h=t.height-(r==="center"?1:2);if(h<=0){return}let c=M.measureFontHeight(i);let d;let u;let f;switch(r){case"top":u=t.y+2+c;break;case"center":u=t.y+t.height/2+c/2;break;case"bottom":u=t.y+t.height-2;break;default:throw"unreachable"}switch(n){case"left":d=t.x+8;f=t.width-14;break;case"center":d=t.x+t.width/2;f=t.width;break;case"right":d=t.x+t.width-8;f=t.width-14;break;default:throw"unreachable"}if(c>h){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip()}e.font=i;e.fillStyle=s;e.textAlign=n;e.textBaseline="bottom";if(l==="none"&&!a){e.fillText(o,d,u);return}let _=e.measureText(o).width;if(a&&_>f){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip();const i=o.split(/\s(?=\b)/);let s=u;let r=i.shift();if(i.length===0){let t=e.measureText(r).width;while(t>f&&r!==""){for(let i=r.length;i>0;i--){const o=r.substring(0,i);const n=e.measureText(o).width;if(nf){e.fillText(r,d,s);s+=c;r=t}else{r=o}}}e.fillText(r,d,s);return}let m="…";if(l==="right"){while(_>f&&o.length>1){if(o.length>4&&_>=2*f){o=o.substring(0,o.length/2+1)+m}else{o=o.substring(0,o.length-2)+m}_=e.measureText(o).width}}else{while(_>f&&o.length>1){if(o.length>4&&_>=2*f){o=m+o.substring(o.length/2)}else{o=m+o.substring(2)}_=e.measureText(o).width}}e.fillText(o,d,u)}}var S;(function(e){function t(e,t,i){if(i==="row"){return e.r1>=t.r1&&e.r1<=t.r2||e.r2>=t.r1&&e.r2<=t.r2||t.r1>=e.r1&&t.r1<=e.r2||t.r2>=e.r1&&t.r2<=e.r2}return e.c1>=t.c1&&e.c1<=t.c2||e.c2>=t.c1&&e.c2<=t.c2||t.c1>=e.c1&&t.c1<=e.c2||t.c2>=e.c1&&t.c2<=e.c2}e.areCellGroupsIntersectingAtAxis=t;function i(e,t){return(e.r1>=t.r1&&e.r1<=t.r2||e.r2>=t.r1&&e.r2<=t.r2||t.r1>=e.r1&&t.r1<=e.r2||t.r2>=e.r1&&t.r2<=e.r2)&&(e.c1>=t.c1&&e.c1<=t.c2||e.c2>=t.c1&&e.c2<=t.c2||t.c1>=e.c1&&t.c1<=e.c2||t.c2>=e.c1&&t.c2<=e.c2)}e.areCellGroupsIntersecting=i;function s(e,t,i,s){const o=e.groupCount(t);for(let r=0;r=o.r1&&i<=o.r2&&s>=o.c1&&s<=o.c2){return r}}return-1}e.getGroupIndex=s;function o(e,t,i,o){const r=s(e,t,i,o);if(r===-1){return null}return e.group(t,r)}e.getGroup=o;function r(e,t){let i=[];const s=e.groupCount(t);for(let o=0;o=o.r1&&i<=o.r2){s.push(o)}}return s}e.getCellGroupsAtRow=a;function h(e,t,i){let s=[];const o=e.groupCount(t);for(let r=0;r=o.c1&&i<=o.c2){s.push(o)}}return s}e.getCellGroupsAtColumn=h;function c(t,i,s,o){let r=[];if(s==="row"){for(const s of i){for(let i=o.r1;i<=o.r2;i++){r=r.concat(e.getCellGroupsAtRow(t,s,i))}}}else{for(const s of i){for(let i=o.c1;i<=o.c2;i++){r=r.concat(e.getCellGroupsAtColumn(t,s,i))}}}let n=e.joinCellGroups(r);if(r.length>0){let o=[];for(const s of i){o=o.concat(e.getCellGroupsAtRegion(t,s))}for(let t=0;t0){m=H.computeTimeout(l-r)}else if(r>=h&&d0){m=H.computeTimeout(n-o)}else if(o>=a&&c0){m=H.computeTimeout(n-o)}else if(o>=a&&c0){m=H.computeTimeout(l-r)}else if(r>=h&&d=0){if(i.timeout<0){i.timeout=m;setTimeout((()=>{H.autoselect(e,i)}),m)}else{i.timeout=m}return}i.timeout=-1;let{vx:g,vy:p}=e.mapToVirtual(t.clientX,t.clientY);g=Math.max(0,Math.min(g,e.bodyWidth-1));p=Math.max(0,Math.min(p,e.bodyHeight-1));let w;let y;let x;let v;let C=s.cursorRow;let M=s.cursorColumn;let b="current";if(i.region==="row-header"||_==="row"){w=i.row;x=e.rowAt("body",p);const t={r1:w,c1:0,r2:x,c2:0};const s=S.joinCellGroupsIntersectingAtAxis(e.dataModel,["row-header","body"],"row",t);if(s.r1!=Number.MAX_VALUE){w=Math.min(w,s.r1);x=Math.max(x,s.r2)}y=0;v=Infinity}else if(i.region==="column-header"||_==="column"){w=0;x=Infinity;y=i.column;v=e.columnAt("body",g);const t={r1:0,c1:y,r2:0,c2:v};const s=S.joinCellGroupsIntersectingAtAxis(e.dataModel,["column-header","body"],"column",t);if(s.c1!=Number.MAX_VALUE){y=s.c1;v=s.c2}}else{w=C;x=e.rowAt("body",p);y=M;v=e.columnAt("body",g)}s.select({r1:w,c1:y,r2:x,c2:v,cursorRow:C,cursorColumn:M,clear:b})}onMouseUp(e,t){this.release()}onMouseDoubleClick(e,t){var i,s,o;if(!e.dataModel){this.release();return}let{clientX:r,clientY:n}=t;let l=e.hitTest(r,n);let{region:a,row:h,column:c}=l;if(a==="void"){this.release();return}if(a==="column-header"||a==="corner-header"){const t=H.resizeHandleForHitTest(l);if(t==="left"||t==="right"){let r=t==="left"?c-1:c;let n=a==="column-header"?"body":"row-header";if(r<0){if(a==="column-header"){r=e.dataModel.columnCount("row-header")-1;n="row-header"}else{return}}const l=(i=e.selectionModel)===null||i===void 0?void 0:i.currentSelection();const h=e.currentViewport;const d=(o=(s=e.selectionModel)===null||s===void 0?void 0:s.dataModel.rowCount("body"))!==null&&o!==void 0?o:0;if(n=="body"&&l!=null&&h!=null&&l.r1==0&&l.r2==d-1){let t=Math.max(Math.min(l.c1,l.c2),h.firstColumn);let i=Math.min(Math.max(l.c1,l.c2),h.lastColumn);if(t<=r&&r<=i){for(let s=t;s<=i;s++){e.resizeColumn(n,s,null)}}else{e.resizeColumn(n,r,null)}}else{e.resizeColumn(n,r,null)}}}if(a==="body"){if(e.editable){const t={grid:e,row:h,column:c};e.editorController.edit(t)}}this.release()}onContextMenu(e,t){}onWheel(e,t){if(this._pressData){return}let i=t.deltaX;let s=t.deltaY;switch(t.deltaMode){case 0:break;case 1:{let t=e.defaultSizes;i*=t.columnWidth;s*=t.rowHeight;break}case 2:i*=e.pageWidth;s*=e.pageHeight;break;default:throw"unreachable"}if(i<0&&e.scrollX!==0||i>0&&e.scrollX!==e.maxScrollX||s<0&&e.scrollY!==0||s>0&&e.scrollY!==e.maxScrollY){t.preventDefault();t.stopPropagation();e.scrollBy(i,s)}}cursorForHandle(e){return H.cursorMap[e]}get pressData(){return this._pressData}}var H;(function(e){function t(e,t){const{region:i,row:s,column:o}=t;if(i==="void"){return undefined}const r=e.dataModel.data(i,s,o);const n=e.dataModel.metadata(i,s,o);const l={...t,value:r,metadata:n};return l}e.createCellConfigObject=t;function i(e){let t=e.row;let i=e.column;let s=e.x;let o=e.y;let r=e.width-e.x;let n=e.height-e.y;let l;switch(e.region){case"corner-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"column-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"row-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"body":l="none";break;case"void":l="none";break;default:throw"unreachable"}return l}e.resizeHandleForHitTest=i;function s(e,t){if(t.timeout<0){return}let i=e.selectionModel;if(!i){return}let o=i.currentSelection();if(!o){return}let r=t.localX;let n=t.localY;let l=o.r1;let a=o.c1;let h=o.r2;let c=o.c2;let d=i.cursorRow;let u=i.cursorColumn;let f="current";let _=e.headerWidth;let m=e.headerHeight;let g=e.viewportWidth;let p=e.viewportHeight;let w=i.selectionMode;if(t.region==="row-header"||w==="row"){h+=n<=m?-1:n>=p?1:0}else if(t.region==="column-header"||w==="column"){c+=r<=_?-1:r>=g?1:0}else{h+=n<=m?-1:n>=p?1:0;c+=r<=_?-1:r>=g?1:0}i.select({r1:l,c1:a,r2:h,c2:c,cursorRow:d,cursorColumn:u,clear:f});o=i.currentSelection();if(!o){return}if(t.region==="row-header"||w==="row"){e.scrollToRow(o.r2)}else if(t.region==="column-header"||w=="column"){e.scrollToColumn(o.c2)}else if(w==="cell"){e.scrollToCell(o.r2,o.c2)}setTimeout((()=>{s(e,t)}),t.timeout)}e.autoselect=s;function o(e){return 5+120*(1-Math.min(128,Math.abs(e))/128)}e.computeTimeout=o;e.cursorMap={top:"ns-resize",left:"ew-resize",right:"ew-resize",bottom:"ns-resize",hyperlink:"pointer",none:"default"}})(H||(H={}));class R{constructor(e){this._changed=new d.Signal(this);this._selectionMode="cell";this.dataModel=e.dataModel;this._selectionMode=e.selectionMode||"cell";this.dataModel.changed.connect(this.onDataModelChanged,this)}get changed(){return this._changed}get selectionMode(){return this._selectionMode}set selectionMode(e){if(this._selectionMode===e){return}this._selectionMode=e;this.clear()}isRowSelected(e){return(0,h.some)(this.selections(),(t=>z.containsRow(t,e)))}isColumnSelected(e){return(0,h.some)(this.selections(),(t=>z.containsColumn(t,e)))}isCellSelected(e,t){return(0,h.some)(this.selections(),(i=>z.containsCell(i,e,t)))}onDataModelChanged(e,t){}emitChanged(){this._changed.emit(undefined)}}var z;(function(e){function t(e,t){let{r1:i,r2:s}=e;return t>=i&&t<=s||t>=s&&t<=i}e.containsRow=t;function i(e,t){let{c1:i,c2:s}=e;return t>=i&&t<=s||t>=s&&t<=i}e.containsColumn=i;function s(e,s,o){return t(e,s)&&i(e,o)}e.containsCell=s})(z||(z={}));class O extends R{constructor(){super(...arguments);this._cursorRow=-1;this._cursorColumn=-1;this._cursorRectIndex=-1;this._selections=[]}get isEmpty(){return this._selections.length===0}get cursorRow(){return this._cursorRow}get cursorColumn(){return this._cursorColumn}moveCursorWithinSelections(e){if(this.isEmpty||this.cursorRow===-1||this._cursorColumn===-1){return}const t=this._selections[0];if(this._selections.length===1&&t.r1===t.r2&&t.c1===t.c2){return}if(this._cursorRectIndex===-1){this._cursorRectIndex=this._selections.length-1}let i=this._selections[this._cursorRectIndex];const s=e==="down"?1:e==="up"?-1:0;const o=e==="right"?1:e==="left"?-1:0;let r=this._cursorRow+s;let n=this._cursorColumn+o;const l=Math.min(i.r1,i.r2);const a=Math.max(i.r1,i.r2);const h=Math.min(i.c1,i.c2);const c=Math.max(i.c1,i.c2);const d=()=>{this._cursorRectIndex=(this._cursorRectIndex+1)%this._selections.length;i=this._selections[this._cursorRectIndex];r=Math.min(i.r1,i.r2);n=Math.min(i.c1,i.c2)};const u=()=>{this._cursorRectIndex=this._cursorRectIndex===0?this._selections.length-1:this._cursorRectIndex-1;i=this._selections[this._cursorRectIndex];r=Math.max(i.r1,i.r2);n=Math.max(i.c1,i.c2)};if(r>a){r=l;n+=1;if(n>c){d()}}else if(rc){n=h;r+=1;if(r>a){d()}}else if(ne.r1===s)).length!==0;this._selections=c?this._selections.filter((e=>e.r1!==s)):this._selections}else if(this.selectionMode==="column"){s=0;r=t-1;c=this._selections.filter((e=>e.c1===o)).length!==0;this._selections=c?this._selections.filter((e=>e.c1!==o)):this._selections}let d=l;let u=a;if(d<0||ds&&d>r){d=s}if(u<0||uo&&u>n){u=o}this._cursorRow=d;this._cursorColumn=u;this._cursorRectIndex=this._selections.length;if(!c){this._selections.push({r1:s,c1:o,r2:r,c2:n})}this.emitChanged()}clear(){if(this._selections.length===0){return}this._cursorRow=-1;this._cursorColumn=-1;this._cursorRectIndex=-1;this._selections.length=0;this.emitChanged()}onDataModelChanged(e,t){if(this._selections.length===0){return}if(t.type==="cells-changed"){return}if(t.type==="rows-moved"||t.type==="columns-moved"){return}let i=e.rowCount("body")-1;let s=e.columnCount("body")-1;if(i<0||s<0){this._selections.length=0;this.emitChanged();return}let o=this.selectionMode;let r=0;for(let n=0,l=this._selections.length;nthis.maxLength){return{valid:false,message:`Text length must be less than ${this.maxLength}`}}if(this.pattern&&!this.pattern.test(t)){return{valid:false,message:`Text doesn't match the required pattern`}}return{valid:true}}}class T{constructor(){this.min=Number.NaN;this.max=Number.NaN}validate(e,t){if(t===null){return{valid:true}}if(isNaN(t)||t%1!==0){return{valid:false,message:"Input must be valid integer"}}if(!isNaN(this.min)&&tthis.max){return{valid:false,message:`Input must be less than ${this.max}`}}return{valid:true}}}class B{constructor(){this.min=Number.NaN;this.max=Number.NaN}validate(e,t){if(t===null){return{valid:true}}if(isNaN(t)){return{valid:false,message:"Input must be valid number"}}if(!isNaN(this.min)&&tthis.max){return{valid:false,message:`Input must be less than ${this.max}`}}return{valid:true}}}class D{constructor(){this.inputChanged=new d.Signal(this);this.validityNotification=null;this._disposed=false;this._validInput=true;this._gridWheelEventHandler=null;this.inputChanged.connect((()=>{this.validate()}))}get isDisposed(){return this._disposed}dispose(){if(this._disposed){return}if(this._gridWheelEventHandler){this.cell.grid.node.removeEventListener("wheel",this._gridWheelEventHandler);this._gridWheelEventHandler=null}this._closeValidityNotification();this._disposed=true;this.cell.grid.node.removeChild(this.viewportOccluder)}edit(e,t){this.cell=e;this.onCommit=t&&t.onCommit;this.onCancel=t&&t.onCancel;this.validator=t&&t.validator?t.validator:this.createValidatorBasedOnType();this._gridWheelEventHandler=()=>{this._closeValidityNotification();this.updatePosition()};e.grid.node.addEventListener("wheel",this._gridWheelEventHandler);this._addContainer();this.updatePosition();this.startEditing()}cancel(){if(this._disposed){return}this.dispose();if(this.onCancel){this.onCancel()}}get validInput(){return this._validInput}validate(){let e;try{e=this.getInput()}catch(t){console.log(`Input error: ${t.message}`);this.setValidity(false,t.message||E);return}if(this.validator){const t=this.validator.validate(this.cell,e);if(t.valid){this.setValidity(true)}else{this.setValidity(false,t.message||E)}}else{this.setValidity(true)}}setValidity(e,t=""){this._validInput=e;this._closeValidityNotification();if(e){this.editorContainer.classList.remove("lm-mod-invalid")}else{this.editorContainer.classList.add("lm-mod-invalid");if(t!==""){this.validityNotification=new D.Notification({target:this.editorContainer,message:t,placement:"bottom",timeout:5e3});this.validityNotification.show()}}}createValidatorBasedOnType(){const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);switch(t&&t.type){case"string":{const e=new W;if(typeof t.format==="string"){const i=t.format;switch(i){case"email":e.pattern=new RegExp("^([a-z0-9_.-]+)@([da-z.-]+).([a-z.]{2,6})$");break;case"uuid":e.pattern=new RegExp("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}");break}}if(t.constraint){if(t.constraint.minLength!==undefined){e.minLength=t.constraint.minLength}if(t.constraint.maxLength!==undefined){e.maxLength=t.constraint.maxLength}if(typeof t.constraint.pattern==="string"){e.pattern=new RegExp(t.constraint.pattern)}}return e}case"number":{const e=new B;if(t.constraint){if(t.constraint.minimum!==undefined){e.min=t.constraint.minimum}if(t.constraint.maximum!==undefined){e.max=t.constraint.maximum}}return e}case"integer":{const e=new T;if(t.constraint){if(t.constraint.minimum!==undefined){e.min=t.constraint.minimum}if(t.constraint.maximum!==undefined){e.max=t.constraint.maximum}}return e}}return undefined}getCellInfo(e){const{grid:t,row:i,column:s}=e;let o,r,n,l,a;const h=S.getGroup(t.dataModel,"body",i,s);if(h){r=t.headerWidth-t.scrollX+t.columnOffset("body",h.c1);n=t.headerHeight-t.scrollY+t.rowOffset("body",h.r1);l=0;a=0;for(let e=h.r1;e<=h.r2;e++){a+=t.rowSize("body",e)}for(let e=h.c1;e<=h.c2;e++){l+=t.columnSize("body",e)}o=t.dataModel.data("body",h.r1,h.c1)}else{r=t.headerWidth-t.scrollX+t.columnOffset("body",s);n=t.headerHeight-t.scrollY+t.rowOffset("body",i);l=t.columnSize("body",s);a=t.rowSize("body",i);o=t.dataModel.data("body",i,s)}return{grid:t,row:i,column:s,data:o,x:r,y:n,width:l,height:a}}updatePosition(){const e=this.cell.grid;const t=this.getCellInfo(this.cell);const i=e.headerHeight;const s=e.headerWidth;this.viewportOccluder.style.top=i+"px";this.viewportOccluder.style.left=s+"px";this.viewportOccluder.style.width=e.viewportWidth-s+"px";this.viewportOccluder.style.height=e.viewportHeight-i+"px";this.viewportOccluder.style.position="absolute";this.editorContainer.style.left=t.x-1-s+"px";this.editorContainer.style.top=t.y-1-i+"px";this.editorContainer.style.width=t.width+1+"px";this.editorContainer.style.height=t.height+1+"px";this.editorContainer.style.visibility="visible";this.editorContainer.style.position="absolute"}commit(e="none"){this.validate();if(!this._validInput){return false}let t;try{t=this.getInput()}catch(i){console.log(`Input error: ${i.message}`);return false}this.dispose();if(this.onCommit){this.onCommit({cell:this.cell,value:t,cursorMovement:e})}return true}_addContainer(){this.viewportOccluder=document.createElement("div");this.viewportOccluder.className="lm-DataGrid-cellEditorOccluder";this.cell.grid.node.appendChild(this.viewportOccluder);this.editorContainer=document.createElement("div");this.editorContainer.className="lm-DataGrid-cellEditorContainer";this.viewportOccluder.appendChild(this.editorContainer);this.editorContainer.addEventListener("mouseleave",(e=>{this.viewportOccluder.style.pointerEvents=this._validInput?"none":"auto"}));this.editorContainer.addEventListener("mouseenter",(e=>{this.viewportOccluder.style.pointerEvents="none"}))}_closeValidityNotification(){if(this.validityNotification){this.validityNotification.close();this.validityNotification=null}}}class G extends D{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"blur":this._onBlur(e);break;case"input":this._onInput(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this.createWidget();const e=this.cell;const t=this.getCellInfo(e);this.input.value=this.deserialize(t.data);this.editorContainer.appendChild(this.input);this.input.focus();this.input.select();this.bindEvents()}deserialize(e){if(e===null||e===undefined){return""}return e.toString()}createWidget(){const e=document.createElement("input");e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorInput");e.spellcheck=false;e.type=this.inputType;this.input=e}bindEvents(){this.input.addEventListener("keydown",this);this.input.addEventListener("blur",this);this.input.addEventListener("input",this)}_unbindEvents(){this.input.removeEventListener("keydown",this);this.input.removeEventListener("blur",this);this.input.removeEventListener("input",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this.input.focus()}}_onInput(e){this.inputChanged.emit(void 0)}}class I extends G{constructor(){super(...arguments);this.inputType="text"}getInput(){return this.input.value}}class A extends G{constructor(){super(...arguments);this.inputType="number"}startEditing(){super.startEditing();this.input.step="any";const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);const i=t.constraint;if(i){if(i.minimum){this.input.min=i.minimum}if(i.maximum){this.input.max=i.maximum}}}getInput(){let e=this.input.value;if(e.trim()===""){return null}const t=parseFloat(e);if(isNaN(t)){throw new Error("Invalid input")}return t}}class P extends G{constructor(){super(...arguments);this.inputType="number"}startEditing(){super.startEditing();this.input.step="1";const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);const i=t.constraint;if(i){if(i.minimum){this.input.min=i.minimum}if(i.maximum){this.input.max=i.maximum}}}getInput(){let e=this.input.value;if(e.trim()===""){return null}let t=parseInt(e);if(isNaN(t)){throw new Error("Invalid input")}return t}}class X extends D{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"blur":this._onBlur(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this._createWidget();const e=this.cell;const t=this.getCellInfo(e);this._input.value=this._deserialize(t.data);this.editorContainer.appendChild(this._input);this._input.focus();this._bindEvents()}getInput(){return this._input.value}_deserialize(e){if(e===null||e===undefined){return""}return e.toString()}_createWidget(){const e=document.createElement("input");e.type="date";e.pattern="d{4}-d{2}-d{2}";e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorInput");this._input=e}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}class V extends D{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"mousedown":this._input.focus();e.stopPropagation();e.preventDefault();break;case"blur":this._onBlur(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this._createWidget();const e=this.cell;const t=this.getCellInfo(e);this._input.checked=this._deserialize(t.data);this.editorContainer.appendChild(this._input);this._input.focus();this._bindEvents()}getInput(){return this._input.checked}_deserialize(e){if(e===null||e===undefined){return false}return e==true}_createWidget(){const e=document.createElement("input");e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorCheckbox");e.type="checkbox";e.spellcheck=false;this._input=e}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("mousedown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("mousedown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}class N extends D{constructor(){super(...arguments);this._isMultiSelect=false}dispose(){if(this.isDisposed){return}super.dispose();if(this._isMultiSelect){document.body.removeChild(this._select)}}startEditing(){const e=this.cell;const t=this.getCellInfo(e);const i=e.grid.dataModel.metadata("body",e.row,e.column);this._isMultiSelect=i.type==="array";this._createWidget();if(this._isMultiSelect){this._select.multiple=true;const e=this._deserialize(t.data);for(let t=0;t{const t=document.createElement("option");t.value=e;t.text=e;r.appendChild(t)}));this.editorContainer.appendChild(r);n.setAttribute("list",o);this._input=n}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}(function(e){class t extends f.Widget{constructor(e){super({node:t.createNode()});this._message="";this.addClass("lm-DataGrid-notification");this.setFlag(f.Widget.Flag.DisallowLayout);this._target=e.target;this._message=e.message||"";this._placement=e.placement||"bottom";f.Widget.attach(this,document.body);if(e.timeout&&e.timeout>0){setTimeout((()=>{this.close()}),e.timeout)}}handleEvent(e){switch(e.type){case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}get placement(){return this._placement}set placement(e){if(this._placement===e){return}this._placement=e;this.update()}get message(){return this._message}set message(e){if(this._message===e){return}this._message=e;this.update()}get messageNode(){return this.node.getElementsByClassName("lm-DataGrid-notificationMessage")[0]}onBeforeAttach(e){this.node.addEventListener("mousedown",this);this.update()}onAfterDetach(e){this.node.removeEventListener("mousedown",this)}onUpdateRequest(e){const t=this._target.getBoundingClientRect();const i=this.node.style;switch(this._placement){case"bottom":i.left=t.left+"px";i.top=t.bottom+"px";break;case"top":i.left=t.left+"px";i.height=t.top+"px";i.top="0";i.alignItems="flex-end";i.justifyContent="flex-end";break;case"left":i.left="0";i.width=t.left+"px";i.top=t.top+"px";i.alignItems="flex-end";i.justifyContent="flex-end";break;case"right":i.left=t.right+"px";i.top=t.top+"px";break}this.messageNode.innerHTML=this._message}_evtMouseDown(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this.close()}}e.Notification=t;(function(e){function t(){const e=document.createElement("div");const t=document.createElement("div");t.className="lm-DataGrid-notificationContainer";const i=document.createElement("span");i.className="lm-DataGrid-notificationMessage";t.appendChild(i);e.appendChild(t);return e}e.createNode=t})(t=e.Notification||(e.Notification={}))})(D||(D={}));function F(e,t){return typeof e==="function"?e(t):e}class K{constructor(){this._editor=null;this._cell=null;this._typeBasedOverrides=new Map;this._metadataBasedOverrides=new Map}setEditor(e,t){if(typeof e==="string"){this._typeBasedOverrides.set(e,t)}else{const i=this._metadataIdentifierToKey(e);this._metadataBasedOverrides.set(i,[e,t])}}edit(e,t){const i=e.grid;if(!i.editable){console.error("Grid cannot be edited!");return false}this.cancel();this._cell=e;t=t||{};t.onCommit=t.onCommit||this._onCommit.bind(this);t.onCancel=t.onCancel||this._onCancel.bind(this);if(t.editor){this._editor=t.editor;t.editor.edit(e,t);return true}const s=this._getEditor(e);if(s){this._editor=s;s.edit(e,t);return true}return false}cancel(){if(this._editor){this._editor.cancel();this._editor=null}this._cell=null}_onCommit(e){const t=this._cell;if(!t){return}const i=t.grid;const s=i.dataModel;let o=t.row;let r=t.column;const n=S.getGroup(i.dataModel,"body",o,r);if(n){o=n.r1;r=n.c1}s.setData("body",o,r,e.value);i.viewport.node.focus();if(e.cursorMovement!=="none"){i.moveCursor(e.cursorMovement);i.scrollToCursor()}}_onCancel(){if(!this._cell){return}this._cell.grid.viewport.node.focus()}_getDataTypeKey(e){const t=e.grid.dataModel?e.grid.dataModel.metadata("body",e.row,e.column):null;if(!t){return"default"}let i="";if(t){i=t.type}if(t.constraint&&t.constraint.enum){if(t.constraint.enum==="dynamic"){i+=":dynamic-option"}else{i+=":option"}}return i}_objectToKey(e){let t="";for(let i in e){const s=e[i];if(typeof s==="object"){t+=`${i}:${this._objectToKey(s)}`}else{t+=`[${i}:${s}]`}}return t}_metadataIdentifierToKey(e){return this._objectToKey(e)}_metadataMatchesIdentifier(e,t){for(let i in t){if(!e.hasOwnProperty(i)){return false}const s=t[i];const o=e[i];if(typeof s==="object"){if(!this._metadataMatchesIdentifier(o,s)){return false}}else if(o!==s){return false}}return true}_getMetadataBasedEditor(e){let t;const i=e.grid.dataModel.metadata("body",e.row,e.column);if(i){this._metadataBasedOverrides.forEach((s=>{if(!t){let[o,r]=s;if(this._metadataMatchesIdentifier(i,o)){t=F(r,e)}}}))}return t}_getEditor(e){const t=this._getDataTypeKey(e);if(this._typeBasedOverrides.has(t)){const i=this._typeBasedOverrides.get(t);return F(i,e)}else if(this._metadataBasedOverrides.size>0){const t=this._getMetadataBasedEditor(e);if(t){return t}}switch(t){case"string":return new I;case"number":return new A;case"integer":return new P;case"boolean":return new V;case"date":return new X;case"string:option":case"number:option":case"integer:option":case"date:option":case"array:option":return new N;case"string:dynamic-option":case"number:dynamic-option":case"integer:dynamic-option":case"date:dynamic-option":return new Y}if(this._typeBasedOverrides.has("default")){const t=this._typeBasedOverrides.get("default");return F(t,e)}const i=e.grid.dataModel.data("body",e.row,e.column);if(!i||typeof i!=="object"){return new I}return undefined}}class q{constructor(){this._changed=new d.Signal(this)}get changed(){return this._changed}groupCount(e){return 0}metadata(e,t,i){return q.emptyMetadata}group(e,t){return null}emitChanged(e){this._changed.emit(e)}}class j extends q{}(function(e){e.emptyMetadata=Object.freeze({})})(q||(q={}));class ${constructor(e){this._disposed=false;this._context=e;this._state=U.State.create(e)}dispose(){if(this._disposed){return}this._disposed=true;while(this._state.next){this._state=this._state.next;this._context.restore()}}get isDisposed(){return this._disposed}get fillStyle(){return this._context.fillStyle}set fillStyle(e){if(this._state.fillStyle!==e){this._state.fillStyle=e;this._context.fillStyle=e}}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){if(this._state.strokeStyle!==e){this._state.strokeStyle=e;this._context.strokeStyle=e}}get font(){return this._context.font}set font(e){if(this._state.font!==e){this._state.font=e;this._context.font=e}}get textAlign(){return this._context.textAlign}set textAlign(e){if(this._state.textAlign!==e){this._state.textAlign=e;this._context.textAlign=e}}get textBaseline(){return this._context.textBaseline}set textBaseline(e){if(this._state.textBaseline!==e){this._state.textBaseline=e;this._context.textBaseline=e}}get lineCap(){return this._context.lineCap}set lineCap(e){if(this._state.lineCap!==e){this._state.lineCap=e;this._context.lineCap=e}}get lineDashOffset(){return this._context.lineDashOffset}set lineDashOffset(e){if(this._state.lineDashOffset!==e){this._state.lineDashOffset=e;this._context.lineDashOffset=e}}get lineJoin(){return this._context.lineJoin}set lineJoin(e){if(this._state.lineJoin!==e){this._state.lineJoin=e;this._context.lineJoin=e}}get lineWidth(){return this._context.lineWidth}set lineWidth(e){if(this._state.lineWidth!==e){this._state.lineWidth=e;this._context.lineWidth=e}}get miterLimit(){return this._context.miterLimit}set miterLimit(e){if(this._state.miterLimit!==e){this._state.miterLimit=e;this._context.miterLimit=e}}get shadowBlur(){return this._context.shadowBlur}set shadowBlur(e){if(this._state.shadowBlur!==e){this._state.shadowBlur=e;this._context.shadowBlur=e}}get shadowColor(){return this._context.shadowColor}set shadowColor(e){if(this._state.shadowColor!==e){this._state.shadowColor=e;this._context.shadowColor=e}}get shadowOffsetX(){return this._context.shadowOffsetX}set shadowOffsetX(e){if(this._state.shadowOffsetX!==e){this._state.shadowOffsetX=e;this._context.shadowOffsetX=e}}get shadowOffsetY(){return this._context.shadowOffsetY}set shadowOffsetY(e){if(this._state.shadowOffsetY!==e){this._state.shadowOffsetY=e;this._context.shadowOffsetY=e}}get imageSmoothingEnabled(){return this._context.imageSmoothingEnabled}set imageSmoothingEnabled(e){if(this._state.imageSmoothingEnabled!==e){this._state.imageSmoothingEnabled=e;this._context.imageSmoothingEnabled=e}}get globalAlpha(){return this._context.globalAlpha}set globalAlpha(e){if(this._state.globalAlpha!==e){this._state.globalAlpha=e;this._context.globalAlpha=e}}get globalCompositeOperation(){return this._context.globalCompositeOperation}set globalCompositeOperation(e){if(this._state.globalCompositeOperation!==e){this._state.globalCompositeOperation=e;this._context.globalCompositeOperation=e}}getLineDash(){return this._context.getLineDash()}setLineDash(e){this._context.setLineDash(e)}rotate(e){this._context.rotate(e)}scale(e,t){this._context.scale(e,t)}transform(e,t,i,s,o,r){this._context.transform(e,t,i,s,o,r)}translate(e,t){this._context.translate(e,t)}setTransform(e,t,i,s,o,r){this._context.setTransform(e,t,i,s,o,r)}save(){this._state=U.State.push(this._state);this._context.save()}restore(){if(!this._state.next){return}this._state=U.State.pop(this._state);this._context.restore()}beginPath(){return this._context.beginPath()}closePath(){this._context.closePath()}isPointInPath(e,t,i){let s;if(arguments.length===2){s=this._context.isPointInPath(e,t)}else{s=this._context.isPointInPath(e,t,i)}return s}arc(e,t,i,s,o,r){if(arguments.length===5){this._context.arc(e,t,i,s,o)}else{this._context.arc(e,t,i,s,o,r)}}arcTo(e,t,i,s,o){this._context.arcTo(e,t,i,s,o)}bezierCurveTo(e,t,i,s,o,r){this._context.bezierCurveTo(e,t,i,s,o,r)}ellipse(e,t,i,s,o,r,n,l){if(arguments.length===7){this._context.ellipse(e,t,i,s,o,r,n)}else{this._context.ellipse(e,t,i,s,o,r,n,l)}}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}quadraticCurveTo(e,t,i,s){this._context.quadraticCurveTo(e,t,i,s)}rect(e,t,i,s){this._context.rect(e,t,i,s)}clip(e){if(arguments.length===0){this._context.clip()}else{this._context.clip(e)}}fill(e){if(arguments.length===0){this._context.fill()}else{this._context.fill(e)}}stroke(){this._context.stroke()}clearRect(e,t,i,s){return this._context.clearRect(e,t,i,s)}fillRect(e,t,i,s){this._context.fillRect(e,t,i,s)}fillText(e,t,i,s){if(arguments.length===3){this._context.fillText(e,t,i)}else{this._context.fillText(e,t,i,s)}}strokeRect(e,t,i,s){this._context.strokeRect(e,t,i,s)}strokeText(e,t,i,s){if(arguments.length===3){this._context.strokeText(e,t,i)}else{this._context.strokeText(e,t,i,s)}}measureText(e){return this._context.measureText(e)}createLinearGradient(e,t,i,s){return this._context.createLinearGradient(e,t,i,s)}createRadialGradient(e,t,i,s,o,r){return this._context.createRadialGradient(e,t,i,s,o,r)}createPattern(e,t){return this._context.createPattern(e,t)}createImageData(){return this._context.createImageData.apply(this._context,arguments)}getImageData(e,t,i,s){return this._context.getImageData(e,t,i,s)}putImageData(){this._context.putImageData.apply(this._context,arguments)}drawImage(){this._context.drawImage.apply(this._context,arguments)}drawFocusIfNeeded(e){this._context.drawFocusIfNeeded(e)}}var U;(function(e){let t=-1;const i=[];class s{static create(e){let o=t<0?new s:i[t--];o.next=null;o.fillStyle=e.fillStyle;o.font=e.font;o.globalAlpha=e.globalAlpha;o.globalCompositeOperation=e.globalCompositeOperation;o.imageSmoothingEnabled=e.imageSmoothingEnabled;o.lineCap=e.lineCap;o.lineDashOffset=e.lineDashOffset;o.lineJoin=e.lineJoin;o.lineWidth=e.lineWidth;o.miterLimit=e.miterLimit;o.shadowBlur=e.shadowBlur;o.shadowColor=e.shadowColor;o.shadowOffsetX=e.shadowOffsetX;o.shadowOffsetY=e.shadowOffsetY;o.strokeStyle=e.strokeStyle;o.textAlign=e.textAlign;o.textBaseline=e.textBaseline;return o}static push(e){let o=t<0?new s:i[t--];o.next=e;o.fillStyle=e.fillStyle;o.font=e.font;o.globalAlpha=e.globalAlpha;o.globalCompositeOperation=e.globalCompositeOperation;o.imageSmoothingEnabled=e.imageSmoothingEnabled;o.lineCap=e.lineCap;o.lineDashOffset=e.lineDashOffset;o.lineJoin=e.lineJoin;o.lineWidth=e.lineWidth;o.miterLimit=e.miterLimit;o.shadowBlur=e.shadowBlur;o.shadowColor=e.shadowColor;o.shadowOffsetX=e.shadowOffsetX;o.shadowOffsetY=e.shadowOffsetY;o.strokeStyle=e.strokeStyle;o.textAlign=e.textAlign;o.textBaseline=e.textBaseline;return o}static pop(e){e.fillStyle="";e.strokeStyle="";i[++t]=e;return e.next}}e.State=s})(U||(U={}));class J{constructor(e={},t){this._changed=new d.Signal(this);this._values={...e};this._fallback=t||new v}get changed(){return this._changed}get(e){let t=this._values[e.region];if(typeof t==="function"){try{t=t(e)}catch(i){t=undefined;console.error(i)}}return t||this._fallback}update(e={},t){this._values={...this._values,...e};this._fallback=t||this._fallback;this._changed.emit(undefined)}}class Z{constructor(e){this._count=0;this._length=0;this._sections=[];this._minimumSize=e.minimumSize||2;this._defaultSize=Math.max(this._minimumSize,Math.floor(e.defaultSize))}get length(){return this._length}get count(){return this._count}get minimumSize(){return this._minimumSize}set minimumSize(e){e=Math.max(2,Math.floor(e));if(this._minimumSize===e){return}this._minimumSize=e;if(e>this._defaultSize){this.defaultSize=e}}get defaultSize(){return this._defaultSize}set defaultSize(e){e=Math.max(this._minimumSize,Math.floor(e));if(this._defaultSize===e){return}let t=e-this._defaultSize;this._defaultSize=e;this._length+=t*(this._count-this._sections.length);if(this._sections.length===0){return}for(let i=0,s=this._sections.length;i=this._length||this._count===0){return-1}if(this._sections.length===0){return Math.floor(e/this._defaultSize)}let t=h.ArrayExt.lowerBound(this._sections,e,Q.offsetCmp);if(t=this._count){return-1}if(this._sections.length===0){return e*this._defaultSize}let t=h.ArrayExt.lowerBound(this._sections,e,Q.indexCmp);if(t=this._count){return-1}if(this._sections.length===0){return(e+1)*this._defaultSize-1}let t=h.ArrayExt.lowerBound(this._sections,e,Q.indexCmp);if(t=this._count){return-1}if(this._sections.length===0){return this._defaultSize}let t=h.ArrayExt.lowerBound(this._sections,e,Q.indexCmp);if(t=this._count){return}t=Math.max(this._minimumSize,Math.floor(t));let i=h.ArrayExt.lowerBound(this._sections,e,Q.indexCmp);let s;if(i=this._count||t<=0){return}t=Math.min(this._count-e,t);if(this._sections.length===0){this._count-=t;this._length-=t*this._defaultSize;return}if(t===this._count){this._length=0;this._count=0;this._sections.length=0;return}let i=h.ArrayExt.lowerBound(this._sections,e,Q.indexCmp);let s=h.ArrayExt.lowerBound(this._sections,e+t,Q.indexCmp);let o=this._sections.splice(i,s-i);let r=(t-o.length)*this._defaultSize;for(let n=0,l=o.length;n=this._count||t<=0){return}if(this._sections.length===0){return}t=Math.min(t,this._count-e);i=Math.min(Math.max(0,i),this._count-t);if(e===i){return}let s=Math.min(e,i);let o=h.ArrayExt.lowerBound(this._sections,s,Q.indexCmp);if(o===this._sections.length){return}let r=Math.max(e+t-1,i+t-1);let n=h.ArrayExt.upperBound(this._sections,r,Q.indexCmp)-1;if(nr){n=s-r+10}if(n===0){return}this.scrollBy(0,n)}scrollToColumn(e){let t=this._columnSections.count;if(t===0){return}e=Math.floor(e);e=Math.max(0,Math.min(e,t-1));let i=this._columnSections.offsetOf(e);let s=this._columnSections.extentOf(e);let o=this._scrollX;let r=this._scrollX+this.pageWidth-1;let n=0;if(ir){n=s-r+10}if(n===0){return}this.scrollBy(n,0)}scrollToCell(e,t){let i=this._rowSections.count;let s=this._columnSections.count;if(i===0||s===0){return}e=Math.floor(e);t=Math.floor(t);e=Math.max(0,Math.min(e,i-1));t=Math.max(0,Math.min(t,s-1));let o=this._columnSections.offsetOf(t);let r=this._columnSections.extentOf(t);let n=this._rowSections.offsetOf(e);let l=this._rowSections.extentOf(e);let a=this._scrollX;let h=this._scrollX+this.pageWidth-1;let c=this._scrollY;let d=this._scrollY+this.pageHeight-1;let u=0;let f=0;if(oh){u=r-h+10}if(nd){f=l-d+10}if(u===0&&f===0){return}this.scrollBy(u,f)}moveCursor(e){if(!this.dataModel||!this._selectionModel||this._selectionModel.isEmpty){return}const t=this._selectionModel.selections();const i=t.next()&&!t.next();if(i){const t=this._selectionModel.currentSelection();if(t.r1===t.r2&&t.c1===t.c2){const i=e==="down"?1:e==="up"?-1:0;const s=e==="right"?1:e==="left"?-1:0;let o=t.r1+i;let r=t.c1+s;const n=this.dataModel.rowCount("body");const l=this.dataModel.columnCount("body");if(o>=n){o=0;r+=1}else if(o===-1){o=n-1;r-=1}if(r>=l){r=0;o+=1;if(o>=n){o=0}}else if(r===-1){r=l-1;o-=1;if(o===-1){o=n-1}}this._selectionModel.select({r1:o,c1:r,r2:o,c2:r,cursorRow:o,cursorColumn:r,clear:"all"});return}}this._selectionModel.moveCursorWithinSelections(e)}scrollToCursor(){if(!this._selectionModel){return}let e=this._selectionModel.cursorRow;let t=this._selectionModel.cursorColumn;this.scrollToCell(e,t)}scrollBy(e,t){this.scrollTo(this.scrollX+e,this.scrollY+t)}scrollByPage(e){let t=0;let i=0;switch(e){case"up":i=-this.pageHeight;break;case"down":i=this.pageHeight;break;case"left":t=-this.pageWidth;break;case"right":t=this.pageWidth;break;default:throw"unreachable"}this.scrollTo(this.scrollX+t,this.scrollY+i)}scrollByStep(e){let t;let i;let s=this.scrollX;let o=this.scrollY;let r=this._rowSections;let n=this._columnSections;switch(e){case"up":t=r.indexOf(o-1);o=t<0?o:r.offsetOf(t);break;case"down":t=r.indexOf(o);o=t<0?o:r.offsetOf(t)+r.sizeOf(t);break;case"left":i=n.indexOf(s-1);s=i<0?s:n.offsetOf(i);break;case"right":i=n.indexOf(s);s=i<0?s:n.offsetOf(i)+n.sizeOf(i);break;default:throw"unreachable"}this.scrollTo(s,o)}scrollTo(e,t){e=Math.max(0,Math.min(Math.floor(e),this.maxScrollX));t=Math.max(0,Math.min(Math.floor(t),this.maxScrollY));this._hScrollBar.value=e;this._vScrollBar.value=t;m.MessageLoop.postMessage(this._viewport,te.ScrollRequest)}rowCount(e){let t;if(e==="body"){t=this._rowSections.count}else{t=this._columnHeaderSections.count}return t}columnCount(e){let t;if(e==="body"){t=this._columnSections.count}else{t=this._rowHeaderSections.count}return t}rowAt(e,t){if(t<0){return-1}if(e==="column-header"){return this._columnHeaderSections.indexOf(t)}let i=this._rowSections.indexOf(t);if(i>=0){return i}if(!this._stretchLastRow){return-1}let s=this.bodyHeight;let o=this.pageHeight;if(o<=s){return-1}if(t>=o){return-1}return this._rowSections.count-1}columnAt(e,t){if(t<0){return-1}if(e==="row-header"){return this._rowHeaderSections.indexOf(t)}let i=this._columnSections.indexOf(t);if(i>=0){return i}if(!this._stretchLastColumn){return-1}let s=this.bodyWidth;let o=this.pageWidth;if(o<=s){return-1}if(t>=o){return-1}return this._columnSections.count-1}rowOffset(e,t){let i;if(e==="body"){i=this._rowSections.offsetOf(t)}else{i=this._columnHeaderSections.offsetOf(t)}return i}columnOffset(e,t){let i;if(e==="body"){i=this._columnSections.offsetOf(t)}else{i=this._rowHeaderSections.offsetOf(t)}return i}rowSize(e,t){if(e==="column-header"){return this._columnHeaderSections.sizeOf(t)}let i=this._rowSections.sizeOf(t);if(i<0){return i}if(!this._stretchLastRow){return i}if(tn){n=h}if(this._stretchLastRow&&a>l){l=a}if(i>=0&&i=0&&s=0&&s=0&&i=0&&i=0&&s=o&&i=r&&s1){alert("Cannot copy multiple grid selections.");return}let o=e.rowCount("body");let r=e.columnCount("body");if(o===0||r===0){return}let{r1:n,c1:l,r2:a,c2:h}=i[0];n=Math.max(0,Math.min(n,o-1));l=Math.max(0,Math.min(l,r-1));a=Math.max(0,Math.min(a,o-1));h=Math.max(0,Math.min(h,r-1));if(am){let e=`Copying ${w} cells may take a while. Continue?`;if(!window.confirm(e)){return}}let y={region:"body",row:0,column:0,value:null,metadata:{}};let x=new Array(g);for(let s=0;se.join(u)));let C=v.join("\n");s.ClipboardExt.copyText(C)}processMessage(e){if(e.type==="child-shown"||e.type==="child-hidden"){return}if(e.type==="fit-request"){let e=s.ElementExt.sizeLimits(this._vScrollBar.node);let t=s.ElementExt.sizeLimits(this._hScrollBar.node);this._vScrollBarMinWidth=e.minWidth;this._hScrollBarMinHeight=t.minHeight}super.processMessage(e)}messageHook(e,t){if(e===this._viewport){this._processViewportMessage(t);return true}if(e===this._hScrollBar&&t.type==="activate-request"){this.activate();return false}if(e===this._vScrollBar&&t.type==="activate-request"){this.activate();return false}return true}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"dblclick":this._evtMouseDoubleClick(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"contextmenu":this._evtContextMenu(e);break;case"wheel":this._evtWheel(e);break;case"resize":this._refreshDPI();break}}get currentViewport(){let e=this.viewport.node.offsetWidth;let t=this.viewport.node.offsetHeight;e=Math.round(e);t=Math.round(t);if(e<=0||t<=0){return}const i=this._columnSections.length-this.scrollX;const s=this._rowSections.length-this.scrollY;const o=this.headerWidth;const r=this.headerHeight;const n=o;const l=r;const a=Math.min(e-1,o+i-1);const h=Math.min(t-1,r+s-1);const c=this._rowSections.indexOf(l-r+this.scrollY);const d=this._columnSections.indexOf(n-o+this.scrollX);const u=this._rowSections.indexOf(h-r+this.scrollY);const f=this._columnSections.indexOf(a-o+this.scrollX);return{firstRow:c,firstColumn:d,lastRow:u,lastColumn:f}}onActivateRequest(e){this.viewport.node.focus({preventScroll:true})}onBeforeAttach(e){window.addEventListener("resize",this);this.node.addEventListener("wheel",this);this._viewport.node.addEventListener("keydown",this);this._viewport.node.addEventListener("mousedown",this);this._viewport.node.addEventListener("mousemove",this);this._viewport.node.addEventListener("dblclick",this);this._viewport.node.addEventListener("mouseleave",this);this._viewport.node.addEventListener("contextmenu",this);this.repaintContent();this.repaintOverlay()}onAfterDetach(e){window.removeEventListener("resize",this);this.node.removeEventListener("wheel",this);this._viewport.node.removeEventListener("keydown",this);this._viewport.node.removeEventListener("mousedown",this);this._viewport.node.removeEventListener("mousemove",this);this._viewport.node.removeEventListener("mouseleave",this);this._viewport.node.removeEventListener("dblclick",this);this._viewport.node.removeEventListener("contextmenu",this);this._releaseMouse()}onBeforeShow(e){this.repaintContent();this.repaintOverlay()}onResize(e){if(this._editorController){this._editorController.cancel()}this._syncScrollState()}repaintContent(){let e=new te.PaintRequest("all",0,0,0,0);m.MessageLoop.postMessage(this._viewport,e)}repaintRegion(e,t,i,s,o){let r=new te.PaintRequest(e,t,i,s,o);m.MessageLoop.postMessage(this._viewport,r)}repaintOverlay(){m.MessageLoop.postMessage(this._viewport,te.OverlayPaintRequest)}_getMaxWidthInColumn(e,t){const i=this.dataModel;if(!i){return null}const s=t=="row-header"?"corner-header":"column-header";return Math.max(this._getMaxWidthInArea(i,e,s,"column-header"),this._getMaxWidthInArea(i,e,t,"body"))}_getMaxWidthInArea(e,t,i,s){const o=e.rowCount(s);const r=Array.from({length:Math.min(o,1e6)},((s,o)=>ee._getConfig(e,o,t,i)));if(o>1e5){r.sort((e=>-this._getTextToRender(e).length))}let n=0;for(let l=0;l=e&&r>=t&&o<=i&&r<=s){return}let n=i-512;let l=s-512;this._canvasGC.setTransform(1,0,0,1,0,0);this._bufferGC.setTransform(1,0,0,1,0,0);this._overlayGC.setTransform(1,0,0,1,0,0);if(oi){this._buffer.width=i}if(rs){this._buffer.height=s}let a=o>0&&r>0&&e>0&&t>0;if(a){this._bufferGC.drawImage(this._canvas,0,0)}if(oi){this._canvas.width=i;this._canvas.style.width=`${i/this._dpiRatio}px`}if(rs){this._canvas.height=s;this._canvas.style.height=`${s/this._dpiRatio}px`}if(a){this._canvasGC.drawImage(this._buffer,0,0)}if(a){this._bufferGC.drawImage(this._overlay,0,0)}if(oi){this._overlay.width=i;this._overlay.style.width=`${i/this._dpiRatio}px`}if(rs){this._overlay.height=s;this._overlay.style.height=`${s/this._dpiRatio}px`}if(a){this._overlayGC.drawImage(this._buffer,0,0)}}_syncScrollState(){let e=this.bodyWidth;let t=this.bodyHeight;let i=this.pageWidth;let s=this.pageHeight;let o=!this._vScrollBar.isHidden;let r=!this._hScrollBar.isHidden;let n=this._vScrollBarMinWidth;let l=this._hScrollBarMinHeight;let a=i+(o?n:0);let h=s+(r?l:0);let c=hthis.bodyWidth){let e=this._columnSections.offsetOf(this._columnSections.count-1);let o=Math.min(this.headerWidth+e,s);this.paintContent(o,0,t-o,i)}else if(t>s){this.paintContent(s,0,t-s+1,i)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.offsetOf(this._rowSections.count-1);let s=Math.min(this.headerHeight+e,o);this.paintContent(0,s,t,i-s)}else if(i>o){this.paintContent(0,o,t,i-o+1)}this._paintOverlay()}_onViewportScrollRequest(e){this._scrollTo(this._hScrollBar.value,this._vScrollBar.value)}_onViewportPaintRequest(e){if(!this._viewport.isVisible){return}if(this._viewportWidth===0||this._viewportHeight===0){return}let t=0;let i=0;let s=this._viewportWidth-1;let o=this._viewportHeight-1;let r=this._scrollX;let n=this._scrollY;let l=this.headerWidth;let a=this.headerHeight;let h=this._rowSections;let c=this._columnSections;let d=this._rowHeaderSections;let u=this._columnHeaderSections;let{region:f,r1:_,c1:m,r2:g,c2:p}=e;let w;let y;let x;let v;switch(f){case"all":w=t;y=i;x=s;v=o;break;case"body":_=Math.max(0,Math.min(_,h.count));m=Math.max(0,Math.min(m,c.count));g=Math.max(0,Math.min(g,h.count));p=Math.max(0,Math.min(p,c.count));w=c.offsetOf(m)-r+l;y=h.offsetOf(_)-n+a;x=c.extentOf(p)-r+l;v=h.extentOf(g)-n+a;break;case"row-header":_=Math.max(0,Math.min(_,h.count));m=Math.max(0,Math.min(m,d.count));g=Math.max(0,Math.min(g,h.count));p=Math.max(0,Math.min(p,d.count));w=d.offsetOf(m);y=h.offsetOf(_)-n+a;x=d.extentOf(p);v=h.extentOf(g)-n+a;break;case"column-header":_=Math.max(0,Math.min(_,u.count));m=Math.max(0,Math.min(m,c.count));g=Math.max(0,Math.min(g,u.count));p=Math.max(0,Math.min(p,c.count));w=c.offsetOf(m)-r+l;y=u.offsetOf(_);x=c.extentOf(p)-r+l;v=u.extentOf(g);break;case"corner-header":_=Math.max(0,Math.min(_,u.count));m=Math.max(0,Math.min(m,d.count));g=Math.max(0,Math.min(g,u.count));p=Math.max(0,Math.min(p,d.count));w=d.offsetOf(m);y=u.offsetOf(_);x=d.extentOf(p);v=u.extentOf(g);break;default:throw"unreachable"}if(xs||y>o){return}w=Math.max(t,Math.min(w,s));y=Math.max(i,Math.min(y,o));x=Math.max(t,Math.min(x,s));v=Math.max(i,Math.min(v,o));this.paintContent(w,y,x-w+1,v-y+1)}_onViewportOverlayPaintRequest(e){if(!this._viewport.isVisible){return}if(this._viewportWidth===0||this._viewportHeight===0){return}this._paintOverlay()}_onViewportRowResizeRequest(e){if(e.region==="body"){this._resizeRow(e.index,e.size)}else{this._resizeColumnHeader(e.index,e.size)}}_onViewportColumnResizeRequest(e){if(e.region==="body"){this._resizeColumn(e.index,e.size)}else{this._resizeRowHeader(e.index,e.size)}}_onThumbMoved(e){m.MessageLoop.postMessage(this._viewport,te.ScrollRequest)}_onPageRequested(e,t){if(e===this._vScrollBar){this.scrollByPage(t==="decrement"?"up":"down")}else{this.scrollByPage(t==="decrement"?"left":"right")}}_onStepRequested(e,t){if(e===this._vScrollBar){this.scrollByStep(t==="decrement"?"up":"down")}else{this.scrollByStep(t==="decrement"?"left":"right")}}_onDataModelChanged(e,t){switch(t.type){case"rows-inserted":this._onRowsInserted(t);break;case"columns-inserted":this._onColumnsInserted(t);break;case"rows-removed":this._onRowsRemoved(t);break;case"columns-removed":this._onColumnsRemoved(t);break;case"rows-moved":this._onRowsMoved(t);break;case"columns-moved":this._onColumnsMoved(t);break;case"cells-changed":this._onCellsChanged(t);break;case"model-reset":this._onModelReset(t);break;default:throw"unreachable"}}_onSelectionsChanged(e){this.repaintOverlay()}_onRowsInserted(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._rowSections}else{o=this._columnHeaderSections}if(this._scrollY===this.maxScrollY&&this.maxScrollY>0){o.insert(i,s);this._scrollY=this.maxScrollY}else{o.insert(i,s)}this._syncViewport()}_onColumnsInserted(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._columnSections}else{o=this._rowHeaderSections}if(this._scrollX===this.maxScrollX&&this.maxScrollX>0){o.insert(i,s);this._scrollX=this.maxScrollX}else{o.insert(i,s)}this._syncViewport()}_onRowsRemoved(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._rowSections}else{o=this._columnHeaderSections}if(i<0||i>=o.count){return}if(this._scrollY===this.maxScrollY&&this.maxScrollY>0){o.remove(i,s);this._scrollY=this.maxScrollY}else{o.remove(i,s)}this._syncViewport()}_onColumnsRemoved(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._columnSections}else{o=this._rowHeaderSections}if(i<0||i>=o.count){return}if(this._scrollX===this.maxScrollX&&this.maxScrollX>0){o.remove(i,s);this._scrollX=this.maxScrollX}else{o.remove(i,s)}this._syncViewport()}_onRowsMoved(e){let{region:t,index:i,span:s,destination:o}=e;if(s<=0){return}let r;if(t==="body"){r=this._rowSections}else{r=this._columnHeaderSections}if(i<0||i>=r.count){return}s=Math.min(s,r.count-i);o=Math.min(Math.max(0,o),r.count-s);if(i===o){return}let n=Math.min(i,o);let l=Math.max(i+s-1,o+s-1);r.move(i,s,o);if(t==="body"){this.repaintRegion("body",n,0,l,Infinity);this.repaintRegion("row-header",n,0,l,Infinity)}else{this.repaintRegion("column-header",n,0,l,Infinity);this.repaintRegion("corner-header",n,0,l,Infinity)}this._syncViewport()}_onColumnsMoved(e){let{region:t,index:i,span:s,destination:o}=e;if(s<=0){return}let r;if(t==="body"){r=this._columnSections}else{r=this._rowHeaderSections}if(i<0||i>=r.count){return}s=Math.min(s,r.count-i);o=Math.min(Math.max(0,o),r.count-s);if(i===o){return}r.move(i,s,o);let n=Math.min(i,o);let l=Math.max(i+s-1,o+s-1);if(t==="body"){this.repaintRegion("body",0,n,Infinity,l);this.repaintRegion("column-header",0,n,Infinity,l)}else{this.repaintRegion("row-header",0,n,Infinity,l);this.repaintRegion("corner-header",0,n,Infinity,l)}this._syncViewport()}_onCellsChanged(e){let{region:t,row:i,column:s,rowSpan:o,columnSpan:r}=e;if(o<=0&&r<=0){return}let n=i;let l=s;let a=n+o-1;let h=l+r-1;this.repaintRegion(t,n,l,a,h)}_onModelReset(e){let t=this._rowSections.count;let i=this._columnSections.count;let s=this._rowHeaderSections.count;let o=this._columnHeaderSections.count;let r=this._dataModel.rowCount("body")-t;let n=this._dataModel.columnCount("body")-i;let l=this._dataModel.columnCount("row-header")-s;let a=this._dataModel.rowCount("column-header")-o;if(r>0){this._rowSections.insert(t,r)}else if(r<0){this._rowSections.remove(t+r,-r)}if(n>0){this._columnSections.insert(i,n)}else if(n<0){this._columnSections.remove(i+n,-n)}if(l>0){this._rowHeaderSections.insert(s,l)}else if(l<0){this._rowHeaderSections.remove(s+l,-l)}if(a>0){this._columnHeaderSections.insert(o,a)}else if(a<0){this._columnHeaderSections.remove(o+a,-a)}this._syncViewport()}_onRenderersChanged(){this.repaintContent()}_evtKeyDown(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._keyHandler){this._keyHandler.onKeyDown(this,e)}}_evtMouseDown(e){if(e.button!==0){return}this.activate();e.preventDefault();e.stopPropagation();document.addEventListener("keydown",this,true);document.addEventListener("mouseup",this,true);document.addEventListener("mousedown",this,true);document.addEventListener("mousemove",this,true);document.addEventListener("contextmenu",this,true);this._mousedown=true;if(this._mouseHandler){this._mouseHandler.onMouseDown(this,e)}}_evtMouseMove(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}if(!this._mouseHandler){return}if(this._mousedown){this._mouseHandler.onMouseMove(this,e)}else{this._mouseHandler.onMouseHover(this,e)}}_evtMouseUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();if(this._mouseHandler){this._mouseHandler.onMouseUp(this,e)}this._releaseMouse()}_evtMouseDoubleClick(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();if(this._mouseHandler){this._mouseHandler.onMouseDoubleClick(this,e)}this._releaseMouse()}_evtMouseLeave(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._mouseHandler){this._mouseHandler.onMouseLeave(this,e)}}_evtContextMenu(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._mouseHandler){this._mouseHandler.onContextMenu(this,e)}}_evtWheel(e){if(s.Platform.accelKey(e)){return}if(!this._mouseHandler){return}this._mouseHandler.onWheel(this,e)}_releaseMouse(){this._mousedown=false;if(this._mouseHandler){this._mouseHandler.release()}document.removeEventListener("keydown",this,true);document.removeEventListener("mouseup",this,true);document.removeEventListener("mousedown",this,true);document.removeEventListener("mousemove",this,true);document.removeEventListener("contextmenu",this,true)}_refreshDPI(){let e=Math.ceil(window.devicePixelRatio);if(this._dpiRatio===e){return}this._dpiRatio=e;this.repaintContent();this.repaintOverlay();this._resizeCanvasIfNeeded(this._viewportWidth,this._viewportHeight);this._canvas.style.width=`${this._canvas.width/this._dpiRatio}px`;this._canvas.style.height=`${this._canvas.height/this._dpiRatio}px`;this._overlay.style.width=`${this._overlay.width/this._dpiRatio}px`;this._overlay.style.height=`${this._overlay.height/this._dpiRatio}px`}_resizeRow(e,t){let i=this._rowSections;if(e<0||e>=i.count){return}let s=i.sizeOf(e);let o=i.clampSize(t);if(s===o){return}i.resize(e,o);let r=this._viewportWidth;let n=this._viewportHeight;if(!this._viewport.isVisible||r===0||n===0){this._syncScrollState();return}let l=o-s;let a=this.headerHeight;let h=i.offsetOf(e)+a-this._scrollY;if(a>=n||h>=n){this._syncScrollState();return}if(h+s<=a){this._scrollY+=l;this._syncScrollState();return}let c=Math.max(a,h);if(h+s>=n||h+o>=n){this.paintContent(0,c,r,n-c);this._paintOverlay();this._syncScrollState();return}let d=0;let u=r;let f=0;let _;let m;let g;if(h+o<=a){_=a-l;m=n-_;g=a}else{_=h+s;m=n-_;g=_+l}this._blitContent(this._canvas,d,_,u,m,f,g);if(o>0&&h+o>a){this.paintContent(0,c,r,h+o-c)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.count-1;let t=a+this._rowSections.offsetOf(e);this.paintContent(0,t,r,n-t)}else if(l<0){this.paintContent(0,n+l,r,-l)}for(const p of["body","row-header"]){const t=S.getCellGroupsAtRow(this.dataModel,p,e);let i={region:p,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(p){case"body":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"row-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(t,i,s)}this._paintOverlay();this._syncScrollState()}_resizeColumn(e,t){let i=this._columnSections;if(e<0||e>=i.count){return}const s=t!==null&&t!==void 0?t:this._getMaxWidthInColumn(e,"body");if(!s||s==0){return}let o=i.sizeOf(e);let r=i.clampSize(s);if(o===r){return}i.resize(e,r);let n=this._viewportWidth;let l=this._viewportHeight;if(!this._viewport.isVisible||n===0||l===0){this._syncScrollState();return}let a=r-o;let h=this.headerWidth;let c=i.offsetOf(e)+h-this._scrollX;if(h>=n||c>=n){this._syncScrollState();return}if(c+o<=h){this._scrollX+=a;this._syncScrollState();return}let d=Math.max(h,c);if(c+o>=n||c+r>=n){this.paintContent(d,0,n-d,l);this._paintOverlay();this._syncScrollState();return}let u=0;let f=l;let _=0;let m;let g;let p;if(c+r<=h){m=h-a;g=n-m;p=h}else{m=c+o;g=n-m;p=m+a}this._blitContent(this._canvas,m,u,g,f,p,_);if(r>0&&c+r>h){this.paintContent(d,0,c+r-d,l)}if(this._stretchLastColumn&&this.pageWidth>this.bodyWidth){let e=this._columnSections.count-1;let t=h+this._columnSections.offsetOf(e);this.paintContent(t,0,n-t,l)}else if(a<0){this.paintContent(n+a,0,-a,l)}for(const w of["body","column-header"]){const t=S.getCellGroupsAtColumn(this.dataModel,w,e);let i={region:w,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(w){case"body":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"column-header":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=0;i.yMax=this.headerHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(t,i,s)}this._paintOverlay();this._syncScrollState()}_resizeRowHeader(e,t){let i=this._rowHeaderSections;if(e<0||e>=i.count){return}const s=t!==null&&t!==void 0?t:this._getMaxWidthInColumn(e,"row-header");if(!s||s==0){return}let o=i.sizeOf(e);let r=i.clampSize(s);if(o===r){return}i.resize(e,r);let n=this._viewportWidth;let l=this._viewportHeight;if(!this._viewport.isVisible||n===0||l===0){this._syncScrollState();return}let a=r-o;let h=i.offsetOf(e);if(h>=n){this._syncScrollState();return}if(h+o>=n||h+r>=n){this.paintContent(h,0,n-h,l);this._paintOverlay();this._syncScrollState();return}let c=h+o;let d=0;let u=n-c;let f=l;let _=c+a;let m=0;this._blitContent(this._canvas,c,d,u,f,_,m);if(r>0){this.paintContent(h,0,r,l)}if(this._stretchLastColumn&&this.pageWidth>this.bodyWidth){let e=this._columnSections.count-1;let t=this.headerWidth+this._columnSections.offsetOf(e);this.paintContent(t,0,n-t,l)}else if(a<0){this.paintContent(n+a,0,-a,l)}for(const g of["corner-header","row-header"]){const t=S.getCellGroupsAtColumn(this.dataModel,g,e);let i={region:g,xMin:0,xMax:0,yMin:0,yMax:0};switch(g){case"corner-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=0;i.yMax=this.headerHeight;break;case"row-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;break}this._paintMergedCells(t,i,this._style.headerBackgroundColor)}this._paintOverlay();this._syncScrollState()}_resizeColumnHeader(e,t){let i=this._columnHeaderSections;if(e<0||e>=i.count){return}let s=i.sizeOf(e);let o=i.clampSize(t);if(s===o){return}i.resize(e,o);let r=this._viewportWidth;let n=this._viewportHeight;if(!this._viewport.isVisible||r===0||n===0){this._syncScrollState();return}this._paintOverlay();let l=o-s;let a=i.offsetOf(e);if(a>=n){this._syncScrollState();return}if(a+s>=n||a+o>=n){this.paintContent(0,a,r,n-a);this._paintOverlay();this._syncScrollState();return}let h=0;let c=a+s;let d=r;let u=n-c;let f=0;let _=c+l;this._blitContent(this._canvas,h,c,d,u,f,_);if(o>0){this.paintContent(0,a,r,o)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.count-1;let t=this.headerHeight+this._rowSections.offsetOf(e);this.paintContent(0,t,r,n-t)}else if(l<0){this.paintContent(0,n+l,r,-l)}for(const m of["corner-header","column-header"]){const t=S.getCellGroupsAtRow(this.dataModel,m,e);let i={region:m,xMin:0,xMax:0,yMin:0,yMax:0};switch(m){case"corner-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=0;i.yMax=this.headerHeight;break;case"column-header":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=0;i.yMax=this.headerHeight;break}this._paintMergedCells(t,i,this._style.headerBackgroundColor)}this._paintOverlay();this._syncScrollState()}_scrollTo(e,t){if(!this.dataModel){return}e=Math.max(0,Math.min(Math.floor(e),this.maxScrollX));t=Math.max(0,Math.min(Math.floor(t),this.maxScrollY));this._hScrollBar.value=e;this._vScrollBar.value=t;let i=e-this._scrollX;let s=t-this._scrollY;if(i===0&&s===0){return}if(!this._viewport.isVisible){this._scrollX=e;this._scrollY=t;return}let o=this._viewportWidth;let r=this._viewportHeight;if(o===0||r===0){this._scrollX=e;this._scrollY=t;return}let n=this.headerWidth;let l=this.headerHeight;let a=o-n;let h=r-l;if(a<=0&&h<=0){this._scrollX=e;this._scrollY=t;return}let c=0;if(i!==0&&a>0){if(Math.abs(i)>=a){c=a*r}else{c=Math.abs(i)*r}}let d=0;if(s!==0&&h>0){if(Math.abs(s)>=h){d=o*h}else{d=o*Math.abs(s)}}if(c+d>=o*r){this._scrollX=e;this._scrollY=t;this.paintContent(0,0,o,r);this._paintOverlay();return}this._scrollY=t;if(s!==0&&h>0){if(Math.abs(s)>=h){this.paintContent(0,l,o,h)}else{const e=0;const t=s<0?l:l+s;const i=o;const n=h-Math.abs(s);this._blitContent(this._canvas,e,t,i,n,e,t-s);this.paintContent(0,s<0?l:r-s,o,Math.abs(s));for(const s of["body","row-header"]){const e=S.getCellGroupsAtRegion(this.dataModel,s);let t={region:s,xMin:0,xMax:0,yMin:0,yMax:0};let i=undefined;switch(s){case"body":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;i=this._style.backgroundColor;break;case"row-header":t.xMin=0;t.xMax=this.headerWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;i=this._style.headerBackgroundColor;break}this._paintMergedCells(e,t,i)}}}this._scrollX=e;if(i!==0&&a>0){if(Math.abs(i)>=a){this.paintContent(n,0,a,r)}else{const e=i<0?n:n+i;const t=0;const s=a-Math.abs(i);const l=r;this._blitContent(this._canvas,e,t,s,l,e-i,t);this.paintContent(i<0?n:o-i,0,Math.abs(i),r);for(const i of["body","column-header"]){const e=S.getCellGroupsAtRegion(this.dataModel,i);let t={region:i,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(i){case"body":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"column-header":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=0;t.yMax=this.headerHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(e,t,s)}}}this._paintOverlay()}_blitContent(e,t,i,s,o,r,n){t*=this._dpiRatio;i*=this._dpiRatio;s*=this._dpiRatio;o*=this._dpiRatio;r*=this._dpiRatio;n*=this._dpiRatio;this._canvasGC.save();this._canvasGC.setTransform(1,0,0,1,0,0);this._canvasGC.drawImage(e,t,i,s,o,r,n,s,o);this._canvasGC.restore()}paintContent(e,t,i,s){this._canvasGC.setTransform(this._dpiRatio,0,0,this._dpiRatio,0,0);this._bufferGC.setTransform(this._dpiRatio,0,0,this._dpiRatio,0,0);this._canvasGC.clearRect(e,t,i,s);this._drawVoidRegion(e,t,i,s);this._drawBodyRegion(e,t,i,s);this._drawRowHeaderRegion(e,t,i,s);this._drawColumnHeaderRegion(e,t,i,s);this.drawCornerHeaderRegion(e,t,i,s)}_fitBodyColumnHeaders(e,t,i){const s=i===undefined?e.columnCount("body"):i;for(let o=0;o=n+o){return}if(t>=l+r){return}let a=this.bodyHeight;let h=this.bodyWidth;let c=this.pageHeight;let d=this.pageWidth;let u=Math.max(e,n);let f=Math.max(t,l);let _=Math.min(e+i-1,n+o-1);let m=Math.min(t+s-1,l+r-1);let g=this._rowSections.indexOf(f-l+this._scrollY);let p=this._columnSections.indexOf(u-n+this._scrollX);let w=this._rowSections.indexOf(m-l+this._scrollY);let y=this._columnSections.indexOf(_-n+this._scrollX);let x=this._rowSections.count-1;let v=this._columnSections.count-1;if(w<0){w=x}if(y<0){y=v}let C=this._columnSections.offsetOf(p)+n-this._scrollX;let M=this._rowSections.offsetOf(g)+l-this._scrollY;let b=0;let H=0;let R=new Array(w-g+1);let z=new Array(y-p+1);for(let S=g;S<=w;++S){let e=this._rowSections.sizeOf(S);R[S-g]=e;H+=e}for(let S=p;S<=y;++S){let e=this._columnSections.sizeOf(S);z[S-p]=e;b+=e}if(this._stretchLastRow&&c>a&&w===x){let e=this.pageHeight-this.bodyHeight;R[R.length-1]+=e;H+=e;m+=e}if(this._stretchLastColumn&&d>h&&y===v){let e=this.pageWidth-this.bodyWidth;z[z.length-1]+=e;b+=e;_+=e}let O={region:"body",xMin:u,yMin:f,xMax:_,yMax:m,x:C,y:M,width:b,height:H,row:g,column:p,rowSizes:R,columnSizes:z};this._drawBackground(O,this._style.backgroundColor);this._drawRowBackground(O,this._style.rowBackgroundColor);this._drawColumnBackground(O,this._style.columnBackgroundColor);this._drawCells(O);this._drawHorizontalGridLines(O,this._style.horizontalGridLineColor||this._style.gridLineColor);this._drawVerticalGridLines(O,this._style.verticalGridLineColor||this._style.gridLineColor);const k=S.getCellGroupsAtRegion(this.dataModel,O.region).filter((e=>this.cellGroupInteresectsRegion(e,O)));this._paintMergedCells(k,O,this._style.backgroundColor)}_drawRowHeaderRegion(e,t,i,s){let o=this.headerWidth;let r=this.bodyHeight-this._scrollY;if(o<=0||r<=0){return}let n=0;let l=this.headerHeight;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=this.bodyHeight;let h=this.pageHeight;let c=e;let d=Math.max(t,l);let u=Math.min(e+i-1,n+o-1);let f=Math.min(t+s-1,l+r-1);let _=this._rowSections.indexOf(d-l+this._scrollY);let m=this._rowHeaderSections.indexOf(c);let g=this._rowSections.indexOf(f-l+this._scrollY);let p=this._rowHeaderSections.indexOf(u);let w=this._rowSections.count-1;let y=this._rowHeaderSections.count-1;if(g<0){g=w}if(p<0){p=y}let x=this._rowHeaderSections.offsetOf(m);let v=this._rowSections.offsetOf(_)+l-this._scrollY;let C=0;let M=0;let b=new Array(g-_+1);let H=new Array(p-m+1);for(let S=_;S<=g;++S){let e=this._rowSections.sizeOf(S);b[S-_]=e;M+=e}for(let S=m;S<=p;++S){let e=this._rowHeaderSections.sizeOf(S);H[S-m]=e;C+=e}if(this._stretchLastRow&&h>a&&g===w){let e=this.pageHeight-this.bodyHeight;b[b.length-1]+=e;M+=e;f+=e}let R={region:"row-header",xMin:c,yMin:d,xMax:u,yMax:f,x,y:v,width:C,height:M,row:_,column:m,rowSizes:b,columnSizes:H};this._drawBackground(R,this._style.headerBackgroundColor);this._drawCells(R);this._drawHorizontalGridLines(R,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(R,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const z=S.getCellGroupsAtRegion(this.dataModel,R.region).filter((e=>this.cellGroupInteresectsRegion(e,R)));this._paintMergedCells(z,R,this._style.headerBackgroundColor)}_drawColumnHeaderRegion(e,t,i,s){let o=this.bodyWidth-this._scrollX;let r=this.headerHeight;if(o<=0||r<=0){return}let n=this.headerWidth;let l=0;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=this.bodyWidth;let h=this.pageWidth;let c=Math.max(e,n);let d=t;let u=Math.min(e+i-1,n+o-1);let f=Math.min(t+s-1,l+r-1);let _=this._columnHeaderSections.indexOf(d);let m=this._columnSections.indexOf(c-n+this._scrollX);let g=this._columnHeaderSections.indexOf(f);let p=this._columnSections.indexOf(u-n+this._scrollX);let w=this._columnHeaderSections.count-1;let y=this._columnSections.count-1;if(g<0){g=w}if(p<0){p=y}let x=this._columnSections.offsetOf(m)+n-this._scrollX;let v=this._columnHeaderSections.offsetOf(_);let C=0;let M=0;let b=new Array(g-_+1);let H=new Array(p-m+1);for(let S=_;S<=g;++S){let e=this._columnHeaderSections.sizeOf(S);b[S-_]=e;M+=e}for(let S=m;S<=p;++S){let e=this._columnSections.sizeOf(S);H[S-m]=e;C+=e}if(this._stretchLastColumn&&h>a&&p===y){let e=this.pageWidth-this.bodyWidth;H[H.length-1]+=e;C+=e;u+=e}let R={region:"column-header",xMin:c,yMin:d,xMax:u,yMax:f,x,y:v,width:C,height:M,row:_,column:m,rowSizes:b,columnSizes:H};this._drawBackground(R,this._style.headerBackgroundColor);this._drawCells(R);this._drawHorizontalGridLines(R,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(R,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const z=S.getCellGroupsAtRegion(this.dataModel,R.region).filter((e=>this.cellGroupInteresectsRegion(e,R)));this._paintMergedCells(z,R,this._style.headerBackgroundColor)}drawCornerHeaderRegion(e,t,i,s){let o=this.headerWidth;let r=this.headerHeight;if(o<=0||r<=0){return}let n=0;let l=0;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=e;let h=t;let c=Math.min(e+i-1,n+o-1);let d=Math.min(t+s-1,l+r-1);let u=this._columnHeaderSections.indexOf(h);let f=this._rowHeaderSections.indexOf(a);let _=this._columnHeaderSections.indexOf(d);let m=this._rowHeaderSections.indexOf(c);if(_<0){_=this._columnHeaderSections.count-1}if(m<0){m=this._rowHeaderSections.count-1}let g=this._rowHeaderSections.offsetOf(f);let p=this._columnHeaderSections.offsetOf(u);let w=0;let y=0;let x=new Array(_-u+1);let v=new Array(m-f+1);for(let S=u;S<=_;++S){let e=this._columnHeaderSections.sizeOf(S);x[S-u]=e;y+=e}for(let S=f;S<=m;++S){let e=this._rowHeaderSections.sizeOf(S);v[S-f]=e;w+=e}let C={region:"corner-header",xMin:a,yMin:h,xMax:c,yMax:d,x:g,y:p,width:w,height:y,row:u,column:f,rowSizes:x,columnSizes:v};this._drawBackground(C,this._style.headerBackgroundColor);this._drawCells(C);this._drawHorizontalGridLines(C,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(C,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const M=S.getCellGroupsAtRegion(this.dataModel,C.region).filter((e=>this.cellGroupInteresectsRegion(e,C)));this._paintMergedCells(M,C,this._style.headerBackgroundColor)}_drawBackground(e,t){if(!t){return}let{xMin:i,yMin:s,xMax:o,yMax:r}=e;this._canvasGC.fillStyle=t;this._canvasGC.fillRect(i,s,o-i+1,r-s+1)}_drawRowBackground(e,t){if(!t){return}let i=Math.max(e.xMin,e.x);let s=Math.min(e.x+e.width-1,e.xMax);for(let o=e.y,r=0,n=e.rowSizes.length;r{const t=d;const i=d+1;const s=h;const o=h+1;this.repaintRegion(e.region,t,s,i,o)}))}}else{_.paint(s,t)}}catch(r){console.error(r)}s.restore();let m=Math.max(e.xMin,t.x);let g=Math.min(t.x+t.width-1,e.xMax);let p=Math.max(e.yMin,t.y);let w=Math.min(t.y+t.height-1,e.yMax);this._blitContent(this._buffer,m,p,g-m+1,w-p+1,m,p);l+=o}s.restore();n+=a}s.dispose();this._bufferGC.restore()}cellGroupInteresectsRegion(e,t){const i=t.row;const s=t.row+t.rowSizes.length;const o=t.column;const r=t.column+t.columnSizes.length;const n=Math.min(e.r2,s)-Math.max(e.r1,i);const l=Math.min(e.c2,r)-Math.max(e.c1,o);return n>=0&&l>=0}static _getCellValue(e,t,i,s){try{return e.data(t,i,s)}catch(o){console.error(o);return null}}static _getCellMetadata(e,t,i,s){try{return e.metadata(t,i,s)}catch(o){console.error(o);return q.emptyMetadata}}_paintMergedCells(e,t,i){if(!this._dataModel){return}let s={x:0,y:0,width:0,height:0,region:t.region,row:0,column:0,value:null,metadata:q.emptyMetadata};if(i){this._canvasGC.fillStyle=i}this._canvasGC.lineWidth=1;this._bufferGC.save();let o=new $(this._bufferGC);for(const n of e){let e=0;for(let i=n.c1;i<=n.c2;i++){e+=this._getColumnSize(t.region,i)}let l=0;for(let i=n.r1;i<=n.r2;i++){l+=this._getRowSize(t.region,i)}let a=ee._getCellValue(this.dataModel,t.region,n.r1,n.c1);let h=ee._getCellMetadata(this.dataModel,t.region,n.r1,n.c2);let c=0;let d=0;switch(t.region){case"body":c=this._columnSections.offsetOf(n.c1)+this.headerWidth-this._scrollX;d=this._rowSections.offsetOf(n.r1)+this.headerHeight-this._scrollY;break;case"column-header":c=this._columnSections.offsetOf(n.c1)+this.headerWidth-this._scrollX;d=this._rowSections.offsetOf(n.r1);break;case"row-header":c=this._columnSections.offsetOf(n.c1);d=this._rowSections.offsetOf(n.r1)+this.headerHeight-this._scrollY;break;case"corner-header":c=this._columnSections.offsetOf(n.c1);d=this._rowSections.offsetOf(n.r1);break}s.x=c;s.y=d;s.width=e;s.height=l;s.region=t.region;s.row=n.r1;s.column=n.c1;s.value=a;s.metadata=h;const u=Math.max(t.xMin,c);const f=Math.min(c+e-2,t.xMax);const _=Math.max(t.yMin,d);const m=Math.min(d+l-2,t.yMax);if(f<=u||m<=_){continue}if(i){this._canvasGC.fillRect(u,_,f-u+1,m-_+1)}let g=this._cellRenderers.get(s);o.clearRect(s.x,s.y,e,l);o.save();try{if(g instanceof k){if(g.isReady(s)){g.paint(o,s)}else{g.paintPlaceholder(o,s);const e=n.r1;const i=n.r2;const r=n.c1;const l=n.c2;g.load(s).then((()=>{this.repaintRegion(t.region,e,r,i,l)}))}}else{g.paint(o,s)}}catch(r){console.error(r)}o.restore();this._blitContent(this._buffer,u,_,f-u+1,m-_+1,u,_)}o.dispose();this._bufferGC.restore()}_drawHorizontalGridLines(e,t){if(!t){return}const i=Math.max(e.xMin,e.x);const s=Math.min(e.x+e.width,e.xMax+1);this._canvasGC.beginPath();this._canvasGC.lineWidth=1;const o=this.bodyHeight;const r=this.pageHeight;let n=e.rowSizes.length;if(this._stretchLastRow&&r>o){if(e.row+n===this._rowSections.count){n-=1}}for(let l=e.y,a=0;a=e.yMin&&o<=e.yMax){this._canvasGC.moveTo(i,o+.5);this._canvasGC.lineTo(s,o+.5)}l+=t}this._canvasGC.strokeStyle=t;this._canvasGC.stroke()}_drawVerticalGridLines(e,t){if(!t){return}const i=Math.max(e.yMin,e.y);const s=Math.min(e.y+e.height,e.yMax+1);this._canvasGC.beginPath();this._canvasGC.lineWidth=1;const o=this.bodyWidth;const r=this.pageWidth;let n=e.columnSizes.length;if(this._stretchLastColumn&&r>o){if(e.column+n===this._columnSections.count){n-=1}}for(let l=e.x,a=0;a=e.xMin&&o<=e.xMax){this._canvasGC.moveTo(o+.5,i);this._canvasGC.lineTo(o+.5,s)}l+=t}this._canvasGC.strokeStyle=t;this._canvasGC.stroke()}_drawBodySelections(){let e=this._selectionModel;if(!e||e.isEmpty){return}let t=this._style.selectionFillColor;let i=this._style.selectionBorderColor;if(!t&&!i){return}let s=this._scrollX;let o=this._scrollY;let r=this._rowSections.indexOf(o);let n=this._columnSections.indexOf(s);if(r<0||n<0){return}let l=this.bodyWidth;let a=this.bodyHeight;let h=this.pageWidth;let c=this.pageHeight;let d=this.headerWidth;let u=this.headerHeight;let f=this._rowSections.indexOf(o+c);let _=this._columnSections.indexOf(s+h);let m=this._rowSections.count-1;let g=this._columnSections.count-1;f=f<0?m:f;_=_<0?g:_;let p=this._overlayGC;p.save();p.beginPath();p.rect(d,u,h,c);p.clip();if(t){p.fillStyle=t}if(i){p.strokeStyle=i;p.lineWidth=1}for(let w of e.selections()){if(w.r1f&&w.r2>f){continue}if(w.c1_&&w.c2>_){continue}let e=Math.max(0,Math.min(w.r1,m));let y=Math.max(0,Math.min(w.c1,g));let x=Math.max(0,Math.min(w.r2,m));let v=Math.max(0,Math.min(w.c2,g));let C;if(e>x){C=e;e=x;x=C}if(y>v){C=y;y=v;v=C}const M=S.joinCellGroupWithMergedCellGroups(this.dataModel,{r1:e,r2:x,c1:y,c2:v},"body");e=M.r1;x=M.r2;y=M.c1;v=M.c2;let b=this._columnSections.offsetOf(y)-s+d;let H=this._rowSections.offsetOf(e)-o+u;let R=this._columnSections.extentOf(v)-s+d;let z=this._rowSections.extentOf(x)-o+u;if(this._stretchLastColumn&&h>l&&v===g){R=d+h-1}if(this._stretchLastRow&&c>a&&x===m){z=u+c-1}b=Math.max(d-1,b);H=Math.max(u-1,H);R=Math.min(d+h+1,R);z=Math.min(u+c+1,z);if(Ro&&f===c){u=l+r-d}if(u===0){continue}if(t){h.fillRect(0,d,n,u)}if(i){h.beginPath();h.moveTo(n-.5,d-1);h.lineTo(n-.5,d+u);h.stroke()}}h.restore()}_drawColumnHeaderSelections(){let e=this._selectionModel;if(!e||e.isEmpty||e.selectionMode=="row"){return}if(this.headerHeight===0||this.pageWidth===0){return}let t=this._style.headerSelectionFillColor;let i=this._style.headerSelectionBorderColor;if(!t&&!i){return}let s=this._scrollX;let o=this.bodyWidth;let r=this.pageWidth;let n=this.headerWidth;let l=this.headerHeight;let a=this._columnSections;let h=this._overlayGC;h.save();h.beginPath();h.rect(n,0,r,l);h.clip();if(t){h.fillStyle=t}if(i){h.strokeStyle=i;h.lineWidth=1}let c=a.count-1;let d=a.indexOf(s);let u=a.indexOf(s+r-1);u=u<0?c:u;for(let f=d;f<=u;++f){if(!e.isColumnSelected(f)){continue}let d=a.offsetOf(f)-s+n;let u=a.sizeOf(f);if(this._stretchLastColumn&&r>o&&f===c){u=n+r-d}if(u===0){continue}if(t){h.fillRect(d,0,u,l)}if(i){h.beginPath();h.moveTo(d-1,l-.5);h.lineTo(d+u,l-.5);h.stroke()}}h.restore()}_drawCursor(){let e=this._selectionModel;if(!e||e.isEmpty||e.selectionMode!=="cell"){return}let t=this._style.cursorFillColor;let i=this._style.cursorBorderColor;if(!t&&!i){return}let s=e.cursorRow;let o=e.cursorColumn;let r=this._rowSections.count-1;let n=this._columnSections.count-1;if(s<0||s>r){return}if(o<0||o>n){return}let l=s;let a=o;const h=S.joinCellGroupWithMergedCellGroups(this.dataModel,{r1:s,r2:l,c1:o,c2:a},"body");s=h.r1;l=h.r2;o=h.c1;a=h.c2;let c=this._scrollX;let d=this._scrollY;let u=this.bodyWidth;let f=this.bodyHeight;let _=this.pageWidth;let m=this.pageHeight;let g=this.headerWidth;let p=this.headerHeight;let w=this._viewportWidth;let y=this._viewportHeight;let x=this._columnSections.offsetOf(o)-c+g;let v=this._columnSections.extentOf(a)-c+g;let C=this._rowSections.offsetOf(s)-d+p;let M=this._rowSections.extentOf(l)-d+p;if(this._stretchLastColumn&&_>u&&o===n){v=w-1}if(this._stretchLastRow&&m>f&&s===r){M=y-1}if(v=w||C-1>=y||v+1u){u=a}if(this._stretchLastColumn&&l>d){d=l}let f=this._overlayGC;f.save();if(i>0){let i=0;let s=n;let o=0;let a=s+e.size;let h=f.createLinearGradient(i,s,o,a);h.addColorStop(0,e.color1);h.addColorStop(.5,e.color2);h.addColorStop(1,e.color3);let c=0;let u=n;let _=r+Math.min(l,d-t);let m=e.size;f.fillStyle=h;f.fillRect(c,u,_,m)}if(t>0){let t=r;let s=0;let o=t+e.size;let l=0;let h=f.createLinearGradient(t,s,o,l);h.addColorStop(0,e.color1);h.addColorStop(.5,e.color2);h.addColorStop(1,e.color3);let c=r;let d=0;let _=e.size;let m=n+Math.min(a,u-i);f.fillStyle=h;f.fillRect(c,d,_,m)}if(i0}e.regionHasMergedCells=i;class s extends m.ConflatableMessage{constructor(e,t,i,s,o){super("paint-request");this._region=e;this._r1=t;this._c1=i;this._r2=s;this._c2=o}get region(){return this._region}get r1(){return this._r1}get c1(){return this._c1}get r2(){return this._r2}get c2(){return this._c2}conflate(e){if(this._region==="all"){return true}if(e._region==="all"){this._region="all";return true}if(this._region!==e._region){return false}this._r1=Math.min(this._r1,e._r1);this._c1=Math.min(this._c1,e._c1);this._r2=Math.max(this._r2,e._r2);this._c2=Math.max(this._c2,e._c2);return true}}e.PaintRequest=s;class o extends m.ConflatableMessage{constructor(e,t,i){super("row-resize-request");this._region=e;this._index=t;this._size=i}get region(){return this._region}get index(){return this._index}get size(){return this._size}conflate(e){if(this._region!==e._region||this._index!==e._index){return false}this._size=e._size;return true}}e.RowResizeRequest=o;class r extends m.ConflatableMessage{constructor(e,t,i){super("column-resize-request");this._region=e;this._index=t;this._size=i}get region(){return this._region}get index(){return this._index}get size(){return this._size}conflate(e){if(this._region!==e._region||this._index!==e._index){return false}this._size=e._size;return true}}e.ColumnResizeRequest=r})(te||(te={}));class ie extends q{constructor(e){super();let t=se.splitFields(e.schema);this._data=e.data;this._bodyFields=t.bodyFields;this._headerFields=t.headerFields;this._missingValues=se.createMissingMap(e.schema)}rowCount(e){if(e==="body"){return this._data.length}return 1}columnCount(e){if(e==="body"){return this._bodyFields.length}return this._headerFields.length}data(e,t,i){let s;let o;switch(e){case"body":s=this._bodyFields[i];o=this._data[t][s.name];break;case"column-header":s=this._bodyFields[i];o=s.title||s.name;break;case"row-header":s=this._headerFields[i];o=this._data[t][s.name];break;case"corner-header":s=this._headerFields[i];o=s.title||s.name;break;default:throw"unreachable"}let r=this._missingValues!==null&&typeof o==="string"&&this._missingValues[o]===true;return r?null:o}metadata(e,t,i){if(e==="body"||e==="column-header"){return this._bodyFields[i]}return this._headerFields[i]}}var se;(function(e){function t(e){let t;if(e.primaryKey===undefined){t=[]}else if(typeof e.primaryKey==="string"){t=[e.primaryKey]}else{t=e.primaryKey}let i=[];let s=[];for(let o of e.fields){if(t.indexOf(o.name)===-1){i.push(o)}else{s.push(o)}}return{bodyFields:i,headerFields:s}}e.splitFields=t;function i(e){if(!e.missingValues||e.missingValues.length===0){return null}let t=Object.create(null);for(let i of e.missingValues){t[i]=true}return t}e.createMissingMap=i})(se||(se={}));const oe=/^(\d+(\.\d+)?)%$/;const re=/^(\d+(\.\d+)?)px$/;class ne extends k{constructor(e={}){super();this.backgroundColor=e.backgroundColor||"";this.textColor=e.textColor||"#000000";this.placeholder=e.placeholder||"...";this.width=e.width||"";this.height=e.height===undefined?"100%":e.height}isReady(e){return!e.value||ne.dataCache.get(e.value)!==undefined}async load(e){if(!e.value){return}const t=e.value;const i=new p.PromiseDelegate;ne.dataCache.set(t,undefined);const s=new Image;s.onload=()=>{ne.dataCache.set(t,s);i.resolve()};s.src=t;return i.promise}paintPlaceholder(e,t){this.drawBackground(e,t);this.drawPlaceholder(e,t)}paint(e,t){this.drawBackground(e,t);this.drawImage(e,t)}drawBackground(e,t){const i=x.resolveOption(this.backgroundColor,t);if(!i){return}e.fillStyle=i;e.fillRect(t.x,t.y,t.width,t.height)}drawPlaceholder(e,t){const i=x.resolveOption(this.placeholder,t);const s=x.resolveOption(this.textColor,t);const o=t.x+t.width/2;const r=t.y+t.height/2;e.fillStyle=s;e.fillText(i,o,r)}drawImage(e,t){if(!t.value){return}const i=ne.dataCache.get(t.value);if(!i){return this.drawPlaceholder(e,t)}const s=x.resolveOption(this.width,t);const o=x.resolveOption(this.height,t);if(!s&&!o){e.drawImage(i,t.x,t.y);return}let r=i.width;let n=i.height;let l;let a;let h;let c;if(l=s.match(oe)){r=parseFloat(l[1])/100*t.width}else if(a=s.match(re)){r=parseFloat(a[1])}if(h=o.match(oe)){n=parseFloat(h[1])/100*t.height}else if(c=o.match(re)){n=parseFloat(c[1])}if(!s){r=i.width/i.height*n}if(!o){n=i.height/i.width*r}e.drawImage(i,t.x,t.y,r,n)}}ne.dataCache=new Map}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1737.a5fc97075f693ec36fe6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1737.a5fc97075f693ec36fe6.js new file mode 100644 index 0000000000000000000000000000000000000000..9f2736f6676adea6573f576206d56fe057dbb2c7 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1737.a5fc97075f693ec36fe6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1737],{71737:(e,t,n)=>{n.r(t);n.d(t,{brainfuck:()=>r});var i="><+-.,[]".split("");const r={name:"brainfuck",startState:function(){return{commentLine:false,left:0,right:0,commentLoop:false}},token:function(e,t){if(e.eatSpace())return null;if(e.sol()){t.commentLine=false}var n=e.next().toString();if(i.indexOf(n)!==-1){if(t.commentLine===true){if(e.eol()){t.commentLine=false}return"comment"}if(n==="]"||n==="["){if(n==="["){t.left++}else{t.right++}return"bracket"}else if(n==="+"||n==="-"){return"keyword"}else if(n==="<"||n===">"){return"atom"}else if(n==="."||n===","){return"def"}}else{t.commentLine=true;if(e.eol()){t.commentLine=false}return"comment"}if(e.eol()){t.commentLine=false}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1838.839690ff17ec3c532f0a.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1838.839690ff17ec3c532f0a.js new file mode 100644 index 0000000000000000000000000000000000000000..9baf100d8d6f0ad8b26c15c69374dd967975bbbc --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1838.839690ff17ec3c532f0a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1838],{63344:(r,n,t)=>{t.d(n,{A:()=>v});var e=t(9883);var a="__lodash_hash_undefined__";function u(r){this.__data__.set(r,a);return this}const c=u;function o(r){return this.__data__.has(r)}const i=o;function f(r){var n=-1,t=r==null?0:r.length;this.__data__=new e.A;while(++n{t.d(n,{A:()=>a});function e(r,n){var t=-1,e=r==null?0:r.length;while(++t{t.d(n,{A:()=>a});function e(r,n){var t=-1,e=r==null?0:r.length,a=0,u=[];while(++t{t.d(n,{A:()=>u});var e=t(54949);function a(r,n){var t=r==null?0:r.length;return!!t&&(0,e.A)(r,n,0)>-1}const u=a},7348:(r,n,t)=>{t.d(n,{A:()=>a});function e(r,n,t){var e=-1,a=r==null?0:r.length;while(++e{t.d(n,{A:()=>a});function e(r,n){var t=-1,e=r==null?0:r.length,a=Array(e);while(++t{t.d(n,{A:()=>a});function e(r,n){var t=-1,e=n.length,a=r.length;while(++t{t.d(n,{A:()=>a});function e(r,n){var t=-1,e=r==null?0:r.length;while(++t{t.d(n,{A:()=>en});var e=t(28478);var a=t(31392);var u=t(16542);var c=t(376);var o=t(37947);function i(r,n){return r&&(0,c.A)(n,(0,o.A)(n),r)}const f=i;var v=t(13839);function s(r,n){return r&&(0,c.A)(n,(0,v.A)(n),r)}const A=s;var l=t(65963);var b=t(91810);var d=t(49499);function h(r,n){return(0,c.A)(r,(0,d.A)(r),n)}const j=h;var p=t(54760);function y(r,n){return(0,c.A)(r,(0,p.A)(r),n)}const g=y;var w=t(62505);var _=t(37138);var O=t(88753);var m=Object.prototype;var S=m.hasOwnProperty;function k(r){var n=r.length,t=new r.constructor(n);if(n&&typeof r[0]=="string"&&S.call(r,"index")){t.index=r.index;t.input=r.input}return t}const E=k;var x=t(53458);function I(r,n){var t=n?(0,x.A)(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}const U=I;var B=/\w*$/;function C(r){var n=new r.constructor(r.source,B.exec(r));n.lastIndex=r.lastIndex;return n}const D=C;var F=t(38066);var M=F.A?F.A.prototype:undefined,z=M?M.valueOf:undefined;function L(r){return z?Object(z.call(r)):{}}const P=L;var $=t(93672);var N="[object Boolean]",R="[object Date]",V="[object Map]",G="[object Number]",W="[object RegExp]",q="[object Set]",H="[object String]",J="[object Symbol]";var K="[object ArrayBuffer]",Q="[object DataView]",T="[object Float32Array]",X="[object Float64Array]",Y="[object Int8Array]",Z="[object Int16Array]",rr="[object Int32Array]",nr="[object Uint8Array]",tr="[object Uint8ClampedArray]",er="[object Uint16Array]",ar="[object Uint32Array]";function ur(r,n,t){var e=r.constructor;switch(n){case K:return(0,x.A)(r);case N:case R:return new e(+r);case Q:return U(r,t);case T:case X:case Y:case Z:case rr:case nr:case tr:case er:case ar:return(0,$.A)(r,t);case V:return new e;case G:case H:return new e(r);case W:return D(r);case q:return new e;case J:return P(r)}}const cr=ur;var or=t(92768);var ir=t(39990);var fr=t(50895);var vr=t(53315);var sr="[object Map]";function Ar(r){return(0,vr.A)(r)&&(0,O.A)(r)==sr}const lr=Ar;var br=t(26132);var dr=t(89986);var hr=dr.A&&dr.A.isMap;var jr=hr?(0,br.A)(hr):lr;const pr=jr;var yr=t(85356);var gr="[object Set]";function wr(r){return(0,vr.A)(r)&&(0,O.A)(r)==gr}const _r=wr;var Or=dr.A&&dr.A.isSet;var mr=Or?(0,br.A)(Or):_r;const Sr=mr;var kr=1,Er=2,xr=4;var Ir="[object Arguments]",Ur="[object Array]",Br="[object Boolean]",Cr="[object Date]",Dr="[object Error]",Fr="[object Function]",Mr="[object GeneratorFunction]",zr="[object Map]",Lr="[object Number]",Pr="[object Object]",$r="[object RegExp]",Nr="[object Set]",Rr="[object String]",Vr="[object Symbol]",Gr="[object WeakMap]";var Wr="[object ArrayBuffer]",qr="[object DataView]",Hr="[object Float32Array]",Jr="[object Float64Array]",Kr="[object Int8Array]",Qr="[object Int16Array]",Tr="[object Int32Array]",Xr="[object Uint8Array]",Yr="[object Uint8ClampedArray]",Zr="[object Uint16Array]",rn="[object Uint32Array]";var nn={};nn[Ir]=nn[Ur]=nn[Wr]=nn[qr]=nn[Br]=nn[Cr]=nn[Hr]=nn[Jr]=nn[Kr]=nn[Qr]=nn[Tr]=nn[zr]=nn[Lr]=nn[Pr]=nn[$r]=nn[Nr]=nn[Rr]=nn[Vr]=nn[Xr]=nn[Yr]=nn[Zr]=nn[rn]=true;nn[Dr]=nn[Fr]=nn[Gr]=false;function tn(r,n,t,c,i,s){var d,h=n&kr,p=n&Er,y=n&xr;if(t){d=i?t(r,c,i,s):t(r)}if(d!==undefined){return d}if(!(0,yr.A)(r)){return r}var m=(0,ir.A)(r);if(m){d=E(r);if(!h){return(0,b.A)(r,d)}}else{var S=(0,O.A)(r),k=S==Fr||S==Mr;if((0,fr.A)(r)){return(0,l.A)(r,h)}if(S==Pr||S==Ir||k&&!i){d=p||k?{}:(0,or.A)(r);if(!h){return p?g(r,A(d,r)):j(r,f(d,r))}}else{if(!nn[S]){return i?r:{}}d=cr(r,S,h)}}s||(s=new e.A);var x=s.get(r);if(x){return x}s.set(r,d);if(Sr(r)){r.forEach((function(e){d.add(tn(e,n,t,e,r,s))}))}else if(pr(r)){r.forEach((function(e,a){d.set(a,tn(e,n,t,a,r,s))}))}var I=y?p?_.A:w.A:p?v.A:o.A;var U=m?undefined:I(r);(0,a.A)(U||r,(function(e,a){if(U){a=e;e=r[a]}(0,u.A)(d,a,tn(e,n,t,a,r,s))}));return d}const en=tn},15912:(r,n,t)=>{t.d(n,{A:()=>i});var e=t(27477);var a=t(21585);function u(r,n){return function(t,e){if(t==null){return t}if(!(0,a.A)(t)){return r(t,e)}var u=t.length,c=n?u:-1,o=Object(t);while(n?c--:++c{t.d(n,{A:()=>u});var e=t(15912);function a(r,n){var t=[];(0,e.A)(r,(function(r,e,a){if(n(r,e,a)){t.push(r)}}));return t}const u=a},97314:(r,n,t)=>{t.d(n,{A:()=>a});function e(r,n,t,e){var a=r.length,u=t+(e?1:-1);while(e?u--:++u{t.d(n,{A:()=>s});var e=t(70009);var a=t(38066);var u=t(71528);var c=t(39990);var o=a.A?a.A.isConcatSpreadable:undefined;function i(r){return(0,c.A)(r)||(0,u.A)(r)||!!(o&&r&&r[o])}const f=i;function v(r,n,t,a,u){var c=-1,o=r.length;t||(t=f);u||(u=[]);while(++c0&&t(i)){if(n>1){v(i,n-1,t,a,u)}else{(0,e.A)(u,i)}}else if(!a){u[u.length]=i}}return u}const s=v},27477:(r,n,t)=>{t.d(n,{A:()=>c});var e=t(40283);var a=t(37947);function u(r,n){return r&&(0,e.A)(r,n,a.A)}const c=u},22883:(r,n,t)=>{t.d(n,{A:()=>c});var e=t(65900);var a=t(43512);function u(r,n){n=(0,e.A)(n,r);var t=0,u=n.length;while(r!=null&&t{t.d(n,{A:()=>c});var e=t(70009);var a=t(39990);function u(r,n,t){var u=n(r);return(0,a.A)(r)?u:(0,e.A)(u,t(r))}const c=u},54949:(r,n,t)=>{t.d(n,{A:()=>f});var e=t(97314);function a(r){return r!==r}const u=a;function c(r,n,t){var e=t-1,a=r.length;while(++e{t.d(n,{A:()=>Cr});var e=t(28478);var a=t(63344);var u=t(95345);var c=t(4832);var o=1,i=2;function f(r,n,t,e,f,v){var s=t&o,A=r.length,l=n.length;if(A!=l&&!(s&&l>A)){return false}var b=v.get(r);var d=v.get(n);if(b&&d){return b==n&&d==r}var h=-1,j=true,p=t&i?new a.A:undefined;v.set(r,n);v.set(n,r);while(++h{t.d(n,{A:()=>a});function e(r){return function(n){return n==null?undefined:n[r]}}const a=e},19363:(r,n,t)=>{t.d(n,{A:()=>d});var e=t(63344);var a=t(43212);var u=t(7348);var c=t(4832);var o=t(88224);var i=t(42111);var f=t(71940);var v=1/0;var s=!(o.A&&1/(0,f.A)(new o.A([,-0]))[1]==v)?i.A:function(r){return new o.A(r)};const A=s;var l=200;function b(r,n,t){var o=-1,i=a.A,v=r.length,s=true,b=[],d=b;if(t){s=false;i=u.A}else if(v>=l){var h=n?null:A(r);if(h){return(0,f.A)(h)}s=false;i=c.A;d=new e.A}else{d=n?[]:b}r:while(++o{t.d(n,{A:()=>a});function e(r,n){return r.has(n)}const a=e},76253:(r,n,t)=>{t.d(n,{A:()=>u});var e=t(63077);function a(r){return typeof r=="function"?r:e.A}const u=a},65900:(r,n,t)=>{t.d(n,{A:()=>d});var e=t(39990);var a=t(17283);var u=t(307);var c=500;function o(r){var n=(0,u.A)(r,(function(r){if(t.size===c){t.clear()}return r}));var t=n.cache;return n}const i=o;var f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var v=/\\(\\)?/g;var s=i((function(r){var n=[];if(r.charCodeAt(0)===46){n.push("")}r.replace(f,(function(r,t,e,a){n.push(e?a.replace(v,"$1"):t||r)}));return n}));const A=s;var l=t(92911);function b(r,n){if((0,e.A)(r)){return r}return(0,a.A)(r,n)?[r]:A((0,l.A)(r))}const d=b},62505:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(45300);var a=t(49499);var u=t(37947);function c(r){return(0,e.A)(r,u.A,a.A)}const o=c},37138:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(45300);var a=t(54760);var u=t(13839);function c(r){return(0,e.A)(r,u.A,a.A)}const o=c},49499:(r,n,t)=>{t.d(n,{A:()=>f});var e=t(89191);var a=t(38058);var u=Object.prototype;var c=u.propertyIsEnumerable;var o=Object.getOwnPropertySymbols;var i=!o?a.A:function(r){if(r==null){return[]}r=Object(r);return(0,e.A)(o(r),(function(n){return c.call(r,n)}))};const f=i},54760:(r,n,t)=>{t.d(n,{A:()=>f});var e=t(70009);var a=t(86848);var u=t(49499);var c=t(38058);var o=Object.getOwnPropertySymbols;var i=!o?c.A:function(r){var n=[];while(r){(0,e.A)(n,(0,u.A)(r));r=(0,a.A)(r)}return n};const f=i},64491:(r,n,t)=>{t.d(n,{A:()=>v});var e=t(65900);var a=t(71528);var u=t(39990);var c=t(78912);var o=t(43627);var i=t(43512);function f(r,n,t){n=(0,e.A)(n,r);var f=-1,v=n.length,s=false;while(++f{t.d(n,{A:()=>i});var e=t(39990);var a=t(62579);var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function o(r,n){if((0,e.A)(r)){return false}var t=typeof r;if(t=="number"||t=="symbol"||t=="boolean"||r==null||(0,a.A)(r)){return true}return c.test(r)||!u.test(r)||n!=null&&r in Object(n)}const i=o},71940:(r,n,t)=>{t.d(n,{A:()=>a});function e(r){var n=-1,t=Array(r.size);r.forEach((function(r){t[++n]=r}));return t}const a=e},43512:(r,n,t)=>{t.d(n,{A:()=>c});var e=t(62579);var a=1/0;function u(r){if(typeof r=="string"||(0,e.A)(r)){return r}var n=r+"";return n=="0"&&1/r==-a?"-0":n}const c=u},97133:(r,n,t)=>{t.d(n,{A:()=>i});var e=t(89191);var a=t(64725);var u=t(1121);var c=t(39990);function o(r,n){var t=(0,c.A)(r)?e.A:a.A;return t(r,(0,u.A)(n,3))}const i=o},69769:(r,n,t)=>{t.d(n,{A:()=>i});var e=t(31392);var a=t(15912);var u=t(76253);var c=t(39990);function o(r,n){var t=(0,c.A)(r)?e.A:a.A;return t(r,(0,u.A)(n))}const i=o},78307:(r,n,t)=>{t.d(n,{A:()=>o});function e(r,n){return r!=null&&n in Object(r)}const a=e;var u=t(64491);function c(r,n){return r!=null&&(0,u.A)(r,n,a)}const o=c},62579:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(64128);var a=t(53315);var u="[object Symbol]";function c(r){return typeof r=="symbol"||(0,a.A)(r)&&(0,e.A)(r)==u}const o=c},89523:(r,n,t)=>{t.d(n,{A:()=>a});function e(r){return r===undefined}const a=e},37947:(r,n,t)=>{t.d(n,{A:()=>o});var e=t(74578);var a=t(30568);var u=t(21585);function c(r){return(0,u.A)(r)?(0,e.A)(r):(0,a.A)(r)}const o=c},42111:(r,n,t)=>{t.d(n,{A:()=>a});function e(){}const a=e},65339:(r,n,t)=>{t.d(n,{A:()=>s});function e(r,n,t,e){var a=-1,u=r==null?0:r.length;if(e&&u){t=r[++a]}while(++a{t.d(n,{A:()=>a});function e(){return[]}const a=e},92911:(r,n,t)=>{t.d(n,{A:()=>l});var e=t(38066);var a=t(98519);var u=t(39990);var c=t(62579);var o=1/0;var i=e.A?e.A.prototype:undefined,f=i?i.toString:undefined;function v(r){if(typeof r=="string"){return r}if((0,u.A)(r)){return(0,a.A)(r,v)+""}if((0,c.A)(r)){return f?f.call(r):""}var n=r+"";return n=="0"&&1/r==-o?"-0":n}const s=v;function A(r){return r==null?"":s(r)}const l=A},44882:(r,n,t)=>{t.d(n,{A:()=>i});var e=t(98519);function a(r,n){return(0,e.A)(n,(function(n){return r[n]}))}const u=a;var c=t(37947);function o(r){return r==null?[]:u(r,(0,c.A)(r))}const i=o}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js new file mode 100644 index 0000000000000000000000000000000000000000..cbbd9a0b6dbd358febfc6ae1d4ccd4eaba5d6012 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js @@ -0,0 +1,2 @@ +/*! For license information please see 1909.7487a09fefbe7f9eabb6.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1909],{31909:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AllPackages=void 0;r(11252);r(3654);r(48600);r(62684);r(12512);r(79224);r(82792);r(77774);r(2362);r(12796);r(50228);r(79712);r(69600);r(90272);r(45320);r(13726);r(48128);r(15472);r(95120);r(98452);r(7932);r(75802);r(36912);r(21018);r(68916);r(23468);r(91610);r(18560);r(46370);r(29302);r(82736);r(69112);r(22232);if(typeof MathJax!=="undefined"&&MathJax.loader){MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions")}t.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"]},3654:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ActionConfiguration=t.ActionMethods=void 0;var n=r(56441);var o=a(r(75845));var i=r(80209);var s=a(r(38364));t.ActionMethods={};t.ActionMethods.Macro=s.default.Macro;t.ActionMethods.Toggle=function(e,t){var r=[];var a;while((a=e.GetArgument(t))!=="\\endtoggle"){r.push(new o.default(a,e.stack.env,e.configuration).mml())}e.Push(e.create("node","maction",r,{actiontype:"toggle"}))};t.ActionMethods.Mathtip=function(e,t){var r=e.ParseArg(t);var a=e.ParseArg(t);e.Push(e.create("node","maction",[r,a],{actiontype:"tooltip"}))};new i.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},t.ActionMethods);t.ActionConfiguration=n.Configuration.create("action",{handler:{macro:["action-macros"]}})},48600:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n;Object.defineProperty(t,"__esModule",{value:true});t.AmsConfiguration=t.AmsTags=void 0;var o=r(56441);var i=r(92902);var s=r(17782);var l=r(98840);r(97403);var u=r(80209);var c=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(s.AbstractTags);t.AmsTags=c;var f=function(e){new u.CommandMap(l.NEW_OPS,{},{});e.append(o.Configuration.local({handler:{macro:[l.NEW_OPS]},priority:-1}))};t.AmsConfiguration=o.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(n={},n[i.MultlineItem.prototype.kind]=i.MultlineItem,n[i.FlalignItem.prototype.kind]=i.FlalignItem,n),tags:{ams:c},init:f,config:function(e,t){if(t.parseOptions.options.multlineWidth){t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth}delete t.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}})},92902:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,a=arguments.length;rt){throw new u.default("XalignOverflow","Extra %1 in row of %2","&",this.name)}};t.prototype.EndRow=function(){var t;var r=this.row;var a=this.getProperty("xalignat");while(r.lengththis.maxrow){this.maxrow=this.row.length}e.prototype.EndRow.call(this);var o=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&o.isKind("mlabeledtr")){var i=l.default.getChildren(o)[0];var s=this.factory.configuration.options["tagSide"];var u=n({width:0},s==="right"?{lspace:"-1width"}:{});var c=this.create("node","mpadded",l.default.getChildren(i),u);i.setChildren([c])}};t.prototype.EndTable=function(){e.prototype.EndTable.call(this);if(this.center){if(this.maxrow<=2){var t=this.arraydef;delete t.width;delete this.global.indentalign}}};return t}(i.EqnArrayItem);t.FlalignItem=d},97403:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=r(98840);var l=o(r(80209));var u=r(80469);var c=i(r(22960));var f=i(r(6980));var d=r(80747);var p=r(86810);new l.CharacterMap("AMSmath-mathchar0mo",c.default.mathchar0mo,{iiiint:["⨌",{texClass:d.TEXCLASS.OP}]});new l.RegExpMap("AMSmath-operatorLetter",s.AmsMethods.operatorLetter,/[-*]/i);new l.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",p.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",p.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",true],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj lim"],projlim:["NamedOp","proj lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",u.TexConstant.Align.LEFT],shoveright:["HandleShove",u.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},s.AmsMethods);new l.EnvironmentMap("AMSmath-environment",c.default.environment,{"equation*":["Equation",null,false],"eqnarray*":["EqnArray",null,false,true,"rcl",f.default.cols(0,p.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,true,true,"rl",f.default.cols(0,2)],"align*":["EqnArray",null,false,true,"rl",f.default.cols(0,2)],multline:["Multline",null,true],"multline*":["Multline",null,false],split:["EqnArray",null,false,false,"rl",f.default.cols(0)],gather:["EqnArray",null,true,true,"c"],"gather*":["EqnArray",null,false,true,"c"],alignat:["AlignAt",null,true,true],"alignat*":["AlignAt",null,false,true],alignedat:["AlignAt",null,false,false],aligned:["AmsEqnArray",null,null,null,"rl",f.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,true,true],"xalignat*":["XalignAt",null,false,true],xxalignat:["XalignAt",null,false,false],flalign:["FlalignArray",null,true,false,true,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,false,false,true,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,f.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",f.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},s.AmsMethods);new l.DelimiterMap("AMSmath-delimiter",c.default.delimiter,{"\\lvert":["|",{texClass:d.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:d.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:d.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:d.TEXCLASS.CLOSE}]});new l.CharacterMap("AMSsymbols-mathchar0mi",c.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:u.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:u.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:u.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:u.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:u.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:u.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:u.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:u.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:true}],hslash:"ℏ",varnothing:["∅",{variantForm:true}],blacktriangle:"▴",triangledown:["▽",{variantForm:true}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:u.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:u.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:u.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"});new l.CharacterMap("AMSsymbols-mathchar0mo",c.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:true}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:true}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:true}],backsimeq:"⋍",thickapprox:["≈",{variantForm:true}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:true}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:true}],shortmid:["∣",{variantForm:true}],smallfrown:["⌢",{variantForm:true}],shortparallel:["∥",{variantForm:true}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:true}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:true}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:true}],ngeqslant:["⪈",{variantForm:true}],nleqq:["≰",{variantForm:true}],ngeqq:["≱",{variantForm:true}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:true}],gvertneqq:["≩",{variantForm:true}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:true}],nsucceq:["⋡",{variantForm:true}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:true}],nshortparallel:["∦",{variantForm:true}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:true}],nsupseteqq:["⊉",{variantForm:true}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:true}],varsupsetneq:["⊋",{variantForm:true}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:true}],varsupsetneqq:["⫌",{variantForm:true}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:true}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"});new l.DelimiterMap("AMSsymbols-delimiter",c.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"});new l.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},s.AmsMethods)},98840:function(e,t,r){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.NEW_OPS=t.AmsMethods=void 0;var i=o(r(6980));var s=o(r(22960));var l=o(r(72691));var u=r(80469);var c=o(r(75845));var f=o(r(98770));var d=r(27151);var p=o(r(38364));var m=r(80747);t.AmsMethods={};t.AmsMethods.AmsEqnArray=function(e,t,r,a,n,o,s){var l=e.GetBrackets("\\begin{"+t.getName()+"}");var u=p.default.EqnArray(e,t,r,a,n,o,s);return i.default.setArrayAlign(u,l)};t.AmsMethods.AlignAt=function(e,r,a,n){var o=r.getName();var s,l,u="",c=[];if(!n){l=e.GetBrackets("\\begin{"+o+"}")}s=e.GetArgument("\\begin{"+o+"}");if(s.match(/[^0-9]/)){throw new f.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+o+"}")}var d=parseInt(s,10);while(d>0){u+="rl";c.push("0em 0em");d--}var p=c.join(" ");if(n){return t.AmsMethods.EqnArray(e,r,a,n,u,p)}var m=t.AmsMethods.EqnArray(e,r,a,n,u,p);return i.default.setArrayAlign(m,l)};t.AmsMethods.Multline=function(e,t,r){e.Push(t);i.default.checkEqnEnv(e);var a=e.itemFactory.create("multline",r,e.stack);a.arraydef={displaystyle:true,rowspacing:".5em",columnspacing:"100%",width:e.options.ams["multlineWidth"],side:e.options["tagSide"],minlabelspacing:e.options["tagIndent"],framespacing:e.options.ams["multlineIndent"]+" 0",frame:"","data-width-includes-label":true};return a};t.AmsMethods.XalignAt=function(e,r,a,n){var o=e.GetArgument("\\begin{"+r.getName()+"}");if(o.match(/[^0-9]/)){throw new f.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+r.getName()+"}")}var i=n?"crl":"rlc";var s=n?"fit auto auto":"auto auto fit";var l=t.AmsMethods.FlalignArray(e,r,a,n,false,i,s,true);l.setProperty("xalignat",2*parseInt(o));return l};t.AmsMethods.FlalignArray=function(e,t,r,a,n,o,s,l){if(l===void 0){l=false}e.Push(t);i.default.checkEqnEnv(e);o=o.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var u=e.itemFactory.create("flalign",t.getName(),r,a,n,e.stack);u.arraydef={width:"100%",displaystyle:true,columnalign:o,columnspacing:"0em",columnwidth:s,rowspacing:"3pt",side:e.options["tagSide"],minlabelspacing:l?"0":e.options["tagIndent"],"data-width-includes-label":true};u.setProperty("zeroWidthLabel",l);return u};t.NEW_OPS="ams-declare-ops";t.AmsMethods.HandleDeclareOp=function(e,r){var a=e.GetStar()?"*":"";var n=i.default.trimSpaces(e.GetArgument(r));if(n.charAt(0)==="\\"){n=n.substr(1)}var o=e.GetArgument(r);e.configuration.handlers.retrieve(t.NEW_OPS).add(n,new d.Macro(n,t.AmsMethods.Macro,["\\operatorname".concat(a,"{").concat(o,"}")]))};t.AmsMethods.HandleOperatorName=function(e,t){var r=e.GetStar();var n=i.default.trimSpaces(e.GetArgument(t));var o=new c.default(n,a(a({},e.stack.env),{font:u.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:true}),e.configuration).mml();if(!o.isKind("mi")){o=e.create("node","TeXAtom",[o])}l.default.setProperties(o,{movesupsub:r,movablelimits:true,texClass:m.TEXCLASS.OP});if(!r){var s=e.GetNext(),f=e.i;if(s==="\\"&&++e.i&&e.GetCS()!=="limits"){e.i=f}}e.Push(o)};t.AmsMethods.SideSet=function(e,t){var r=n(h(e.ParseArg(t)),2),a=r[0],o=r[1];var s=n(h(e.ParseArg(t)),2),u=s[0],c=s[1];var f=e.ParseArg(t);var d=f;if(a){if(o){a.replaceChild(e.create("node","mphantom",[e.create("node","mpadded",[i.default.copyNode(f,e)],{width:0})]),l.default.getChildAt(a,0))}else{d=e.create("node","mmultiscripts",[f]);if(u){l.default.appendChildren(d,[l.default.getChildAt(u,1)||e.create("node","none"),l.default.getChildAt(u,2)||e.create("node","none")])}l.default.setProperty(d,"scriptalign","left");l.default.appendChildren(d,[e.create("node","mprescripts"),l.default.getChildAt(a,1)||e.create("node","none"),l.default.getChildAt(a,2)||e.create("node","none")])}}if(u&&d===f){u.replaceChild(f,l.default.getChildAt(u,0));d=u}var p=e.create("node","TeXAtom",[],{texClass:m.TEXCLASS.OP,movesupsub:true,movablelimits:true});if(o){a&&p.appendChild(a);p.appendChild(o)}p.appendChild(d);c&&p.appendChild(c);e.Push(p)};function h(e){if(!e||e.isInferred&&e.childNodes.length===0)return[null,null];if(e.isKind("msubsup")&&v(e))return[e,null];var t=l.default.getChildAt(e,0);if(!(e.isInferred&&t&&v(t)))return[null,e];e.childNodes.splice(0,1);return[t,e]}function v(e){var t=e.childNodes[0];return t&&t.isKind("mi")&&t.getText()===""}t.AmsMethods.operatorLetter=function(e,t){return e.stack.env.operatorLetters?s.default.variable(e,t):false};t.AmsMethods.MultiIntegral=function(e,t,r){var a=e.GetNext();if(a==="\\"){var n=e.i;a=e.GetArgument(t);e.i=n;if(a==="\\limits"){if(t==="\\idotsint"){r="\\!\\!\\mathop{\\,\\,"+r+"}"}else{r="\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}"}}}e.string=r+" "+e.string.slice(e.i);e.i=0};t.AmsMethods.xArrow=function(e,t,r,a,n){var o={width:"+"+i.default.Em((a+n)/18),lspace:i.default.Em(a/18)};var s=e.GetBrackets(t);var u=e.ParseArg(t);var f=e.create("node","mspace",[],{depth:".25em"});var d=e.create("token","mo",{stretchy:true,texClass:m.TEXCLASS.REL},String.fromCodePoint(r));d=e.create("node","mstyle",[d],{scriptlevel:0});var p=e.create("node","munderover",[d]);var h=e.create("node","mpadded",[u,f],o);l.default.setAttribute(h,"voffset","-.2em");l.default.setAttribute(h,"height","-.2em");l.default.setChild(p,p.over,h);if(s){var v=new c.default(s,e.stack.env,e.configuration).mml();var g=e.create("node","mspace",[],{height:".75em"});h=e.create("node","mpadded",[v,g],o);l.default.setAttribute(h,"voffset",".15em");l.default.setAttribute(h,"depth","-.15em");l.default.setChild(p,p.under,h)}l.default.setProperty(p,"subsupOK",true);e.Push(p)};t.AmsMethods.HandleShove=function(e,t,r){var a=e.stack.Top();if(a.kind!=="multline"){throw new f.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",e.currentCS,"multline")}if(a.Size()){throw new f.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e.currentCS)}a.setProperty("shove",r)};t.AmsMethods.CFrac=function(e,t){var r=i.default.trimSpaces(e.GetBrackets(t,""));var a=e.GetArgument(t);var n=e.GetArgument(t);var o={l:u.TexConstant.Align.LEFT,r:u.TexConstant.Align.RIGHT,"":""};var s=new c.default("\\strut\\textstyle{"+a+"}",e.stack.env,e.configuration).mml();var d=new c.default("\\strut\\textstyle{"+n+"}",e.stack.env,e.configuration).mml();var p=e.create("node","mfrac",[s,d]);r=o[r];if(r==null){throw new f.default("IllegalAlign","Illegal alignment specified in %1",e.currentCS)}if(r){l.default.setProperties(p,{numalign:r,denomalign:r})}e.Push(p)};t.AmsMethods.Genfrac=function(e,t,r,a,n,o){if(r==null){r=e.GetDelimiterArg(t)}if(a==null){a=e.GetDelimiterArg(t)}if(n==null){n=e.GetArgument(t)}if(o==null){o=i.default.trimSpaces(e.GetArgument(t))}var s=e.ParseArg(t);var u=e.ParseArg(t);var c=e.create("node","mfrac",[s,u]);if(n!==""){l.default.setAttribute(c,"linethickness",n)}if(r||a){l.default.setProperty(c,"withDelims",true);c=i.default.fixedFence(e.configuration,r,c,a)}if(o!==""){var d=parseInt(o,10);var p=["D","T","S","SS"][d];if(p==null){throw new f.default("BadMathStyleFor","Bad math style for %1",e.currentCS)}c=e.create("node","mstyle",[c]);if(p==="D"){l.default.setProperties(c,{displaystyle:true,scriptlevel:0})}else{l.default.setProperties(c,{displaystyle:false,scriptlevel:d-1})}}e.Push(c)};t.AmsMethods.HandleTag=function(e,t){if(!e.tags.currentTag.taggable&&e.tags.env){throw new f.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",e.currentCS,e.tags.env)}if(e.tags.currentTag.tag){throw new f.default("MultipleCommand","Multiple %1",e.currentCS)}var r=e.GetStar();var a=i.default.trimSpaces(e.GetArgument(t));e.tags.tag(a,r)};t.AmsMethods.HandleNoTag=p.default.HandleNoTag;t.AmsMethods.HandleRef=p.default.HandleRef;t.AmsMethods.Macro=p.default.Macro;t.AmsMethods.Accent=p.default.Accent;t.AmsMethods.Tilde=p.default.Tilde;t.AmsMethods.Array=p.default.Array;t.AmsMethods.Spacer=p.default.Spacer;t.AmsMethods.NamedOp=p.default.NamedOp;t.AmsMethods.EqnArray=p.default.EqnArray;t.AmsMethods.Equation=p.default.Equation},62684:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AmsCdConfiguration=void 0;var a=r(56441);r(14831);t.AmsCdConfiguration=a.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:false}}})},14831:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=o(r(80209));var l=i(r(22960));var u=i(r(55828));new s.EnvironmentMap("amscd_environment",l.default.environment,{CD:"CD"},u.default);new s.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},u.default);new s.MacroMap("amscd_special",{"@":"arrow"},u.default)},55828:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(75845));var o=r(11252);var i=r(80747);var s=a(r(72691));var l={};l.CD=function(e,t){e.Push(t);var r=e.itemFactory.create("array");var a=e.configuration.options.amscd;r.setProperties({minw:e.stack.env.CD_minw||a.harrowsize,minh:e.stack.env.CD_minh||a.varrowsize});r.arraydef={columnalign:"center",columnspacing:a.colspace,rowspacing:a.rowspace,displaystyle:true};return r};l.arrow=function(e,t){var r=e.string.charAt(e.i);if(!r.match(/[>":"→","<":"←",V:"↓",A:"↑"}[r];var v=e.GetUpTo(t+r,r);var g=e.GetUpTo(t+r,r);if(r===">"||r==="<"){d=e.create("token","mo",p,h);if(!v){v="\\kern "+u.getProperty("minw")}if(v||g){var y={width:"+.67em",lspace:".33em"};d=e.create("node","munderover",[d]);if(v){var b=new n.default(v,e.stack.env,e.configuration).mml();var x=e.create("node","mpadded",[b],y);s.default.setAttribute(x,"voffset",".1em");s.default.setChild(d,d.over,x)}if(g){var _=new n.default(g,e.stack.env,e.configuration).mml();s.default.setChild(d,d.under,e.create("node","mpadded",[_],y))}if(e.configuration.options.amscd.hideHorizontalLabels){d=e.create("node","mpadded",d,{depth:0,height:".67em"})}}}else{var w=e.create("token","mo",m,h);d=w;if(v||g){d=e.create("node","mrow");if(v){s.default.appendChildren(d,[new n.default("\\scriptstyle\\llap{"+v+"}",e.stack.env,e.configuration).mml()])}w.texClass=i.TEXCLASS.ORD;s.default.appendChildren(d,[w]);if(g){s.default.appendChildren(d,[new n.default("\\scriptstyle\\rlap{"+g+"}",e.stack.env,e.configuration).mml()])}}}}if(d){e.Push(d)}l.cell(e,t)};l.cell=function(e,t){var r=e.stack.Top();if((r.table||[]).length%2===0&&(r.row||[]).length===0){e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"}))}e.Push(e.itemFactory.create("cell").setProperties({isEntry:true,name:t}))};l.minCDarrowwidth=function(e,t){e.stack.env.CD_minw=e.GetDimen(t)};l.minCDarrowheight=function(e,t){e.stack.env.CD_minh=e.GetDimen(t)};t["default"]=l},12512:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BboxConfiguration=t.BboxMethods=void 0;var n=r(56441);var o=r(80209);var i=a(r(98770));t.BboxMethods={};t.BboxMethods.BBox=function(e,t){var r=e.GetBrackets(t,"");var a=e.ParseArg(t);var n=r.split(/,/);var o,u,c;for(var f=0,d=n.length;f=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BoldsymbolConfiguration=t.rewriteBoldTokens=t.createBoldToken=t.BoldsymbolMethods=void 0;var o=r(56441);var i=n(r(72691));var s=r(80469);var l=r(80209);var u=r(55361);var c={};c[s.TexConstant.Variant.NORMAL]=s.TexConstant.Variant.BOLD;c[s.TexConstant.Variant.ITALIC]=s.TexConstant.Variant.BOLDITALIC;c[s.TexConstant.Variant.FRAKTUR]=s.TexConstant.Variant.BOLDFRAKTUR;c[s.TexConstant.Variant.SCRIPT]=s.TexConstant.Variant.BOLDSCRIPT;c[s.TexConstant.Variant.SANSSERIF]=s.TexConstant.Variant.BOLDSANSSERIF;c["-tex-calligraphic"]="-tex-bold-calligraphic";c["-tex-oldstyle"]="-tex-bold-oldstyle";c["-tex-mathit"]=s.TexConstant.Variant.BOLDITALIC;t.BoldsymbolMethods={};t.BoldsymbolMethods.Boldsymbol=function(e,t){var r=e.stack.env["boldsymbol"];e.stack.env["boldsymbol"]=true;var a=e.ParseArg(t);e.stack.env["boldsymbol"]=r;e.Push(a)};new l.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},t.BoldsymbolMethods);function f(e,t,r,a){var n=u.NodeFactory.createToken(e,t,r,a);if(t!=="mtext"&&e.configuration.parser.stack.env["boldsymbol"]){i.default.setProperty(n,"fixBold",true);e.configuration.addNode("fixBold",n)}return n}t.createBoldToken=f;function d(e){var t,r;try{for(var n=a(e.data.getList("fixBold")),o=n.next();!o.done;o=n.next()){var l=o.value;if(i.default.getProperty(l,"fixBold")){var u=i.default.getAttribute(l,"mathvariant");if(u==null){i.default.setAttribute(l,"mathvariant",s.TexConstant.Variant.BOLD)}else{i.default.setAttribute(l,"mathvariant",c[u]||u)}i.default.removeProperties(l,"fixBold")}}}catch(f){t={error:f}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}}t.rewriteBoldTokens=d;t.BoldsymbolConfiguration=o.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:f},postprocessors:[d]})},82792:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.BraketConfiguration=void 0;var n=r(56441);var o=r(85046);r(75755);t.BraketConfiguration=n.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:(a={},a[o.BraketItem.prototype.kind]=o.BraketItem,a)})},85046:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BraketItem=void 0;var o=r(37720);var i=r(80747);var s=n(r(6980));var l=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"braket"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("close")){return[[this.factory.create("mml",this.toMml())],true]}if(t.isKind("mml")){this.Push(t.toMml());if(this.getProperty("single")){return[[this.toMml()],true]}return o.BaseItem.fail}return e.prototype.checkItem.call(this,t)};t.prototype.toMml=function(){var t=e.prototype.toMml.call(this);var r=this.getProperty("open");var a=this.getProperty("close");if(this.getProperty("stretchy")){return s.default.fenced(this.factory.configuration,r,t,a)}var n={fence:true,stretchy:false,symmetric:true,texClass:i.TEXCLASS.OPEN};var o=this.create("token","mo",n,r);n.texClass=i.TEXCLASS.CLOSE;var l=this.create("token","mo",n,a);var u=this.create("node","mrow",[o,t,l],{open:r,close:a,texClass:i.TEXCLASS.INNER});return u};return t}(o.BaseItem);t.BraketItem=l},75755:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(80209);var o=a(r(22792));new n.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","⟨","⟩",false,Infinity],set:["Braket","{","}",false,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","⟨","⟩",true,Infinity],Set:["Braket","{","}",true,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},o.default);new n.MacroMap("Braket-characters",{"|":"Bar"},o.default)},22792:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(38364));var o=r(80747);var i=a(r(98770));var s={};s.Macro=n.default.Macro;s.Braket=function(e,t,r,a,n,o){var s=e.GetNext();if(s===""){throw new i.default("MissingArgFor","Missing argument for %1",e.currentCS)}var l=true;if(s==="{"){e.i++;l=false}e.Push(e.itemFactory.create("braket").setProperties({barmax:o,barcount:0,open:r,close:a,stretchy:n,single:l}))};s.Bar=function(e,t){var r=t==="|"?"|":"∥";var a=e.stack.Top();if(a.kind!=="braket"||a.getProperty("barcount")>=a.getProperty("barmax")){var n=e.create("token","mo",{texClass:o.TEXCLASS.ORD,stretchy:false},r);e.Push(n);return}if(r==="|"&&e.GetNext()==="|"){e.i++;r="∥"}var i=a.getProperty("stretchy");if(!i){var s=e.create("token","mo",{stretchy:false,braketbar:true},r);e.Push(s);return}var l=e.create("node","TeXAtom",[],{texClass:o.TEXCLASS.CLOSE});e.Push(l);a.setProperty("barcount",a.getProperty("barcount")+1);l=e.create("token","mo",{stretchy:true,braketbar:true},r);e.Push(l);l=e.create("node","TeXAtom",[],{texClass:o.TEXCLASS.OPEN});e.Push(l)};t["default"]=s},77774:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.BussproofsConfiguration=void 0;var n=r(56441);var o=r(13224);var i=r(86366);r(38529);t.BussproofsConfiguration=n.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:(a={},a[o.ProofTreeItem.prototype.kind]=o.ProofTreeItem,a),preprocessors:[[i.saveDocument,1]],postprocessors:[[i.clearDocument,3],[i.makeBsprAttributes,2],[i.balanceRules,1]]})},13224:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ProofTreeItem=void 0;var l=s(r(98770));var u=r(37720);var c=s(r(32859));var f=i(r(86366));var d=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.leftLabel=null;t.rigthLabel=null;t.innerStack=new c.default(t.factory,{},true);return t}Object.defineProperty(t.prototype,"kind",{get:function(){return"proofTree"},enumerable:false,configurable:true});t.prototype.checkItem=function(e){if(e.isKind("end")&&e.getName()==="prooftree"){var t=this.toMml();f.setProperty(t,"proof",true);return[[this.factory.create("mml",t),e],true]}if(e.isKind("stop")){throw new l.default("EnvMissingEnd","Missing \\end{%1}",this.getName())}this.innerStack.Push(e);return u.BaseItem.fail};t.prototype.toMml=function(){var t=e.prototype.toMml.call(this);var r=this.innerStack.Top();if(r.isKind("start")&&!r.Size()){return t}this.innerStack.Push(this.factory.create("stop"));var a=this.innerStack.Top().toMml();return this.create("node","mrow",[a,t],{})};return t}(u.BaseItem);t.ProofTreeItem=d},38529:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(86158));var o=a(r(22960));var i=r(80209);new i.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",false],singleLine:["SetLine","solid",false],solidLine:["SetLine","solid",false],dashedLine:["SetLine","dashed",false],alwaysNoLine:["SetLine","none",true],alwaysSingleLine:["SetLine","solid",true],alwaysSolidLine:["SetLine","solid",true],alwaysDashedLine:["SetLine","dashed",true],rootAtTop:["RootAtTop",true],alwaysRootAtTop:["RootAtTop",true],rootAtBottom:["RootAtTop",false],alwaysRootAtBottom:["RootAtTop",false],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},n.default);new i.EnvironmentMap("Bussproofs-environments",o.default.environment,{prooftree:["Prooftree",null,false]},n.default)},86158:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var s=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a0);var s=e.create("node","mtr",i,{});var l=e.create("node","mtable",[s],{framespacing:"0 0"});var c=m(e,e.GetArgument(t));var f=a.getProperty("currentLine");if(f!==a.getProperty("line")){a.setProperty("currentLine",a.getProperty("line"))}var p=h(e,l,[c],a.getProperty("left"),a.getProperty("right"),f,n);a.setProperty("left",null);a.setProperty("right",null);d.setProperty(p,"inference",o);e.configuration.addNode("inference",p);a.Push(p)};function h(e,t,r,a,n,o,i){var s=e.create("node","mtr",[e.create("node","mtd",[t],{})],{});var l=e.create("node","mtr",[e.create("node","mtd",r,{})],{});var u=e.create("node","mtable",i?[l,s]:[s,l],{align:"top 2",rowlines:o,framespacing:"0 0"});d.setProperty(u,"inferenceRule",i?"up":"down");var c,f;if(a){c=e.create("node","mpadded",[a],{height:"+.5em",width:"+.5em",voffset:"-.15em"});d.setProperty(c,"prooflabel","left")}if(n){f=e.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"});d.setProperty(f,"prooflabel","right")}var p,m;if(a&&n){p=[c,u,f];m="both"}else if(a){p=[c,u];m="left"}else if(n){p=[u,f];m="right"}else{return u}u=e.create("node","mrow",p);d.setProperty(u,"labelledRule",m);return u}p.Label=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}var n=f.default.internalMath(e,e.GetArgument(t),0);var o=n.length>1?e.create("node","mrow",n,{}):n[0];a.setProperty(r,o)};p.SetLine=function(e,t,r,a){var n=e.stack.Top();if(n.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}n.setProperty("currentLine",r);if(a){n.setProperty("line",r)}};p.RootAtTop=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}a.setProperty("rootAtTop",r)};p.AxiomF=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}var a=v(e,t);d.setProperty(a,"axiom",true);r.Push(a)};function v(e,t){var r=e.GetNext();if(r!=="$"){throw new u.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",t)}e.i++;var a=e.GetUpTo(t,"$");if(a.indexOf("\\fCenter")===-1){throw new u.default("IllegalUseOfCommand","Missing \\fCenter in %1.",t)}var n=i(a.split("\\fCenter"),2),o=n[0],s=n[1];var l=new c.default(o,e.stack.env,e.configuration).mml();var f=new c.default(s,e.stack.env,e.configuration).mml();var p=new c.default("\\fCenter",e.stack.env,e.configuration).mml();var m=e.create("node","mtd",[l],{});var h=e.create("node","mtd",[p],{});var v=e.create("node","mtd",[f],{});var g=e.create("node","mtr",[m,h,v],{});var y=e.create("node","mtable",[g],{columnspacing:".5ex",columnalign:"center 2"});d.setProperty(y,"sequent",true);e.configuration.addNode("sequent",g);return y}p.FCenter=function(e,t){};p.InferenceF=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}if(a.Size()0);var s=e.create("node","mtr",i,{});var l=e.create("node","mtable",[s],{framespacing:"0 0"});var c=v(e,t);var f=a.getProperty("currentLine");if(f!==a.getProperty("line")){a.setProperty("currentLine",a.getProperty("line"))}var p=h(e,l,[c],a.getProperty("left"),a.getProperty("right"),f,n);a.setProperty("left",null);a.setProperty("right",null);d.setProperty(p,"inference",o);e.configuration.addNode("inference",p);a.Push(p)};t["default"]=p},86366:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i;Object.defineProperty(t,"__esModule",{value:true});t.clearDocument=t.saveDocument=t.makeBsprAttributes=t.removeProperty=t.getProperty=t.setProperty=t.balanceRules=void 0;var s=o(r(72691));var l=o(r(6980));var u=null;var c=null;var f=function(e){c.root=e;var t=u.outputJax.getBBox(c,u).w;return t};var d=function(e){var t=0;while(e&&!s.default.isType(e,"mtable")){if(s.default.isType(e,"text")){return null}if(s.default.isType(e,"mrow")){e=e.childNodes[0];t=0;continue}e=e.parent.childNodes[t];t++}return e};var p=function(e,t){return e.childNodes[t==="up"?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]};var m=function(e,t){return e.childNodes[t].childNodes[0].childNodes[0]};var h=function(e){return m(e,0)};var v=function(e){return m(e,e.childNodes.length-1)};var g=function(e,t){return e.childNodes[t==="up"?0:1].childNodes[0].childNodes[0].childNodes[0]};var y=function(e){while(e&&!s.default.isType(e,"mtd")){e=e.parent}return e};var b=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)+1]};var x=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)-1]};var _=function(e){while(e&&(0,t.getProperty)(e,"inference")==null){e=e.parent}return e};var w=function(e,t,r){if(r===void 0){r=false}var a=0;if(e===t){return a}if(e!==t.parent){var n=e.childNodes;var o=r?n.length-1:0;if(s.default.isType(n[o],"mspace")){a+=f(n[o])}e=t.parent}if(e===t){return a}var i=e.childNodes;var l=r?i.length-1:0;if(i[l]!==t){a+=f(i[l])}return a};var M=function(e,r){if(r===void 0){r=false}var a=d(e);var n=g(a,(0,t.getProperty)(a,"inferenceRule"));var o=w(e,a,r);var i=f(a);var s=f(n);return o+(i-s)/2};var A=function(e,r,a,n){if(n===void 0){n=false}if((0,t.getProperty)(r,"inferenceRule")||(0,t.getProperty)(r,"labelledRule")){var o=e.nodeFactory.create("node","mrow");r.parent.replaceChild(o,r);o.setChildren([r]);C(r,o);r=o}var i=n?r.childNodes.length-1:0;var u=r.childNodes[i];if(s.default.isType(u,"mspace")){s.default.setAttribute(u,"width",l.default.Em(l.default.dimen2em(s.default.getAttribute(u,"width"))+a));return}u=e.nodeFactory.create("node","mspace",[],{width:l.default.Em(a)});if(n){r.appendChild(u);return}u.parent=r;r.childNodes.unshift(u)};var C=function(e,r){var a=["inference","proof","maxAdjust","labelledRule"];a.forEach((function(a){var n=(0,t.getProperty)(e,a);if(n!=null){(0,t.setProperty)(r,a,n);(0,t.removeProperty)(e,a)}}))};var P=function(e){var r=e.nodeLists["sequent"];if(!r){return}for(var a=r.length-1,n=void 0;n=r[a];a--){if((0,t.getProperty)(n,"sequentProcessed")){(0,t.removeProperty)(n,"sequentProcessed");continue}var o=[];var i=_(n);if((0,t.getProperty)(i,"inference")!==1){continue}o.push(n);while((0,t.getProperty)(i,"inference")===1){i=d(i);var s=h(p(i,(0,t.getProperty)(i,"inferenceRule")));var l=(0,t.getProperty)(s,"inferenceRule")?g(s,(0,t.getProperty)(s,"inferenceRule")):s;if((0,t.getProperty)(l,"sequent")){n=l.childNodes[0];o.push(n);(0,t.setProperty)(n,"sequentProcessed",true)}i=s}k(e,o)}};var S=function(e,r,a,n,o){var i=e.nodeFactory.create("node","mspace",[],{width:l.default.Em(o)});if(n==="left"){var s=r.childNodes[a].childNodes[0];i.parent=s;s.childNodes.unshift(i)}else{r.childNodes[a].appendChild(i)}(0,t.setProperty)(r.parent,"sequentAdjust_"+n,o)};var k=function(e,r){var n=r.pop();while(r.length){var o=r.pop();var i=a(O(n,o),2),s=i[0],l=i[1];if((0,t.getProperty)(n.parent,"axiom")){S(e,s<0?n:o,0,"left",Math.abs(s));S(e,l<0?n:o,2,"right",Math.abs(l))}n=o}};var O=function(e,t){var r=f(e.childNodes[2]);var a=f(t.childNodes[2]);var n=f(e.childNodes[0]);var o=f(t.childNodes[0]);var i=n-o;var s=r-a;return[i,s]};var q=function(e){var r,a;c=new e.document.options.MathItem("",null,e.math.display);var o=e.data;P(o);var i=o.nodeLists["inference"]||[];try{for(var s=n(i),l=s.next();!l.done;l=s.next()){var u=l.value;var f=(0,t.getProperty)(u,"proof");var m=d(u);var g=p(m,(0,t.getProperty)(m,"inferenceRule"));var x=h(g);if((0,t.getProperty)(x,"inference")){var C=M(x);if(C){A(o,x,-C);var S=w(u,m,false);A(o,u,C-S)}}var k=v(g);if((0,t.getProperty)(k,"inference")==null){continue}var O=M(k,true);A(o,k,-O,true);var q=w(u,m,true);var T=(0,t.getProperty)(u,"maxAdjust");if(T!=null){O=Math.max(O,T)}var E=void 0;if(f||!(E=y(u))){A(o,(0,t.getProperty)(u,"proof")?u:u.parent,O-q,true);continue}var I=b(E);if(I){var D=o.nodeFactory.create("node","mspace",[],{width:O-q+"em"});I.appendChild(D);u.removeProperty("maxAdjust");continue}var N=_(E);if(!N){continue}O=(0,t.getProperty)(N,"maxAdjust")?Math.max((0,t.getProperty)(N,"maxAdjust"),O):O;(0,t.setProperty)(N,"maxAdjust",O)}}catch(G){r={error:G}}finally{try{if(l&&!l.done&&(a=s.return))a.call(s)}finally{if(r)throw r.error}}};t.balanceRules=q;var T="bspr_";var E=(i={},i[T+"maxAdjust"]=true,i);var I=function(e,t,r){s.default.setProperty(e,T+t,r)};t.setProperty=I;var D=function(e,t){return s.default.getProperty(e,T+t)};t.getProperty=D;var N=function(e,t){e.removeProperty(T+t)};t.removeProperty=N;var G=function(e){e.data.root.walkTree((function(e,t){var r=[];e.getPropertyNames().forEach((function(t){if(!E[t]&&t.match(RegExp("^"+T))){r.push(t+":"+e.getProperty(t))}}));if(r.length){s.default.setAttribute(e,"semantics",r.join(";"))}}))};t.makeBsprAttributes=G;var B=function(e){u=e.document;if(!("getBBox"in u.outputJax)){throw Error("The bussproofs extension requires an output jax with a getBBox() method")}};t.saveDocument=B;var F=function(e){u=null};t.clearDocument=F},2362:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CancelConfiguration=t.CancelMethods=void 0;var n=r(56441);var o=r(80469);var i=r(80209);var s=a(r(6980));var l=r(48128);t.CancelMethods={};t.CancelMethods.Cancel=function(e,t,r){var a=e.GetBrackets(t,"");var n=e.ParseArg(t);var o=s.default.keyvalOptions(a,l.ENCLOSE_OPTIONS);o["notation"]=r;e.Push(e.create("node","menclose",[n],o))};t.CancelMethods.CancelTo=function(e,t){var r=e.GetBrackets(t,"");var a=e.ParseArg(t);var n=e.ParseArg(t);var i=s.default.keyvalOptions(r,l.ENCLOSE_OPTIONS);i["notation"]=[o.TexConstant.Notation.UPDIAGONALSTRIKE,o.TexConstant.Notation.UPDIAGONALARROW,o.TexConstant.Notation.NORTHEASTARROW].join(" ");a=e.create("node","mpadded",[a],{depth:"-.1em",height:"+.1em",voffset:".1em"});e.Push(e.create("node","msup",[e.create("node","menclose",[n],i),a]))};new i.CommandMap("cancel",{cancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",o.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE+" "+o.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},t.CancelMethods);t.CancelConfiguration=n.Configuration.create("cancel",{handler:{macro:["cancel"]}})},12796:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.CasesConfiguration=t.CasesMethods=t.CasesTags=t.CasesBeginItem=void 0;var i=r(56441);var s=r(80209);var l=n(r(6980));var u=n(r(38364));var c=n(r(98770));var f=r(94650);var d=r(48600);var p=r(99118);var m=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"cases-begin"},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")&&t.getName()===this.getName()){if(this.getProperty("end")){this.setProperty("end",false);return[[],true]}}return e.prototype.checkItem.call(this,t)};return t}(f.BeginItem);t.CasesBeginItem=m;var h=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.subcounter=0;return t}t.prototype.start=function(t,r,a){this.subcounter=0;e.prototype.start.call(this,t,r,a)};t.prototype.autoTag=function(){if(this.currentTag.tag!=null)return;if(this.currentTag.env==="subnumcases"){if(this.subcounter===0)this.counter++;this.subcounter++;this.tag(this.formatNumber(this.counter,this.subcounter),false)}else{if(this.subcounter===0||this.currentTag.env!=="numcases-left")this.counter++;this.tag(this.formatNumber(this.counter),false)}};t.prototype.formatNumber=function(e,t){if(t===void 0){t=null}return e.toString()+(t===null?"":String.fromCharCode(96+t))};return t}(d.AmsTags);t.CasesTags=h;t.CasesMethods={NumCases:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));var r=e.stack.Top();var a=r.Last;var n=l.default.copyNode(a,e);var o=r.getProperty("left");p.EmpheqUtil.left(a,n,o+"\\empheqlbrace\\,",e,"numcases-left");e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));return null}else{var o=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",o);var i=u.default.EqnArray(e,t,true,true,"ll");i.arraydef.displaystyle=false;i.arraydef.rowspacing=".2em";i.setProperty("numCases",true);e.Push(t);return i}},Entry:function(e,t){if(!e.stack.Top().getProperty("numCases")){return u.default.Entry(e,t)}e.Push(e.itemFactory.create("cell").setProperties({isEntry:true,name:t}));var r=e.string;var a=0,n=e.i,o=r.length;while(n=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CenternotConfiguration=t.filterCenterOver=void 0;var o=r(56441);var i=n(r(75845));var s=n(r(72691));var l=r(80209);var u=n(r(38364));new l.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{⧸}}",1]},{CenterOver:function(e,t){var r="{"+e.GetArgument(t)+"}";var a=e.ParseArg(t);var n=new i.default(r,e.stack.env,e.configuration).mml();var o=e.create("node","TeXAtom",[new i.default(r,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[a],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[n])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",n);e.Push(o)},Macro:u.default.Macro});function c(e){var t,r;var n=e.data;try{for(var o=a(n.getList("centerOver")),i=o.next();!i.done;i=o.next()){var l=i.value;var u=s.default.getTexClass(l.childNodes[0].childNodes[0]);if(u!==null){s.default.setProperties(l.parent.parent.parent.parent.parent.parent,{texClass:u})}}}catch(c){t={error:c}}finally{try{if(i&&!i.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}}t.filterCenterOver=c;t.CenternotConfiguration=o.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[c]})},79712:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ColorConfiguration=void 0;var a=r(80209);var n=r(56441);var o=r(8080);var i=r(21860);new a.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},o.ColorMethods);var s=function(e,t){t.parseOptions.packageData.set("color",{model:new i.ColorModel})};t.ColorConfiguration=n.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:s})},54187:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.COLORS=void 0;t.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]])},8080:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColorMethods=void 0;var n=a(r(72691));var o=a(r(6980));function i(e){var t="+".concat(e);var r=e.replace(/^.*?([a-z]*)$/,"$1");var a=2*parseFloat(t);return{width:"+".concat(a).concat(r),height:t,depth:t,lspace:e}}t.ColorMethods={};t.ColorMethods.Color=function(e,t){var r=e.GetBrackets(t,"");var a=e.GetArgument(t);var n=e.configuration.packageData.get("color").model;var o=n.getColor(r,a);var i=e.itemFactory.create("style").setProperties({styles:{mathcolor:o}});e.stack.env["color"]=o;e.Push(i)};t.ColorMethods.TextColor=function(e,t){var r=e.GetBrackets(t,"");var a=e.GetArgument(t);var n=e.configuration.packageData.get("color").model;var o=n.getColor(r,a);var i=e.stack.env["color"];e.stack.env["color"]=o;var s=e.ParseArg(t);if(i){e.stack.env["color"]=i}else{delete e.stack.env["color"]}var l=e.create("node","mstyle",[s],{mathcolor:o});e.Push(l)};t.ColorMethods.DefineColor=function(e,t){var r=e.GetArgument(t);var a=e.GetArgument(t);var n=e.GetArgument(t);var o=e.configuration.packageData.get("color").model;o.defineColor(a,r,n)};t.ColorMethods.ColorBox=function(e,t){var r=e.GetArgument(t);var a=o.default.internalMath(e,e.GetArgument(t));var s=e.configuration.packageData.get("color").model;var l=e.create("node","mpadded",a,{mathbackground:s.getColor("named",r)});n.default.setProperties(l,i(e.options.color.padding));e.Push(l)};t.ColorMethods.FColorBox=function(e,t){var r=e.GetArgument(t);var a=e.GetArgument(t);var s=o.default.internalMath(e,e.GetArgument(t));var l=e.options.color;var u=e.configuration.packageData.get("color").model;var c=e.create("node","mpadded",s,{mathbackground:u.getColor("named",a),style:"border: ".concat(l.borderWidth," solid ").concat(u.getColor("named",r))});n.default.setProperties(c,i(l.padding));e.Push(c)}},21860:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColorModel=void 0;var o=n(r(98770));var i=r(54187);var s=new Map;var l=function(){function e(){this.userColors=new Map}e.prototype.normalizeColor=function(e,t){if(!e||e==="named"){return t}if(s.has(e)){var r=s.get(e);return r(t)}throw new o.default("UndefinedColorModel","Color model '%1' not defined",e)};e.prototype.getColor=function(e,t){if(!e||e==="named"){return this.getColorByName(t)}return this.normalizeColor(e,t)};e.prototype.getColorByName=function(e){if(this.userColors.has(e)){return this.userColors.get(e)}if(i.COLORS.has(e)){return i.COLORS.get(e)}return e};e.prototype.defineColor=function(e,t,r){var a=this.normalizeColor(e,r);this.userColors.set(t,a)};return e}();t.ColorModel=l;s.set("rgb",(function(e){var t,r;var n=e.trim().split(/\s*,\s*/);var i="#";if(n.length!==3){throw new o.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb")}try{for(var s=a(n),l=s.next();!l.done;l=s.next()){var u=l.value;if(!u.match(/^(\d+(\.\d*)?|\.\d+)$/)){throw new o.default("InvalidDecimalNumber","Invalid decimal number")}var c=parseFloat(u);if(c<0||c>1){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1")}var f=Math.floor(c*255).toString(16);if(f.length<2){f="0"+f}i+=f}}catch(d){t={error:d}}finally{try{if(l&&!l.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}return i}));s.set("RGB",(function(e){var t,r;var n=e.trim().split(/\s*,\s*/);var i="#";if(n.length!==3){throw new o.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB")}try{for(var s=a(n),l=s.next();!l.done;l=s.next()){var u=l.value;if(!u.match(/^\d+$/)){throw new o.default("InvalidNumber","Invalid number")}var c=parseInt(u);if(c>255){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255")}var f=c.toString(16);if(f.length<2){f="0"+f}i+=f}}catch(d){t={error:d}}finally{try{if(l&&!l.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}return i}));s.set("gray",(function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){throw new o.default("InvalidDecimalNumber","Invalid decimal number")}var t=parseFloat(e);if(t<0||t>1){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1")}var r=Math.floor(t*255).toString(16);if(r.length<2){r="0"+r}return"#".concat(r).concat(r).concat(r)}))},90272:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColortblConfiguration=t.ColorArrayItem=void 0;var o=r(94650);var i=r(56441);var s=r(80209);var l=n(r(98770));var u=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.color={cell:"",row:"",col:[]};t.hasColor=false;return t}t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.row[this.row.length-1];var r=this.color.cell||this.color.row||this.color.col[this.row.length-1];if(r){t.attributes.set("mathbackground",r);this.color.cell="";this.hasColor=true}};t.prototype.EndRow=function(){e.prototype.EndRow.call(this);this.color.row=""};t.prototype.createMml=function(){var t=e.prototype.createMml.call(this);var r=t.isKind("mrow")?t.childNodes[1]:t;if(r.isKind("menclose")){r=r.childNodes[0].childNodes[0]}if(this.hasColor&&r.attributes.get("frame")==="none"){r.attributes.set("frame","")}return t};return t}(o.ArrayItem);t.ColorArrayItem=u;new s.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(e,t,r){var a=e.configuration.packageData.get("color").model;var n=e.GetBrackets(t,"");var o=a.getColor(n,e.GetArgument(t));var i=e.stack.Top();if(!(i instanceof u)){throw new l.default("UnsupportedTableColor","Unsupported use of %1",e.currentCS)}if(r==="col"){if(i.table.length){throw new l.default("ColumnColorNotTop","%1 must be in the top row",t)}i.color.col[i.row.length]=o;if(e.GetBrackets(t,"")){e.GetBrackets(t,"")}}else{i.color[r]=o;if(r==="row"&&(i.Size()||i.row.length)){throw new l.default("RowColorNotFirst","%1 must be at the beginning of a row",t)}}}});var c=function(e,t){if(!t.parseOptions.packageData.has("color")){i.ConfigurationHandler.get("color").config(e,t)}};t.ColortblConfiguration=i.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:u},priority:10,config:[c,10]})},69600:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ColorConfiguration=t.ColorV2Methods=void 0;var a=r(80209);var n=r(56441);t.ColorV2Methods={Color:function(e,t){var r=e.GetArgument(t);var a=e.stack.env["color"];e.stack.env["color"]=r;var n=e.ParseArg(t);if(a){e.stack.env["color"]=a}else{delete e.stack.env["color"]}var o=e.create("node","mstyle",[n],{mathcolor:r});e.Push(o)}};new a.CommandMap("colorv2",{color:"Color"},t.ColorV2Methods);t.ColorConfiguration=n.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})},45320:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.ConfigMacrosConfiguration=void 0;var i=r(56441);var s=r(34981);var l=r(80209);var u=n(r(22960));var c=r(27151);var f=n(r(91200));var d=r(73694);var p="configmacros-map";var m="configmacros-env-map";function h(e){new l.CommandMap(p,{},{});new l.EnvironmentMap(m,u.default.environment,{},{});e.append(i.Configuration.local({handler:{macro:[p],environment:[m]},priority:3}))}function v(e,t){g(t);y(t)}function g(e){var t,r;var n=e.parseOptions.handlers.retrieve(p);var o=e.parseOptions.options.macros;try{for(var i=a(Object.keys(o)),s=i.next();!s.done;s=i.next()){var l=s.value;var u=typeof o[l]==="string"?[o[l]]:o[l];var d=Array.isArray(u[2])?new c.Macro(l,f.default.MacroWithTemplate,u.slice(0,2).concat(u[2])):new c.Macro(l,f.default.Macro,u);n.add(l,d)}}catch(m){t={error:m}}finally{try{if(s&&!s.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}function y(e){var t,r;var n=e.parseOptions.handlers.retrieve(m);var o=e.parseOptions.options.environments;try{for(var i=a(Object.keys(o)),s=i.next();!s.done;s=i.next()){var l=s.value;n.add(l,new c.Macro(l,f.default.BeginEnv,[true].concat(o[l])))}}catch(u){t={error:u}}finally{try{if(s&&!s.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}t.ConfigMacrosConfiguration=i.Configuration.create("configmacros",{init:h,config:v,items:(o={},o[d.BeginEnvItem.prototype.kind]=d.BeginEnvItem,o),options:{macros:(0,s.expandable)({}),environments:(0,s.expandable)({})}})},13726:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i;Object.defineProperty(t,"__esModule",{value:true});t.EmpheqConfiguration=t.EmpheqMethods=t.EmpheqBeginItem=void 0;var s=r(56441);var l=r(80209);var u=o(r(6980));var c=o(r(98770));var f=r(94650);var d=r(99118);var p=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")&&t.getName()===this.getName()){this.setProperty("end",false)}return e.prototype.checkItem.call(this,t)};return t}(f.BeginItem);t.EmpheqBeginItem=p;t.EmpheqMethods={Empheq:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;e.Push(e.itemFactory.create("end").setProperty("name",e.stack.global.empheq));e.stack.global.empheq="";var r=e.stack.Top();d.EmpheqUtil.adjustTable(r,e);e.Push(e.itemFactory.create("end").setProperty("name","empheq"))}else{u.default.checkEqnEnv(e);delete e.stack.global.eqnenv;var a=e.GetBrackets("\\begin{"+t.getName()+"}")||"";var o=n((e.GetArgument("\\begin{"+t.getName()+"}")||"").split(/=/),2),i=o[0],s=o[1];if(!d.EmpheqUtil.checkEnv(i)){throw new c.default("UnknownEnv",'Unknown environment "%1"',i)}if(a){t.setProperties(d.EmpheqUtil.splitOptions(a,{left:1,right:1}))}e.stack.global.empheq=i;e.string="\\begin{"+i+"}"+(s?"{"+s+"}":"")+e.string.slice(e.i);e.i=0;e.Push(t)}},EmpheqMO:function(e,t,r){e.Push(e.create("token","mo",{},r))},EmpheqDelim:function(e,t){var r=e.GetDelimiter(t);e.Push(e.create("token","mo",{stretchy:true,symmetric:true},r))}};new l.EnvironmentMap("empheq-env",d.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},t.EmpheqMethods);new l.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","⟨"],empheqrangle:["EmpheqMO","⟩"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","‖"],empheqrVert:["EmpheqMO","‖"],empheqlfloor:["EmpheqMO","⌊"],empheqrfloor:["EmpheqMO","⌋"],empheqlceil:["EmpheqMO","⌈"],empheqrceil:["EmpheqMO","⌉"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","⟨"],empheqbigrangle:["EmpheqMO","⟩"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","‖"],empheqbigrVert:["EmpheqMO","‖"],empheqbiglfloor:["EmpheqMO","⌊"],empheqbigrfloor:["EmpheqMO","⌋"],empheqbiglceil:["EmpheqMO","⌈"],empheqbigrceil:["EmpheqMO","⌉"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},t.EmpheqMethods);t.EmpheqConfiguration=s.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:(i={},i[p.prototype.kind]=p,i)})},99118:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.EmpheqUtil=void 0;var s=i(r(6980));var l=i(r(75845));t.EmpheqUtil={environment:function(e,t,r,o){var i=o[0];var s=e.itemFactory.create(i+"-begin").setProperties({name:t,end:i});e.Push(r.apply(void 0,n([e,s],a(o.slice(1)),false)))},splitOptions:function(e,t){if(t===void 0){t=null}return s.default.keyvalOptions(e,t,true)},columnCount:function(e){var t,r;var a=0;try{for(var n=o(e.childNodes),i=n.next();!i.done;i=n.next()){var s=i.value;var l=s.childNodes.length-(s.isKind("mlabeledtr")?1:0);if(l>a)a=l}}catch(u){t={error:u}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}return a},cellBlock:function(e,t,r,a){var n,i;var s=r.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"});var u=new l.default(e,r.stack.env,r.configuration);var c=u.mml();if(a&&u.configuration.tags.label){u.configuration.tags.currentTag.env=a;u.configuration.tags.getTag(true)}try{for(var f=o(c.isInferred?c.childNodes:[c]),d=f.next();!d.done;d=f.next()){var p=d.value;s.appendChild(p)}}catch(m){n={error:m}}finally{try{if(d&&!d.done&&(i=f.return))i.call(f)}finally{if(n)throw n.error}}s.appendChild(r.create("node","mphantom",[r.create("node","mpadded",[t],{width:0})]));return s},topRowTable:function(e,t){var r=s.default.copyNode(e,t);r.setChildren(r.childNodes.slice(0,1));r.attributes.set("align","baseline 1");return e.factory.create("mphantom",{},[t.create("node","mpadded",[r],{width:0})])},rowspanCell:function(e,t,r,a,n){e.appendChild(a.create("node","mpadded",[this.cellBlock(t,s.default.copyNode(r,a),a,n),this.topRowTable(r,a)],{height:0,depth:0,voffset:"height"}))},left:function(e,t,r,a,n){var i,s;if(n===void 0){n=""}e.attributes.set("columnalign","right "+(e.attributes.get("columnalign")||""));e.attributes.set("columnspacing","0em "+(e.attributes.get("columnspacing")||""));var l;try{for(var u=o(e.childNodes.slice(0).reverse()),c=u.next();!c.done;c=u.next()){var f=c.value;l=a.create("node","mtd");f.childNodes.unshift(l);l.parent=f;if(f.isKind("mlabeledtr")){f.childNodes[0]=f.childNodes[1];f.childNodes[1]=l}}}catch(d){i={error:d}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}this.rowspanCell(l,r,t,a,n)},right:function(e,r,a,n,o){if(o===void 0){o=""}if(e.childNodes.length===0){e.appendChild(n.create("node","mtr"))}var i=t.EmpheqUtil.columnCount(e);var s=e.childNodes[0];while(s.childNodes.length{Object.defineProperty(t,"__esModule",{value:true});t.GensymbConfiguration=void 0;var a=r(56441);var n=r(80469);var o=r(80209);function i(e,t){var r=t.attributes||{};r.mathvariant=n.TexConstant.Variant.NORMAL;r.class="MathML-Unit";var a=e.create("token","mi",r,t.char);e.Push(a)}new o.CharacterMap("gensymb-symbols",i,{ohm:"Ω",degree:"°",celsius:"℃",perthousand:"‰",micro:"µ"});t.GensymbConfiguration=a.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}})},98452:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HtmlConfiguration=void 0;var n=r(56441);var o=r(80209);var i=a(r(2140));new o.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},i.default);t.HtmlConfiguration=n.Configuration.create("html",{handler:{macro:["html_macros"]}})},2140:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(72691));var o={};o.Href=function(e,t){var r=e.GetArgument(t);var a=i(e,t);n.default.setAttribute(a,"href",r);e.Push(a)};o.Class=function(e,t){var r=e.GetArgument(t);var a=i(e,t);var o=n.default.getAttribute(a,"class");if(o){r=o+" "+r}n.default.setAttribute(a,"class",r);e.Push(a)};o.Style=function(e,t){var r=e.GetArgument(t);var a=i(e,t);var o=n.default.getAttribute(a,"style");if(o){if(r.charAt(r.length-1)!==";"){r+=";"}r=o+" "+r}n.default.setAttribute(a,"style",r);e.Push(a)};o.Id=function(e,t){var r=e.GetArgument(t);var a=i(e,t);n.default.setAttribute(a,"id",r);e.Push(a)};var i=function(e,t){var r=e.ParseArg(t);if(!n.default.isInferred(r)){return r}var a=n.default.getChildren(r);if(a.length===1){return a[0]}var o=e.create("node","mrow");n.default.copyChildren(r,o);n.default.copyAttributes(r,o);return o};t["default"]=o},7932:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsConfiguration=t.fixPrescripts=t.PAIREDDELIMS=void 0;var i=r(56441);var s=r(80209);var l=n(r(72691));var u=r(34981);r(5615);var c=r(90352);var f=r(81197);var d=r(16226);t.PAIREDDELIMS="mathtools-paired-delims";function p(e){new s.CommandMap(t.PAIREDDELIMS,{},{});e.append(i.Configuration.local({handler:{macro:[t.PAIREDDELIMS]},priority:-5}))}function m(e,t){var r,n;var o=t.parseOptions;var i=o.options.mathtools.pairedDelimiters;try{for(var s=a(Object.keys(i)),l=s.next();!l.done;l=s.next()){var u=l.value;c.MathtoolsUtil.addPairedDelims(o,u,i[u])}}catch(d){r={error:d}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}(0,f.MathtoolsTagFormat)(e,t)}function h(e){var t,r,n,o,i,s;var u=e.data;try{for(var c=a(u.getList("mmultiscripts")),f=c.next();!f.done;f=c.next()){var d=f.value;if(!d.getProperty("fixPrescript"))continue;var p=l.default.getChildren(d);var m=0;try{for(var h=(n=void 0,a([1,2])),v=h.next();!v.done;v=h.next()){var g=v.value;if(!p[g]){l.default.setChild(d,g,u.nodeFactory.create("node","none"));m++}}}catch(x){n={error:x}}finally{try{if(v&&!v.done&&(o=h.return))o.call(h)}finally{if(n)throw n.error}}try{for(var y=(i=void 0,a([4,5])),b=y.next();!b.done;b=y.next()){var g=b.value;if(l.default.isType(p[g],"mrow")&&l.default.getChildren(p[g]).length===0){l.default.setChild(d,g,u.nodeFactory.create("node","none"))}}}catch(_){i={error:_}}finally{try{if(b&&!b.done&&(s=y.return))s.call(y)}finally{if(i)throw i.error}}if(m===2){p.splice(1,2)}}}catch(w){t={error:w}}finally{try{if(f&&!f.done&&(r=c.return))r.call(c)}finally{if(t)throw t.error}}}t.fixPrescripts=h;t.MathtoolsConfiguration=i.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(o={},o[d.MultlinedItem.prototype.kind]=d.MultlinedItem,o),init:p,config:m,postprocessors:[[h,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:false,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":false,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":true,pairedDelimiters:(0,u.expandable)({}),tagforms:(0,u.expandable)({})}}})},16226:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MultlinedItem=void 0;var o=r(92902);var i=n(r(72691));var s=r(80469);var l=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"multlined"},enumerable:false,configurable:true});t.prototype.EndTable=function(){if(this.Size()||this.row.length){this.EndEntry();this.EndRow()}if(this.table.length>1){var t=this.factory.configuration.options.mathtools;var r=t.multlinegap;var a=t["firstline-afterskip"]||r;var n=t["lastline-preskip"]||r;var o=i.default.getChildren(this.table[0])[0];if(i.default.getAttribute(o,"columnalign")!==s.TexConstant.Align.RIGHT){o.appendChild(this.create("node","mspace",[],{width:a}))}var l=i.default.getChildren(this.table[this.table.length-1])[0];if(i.default.getAttribute(l,"columnalign")!==s.TexConstant.Align.LEFT){var u=i.default.getChildren(l)[0];u.childNodes.unshift(null);var c=this.create("node","mspace",[],{width:n});i.default.setChild(u,0,c)}}e.prototype.EndTable.call(this)};return t}(o.MultlineItem);t.MultlinedItem=l},5615:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(22960));var o=r(80209);var i=r(80469);var s=r(75316);new o.CommandMap("mathtools-macros",{shoveleft:["HandleShove",i.TexConstant.Align.LEFT],shoveright:["HandleShove",i.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",false],mathrlap:["MathLap","r",false],mathclap:["MathLap","c",false],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",true],crampedrlap:["MathLap","r",true],crampedclap:["MathLap","c",true],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",true,true],ordinarycolon:["CenterColon",false],MTThinColon:["CenterColon",true,true,true],coloneqq:["Relation",":=","≔"],Coloneqq:["Relation","::=","⩴"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","≕"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","∹"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","∷"],nuparrow:["NArrow","↑",".06em"],ndownarrow:["NArrow","↓",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",false],splitdfrac:["SplitFrac",true],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",false],renewtagform:["NewTagForm",true],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},s.MathtoolsMethods);new o.EnvironmentMap("mathtools-environments",n.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",true],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},s.MathtoolsMethods);new o.DelimiterMap("mathtools-delimiters",n.default.delimiter,{"\\lparen":"(","\\rparen":")"});new o.CommandMap("mathtools-characters",{":":["CenterColon",true]},s.MathtoolsMethods)},75316:function(e,t,r){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsMethods=void 0;var s=i(r(6980));var l=r(98840);var u=i(r(38364));var c=i(r(75845));var f=i(r(98770));var d=i(r(72691));var p=r(80747);var m=r(86810);var h=r(34981);var v=i(r(67668));var g=i(r(91200));var y=r(90352);t.MathtoolsMethods={MtMatrix:function(e,r,a,n){var o=e.GetBrackets("\\begin{".concat(r.getName(),"}"),"c");return t.MathtoolsMethods.Array(e,r,a,n,o)},MtSmallMatrix:function(e,r,a,n,o){if(!o){o=e.GetBrackets("\\begin{".concat(r.getName(),"}"),e.options.mathtools["smallmatrix-align"])}return t.MathtoolsMethods.Array(e,r,a,n,o,s.default.Em(1/3),".2em","S",1)},MtMultlined:function(e,t){var r;var a="\\begin{".concat(t.getName(),"}");var o=e.GetBrackets(a,e.options.mathtools["multlined-pos"]||"c");var i=o?e.GetBrackets(a,""):"";if(o&&!o.match(/^[cbt]$/)){r=n([o,i],2),i=r[0],o=r[1]}e.Push(t);var l=e.itemFactory.create("multlined",e,t);l.arraydef={displaystyle:true,rowspacing:".5em",width:i||"auto",columnwidth:"100%"};return s.default.setArrayAlign(l,o||"c")},HandleShove:function(e,t,r){var a=e.stack.Top();if(a.kind!=="multline"&&a.kind!=="multlined"){throw new f.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",t)}if(a.Size()){throw new f.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t)}a.setProperty("shove",r);var n=e.GetBrackets(t);var o=e.ParseArg(t);if(n){var i=e.create("node","mrow",[]);var s=e.create("node","mspace",[],{width:n});if(r==="left"){i.appendChild(s);i.appendChild(o)}else{i.appendChild(o);i.appendChild(s)}o=i}e.Push(o)},SpreadLines:function(e,t){var r,a;if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;var n=e.stack.Pop();var i=n.toMml();var s=n.getProperty("spread");if(i.isInferred){try{for(var l=o(d.default.getChildren(i)),u=l.next();!u.done;u=l.next()){var c=u.value;y.MathtoolsUtil.spreadLines(c,s)}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(r)throw r.error}}}else{y.MathtoolsUtil.spreadLines(i,s)}e.Push(i)}else{var s=e.GetDimen("\\begin{".concat(t.getName(),"}"));t.setProperty("spread",s);e.Push(t)}},Cases:function(e,t,r,a,n){var o=e.itemFactory.create("array").setProperty("casesEnv",t.getName());o.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"};if(n==="D"){o.arraydef.displaystyle=true}o.setProperties({open:r,close:a});e.Push(t);return o},MathLap:function(e,t,r,n){var o=e.GetBrackets(t,"").trim();var i=e.create("node","mstyle",[e.create("node","mpadded",[e.ParseArg(t)],a({width:0},r==="r"?{}:{lspace:r==="l"?"-1width":"-.5width"}))],{"data-cramped":n});y.MathtoolsUtil.setDisplayLevel(i,o);e.Push(e.create("node","TeXAtom",[i]))},Cramped:function(e,t){var r=e.GetBrackets(t,"").trim();var a=e.ParseArg(t);var n=e.create("node","mstyle",[a],{"data-cramped":true});y.MathtoolsUtil.setDisplayLevel(n,r);e.Push(n)},MtLap:function(e,t,r){var a=s.default.internalMath(e,e.GetArgument(t),0);var n=e.create("node","mpadded",a,{width:0});if(r!=="r"){d.default.setAttribute(n,"lspace",r==="l"?"-1width":"-.5width")}e.Push(n)},MathMakeBox:function(e,t){var r=e.GetBrackets(t);var a=e.GetBrackets(t,"c");var n=e.create("node","mpadded",[e.ParseArg(t)]);if(r){d.default.setAttribute(n,"width",r)}var o=(0,h.lookup)(a,{c:"center",r:"right"},"");if(o){d.default.setAttribute(n,"data-align",o)}e.Push(n)},MathMBox:function(e,t){e.Push(e.create("node","mrow",[e.ParseArg(t)]))},UnderOverBracket:function(e,t){var r=(0,m.length2em)(e.GetBrackets(t,".1em"),.1);var a=e.GetBrackets(t,".2em");var o=e.GetArgument(t);var i=n(t.charAt(1)==="o"?["over","accent","bottom"]:["under","accentunder","top"],3),l=i[0],u=i[1],f=i[2];var p=(0,m.em)(r);var h=new c.default(o,e.stack.env,e.configuration).mml();var v=new c.default(o,e.stack.env,e.configuration).mml();var g=e.create("node","mpadded",[e.create("node","mphantom",[v])],{style:"border: ".concat(p," solid; border-").concat(f,": none"),height:a,depth:0});var y=s.default.underOver(e,h,g,l,true);var b=d.default.getChildAt(d.default.getChildAt(y,0),0);d.default.setAttribute(b,u,true);e.Push(y)},Aboxed:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);if(r.row.length%2===1){r.row.push(e.create("node","mtd",[]))}var a=e.GetArgument(t);var n=e.string.substr(e.i);e.string=a+"&&\\endAboxed";e.i=0;var o=e.GetUpTo(t,"&");var i=e.GetUpTo(t,"&");e.GetUpTo(t,"\\endAboxed");var l=s.default.substituteArgs(e,[o,i],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em");e.string=l+n;e.i=0},ArrowBetweenLines:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);if(r.Size()||r.row.length){throw new f.default("BetweenLines","%1 must be on a row by itself",t)}var a=e.GetStar();var n=e.GetBrackets(t,"\\Updownarrow");if(a){r.EndEntry();r.EndEntry()}var o=a?"\\quad"+n:n+"\\quad";var i=new c.default(o,e.stack.env,e.configuration).mml();e.Push(i);r.EndEntry();r.EndRow()},VDotsWithin:function(e,t){var r=e.stack.Top();var n=r.getProperty("flushspaceabove")===r.table.length;var o="\\mmlToken{mi}{}"+e.GetArgument(t)+"\\mmlToken{mi}{}";var i=new c.default(o,e.stack.env,e.configuration).mml();var s=e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","mo",[e.create("text","⋮")])],a({width:0,lspace:"-.5width"},n?{height:"-.6em",voffset:"-.18em"}:{})),e.create("node","mphantom",[i])],{lspace:".5width"});e.Push(s)},ShortVDotsWithin:function(e,r){var a=e.stack.Top();var n=e.GetStar();t.MathtoolsMethods.FlushSpaceAbove(e,"\\MTFlushSpaceAbove");!n&&a.EndEntry();t.MathtoolsMethods.VDotsWithin(e,"\\vdotswithin");n&&a.EndEntry();t.MathtoolsMethods.FlushSpaceBelow(e,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);r.setProperty("flushspaceabove",r.table.length);r.addRowSpacing("-"+e.options.mathtools["shortvdotsadjustabove"])},FlushSpaceBelow:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);r.Size()&&r.EndEntry();r.EndRow();r.addRowSpacing("-"+e.options.mathtools["shortvdotsadjustbelow"])},PairedDelimiters:function(e,t,r,a,o,i,l,u){if(o===void 0){o="#1"}if(i===void 0){i=1}if(l===void 0){l=""}if(u===void 0){u=""}var c=e.GetStar();var f=c?"":e.GetBrackets(t);var d=n(c?["\\left","\\right"]:f?[f+"l",f+"r"]:["",""],2),p=d[0],m=d[1];var h=c?"\\middle":f||"";if(i){var v=[];for(var g=v.length;g=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsTagFormat=void 0;var s=i(r(98770));var l=r(17782);var u=0;function c(e,t){var r=t.parseOptions.options.tags;if(r!=="base"&&e.tags.hasOwnProperty(r)){l.TagsFactory.add(r,e.tags[r])}var i=l.TagsFactory.create(t.parseOptions.options.tags).constructor;var c=function(e){a(r,e);function r(){var r,a;var o=e.call(this)||this;o.mtFormats=new Map;o.mtCurrent=null;var i=t.parseOptions.options.mathtools.tagforms;try{for(var l=n(Object.keys(i)),u=l.next();!u.done;u=l.next()){var c=u.value;if(!Array.isArray(i[c])||i[c].length!==3){throw new s.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',c)}o.mtFormats.set(c,i[c])}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(r)throw r.error}}return o}r.prototype.formatTag=function(t){if(this.mtCurrent){var r=o(this.mtCurrent,3),a=r[0],n=r[1],i=r[2];return i?"".concat(a).concat(i,"{").concat(t,"}").concat(n):"".concat(a).concat(t).concat(n)}return e.prototype.formatTag.call(this,t)};return r}(i);u++;var f="MathtoolsTags-"+u;l.TagsFactory.add(f,c);t.parseOptions.options.tags=f}t.MathtoolsTagFormat=c},90352:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsUtil=void 0;var o=r(94650);var i=n(r(6980));var s=n(r(75845));var l=n(r(98770));var u=r(27151);var c=r(34981);var f=r(75316);var d=r(7932);t.MathtoolsUtil={setDisplayLevel:function(e,t){if(!t)return;var r=a((0,c.lookup)(t,{"\\displaystyle":[true,0],"\\textstyle":[false,0],"\\scriptstyle":[false,1],"\\scriptscriptstyle":[false,2]},[null,null]),2),n=r[0],o=r[1];if(n!==null){e.attributes.set("displaystyle",n);e.attributes.set("scriptlevel",o)}},checkAlignment:function(e,t){var r=e.stack.Top();if(r.kind!==o.EqnArrayItem.prototype.kind){throw new l.default("NotInAlignment","%1 can only be used in aligment environments",t)}return r},addPairedDelims:function(e,t,r){var a=e.handlers.retrieve(d.PAIREDDELIMS);a.add(t,new u.Macro(t,f.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(e,t){if(!e.isKind("mtable"))return;var r=e.attributes.get("rowspacing");if(r){var a=i.default.dimen2em(t);r=r.split(/ /).map((function(e){return i.default.Em(Math.max(0,i.default.dimen2em(e)+a))})).join(" ")}else{r=t}e.attributes.set("rowspacing",r)},plusOrMinus:function(e,t){t=t.trim();if(!t.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/)){throw new l.default("NotANumber","Argument to %1 is not a number",e)}return t.match(/^[-+]/)?t:"+"+t},getScript:function(e,t,r){var a=i.default.trimSpaces(e.GetArgument(t));if(a===""){return e.create("node","none")}var n=e.options.mathtools["prescript-".concat(r,"-format")];n&&(a="".concat(n,"{").concat(a,"}"));return new s.default(a,e.stack.env,e.configuration).mml()}}},75802:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MhchemConfiguration=void 0;var n=r(56441);var o=r(80209);var i=a(r(98770));var s=a(r(38364));var l=r(98840);var u=r(62691);var c={};c.Macro=s.default.Macro;c.xArrow=l.AmsMethods.xArrow;c.Machine=function(e,t,r){var a=e.GetArgument(t);var n;try{n=u.mhchemParser.toTex(a,r)}catch(o){throw new i.default(o[0],o[1])}e.string=n+e.string.substr(e.i);e.i=0};new o.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},c);t.MhchemConfiguration=n.Configuration.create("mhchem",{handler:{macro:["mhchem"]}})},36912:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s;Object.defineProperty(t,"__esModule",{value:true});t.NewcommandConfiguration=void 0;var l=r(56441);var u=r(73694);var c=i(r(67668));r(56819);var f=i(r(22960));var d=o(r(80209));var p=function(e){new d.DelimiterMap(c.default.NEW_DELIMITER,f.default.delimiter,{});new d.CommandMap(c.default.NEW_COMMAND,{},{});new d.EnvironmentMap(c.default.NEW_ENVIRONMENT,f.default.environment,{},{});e.append(l.Configuration.local({handler:{character:[],delimiter:[c.default.NEW_DELIMITER],macro:[c.default.NEW_DELIMITER,c.default.NEW_COMMAND],environment:[c.default.NEW_ENVIRONMENT]},priority:-1}))};t.NewcommandConfiguration=l.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(s={},s[u.BeginEnvItem.prototype.kind]=u.BeginEnvItem,s),options:{maxMacros:1e3},init:p})},73694:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BeginEnvItem=void 0;var o=n(r(98770));var i=r(37720);var s=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"beginEnv"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName()){throw new o.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName())}return[[this.factory.create("mml",this.toMml())],true]}if(t.isKind("stop")){throw new o.default("EnvMissingEnd","Missing \\end{%1}",this.getName())}return e.prototype.checkItem.call(this,t)};return t}(i.BaseItem);t.BeginEnvItem=s},56819:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(91200));var o=r(80209);new o.CommandMap("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},n.default)},91200:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=i(r(98770));var l=o(r(80209));var u=i(r(38364));var c=i(r(6980));var f=i(r(67668));var d={};d.NewCommand=function(e,t){var r=f.default.GetCsNameArgument(e,t);var a=f.default.GetArgCount(e,t);var n=e.GetBrackets(t);var o=e.GetArgument(t);f.default.addMacro(e,r,d.Macro,[o,a,n])};d.NewEnvironment=function(e,t){var r=c.default.trimSpaces(e.GetArgument(t));var a=f.default.GetArgCount(e,t);var n=e.GetBrackets(t);var o=e.GetArgument(t);var i=e.GetArgument(t);f.default.addEnvironment(e,r,d.BeginEnv,[true,o,i,a,n])};d.MacroDef=function(e,t){var r=f.default.GetCSname(e,t);var a=f.default.GetTemplate(e,t,"\\"+r);var n=e.GetArgument(t);!(a instanceof Array)?f.default.addMacro(e,r,d.Macro,[n,a]):f.default.addMacro(e,r,d.MacroWithTemplate,[n].concat(a))};d.Let=function(e,t){var r=f.default.GetCSname(e,t);var a=e.GetNext();if(a==="="){e.i++;a=e.GetNext()}var n=e.configuration.handlers;if(a==="\\"){t=f.default.GetCSname(e,t);var o=n.get("delimiter").lookup("\\"+t);if(o){f.default.addDelimiter(e,"\\"+r,o.char,o.attributes);return}var i=n.get("macro").applicable(t);if(!i){return}if(i instanceof l.MacroMap){var s=i.lookup(t);f.default.addMacro(e,r,s.func,s.args,s.symbol);return}o=i.lookup(t);var u=f.default.disassembleSymbol(r,o);var c=function(e,t){var r=[];for(var a=2;a0){return[i.toString()].concat(n)}else{return i}}e.i++}throw new o.default("MissingReplacementString","Missing replacement string for definition of %1",t)}e.GetTemplate=u;function c(e,t,r){if(r==null){return e.GetArgument(t)}var a=e.i;var n=0;var i=0;while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.NoErrorsConfiguration=void 0;var a=r(56441);function n(e,t,r,a){var n=e.create("token","mtext",{},a.replace(/\n/g," "));var o=e.create("node","merror",[n],{"data-mjx-error":t,title:t});return o}t.NoErrorsConfiguration=a.Configuration.create("noerrors",{nodes:{error:n}})},68916:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedConfiguration=void 0;var n=r(56441);function o(e,t){var r,n;var o=e.create("text","\\"+t);var i=e.options.noundefined||{};var s={};try{for(var l=a(["color","background","size"]),u=l.next();!u.done;u=l.next()){var c=u.value;if(i[c]){s["math"+c]=i[c]}}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(n=l.return))n.call(l)}finally{if(r)throw r.error}}e.Push(e.create("node","mtext",[],s,o))}t.NoUndefinedConfiguration=n.Configuration.create("noundefined",{fallback:{macro:o},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},23468:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.PhysicsConfiguration=void 0;var n=r(56441);var o=r(34834);r(23423);t.PhysicsConfiguration=n.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(a={},a[o.AutoOpen.prototype.kind]=o.AutoOpen,a),options:{physics:{italicdiff:false,arrowdel:false}}})},34834:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.AutoOpen=void 0;var o=r(37720);var i=n(r(6980));var s=n(r(72691));var l=n(r(75845));var u=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.openCount=0;return t}Object.defineProperty(t.prototype,"kind",{get:function(){return"auto open"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.toMml=function(){var t=this.factory.configuration.parser;var r=this.getProperty("right");if(this.getProperty("smash")){var a=e.prototype.toMml.call(this);var n=t.create("node","mpadded",[a],{height:0,depth:0});this.Clear();this.Push(t.create("node","TeXAtom",[n]))}if(r){this.Push(new l.default(r,t.stack.env,t.configuration).mml())}var o=i.default.fenced(this.factory.configuration,this.getProperty("open"),e.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));s.default.removeProperties(o,"open","close","texClass");return o};t.prototype.checkItem=function(t){if(t.isKind("mml")&&t.Size()===1){var r=t.toMml();if(r.isKind("mo")&&r.getText()===this.getProperty("open")){this.openCount++}}var a=t.getProperty("autoclose");if(a&&a===this.getProperty("close")&&!this.openCount--){if(this.getProperty("ignore")){this.Clear();return[[],true]}return[[this.toMml()],true]}return e.prototype.checkItem.call(this,t)};t.errors=Object.assign(Object.create(o.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]});return t}(o.BaseItem);t.AutoOpen=u},23423:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(80209);var o=a(r(66052));var i=r(80469);var s=a(r(22960));var l=r(80747);new n.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",true],bqty:["Quantity","[","]",true],vqty:["Quantity","|","|",true],Bqty:["Quantity","\\{","\\}",true],absolutevalue:["Quantity","|","|",true],abs:["Quantity","|","|",true],norm:["Quantity","\\|","\\|",true],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",true,"O",i.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},o.default);new n.CharacterMap("Physics-vector-mo",s.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:i.TexConstant.Variant.BOLD}]});new n.CharacterMap("Physics-vector-mi",s.default.mathchar0mi,{real:["ℜ",{mathvariant:i.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:i.TexConstant.Variant.NORMAL}]});new n.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},o.default);new n.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",false],log:"Expression",ln:"Expression",det:["Expression",false],Pr:["Expression",false],tr:["Expression",false],trace:["Expression",false,"tr"],Tr:["Expression",false],Trace:["Expression",false,"Tr"],rank:"NamedFn",erf:["Expression",false],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},o.default);new n.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},o.default);new n.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},o.default);new n.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},o.default);new n.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",true],smqty:["MatrixQuantity",true],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",true],admat:["DiagonalMatrix",true]},o.default);new n.EnvironmentMap("Physics-aux-envs",s.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},o.default);new n.MacroMap("Physics-characters",{"|":["AutoClose",l.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},o.default)},66052:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var o=n(r(38364));var i=n(r(75845));var s=n(r(98770));var l=r(80747);var u=n(r(6980));var c=n(r(72691));var f=r(55361);var d={};var p={"(":")","[":"]","{":"}","|":"|"};var m=/^(b|B)i(g{1,2})$/;d.Quantity=function(e,t,r,a,n,o,f){if(r===void 0){r="("}if(a===void 0){a=")"}if(n===void 0){n=false}if(o===void 0){o=""}if(f===void 0){f=""}var d=n?e.GetStar():false;var h=e.GetNext();var v=e.i;var g=null;if(h==="\\"){e.i++;g=e.GetCS();if(!g.match(m)){var y=e.create("node","mrow");e.Push(u.default.fenced(e.configuration,r,y,a));e.i=v;return}h=e.GetNext()}var b=p[h];if(n&&h!=="{"){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}if(!b){var y=e.create("node","mrow");e.Push(u.default.fenced(e.configuration,r,y,a));e.i=v;return}if(o){var x=e.create("token","mi",{texClass:l.TEXCLASS.OP},o);if(f){c.default.setAttribute(x,"mathvariant",f)}e.Push(e.itemFactory.create("fn",x))}if(h==="{"){var _=e.GetArgument(t);h=n?r:"\\{";b=n?a:"\\}";_=d?h+" "+_+" "+b:g?"\\"+g+"l"+h+" "+_+" "+"\\"+g+"r"+b:"\\left"+h+" "+_+" "+"\\right"+b;e.Push(new i.default(_,e.stack.env,e.configuration).mml());return}if(n){h=r;b=a}e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:h,close:b,big:g}))};d.Eval=function(e,t){var r=e.GetStar();var a=e.GetNext();if(a==="{"){var n=e.GetArgument(t);var o="\\left. "+(r?"\\smash{"+n+"}":n)+" "+"\\vphantom{\\int}\\right|";e.string=e.string.slice(0,e.i)+o+e.string.slice(e.i);return}if(a==="("||a==="["){e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:a,close:"|",smash:r,right:"\\vphantom{\\int}"}));return}throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)};d.Commutator=function(e,t,r,a){if(r===void 0){r="["}if(a===void 0){a="]"}var n=e.GetStar();var o=e.GetNext();var l=null;if(o==="\\"){e.i++;l=e.GetCS();if(!l.match(m)){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}o=e.GetNext()}if(o!=="{"){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}var u=e.GetArgument(t);var c=e.GetArgument(t);var f=u+","+c;f=n?r+" "+f+" "+a:l?"\\"+l+"l"+r+" "+f+" "+"\\"+l+"r"+a:"\\left"+r+" "+f+" "+"\\right"+a;e.Push(new i.default(f,e.stack.env,e.configuration).mml())};var h=[65,90];var v=[97,122];var g=[913,937];var y=[945,969];var b=[48,57];function x(e,t){return e>=t[0]&&e<=t[1]}function _(e,t,r,a){var n=e.configuration.parser;var o=f.NodeFactory.createToken(e,t,r,a);var i=a.codePointAt(0);if(a.length===1&&!n.stack.env.font&&n.stack.env.vectorFont&&(x(i,h)||x(i,v)||x(i,g)||x(i,b)||x(i,y)&&n.stack.env.vectorStar||c.default.getAttribute(o,"accent"))){c.default.setAttribute(o,"mathvariant",n.stack.env.vectorFont)}return o}d.VectorBold=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=e.configuration.nodeFactory.get("token");var o=e.stack.env.font;delete e.stack.env.font;e.configuration.nodeFactory.set("token",_);e.stack.env.vectorFont=r?"bold-italic":"bold";e.stack.env.vectorStar=r;var s=new i.default(a,e.stack.env,e.configuration).mml();if(o){e.stack.env.font=o}delete e.stack.env.vectorFont;delete e.stack.env.vectorStar;e.configuration.nodeFactory.set("token",n);e.Push(s)};d.StarMacro=function(e,t,r){var a=[];for(var n=3;n2&&l.length>2){c="^{"+(l.length-1)+"}";u=true}else if(o!=null){if(r>2&&l.length>1){u=true}c="^{"+o+"}";f=c}var d=n?"\\flatfrac":"\\frac";var p=l.length>1?l[0]:"";var m=l.length>1?l[1]:l[0];var h="";for(var v=2,g=void 0;g=l[v];v++){h+=a+" "+g}var y=d+"{"+a+c+p+"}"+"{"+a+" "+m+f+" "+h+"}";e.Push(new i.default(y,e.stack.env,e.configuration).mml());if(e.GetNext()==="("){e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:u}))}};d.Bra=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n="";var o=false;var s=false;if(e.GetNext()==="\\"){var l=e.i;e.i++;var u=e.GetCS();var c=e.lookup("macro",u);if(c&&c.symbol==="ket"){o=true;l=e.i;s=e.GetStar();if(e.GetNext()==="{"){n=e.GetArgument(u,true)}else{e.i=l;s=false}}else{e.i=l}}var f="";if(o){f=r||s?"\\langle{".concat(a,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(n,"}\\right\\rangle")}else{f=r||s?"\\langle{".concat(a,"}\\vert"):"\\left\\langle{".concat(a,"}\\right\\vert{").concat(n,"}")}e.Push(new i.default(f,e.stack.env,e.configuration).mml())};d.Ket=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=r?"\\vert{".concat(a,"}\\rangle"):"\\left\\vert{".concat(a,"}\\right\\rangle");e.Push(new i.default(n,e.stack.env,e.configuration).mml())};d.BraKet=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=null;if(e.GetNext()==="{"){n=e.GetArgument(t,true)}var o="";if(n==null){o=r?"\\langle{".concat(a,"}\\vert{").concat(a,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(a,"}\\right\\rangle")}else{o=r?"\\langle{".concat(a,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(n,"}\\right\\rangle")}e.Push(new i.default(o,e.stack.env,e.configuration).mml())};d.KetBra=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=null;if(e.GetNext()==="{"){n=e.GetArgument(t,true)}var o="";if(n==null){o=r?"\\vert{".concat(a,"}\\rangle\\!\\langle{").concat(a,"}\\vert"):"\\left\\vert{".concat(a,"}\\middle\\rangle\\!\\middle\\langle{").concat(a,"}\\right\\vert")}else{o=r?"\\vert{".concat(a,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(a,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert")}e.Push(new i.default(o,e.stack.env,e.configuration).mml())};function M(e,t,r){var n=a(e,3),o=n[0],i=n[1],s=n[2];return t&&r?"\\left\\langle{".concat(o,"}\\middle\\vert{").concat(i,"}\\middle\\vert{").concat(s,"}\\right\\rangle"):t?"\\langle{".concat(o,"}\\vert{").concat(i,"}\\vert{").concat(s,"}\\rangle"):"\\left\\langle{".concat(o,"}\\right\\vert{").concat(i,"}\\left\\vert{").concat(s,"}\\right\\rangle")}d.Expectation=function(e,t){var r=e.GetStar();var a=r&&e.GetStar();var n=e.GetArgument(t);var o=null;if(e.GetNext()==="{"){o=e.GetArgument(t,true)}var s=n&&o?M([o,n,o],r,a):r?"\\langle {".concat(n,"} \\rangle"):"\\left\\langle {".concat(n,"} \\right\\rangle");e.Push(new i.default(s,e.stack.env,e.configuration).mml())};d.MatrixElement=function(e,t){var r=e.GetStar();var a=r&&e.GetStar();var n=e.GetArgument(t);var o=e.GetArgument(t);var s=e.GetArgument(t);var l=M([n,o,s],r,a);e.Push(new i.default(l,e.stack.env,e.configuration).mml())};d.MatrixQuantity=function(e,t,r){var a=e.GetStar();var n=e.GetNext();var o=r?"smallmatrix":"array";var s="";var l="";var u="";switch(n){case"{":s=e.GetArgument(t);break;case"(":e.i++;l=a?"\\lgroup":"(";u=a?"\\rgroup":")";s=e.GetUpTo(t,")");break;case"[":e.i++;l="[";u="]";s=e.GetUpTo(t,"]");break;case"|":e.i++;l="|";u="|";s=e.GetUpTo(t,"|");break;default:l="(";u=")";break}var c=(l?"\\left":"")+l+"\\begin{"+o+"}{} "+s+"\\end{"+o+"}"+(l?"\\right":"")+u;e.Push(new i.default(c,e.stack.env,e.configuration).mml())};d.IdentityMatrix=function(e,t){var r=e.GetArgument(t);var a=parseInt(r,10);if(isNaN(a)){throw new s.default("InvalidNumber","Invalid number")}if(a<=1){e.string="1"+e.string.slice(e.i);e.i=0;return}var n=Array(a).fill("0");var o=[];for(var i=0;i=n){o.push(e.string.slice(s,n));break}s=e.i;o.push(i)}e.string=A(o,r)+e.string.slice(n);e.i=0};function A(e,t){var r=e.length;var a=[];for(var n=0;n=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.SetOptionsConfiguration=t.SetOptionsUtil=void 0;var o=r(56441);var i=r(80209);var s=n(r(98770));var l=n(r(6980));var u=r(27151);var c=n(r(38364));var f=r(34981);t.SetOptionsUtil={filterPackage:function(e,t){if(t!=="tex"&&!o.ConfigurationHandler.get(t)){throw new s.default("NotAPackage","Not a defined package: %1",t)}var r=e.options.setoptions;var a=r.allowOptions[t];if(a===undefined&&!r.allowPackageDefault||a===false){throw new s.default("PackageNotSettable",'Options can\'t be set for package "%1"',t)}return true},filterOption:function(e,t,r){var a;var n=e.options.setoptions;var o=n.allowOptions[t]||{};var i=o.hasOwnProperty(r)&&!(0,f.isObject)(o[r])?o[r]:null;if(i===false||i===null&&!n.allowOptionsDefault){throw new s.default("OptionNotSettable",'Option "%1" is not allowed to be set',r)}if(!((a=t==="tex"?e.options:e.options[t])===null||a===void 0?void 0:a.hasOwnProperty(r))){if(t==="tex"){throw new s.default("InvalidTexOption",'Invalid TeX option "%1"',r)}else{throw new s.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',r,t)}}return true},filterValue:function(e,t,r,a){return a}};var d=new i.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(e,t){var r,n;var o=e.GetBrackets(t)||"tex";var i=l.default.keyvalOptions(e.GetArgument(t));var s=e.options.setoptions;if(!s.filterPackage(e,o))return;try{for(var u=a(Object.keys(i)),c=u.next();!c.done;c=u.next()){var f=c.value;if(s.filterOption(e,o,f)){(o==="tex"?e.options:e.options[o])[f]=s.filterValue(e,o,f,i[f])}}}catch(d){r={error:d}}finally{try{if(c&&!c.done&&(n=u.return))n.call(u)}finally{if(r)throw r.error}}}});function p(e,t){var r=t.parseOptions.handlers.get("macro").lookup("require");if(r){d.add("Require",new u.Macro("Require",r._func));d.add("require",new u.Macro("require",c.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""]))}}t.SetOptionsConfiguration=o.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:p,priority:3,options:{setoptions:{filterPackage:t.SetOptionsUtil.filterPackage,filterOption:t.SetOptionsUtil.filterOption,filterValue:t.SetOptionsUtil.filterValue,allowPackageDefault:true,allowOptionsDefault:true,allowOptions:(0,f.expandable)({tex:{FindTeX:false,formatError:false,package:false,baseURL:false,tags:false,maxBuffer:false,maxMaxros:false,macros:false,environments:false},setoptions:false,autoload:false,require:false,configmacros:false,tagformat:false})}}})},18560:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:true});t.TagFormatConfiguration=t.tagformatConfig=void 0;var n=r(56441);var o=r(17782);var i=0;function s(e,t){var r=t.parseOptions.options.tags;if(r!=="base"&&e.tags.hasOwnProperty(r)){o.TagsFactory.add(r,e.tags[r])}var n=o.TagsFactory.create(t.parseOptions.options.tags).constructor;var s=function(e){a(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.formatNumber=function(e){return t.parseOptions.options.tagformat.number(e)};r.prototype.formatTag=function(e){return t.parseOptions.options.tagformat.tag(e)};r.prototype.formatId=function(e){return t.parseOptions.options.tagformat.id(e)};r.prototype.formatUrl=function(e,r){return t.parseOptions.options.tagformat.url(e,r)};return r}(n);i++;var l="configTags-"+i;o.TagsFactory.add(l,s);t.parseOptions.options.tags=l}t.tagformatConfig=s;t.TagFormatConfiguration=n.Configuration.create("tagformat",{config:[s,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return"("+e+")"},id:function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},url:function(e,t){return t+"#"+encodeURIComponent(e)}}}})},46370:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TextcompConfiguration=void 0;var a=r(56441);r(47173);t.TextcompConfiguration=a.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}})},47173:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(80209);var o=r(80469);var i=r(56774);var s=a(r(6980));var l=r(53880);new n.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert","‌"],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",o.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",o.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",o.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",o.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",o.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",o.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",o.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",o.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",o.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",o.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",o.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",o.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,r,a){if(e instanceof l.TextParser){if(!a){i.TextMacrosMethods.Insert(e,t,r);return}e.saveText()}e.Push(s.default.internalText(e,r,a?{mathvariant:a}:{}))}})},29302:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var n;Object.defineProperty(t,"__esModule",{value:true});t.TextMacrosConfiguration=t.TextBaseConfiguration=void 0;var o=r(56441);var i=a(r(24404));var s=r(17782);var l=r(94650);var u=r(53880);var c=r(56774);r(5705);t.TextBaseConfiguration=o.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var r=e.texParser;var a=r.lookup("macro",t);if(a&&a._func!==c.TextMacrosMethods.Macro){e.Error("MathMacro","%1 is only supported in math mode","\\"+t)}r.parse("macro",[e,t])}},items:(n={},n[l.StartItem.prototype.kind]=l.StartItem,n[l.StopItem.prototype.kind]=l.StopItem,n[l.MmlItem.prototype.kind]=l.MmlItem,n[l.StyleItem.prototype.kind]=l.StyleItem,n)});function f(e,t,r,a){var n=e.configuration.packageData.get("textmacros");if(!(e instanceof u.TextParser)){n.texParser=e}return[new u.TextParser(t,a?{mathvariant:a}:{},n.parseOptions,r).mml()]}t.TextMacrosConfiguration=o.Configuration.create("textmacros",{config:function(e,t){var r=new o.ParserConfiguration(t.parseOptions.options.textmacros.packages,["tex","text"]);r.init();var a=new i.default(r,[]);a.options=t.parseOptions.options;r.config(t);s.TagsFactory.addTags(r.tags);a.tags=s.TagsFactory.getDefault();a.tags.configuration=a;a.packageData=t.parseOptions.packageData;a.packageData.set("textmacros",{parseOptions:a,jax:t,texParser:null});a.options.internalMath=f},preprocessors:[function(e){var t=e.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}})},5705:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});var a=r(80209);var n=r(80469);var o=r(56774);var i=r(86810);new a.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space","\t":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},o.TextMacrosMethods);new a.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",n.TexConstant.Variant.NORMAL],mit:["SetFont",n.TexConstant.Variant.ITALIC],oldstyle:["SetFont",n.TexConstant.Variant.OLDSTYLE],cal:["SetFont",n.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",n.TexConstant.Variant.BOLD],bbFont:["SetFont",n.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",n.TexConstant.Variant.SCRIPT],frak:["SetFont",n.TexConstant.Variant.FRAKTUR],sf:["SetFont",n.TexConstant.Variant.SANSSERIF],tt:["SetFont",n.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",i.MATHSPACE.thinmathspace],":":["Spacer",i.MATHSPACE.mediummathspace],">":["Spacer",i.MATHSPACE.mediummathspace],";":["Spacer",i.MATHSPACE.thickmathspace],"!":["Spacer",i.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",i.MATHSPACE.thinmathspace],negthinspace:["Spacer",i.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",false],eqref:["HandleRef",true]},o.TextMacrosMethods)},56774:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.TextMacrosMethods=void 0;var n=a(r(75845));var o=r(9841);var i=a(r(38364));t.TextMacrosMethods={Comment:function(e,t){while(e.i=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a{Object.defineProperty(t,"__esModule",{value:true});t.UpgreekConfiguration=void 0;var a=r(56441);var n=r(80209);var o=r(80469);function i(e,t){var r=t.attributes||{};r.mathvariant=o.TexConstant.Variant.NORMAL;var a=e.create("token","mi",r,t.char);e.Push(a)}new n.CharacterMap("upgreek",i,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"});t.UpgreekConfiguration=a.Configuration.create("upgreek",{handler:{macro:["upgreek"]}})},22232:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.VerbConfiguration=t.VerbMethods=void 0;var n=r(56441);var o=r(80469);var i=r(80209);var s=a(r(98770));t.VerbMethods={};t.VerbMethods.Verb=function(e,t){var r=e.GetNext();var a=++e.i;if(r===""){throw new s.default("MissingArgFor","Missing argument for %1",t)}while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.mhchemParser=void 0;var r=function(){function e(){}e.toTex=function(e,t){return o.go(n.go(e,t),t!=="tex")};return e}();t.mhchemParser=r;function a(e){var t,r;var a={};for(t in e){for(r in e[t]){var n=r.split("|");e[t][r].stateArray=n;for(var o=0;o0){if(!d.revisit){e=f.remainder}if(!d.toContinue){break e}}else{return s}}}if(i<=0){throw["MhchemBugU","mhchem bug U. Please report."]}}},concatArray:function(e,t){if(t){if(Array.isArray(t)){for(var r=0;r":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return n.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return n.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",true)},"\\x{}":function(e){return n.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")||n.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\ce{","","","}")},"\\pu{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}var r=n.patterns.findObserveGroups(e,"","$","$","");if(r){t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}}return null},amount2:function(e){return this["amount"](e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/)){return null}var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}return null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,a,n,o,i,s,l,u){var c=function(e,t){if(typeof t==="string"){if(e.indexOf(t)!==0){return null}return t}else{var r=e.match(t);if(!r){return null}return r[0]}};var f=function(e,t,r){var a=0;while(t0){return null}return null};var d=c(e,t);if(d===null){return null}e=e.substr(d.length);d=c(e,r);if(d===null){return null}var p=f(e,d.length,a||n);if(p===null){return null}var m=e.substring(0,a?p.endMatchEnd:p.endMatchBegin);if(!(o||i)){return{match_:m,remainder:e.substr(p.endMatchEnd)}}else{var h=this.findObserveGroups(e.substr(p.endMatchEnd),o,i,s,l);if(h===null){return null}var v=[m,h.match_];return{match_:u?v.join(""):v,remainder:h.remainder}}},match_:function(e,t){var r=n.patterns.patterns[e];if(r===undefined){throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"]}else if(typeof r==="function"){return n.patterns.patterns[e](t)}else{var a=t.match(r);if(a){if(a.length>2){return{match_:a.slice(1),remainder:t.substr(a[0].length)}}else{return{match_:a[1]||a[0],remainder:t.substr(a[0].length)}}}return null}}},actions:{"a=":function(e,t){e.a=(e.a||"")+t;return undefined},"b=":function(e,t){e.b=(e.b||"")+t;return undefined},"p=":function(e,t){e.p=(e.p||"")+t;return undefined},"o=":function(e,t){e.o=(e.o||"")+t;return undefined},"q=":function(e,t){e.q=(e.q||"")+t;return undefined},"d=":function(e,t){e.d=(e.d||"")+t;return undefined},"rm=":function(e,t){e.rm=(e.rm||"")+t;return undefined},"text=":function(e,t){e.text_=(e.text_||"")+t;return undefined},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,r){return r},rm:function(e,t){return{type_:"rm",p1:t}},text:function(e,t){return n.go(t,"text")},"tex-math":function(e,t){return n.go(t,"tex-math")},"tex-math tight":function(e,t){return n.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t}},ce:function(e,t){return n.go(t,"ce")},pu:function(e,t){return n.go(t,"pu")},"1/2":function(e,t){var r=[];if(t.match(/^[+\-]/)){r.push(t.substr(0,1));t=t.substr(1)}var a=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);a[1]=a[1].replace(/\$/g,"");r.push({type_:"frac",p1:a[1],p2:a[2]});if(a[3]){a[3]=a[3].replace(/\$/g,"");r.push({type_:"tex-math",p1:a[3]})}return r},"9,9":function(e,t){return n.go(t,"9,9")}},stateMachines:{tex:{transitions:a({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:a({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:true,toContinue:true}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:false},nextState:"2"},q:{action_:{type_:"- after o/d",option:false},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:true},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:true},as:{action_:["output","sb=true"],nextState:"1",revisit:true},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:true},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[1-9][0-9]*$/)){var a=e.d;e.d=undefined;r=this["output"](e);r.push({type_:"tinySkip"});e.b=a}else{r=this["output"](e)}n.actions["o="](e,t);return r},"d= kv":function(e,t){e.d=t;e.dType="kv";return undefined},"charge or bond":function(e,t){if(e["beginsWithBond"]){var r=[];n.concatArray(r,this["output"](e));n.concatArray(r,n.actions["bond"](e,t,"-"));return r}else{e.d=t;return undefined}},"- after o/d":function(e,t,r){var a=n.patterns.match_("orbital",e.o||"");var o=n.patterns.match_("one lowercase greek letter $",e.o||"");var i=n.patterns.match_("one lowercase latin letter $",e.o||"");var s=n.patterns.match_("$one lowercase latin letter$ $",e.o||"");var l=t==="-"&&(a&&a.remainder===""||o||i||s);if(l&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!a&&i){e.o="$"+e.o+"$"}var u=[];if(l){n.concatArray(u,this["output"](e));u.push({type_:"hyphen"})}else{a=n.patterns.match_("digits",e.d||"");if(r&&a&&a.remainder===""){n.concatArray(u,n.actions["d="](e,t));n.concatArray(u,this["output"](e))}else{n.concatArray(u,this["output"](e));n.concatArray(u,n.actions["bond"](e,t,"-"))}}return u},"a to o":function(e){e.o=e.a;e.a=undefined;return undefined},"sb=true":function(e){e.sb=true;return undefined},"sb=false":function(e){e.sb=false;return undefined},"beginsWithBond=true":function(e){e["beginsWithBond"]=true;return undefined},"beginsWithBond=false":function(e){e["beginsWithBond"]=false;return undefined},"parenthesisLevel++":function(e){e["parenthesisLevel"]++;return undefined},"parenthesisLevel--":function(e){e["parenthesisLevel"]--;return undefined},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:n.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");var a=r!==t;if(a&&e["parenthesisLevel"]===0){return{type_:"comma enumeration L",p1:r}}else{return{type_:"comma enumeration M",p1:r}}},output:function(e,t,r){var a;if(!e.r){a=[];if(!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r){}else{if(e.sb){a.push({type_:"entitySkip"})}if(!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2){e.o=e.a;e.a=undefined}else if(!e.o&&!e.q&&!e.d&&(e.b||e.p)){e.o=e.a;e.d=e.b;e.q=e.p;e.a=e.b=e.p=undefined}else{if(e.o&&e.dType==="kv"&&n.patterns.match_("d-oxidation$",e.d||"")){e.dType="oxidation"}else if(e.o&&e.dType==="kv"&&!e.q){e.dType=undefined}}a.push({type_:"chemfive",a:n.go(e.a,"a"),b:n.go(e.b,"bd"),p:n.go(e.p,"pq"),o:n.go(e.o,"o"),q:n.go(e.q,"pq"),d:n.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType})}}else{var o=void 0;if(e.rdt==="M"){o=n.go(e.rd,"tex-math")}else if(e.rdt==="T"){o=[{type_:"text",p1:e.rd||""}]}else{o=n.go(e.rd,"ce")}var i=void 0;if(e.rqt==="M"){i=n.go(e.rq,"tex-math")}else if(e.rqt==="T"){i=[{type_:"text",p1:e.rq||""}]}else{i=n.go(e.rq,"ce")}a={type_:"arrow",r:e.r,rd:o,rq:i}}for(var s in e){if(s!=="parenthesisLevel"&&s!=="beginsWithBond"){delete e[s]}}return a},"oxidation-output":function(e,t){var r=["{"];n.concatArray(r,n.go(t,"oxidation"));r.push("}");return r},"frac-output":function(e,t){return{type_:"frac-ce",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"overset-output":function(e,t){return{type_:"overset",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"underset-output":function(e,t){return{type_:"underset",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"ce")}},"r=":function(e,t){e.r=t;return undefined},"rdt=":function(e,t){e.rdt=t;return undefined},"rd=":function(e,t){e.rd=t;return undefined},"rqt=":function(e,t){e.rqt=t;return undefined},"rq=":function(e,t){e.rq=t;return undefined},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:a({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:true}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:a({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:true}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:a({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e){delete e[r]}return t}return undefined}}},pq:{transitions:a({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:true}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:true}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:true}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:n.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"pq")}}}},bd:{transitions:a({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:true}},formula$:{0:{action_:[],nextState:"f",revisit:true}},else:{0:{action_:[],nextState:"!f",revisit:true}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"bd")}}}},oxidation:{transitions:a({empty:{"*":{action_:[]}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t}}}},"tex-math":{transitions:a({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e){delete e[r]}return t}return undefined}}},"tex-math tight":{transitions:a({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}";return undefined},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e){delete e[r]}return t}return undefined}}},"9,9":{transitions:a({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:a({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];if(t[0]==="+-"||t[0]==="+/-"){r.push("\\pm ")}else if(t[0]){r.push(t[0])}if(t[1]){n.concatArray(r,n.go(t[1],"pu-9,9"));if(t[2]){if(t[2].match(/[,.]/)){n.concatArray(r,n.go(t[2],"pu-9,9"))}else{r.push(t[2])}}if(t[3]||t[4]){if(t[3]==="e"||t[4]==="*"){r.push({type_:"cdot"})}else{r.push({type_:"times"})}}}if(t[5]){r.push("10^{"+t[5]+"}")}return r},"number^":function(e,t){var r=[];if(t[0]==="+-"||t[0]==="+/-"){r.push("\\pm ")}else if(t[0]){r.push(t[0])}n.concatArray(r,n.go(t[1],"pu-9,9"));r.push("^{"+t[2]+"}");return r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t;var r=n.patterns.match_("{(...)}",e.d||"");if(r&&r.remainder===""){e.d=r.match_}var a=n.patterns.match_("{(...)}",e.q||"");if(a&&a.remainder===""){e.q=a.match_}if(e.d){e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C");e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")}if(e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C");e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:n.go(e.d,"pu"),q:n.go(e.q,"pu")};if(e.o==="//"){t={type_:"pu-frac",p1:o.d,p2:o.q}}else{t=o.d;if(o.d.length>1||o.q.length>1){t.push({type_:" / "})}else{t.push({type_:"/"})}n.concatArray(t,o.q)}}else{t=n.go(e.d,"pu-2")}for(var i in e){delete e[i]}return t}}},"pu-2":{transitions:a({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}";return undefined},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=n.patterns.match_("{(...)}",e.rm||"");if(r&&r.remainder===""){t=n.go(r.match_,"pu")}else{t={type_:"rm",p1:e.rm}}}for(var a in e){delete e[a]}return t}}},"pu-9,9":{transitions:a({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];e.text_=e.text_||"";if(e.text_.length>4){var r=e.text_.length%3;if(r===0){r=3}for(var a=e.text_.length-3;a>0;a-=3){t.push(e.text_.substr(a,3));t.push({type_:"1000 separator"})}t.push(e.text_.substr(0,r));t.reverse()}else{t.push(e.text_)}for(var n in e){delete e[n]}return t},"output-o":function(e){var t=[];e.text_=e.text_||"";if(e.text_.length>4){var r=e.text_.length-3;var a=void 0;for(a=0;a"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<--\x3e"){l="\\long"+l;if(s.rd){l="\\overset{"+s.rd+"}{"+l+"}"}if(s.rq){if(e.r==="<--\x3e"){l="\\underset{\\lower2mu{"+s.rq+"}}{"+l+"}"}else{l="\\underset{\\lower6mu{"+s.rq+"}}{"+l+"}"}}l=" {}\\mathrel{"+l+"}{} "}else{if(s.rq){l+="[{"+s.rq+"}]"}l+="{"+s.rd+"}";l=" {}\\mathrel{\\x"+l+"}{} "}}else{l=" {}\\mathrel{\\long"+l+"}{} "}t=l;break;case"operator":t=o._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"tinySkip":t="\\mkern2mu";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"→":return"rightarrow";case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}}};function i(e){}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..48da7005c7f62573d18ba282fc9512b52d62032d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js.LICENSE.txt @@ -0,0 +1,32 @@ +/*! + ************************************************************************* + * + * mhchemParser.ts + * 4.1.1 + * + * Parser for the \ce command and \pu command for MathJax and Co. + * + * mhchem's \ce is a tool for writing beautiful chemical equations easily. + * mhchem's \pu is a tool for writing physical units easily. + * + * ---------------------------------------------------------------------- + * + * Copyright (c) 2015-2021 Martin Hensel + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * ---------------------------------------------------------------------- + * + * https://github.com/mhchem/mhchemParser + * + */ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1991.84fc123d7cfe8ae2948e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1991.84fc123d7cfe8ae2948e.js new file mode 100644 index 0000000000000000000000000000000000000000..8bf412b939c181f3f66d49a302db03cf40c1159a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1991.84fc123d7cfe8ae2948e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1991],{91991:(e,r,t)=>{t.r(r);t.d(r,{diff:()=>p});var n={"+":"inserted","-":"deleted","@":"meta"};const p={name:"diff",token:function(e){var r=e.string.search(/[\t ]+?$/);if(!e.sol()||r===0){e.skipToEnd();return("error "+(n[e.string.charAt(0)]||"")).replace(/ $/,"")}var t=n[e.peek()]||e.skipToEnd();if(r===-1){e.skipToEnd()}else{e.pos=r}return t}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2574.327dadfe49120269ff31.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2574.327dadfe49120269ff31.js new file mode 100644 index 0000000000000000000000000000000000000000..0db996f79a395cc56b7db4591dd1ea13c512a04e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2574.327dadfe49120269ff31.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2574],{92574:(e,t,n)=>{n.r(t);n.d(t,{dockerFile:()=>f});var r=n(47228);var a="from";var s=new RegExp("^(\\s*)\\b("+a+")\\b","i");var o=["run","cmd","entrypoint","shell"];var l=new RegExp("^(\\s*)("+o.join("|")+")(\\s+\\[)","i");var i="expose";var u=new RegExp("^(\\s*)("+i+")(\\s+)","i");var g=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"];var d=[a,i].concat(o).concat(g),p="("+d.join("|")+")",x=new RegExp("^(\\s*)"+p+"(\\s*)(#.*)?$","i"),k=new RegExp("^(\\s*)"+p+"(\\s+)","i");const f=(0,r.I)({start:[{regex:/^\s*#.*$/,sol:true,token:"comment"},{regex:s,token:[null,"keyword"],sol:true,next:"from"},{regex:x,token:[null,"keyword",null,"error"],sol:true},{regex:l,token:[null,"keyword",null],sol:true,next:"array"},{regex:u,token:[null,"keyword",null],sol:true,next:"expose"},{regex:k,token:[null,"keyword",null],sol:true,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:true}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:true}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:true,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}})},47228:(e,t,n)=>{n.d(t,{I:()=>r});function r(e){a(e,"start");var t={},n=e.languageData||{},r=false;for(var s in e)if(s!=n&&e.hasOwnProperty(s)){var o=t[s]=[],g=e[s];for(var d=0;d2&&o.token&&typeof o.token!="string"){n.pending=[];for(var u=2;u-1)return null;var a=n.indent.length-1,s=e[n.state];e:for(;;){for(var o=0;o{Object.defineProperty(e,"__esModule",{value:true});e.VERSION=void 0;e.VERSION="3.2.2"},29796:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HandlerList=void 0;var o=r(82776);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.register=function(t){return this.add(t,t.priority)};e.prototype.unregister=function(t){this.remove(t)};e.prototype.handlesDocument=function(t){var e,r;try{for(var n=i(this),o=n.next();!o.done;o=n.next()){var a=o.value;var s=a.item;if(s.handlesDocument(t)){return s}}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")};e.prototype.document=function(t,e){if(e===void 0){e=null}return this.handlesDocument(t).create(t,e)};return e}(o.PrioritizedList);e.HandlerList=a},56441:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var o=r(34981);var a=r(18437);var s=r(43899);var l=r(82776);var u=r(17782);var c=function(){function t(t,e,r,n,i,o,a,s,l,u,c,f,h){if(e===void 0){e={}}if(r===void 0){r={}}if(n===void 0){n={}}if(i===void 0){i={}}if(o===void 0){o={}}if(a===void 0){a={}}if(s===void 0){s=[]}if(l===void 0){l=[]}if(u===void 0){u=null}if(c===void 0){c=null}this.name=t;this.handler=e;this.fallback=r;this.items=n;this.tags=i;this.options=o;this.nodes=a;this.preprocessors=s;this.postprocessors=l;this.initMethod=u;this.configMethod=c;this.priority=f;this.parser=h;this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},e)}t.makeProcessor=function(t,e){return Array.isArray(t)?t:[t,e]};t._create=function(e,r){var n=this;if(r===void 0){r={}}var i=r.priority||l.PrioritizedList.DEFAULTPRIORITY;var o=r.init?this.makeProcessor(r.init,i):null;var a=r.config?this.makeProcessor(r.config,i):null;var s=(r.preprocessors||[]).map((function(t){return n.makeProcessor(t,i)}));var u=(r.postprocessors||[]).map((function(t){return n.makeProcessor(t,i)}));var c=r.parser||"tex";return new t(e,r.handler||{},r.fallback||{},r.items||{},r.tags||{},r.options||{},r.nodes||{},s,u,o,a,i,c)};t.create=function(e,r){if(r===void 0){r={}}var n=t._create(e,r);f.set(e,n);return n};t.local=function(e){if(e===void 0){e={}}return t._create("",e)};Object.defineProperty(t.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:false,configurable:true});return t}();e.Configuration=c;var f;(function(t){var e=new Map;t.set=function(t,r){e.set(t,r)};t.get=function(t){return e.get(t)};t.keys=function(){return e.keys()}})(f=e.ConfigurationHandler||(e.ConfigurationHandler={}));var h=function(){function t(t,e){var r,i,o,u;if(e===void 0){e=["tex"]}this.initMethod=new s.FunctionList;this.configMethod=new s.FunctionList;this.configurations=new l.PrioritizedList;this.parsers=[];this.handlers=new a.SubHandlers;this.items={};this.tags={};this.options={};this.nodes={};this.parsers=e;try{for(var c=n(t.slice().reverse()),f=c.next();!f.done;f=c.next()){var h=f.value;this.addPackage(h)}}catch(m){r={error:m}}finally{try{if(f&&!f.done&&(i=c.return))i.call(c)}finally{if(r)throw r.error}}try{for(var p=n(this.configurations),d=p.next();!d.done;d=p.next()){var v=d.value,y=v.item,g=v.priority;this.append(y,g)}}catch(b){o={error:b}}finally{try{if(d&&!d.done&&(u=p.return))u.call(p)}finally{if(o)throw o.error}}}t.prototype.init=function(){this.initMethod.execute(this)};t.prototype.config=function(t){var e,r;this.configMethod.execute(this,t);try{for(var i=n(this.configurations),o=i.next();!o.done;o=i.next()){var a=o.value;this.addFilters(t,a.item)}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};t.prototype.addPackage=function(t){var e=typeof t==="string"?t:t[0];var r=this.getPackage(e);r&&this.configurations.add(r,typeof t==="string"?r.priority:t[1])};t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r={}}var s=this.getPackage(t);this.append(s);this.configurations.add(s,s.priority);this.init();var l=e.parseOptions;l.nodeFactory.setCreators(s.nodes);try{for(var c=n(Object.keys(s.items)),f=c.next();!f.done;f=c.next()){var h=f.value;l.itemFactory.setNodeClass(h,s.items[h])}}catch(p){i={error:p}}finally{try{if(f&&!f.done&&(a=c.return))a.call(c)}finally{if(i)throw i.error}}u.TagsFactory.addTags(s.tags);(0,o.defaultOptions)(l.options,s.options);(0,o.userOptions)(l.options,r);this.addFilters(e,s);if(s.config){s.config(this,e)}};t.prototype.getPackage=function(t){var e=f.get(t);if(e&&this.parsers.indexOf(e.parser)<0){throw Error("Package ".concat(t," doesn't target the proper parser"))}return e};t.prototype.append=function(t,e){e=e||t.priority;if(t.initMethod){this.initMethod.add(t.initMethod[0],t.initMethod[1])}if(t.configMethod){this.configMethod.add(t.configMethod[0],t.configMethod[1])}this.handlers.add(t.handler,t.fallback,e);Object.assign(this.items,t.items);Object.assign(this.tags,t.tags);(0,o.defaultOptions)(this.options,t.options);Object.assign(this.nodes,t.nodes)};t.prototype.addFilters=function(t,e){var r,o,a,s;try{for(var l=n(e.preprocessors),u=l.next();!u.done;u=l.next()){var c=i(u.value,2),f=c[0],h=c[1];t.preFilters.add(f,h)}}catch(g){r={error:g}}finally{try{if(u&&!u.done&&(o=l.return))o.call(l)}finally{if(r)throw r.error}}try{for(var p=n(e.postprocessors),d=p.next();!d.done;d=p.next()){var v=i(d.value,2),y=v[0],h=v[1];t.postFilters.add(y,h)}}catch(m){a={error:m}}finally{try{if(d&&!d.done&&(s=p.return))s.call(p)}finally{if(a)throw a.error}}};return t}();e.ParserConfiguration=h},18437:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var o=r(82776);var a=r(43899);var s;(function(t){var e=new Map;t.register=function(t){e.set(t.name,t)};t.getMap=function(t){return e.get(t)}})(s=e.MapHandler||(e.MapHandler={}));var l=function(){function t(){this._configuration=new o.PrioritizedList;this._fallback=new a.FunctionList}t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r=o.PrioritizedList.DEFAULTPRIORITY}try{for(var l=n(t.slice().reverse()),u=l.next();!u.done;u=l.next()){var c=u.value;var f=s.getMap(c);if(!f){this.warn("Configuration "+c+" not found! Omitted.");return}this._configuration.add(f,r)}}catch(h){i={error:h}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(i)throw i.error}}if(e){this._fallback.add(e,r)}};t.prototype.parse=function(t){var e,r;try{for(var o=n(this._configuration),a=o.next();!a.done;a=o.next()){var s=a.value.item;var l=s.parse(t);if(l){return l}}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}var u=i(t,2),c=u[0],f=u[1];Array.from(this._fallback)[0].item(c,f)};t.prototype.lookup=function(t){var e=this.applicable(t);return e?e.lookup(t):null};t.prototype.contains=function(t){return this.applicable(t)?true:false};t.prototype.toString=function(){var t,e;var r=[];try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;r.push(a.name)}}catch(s){t={error:s}}finally{try{if(o&&!o.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}return r.join(", ")};t.prototype.applicable=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;if(a.contains(t)){return a}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;if(a.name===t){return a}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.warn=function(t){console.log("TexParser Warning: "+t)};return t}();e.SubHandler=l;var u=function(){function t(){this.map=new Map}t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r=o.PrioritizedList.DEFAULTPRIORITY}try{for(var s=n(Object.keys(t)),u=s.next();!u.done;u=s.next()){var c=u.value;var f=c;var h=this.get(f);if(!h){h=new l;this.set(f,h)}h.add(t[f],e[f],r)}}catch(p){i={error:p}}finally{try{if(u&&!u.done&&(a=s.return))a.call(s)}finally{if(i)throw i.error}}};t.prototype.set=function(t,e){this.map.set(t,e)};t.prototype.get=function(t){return this.map.get(t)};t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this.map.values()),o=i.next();!o.done;o=i.next()){var a=o.value;var s=a.retrieve(t);if(s){return s}}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.keys=function(){return this.map.keys()};return t}();e.SubHandlers=u},72691:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var a=r(80747);var s=o(r(72691));var l=o(r(75845));var u=o(r(98770));var c=r(38316);var f;(function(t){var e=7.2;var r=72;var o={em:function(t){return t},ex:function(t){return t*.43},pt:function(t){return t/10},pc:function(t){return t*1.2},px:function(t){return t*e/r},in:function(t){return t*e},cm:function(t){return t*e/2.54},mm:function(t){return t*e/25.4},mu:function(t){return t/18}};var f="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))";var h="(pt|em|ex|mu|px|mm|cm|in|pc)";var p=RegExp("^\\s*"+f+"\\s*"+h+"\\s*$");var d=RegExp("^\\s*"+f+"\\s*"+h+" ?");function v(t,e){if(e===void 0){e=false}var r=t.match(e?d:p);return r?y([r[1].replace(/,/,"."),r[4],r[0].length]):[null,null,0]}t.matchDimen=v;function y(t){var e=n(t,3),r=e[0],i=e[1],a=e[2];if(i!=="mu"){return[r,i,a]}var s=m(o[i](parseFloat(r||"1")));return[s.slice(0,-2),"em",a]}function g(t){var e=n(v(t),2),r=e[0],i=e[1];var a=parseFloat(r||"1");var s=o[i];return s?s(a):0}t.dimen2em=g;function m(t){if(Math.abs(t)<6e-4){return"0em"}return t.toFixed(3).replace(/\.?0+$/,"")+"em"}t.Em=m;function b(){var t=[];for(var e=0;e1){a=[t.create("node","mrow",a)]}return a}t.internalMath=S;function P(t,e,r){e=e.replace(/^\s+/,c.entities.nbsp).replace(/\s+$/,c.entities.nbsp);var n=t.create("text",e);return t.create("node","mtext",[],r,n)}t.internalText=P;function k(e,r,n,i,o){t.checkMovableLimits(r);if(s.default.isType(r,"munderover")&&s.default.isEmbellished(r)){s.default.setProperties(s.default.getCoreMO(r),{lspace:0,rspace:0});var l=e.create("node","mo",[],{rspace:0});r=e.create("node","mrow",[l,r])}var u=e.create("node","munderover",[r]);s.default.setChild(u,i==="over"?u.over:u.under,n);var c=u;if(o){c=e.create("node","TeXAtom",[u],{texClass:a.TEXCLASS.OP,movesupsub:true})}s.default.setProperty(c,"subsupOK",true);return c}t.underOver=k;function O(t){var e=s.default.isType(t,"mo")?s.default.getForm(t):null;if(s.default.getProperty(t,"movablelimits")||e&&e[3]&&e[3].movablelimits){s.default.setProperties(t,{movablelimits:false})}}t.checkMovableLimits=O;function M(t){if(typeof t!=="string"){return t}var e=t.trim();if(e.match(/\\$/)&&t.match(/ $/)){e+=" "}return e}t.trimSpaces=M;function E(e,r){r=t.trimSpaces(r||"");if(r==="t"){e.arraydef.align="baseline 1"}else if(r==="b"){e.arraydef.align="baseline -1"}else if(r==="c"){e.arraydef.align="axis"}else if(r){e.arraydef.align=r}return e}t.setArrayAlign=E;function C(t,e,r){var n="";var i="";var o=0;while(oe.length){throw new u.default("IllegalMacroParam","Illegal macro parameter reference")}i=A(t,A(t,i,n),e[parseInt(a,10)-1]);n=""}}else{n+=a}}return A(t,i,n)}t.substituteArgs=C;function A(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)){e+=" "}if(e.length+r.length>t.configuration.options["maxBuffer"]){throw new u.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a"+" recursive macro call?")}return e+r}t.addArgs=A;function L(t,e){if(e===void 0){e=true}if(++t.macroCount<=t.configuration.options["maxMacros"]){return}if(e){throw new u.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; "+"is here a recursive macro call?")}else{throw new u.default("MaxMacroSub2","MathJax maximum substitution count exceeded; "+"is there a recursive latex environment?")}}t.checkMaxMacros=L;function j(t){if(t.stack.global.eqnenv){throw new u.default("ErroneousNestingEq","Erroneous nesting of equation structures")}t.stack.global.eqnenv=true}t.checkEqnEnv=j;function F(t,e){var r=t.copy();var n=e.configuration;r.walkTree((function(t){var e,r;n.addNode(t.kind,t);var o=(t.getProperty("in-lists")||"").split(/,/);try{for(var a=i(o),s=a.next();!s.done;s=a.next()){var l=s.value;l&&n.addNode(l,t)}}catch(u){e={error:u}}finally{try{if(s&&!s.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}}));return r}t.copyNode=F;function I(t,e,r){return r}t.MmlFilterAttribute=I;function q(t){var e=t.stack.env["font"];return e?{mathvariant:e}:{}}t.getFontDef=q;function D(t,e,r){var n,o;if(e===void 0){e=null}if(r===void 0){r=false}var a=N(t);if(e){try{for(var s=i(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value;if(!e.hasOwnProperty(c)){if(r){throw new u.default("InvalidOption","Invalid option: %1",c)}delete a[c]}}}catch(f){n={error:f}}finally{try{if(l&&!l.done&&(o=s.return))o.call(s)}finally{if(n)throw n.error}}}return a}t.keyvalOptions=D;function N(t){var e,r;var i={};var o=t;var a,s,l;while(o){e=n(G(o,["=",","]),3),s=e[0],a=e[1],o=e[2];if(a==="="){r=n(G(o,[","]),3),l=r[0],a=r[1],o=r[2];l=l==="false"||l==="true"?JSON.parse(l):l;i[s]=l}else if(s){i[s]=true}}return i}function R(t,e){while(e>0){t=t.trim().slice(1,-1);e--}return t.trim()}function G(t,e){var r=t.length;var n=0;var i="";var o=0;var a=0;var s=true;var l=false;while(on){a=n}}n++;break;case"}":if(n){n--}if(s||l){a--;l=true}s=false;break;default:if(!n&&e.indexOf(c)!==-1){return[l?"true":R(i,a),c,t.slice(o)]}s=false;l=false}i+=c}if(n){throw new u.default("ExtraOpenMissingClose","Extra open brace or missing close brace")}return[l?"true":R(i,a),"",t.slice(o)]}})(f||(f={}));e["default"]=f},32859:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.Macro=e.Symbol=void 0;var r=function(){function t(t,e,r){this._symbol=t;this._char=e;this._attributes=r}Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"char",{get:function(){return this._char},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"attributes",{get:function(){return this._attributes},enumerable:false,configurable:true});return t}();e.Symbol=r;var n=function(){function t(t,e,r){if(r===void 0){r=[]}this._symbol=t;this._func=e;this._args=r}Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"func",{get:function(){return this._func},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"args",{get:function(){return this._args},enumerable:false,configurable:true});return t}();e.Macro=n},80209:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var a=o(r(75845));var s=function(){function t(t,e){if(t===void 0){t="???"}if(e===void 0){e=""}this.tag=t;this.id=e}return t}();e.Label=s;var l=function(){function t(t,e,r,n,i,o,a,s){if(t===void 0){t=""}if(e===void 0){e=false}if(r===void 0){r=false}if(n===void 0){n=null}if(i===void 0){i=""}if(o===void 0){o=""}if(a===void 0){a=false}if(s===void 0){s=""}this.env=t;this.taggable=e;this.defaultTags=r;this.tag=n;this.tagId=i;this.tagFormat=o;this.noTag=a;this.labelId=s}return t}();e.TagInfo=l;var u=function(){function t(){this.counter=0;this.allCounter=0;this.configuration=null;this.ids={};this.allIds={};this.labels={};this.allLabels={};this.redo=false;this.refUpdate=false;this.currentTag=new l;this.history=[];this.stack=[];this.enTag=function(t,e){var r=this.configuration.nodeFactory;var n=r.create("node","mtd",[t]);var i=r.create("node","mlabeledtr",[e,n]);var o=r.create("node","mtable",[i],{side:this.configuration.options["tagSide"],minlabelspacing:this.configuration.options["tagIndent"],displaystyle:true});return o}}t.prototype.start=function(t,e,r){if(this.currentTag){this.stack.push(this.currentTag)}this.currentTag=new l(t,e,r)};Object.defineProperty(t.prototype,"env",{get:function(){return this.currentTag.env},enumerable:false,configurable:true});t.prototype.end=function(){this.history.push(this.currentTag);this.currentTag=this.stack.pop()};t.prototype.tag=function(t,e){this.currentTag.tag=t;this.currentTag.tagFormat=e?t:this.formatTag(t);this.currentTag.noTag=false};t.prototype.notag=function(){this.tag("",true);this.currentTag.noTag=true};Object.defineProperty(t.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:false,configurable:true});t.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)};t.prototype.formatTag=function(t){return"("+t+")"};t.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")};t.prototype.formatNumber=function(t){return t.toString()};t.prototype.autoTag=function(){if(this.currentTag.tag==null){this.counter++;this.tag(this.formatNumber(this.counter),false)}};t.prototype.clearTag=function(){this.label="";this.tag(null,true);this.currentTag.tagId=""};t.prototype.getTag=function(t){if(t===void 0){t=false}if(t){this.autoTag();return this.makeTag()}var e=this.currentTag;if(e.taggable&&!e.noTag){if(e.defaultTags){this.autoTag()}if(e.tag){return this.makeTag()}}return null};t.prototype.resetTag=function(){this.history=[];this.redo=false;this.refUpdate=false;this.clearTag()};t.prototype.reset=function(t){if(t===void 0){t=0}this.resetTag();this.counter=this.allCounter=t;this.allLabels={};this.allIds={}};t.prototype.startEquation=function(t){this.history=[];this.stack=[];this.clearTag();this.currentTag=new l("",undefined,undefined);this.labels={};this.ids={};this.counter=this.allCounter;this.redo=false;var e=t.inputData.recompile;if(e){this.refUpdate=true;this.counter=e.counter}};t.prototype.finishEquation=function(t){if(this.redo){t.inputData.recompile={state:t.state(),counter:this.allCounter}}if(!this.refUpdate){this.allCounter=this.counter}Object.assign(this.allIds,this.ids);Object.assign(this.allLabels,this.labels)};t.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||this.currentTag.tag==null){return t}var r=this.makeTag();var n=this.enTag(t,r);return n};t.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options["useLabelIds"]?this.label||this.currentTag.tag:this.currentTag.tag)};t.prototype.makeTag=function(){this.makeId();if(this.label){this.labels[this.label]=new s(this.currentTag.tag,this.currentTag.tagId)}var t=new a.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})};return t}();e.AbstractTags=u;var c=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.autoTag=function(){};e.prototype.getTag=function(){return!this.currentTag.tag?null:t.prototype.getTag.call(this)};return e}(u);e.NoTags=c;var f=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.finalize=function(t,e){if(!e.display||this.history.find((function(t){return t.taggable}))){return t}var r=this.getTag(true);return this.enTag(t,r)};return e}(u);e.AllTags=f;var h;(function(t){var e=new Map([["none",c],["all",f]]);var r="none";t.OPTIONS={tags:r,tagSide:"right",tagIndent:"0.8em",useLabelIds:true,ignoreDuplicateLabels:false};t.add=function(t,r){e.set(t,r)};t.addTags=function(e){var r,n;try{for(var o=i(Object.keys(e)),a=o.next();!a.done;a=o.next()){var s=a.value;t.add(s,e[s])}}catch(l){r={error:l}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}};t.create=function(t){var n=e.get(t)||e.get(r);if(!n){throw Error("Unknown tags class")}return new n};t.setDefault=function(t){r=t};t.getDefault=function(){return t.create(r)}})(h=e.TagsFactory||(e.TagsFactory={}))},98770:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r=function(){function t(e,r){var n=[];for(var i=2;i="0"&&a<="9"){n[i]=r[parseInt(n[i],10)-1];if(typeof n[i]==="number"){n[i]=n[i].toString()}}else if(a==="{"){a=n[i].substr(1);if(a>="0"&&a<="9"){n[i]=r[parseInt(n[i].substr(1,n[i].length-2),10)-1];if(typeof n[i]==="number"){n[i]=n[i].toString()}}else{var s=n[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(s){n[i]="%"+n[i]}}}if(n[i]==null){n[i]="???"}}return n.join("")};t.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g;return t}();e["default"]=r},75845:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.mathjax=void 0;var n=r(71471);var i=r(29796);var o=r(9841);e.mathjax={version:n.VERSION,handlers:new i.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:o.handleRetriesFor,retryAfter:o.retryAfter,asyncLoad:null}},92787:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.asyncLoad=void 0;var n=r(81039);function i(t){if(!n.mathjax.asyncLoad){return Promise.reject("Can't load '".concat(t,"': No asyncLoad method specified"))}return new Promise((function(e,r){var i=n.mathjax.asyncLoad(t);if(i instanceof Promise){i.then((function(t){return e(t)})).catch((function(t){return r(t)}))}else{e(i)}}))}e.asyncLoad=i},38316:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var n=r(9841);var i=r(92787);e.options={loadMissingEntities:true};e.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var o={};function a(t,r){Object.assign(e.entities,t);o[r]=true}e.add=a;function s(t){delete e.entities[t]}e.remove=s;function l(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,u)}e.translate=l;function u(t,r){if(r.charAt(0)==="#"){return c(r.slice(1))}if(e.entities[r]){return e.entities[r]}if(e.options["loadMissingEntities"]){var a=r.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:r.charAt(0).toLowerCase();if(!o[a]){o[a]=true;(0,n.retryAfter)((0,i.asyncLoad)("./util/entities/"+a+".js"))}}return t}function c(t){var e=t.charAt(0)==="x"?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}e.numeric=c},43899:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},9841:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.retryAfter=e.handleRetriesFor=void 0;function r(t){return new Promise((function e(r,n){try{r(t())}catch(i){if(i.retry&&i.retry instanceof Promise){i.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)}))}else if(i.restart&&i.restart.isCallback){MathJax.Callback.After((function(){return e(r,n)}),i.restart)}else{n(i)}}}))}e.handleRetriesFor=r;function n(t){var e=new Error("MathJax retry");e.retry=t;throw e}e.retryAfter=n}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/265.6f9e37c0b72db64203b1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/265.6f9e37c0b72db64203b1.js new file mode 100644 index 0000000000000000000000000000000000000000..1fd7af59340e9ea902c1cac3fdc97b821109b8b1 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/265.6f9e37c0b72db64203b1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[265],{50265:(e,t,r)=>{r.r(t);r.d(t,{webIDL:()=>_});function a(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"];var i=a(n);var l=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"];var c=a(l);var o=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"];var f=a(o);var s=["true","false","Infinity","NaN","null"];var m=a(s);var u=["callback","dictionary","enum","interface"];var p=a(u);var y=["typedef"];var b=a(y);var d=/^[:<=>?]/;var v=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/;var h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/;var A=/^_?[A-Za-z][0-9A-Z_a-z-]*/;var g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/;var k=/^"[^"]*"/;var D=/^\/\*.*?\*\//;var C=/^\/\*.*/;var E=/^.*?\*\//;function w(e,t){if(e.eatSpace())return null;if(t.inComment){if(e.match(E)){t.inComment=false;return"comment"}e.skipToEnd();return"comment"}if(e.match("//")){e.skipToEnd();return"comment"}if(e.match(D))return"comment";if(e.match(C)){t.inComment=true;return"comment"}if(e.match(/^-?[0-9\.]/,false)){if(e.match(v)||e.match(h))return"number"}if(e.match(k))return"string";if(t.startDef&&e.match(A))return"def";if(t.endDef&&e.match(g)){t.endDef=false;return"def"}if(e.match(f))return"keyword";if(e.match(c)){var r=t.lastToken;var a=(e.match(/^\s*(.+?)\b/,false)||[])[1];if(r===":"||r==="implements"||a==="implements"||a==="="){return"builtin"}else{return"type"}}if(e.match(i))return"builtin";if(e.match(m))return"atom";if(e.match(A))return"variable";if(e.match(d))return"operator";e.next();return null}const _={name:"webidl",startState:function(){return{inComment:false,lastToken:"",startDef:false,endDef:false}},token:function(e,t){var r=w(e,t);if(r){var a=e.current();t.lastToken=a;if(r==="keyword"){t.startDef=p.test(a);t.endDef=t.endDef||b.test(a)}else{t.startDef=false}}return r},languageData:{autocomplete:n.concat(l).concat(o).concat(s)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2658.d1cae1b08b068d864368.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2658.d1cae1b08b068d864368.js new file mode 100644 index 0000000000000000000000000000000000000000..d849ade0cc03d6690f44316c26e07f89df96ce8e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2658.d1cae1b08b068d864368.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2658],{12658:(e,t,r)=>{r.r(t);r.d(t,{mumps:()=>f});function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]");var o=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))");var $=new RegExp("^[\\.,:]");var i=new RegExp("[()]");var c=new RegExp("^[%A-Za-z][A-Za-z0-9]*");var l=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"];var s=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"];var m=n(s);var u=n(l);function d(e,t){if(e.sol()){t.label=true;t.commandMode=0}var r=e.peek();if(r==" "||r=="\t"){t.label=false;if(t.commandMode==0)t.commandMode=1;else if(t.commandMode<0||t.commandMode==2)t.commandMode=0}else if(r!="."&&t.commandMode>0){if(r==":")t.commandMode=-1;else t.commandMode=2}if(r==="("||r==="\t")t.label=false;if(r===";"){e.skipToEnd();return"comment"}if(e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))return"number";if(r=='"'){if(e.skipTo('"')){e.next();return"string"}else{e.skipToEnd();return"error"}}if(e.match(o)||e.match(a))return"operator";if(e.match($))return null;if(i.test(r)){e.next();return"bracket"}if(t.commandMode>0&&e.match(u))return"controlKeyword";if(e.match(m))return"builtin";if(e.match(c))return"variable";if(r==="$"||r==="^"){e.next();return"builtin"}if(r==="@"){e.next();return"string.special"}if(/[\w%]/.test(r)){e.eatWhile(/[\w%]/);return"variable"}e.next();return"error"}const f={name:"mumps",startState:function(){return{label:false,commandMode:0}},token:function(e,t){var r=d(e,t);if(t.label)return"tag";return r}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2681.a47f40e38ecd31ccd687.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2681.a47f40e38ecd31ccd687.js new file mode 100644 index 0000000000000000000000000000000000000000..5e15ae0d0d8995650ff1d15736e262f92c3a8277 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2681.a47f40e38ecd31ccd687.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2681],{82681:(e,t,r)=>{r.r(t);r.d(t,{yacas:()=>h});function n(e){var t={},r=e.split(" ");for(var n=0;n|<|&|\||_|`|'|\^|\?|!|%|#)/,true,false)){return"operator"}return"error"}function p(e,t){var r,n=false,a=false;while((r=e.next())!=null){if(r==='"'&&!a){n=true;break}a=!a&&r==="\\"}if(n&&!a){t.tokenize=f}return"string"}function k(e,t){var r,n;while((n=e.next())!=null){if(r==="*"&&n==="/"){t.tokenize=f;break}r=n}return"comment"}function m(e){var t=null;if(e.scopes.length>0)t=e.scopes[e.scopes.length-1];return t}const h={name:"yacas",startState:function(){return{tokenize:f,scopes:[]}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},indent:function(e,t,r){if(e.tokenize!==f&&e.tokenize!==null)return null;var n=0;if(t==="]"||t==="];"||t==="}"||t==="};"||t===");")n=-1;return(e.scopes.length+n)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2794.05495c139ed000b57598.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2794.05495c139ed000b57598.js new file mode 100644 index 0000000000000000000000000000000000000000..9fe2f9ce0f8923233fefcfc83036753884e82220 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2794.05495c139ed000b57598.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2794],{12794:(e,t,r)=>{r.r(t);r.d(t,{Accordion:()=>i,AccordionItem:()=>d,Anchor:()=>p,AnchoredRegion:()=>c,Avatar:()=>u,Badge:()=>m,Breadcrumb:()=>f,BreadcrumbItem:()=>h,Button:()=>y,Card:()=>x,Checkbox:()=>g,Combobox:()=>b,DataGrid:()=>R,DataGridCell:()=>I,DataGridRow:()=>w,DateField:()=>v,Dialog:()=>j,Disclosure:()=>N,Divider:()=>T,Listbox:()=>D,Menu:()=>E,MenuItem:()=>S,NumberField:()=>k,Option:()=>F,Picker:()=>X,PickerList:()=>ee,PickerListItem:()=>te,PickerMenu:()=>Y,PickerMenuOption:()=>Z,Progress:()=>O,ProgressRing:()=>C,Radio:()=>H,RadioGroup:()=>J,Search:()=>z,Select:()=>q,Skeleton:()=>P,Slider:()=>L,SliderLabel:()=>A,Switch:()=>M,Tab:()=>V,TabPanel:()=>B,Tabs:()=>G,TextArea:()=>W,TextField:()=>_,Toolbar:()=>U,Tooltip:()=>Q,TreeItem:()=>$,TreeView:()=>K});var a=r(78173);var n=r(44914);var l=r.n(n);function s(e,t,r){(0,n.useEffect)((()=>{if(r!==undefined&&e.current&&e.current[t]!==r){try{e.current[t]=r}catch(a){console.warn(a)}}}),[r,e.current])}function o(e,t,r){(0,n.useLayoutEffect)((()=>{if(r!==undefined){e?.current?.addEventListener(t,r)}return()=>{if(r?.cancel){r.cancel()}e?.current?.removeEventListener(t,r)}}),[t,r,e.current])}(0,a.provideJupyterDesignSystem)().register((0,a.jpAccordion)());const i=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,expandMode:s,...i}=e;o(r,"change",e.onChange);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-accordion",{ref:r,...i,"expand-mode":e.expandMode||e["expand-mode"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpAccordionItem)());const d=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,headingLevel:i,id:d,expanded:c,...p}=e;o(r,"change",e.onChange);s(r,"expanded",e.expanded);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-accordion-item",{ref:r,...p,"heading-level":e.headingLevel||e["heading-level"],id:e.id,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpAnchoredRegion)());const c=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,horizontalViewportLock:i,horizontalInset:d,verticalViewportLock:c,verticalInset:p,fixedPlacement:u,anchor:m,viewport:f,horizontalPositioningMode:h,horizontalDefaultPosition:y,horizontalThreshold:x,horizontalScaling:g,verticalPositioningMode:b,verticalDefaultPosition:v,verticalThreshold:I,verticalScaling:w,autoUpdateMode:R,anchorElement:j,viewportElement:N,verticalPosition:T,horizontalPosition:D,update:S,...E}=e;o(r,"loaded",e.onLoaded);o(r,"positionchange",e.onPositionchange);s(r,"anchorElement",e.anchorElement);s(r,"viewportElement",e.viewportElement);s(r,"verticalPosition",e.verticalPosition);s(r,"horizontalPosition",e.horizontalPosition);s(r,"update",e.update);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-anchored-region",{ref:r,...E,anchor:e.anchor,viewport:e.viewport,"horizontal-positioning-mode":e.horizontalPositioningMode||e["horizontal-positioning-mode"],"horizontal-default-position":e.horizontalDefaultPosition||e["horizontal-default-position"],"horizontal-threshold":e.horizontalThreshold||e["horizontal-threshold"],"horizontal-scaling":e.horizontalScaling||e["horizontal-scaling"],"vertical-positioning-mode":e.verticalPositioningMode||e["vertical-positioning-mode"],"vertical-default-position":e.verticalDefaultPosition||e["vertical-default-position"],"vertical-threshold":e.verticalThreshold||e["vertical-threshold"],"vertical-scaling":e.verticalScaling||e["vertical-scaling"],"auto-update-mode":e.autoUpdateMode||e["auto-update-mode"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"horizontal-viewport-lock":e.horizontalViewportLock?"":undefined,"horizontal-inset":e.horizontalInset?"":undefined,"vertical-viewport-lock":e.verticalViewportLock?"":undefined,"vertical-inset":e.verticalInset?"":undefined,"fixed-placement":e.fixedPlacement?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpAnchor)());const p=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,appearance:o,download:i,href:d,hreflang:c,ping:p,referrerpolicy:u,rel:m,target:f,type:h,control:y,...x}=e;s(r,"control",e.control);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-anchor",{ref:r,...x,appearance:e.appearance,download:e.download,href:e.href,hreflang:e.hreflang,ping:e.ping,referrerpolicy:e.referrerpolicy,rel:e.rel,target:e.target,type:e.type,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpAvatar)());const u=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,src:s,alt:o,fill:i,color:d,link:c,shape:p,...u}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-avatar",{ref:r,...u,src:e.src,alt:e.alt,fill:e.fill,color:e.color,link:e.link,shape:e.shape,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpBadge)());const m=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,fill:o,color:i,circular:d,...c}=e;s(r,"circular",e.circular);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-badge",{ref:r,...c,fill:e.fill,color:e.color,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpBreadcrumb)());const f=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-breadcrumb",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpBreadcrumbItem)());const h=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,download:o,href:i,hreflang:d,ping:c,referrerpolicy:p,rel:u,target:m,type:f,control:h,...y}=e;s(r,"control",e.control);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-breadcrumb-item",{ref:r,...y,download:e.download,href:e.href,hreflang:e.hreflang,ping:e.ping,referrerpolicy:e.referrerpolicy,rel:e.rel,target:e.target,type:e.type,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpButton)());const y=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,minimal:o,appearance:i,form:d,formaction:c,formenctype:p,formmethod:u,formtarget:m,type:f,autofocus:h,formnovalidate:y,defaultSlottedContent:x,disabled:g,required:b,...v}=e;s(r,"autofocus",e.autofocus);s(r,"formnovalidate",e.formnovalidate);s(r,"defaultSlottedContent",e.defaultSlottedContent);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-button",{ref:r,...v,appearance:e.appearance,form:e.form,formaction:e.formaction,formenctype:e.formenctype,formmethod:e.formmethod,formtarget:e.formtarget,type:e.type,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,minimal:e.minimal?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpCard)());const x=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-card",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpCheckbox)());const g=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,readOnly:d,indeterminate:c,checked:p,disabled:u,required:m,...f}=e;o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"indeterminate",e.indeterminate);s(r,"checked",e.checked);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let h=a??"";if(r.current?.indeterminate){h+=" indeterminate"}return l().createElement("jp-checkbox",{ref:r,...f,class:h.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpCombobox)());const b=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,autowidth:i,minimal:d,open:c,autocomplete:p,placeholder:u,position:m,autoWidth:f,filteredOptions:h,options:y,value:x,length:g,disabled:b,selectedIndex:v,selectedOptions:I,required:w,...R}=e;o(r,"input",e.onInput);o(r,"change",e.onChange);s(r,"autoWidth",e.autoWidth);s(r,"filteredOptions",e.filteredOptions);s(r,"options",e.options);s(r,"value",e.value);s(r,"length",e.length);s(r,"disabled",e.disabled);s(r,"selectedIndex",e.selectedIndex);s(r,"selectedOptions",e.selectedOptions);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-combobox",{ref:r,...R,autocomplete:e.autocomplete,placeholder:e.placeholder,position:e.position,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,autowidth:e.autowidth?"":undefined,minimal:e.minimal?"":undefined,open:e.open?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDateField)());const v=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,autofocus:i,step:d,max:c,min:p,disabled:u,required:m,...f}=e;o(r,"input",e.onInput);o(r,"change",e.onChange);s(r,"autofocus",e.autofocus);s(r,"step",e.step);s(r,"max",e.max);s(r,"min",e.min);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-date-field",{ref:r,...f,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDataGridCell)());const I=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,cellType:i,gridColumn:d,rowData:c,columnDefinition:p,...u}=e;o(r,"cell-focused",e.onCellFocused);s(r,"rowData",e.rowData);s(r,"columnDefinition",e.columnDefinition);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let m=a??"";if(r.current?.cellType==="columnheader"){m+=" column-header"}return l().createElement("jp-data-grid-cell",{ref:r,...u,"cell-type":e.cellType||e["cell-type"],"grid-column":e.gridColumn||e["grid-column"],class:m.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDataGridRow)());const w=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,gridTemplateColumns:i,rowType:d,rowData:c,columnDefinitions:p,cellItemTemplate:u,headerCellItemTemplate:m,rowIndex:f,...h}=e;o(r,"row-focused",e.onRowFocused);s(r,"rowData",e.rowData);s(r,"columnDefinitions",e.columnDefinitions);s(r,"cellItemTemplate",e.cellItemTemplate);s(r,"headerCellItemTemplate",e.headerCellItemTemplate);s(r,"rowIndex",e.rowIndex);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let y=a??"";if(r.current){if(r.current.rowType!=="default"){y+=` ${r.current.rowType}`}}return l().createElement("jp-data-grid-row",{ref:r,...h,"grid-template-columns":e.gridTemplateColumns||e["grid-template-columns"],"row-type":e.rowType||e["row-type"],class:y.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDataGrid)());const R=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,noTabbing:o,generateHeader:i,gridTemplateColumns:d,rowsData:c,columnDefinitions:p,rowItemTemplate:u,cellItemTemplate:m,headerCellItemTemplate:f,focusRowIndex:h,focusColumnIndex:y,rowElementTag:x,...g}=e;s(r,"rowsData",e.rowsData);s(r,"columnDefinitions",e.columnDefinitions);s(r,"rowItemTemplate",e.rowItemTemplate);s(r,"cellItemTemplate",e.cellItemTemplate);s(r,"headerCellItemTemplate",e.headerCellItemTemplate);s(r,"focusRowIndex",e.focusRowIndex);s(r,"focusColumnIndex",e.focusColumnIndex);s(r,"rowElementTag",e.rowElementTag);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-data-grid",{ref:r,...g,"generate-header":e.generateHeader||e["generate-header"],"grid-template-columns":e.gridTemplateColumns||e["grid-template-columns"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"no-tabbing":e.noTabbing?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDialog)());const j=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,trapFocus:i,ariaDescribedby:d,ariaLabelledby:c,ariaLabel:p,modal:u,hidden:m,...f}=e;o(r,"cancel",e.onCancel);o(r,"close",e.onClose);s(r,"modal",e.modal);s(r,"hidden",e.hidden);(0,n.useImperativeHandle)(t,(()=>({show:()=>r.current.show(),hide:()=>r.current.hide(),compose:(e,t)=>r.current.compose(e,t)})));return l().createElement("jp-dialog",{ref:r,...f,"aria-describedby":e.ariaDescribedby||e["aria-describedby"],"aria-labelledby":e.ariaLabelledby||e["aria-labelledby"],"aria-label":e.ariaLabel||e["aria-label"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"trap-focus":e.trapFocus?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDisclosure)());const N=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,appearance:i,title:d,expanded:c,...p}=e;o(r,"toggle",e.onToggle);s(r,"expanded",e.expanded);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-disclosure",{ref:r,...p,appearance:e.appearance,title:e.title,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpDivider)());const T=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,role:s,orientation:o,...i}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-divider",{ref:r,...i,role:e.role,orientation:e.orientation,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpListbox)());const D=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,multiple:i,size:d,length:c,options:p,disabled:u,selectedIndex:m,selectedOptions:f,...h}=e;o(r,"change",e.onChange);s(r,"multiple",e.multiple);s(r,"size",e.size);s(r,"length",e.length);s(r,"options",e.options);s(r,"disabled",e.disabled);s(r,"selectedIndex",e.selectedIndex);s(r,"selectedOptions",e.selectedOptions);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-listbox",{ref:r,...h,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpMenuItem)());const S=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,role:i,disabled:d,expanded:c,checked:p,...u}=e;o(r,"expanded-change",e.onExpand);o(r,"change",e.onChange);s(r,"disabled",e.disabled);s(r,"expanded",e.expanded);s(r,"checked",e.checked);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let m=a??"";if(r.current){m+=` indent-${r.current.startColumnCount}`;if(r.current.expanded){m+=" expanded"}}return l().createElement("jp-menu-item",{ref:r,...u,role:e.role,class:m.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpMenu)());const E=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-menu",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpNumberField)());const k=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,hideStep:d,appearance:c,placeholder:p,list:u,readOnly:m,autofocus:f,maxlength:h,minlength:y,size:x,step:g,max:b,min:v,disabled:I,required:w,...R}=e;o(r,"input",e.onInput);o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"autofocus",e.autofocus);s(r,"maxlength",e.maxlength);s(r,"minlength",e.minlength);s(r,"size",e.size);s(r,"step",e.step);s(r,"max",e.max);s(r,"min",e.min);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-number-field",{ref:r,...R,appearance:e.appearance,placeholder:e.placeholder,list:e.list,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,"hide-step":e.hideStep?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpOption)());const F=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,selected:o,value:i,checked:d,content:c,defaultSelected:p,disabled:u,selectedAttribute:m,dirtyValue:f,...h}=e;s(r,"checked",e.checked);s(r,"content",e.content);s(r,"defaultSelected",e.defaultSelected);s(r,"disabled",e.disabled);s(r,"selectedAttribute",e.selectedAttribute);s(r,"dirtyValue",e.dirtyValue);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-option",{ref:r,...h,value:e.value,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,selected:e.selected?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpProgressRing)());const C=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,value:o,min:i,max:d,paused:c,...p}=e;s(r,"value",e.value);s(r,"min",e.min);s(r,"max",e.max);s(r,"paused",e.paused);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-progress-ring",{ref:r,...p,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpProgress)());const O=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,value:o,min:i,max:d,paused:c,...p}=e;s(r,"value",e.value);s(r,"min",e.min);s(r,"max",e.max);s(r,"paused",e.paused);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-progress",{ref:r,...p,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpRadio)());const H=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,readOnly:d,name:c,checked:p,disabled:u,required:m,...f}=e;o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"name",e.name);s(r,"checked",e.checked);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-radio",{ref:r,...f,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpRadioGroup)());const J=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,disabled:d,name:c,value:p,orientation:u,readOnly:m,...f}=e;o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-radio-group",{ref:r,...f,name:e.name,value:e.value,orientation:e.orientation,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,disabled:e.disabled?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSearch)());const z=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,appearance:d,placeholder:c,list:p,pattern:u,readOnly:m,autofocus:f,maxlength:h,minlength:y,size:x,spellcheck:g,disabled:b,required:v,...I}=e;o(r,"input",e.onInput);o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"autofocus",e.autofocus);s(r,"maxlength",e.maxlength);s(r,"minlength",e.minlength);s(r,"size",e.size);s(r,"spellcheck",e.spellcheck);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-search",{ref:r,...I,appearance:e.appearance,placeholder:e.placeholder,list:e.list,pattern:e.pattern,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSelect)());const q=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,autowidth:i,minimal:d,open:c,position:p,autoWidth:u,value:m,displayValue:f,multiple:h,size:y,length:x,options:g,disabled:b,selectedIndex:v,selectedOptions:I,required:w,...R}=e;o(r,"input",e.onInput);o(r,"change",e.onChange);s(r,"autoWidth",e.autoWidth);s(r,"value",e.value);s(r,"displayValue",e.displayValue);s(r,"multiple",e.multiple);s(r,"size",e.size);s(r,"length",e.length);s(r,"options",e.options);s(r,"disabled",e.disabled);s(r,"selectedIndex",e.selectedIndex);s(r,"selectedOptions",e.selectedOptions);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-select",{ref:r,...R,position:e.position,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,autowidth:e.autowidth?"":undefined,minimal:e.minimal?"":undefined,open:e.open?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSkeleton)());const P=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,fill:o,shape:i,pattern:d,shimmer:c,...p}=e;s(r,"shimmer",e.shimmer);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-skeleton",{ref:r,...p,fill:e.fill,shape:e.shape,pattern:e.pattern,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSlider)());const L=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,orientation:d,mode:c,readOnly:p,valueAsNumber:u,valueTextFormatter:m,min:f,max:h,step:y,disabled:x,required:g,...b}=e;o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"valueAsNumber",e.valueAsNumber);s(r,"valueTextFormatter",e.valueTextFormatter);s(r,"min",e.min);s(r,"max",e.max);s(r,"step",e.step);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-slider",{ref:r,...b,orientation:e.orientation,mode:e.mode,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSliderLabel)());const A=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,hideMark:s,disabled:o,position:i,...d}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let c=a??"";if(r.current?.disabled){c+=" disabled"}return l().createElement("jp-slider-label",{ref:r,...d,position:e.position,class:c.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"hide-mark":e.hideMark?"":undefined,disabled:e.disabled?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpSwitch)());const M=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,readOnly:d,checked:c,disabled:p,required:u,...m}=e;o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"checked",e.checked);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-switch",{ref:r,...m,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTab)());const V=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,disabled:o,...i}=e;s(r,"disabled",e.disabled);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let d=a??"";if(r.current?.classList.contains("vertical")){d+=" vertical"}return l().createElement("jp-tab",{ref:r,...i,class:d.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTabPanel)());const B=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-tab-panel",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTabs)());const G=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,orientation:i,activeid:d,activeindicator:c,activetab:p,...u}=e;o(r,"change",e.onChange);s(r,"activeindicator",e.activeindicator);s(r,"activetab",e.activetab);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-tabs",{ref:r,...u,orientation:e.orientation,activeid:e.activeid,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTextArea)());const W=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,appearance:i,resize:d,form:c,list:p,name:u,placeholder:m,readOnly:f,autofocus:h,maxlength:y,minlength:x,cols:g,rows:b,spellcheck:v,disabled:I,required:w,...R}=e;o(r,"select",e.onSelect);o(r,"change",e.onChange);s(r,"readOnly",e.readOnly);s(r,"autofocus",e.autofocus);s(r,"maxlength",e.maxlength);s(r,"minlength",e.minlength);s(r,"cols",e.cols);s(r,"rows",e.rows);s(r,"spellcheck",e.spellcheck);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-text-area",{ref:r,...R,appearance:e.appearance,resize:e.resize,form:e.form,list:e.list,name:e.name,placeholder:e.placeholder,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTextField)());const _=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,readonly:i,appearance:d,placeholder:c,type:p,list:u,pattern:m,readOnly:f,autofocus:h,maxlength:y,minlength:x,size:g,spellcheck:b,disabled:v,required:I,...w}=e;o(r,"change",e.onChange);o(r,"input",e.onInput);s(r,"readOnly",e.readOnly);s(r,"autofocus",e.autofocus);s(r,"maxlength",e.maxlength);s(r,"minlength",e.minlength);s(r,"size",e.size);s(r,"spellcheck",e.spellcheck);s(r,"disabled",e.disabled);s(r,"required",e.required);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-text-field",{ref:r,...w,appearance:e.appearance,placeholder:e.placeholder,type:e.type,list:e.list,pattern:e.pattern,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,readonly:e.readonly?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpToolbar)());const U=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-toolbar",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTooltip)());const Q=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,horizontalViewportLock:i,verticalViewportLock:d,anchor:c,delay:p,position:u,autoUpdateMode:m,visible:f,anchorElement:h,...y}=e;o(r,"dismiss",e.onDismiss);s(r,"visible",e.visible);s(r,"anchorElement",e.anchorElement);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-tooltip",{ref:r,...y,anchor:e.anchor,delay:e.delay,position:e.position,"auto-update-mode":e.autoUpdateMode||e["auto-update-mode"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"horizontal-viewport-lock":e.horizontalViewportLock?"":undefined,"vertical-viewport-lock":e.verticalViewportLock?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTreeItem)());const $=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,expanded:i,selected:d,disabled:c,...p}=e;o(r,"expanded-change",e.onExpand);o(r,"selected-change",e.onSelect);s(r,"expanded",e.expanded);s(r,"selected",e.selected);s(r,"disabled",e.disabled);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);let u=a??"";if(r.current?.nested){u+=" nested"}return l().createElement("jp-tree-item",{ref:r,...p,class:u.trim(),exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpTreeView)());const K=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,renderCollapsedNodes:o,currentSelected:i,...d}=e;(0,n.useLayoutEffect)((()=>{r.current?.setItems()}),[r.current]);s(r,"currentSelected",e.currentSelected);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-tree-view",{ref:r,...d,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"render-collapsed-nodes":e.renderCollapsedNodes?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpPicker)());const X=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,filterSelected:o,filterQuery:i,selection:d,options:c,maxSelected:p,noSuggestionsText:u,suggestionsAvailableText:m,loadingText:f,label:h,labelledby:y,placeholder:x,menuPlacement:g,showLoading:b,listItemTemplate:v,defaultListItemTemplate:I,menuOptionTemplate:w,defaultMenuOptionTemplate:R,listItemContentsTemplate:j,menuOptionContentsTemplate:N,optionsList:T,query:D,itemsPlaceholderElement:S,...E}=e;s(r,"showLoading",e.showLoading);s(r,"listItemTemplate",e.listItemTemplate);s(r,"defaultListItemTemplate",e.defaultListItemTemplate);s(r,"menuOptionTemplate",e.menuOptionTemplate);s(r,"defaultMenuOptionTemplate",e.defaultMenuOptionTemplate);s(r,"listItemContentsTemplate",e.listItemContentsTemplate);s(r,"menuOptionContentsTemplate",e.menuOptionContentsTemplate);s(r,"optionsList",e.optionsList);s(r,"query",e.query);s(r,"itemsPlaceholderElement",e.itemsPlaceholderElement);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-draft-picker",{ref:r,...E,selection:e.selection,options:e.options,"max-selected":e.maxSelected||e["max-selected"],"no-suggestions-text":e.noSuggestionsText||e["no-suggestions-text"],"suggestions-available-text":e.suggestionsAvailableText||e["suggestions-available-text"],"loading-text":e.loadingText||e["loading-text"],label:e.label,labelledby:e.labelledby,placeholder:e.placeholder,"menu-placement":e.menuPlacement||e["menu-placement"],class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,"filter-selected":e.filterSelected?"":undefined,"filter-query":e.filterQuery?"":undefined,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpPickerMenu)());const Y=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,suggestionsAvailableText:o,...i}=e;s(r,"suggestionsAvailableText",e.suggestionsAvailableText);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-draft-picker-menu",{ref:r,...i,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpPickerMenuOption)());const Z=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,value:o,contentsTemplate:i,...d}=e;s(r,"contentsTemplate",e.contentsTemplate);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-draft-picker-menu-option",{ref:r,...d,value:e.value,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpPickerList)());const ee=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,...s}=e;(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-draft-picker-list",{ref:r,...s,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}));(0,a.provideJupyterDesignSystem)().register((0,a.jpPickerListItem)());const te=(0,n.forwardRef)(((e,t)=>{const r=(0,n.useRef)(null);const{className:a,value:o,contentsTemplate:i,...d}=e;s(r,"contentsTemplate",e.contentsTemplate);(0,n.useImperativeHandle)(t,(()=>r.current),[r.current]);return l().createElement("jp-draft-picker-list-item",{ref:r,...d,value:e.value,class:e.className,exportparts:e.exportparts,for:e.htmlFor,part:e.part,tabindex:e.tabIndex,style:{...e.style}},e.children)}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2959.b24c9f67d639376f5ead.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2959.b24c9f67d639376f5ead.js new file mode 100644 index 0000000000000000000000000000000000000000..1c5d8f13e8fb305637065abcb50877de3f74fba8 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2959.b24c9f67d639376f5ead.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2959],{42959:(e,t,n)=>{n.r(t);n.d(t,{scheme:()=>C});var a="builtin",i="comment",r="string",s="symbol",l="atom",c="number",o="bracket";var d=2;function f(e){var t={},n=e.split(" ");for(var a=0;ainteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?");var p=f("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function m(e,t,n){this.indent=e;this.type=t;this.prev=n}function h(e,t,n){e.indentStack=new m(t,n,e.indentStack)}function g(e){e.indentStack=e.indentStack.prev}var x=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i);var b=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i);var v=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i);var k=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function y(e){return e.match(x)}function w(e){return e.match(b)}function E(e,t){if(t===true){e.backUp(1)}return e.match(k)}function S(e){return e.match(v)}function q(e,t){var n,a=false;while((n=e.next())!=null){if(n==t.token&&!a){t.state.mode=false;break}a=!a&&n=="\\"}}const C={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:false,sExprComment:false,sExprQuote:false}},token:function(e,t){if(t.indentStack==null&&e.sol()){t.indentation=e.indentation()}if(e.eatSpace()){return null}var n=null;switch(t.mode){case"string":q(e,{token:'"',state:t});n=r;break;case"symbol":q(e,{token:"|",state:t});n=s;break;case"comment":var f,m=false;while((f=e.next())!=null){if(f=="#"&&m){t.mode=false;break}m=f=="|"}n=i;break;case"s-expr-comment":t.mode=false;if(e.peek()=="("||e.peek()=="["){t.sExprComment=0}else{e.eatWhile(/[^\s\(\)\[\]]/);n=i;break}default:var x=e.next();if(x=='"'){t.mode="string";n=r}else if(x=="'"){if(e.peek()=="("||e.peek()=="["){if(typeof t.sExprQuote!="number"){t.sExprQuote=0}n=l}else{e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);n=l}}else if(x=="|"){t.mode="symbol";n=s}else if(x=="#"){if(e.eat("|")){t.mode="comment";n=i}else if(e.eat(/[tf]/i)){n=l}else if(e.eat(";")){t.mode="s-expr-comment";n=i}else{var b=null,v=false,k=true;if(e.eat(/[ei]/i)){v=true}else{e.backUp(1)}if(e.match(/^#b/i)){b=y}else if(e.match(/^#o/i)){b=w}else if(e.match(/^#x/i)){b=S}else if(e.match(/^#d/i)){b=E}else if(e.match(/^[-+0-9.]/,false)){k=false;b=E}else if(!v){e.eat("#")}if(b!=null){if(k&&!v){e.match(/^#[ei]/i)}if(b(e))n=c}}}else if(/^[-+0-9.]/.test(x)&&E(e,true)){n=c}else if(x==";"){e.skipToEnd();n=i}else if(x=="("||x=="["){var C="";var Q=e.column(),_;while((_=e.eat(/[^\s\(\[\;\)\]]/))!=null){C+=_}if(C.length>0&&p.propertyIsEnumerable(C)){h(t,Q+d,x)}else{e.eatSpace();if(e.eol()||e.peek()==";"){h(t,Q+1,x)}else{h(t,Q+e.current().length,x)}}e.backUp(e.current().length-1);if(typeof t.sExprComment=="number")t.sExprComment++;if(typeof t.sExprQuote=="number")t.sExprQuote++;n=o}else if(x==")"||x=="]"){n=o;if(t.indentStack!=null&&t.indentStack.type==(x==")"?"(":"[")){g(t);if(typeof t.sExprComment=="number"){if(--t.sExprComment==0){n=i;t.sExprComment=false}}if(typeof t.sExprQuote=="number"){if(--t.sExprQuote==0){n=l;t.sExprQuote=false}}}}else{e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);if(u&&u.propertyIsEnumerable(e.current())){n=a}else n="variable"}}return typeof t.sExprComment=="number"?i:typeof t.sExprQuote=="number"?l:n},indent:function(e){if(e.indentStack==null)return e.indentation;return e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3111.33574d9124842f355bce.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3111.33574d9124842f355bce.js new file mode 100644 index 0000000000000000000000000000000000000000..027f6aef3332dc158a444864ad084afc79676ac7 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3111.33574d9124842f355bce.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3111,5492],{13111:(e,t,n)=>{n.r(t);n.d(t,{Bounce:()=>N,Flip:()=>k,Icons:()=>v,Slide:()=>R,ToastContainer:()=>M,Zoom:()=>w,collapseToast:()=>f,cssTransition:()=>m,toast:()=>H,useToast:()=>b,useToastContainer:()=>T});var o=n(44914);var s=n.n(o);function a(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),c=e=>"string"==typeof e,u=e=>"function"==typeof e,d=e=>c(e)||u(e)?e:null,p=e=>(0,o.isValidElement)(e)||c(e)||u(e)||l(e);function f(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame((()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame((()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)}))}))}function m(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:i=!0,collapseDuration:r=300}=e;return function(e){let{children:l,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:m}=e;const g=a?`${t}--${c}`:t,h=a?`${n}--${c}`:n,y=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,o.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?f(e,d,r):d()};m||(u?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[m]),s().createElement(s().Fragment,null,l)}}function g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},y=e=>{let{theme:t,type:n,...o}=e;return s().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},v={info:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return s().createElement("div",{className:"Toastify__spinner"})}};function T(e){const[,t]=(0,o.useReducer)((e=>e+1),0),[n,s]=(0,o.useState)([]),a=(0,o.useRef)(null),i=(0,o.useRef)(new Map).current,r=e=>-1!==n.indexOf(e),f=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:r,getToast:e=>i.get(e)}).current;function m(e){let{containerId:t}=e;const{limit:n}=f.props;!n||t&&f.containerId!==t||(f.count-=f.queue.length,f.queue=[])}function y(e){s((t=>null==e?[]:t.filter((t=>t!==e))))}function T(){const{toastContent:e,toastProps:t,staleId:n}=f.queue.shift();C(e,t,n)}function E(e,n){let{delay:s,staleId:r,...m}=n;if(!p(e)||function(e){return!a.current||f.props.enableMultiContainer&&e.containerId!==f.props.containerId||i.has(e.toastId)&&null==e.updateId}(m))return;const{toastId:E,updateId:b,data:_}=m,{props:I}=f,L=()=>y(E),O=null==b;O&&f.count++;const N={...I,style:I.toastStyle,key:f.toastKey++,...m,toastId:E,updateId:b,data:_,closeToast:L,isIn:!1,className:d(m.className||I.toastClassName),bodyClassName:d(m.bodyClassName||I.bodyClassName),progressClassName:d(m.progressClassName||I.progressClassName),autoClose:!m.isLoading&&(R=m.autoClose,w=I.autoClose,!1===R||l(R)&&R>0?R:w),deleteToast(){const e=g(i.get(E),"removed");i.delete(E),h.emit(4,e);const n=f.queue.length;if(f.count=null==E?f.count-f.displayedToast:f.count-1,f.count<0&&(f.count=0),n>0){const e=null==E?f.props.limit:1;if(1===n||1===e)f.displayedToast++,T();else{const t=e>n?n:e;f.displayedToast=t;for(let e=0;ee in v)(n)&&(i=v[n](r))),i}(N),u(m.onOpen)&&(N.onOpen=m.onOpen),u(m.onClose)&&(N.onClose=m.onClose),N.closeButton=I.closeButton,!1===m.closeButton||p(m.closeButton)?N.closeButton=m.closeButton:!0===m.closeButton&&(N.closeButton=!p(I.closeButton)||I.closeButton);let k=e;(0,o.isValidElement)(e)&&!c(e.type)?k=(0,o.cloneElement)(e,{closeToast:L,toastProps:N,data:_}):u(e)&&(k=e({closeToast:L,toastProps:N,data:_})),I.limit&&I.limit>0&&f.count>I.limit&&O?f.queue.push({toastContent:k,toastProps:N,staleId:r}):l(s)?setTimeout((()=>{C(k,N,r)}),s):C(k,N,r)}function C(e,t,n){const{toastId:o}=t;n&&i.delete(n);const a={content:e,props:t};i.set(o,a),s((e=>[...e,o].filter((e=>e!==n)))),h.emit(4,g(a,null==a.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(f.containerId=e.containerId,h.cancelEmit(3).on(0,E).on(1,(e=>a.current&&y(e))).on(5,m).emit(2,f),()=>{i.clear(),h.emit(3,f)})),[]),(0,o.useEffect)((()=>{f.props=e,f.isToastActive=r,f.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,o=Array.from(i.values());return e.newestOnTop&&o.reverse(),o.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:a,isToastActive:r}}function E(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,n]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),i=(0,o.useRef)(null),r=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:m}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),r.didMove=!1,document.addEventListener("mousemove",T),document.addEventListener("mouseup",b),document.addEventListener("touchmove",T),document.addEventListener("touchend",b);const n=i.current;r.canCloseOnClick=!0,r.canDrag=!0,r.boundingRect=n.getBoundingClientRect(),n.style.transition="",r.x=E(t.nativeEvent),r.y=C(t.nativeEvent),"x"===e.draggableDirection?(r.start=r.x,r.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(r.start=r.y,r.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(r.boundingRect){const{top:n,bottom:o,left:s,right:a}=r.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&r.x>=s&&r.x<=a&&r.y>=n&&r.y<=o?v():y()}}function y(){n(!0)}function v(){n(!1)}function T(n){const o=i.current;r.canDrag&&o&&(r.didMove=!0,t&&v(),r.x=E(n),r.y=C(n),r.delta="x"===e.draggableDirection?r.x-r.start:r.y-r.start,r.start!==r.x&&(r.canCloseOnClick=!1),o.style.transform=`translate${e.draggableDirection}(${r.delta}px)`,o.style.opacity=""+(1-Math.abs(r.delta/r.removalDistance)))}function b(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",b);const t=i.current;if(r.canDrag&&r.didMove&&t){if(r.canDrag=!1,Math.abs(r.delta)>r.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,o.useEffect)((()=>{l.current=e})),(0,o.useEffect)((()=>(i.current&&i.current.addEventListener("d",y,{once:!0}),u(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;u(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)})),[]),(0,o.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",y),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const _={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return c&&d&&(_.onMouseEnter=v,_.onMouseLeave=y),m&&(_.onClick=e=>{f&&f(e),r.canCloseOnClick&&p()}),{playToast:y,pauseToast:v,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:_}}function _(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return s().createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},s().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(e){let{delay:t,isRunning:n,closeToast:o,type:a="default",hide:i,className:l,style:c,controlledProgress:d,progress:p,rtl:f,isIn:m,theme:g}=e;const h=i||d&&0===p,y={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${p})`);const v=r("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=u(l)?l({rtl:f,type:a,defaultClassName:v}):r(v,l);return s().createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&o()}})}const L=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:d,onClick:p,type:f,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:T,bodyClassName:E,bodyStyle:C,progressClassName:L,progressStyle:O,updateId:N,role:R,progress:w,rtl:k,toastId:M,deleteToast:x,isIn:$,isLoading:B,iconOut:P,closeOnClick:A,theme:D}=e,z=r("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),F=u(v)?v({rtl:k,position:y,type:f,defaultClassName:z}):r(z,v),S=!!w||!d,H={closeToast:g,type:f,theme:D};let q=null;return!1===l||(q=u(l)?l(H):(0,o.isValidElement)(l)?(0,o.cloneElement)(l,H):_(H)),s().createElement(h,{isIn:$,done:x,position:y,preventExitTransition:n,nodeRef:a},s().createElement("div",{id:M,onClick:p,className:F,...i,style:T,ref:a},s().createElement("div",{...$&&{role:R},className:u(E)?E({type:f}):r("Toastify__toast-body",E),style:C},null!=P&&s().createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),s().createElement("div",null,c)),q,s().createElement(I,{...N&&!S?{key:`pb-${N}`}:{},rtl:k,theme:D,delay:d,isRunning:t,isIn:$,closeToast:g,hide:m,type:f,style:O,className:L,controlledProgress:S,progress:w||0})))},O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=m(O("bounce",!0)),R=m(O("slide",!0)),w=m(O("zoom")),k=m(O("flip")),M=(0,o.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=T(e),{className:l,style:c,rtl:p,containerId:f}=e;function m(e){const t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":p});return u(l)?l({position:e,rtl:p,defaultClassName:t}):r(t,d(l))}return(0,o.useEffect)((()=>{t&&(t.current=a.current)}),[]),s().createElement("div",{ref:a,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return s().createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return s().createElement(L,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))}));M.displayName="ToastContainer",M.defaultProps={position:"top-right",transition:N,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,$=new Map,B=[],P=1;function A(){return""+P++}function D(e){return e&&(c(e.toastId)||l(e.toastId))?e.toastId:A()}function z(e,t){return $.size>0?h.emit(0,e,t):B.push({content:e,options:t}),t.toastId}function F(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function S(e){return(t,n)=>z(t,F(e,n))}function H(e,t){return z(e,F("default",t))}H.loading=(e,t)=>z(e,F("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),H.promise=function(e,t,n){let o,{pending:s,error:a,success:i}=t;s&&(o=c(s)?H.loading(s,n):H.loading(s.render,{...n,...s}));const r={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,s)=>{if(null==t)return void H.dismiss(o);const a={type:e,...r,...n,data:s},i=c(t)?{render:t}:t;return o?H.update(o,{...a,...i}):H(i.render,{...a,...i}),s},d=u(e)?e():e;return d.then((e=>l("success",i,e))).catch((e=>l("error",a,e))),d},H.success=S("success"),H.info=S("info"),H.error=S("error"),H.warning=S("warning"),H.warn=H.warning,H.dark=(e,t)=>z(e,F("default",{theme:"dark",...t})),H.dismiss=e=>{$.size>0?h.emit(1,e):B=B.filter((t=>null!=e&&t.options.toastId!==e))},H.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},H.isActive=e=>{let t=!1;return $.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const o=$.get(n||x);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={...o,...t,toastId:t.toastId||e,updateId:A()};a.toastId!==e&&(a.staleId=e);const i=a.render||s;delete a.render,z(i,a)}}),0)},H.done=e=>{H.update(e,{progress:1})},H.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),H.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},H.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,(e=>{x=e.containerId||e,$.set(x,e),B.forEach((e=>{h.emit(0,e.content,e.options)})),B=[]})).on(3,(e=>{$.delete(e.containerId||e),0===$.size&&h.off(0).off(1).off(5)}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3257.30af681f0c294efb65f7.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3257.30af681f0c294efb65f7.js new file mode 100644 index 0000000000000000000000000000000000000000..e407a5cf47c32e8584a12eccaa7f74b231ad9eea --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3257.30af681f0c294efb65f7.js @@ -0,0 +1,2 @@ +/*! For license information please see 3257.30af681f0c294efb65f7.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3257],{23257:(e,r,t)=>{e.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,t);a.loaded=true;return a.exports}t.m=e;t.c=r;t.p="";return t(0)}([function(e,r,t){e.exports=t(1)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});function n(e){return e&&e.__esModule?e:{default:e}}var a=t(2);var i=n(a);r["default"]=i["default"];e.exports=r["default"]},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=Object.assign||function(e){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;t[n]=e[n]}return t}var u=t(3);var o=t(4);var s=a(o);var f=t(14);var l=t(15);var c=a(l);p.propTypes={activeClassName:s["default"].string,activeIndex:s["default"].number,activeStyle:s["default"].object,autoEscape:s["default"].bool,className:s["default"].string,findChunks:s["default"].func,highlightClassName:s["default"].oneOfType([s["default"].object,s["default"].string]),highlightStyle:s["default"].object,highlightTag:s["default"].oneOfType([s["default"].node,s["default"].func,s["default"].string]),sanitize:s["default"].func,searchWords:s["default"].arrayOf(s["default"].oneOfType([s["default"].string,s["default"].instanceOf(RegExp)])).isRequired,textToHighlight:s["default"].string.isRequired,unhighlightTag:s["default"].oneOfType([s["default"].node,s["default"].func,s["default"].string]),unhighlightClassName:s["default"].string,unhighlightStyle:s["default"].object};function p(e){var r=e.activeClassName;var t=r===undefined?"":r;var a=e.activeIndex;var o=a===undefined?-1:a;var s=e.activeStyle;var l=e.autoEscape;var p=e.caseSensitive;var d=p===undefined?false:p;var v=e.className;var h=e.findChunks;var y=e.highlightClassName;var g=y===undefined?"":y;var m=e.highlightStyle;var b=m===undefined?{}:m;var O=e.highlightTag;var x=O===undefined?"mark":O;var w=e.sanitize;var T=e.searchWords;var E=e.textToHighlight;var j=e.unhighlightTag;var k=j===undefined?"span":j;var N=e.unhighlightClassName;var _=N===undefined?"":N;var S=e.unhighlightStyle;var P=i(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]);var C=(0,u.findAll)({autoEscape:l,caseSensitive:d,findChunks:h,sanitize:w,searchWords:T,textToHighlight:E});var I=x;var R=-1;var A="";var D=undefined;var q=function e(r){var t={};for(var n in r){t[n.toLowerCase()]=r[n]}return t};var L=(0,c["default"])(q);return(0,f.createElement)("span",n({className:v},P,{children:C.map((function(e,r){var n=E.substr(e.start,e.end-e.start);if(e.highlight){R++;var a=undefined;if(typeof g==="object"){if(!d){g=L(g);a=g[n.toLowerCase()]}else{a=g[n]}}else{a=g}var i=R===+o;A=a+" "+(i?t:"");D=i===true&&s!=null?Object.assign({},b,s):b;var u={children:n,className:A,key:r,style:D};if(typeof I!=="string"){u.highlightIndex=R}return(0,f.createElement)(I,u)}else{return(0,f.createElement)(k,{children:n,className:_,key:r,style:S})}}))}))}e.exports=r["default"]},function(e,r){e.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,t);a.loaded=true;return a.exports}t.m=e;t.c=r;t.p="";return t(0)}([function(e,r,t){e.exports=t(1)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=t(2);Object.defineProperty(r,"combineChunks",{enumerable:true,get:function e(){return n.combineChunks}});Object.defineProperty(r,"fillInChunks",{enumerable:true,get:function e(){return n.fillInChunks}});Object.defineProperty(r,"findAll",{enumerable:true,get:function e(){return n.findAll}});Object.defineProperty(r,"findChunks",{enumerable:true,get:function e(){return n.findChunks}})},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:true});var t=r.findAll=function e(r){var t=r.autoEscape,u=r.caseSensitive,o=u===undefined?false:u,s=r.findChunks,f=s===undefined?a:s,l=r.sanitize,c=r.searchWords,p=r.textToHighlight;return i({chunksToHighlight:n({chunks:f({autoEscape:t,caseSensitive:o,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=r.combineChunks=function e(r){var t=r.chunks;t=t.sort((function(e,r){return e.start-r.start})).reduce((function(e,r){if(e.length===0){return[r]}else{var t=e.pop();if(r.start<=t.end){var n=Math.max(t.end,r.end);e.push({start:t.start,end:n})}else{e.push(t,r)}return e}}),[]);return t};var a=function e(r){var t=r.autoEscape,n=r.caseSensitive,a=r.sanitize,i=a===undefined?u:a,s=r.searchWords,f=r.textToHighlight;f=i(f);return s.filter((function(e){return e})).reduce((function(e,r){r=i(r);if(t){r=o(r)}var a=new RegExp(r,n?"g":"gi");var u=void 0;while(u=a.exec(f)){var s=u.index;var l=a.lastIndex;if(l>s){e.push({start:s,end:l})}if(u.index==a.lastIndex){a.lastIndex++}}return e}),[])};r.findChunks=a;var i=r.fillInChunks=function e(r){var t=r.chunksToHighlight,n=r.totalLength;var a=[];var i=function e(r,t,n){if(t-r>0){a.push({start:r,end:t,highlight:n})}};if(t.length===0){i(0,n,false)}else{var u=0;t.forEach((function(e){i(u,e.start,false);i(e.start,e.end,true);u=e.end}));i(u,n,false)}return a};function u(e){return e}function o(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(e,r,t){(function(r){if(r.env.NODE_ENV!=="production"){var n=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var a=function(e){return typeof e==="object"&&e!==null&&e.$$typeof===n};var i=true;e.exports=t(6)(a,i)}else{e.exports=t(13)()}}).call(r,t(5))},function(e,r){var t=e.exports={};var n;var a;function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=i}}catch(e){n=i}try{if(typeof clearTimeout==="function"){a=clearTimeout}else{a=u}}catch(e){a=u}})();function o(e){if(n===setTimeout){return setTimeout(e,0)}if((n===i||!n)&&setTimeout){n=setTimeout;return setTimeout(e,0)}try{return n(e,0)}catch(r){try{return n.call(null,e,0)}catch(r){return n.call(this,e,0)}}}function s(e){if(a===clearTimeout){return clearTimeout(e)}if((a===u||!a)&&clearTimeout){a=clearTimeout;return clearTimeout(e)}try{return a(e)}catch(r){try{return a.call(null,e)}catch(r){return a.call(this,e)}}}var f=[];var l=false;var c;var p=-1;function d(){if(!l||!c){return}l=false;if(c.length){f=c.concat(f)}else{p=-1}if(f.length){v()}}function v(){if(l){return}var e=o(d);l=true;var r=f.length;while(r){c=f;f=[];while(++p1){for(var t=1;t1?t-1:0),a=1;a2?n-2:0),u=2;u1&&arguments[1]!==undefined?arguments[1]:t;var n=void 0;var a=[];var i=void 0;var u=false;var o=function e(t,n){return r(t,a[n])};var s=function r(){for(var t=arguments.length,s=Array(t),f=0;f{"use strict";a.__esModule=true;a["default"]={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"};e.exports=a["default"]},23427:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"};e.exports=a["default"]},74758:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"};e.exports=a["default"]},62817:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"};e.exports=a["default"]},97288:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"};e.exports=a["default"]},54640:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"};e.exports=a["default"]},94698:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"};e.exports=a["default"]},37590:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"};e.exports=a["default"]},6016:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"};e.exports=a["default"]},5299:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"};e.exports=a["default"]},66684:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"};e.exports=a["default"]},84082:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"};e.exports=a["default"]},90811:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"};e.exports=a["default"]},69926:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"};e.exports=a["default"]},11393:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"};e.exports=a["default"]},9359:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"};e.exports=a["default"]},18836:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"};e.exports=a["default"]},98940:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"};e.exports=a["default"]},50204:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"};e.exports=a["default"]},11036:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"};e.exports=a["default"]},88068:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"};e.exports=a["default"]},82782:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"};e.exports=a["default"]},40579:(e,a,r)=>{"use strict";a.__esModule=true;function t(e){return e&&e.__esModule?e["default"]:e}var n=r(8323);a.threezerotwofour=t(n);var s=r(18300);a.apathy=t(s);var o=r(23427);a.ashes=t(o);var i=r(74758);a.atelierDune=t(i);var l=r(62817);a.atelierForest=t(l);var b=r(97288);a.atelierHeath=t(b);var u=r(54640);a.atelierLakeside=t(u);var c=r(94698);a.atelierSeaside=t(c);var f=r(37590);a.bespin=t(f);var h=r(6016);a.brewer=t(h);var d=r(5299);a.bright=t(d);var v=r(66684);a.chalk=t(v);var p=r(84082);a.codeschool=t(p);var g=r(90811);a.colors=t(g);var m=r(69926);a["default"]=t(m);var y=r(11393);a.eighties=t(y);var w=r(9359);a.embers=t(w);var k=r(18836);a.flat=t(k);var O=r(98940);a.google=t(O);var E=r(50204);a.grayscale=t(E);var M=r(11036);a.greenscreen=t(M);var C=r(88068);a.harmonic=t(C);var x=r(82782);a.hopscotch=t(x);var _=r(99464);a.isotope=t(_);var A=r(41769);a.marrakesh=t(A);var j=r(36961);a.mocha=t(j);var D=r(97789);a.monokai=t(D);var F=r(86761);a.ocean=t(F);var B=r(62332);a.paraiso=t(B);var S=r(97828);a.pop=t(S);var N=r(30872);a.railscasts=t(N);var R=r(30275);a.shapeshifter=t(R);var I=r(51028);a.solarized=t(I);var L=r(80474);a.summerfruit=t(L);var T=r(41244);a.tomorrow=t(T);var P=r(21765);a.tube=t(P);var z=r(70475);a.twilight=t(z)},99464:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"};e.exports=a["default"]},41769:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"};e.exports=a["default"]},36961:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"};e.exports=a["default"]},97789:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"};e.exports=a["default"]},86761:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"};e.exports=a["default"]},62332:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"};e.exports=a["default"]},97828:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"};e.exports=a["default"]},30872:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"};e.exports=a["default"]},30275:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"};e.exports=a["default"]},51028:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"};e.exports=a["default"]},80474:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"};e.exports=a["default"]},8323:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"};e.exports=a["default"]},41244:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"};e.exports=a["default"]},21765:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"};e.exports=a["default"]},70475:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"};e.exports=a["default"]},15659:(e,a,r)=>{var t=r(51031);var n={};for(var s in t){if(t.hasOwnProperty(s)){n[t[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in o){if(o.hasOwnProperty(i)){if(!("channels"in o[i])){throw new Error("missing channels property: "+i)}if(!("labels"in o[i])){throw new Error("missing channel labels property: "+i)}if(o[i].labels.length!==o[i].channels){throw new Error("channel and label counts mismatch: "+i)}var l=o[i].channels;var b=o[i].labels;delete o[i].channels;delete o[i].labels;Object.defineProperty(o[i],"channels",{value:l});Object.defineProperty(o[i],"labels",{value:b})}}o.rgb.hsl=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n=Math.min(a,r,t);var s=Math.max(a,r,t);var o=s-n;var i;var l;var b;if(s===n){i=0}else if(a===s){i=(r-t)/o}else if(r===s){i=2+(t-a)/o}else if(t===s){i=4+(a-r)/o}i=Math.min(i*60,360);if(i<0){i+=360}b=(n+s)/2;if(s===n){l=0}else if(b<=.5){l=o/(s+n)}else{l=o/(2-s-n)}return[i,l*100,b*100]};o.rgb.hsv=function(e){var a;var r;var t;var n;var s;var o=e[0]/255;var i=e[1]/255;var l=e[2]/255;var b=Math.max(o,i,l);var u=b-Math.min(o,i,l);var c=function(e){return(b-e)/6/u+1/2};if(u===0){n=s=0}else{s=u/b;a=c(o);r=c(i);t=c(l);if(o===b){n=t-r}else if(i===b){n=1/3+a-t}else if(l===b){n=2/3+r-a}if(n<0){n+=1}else if(n>1){n-=1}}return[n*360,s*100,b*100]};o.rgb.hwb=function(e){var a=e[0];var r=e[1];var t=e[2];var n=o.rgb.hsl(e)[0];var s=1/255*Math.min(a,Math.min(r,t));t=1-1/255*Math.max(a,Math.max(r,t));return[n,s*100,t*100]};o.rgb.cmyk=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n;var s;var o;var i;i=Math.min(1-a,1-r,1-t);n=(1-a-i)/(1-i)||0;s=(1-r-i)/(1-i)||0;o=(1-t-i)/(1-i)||0;return[n*100,s*100,o*100,i*100]};function u(e,a){return Math.pow(e[0]-a[0],2)+Math.pow(e[1]-a[1],2)+Math.pow(e[2]-a[2],2)}o.rgb.keyword=function(e){var a=n[e];if(a){return a}var r=Infinity;var s;for(var o in t){if(t.hasOwnProperty(o)){var i=t[o];var l=u(e,i);if(l.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;var n=a*.4124+r*.3576+t*.1805;var s=a*.2126+r*.7152+t*.0722;var o=a*.0193+r*.1192+t*.9505;return[n*100,s*100,o*100]};o.rgb.lab=function(e){var a=o.rgb.xyz(e);var r=a[0];var t=a[1];var n=a[2];var s;var i;var l;r/=95.047;t/=100;n/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*t-16;i=500*(r-t);l=200*(t-n);return[s,i,l]};o.hsl.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;var n;var s;var o;var i;var l;if(r===0){l=t*255;return[l,l,l]}if(t<.5){s=t*(1+r)}else{s=t+r-t*r}n=2*t-s;i=[0,0,0];for(var b=0;b<3;b++){o=a+1/3*-(b-1);if(o<0){o++}if(o>1){o--}if(6*o<1){l=n+(s-n)*6*o}else if(2*o<1){l=s}else if(3*o<2){l=n+(s-n)*(2/3-o)*6}else{l=n}i[b]=l*255}return i};o.hsl.hsv=function(e){var a=e[0];var r=e[1]/100;var t=e[2]/100;var n=r;var s=Math.max(t,.01);var o;var i;t*=2;r*=t<=1?t:2-t;n*=s<=1?s:2-s;i=(t+r)/2;o=t===0?2*n/(s+n):2*r/(t+r);return[a,o*100,i*100]};o.hsv.rgb=function(e){var a=e[0]/60;var r=e[1]/100;var t=e[2]/100;var n=Math.floor(a)%6;var s=a-Math.floor(a);var o=255*t*(1-r);var i=255*t*(1-r*s);var l=255*t*(1-r*(1-s));t*=255;switch(n){case 0:return[t,l,o];case 1:return[i,t,o];case 2:return[o,t,l];case 3:return[o,i,t];case 4:return[l,o,t];case 5:return[t,o,i]}};o.hsv.hsl=function(e){var a=e[0];var r=e[1]/100;var t=e[2]/100;var n=Math.max(t,.01);var s;var o;var i;i=(2-r)*t;s=(2-r)*n;o=r*n;o/=s<=1?s:2-s;o=o||0;i/=2;return[a,o*100,i*100]};o.hwb.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;var n=r+t;var s;var o;var i;var l;if(n>1){r/=n;t/=n}s=Math.floor(6*a);o=1-t;i=6*a-s;if((s&1)!==0){i=1-i}l=r+i*(o-r);var b;var u;var c;switch(s){default:case 6:case 0:b=o;u=l;c=r;break;case 1:b=l;u=o;c=r;break;case 2:b=r;u=o;c=l;break;case 3:b=r;u=l;c=o;break;case 4:b=l;u=r;c=o;break;case 5:b=o;u=r;c=l;break}return[b*255,u*255,c*255]};o.cmyk.rgb=function(e){var a=e[0]/100;var r=e[1]/100;var t=e[2]/100;var n=e[3]/100;var s;var o;var i;s=1-Math.min(1,a*(1-n)+n);o=1-Math.min(1,r*(1-n)+n);i=1-Math.min(1,t*(1-n)+n);return[s*255,o*255,i*255]};o.xyz.rgb=function(e){var a=e[0]/100;var r=e[1]/100;var t=e[2]/100;var n;var s;var o;n=a*3.2406+r*-1.5372+t*-.4986;s=a*-.9689+r*1.8758+t*.0415;o=a*.0557+r*-.204+t*1.057;n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[n*255,s*255,o*255]};o.xyz.lab=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;a/=95.047;r/=100;t/=108.883;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=116*r-16;s=500*(a-r);o=200*(r-t);return[n,s,o]};o.lab.xyz=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;s=(a+16)/116;n=r/500+s;o=s-t/200;var i=Math.pow(s,3);var l=Math.pow(n,3);var b=Math.pow(o,3);s=i>.008856?i:(s-16/116)/7.787;n=l>.008856?l:(n-16/116)/7.787;o=b>.008856?b:(o-16/116)/7.787;n*=95.047;s*=100;o*=108.883;return[n,s,o]};o.lab.lch=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;n=Math.atan2(t,r);s=n*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+t*t);return[a,o,s]};o.lch.lab=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;o=t/360*2*Math.PI;n=r*Math.cos(o);s=r*Math.sin(o);return[a,n,s]};o.rgb.ansi16=function(e){var a=e[0];var r=e[1];var t=e[2];var n=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];n=Math.round(n/50);if(n===0){return 30}var s=30+(Math.round(t/255)<<2|Math.round(r/255)<<1|Math.round(a/255));if(n===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var a=e[0];var r=e[1];var t=e[2];if(a===r&&r===t){if(a<8){return 16}if(a>248){return 231}return Math.round((a-8)/247*24)+232}var n=16+36*Math.round(a/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5);return n};o.ansi16.rgb=function(e){var a=e%10;if(a===0||a===7){if(e>50){a+=3.5}a=a/10.5*255;return[a,a,a]}var r=(~~(e>50)+1)*.5;var t=(a&1)*r*255;var n=(a>>1&1)*r*255;var s=(a>>2&1)*r*255;return[t,n,s]};o.ansi256.rgb=function(e){if(e>=232){var a=(e-232)*10+8;return[a,a,a]}e-=16;var r;var t=Math.floor(e/36)/5*255;var n=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[t,n,s]};o.rgb.hex=function(e){var a=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=a.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var a=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a){return[0,0,0]}var r=a[0];if(a[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var t=parseInt(r,16);var n=t>>16&255;var s=t>>8&255;var o=t&255;return[n,s,o]};o.rgb.hcg=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n=Math.max(Math.max(a,r),t);var s=Math.min(Math.min(a,r),t);var o=n-s;var i;var l;if(o<1){i=s/(1-o)}else{i=0}if(o<=0){l=0}else if(n===a){l=(r-t)/o%6}else if(n===r){l=2+(t-a)/o}else{l=4+(a-r)/o+4}l/=6;l%=1;return[l*360,o*100,i*100]};o.hsl.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=1;var n=0;if(r<.5){t=2*a*r}else{t=2*a*(1-r)}if(t<1){n=(r-.5*t)/(1-t)}return[e[0],t*100,n*100]};o.hsv.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=a*r;var n=0;if(t<1){n=(r-t)/(1-t)}return[e[0],t*100,n*100]};o.hcg.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;if(r===0){return[t*255,t*255,t*255]}var n=[0,0,0];var s=a%1*6;var o=s%1;var i=1-o;var l=0;switch(Math.floor(s)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=i;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=i;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=i}l=(1-r)*t;return[(r*n[0]+l)*255,(r*n[1]+l)*255,(r*n[2]+l)*255]};o.hcg.hsv=function(e){var a=e[1]/100;var r=e[2]/100;var t=a+r*(1-a);var n=0;if(t>0){n=a/t}return[e[0],n*100,t*100]};o.hcg.hsl=function(e){var a=e[1]/100;var r=e[2]/100;var t=r*(1-a)+.5*a;var n=0;if(t>0&&t<.5){n=a/(2*t)}else if(t>=.5&&t<1){n=a/(2*(1-t))}return[e[0],n*100,t*100]};o.hcg.hwb=function(e){var a=e[1]/100;var r=e[2]/100;var t=a+r*(1-a);return[e[0],(t-a)*100,(1-t)*100]};o.hwb.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=1-r;var n=t-a;var s=0;if(n<1){s=(t-n)/(1-n)}return[e[0],n*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var a=Math.round(e[0]/100*255)&255;var r=(a<<16)+(a<<8)+a;var t=r.toString(16).toUpperCase();return"000000".substring(t.length)+t};o.rgb.gray=function(e){var a=(e[0]+e[1]+e[2])/3;return[a/255*100]}},10734:(e,a,r)=>{var t=r(15659);var n=r(8507);var s={};var o=Object.keys(t);function i(e){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}return e(a)};if("conversion"in e){a.conversion=e.conversion}return a}function l(e){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}var r=e(a);if(typeof r==="object"){for(var t=r.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8507:(e,a,r)=>{var t=r(15659);function n(){var e={};var a=Object.keys(t);for(var r=a.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},28854:(e,a,r)=>{var t=r(8156);var n=r(19872);var s=Object.hasOwnProperty;var o=Object.create(null);for(var i in t){if(s.call(t,i)){o[t[i]]=i}}var l=e.exports={to:{},get:{}};l.get=function(e){var a=e.substring(0,3).toLowerCase();var r;var t;switch(a){case"hsl":r=l.get.hsl(e);t="hsl";break;case"hwb":r=l.get.hwb(e);t="hwb";break;default:r=l.get.rgb(e);t="rgb";break}if(!r){return null}return{model:t,value:r}};l.get.rgb=function(e){if(!e){return null}var a=/^#([a-f0-9]{3,4})$/i;var r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var i=/^(\w+)$/;var l=[0,0,0,1];var u;var c;var f;if(u=e.match(r)){f=u[2];u=u[1];for(c=0;c<3;c++){var h=c*2;l[c]=parseInt(u.slice(h,h+2),16)}if(f){l[3]=parseInt(f,16)/255}}else if(u=e.match(a)){u=u[1];f=u[3];for(c=0;c<3;c++){l[c]=parseInt(u[c]+u[c],16)}if(f){l[3]=parseInt(f+f,16)/255}}else if(u=e.match(n)){for(c=0;c<3;c++){l[c]=parseInt(u[c+1],0)}if(u[4]){if(u[5]){l[3]=parseFloat(u[4])*.01}else{l[3]=parseFloat(u[4])}}}else if(u=e.match(o)){for(c=0;c<3;c++){l[c]=Math.round(parseFloat(u[c+1])*2.55)}if(u[4]){if(u[5]){l[3]=parseFloat(u[4])*.01}else{l[3]=parseFloat(u[4])}}}else if(u=e.match(i)){if(u[1]==="transparent"){return[0,0,0,0]}if(!s.call(t,u[1])){return null}l=t[u[1]];l[3]=1;return l}else{return null}for(c=0;c<3;c++){l[c]=b(l[c],0,255)}l[3]=b(l[3],0,1);return l};l.get.hsl=function(e){if(!e){return null}var a=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var r=e.match(a);if(r){var t=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var s=b(parseFloat(r[2]),0,100);var o=b(parseFloat(r[3]),0,100);var i=b(isNaN(t)?1:t,0,1);return[n,s,o,i]}return null};l.get.hwb=function(e){if(!e){return null}var a=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var r=e.match(a);if(r){var t=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var s=b(parseFloat(r[2]),0,100);var o=b(parseFloat(r[3]),0,100);var i=b(isNaN(t)?1:t,0,1);return[n,s,o,i]}return null};l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(e[3]*255)):"")};l.to.rgb=function(){var e=n(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};l.to.rgb.percent=function(){var e=n(arguments);var a=Math.round(e[0]/255*100);var r=Math.round(e[1]/255*100);var t=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+a+"%, "+r+"%, "+t+"%)":"rgba("+a+"%, "+r+"%, "+t+"%, "+e[3]+")"};l.to.hsl=function(){var e=n(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};l.to.hwb=function(){var e=n(arguments);var a="";if(e.length>=4&&e[3]!==1){a=", "+e[3]}return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+a+")"};l.to.keyword=function(e){return o[e.slice(0,3)]};function b(e,a,r){return Math.min(Math.max(a,e),r)}function u(e){var a=Math.round(e).toString(16).toUpperCase();return a.length<2?"0"+a:a}},2520:(e,a,r)=>{"use strict";var t=r(28854);var n=r(10734);var s=[].slice;var o=["keyword","gray","hex"];var i={};Object.keys(n).forEach((function(e){i[s.call(n[e].labels).sort().join("")]=e}));var l={};function b(e,a){if(!(this instanceof b)){return new b(e,a)}if(a&&a in o){a=null}if(a&&!(a in n)){throw new Error("Unknown model: "+a)}var r;var u;if(e==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(e instanceof b){this.model=e.model;this.color=e.color.slice();this.valpha=e.valpha}else if(typeof e==="string"){var c=t.get(e);if(c===null){throw new Error("Unable to parse color from string: "+e)}this.model=c.model;u=n[this.model].channels;this.color=c.value.slice(0,u);this.valpha=typeof c.value[u]==="number"?c.value[u]:1}else if(e.length){this.model=a||"rgb";u=n[this.model].channels;var f=s.call(e,0,u);this.color=v(f,u);this.valpha=typeof e[u]==="number"?e[u]:1}else if(typeof e==="number"){e&=16777215;this.model="rgb";this.color=[e>>16&255,e>>8&255,e&255];this.valpha=1}else{this.valpha=1;var h=Object.keys(e);if("alpha"in e){h.splice(h.indexOf("alpha"),1);this.valpha=typeof e.alpha==="number"?e.alpha:0}var d=h.sort().join("");if(!(d in i)){throw new Error("Unable to parse color from object: "+JSON.stringify(e))}this.model=i[d];var p=n[this.model].labels;var g=[];for(r=0;rr){return(a+.05)/(r+.05)}return(r+.05)/(a+.05)},level:function(e){var a=this.contrast(e);if(a>=7.1){return"AAA"}return a>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;var a=(e[0]*299+e[1]*587+e[2]*114)/1e3;return a<128},isLight:function(){return!this.isDark()},negate:function(){var e=this.rgb();for(var a=0;a<3;a++){e.color[a]=255-e.color[a]}return e},lighten:function(e){var a=this.hsl();a.color[2]+=a.color[2]*e;return a},darken:function(e){var a=this.hsl();a.color[2]-=a.color[2]*e;return a},saturate:function(e){var a=this.hsl();a.color[1]+=a.color[1]*e;return a},desaturate:function(e){var a=this.hsl();a.color[1]-=a.color[1]*e;return a},whiten:function(e){var a=this.hwb();a.color[1]+=a.color[1]*e;return a},blacken:function(e){var a=this.hwb();a.color[2]+=a.color[2]*e;return a},grayscale:function(){var e=this.rgb().color;var a=e[0]*.3+e[1]*.59+e[2]*.11;return b.rgb(a,a,a)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var a=this.hsl();var r=a.color[0];r=(r+e)%360;r=r<0?360+r:r;a.color[0]=r;return a},mix:function(e,a){if(!e||!e.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e)}var r=e.rgb();var t=this.rgb();var n=a===undefined?.5:a;var s=2*n-1;var o=r.alpha()-t.alpha();var i=((s*o===-1?s:(s+o)/(1+s*o))+1)/2;var l=1-i;return b.rgb(i*r.red()+l*t.red(),i*r.green()+l*t.green(),i*r.blue()+l*t.blue(),r.alpha()*n+t.alpha()*(1-n))}};Object.keys(n).forEach((function(e){if(o.indexOf(e)!==-1){return}var a=n[e].channels;b.prototype[e]=function(){if(this.model===e){return new b(this)}if(arguments.length){return new b(arguments,e)}var r=typeof arguments[a]==="number"?a:this.valpha;return new b(d(n[this.model][e].raw(this.color)).concat(r),e)};b[e]=function(r){if(typeof r==="number"){r=v(s.call(arguments),a)}return new b(r,e)}}));function u(e,a){return Number(e.toFixed(a))}function c(e){return function(a){return u(a,e)}}function f(e,a,r){e=Array.isArray(e)?e:[e];e.forEach((function(e){(l[e]||(l[e]=[]))[a]=r}));e=e[0];return function(t){var n;if(arguments.length){if(r){t=r(t)}n=this[e]();n.color[a]=t;return n}n=this[e]().color[a];if(r){n=r(n)}return n}}function h(e){return function(a){return Math.max(0,Math.min(e,a))}}function d(e){return Array.isArray(e)?e:[e]}function v(e,a){for(var r=0;r{e.exports=function e(a){if(!a||typeof a==="string"){return false}return a instanceof Array||Array.isArray(a)||a.length>=0&&(a.splice instanceof Function||Object.getOwnPropertyDescriptor(a,a.length-1)&&a.constructor.name!=="String")}},60357:(e,a,r)=>{var t="Expected a function";var n="__lodash_placeholder__";var s=1,o=2,i=4,l=8,b=16,u=32,c=64,f=128,h=256,d=512;var v=1/0,p=9007199254740991,g=17976931348623157e292,m=0/0;var y=[["ary",f],["bind",s],["bindKey",o],["curry",l],["curryRight",b],["flip",d],["partial",u],["partialRight",c],["rearg",h]];var w="[object Function]",k="[object GeneratorFunction]",O="[object Symbol]";var E=/[\\^$.*+?()[\]{}|]/g;var M=/^\s+|\s+$/g;var C=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x=/\{\n\/\* \[wrapped with (.+)\] \*/,_=/,? & /;var A=/^[-+]0x[0-9a-f]+$/i;var j=/^0b[01]+$/i;var D=/^\[object .+?Constructor\]$/;var F=/^0o[0-7]+$/i;var B=/^(?:0|[1-9]\d*)$/;var S=parseInt;var N=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var R=typeof self=="object"&&self&&self.Object===Object&&self;var I=N||R||Function("return this")();function L(e,a,r){switch(r.length){case 0:return e.call(a);case 1:return e.call(a,r[0]);case 2:return e.call(a,r[0],r[1]);case 3:return e.call(a,r[0],r[1],r[2])}return e.apply(a,r)}function T(e,a){var r=-1,t=e?e.length:0;while(++r-1}function z(e,a,r,t){var n=e.length,s=r+(t?1:-1);while(t?s--:++s2?e:undefined}();function se(e){return je(e)?ae(e):{}}function oe(e){if(!je(e)||Oe(e)){return false}var a=Ae(e)||W(e)?ee:D;return a.test(Ce(e))}function ie(e,a,r,t){var n=-1,s=e.length,o=r.length,i=-1,l=a.length,b=re(s-o,0),u=Array(l+b),c=!t;while(++i1){o.reverse()}if(p&&h1?"& ":"")+a[t];a=a.join(r>2?", ":" ");return e.replace(C,"{\n/* [wrapped with "+a+"] */\n")}function ke(e,a){a=a==null?p:a;return!!a&&(typeof e=="number"||B.test(e))&&(e>-1&&e%1==0&&e{"use strict";r.r(a);r.d(a,{JSONTree:()=>de});var t=r(44914);var n=r.n(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a3&&arguments[3]!==undefined?arguments[3]:0;let n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:Infinity;let s;if(e==="Object"){let e=Object.getOwnPropertyNames(a);if(r){e.sort(r===true?undefined:r)}e=e.slice(t,n+1);s={entries:e.map((e=>({key:e,value:a[e]})))}}else if(e==="Array"){s={entries:a.slice(t,n+1).map(((e,a)=>({key:a+t,value:e})))}}else{let e=0;const r=[];let o=true;const i=b(a);for(const s of a){if(e>n){o=false;break}if(t<=e){if(i&&Array.isArray(s)){if(typeof s[0]==="string"||typeof s[0]==="number"){r.push({key:s[0],value:s[1]})}else{r.push({key:`[entry ${e}]`,value:{"[key]":s[0],"[value]":s[1]}})}}else{r.push({key:e,value:s})}}e++}s={hasMore:!o,entries:r}}return s}function c(e,a,r){const t=[];while(a-e>r*r){r=r*r}for(let n=e;n<=a;n+=r){t.push({from:n,to:Math.min(a,n+r-1)})}return t}function f(e,a,r,t){let n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;let s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:Infinity;const o=u.bind(null,e,a,r);if(!t){return o().entries}const i=s{c(!u)}),[u]);return u?n().createElement("div",a("itemRange",u),l(e,r,o)):n().createElement("div",s({},a("itemRange",u),{onClick:f}),n().createElement(i,{nodeType:b,styling:a,expanded:false,onClick:f,arrowStyle:"double"}),`${r} ... ${o}`)}function d(e){return e.to!==undefined}function v(e,a,r){const{nodeType:t,data:o,collectionLimit:i,circularCache:l,keyPath:b,postprocessValue:u,sortObjectKeys:c}=e;const p=[];f(t,o,c,i,a,r).forEach((a=>{if(d(a)){p.push(n().createElement(h,s({},e,{key:`ItemRange--${a.from}-${a.to}`,from:a.from,to:a.to,renderChildNodes:v})))}else{const{key:r,value:t}=a;const o=l.indexOf(t)!==-1;p.push(n().createElement(M,s({},e,{postprocessValue:u,collectionLimit:i,key:`Node--${r}`,keyPath:[r,...b],value:u(t),circularCache:[...l,t],isCircular:o,hideRoot:false})))}}));return p}function p(e){const{circularCache:a=[],collectionLimit:r,createItemString:o,data:l,expandable:b,getItemString:u,hideRoot:c,isCircular:f,keyPath:h,labelRenderer:d,level:p=0,nodeType:g,nodeTypeIndicator:m,shouldExpandNodeInitially:y,styling:w}=e;const[k,O]=(0,t.useState)(f?false:y(h,l,p));const E=(0,t.useCallback)((()=>{if(b)O(!k)}),[b,k]);const M=k||c&&p===0?v({...e,circularCache:a,level:p+1}):null;const C=n().createElement("span",w("nestedNodeItemType",k),m);const x=u(g,l,C,o(l,r),h);const _=[h,g,k,b];return c?n().createElement("li",w("rootNode",..._),n().createElement("ul",w("rootNodeChildren",..._),M)):n().createElement("li",w("nestedNode",..._),b&&n().createElement(i,{styling:w,nodeType:g,expanded:k,onClick:E}),n().createElement("label",s({},w(["label","nestedNodeLabel"],..._),{onClick:E}),d(..._)),n().createElement("span",s({},w("nestedNodeItemString",..._),{onClick:E}),x),n().createElement("ul",w("nestedNodeChildren",..._),M))}function g(e){const a=Object.getOwnPropertyNames(e).length;return`${a} ${a!==1?"keys":"key"}`}function m(e){let{data:a,...r}=e;return n().createElement(p,s({},r,{data:a,nodeType:"Object",nodeTypeIndicator:r.nodeType==="Error"?"Error()":"{}",createItemString:g,expandable:Object.getOwnPropertyNames(a).length>0}))}function y(e){return`${e.length} ${e.length!==1?"items":"item"}`}function w(e){let{data:a,...r}=e;return n().createElement(p,s({},r,{data:a,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:y,expandable:a.length>0}))}function k(e,a){let r=0;let t=false;if(Number.isSafeInteger(e.size)){r=e.size}else{for(const n of e){if(a&&r+1>a){t=true;break}r+=1}}return`${t?">":""}${r} ${r!==1?"entries":"entry"}`}function O(e){return n().createElement(p,s({},e,{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:k,expandable:true}))}function E(e){let{nodeType:a,styling:r,labelRenderer:t,keyPath:s,valueRenderer:o,value:i,valueGetter:l=e=>e}=e;return n().createElement("li",r("value",a,s),n().createElement("label",r(["label","valueLabel"],a,s),t(s,a,false,false)),n().createElement("span",r("valueText",a,s),o(l(i),i,...s)))}function M(e){let{getItemString:a,keyPath:r,labelRenderer:t,styling:i,value:l,valueRenderer:b,isCustomNode:u,...c}=e;const f=u(l)?"Custom":o(l);const h={getItemString:a,key:r[0],keyPath:r,labelRenderer:t,nodeType:f,styling:i,value:l,valueRenderer:b};const d={...c,...h,data:l,isCustomNode:u};switch(f){case"Object":case"Error":case"WeakMap":case"WeakSet":return n().createElement(m,d);case"Array":return n().createElement(w,d);case"Iterable":case"Map":case"Set":return n().createElement(O,d);case"String":return n().createElement(E,s({},h,{valueGetter:e=>`"${e}"`}));case"Number":return n().createElement(E,h);case"Boolean":return n().createElement(E,s({},h,{valueGetter:e=>e?"true":"false"}));case"Date":return n().createElement(E,s({},h,{valueGetter:e=>e.toISOString()}));case"Null":return n().createElement(E,s({},h,{valueGetter:()=>"null"}));case"Undefined":return n().createElement(E,s({},h,{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return n().createElement(E,s({},h,{valueGetter:e=>e.toString()}));case"Custom":return n().createElement(E,h);default:return n().createElement(E,s({},h,{valueGetter:()=>`<${f}>`}))}}function C(e){"@babel/helpers - typeof";return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e,a){if("object"!=C(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,a||"default");if("object"!=C(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}function _(e){var a=x(e,"string");return"symbol"==C(a)?a:a+""}function A(e,a,r){return(a=_(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function j(e){if(Array.isArray(e))return e}function D(e,a){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,n,s,o,i=[],l=!0,b=!1;try{if(s=(r=r.call(e)).next,0===a){if(Object(r)!==r)return;l=!1}else for(;!(l=(t=s.call(r)).done)&&(i.push(t.value),i.length!==a);l=!0);}catch(e){b=!0,n=e}finally{try{if(!l&&null!=r["return"]&&(o=r["return"](),Object(o)!==o))return}finally{if(b)throw n}}return i}}function F(e,a){(null==a||a>e.length)&&(a=e.length);for(var r=0,t=Array(a);r1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s2?t-2:0),s=2;s1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var t=a.defaultBase16,n=t===void 0?G:t,s=a.base16Themes,o=s===void 0?null:s;var i=ae(r,o);if(i){r=q(q({},i),r)}var l=W.reduce((function(e,a){return e[a]=r[a]||n[a],e}),{});var b=Object.keys(r).reduce((function(e,a){return W.indexOf(a)===-1?(e[a]=r[a],e):e}),{});var u=e(l);var c=X(b,u);for(var f=arguments.length,h=new Array(f>3?f-3:0),d=3;d({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03});const se=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR});const oe=e=>{const a=ne(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:a.BACKGROUND_COLOR},value:(e,a,r)=>{let{style:t}=e;return{style:{...t,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:r.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}},label:{display:"inline-block",color:a.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:(e,r)=>{let{style:t}=e;return{style:{...t,color:se(a)[r]}}},itemRange:(e,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:a.LABEL_COLOR}}),arrow:(e,a,r)=>{let{style:t}=e;return{style:{...t,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",transform:r?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}},arrowContainer:(e,a)=>{let{style:r}=e;return{style:{...r,display:"inline-block",paddingRight:"0.5em",paddingLeft:a==="double"?"1em":0,cursor:"pointer"}}},arrowSign:{color:a.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:(e,a,r,t,n)=>{let{style:s}=e;return{style:{...s,position:"relative",paddingTop:"0.25em",marginLeft:a.length>1?"0.875em":0,paddingLeft:!n?"1.125em":0}}},rootNode:{padding:0,margin:0},nestedNodeLabel:(e,a,r,t,n)=>{let{style:s}=e;return{style:{...s,margin:0,padding:0,WebkitUserSelect:n?"inherit":"text",MozUserSelect:n?"inherit":"text",cursor:n?"pointer":"default"}}},nestedNodeItemString:(e,r,t,n)=>{let{style:s}=e;return{style:{...s,paddingLeft:"0.5em",cursor:"default",color:n?a.ITEM_STRING_EXPANDED_COLOR:a.ITEM_STRING_COLOR}}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(e,a,r)=>{let{style:t}=e;return{style:{...t,padding:0,margin:0,listStyle:"none",display:r?"block":"none"}}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}};const ie=Q(oe,{defaultBase16:te});const le=ie;const be=e=>e;const ue=(e,a,r)=>r===0;const ce=(e,a,r,t)=>n().createElement("span",null,r," ",t);const fe=e=>{let[a]=e;return n().createElement("span",null,a,":")};const he=()=>false;function de(e){let{data:a,theme:r,invertTheme:s,keyPath:o=["root"],labelRenderer:i=fe,valueRenderer:l=be,shouldExpandNodeInitially:b=ue,hideRoot:u=false,getItemString:c=ce,postprocessValue:f=be,isCustomNode:h=he,collectionLimit:d=50,sortObjectKeys:v=false}=e;const p=(0,t.useMemo)((()=>le(s?re(r):r)),[r,s]);return n().createElement("ul",p("tree"),n().createElement(M,{keyPath:u?[]:o,value:f(a),isCustomNode:h,styling:p,labelRenderer:i,valueRenderer:l,shouldExpandNodeInitially:b,hideRoot:u,getItemString:c,postprocessValue:f,collectionLimit:d,sortObjectKeys:v}))}},19872:(e,a,r)=>{"use strict";var t=r(26195);var n=Array.prototype.concat;var s=Array.prototype.slice;var o=e.exports=function e(a){var r=[];for(var o=0,i=a.length;o{n.r(t);n.d(t,{crystal:()=>Z});function r(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function a(e,t,n){n.tokenize.push(e);return e(t,n)}var u=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/;var i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/;var f=/^(?:\[\][?=]?)/;var s=/^(?:\.(?:\.{2})?|->|[?:])/;var c=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;var o=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;var l=r(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]);var m=r(["true","false","nil","self"]);var p=["def","fun","macro","class","module","struct","lib","enum","union","do","for"];var h=r(p);var k=["if","unless","case","while","until","begin","then"];var d=r(k);var F=["end","else","elsif","rescue","ensure"];var _=r(F);var v=["\\)","\\}","\\]"];var z=new RegExp("^(?:"+v.join("|")+")$");var b={def:S,fun:S,macro:I,class:A,module:A,struct:A,lib:A,enum:A,union:A};var g={"[":"]","{":"}","(":")","<":">"};function w(e,t){if(e.eatSpace()){return null}if(t.lastToken!="\\"&&e.match("{%",false)){return a(x("%","%"),e,t)}if(t.lastToken!="\\"&&e.match("{{",false)){return a(x("{","}"),e,t)}if(e.peek()=="#"){e.skipToEnd();return"comment"}var n;if(e.match(c)){e.eat(/[?!]/);n=e.current();if(e.eat(":")){return"atom"}else if(t.lastToken=="."){return"property"}else if(l.test(n)){if(h.test(n)){if(!(n=="fun"&&t.blocks.indexOf("lib")>=0)&&!(n=="def"&&t.lastToken=="abstract")){t.blocks.push(n);t.currentIndent+=1}}else if((t.lastStyle=="operator"||!t.lastStyle)&&d.test(n)){t.blocks.push(n);t.currentIndent+=1}else if(n=="end"){t.blocks.pop();t.currentIndent-=1}if(b.hasOwnProperty(n)){t.tokenize.push(b[n])}return"keyword"}else if(m.test(n)){return"atom"}return"variable"}if(e.eat("@")){if(e.peek()=="["){return a(y("[","]","meta"),e,t)}e.eat("@");e.match(c)||e.match(o);return"propertyName"}if(e.match(o)){return"tag"}if(e.eat(":")){if(e.eat('"')){return a(E('"',"atom",false),e,t)}else if(e.match(c)||e.match(o)||e.match(u)||e.match(i)||e.match(f)){return"atom"}e.eat(":");return"operator"}if(e.eat('"')){return a(E('"',"string",true),e,t)}if(e.peek()=="%"){var r="string";var p=true;var k;if(e.match("%r")){r="string.special";k=e.next()}else if(e.match("%w")){p=false;k=e.next()}else if(e.match("%q")){p=false;k=e.next()}else{if(k=e.match(/^%([^\w\s=])/)){k=k[1]}else if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)){return"meta"}else if(e.eat("%")){return"operator"}}if(g.hasOwnProperty(k)){k=g[k]}return a(E(k,r,p),e,t)}if(n=e.match(/^<<-('?)([A-Z]\w*)\1/)){return a(T(n[2],!n[1]),e,t)}if(e.eat("'")){e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/);e.eat("'");return"atom"}if(e.eat("0")){if(e.eat("x")){e.match(/^[0-9a-fA-F_]+/)}else if(e.eat("o")){e.match(/^[0-7_]+/)}else if(e.eat("b")){e.match(/^[01_]+/)}return"number"}if(e.eat(/^\d/)){e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/);return"number"}if(e.match(u)){e.eat("=");return"operator"}if(e.match(i)||e.match(s)){return"operator"}if(n=e.match(/[({[]/,false)){n=n[0];return a(y(n,g[n],null),e,t)}if(e.eat("\\")){e.next();return"meta"}e.next();return null}function y(e,t,n,r){return function(a,u){if(!r&&a.match(e)){u.tokenize[u.tokenize.length-1]=y(e,t,n,true);u.currentIndent+=1;return n}var i=w(a,u);if(a.current()===t){u.tokenize.pop();u.currentIndent-=1;i=n}return i}}function x(e,t,n){return function(r,a){if(!n&&r.match("{"+e)){a.currentIndent+=1;a.tokenize[a.tokenize.length-1]=x(e,t,true);return"meta"}if(r.match(t+"}")){a.currentIndent-=1;a.tokenize.pop();return"meta"}return w(r,a)}}function I(e,t){if(e.eatSpace()){return null}var n;if(n=e.match(c)){if(n=="def"){return"keyword"}e.eat(/[?!]/)}t.tokenize.pop();return"def"}function S(e,t){if(e.eatSpace()){return null}if(e.match(c)){e.eat(/[!?]/)}else{e.match(u)||e.match(i)||e.match(f)}t.tokenize.pop();return"def"}function A(e,t){if(e.eatSpace()){return null}e.match(o);t.tokenize.pop();return"def"}function E(e,t,n){return function(r,a){var u=false;while(r.peek()){if(!u){if(r.match("{%",false)){a.tokenize.push(x("%","%"));return t}if(r.match("{{",false)){a.tokenize.push(x("{","}"));return t}if(n&&r.match("#{",false)){a.tokenize.push(y("#{","}","meta"));return t}var i=r.next();if(i==e){a.tokenize.pop();return t}u=n&&i=="\\"}else{r.next();u=false}}return t}}function T(e,t){return function(n,r){if(n.sol()){n.eatSpace();if(n.match(e)){r.tokenize.pop();return"string"}}var a=false;while(n.peek()){if(!a){if(n.match("{%",false)){r.tokenize.push(x("%","%"));return"string"}if(n.match("{{",false)){r.tokenize.push(x("{","}"));return"string"}if(t&&n.match("#{",false)){r.tokenize.push(y("#{","}","meta"));return"string"}a=n.next()=="\\"&&t}else{n.next();a=false}}return"string"}}const Z={name:"crystal",startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);var r=e.current();if(n&&n!="comment"){t.lastToken=r;t.lastStyle=n}return n},indent:function(e,t,n){t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,"");if(_.test(t)||z.test(t)){return n.unit*(e.currentIndent-1)}return n.unit*e.currentIndent},languageData:{indentOnInput:r(v.concat(F),true),commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/355254db9ca10a09a3b5.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/355254db9ca10a09a3b5.woff new file mode 100644 index 0000000000000000000000000000000000000000..36cb2b681173303141b985a183b7decee64a3aca Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/355254db9ca10a09a3b5.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3616.a4271ffcf2ac3b4c2338.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3616.a4271ffcf2ac3b4c2338.js new file mode 100644 index 0000000000000000000000000000000000000000..b395909abe61f26d5dd77867a8dbbda791d13320 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3616.a4271ffcf2ac3b4c2338.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3616],{33616:e=>{!function(t,r){true?e.exports=r():0}(self,(()=>(()=>{"use strict";var e={};return(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;const r=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue("height")),n=Math.max(0,parseInt(i.getPropertyValue("width"))),a=window.getComputedStyle(this._terminal.element),l=s-(parseInt(a.getPropertyValue("padding-top"))+parseInt(a.getPropertyValue("padding-bottom"))),o=n-(parseInt(a.getPropertyValue("padding-right"))+parseInt(a.getPropertyValue("padding-left")))-r;return{cols:Math.max(2,Math.floor(o/t.css.cell.width)),rows:Math.max(1,Math.floor(l/t.css.cell.height))}}}})(),e})()))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3763.56191df5d72d2ffa5aa6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3763.56191df5d72d2ffa5aa6.js new file mode 100644 index 0000000000000000000000000000000000000000..782f9ae9d45c4aec35a29a4967e66f5cf2fd548f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3763.56191df5d72d2ffa5aa6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3763],{73763:s=>{s.exports=JSON.parse('{"name":"mermaid","version":"11.6.0","description":"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.","type":"module","module":"./dist/mermaid.core.mjs","types":"./dist/mermaid.d.ts","exports":{".":{"types":"./dist/mermaid.d.ts","import":"./dist/mermaid.core.mjs","default":"./dist/mermaid.core.mjs"},"./*":"./*"},"keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],"repository":{"type":"git","url":"https://github.com/mermaid-js/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@types/d3":"^7.4.3","cytoscape":"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0","d3":"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11","dayjs":"^1.11.13","dompurify":"^3.2.4","katex":"^0.16.9","khroma":"^2.1.0","lodash-es":"^4.17.21","marked":"^15.0.7","roughjs":"^4.6.6","stylis":"^4.3.6","ts-dedent":"^2.2.0","uuid":"^11.1.0","@mermaid-js/parser":"^0.4.0"},"devDependencies":{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0","ajv":"^8.17.1","chokidar":"^4.0.3","concurrently":"^9.1.2","csstree-validator":"^4.0.1","globby":"^14.0.2","jison":"^0.4.18","js-base64":"^3.7.7","jsdom":"^26.0.0","json-schema-to-typescript":"^15.0.4","micromatch":"^4.0.8","path-browserify":"^1.0.1","prettier":"^3.5.2","remark":"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1","rimraf":"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0","typedoc":"^0.27.8","typedoc-plugin-markdown":"^4.4.2","typescript":"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0","vitepress":"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},"files":["dist/","README.md"],"publishConfig":{"access":"public"},"scripts":{"clean":"rimraf dist","dev":"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":"pnpm docs:pre:vitepress && concurrently \\"pnpm --filter ./src/vitepress dev\\" \\"tsx scripts/docs.cli.mts --watch --vitepress\\"","docs:dev:docker":"pnpm docs:pre:vitepress && concurrently \\"pnpm --filter ./src/vitepress dev:docker\\" \\"tsx scripts/docs.cli.mts --watch --vitepress\\"","docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":"cspell \\"src/docs/**/*.md\\"","docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify","checkCircle":"npx madge --circular ./src"}}')}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3780.c9294dc98ae926717741.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3780.c9294dc98ae926717741.js new file mode 100644 index 0000000000000000000000000000000000000000..5e211a62faccaff334933df39e9ac44ef0b82b6a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3780.c9294dc98ae926717741.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3780],{23780:(e,t,a)=>{a.r(t);a.d(t,{spreadsheet:()=>r});const r={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(!e)return;if(t.stack.length===0){if(e.peek()=='"'||e.peek()=="'"){t.stringType=e.peek();e.next();t.stack.unshift("string")}}switch(t.stack[0]){case"string":while(t.stack[0]==="string"&&!e.eol()){if(e.peek()===t.stringType){e.next();t.stack.shift()}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return"string";case"characterClass":while(t.stack[0]==="characterClass"&&!e.eol()){if(!(e.match(/^[^\]\\]+/)||e.match(/^\\./)))t.stack.shift()}return"operator"}var a=e.peek();switch(a){case"[":e.next();t.stack.unshift("characterClass");return"bracket";case":":e.next();return"operator";case"\\":if(e.match(/\\[a-z]+/))return"string.special";else{e.next();return"atom"}case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":e.next();return"atom";case"$":e.next();return"builtin"}if(e.match(/\d+/)){if(e.match(/^\w+/))return"error";return"number"}else if(e.match(/^[a-zA-Z_]\w*/)){if(e.match(/(?=[\(.])/,false))return"keyword";return"variable"}else if(["[","]","(",")","{","}"].indexOf(a)!=-1){e.next();return"bracket"}else if(!e.eatSpace()){e.next()}return null}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3799.eaa0438bc5c41bad0516.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3799.eaa0438bc5c41bad0516.js new file mode 100644 index 0000000000000000000000000000000000000000..e2ec9b0425c1fe104c9c00d11ca62ccf9e584381 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3799.eaa0438bc5c41bad0516.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3799,5606],{56180:(e,t,i)=>{var s=i(65606);!function(t,i){true?e.exports=i():0}(self,(()=>(()=>{"use strict";var e={965:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyphRenderer=void 0;const s=i(374),r=i(509),o=i(855),n=i(859),a=i(381),h=11,l=h*Float32Array.BYTES_PER_ELEMENT;let c,d=0,_=0,u=0;class g extends n.Disposable{constructor(e,t,i,o){super(),this._terminal=e,this._gl=t,this._dimensions=i,this._optionsService=o,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const h=this._gl;void 0===r.TextureAtlas.maxAtlasPages&&(r.TextureAtlas.maxAtlasPages=Math.min(32,(0,s.throwIfFalsy)(h.getParameter(h.MAX_TEXTURE_IMAGE_UNITS))),r.TextureAtlas.maxTextureSize=(0,s.throwIfFalsy)(h.getParameter(h.MAX_TEXTURE_SIZE))),this._program=(0,s.throwIfFalsy)((0,a.createProgram)(h,"#version 300 es\nlayout (location = 0) in vec2 a_unitquad;\nlayout (location = 1) in vec2 a_cellpos;\nlayout (location = 2) in vec2 a_offset;\nlayout (location = 3) in vec2 a_size;\nlayout (location = 4) in float a_texpage;\nlayout (location = 5) in vec2 a_texcoord;\nlayout (location = 6) in vec2 a_texsize;\n\nuniform mat4 u_projection;\nuniform vec2 u_resolution;\n\nout vec2 v_texcoord;\nflat out int v_texpage;\n\nvoid main() {\n vec2 zeroToOne = (a_offset / u_resolution) + a_cellpos + (a_unitquad * a_size);\n gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);\n v_texpage = int(a_texpage);\n v_texcoord = a_texcoord + a_unitquad * a_texsize;\n}",function(e){let t="";for(let i=1;ih.deleteProgram(this._program)))),this._projectionLocation=(0,s.throwIfFalsy)(h.getUniformLocation(this._program,"u_projection")),this._resolutionLocation=(0,s.throwIfFalsy)(h.getUniformLocation(this._program,"u_resolution")),this._textureLocation=(0,s.throwIfFalsy)(h.getUniformLocation(this._program,"u_texture")),this._vertexArrayObject=h.createVertexArray(),h.bindVertexArray(this._vertexArrayObject);const c=new Float32Array([0,0,1,0,0,1,1,1]),d=h.createBuffer();this.register((0,n.toDisposable)((()=>h.deleteBuffer(d)))),h.bindBuffer(h.ARRAY_BUFFER,d),h.bufferData(h.ARRAY_BUFFER,c,h.STATIC_DRAW),h.enableVertexAttribArray(0),h.vertexAttribPointer(0,2,this._gl.FLOAT,!1,0,0);const _=new Uint8Array([0,1,2,3]),u=h.createBuffer();this.register((0,n.toDisposable)((()=>h.deleteBuffer(u)))),h.bindBuffer(h.ELEMENT_ARRAY_BUFFER,u),h.bufferData(h.ELEMENT_ARRAY_BUFFER,_,h.STATIC_DRAW),this._attributesBuffer=(0,s.throwIfFalsy)(h.createBuffer()),this.register((0,n.toDisposable)((()=>h.deleteBuffer(this._attributesBuffer)))),h.bindBuffer(h.ARRAY_BUFFER,this._attributesBuffer),h.enableVertexAttribArray(2),h.vertexAttribPointer(2,2,h.FLOAT,!1,l,0),h.vertexAttribDivisor(2,1),h.enableVertexAttribArray(3),h.vertexAttribPointer(3,2,h.FLOAT,!1,l,2*Float32Array.BYTES_PER_ELEMENT),h.vertexAttribDivisor(3,1),h.enableVertexAttribArray(4),h.vertexAttribPointer(4,1,h.FLOAT,!1,l,4*Float32Array.BYTES_PER_ELEMENT),h.vertexAttribDivisor(4,1),h.enableVertexAttribArray(5),h.vertexAttribPointer(5,2,h.FLOAT,!1,l,5*Float32Array.BYTES_PER_ELEMENT),h.vertexAttribDivisor(5,1),h.enableVertexAttribArray(6),h.vertexAttribPointer(6,2,h.FLOAT,!1,l,7*Float32Array.BYTES_PER_ELEMENT),h.vertexAttribDivisor(6,1),h.enableVertexAttribArray(1),h.vertexAttribPointer(1,2,h.FLOAT,!1,l,9*Float32Array.BYTES_PER_ELEMENT),h.vertexAttribDivisor(1,1),h.useProgram(this._program);const g=new Int32Array(r.TextureAtlas.maxAtlasPages);for(let s=0;sh.deleteTexture(e.texture)))),h.activeTexture(h.TEXTURE0+l),h.bindTexture(h.TEXTURE_2D,e.texture),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE),h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,1,1,0,h.RGBA,h.UNSIGNED_BYTE,new Uint8Array([255,0,0,255])),this._atlasTextures[l]=e}h.enable(h.BLEND),h.blendFunc(h.SRC_ALPHA,h.ONE_MINUS_SRC_ALPHA),this.handleResize()}beginFrame(){return!this._atlas||this._atlas.beginFrame()}updateCell(e,t,i,s,r,o,n,a,h){this._updateCell(this._vertices.attributes,e,t,i,s,r,o,n,a,h)}_updateCell(e,t,i,r,n,a,l,g,v,f){d=(i*this._terminal.cols+t)*h,r!==o.NULL_CELL_CODE&&void 0!==r?this._atlas&&(c=g&&g.length>1?this._atlas.getRasterizedGlyphCombinedChar(g,n,a,l,!1):this._atlas.getRasterizedGlyph(r,n,a,l,!1),_=Math.floor((this._dimensions.device.cell.width-this._dimensions.device.char.width)/2),n!==f&&c.offset.x>_?(u=c.offset.x-_,e[d]=-(c.offset.x-u)+this._dimensions.device.char.left,e[d+1]=-c.offset.y+this._dimensions.device.char.top,e[d+2]=(c.size.x-u)/this._dimensions.device.canvas.width,e[d+3]=c.size.y/this._dimensions.device.canvas.height,e[d+4]=c.texturePage,e[d+5]=c.texturePositionClipSpace.x+u/this._atlas.pages[c.texturePage].canvas.width,e[d+6]=c.texturePositionClipSpace.y,e[d+7]=c.sizeClipSpace.x-u/this._atlas.pages[c.texturePage].canvas.width,e[d+8]=c.sizeClipSpace.y):(e[d]=-c.offset.x+this._dimensions.device.char.left,e[d+1]=-c.offset.y+this._dimensions.device.char.top,e[d+2]=c.size.x/this._dimensions.device.canvas.width,e[d+3]=c.size.y/this._dimensions.device.canvas.height,e[d+4]=c.texturePage,e[d+5]=c.texturePositionClipSpace.x,e[d+6]=c.texturePositionClipSpace.y,e[d+7]=c.sizeClipSpace.x,e[d+8]=c.sizeClipSpace.y),this._optionsService.rawOptions.rescaleOverlappingGlyphs&&(0,s.allowRescaling)(r,v,c.size.x,this._dimensions.device.cell.width)&&(e[d+2]=(this._dimensions.device.cell.width-1)/this._dimensions.device.canvas.width)):e.fill(0,d,d+h-1-2)}clear(){const e=this._terminal,t=e.cols*e.rows*h;this._vertices.count!==t?this._vertices.attributes=new Float32Array(t):this._vertices.attributes.fill(0);let i=0;for(;i{Object.defineProperty(t,"__esModule",{value:!0}),t.RectangleRenderer=void 0;const s=i(374),r=i(859),o=i(310),n=i(381),a=8*Float32Array.BYTES_PER_ELEMENT;class h{constructor(){this.attributes=new Float32Array(160),this.count=0}}let l=0,c=0,d=0,_=0,u=0,g=0,v=0;class f extends r.Disposable{constructor(e,t,i,o){super(),this._terminal=e,this._gl=t,this._dimensions=i,this._themeService=o,this._vertices=new h,this._verticesCursor=new h;const l=this._gl;this._program=(0,s.throwIfFalsy)((0,n.createProgram)(l,"#version 300 es\nlayout (location = 0) in vec2 a_position;\nlayout (location = 1) in vec2 a_size;\nlayout (location = 2) in vec4 a_color;\nlayout (location = 3) in vec2 a_unitquad;\n\nuniform mat4 u_projection;\n\nout vec4 v_color;\n\nvoid main() {\n vec2 zeroToOne = a_position + (a_unitquad * a_size);\n gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);\n v_color = a_color;\n}","#version 300 es\nprecision lowp float;\n\nin vec4 v_color;\n\nout vec4 outColor;\n\nvoid main() {\n outColor = v_color;\n}")),this.register((0,r.toDisposable)((()=>l.deleteProgram(this._program)))),this._projectionLocation=(0,s.throwIfFalsy)(l.getUniformLocation(this._program,"u_projection")),this._vertexArrayObject=l.createVertexArray(),l.bindVertexArray(this._vertexArrayObject);const c=new Float32Array([0,0,1,0,0,1,1,1]),d=l.createBuffer();this.register((0,r.toDisposable)((()=>l.deleteBuffer(d)))),l.bindBuffer(l.ARRAY_BUFFER,d),l.bufferData(l.ARRAY_BUFFER,c,l.STATIC_DRAW),l.enableVertexAttribArray(3),l.vertexAttribPointer(3,2,this._gl.FLOAT,!1,0,0);const _=new Uint8Array([0,1,2,3]),u=l.createBuffer();this.register((0,r.toDisposable)((()=>l.deleteBuffer(u)))),l.bindBuffer(l.ELEMENT_ARRAY_BUFFER,u),l.bufferData(l.ELEMENT_ARRAY_BUFFER,_,l.STATIC_DRAW),this._attributesBuffer=(0,s.throwIfFalsy)(l.createBuffer()),this.register((0,r.toDisposable)((()=>l.deleteBuffer(this._attributesBuffer)))),l.bindBuffer(l.ARRAY_BUFFER,this._attributesBuffer),l.enableVertexAttribArray(0),l.vertexAttribPointer(0,2,l.FLOAT,!1,a,0),l.vertexAttribDivisor(0,1),l.enableVertexAttribArray(1),l.vertexAttribPointer(1,2,l.FLOAT,!1,a,2*Float32Array.BYTES_PER_ELEMENT),l.vertexAttribDivisor(1,1),l.enableVertexAttribArray(2),l.vertexAttribPointer(2,4,l.FLOAT,!1,a,4*Float32Array.BYTES_PER_ELEMENT),l.vertexAttribDivisor(2,1),this._updateCachedColors(o.colors),this.register(this._themeService.onChangeColors((e=>{this._updateCachedColors(e),this._updateViewportRectangle()})))}renderBackgrounds(){this._renderVertices(this._vertices)}renderCursor(){this._renderVertices(this._verticesCursor)}_renderVertices(e){const t=this._gl;t.useProgram(this._program),t.bindVertexArray(this._vertexArrayObject),t.uniformMatrix4fv(this._projectionLocation,!1,n.PROJECTION_MATRIX),t.bindBuffer(t.ARRAY_BUFFER,this._attributesBuffer),t.bufferData(t.ARRAY_BUFFER,e.attributes,t.DYNAMIC_DRAW),t.drawElementsInstanced(this._gl.TRIANGLE_STRIP,4,t.UNSIGNED_BYTE,0,e.count)}handleResize(){this._updateViewportRectangle()}setDimensions(e){this._dimensions=e}_updateCachedColors(e){this._bgFloat=this._colorToFloat32Array(e.background),this._cursorFloat=this._colorToFloat32Array(e.cursor)}_updateViewportRectangle(){this._addRectangleFloat(this._vertices.attributes,0,0,0,this._terminal.cols*this._dimensions.device.cell.width,this._terminal.rows*this._dimensions.device.cell.height,this._bgFloat)}updateBackgrounds(e){const t=this._terminal,i=this._vertices;let s,r,n,a,h,l,c,d,_,u,g,v=1;for(s=0;s>24&255)/255,u=(l>>16&255)/255,g=(l>>8&255)/255,v=1,this._addRectangle(e.attributes,t,c,d,(o-r)*this._dimensions.device.cell.width,this._dimensions.device.cell.height,_,u,g,v)}_addRectangle(e,t,i,s,r,o,n,a,h,l){e[t]=i/this._dimensions.device.canvas.width,e[t+1]=s/this._dimensions.device.canvas.height,e[t+2]=r/this._dimensions.device.canvas.width,e[t+3]=o/this._dimensions.device.canvas.height,e[t+4]=n,e[t+5]=a,e[t+6]=h,e[t+7]=l}_addRectangleFloat(e,t,i,s,r,o,n){e[t]=i/this._dimensions.device.canvas.width,e[t+1]=s/this._dimensions.device.canvas.height,e[t+2]=r/this._dimensions.device.canvas.width,e[t+3]=o/this._dimensions.device.canvas.height,e[t+4]=n[0],e[t+5]=n[1],e[t+6]=n[2],e[t+7]=n[3]}_colorToFloat32Array(e){return new Float32Array([(e.rgba>>24&255)/255,(e.rgba>>16&255)/255,(e.rgba>>8&255)/255,(255&e.rgba)/255])}}t.RectangleRenderer=f},310:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderModel=t.COMBINED_CHAR_BIT_MASK=t.RENDER_MODEL_EXT_OFFSET=t.RENDER_MODEL_FG_OFFSET=t.RENDER_MODEL_BG_OFFSET=t.RENDER_MODEL_INDICIES_PER_CELL=void 0;const s=i(296);t.RENDER_MODEL_INDICIES_PER_CELL=4,t.RENDER_MODEL_BG_OFFSET=1,t.RENDER_MODEL_FG_OFFSET=2,t.RENDER_MODEL_EXT_OFFSET=3,t.COMBINED_CHAR_BIT_MASK=2147483648,t.RenderModel=class{constructor(){this.cells=new Uint32Array(0),this.lineLengths=new Uint32Array(0),this.selection=(0,s.createSelectionRenderModel)()}resize(e,i){const s=e*i*t.RENDER_MODEL_INDICIES_PER_CELL;s!==this.cells.length&&(this.cells=new Uint32Array(s),this.lineLengths=new Uint32Array(i))}clear(){this.cells.fill(0,0),this.lineLengths.fill(0,0)}}},666:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JoinedCellData=t.WebglRenderer=void 0;const s=i(820),r=i(274),o=i(627),n=i(457),a=i(56),h=i(374),l=i(345),c=i(859),d=i(147),_=i(782),u=i(855),g=i(965),v=i(742),f=i(310),p=i(733);class C extends c.Disposable{constructor(e,t,i,n,d,u,g,v,C){super(),this._terminal=e,this._characterJoinerService=t,this._charSizeService=i,this._coreBrowserService=n,this._coreService=d,this._decorationService=u,this._optionsService=g,this._themeService=v,this._cursorBlinkStateManager=new c.MutableDisposable,this._charAtlasDisposable=this.register(new c.MutableDisposable),this._observerDisposable=this.register(new c.MutableDisposable),this._model=new f.RenderModel,this._workCell=new _.CellData,this._workCell2=new _.CellData,this._rectangleRenderer=this.register(new c.MutableDisposable),this._glyphRenderer=this.register(new c.MutableDisposable),this._onChangeTextureAtlas=this.register(new l.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new l.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this.register(new l.EventEmitter),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onRequestRedraw=this.register(new l.EventEmitter),this.onRequestRedraw=this._onRequestRedraw.event,this._onContextLoss=this.register(new l.EventEmitter),this.onContextLoss=this._onContextLoss.event,this.register(this._themeService.onChangeColors((()=>this._handleColorChange()))),this._cellColorResolver=new r.CellColorResolver(this._terminal,this._optionsService,this._model.selection,this._decorationService,this._coreBrowserService,this._themeService),this._core=this._terminal._core,this._renderLayers=[new p.LinkRenderLayer(this._core.screenElement,2,this._terminal,this._core.linkifier,this._coreBrowserService,g,this._themeService)],this.dimensions=(0,h.createRenderDimensions)(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this._updateCursorBlink(),this.register(g.onOptionChange((()=>this._handleOptionsChanged()))),this._canvas=this._coreBrowserService.mainDocument.createElement("canvas");const m={antialias:!1,depth:!1,preserveDrawingBuffer:C};if(this._gl=this._canvas.getContext("webgl2",m),!this._gl)throw new Error("WebGL2 not supported "+this._gl);this.register((0,s.addDisposableDomListener)(this._canvas,"webglcontextlost",(e=>{console.log("webglcontextlost event received"),e.preventDefault(),this._contextRestorationTimeout=setTimeout((()=>{this._contextRestorationTimeout=void 0,console.warn("webgl context not restored; firing onContextLoss"),this._onContextLoss.fire(e)}),3e3)}))),this.register((0,s.addDisposableDomListener)(this._canvas,"webglcontextrestored",(e=>{console.warn("webglcontextrestored event received"),clearTimeout(this._contextRestorationTimeout),this._contextRestorationTimeout=void 0,(0,o.removeTerminalFromCache)(this._terminal),this._initializeWebGLState(),this._requestRedrawViewport()}))),this._observerDisposable.value=(0,a.observeDevicePixelDimensions)(this._canvas,this._coreBrowserService.window,((e,t)=>this._setCanvasDevicePixelDimensions(e,t))),this.register(this._coreBrowserService.onWindowChange((e=>{this._observerDisposable.value=(0,a.observeDevicePixelDimensions)(this._canvas,e,((e,t)=>this._setCanvasDevicePixelDimensions(e,t)))}))),this._core.screenElement.appendChild(this._canvas),[this._rectangleRenderer.value,this._glyphRenderer.value]=this._initializeWebGLState(),this._isAttached=this._coreBrowserService.window.document.body.contains(this._core.screenElement),this.register((0,c.toDisposable)((()=>{for(const e of this._renderLayers)e.dispose();this._canvas.parentElement?.removeChild(this._canvas),(0,o.removeTerminalFromCache)(this._terminal)})))}get textureAtlas(){return this._charAtlas?.pages[0].canvas}_handleColorChange(){this._refreshCharAtlas(),this._clearModel(!0)}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._terminal.cols,this._terminal.rows))}handleResize(e,t){this._updateDimensions(),this._model.resize(this._terminal.cols,this._terminal.rows);for(const i of this._renderLayers)i.resize(this._terminal,this.dimensions);this._canvas.width=this.dimensions.device.canvas.width,this._canvas.height=this.dimensions.device.canvas.height,this._canvas.style.width=`${this.dimensions.css.canvas.width}px`,this._canvas.style.height=`${this.dimensions.css.canvas.height}px`,this._core.screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._core.screenElement.style.height=`${this.dimensions.css.canvas.height}px`,this._rectangleRenderer.value?.setDimensions(this.dimensions),this._rectangleRenderer.value?.handleResize(),this._glyphRenderer.value?.setDimensions(this.dimensions),this._glyphRenderer.value?.handleResize(),this._refreshCharAtlas(),this._clearModel(!1)}handleCharSizeChanged(){this.handleResize(this._terminal.cols,this._terminal.rows)}handleBlur(){for(const e of this._renderLayers)e.handleBlur(this._terminal);this._cursorBlinkStateManager.value?.pause(),this._requestRedrawViewport()}handleFocus(){for(const e of this._renderLayers)e.handleFocus(this._terminal);this._cursorBlinkStateManager.value?.resume(),this._requestRedrawViewport()}handleSelectionChanged(e,t,i){for(const s of this._renderLayers)s.handleSelectionChanged(this._terminal,e,t,i);this._model.selection.update(this._core,e,t,i),this._requestRedrawViewport()}handleCursorMove(){for(const e of this._renderLayers)e.handleCursorMove(this._terminal);this._cursorBlinkStateManager.value?.restartBlinkAnimation()}_handleOptionsChanged(){this._updateDimensions(),this._refreshCharAtlas(),this._updateCursorBlink()}_initializeWebGLState(){return this._rectangleRenderer.value=new v.RectangleRenderer(this._terminal,this._gl,this.dimensions,this._themeService),this._glyphRenderer.value=new g.GlyphRenderer(this._terminal,this._gl,this.dimensions,this._optionsService),this.handleCharSizeChanged(),[this._rectangleRenderer.value,this._glyphRenderer.value]}_refreshCharAtlas(){if(this.dimensions.device.char.width<=0&&this.dimensions.device.char.height<=0)return void(this._isAttached=!1);const e=(0,o.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,this._themeService.colors,this.dimensions.device.cell.width,this.dimensions.device.cell.height,this.dimensions.device.char.width,this.dimensions.device.char.height,this._coreBrowserService.dpr);this._charAtlas!==e&&(this._onChangeTextureAtlas.fire(e.pages[0].canvas),this._charAtlasDisposable.value=(0,c.getDisposeArrayDisposable)([(0,l.forwardEvent)(e.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),(0,l.forwardEvent)(e.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas)])),this._charAtlas=e,this._charAtlas.warmUp(),this._glyphRenderer.value?.setAtlas(this._charAtlas)}_clearModel(e){this._model.clear(),e&&this._glyphRenderer.value?.clear()}clearTextureAtlas(){this._charAtlas?.clearTexture(),this._clearModel(!0),this._requestRedrawViewport()}clear(){this._clearModel(!0);for(const e of this._renderLayers)e.reset(this._terminal);this._cursorBlinkStateManager.value?.restartBlinkAnimation(),this._updateCursorBlink()}registerCharacterJoiner(e){return-1}deregisterCharacterJoiner(e){return!1}renderRows(e,t){if(!this._isAttached){if(!(this._coreBrowserService.window.document.body.contains(this._core.screenElement)&&this._charSizeService.width&&this._charSizeService.height))return;this._updateDimensions(),this._refreshCharAtlas(),this._isAttached=!0}for(const i of this._renderLayers)i.handleGridChanged(this._terminal,e,t);this._glyphRenderer.value&&this._rectangleRenderer.value&&(this._glyphRenderer.value.beginFrame()?(this._clearModel(!0),this._updateModel(0,this._terminal.rows-1)):this._updateModel(e,t),this._rectangleRenderer.value.renderBackgrounds(),this._glyphRenderer.value.render(this._model),this._cursorBlinkStateManager.value&&!this._cursorBlinkStateManager.value.isCursorVisible||this._rectangleRenderer.value.renderCursor())}_updateCursorBlink(){this._terminal.options.cursorBlink?this._cursorBlinkStateManager.value=new n.CursorBlinkStateManager((()=>{this._requestRedrawCursor()}),this._coreBrowserService):this._cursorBlinkStateManager.clear(),this._requestRedrawCursor()}_updateModel(e,t){const i=this._core;let s,r,o,n,a,h,l,c,d,_,g,v,p,C,x=this._workCell;e=L(e,i.rows-1,0),t=L(t,i.rows-1,0);const w=this._terminal.buffer.active.baseY+this._terminal.buffer.active.cursorY,b=w-i.buffer.ydisp,M=Math.min(this._terminal.buffer.active.cursorX,i.cols-1);let R=-1;const y=this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden&&(!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isCursorVisible);this._model.cursor=void 0;let A=!1;for(r=e;r<=t;r++)for(o=r+i.buffer.ydisp,n=i.buffer.lines.get(o),this._model.lineLengths[r]=0,a=this._characterJoinerService.getJoinedCharacters(o),p=0;p0&&p===a[0][0]&&(h=!0,c=a.shift(),x=new m(x,n.translateToString(!0,c[0],c[1]),c[1]-c[0]),l=c[1]-1),d=x.getChars(),_=x.getCode(),v=(r*i.cols+p)*f.RENDER_MODEL_INDICIES_PER_CELL,this._cellColorResolver.resolve(x,p,o,this.dimensions.device.cell.width),y&&o===w&&(p===M&&(this._model.cursor={x:M,y:b,width:x.getWidth(),style:this._coreBrowserService.isFocused?i.options.cursorStyle||"block":i.options.cursorInactiveStyle,cursorWidth:i.options.cursorWidth,dpr:this._devicePixelRatio},R=M+x.getWidth()-1),p>=M&&p<=R&&(this._coreBrowserService.isFocused&&"block"===(i.options.cursorStyle||"block")||!1===this._coreBrowserService.isFocused&&"block"===i.options.cursorInactiveStyle)&&(this._cellColorResolver.result.fg=50331648|this._themeService.colors.cursorAccent.rgba>>8&16777215,this._cellColorResolver.result.bg=50331648|this._themeService.colors.cursor.rgba>>8&16777215)),_!==u.NULL_CELL_CODE&&(this._model.lineLengths[r]=p+1),(this._model.cells[v]!==_||this._model.cells[v+f.RENDER_MODEL_BG_OFFSET]!==this._cellColorResolver.result.bg||this._model.cells[v+f.RENDER_MODEL_FG_OFFSET]!==this._cellColorResolver.result.fg||this._model.cells[v+f.RENDER_MODEL_EXT_OFFSET]!==this._cellColorResolver.result.ext)&&(A=!0,d.length>1&&(_|=f.COMBINED_CHAR_BIT_MASK),this._model.cells[v]=_,this._model.cells[v+f.RENDER_MODEL_BG_OFFSET]=this._cellColorResolver.result.bg,this._model.cells[v+f.RENDER_MODEL_FG_OFFSET]=this._cellColorResolver.result.fg,this._model.cells[v+f.RENDER_MODEL_EXT_OFFSET]=this._cellColorResolver.result.ext,g=x.getWidth(),this._glyphRenderer.value.updateCell(p,r,_,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,d,g,s),h))for(x=this._workCell,p++;p{Object.defineProperty(t,"__esModule",{value:!0}),t.GLTexture=t.expandFloat32Array=t.createShader=t.createProgram=t.PROJECTION_MATRIX=void 0;const s=i(374);function r(e,t,i){const r=(0,s.throwIfFalsy)(e.createShader(t));if(e.shaderSource(r,i),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;console.error(e.getShaderInfoLog(r)),e.deleteShader(r)}t.PROJECTION_MATRIX=new Float32Array([2,0,0,0,0,-2,0,0,0,0,1,0,-1,1,0,1]),t.createProgram=function(e,t,i){const o=(0,s.throwIfFalsy)(e.createProgram());if(e.attachShader(o,(0,s.throwIfFalsy)(r(e,e.VERTEX_SHADER,t))),e.attachShader(o,(0,s.throwIfFalsy)(r(e,e.FRAGMENT_SHADER,i))),e.linkProgram(o),e.getProgramParameter(o,e.LINK_STATUS))return o;console.error(e.getProgramInfoLog(o)),e.deleteProgram(o)},t.createShader=r,t.expandFloat32Array=function(e,t){const i=Math.min(2*e.length,t),s=new Float32Array(i);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;const s=i(627),r=i(237),o=i(374),n=i(859);class a extends n.Disposable{constructor(e,t,i,s,r,o,a,h){super(),this._container=t,this._alpha=r,this._coreBrowserService=o,this._optionsService=a,this._themeService=h,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add(`xterm-${i}-layer`),this._canvas.style.zIndex=s.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this.register(this._themeService.onChangeColors((t=>{this._refreshCharAtlas(e,t),this.reset(e)}))),this.register((0,n.toDisposable)((()=>{this._canvas.remove()})))}_initCanvas(){this._ctx=(0,o.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(e){}handleFocus(e){}handleCursorMove(e){}handleGridChanged(e,t,i){}handleSelectionChanged(e,t,i,s=!1){}_setTransparency(e,t){if(t===this._alpha)return;const i=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(e,this._themeService.colors),this.handleGridChanged(e,0,e.rows-1)}_refreshCharAtlas(e,t){this._deviceCharWidth<=0&&this._deviceCharHeight<=0||(this._charAtlas=(0,s.acquireTextureAtlas)(e,this._optionsService.rawOptions,t,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlas.warmUp())}resize(e,t){this._deviceCellWidth=t.device.cell.width,this._deviceCellHeight=t.device.cell.height,this._deviceCharWidth=t.device.char.width,this._deviceCharHeight=t.device.char.height,this._deviceCharLeft=t.device.char.left,this._deviceCharTop=t.device.char.top,this._canvas.width=t.device.canvas.width,this._canvas.height=t.device.canvas.height,this._canvas.style.width=`${t.css.canvas.width}px`,this._canvas.style.height=`${t.css.canvas.height}px`,this._alpha||this._clearAll(),this._refreshCharAtlas(e,this._themeService.colors)}_fillBottomLineAtCells(e,t,i=1){this._ctx.fillRect(e*this._deviceCellWidth,(t+1)*this._deviceCellHeight-this._coreBrowserService.dpr-1,i*this._deviceCellWidth,this._coreBrowserService.dpr)}_clearAll(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))}_clearCells(e,t,i,s){this._alpha?this._ctx.clearRect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,s*this._deviceCellHeight):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,s*this._deviceCellHeight))}_fillCharTrueColor(e,t,i,s){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline=r.TEXT_BASELINE,this._clipCell(i,s,t.getWidth()),this._ctx.fillText(t.getChars(),i*this._deviceCellWidth+this._deviceCharLeft,s*this._deviceCellHeight+this._deviceCharTop+this._deviceCharHeight)}_clipCell(e,t,i){this._ctx.beginPath(),this._ctx.rect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(e,t,i){return`${i?"italic":""} ${t?e.options.fontWeightBold:e.options.fontWeight} ${e.options.fontSize*this._coreBrowserService.dpr}px ${e.options.fontFamily}`}}t.BaseRenderLayer=a},733:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;const s=i(197),r=i(237),o=i(592);class n extends o.BaseRenderLayer{constructor(e,t,i,s,r,o,n){super(i,e,"link",t,!0,r,o,n),this.register(s.onShowLinkUnderline((e=>this._handleShowLinkUnderline(e)))),this.register(s.onHideLinkUnderline((e=>this._handleHideLinkUnderline(e))))}resize(e,t){super.resize(e,t),this._state=void 0}reset(e){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);const e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_handleShowLinkUnderline(e){if(e.fg===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._themeService.colors.background.css:void 0!==e.fg&&(0,s.is256Color)(e.fg)?this._ctx.fillStyle=this._themeService.colors.ansi[e.fg].css:this._ctx.fillStyle=this._themeService.colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(let t=e.y1+1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},274:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellColorResolver=void 0;const s=i(855),r=i(160),o=i(374);let n,a=0,h=0,l=!1,c=!1,d=!1,_=0;t.CellColorResolver=class{constructor(e,t,i,s,r,o){this._terminal=e,this._optionService=t,this._selectionRenderModel=i,this._decorationService=s,this._coreBrowserService=r,this._themeService=o,this.result={fg:0,bg:0,ext:0}}resolve(e,t,i,u){if(this.result.bg=e.bg,this.result.fg=e.fg,this.result.ext=268435456&e.bg?e.extended.ext:0,h=0,a=0,c=!1,l=!1,d=!1,n=this._themeService.colors,_=0,e.getCode()!==s.NULL_CELL_CODE&&4===e.extended.underlineStyle){const e=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));_=t*u%(2*Math.round(e))}if(this._decorationService.forEachDecorationAtCell(t,i,"bottom",(e=>{e.backgroundColorRGB&&(h=e.backgroundColorRGB.rgba>>8&16777215,c=!0),e.foregroundColorRGB&&(a=e.foregroundColorRGB.rgba>>8&16777215,l=!0)})),d=this._selectionRenderModel.isCellSelected(this._terminal,t,i),d){if(67108864&this.result.fg||0!=(50331648&this.result.bg)){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:h=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:h=(16777215&this.result.fg)<<8|255;break;default:h=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:h=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:h=(16777215&this.result.bg)<<8|255}h=r.rgba.blend(h,4294967040&(this._coreBrowserService.isFocused?n.selectionBackgroundOpaque:n.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else h=(this._coreBrowserService.isFocused?n.selectionBackgroundOpaque:n.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(c=!0,n.selectionForeground&&(a=n.selectionForeground.rgba>>8&16777215,l=!0),(0,o.treatGlyphAsBackgroundColor)(e.getCode())){if(67108864&this.result.fg&&0==(50331648&this.result.bg))a=(this._coreBrowserService.isFocused?n.selectionBackgroundOpaque:n.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:a=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:a=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:a=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:a=(16777215&this.result.fg)<<8|255;break;default:a=this._themeService.colors.foreground.rgba}a=r.rgba.blend(a,4294967040&(this._coreBrowserService.isFocused?n.selectionBackgroundOpaque:n.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}l=!0}}this._decorationService.forEachDecorationAtCell(t,i,"top",(e=>{e.backgroundColorRGB&&(h=e.backgroundColorRGB.rgba>>8&16777215,c=!0),e.foregroundColorRGB&&(a=e.foregroundColorRGB.rgba>>8&16777215,l=!0)})),c&&(h=d?-16777216&e.bg&-134217729|h|50331648:-16777216&e.bg|h|50331648),l&&(a=-16777216&e.fg&-67108865|a|50331648),67108864&this.result.fg&&(c&&!l&&(a=0==(50331648&this.result.bg)?-134217728&this.result.fg|16777215&n.background.rgba>>8|50331648:-134217728&this.result.fg|67108863&this.result.bg,l=!0),!c&&l&&(h=0==(50331648&this.result.fg)?-67108864&this.result.bg|16777215&n.foreground.rgba>>8|50331648:-67108864&this.result.bg|67108863&this.result.fg,c=!0)),n=void 0,this.result.bg=c?h:this.result.bg,this.result.fg=l?a:this.result.fg,this.result.ext&=536870911,this.result.ext|=_<<29&3758096384}}},627:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireTextureAtlas=void 0;const s=i(509),r=i(197),o=[];t.acquireTextureAtlas=function(e,t,i,n,a,h,l,c){const d=(0,r.generateConfig)(n,a,h,l,t,i,c);for(let s=0;s=0){if((0,r.configEquals)(t.config,d))return t.atlas;1===t.ownedBy.length?(t.atlas.dispose(),o.splice(s,1)):t.ownedBy.splice(i,1);break}}for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;const s=i(160);t.generateConfig=function(e,t,i,r,o,n,a){const h={foreground:n.foreground,background:n.background,cursor:s.NULL_COLOR,cursorAccent:s.NULL_COLOR,selectionForeground:s.NULL_COLOR,selectionBackgroundTransparent:s.NULL_COLOR,selectionBackgroundOpaque:s.NULL_COLOR,selectionInactiveBackgroundTransparent:s.NULL_COLOR,selectionInactiveBackgroundOpaque:s.NULL_COLOR,ansi:n.ansi.slice(),contrastCache:n.contrastCache,halfContrastCache:n.halfContrastCache};return{customGlyphs:o.customGlyphs,devicePixelRatio:a,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,deviceCellWidth:e,deviceCellHeight:t,deviceCharWidth:i,deviceCharHeight:r,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontWeightBold:o.fontWeightBold,allowTransparency:o.allowTransparency,drawBoldTextInBrightColors:o.drawBoldTextInBrightColors,minimumContrastRatio:o.minimumContrastRatio,colors:h}},t.configEquals=function(e,t){for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(399);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},457:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorBlinkStateManager=void 0;t.CursorBlinkStateManager=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(e=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,e>0)return void this._restartInterval(e)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(e)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),e)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;const s=i(374);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const r={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"║":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╒":{1:(e,t)=>`M.5,1 L.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╓":{1:(e,t)=>`M${.5-e},1 L${.5-e},.5 L1,.5 M${.5+e},.5 L${.5+e},1`},"╔":{1:(e,t)=>`M1,${.5-t} L${.5-e},${.5-t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╕":{1:(e,t)=>`M0,${.5-t} L.5,${.5-t} L.5,1 M0,${.5+t} L.5,${.5+t}`},"╖":{1:(e,t)=>`M${.5+e},1 L${.5+e},.5 L0,.5 M${.5-e},.5 L${.5-e},1`},"╗":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5+e},${.5-t} L${.5+e},1`},"╘":{1:(e,t)=>`M.5,0 L.5,${.5+t} L1,${.5+t} M.5,${.5-t} L1,${.5-t}`},"╙":{1:(e,t)=>`M1,.5 L${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╚":{1:(e,t)=>`M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0 M1,${.5+t} L${.5-e},${.5+t} L${.5-e},0`},"╛":{1:(e,t)=>`M0,${.5+t} L.5,${.5+t} L.5,0 M0,${.5-t} L.5,${.5-t}`},"╜":{1:(e,t)=>`M0,.5 L${.5+e},.5 L${.5+e},0 M${.5-e},.5 L${.5-e},0`},"╝":{1:(e,t)=>`M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M0,${.5+t} L${.5+e},${.5+t} L${.5+e},0`},"╞":{1:(e,t)=>`M.5,0 L.5,1 M.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╟":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1 M${.5+e},.5 L1,.5`},"╠":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╡":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L.5,${.5-t} M0,${.5+t} L.5,${.5+t}`},"╢":{1:(e,t)=>`M0,.5 L${.5-e},.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╣":{1:(e,t)=>`M${.5+e},0 L${.5+e},1 M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0`},"╤":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t} M.5,${.5+t} L.5,1`},"╥":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},1 M${.5+e},.5 L${.5+e},1`},"╦":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╧":{1:(e,t)=>`M.5,0 L.5,${.5-t} M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╨":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╩":{1:(e,t)=>`M0,${.5+t} L1,${.5+t} M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╪":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╫":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╬":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,1,.5`},"╮":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,0,.5`},"╯":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,0,.5`},"╰":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,1,.5`}},t.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.tryDrawCustomChar=function(e,i,n,l,c,d,_,u){const g=t.blockElementDefinitions[i];if(g)return function(e,t,i,s,r,o){for(let n=0;n7&&parseInt(l.slice(7,9),16)||1;else{if(!l.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${l}" when drawing pattern glyph`);[d,_,u,g]=l.substring(5,l.length-1).split(",").map((e=>parseFloat(e)))}for(let e=0;ee.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]),L:(e,t)=>e.lineTo(t[0],t[1]),M:(e,t)=>e.moveTo(t[0],t[1])};function h(e,t,i,s,r,o,a,h=0,l=0){const c=e.map((e=>parseFloat(e)||parseInt(e)));if(c.length<2)throw new Error("Too few arguments for instruction");for(let d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.observeDevicePixelDimensions=void 0;const s=i(859);t.observeDevicePixelDimensions=function(e,t,i){let r=new t.ResizeObserver((t=>{const s=t.find((t=>t.target===e));if(!s)return;if(!("devicePixelContentBoxSize"in s))return r?.disconnect(),void(r=void 0);const o=s.devicePixelContentBoxSize[0].inlineSize,n=s.devicePixelContentBoxSize[0].blockSize;o>0&&n>0&&i(o,n)}));try{r.observe(e,{box:["device-pixel-content-box"]})}catch{r.disconnect(),r=void 0}return(0,s.toDisposable)((()=>r?.disconnect()))}},374:(e,t)=>{function i(e){return 57508<=e&&e<=57558}function s(e){return e>=128512&&e<=128591||e>=127744&&e<=128511||e>=128640&&e<=128767||e>=9728&&e<=9983||e>=9984&&e<=10175||e>=65024&&e<=65039||e>=129280&&e<=129535||e>=127462&&e<=127487}Object.defineProperty(t,"__esModule",{value:!0}),t.computeNextVariantOffset=t.createRenderDimensions=t.treatGlyphAsBackgroundColor=t.allowRescaling=t.isEmoji=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.isEmoji=s,t.allowRescaling=function(e,t,r,o){return 1===t&&r>Math.ceil(1.5*o)&&void 0!==e&&e>255&&!s(e)&&!i(e)&&!function(e){return 57344<=e&&e<=63743}(e)},t.treatGlyphAsBackgroundColor=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},t.computeNextVariantOffset=function(e,t,i=0){return(e-(2*Math.round(t)-i))%(2*Math.round(t))}},296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class i{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,i,s=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1])return void this.clear();const r=e.buffers.active.ydisp,o=t[1]-r,n=i[1]-r,a=Math.max(o,0),h=Math.min(n,e.rows-1);a>=e.rows||h<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=s,this.viewportStartRow=o,this.viewportEndRow=n,this.viewportCappedStartRow=a,this.viewportCappedEndRow=h,this.startCol=t[0],this.endCol=i[0])}isCellSelected(e,t,i){return!!this.hasSelection&&(i-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&i>=this.viewportCappedStartRow&&t=this.viewportCappedStartRow&&t>=this.endCol&&i<=this.viewportCappedEndRow:i>this.viewportStartRow&&i=this.startCol&&t=this.startCol)}}t.createSelectionRenderModel=function(){return new i}},509:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextureAtlas=void 0;const s=i(237),r=i(860),o=i(374),n=i(160),a=i(345),h=i(485),l=i(385),c=i(147),d=i(855),_={texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},offset:{x:0,y:0},size:{x:0,y:0},sizeClipSpace:{x:0,y:0}};let u;class g{get pages(){return this._pages}constructor(e,t,i){this._document=e,this._config=t,this._unicodeService=i,this._didWarmUp=!1,this._cacheMap=new h.FourKeyMap,this._cacheMapCombined=new h.FourKeyMap,this._pages=[],this._activePages=[],this._workBoundingBox={top:0,left:0,bottom:0,right:0},this._workAttributeData=new c.AttributeData,this._textureSize=512,this._onAddTextureAtlasCanvas=new a.EventEmitter,this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=new a.EventEmitter,this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._requestClearModel=!1,this._createNewPage(),this._tmpCanvas=p(e,4*this._config.deviceCellWidth+4,this._config.deviceCellHeight+4),this._tmpCtx=(0,o.throwIfFalsy)(this._tmpCanvas.getContext("2d",{alpha:this._config.allowTransparency,willReadFrequently:!0}))}dispose(){for(const e of this.pages)e.canvas.remove();this._onAddTextureAtlasCanvas.dispose()}warmUp(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)}_doWarmUp(){const e=new l.IdleTaskQueue;for(let t=33;t<126;t++)e.enqueue((()=>{if(!this._cacheMap.get(t,d.DEFAULT_COLOR,d.DEFAULT_COLOR,d.DEFAULT_EXT)){const e=this._drawToCache(t,d.DEFAULT_COLOR,d.DEFAULT_COLOR,d.DEFAULT_EXT);this._cacheMap.set(t,d.DEFAULT_COLOR,d.DEFAULT_COLOR,d.DEFAULT_EXT,e)}}))}beginFrame(){return this._requestClearModel}clearTexture(){if(0!==this._pages[0].currentRow.x||0!==this._pages[0].currentRow.y){for(const e of this._pages)e.clear();this._cacheMap.clear(),this._cacheMapCombined.clear(),this._didWarmUp=!1}}_createNewPage(){if(g.maxAtlasPages&&this._pages.length>=Math.max(4,g.maxAtlasPages)){const e=this._pages.filter((e=>2*e.canvas.width<=(g.maxTextureSize||4096))).sort(((e,t)=>t.canvas.width!==e.canvas.width?t.canvas.width-e.canvas.width:t.percentageUsed-e.percentageUsed));let t=-1,i=0;for(let a=0;ae.glyphs[0].texturePage)).sort(((e,t)=>e>t?1:-1)),o=this.pages.length-s.length,n=this._mergePages(s,o);n.version++;for(let a=r.length-1;a>=0;a--)this._deletePage(r[a]);this.pages.push(n),this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(n.canvas)}const e=new v(this._document,this._textureSize);return this._pages.push(e),this._activePages.push(e),this._onAddTextureAtlasCanvas.fire(e.canvas),e}_mergePages(e,t){const i=2*e[0].canvas.width,s=new v(this._document,i,e);for(const[r,o]of e.entries()){const e=r*o.canvas.width%i,n=Math.floor(r/2)*o.canvas.height;s.ctx.drawImage(o.canvas,e,n);for(const s of o.glyphs)s.texturePage=t,s.sizeClipSpace.x=s.size.x/i,s.sizeClipSpace.y=s.size.y/i,s.texturePosition.x+=e,s.texturePosition.y+=n,s.texturePositionClipSpace.x=s.texturePosition.x/i,s.texturePositionClipSpace.y=s.texturePosition.y/i;this._onRemoveTextureAtlasCanvas.fire(o.canvas);const a=this._activePages.indexOf(o);-1!==a&&this._activePages.splice(a,1)}return s}_deletePage(e){this._pages.splice(e,1);for(let t=e;t=this._config.colors.ansi.length)throw new Error("No color found for idx "+e);return this._config.colors.ansi[e]}_getBackgroundColor(e,t,i,s){if(this._config.allowTransparency)return n.NULL_COLOR;let r;switch(e){case 16777216:case 33554432:r=this._getColorFromAnsiIndex(t);break;case 50331648:const e=c.AttributeData.toColorRGB(t);r=n.channels.toColor(e[0],e[1],e[2]);break;default:r=i?n.color.opaque(this._config.colors.foreground):this._config.colors.background}return r}_getForegroundColor(e,t,i,r,o,a,h,l,d,_){const u=this._getMinimumContrastColor(e,t,i,r,o,a,h,d,l,_);if(u)return u;let g;switch(o){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&d&&a<8&&(a+=8),g=this._getColorFromAnsiIndex(a);break;case 50331648:const e=c.AttributeData.toColorRGB(a);g=n.channels.toColor(e[0],e[1],e[2]);break;default:g=h?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(g=n.color.opaque(g)),l&&(g=n.color.multiplyOpacity(g,s.DIM_OPACITY)),g}_resolveBackgroundRgba(e,t,i){switch(e){case 16777216:case 33554432:return this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(e,t,i,s){switch(e){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&s&&t<8&&(t+=8),this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(e,t,i,s,r,o,a,h,l,c){if(1===this._config.minimumContrastRatio||c)return;const d=this._getContrastCache(l),_=d.getColor(e,s);if(void 0!==_)return _||void 0;const u=this._resolveBackgroundRgba(t,i,a),g=this._resolveForegroundRgba(r,o,a,h),v=n.rgba.ensureContrastRatio(u,g,this._config.minimumContrastRatio/(l?2:1));if(!v)return void d.setColor(e,s,null);const f=n.channels.toColor(v>>24&255,v>>16&255,v>>8&255);return d.setColor(e,s,f),f}_getContrastCache(e){return e?this._config.colors.halfContrastCache:this._config.colors.contrastCache}_drawToCache(e,t,i,n,a=!1){const h="number"==typeof e?String.fromCharCode(e):e,l=Math.min(this._config.deviceCellWidth*Math.max(h.length,2)+4,this._textureSize);this._tmpCanvas.width=e?2*e-l:e-l;!1==!(l>=e)||0===u?(this._tmpCtx.setLineDash([Math.round(e),Math.round(e)]),this._tmpCtx.moveTo(h+u,s),this._tmpCtx.lineTo(c,s)):(this._tmpCtx.setLineDash([Math.round(e),Math.round(e)]),this._tmpCtx.moveTo(h,s),this._tmpCtx.lineTo(h+u,s),this._tmpCtx.moveTo(h+u+e,s),this._tmpCtx.lineTo(c,s)),l=(0,o.computeNextVariantOffset)(c-h,e,l);break;case 5:const g=.6,v=.3,f=c-h,p=Math.floor(g*f),C=Math.floor(v*f),m=f-p-C;this._tmpCtx.setLineDash([p,C,m]),this._tmpCtx.moveTo(h,s),this._tmpCtx.lineTo(c,s);break;default:this._tmpCtx.moveTo(h,s),this._tmpCtx.lineTo(c,s)}this._tmpCtx.stroke(),this._tmpCtx.restore()}if(this._tmpCtx.restore(),!F&&this._config.fontSize>=12&&!this._config.allowTransparency&&" "!==h){this._tmpCtx.save(),this._tmpCtx.textBaseline="alphabetic";const t=this._tmpCtx.measureText(h);if(this._tmpCtx.restore(),"actualBoundingBoxDescent"in t&&t.actualBoundingBoxDescent>0){this._tmpCtx.save();const t=new Path2D;t.rect(i,s-Math.ceil(e/2),this._config.deviceCellWidth*P,n-s+Math.ceil(e/2)),this._tmpCtx.clip(t),this._tmpCtx.lineWidth=3*this._config.devicePixelRatio,this._tmpCtx.strokeStyle=y.css,this._tmpCtx.strokeText(h,B,B+this._config.deviceCharHeight),this._tmpCtx.restore()}}}if(x){const e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/15)),t=e%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(B,B+t),this._tmpCtx.lineTo(B+this._config.deviceCharWidth*P,B+t),this._tmpCtx.stroke()}if(F||this._tmpCtx.fillText(h,B,B+this._config.deviceCharHeight),"_"===h&&!this._config.allowTransparency){let e=f(this._tmpCtx.getImageData(B,B,this._config.deviceCellWidth,this._config.deviceCellHeight),y,D,I);if(e)for(let t=1;t<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=y.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(h,B,B+this._config.deviceCharHeight-t),e=f(this._tmpCtx.getImageData(B,B,this._config.deviceCellWidth,this._config.deviceCellHeight),y,D,I),e);t++);}if(L){const e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),t=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(B,B+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.lineTo(B+this._config.deviceCharWidth*P,B+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.stroke()}this._tmpCtx.restore();const O=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height);let k;if(k=this._config.allowTransparency?function(e){for(let t=0;t0)return!1;return!0}(O):f(O,y,D,I),k)return _;const $=this._findGlyphBoundingBox(O,this._workBoundingBox,l,T,F,B);let U,N;for(;;){if(0===this._activePages.length){const e=this._createNewPage();U=e,N=e.currentRow,N.height=$.size.y;break}U=this._activePages[this._activePages.length-1],N=U.currentRow;for(const e of this._activePages)$.size.y<=e.currentRow.height&&(U=e,N=e.currentRow);for(let e=this._activePages.length-1;e>=0;e--)for(const t of this._activePages[e].fixedRows)t.height<=N.height&&$.size.y<=t.height&&(U=this._activePages[e],N=t);if(N.y+$.size.y>=U.canvas.height||N.height>$.size.y+2){let e=!1;if(U.currentRow.y+U.currentRow.height+$.size.y>=U.canvas.height){let t;for(const e of this._activePages)if(e.currentRow.y+e.currentRow.height+$.size.y=g.maxAtlasPages&&N.y+$.size.y<=U.canvas.height&&N.height>=$.size.y&&N.x+$.size.x<=U.canvas.width)e=!0;else{const t=this._createNewPage();U=t,N=t.currentRow,N.height=$.size.y,e=!0}}e||(U.currentRow.height>0&&U.fixedRows.push(U.currentRow),N={x:0,y:U.currentRow.y+U.currentRow.height,height:$.size.y},U.fixedRows.push(N),U.currentRow={x:0,y:N.y+N.height,height:0})}if(N.x+$.size.x<=U.canvas.width)break;N===U.currentRow?(N.x=0,N.y+=N.height,N.height=0):U.fixedRows.splice(U.fixedRows.indexOf(N),1)}return $.texturePage=this._pages.indexOf(U),$.texturePosition.x=N.x,$.texturePosition.y=N.y,$.texturePositionClipSpace.x=N.x/U.canvas.width,$.texturePositionClipSpace.y=N.y/U.canvas.height,$.sizeClipSpace.x/=U.canvas.width,$.sizeClipSpace.y/=U.canvas.height,N.height=Math.max(N.height,$.size.y),N.x+=$.size.x,U.ctx.putImageData(O,$.texturePosition.x-this._workBoundingBox.left,$.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,$.size.x,$.size.y),U.addGlyph($),U.version++,$}_findGlyphBoundingBox(e,t,i,s,r,o){t.top=0;const n=s?this._config.deviceCellHeight:this._tmpCanvas.height,a=s?this._config.deviceCellWidth:i;let h=!1;for(let l=0;l=o;l--){for(let i=0;i=0;l--){for(let i=0;i>>24,o=t.rgba>>>16&255,n=t.rgba>>>8&255,a=i.rgba>>>24,h=i.rgba>>>16&255,l=i.rgba>>>8&255,c=Math.floor((Math.abs(r-a)+Math.abs(o-h)+Math.abs(n-l))/12);let d=!0;for(let _=0;_{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let i=0,s=0,r=0,o=0;var n,a,h,l,c;function d(e){const t=e.toString(16);return t.length<2?"0"+t:t}function _(e,t){return e>>0},e.toColor=function(t,i,s,r){return{css:e.toCss(t,i,s,r),rgba:e.toRgba(t,i,s,r)}}}(n||(t.channels=n={})),function(e){function t(e,t){return o=Math.round(255*t),[i,s,r]=c.toChannels(e.rgba),{css:n.toCss(i,s,r,o),rgba:n.toRgba(i,s,r,o)}}e.blend=function(e,t){if(o=(255&t.rgba)/255,1===o)return{css:t.css,rgba:t.rgba};const a=t.rgba>>24&255,h=t.rgba>>16&255,l=t.rgba>>8&255,c=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return i=c+Math.round((a-c)*o),s=d+Math.round((h-d)*o),r=_+Math.round((l-_)*o),{css:n.toCss(i,s,r),rgba:n.toRgba(i,s,r)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=c.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return n.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[i,s,r]=c.toChannels(t),{css:n.toCss(i,s,r),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return o=255&e.rgba,t(e,o*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(a||(t.color=a={})),function(e){let t,a;try{const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i&&(t=i,t.globalCompositeOperation="copy",a=t.createLinearGradient(0,0,1,1))}catch{}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return i=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),n.toColor(i,s,r);case 5:return i=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),o=parseInt(e.slice(4,5).repeat(2),16),n.toColor(i,s,r,o);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const h=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(h)return i=parseInt(h[1]),s=parseInt(h[2]),r=parseInt(h[3]),o=Math.round(255*(void 0===h[5]?1:parseFloat(h[5]))),n.toColor(i,s,r,o);if(!t||!a)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=a,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[i,s,r,o]=t.getImageData(0,0,1,1).data,255!==o)throw new Error("css.toColor: Unsupported css format");return{rgba:n.toRgba(i,s,r,o),css:e}}}(h||(t.css=h={})),function(e){function t(e,t,i){const s=e/255,r=t/255,o=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(l||(t.rgb=l={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c0||a>0||h>0);)n-=Math.max(0,Math.ceil(.1*n)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));return(n<<24|a<<16|h<<8|255)>>>0}function a(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c>>0}e.blend=function(e,t){if(o=(255&t)/255,1===o)return t;const a=t>>24&255,h=t>>16&255,l=t>>8&255,c=e>>24&255,d=e>>16&255,_=e>>8&255;return i=c+Math.round((a-c)*o),s=d+Math.round((h-d)*o),r=_+Math.round((l-_)*o),n.toRgba(i,s,r)},e.ensureContrastRatio=function(e,i,s){const r=l.relativeLuminance(e>>8),o=l.relativeLuminance(i>>8);if(_(r,o)>8));if(n_(r,l.relativeLuminance(t>>8))?o:t}return o}const n=a(e,i,s),h=_(r,l.relativeLuminance(n>>8));if(h_(r,l.relativeLuminance(o>>8))?n:o}return n}},e.reduceLuminance=t,e.increaseLuminance=a,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}}(c||(t.rgba=c={})),t.toPaddedHex=d,t.contrastRatio=_},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))},t.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))}},859:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},485:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,o){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,o)}get(e,t,i,s){return this._data.get(e,t)?.get(i,s)}clear(){this._data.clear()}}},399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"!=typeof s&&"title"in s;const i=t.isNode?"node":navigator.userAgent,r=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=r.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(399);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class o extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=o,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:o,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}t.AttributeData=i;class s{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){const e=(3758096384&this._ext)>>29;return e<0?4294967288^e:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},782:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(133),r=i(855),o=i(147);class n extends o.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new o.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new n;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=n},855:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let o=r;o=i)return this._interim=r,s;const n=e.charCodeAt(o);56320<=n&&n<=57343?t[s++]=1024*(r-55296)+n-56320+65536:(t[s++]=r,t[s++]=n)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,o,n,a=0,h=0,l=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let o,n=0;for(;(o=63&this.interim[++n])&&n<4;)r<<=6,r|=o;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-n;for(;l=i)return 0;if(o=e[l++],128!=(192&o)){l--,s=!0;break}this.interim[n++]=o,r<<=6,r|=63&o}s||(2===h?r<128?l--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const c=i-4;let d=l;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&o,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=o,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&o)<<6|63&n,h<65536||h>1114111)continue;t[a++]=h}}return a}}},776:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,o=arguments.length,n=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;const o=i(859),n=i(97),a={trace:n.LogLevelEnum.TRACE,debug:n.LogLevelEnum.DEBUG,info:n.LogLevelEnum.INFO,warn:n.LogLevelEnum.WARN,error:n.LogLevelEnum.ERROR,off:n.LogLevelEnum.OFF};let h,l=t.LogService=class extends o.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=n.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),h=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tJSON.stringify(e))).join(", ")})`);const t=s.apply(this,e);return h.trace(`GlyphRenderer#${s.name} return`,t),t}}},726:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const i="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const r=function(e,t,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[i]===t?t[s].push({id:e,index:r}):(t[s]=[{id:e,index:r}],t[i]=t)}(r,e,o)};return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},97:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(726);var r;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(r||(t.LogLevelEnum=r={})),t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,i),o.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebglAddon=void 0;const t=i(345),s=i(859),o=i(399),n=i(666),a=i(776);class h extends s.Disposable{constructor(e){if(o.isSafari&&(0,o.getSafariVersion)()<16){const e={antialias:!1,depth:!1,preserveDrawingBuffer:!0};if(!document.createElement("canvas").getContext("webgl2",e))throw new Error("Webgl2 is only supported on Safari 16 and above")}super(),this._preserveDrawingBuffer=e,this._onChangeTextureAtlas=this.register(new t.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new t.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this.register(new t.EventEmitter),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onContextLoss=this.register(new t.EventEmitter),this.onContextLoss=this._onContextLoss.event}activate(e){const i=e._core;if(!e.element)return void this.register(i.onWillOpen((()=>this.activate(e))));this._terminal=e;const r=i.coreService,o=i.optionsService,h=i,l=h._renderService,c=h._characterJoinerService,d=h._charSizeService,_=h._coreBrowserService,u=h._decorationService,g=h._logService,v=h._themeService;(0,a.setTraceLogger)(g),this._renderer=this.register(new n.WebglRenderer(e,c,d,_,r,u,o,v,this._preserveDrawingBuffer)),this.register((0,t.forwardEvent)(this._renderer.onContextLoss,this._onContextLoss)),this.register((0,t.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this.register((0,t.forwardEvent)(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),this.register((0,t.forwardEvent)(this._renderer.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas)),l.setRenderer(this._renderer),this.register((0,s.toDisposable)((()=>{const t=this._terminal._core._renderService;t.setRenderer(this._terminal._core._createRenderer()),t.handleResize(e.cols,e.rows)})))}get textureAtlas(){return this._renderer?.textureAtlas}clearTextureAtlas(){this._renderer?.clearTextureAtlas()}}e.WebglAddon=h})(),r})()))},65606:e=>{var t=e.exports={};var i;var s;function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){i=setTimeout}else{i=r}}catch(e){i=r}try{if(typeof clearTimeout==="function"){s=clearTimeout}else{s=o}}catch(e){s=o}})();function n(e){if(i===setTimeout){return setTimeout(e,0)}if((i===r||!i)&&setTimeout){i=setTimeout;return setTimeout(e,0)}try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}function a(e){if(s===clearTimeout){return clearTimeout(e)}if((s===o||!s)&&clearTimeout){s=clearTimeout;return clearTimeout(e)}try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}var h=[];var l=false;var c;var d=-1;function _(){if(!l||!c){return}l=false;if(c.length){h=c.concat(h)}else{d=-1}if(h.length){u()}}function u(){if(l){return}var e=n(_);l=true;var t=h.length;while(t){c=h;h=[];while(++d1){for(var i=1;i{n.r(t);n.d(t,{modelica:()=>v});function r(e){var t={},n=e.split(" ");for(var r=0;r+\-\/^\[\]]/;var u=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/;var c=/[0-9]/;var f=/[_a-zA-Z]/;function p(e,t){e.skipToEnd();t.tokenize=null;return"comment"}function k(e,t){var n=false,r;while(r=e.next()){if(n&&r=="/"){t.tokenize=null;break}n=r=="*"}return"comment"}function m(e,t){var n=false,r;while((r=e.next())!=null){if(r=='"'&&!n){t.tokenize=null;t.sol=false;break}n=!n&&r=="\\"}return"string"}function d(e,t){e.eatWhile(c);while(e.eat(c)||e.eat(f)){}var n=e.current();if(t.sol&&(n=="package"||n=="model"||n=="when"||n=="connector"))t.level++;else if(t.sol&&n=="end"&&t.level>0)t.level--;t.tokenize=null;t.sol=false;if(i.propertyIsEnumerable(n))return"keyword";else if(l.propertyIsEnumerable(n))return"builtin";else if(a.propertyIsEnumerable(n))return"atom";else return"variable"}function h(e,t){while(e.eat(/[^']/)){}t.tokenize=null;t.sol=false;if(e.eat("'"))return"variable";else return"error"}function b(e,t){e.eatWhile(c);if(e.eat(".")){e.eatWhile(c)}if(e.eat("e")||e.eat("E")){if(!e.eat("-"))e.eat("+");e.eatWhile(c)}t.tokenize=null;t.sol=false;return"number"}const v={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:true}},token:function(e,t){if(t.tokenize!=null){return t.tokenize(e,t)}if(e.sol()){t.sol=true}if(e.eatSpace()){t.tokenize=null;return null}var n=e.next();if(n=="/"&&e.eat("/")){t.tokenize=p}else if(n=="/"&&e.eat("*")){t.tokenize=k}else if(u.test(n+e.peek())){e.next();t.tokenize=null;return"operator"}else if(s.test(n)){t.tokenize=null;return"operator"}else if(f.test(n)){t.tokenize=d}else if(n=="'"&&e.peek()&&e.peek()!="'"){t.tokenize=h}else if(n=='"'){t.tokenize=m}else if(c.test(n)){t.tokenize=b}else{t.tokenize=null;return"error"}return t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!=null)return null;var r=e.level;if(/(algorithm)/.test(t))r--;if(/(equation)/.test(t))r--;if(/(initial algorithm)/.test(t))r--;if(/(initial equation)/.test(t))r--;if(/(end)/.test(t))r--;if(r>0)return n.unit*r;else return 0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3974.79f68bca9a02c92dab5e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3974.79f68bca9a02c92dab5e.js new file mode 100644 index 0000000000000000000000000000000000000000..d3dd3190b16c548623ffc9420371e412ef4abd8f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3974.79f68bca9a02c92dab5e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3974],{93974:(e,t,n)=>{n.r(t);n.d(t,{clojure:()=>g});var r=["false","nil","true"];var a=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"];var s=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];var o=["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"];var i=v(r);var c=v(a);var d=v(s);var l=v(o);var u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/;var p=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;var f=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;var m=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function h(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(p))return[null,"number"];if(e.match(f))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=b)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/)){e.skipToEnd();return["space","comment"]}if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(m);var r=n&&n[0];if(!r){e.next();e.eatWhile((function(e){return!k(e,u)}));return[null,"error"]}if(r==="comment"&&t.lastToken==="(")return(t.tokenize=y)(e,t);if(k(r,i)||r.charAt(0)===":")return["symbol","atom"];if(k(r,c)||k(r,d))return["symbol","keyword"];if(t.lastToken==="(")return["symbol","builtin"];return["symbol","variable"]}function b(e,t){var n=false,r;while(r=e.next()){if(r==='"'&&!n){t.tokenize=h;break}n=!n&&r==="\\"}return[null,"string"]}function y(e,t){var n=1;var r;while(r=e.next()){if(r===")")n--;if(r==="(")n++;if(n===0){e.backUp(1);t.tokenize=h;break}}return["space","comment"]}function v(e){var t={};for(var n=0;n{e.d(t,{$D:()=>w,$G:()=>H,$P:()=>dn,AU:()=>z,B:()=>bn,B2:()=>F,BS:()=>q,Cc:()=>_n,D_:()=>g,EV:()=>kn,Eb:()=>On,Et:()=>wn,G4:()=>Sn,Gv:()=>k,KH:()=>T,Kg:()=>En,Lm:()=>mn,Ln:()=>An,M1:()=>Cn,N6:()=>u,NV:()=>M,P$:()=>j,PK:()=>yn,R2:()=>E,Ro:()=>S,SW:()=>Z,Tn:()=>J,UD:()=>nn,VC:()=>P,V_:()=>tn,X$:()=>cn,Xx:()=>fn,YO:()=>W,ZZ:()=>a,ay:()=>Nn,bX:()=>pn,co:()=>U,cy:()=>v,dI:()=>Vn,dY:()=>on,eV:()=>zn,gd:()=>jn,h1:()=>xn,id:()=>h,io:()=>D,iv:()=>s,lL:()=>X,mQ:()=>an,me:()=>m,n:()=>sn,nG:()=>gn,nS:()=>o,oV:()=>Y,r$:()=>Rn,rt:()=>Bn,sY:()=>r,se:()=>R,sg:()=>ln,ux:()=>Dn,vF:()=>_,vN:()=>y,v_:()=>p,vu:()=>I,xH:()=>b,xZ:()=>Mn,xv:()=>Gn,y:()=>O,z3:()=>f,zy:()=>K});function r(n,t,e){n.fields=t||[];n.fname=e;return n}function u(n){return n==null?null:n.fname}function o(n){return n==null?null:n.fields}function i(n){return n.length===1?l(n[0]):c(n)}const l=n=>function(t){return t[n]};const c=n=>{const t=n.length;return function(e){for(let r=0;ri){s()}else{i=l+1}}else if(c==="["){if(l>i)s();u=i=l+1}else if(c==="]"){if(!u)f("Access path missing open bracket: "+n);if(u>0)s();u=0;i=l+1}}if(u)f("Access path missing closing bracket: "+n);if(r)f("Access path missing closing quote: "+n);if(l>i){l++;s()}return t}function a(n,t,e){const u=s(n);n=u.length===1?u[0]:n;return r((e&&e.get||i)(u),[n],t||n)}const h=a("id");const g=r((n=>n),[],"identity");const p=r((()=>0),[],"zero");const b=r((()=>1),[],"one");const y=r((()=>true),[],"true");const m=r((()=>false),[],"false");function d(n,t,e){const r=[t].concat([].slice.call(e));console[n].apply(console,r)}const M=0;const w=1;const j=2;const E=3;const O=4;function _(n,t){let e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;let r=n||M;return{level(n){if(arguments.length){r=+n;return this}else{return r}},error(){if(r>=w)e(t||"error","ERROR",arguments);return this},warn(){if(r>=j)e(t||"warn","WARN",arguments);return this},info(){if(r>=E)e(t||"log","INFO",arguments);return this},debug(){if(r>=O)e(t||"log","DEBUG",arguments);return this}}}var v=Array.isArray;function k(n){return n===Object(n)}const x=n=>n!=="__proto__";function D(){for(var n=arguments.length,t=new Array(n),e=0;e{for(const e in t){if(e==="signals"){n.signals=A(n.signals,t.signals)}else{const r=e==="legend"?{layout:1}:e==="style"?true:null;z(n,e,t[e],r)}}return n}),{})}function z(n,t,e,r){if(!x(t))return;let u,o;if(k(e)&&!v(e)){o=k(n[t])?n[t]:n[t]={};for(u in e){if(r&&(r===true||r[u])){z(o,u,e[u])}else if(x(u)){o[u]=e[u]}}}else{n[t]=e}}function A(n,t){if(n==null)return t;const e={},r=[];function u(n){if(!e[n.name]){e[n.name]=1;r.push(n)}}t.forEach(u);n.forEach(u);return r}function R(n){return n[n.length-1]}function S(n){return n==null||n===""?null:+n}const $=n=>t=>n*Math.exp(t);const N=n=>t=>Math.log(n*t);const V=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n));const C=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n;const G=n=>t=>t<0?-Math.pow(-t,n):Math.pow(t,n);function B(n,t,e,r){const u=e(n[0]),o=e(R(n)),i=(o-u)*t;return[r(u-i),r(o-i)]}function P(n,t){return B(n,t,S,g)}function T(n,t){var e=Math.sign(n[0]);return B(n,t,N(e),$(e))}function U(n,t,e){return B(n,t,G(e),G(1/e))}function K(n,t,e){return B(n,t,V(e),C(e))}function L(n,t,e,r,u){const o=r(n[0]),i=r(R(n)),l=t!=null?r(t):(o+i)/2;return[u(l+(o-l)*e),u(l+(i-l)*e)]}function X(n,t,e){return L(n,t,e,S,g)}function Y(n,t,e){const r=Math.sign(n[0]);return L(n,t,e,N(r),$(r))}function Z(n,t,e,r){return L(n,t,e,G(r),G(1/r))}function F(n,t,e,r){return L(n,t,e,V(r),C(r))}function H(n){return 1+~~(new Date(n).getMonth()/3)}function I(n){return 1+~~(new Date(n).getUTCMonth()/3)}function W(n){return n!=null?v(n)?n:[n]:[]}function q(n,t,e){let r=n[0],u=n[1],o;if(u=e-t?[t,e]:[r=Math.min(Math.max(r,t),e-o),r+o]}function J(n){return typeof n==="function"}const Q="descending";function nn(n,t,e){e=e||{};t=W(t)||[];const u=[],i=[],l={},c=e.comparator||en;W(n).forEach(((n,r)=>{if(n==null)return;u.push(t[r]===Q?-1:1);i.push(n=J(n)?n:a(n,null,e));(o(n)||[]).forEach((n=>l[n]=1))}));return i.length===0?null:r(c(i,u),Object.keys(l))}const tn=(n,t)=>(nt||t==null)&&n!=null?1:(t=t instanceof Date?+t:t,n=n instanceof Date?+n:n)!==n&&t===t?-1:t!==t&&n===n?1:0;const en=(n,t)=>n.length===1?rn(n[0],t[0]):un(n,t,n.length);const rn=(n,t)=>function(e,r){return tn(n(e),n(r))*t};const un=(n,t,e)=>{t.push(0);return function(r,u){let o,i=0,l=-1;while(i===0&&++ln}function ln(n,t){let e;return r=>{if(e)clearTimeout(e);e=setTimeout((()=>(t(r),e=null)),n)}}function cn(n){for(let t,e,r=1,u=arguments.length;ri)i=u}}}else{for(u=t(n[e]);ei)i=u}}}}return[o,i]}function sn(n,t){const e=n.length;let r=-1,u,o,i,l,c;if(t==null){while(++r=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i{u.set(t,n[t])}));return u}function pn(n,t,e,r,u,o){if(!e&&e!==0)return o;const i=+e;let l=n[0],c=R(n),f;if(co){i=u;u=o;o=i}e=e===undefined||e;r=r===undefined||r;return(e?u<=n:un.replace(/\\(.)/g,"$1"))):W(n)}const u=n&&n.length,o=e&&e.get||i,l=n=>o(t?[n]:s(n));let c;if(!u){c=function(){return""}}else if(u===1){const t=l(n[0]);c=function(n){return""+t(n)}}else{const t=n.map(l);c=function(n){let e=""+t[0](n),r=0;while(++r{t={};e={};r=0};const o=(u,o)=>{if(++r>n){e=t;t={};r=1}return t[u]=o};u();return{clear:u,has:n=>an(t,n)||an(e,n),get:n=>an(t,n)?t[n]:an(e,n)?o(n,e[n]):undefined,set:(n,e)=>an(t,n)?t[n]=e:o(n,e)}}function xn(n,t,e,r){const u=t.length,o=e.length;if(!o)return t;if(!u)return e;const i=r||new t.constructor(u+o);let l=0,c=0,f=0;for(;l0?e[c++]:t[l++]}for(;l=0)e+=n;return e}function zn(n,t,e,r){const u=e||" ",o=n+"",i=t-o.length;return i<=0?o:r==="left"?Dn(u,i)+o:r==="center"?Dn(u,~~(i/2))+o+Dn(u,Math.ceil(i/2)):o+Dn(u,i)}function An(n){return n&&R(n)-n[0]||0}function Rn(n){return v(n)?"["+n.map(Rn)+"]":k(n)||En(n)?JSON.stringify(n).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):n}function Sn(n){return n==null||n===""?null:!n||n==="false"||n==="0"?false:!!n}const $n=n=>wn(n)?n:dn(n)?n:Date.parse(n);function Nn(n,t){t=t||$n;return n==null||n===""?null:t(n)}function Vn(n){return n==null||n===""?null:n+""}function Cn(n){const t={},e=n.length;for(let r=0;r{var o;Object.defineProperty(e,"__esModule",{value:true});e.MML=void 0;var n=r(80747);var i=r(31859);var a=r(32175);var l=r(94318);var u=r(38669);var p=r(48765);var s=r(74394);var c=r(68313);var f=r(81364);var y=r(74502);var M=r(24208);var d=r(96778);var h=r(13941);var m=r(37422);var b=r(10900);var v=r(55385);var _=r(54453);var g=r(38085);var O=r(36528);var j=r(12560);var k=r(46072);var P=r(10093);var w=r(7840);var A=r(79516);var N=r(94826);var x=r(28878);var I=r(64016);var C=r(64906);var T=r(75447);var E=r(54517);var S=r(54020);e.MML=(o={},o[i.MmlMath.prototype.kind]=i.MmlMath,o[a.MmlMi.prototype.kind]=a.MmlMi,o[l.MmlMn.prototype.kind]=l.MmlMn,o[u.MmlMo.prototype.kind]=u.MmlMo,o[p.MmlMtext.prototype.kind]=p.MmlMtext,o[s.MmlMspace.prototype.kind]=s.MmlMspace,o[c.MmlMs.prototype.kind]=c.MmlMs,o[f.MmlMrow.prototype.kind]=f.MmlMrow,o[f.MmlInferredMrow.prototype.kind]=f.MmlInferredMrow,o[y.MmlMfrac.prototype.kind]=y.MmlMfrac,o[M.MmlMsqrt.prototype.kind]=M.MmlMsqrt,o[d.MmlMroot.prototype.kind]=d.MmlMroot,o[h.MmlMstyle.prototype.kind]=h.MmlMstyle,o[m.MmlMerror.prototype.kind]=m.MmlMerror,o[b.MmlMpadded.prototype.kind]=b.MmlMpadded,o[v.MmlMphantom.prototype.kind]=v.MmlMphantom,o[_.MmlMfenced.prototype.kind]=_.MmlMfenced,o[g.MmlMenclose.prototype.kind]=g.MmlMenclose,o[O.MmlMaction.prototype.kind]=O.MmlMaction,o[j.MmlMsub.prototype.kind]=j.MmlMsub,o[j.MmlMsup.prototype.kind]=j.MmlMsup,o[j.MmlMsubsup.prototype.kind]=j.MmlMsubsup,o[k.MmlMunder.prototype.kind]=k.MmlMunder,o[k.MmlMover.prototype.kind]=k.MmlMover,o[k.MmlMunderover.prototype.kind]=k.MmlMunderover,o[P.MmlMmultiscripts.prototype.kind]=P.MmlMmultiscripts,o[P.MmlMprescripts.prototype.kind]=P.MmlMprescripts,o[P.MmlNone.prototype.kind]=P.MmlNone,o[w.MmlMtable.prototype.kind]=w.MmlMtable,o[A.MmlMlabeledtr.prototype.kind]=A.MmlMlabeledtr,o[A.MmlMtr.prototype.kind]=A.MmlMtr,o[N.MmlMtd.prototype.kind]=N.MmlMtd,o[x.MmlMaligngroup.prototype.kind]=x.MmlMaligngroup,o[I.MmlMalignmark.prototype.kind]=I.MmlMalignmark,o[C.MmlMglyph.prototype.kind]=C.MmlMglyph,o[T.MmlSemantics.prototype.kind]=T.MmlSemantics,o[T.MmlAnnotation.prototype.kind]=T.MmlAnnotation,o[T.MmlAnnotationXML.prototype.kind]=T.MmlAnnotationXML,o[E.TeXAtom.prototype.kind]=E.TeXAtom,o[S.MathChoice.prototype.kind]=S.MathChoice,o[n.TextNode.prototype.kind]=n.TextNode,o[n.XMLNode.prototype.kind]=n.XMLNode,o)},44001:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:true});e.MmlFactory=void 0;var n=r(3495);var i=r(32167);var a=function(t){o(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"MML",{get:function(){return this.node},enumerable:false,configurable:true});e.defaultNodes=i.MML;return e}(n.AbstractNodeFactory);e.MmlFactory=a},28878:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r{r.r(t);r.d(t,{ez80:()=>l,z80:()=>n});function i(e){var t,r;if(e){t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i;r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i}else{t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i;r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i}var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i;var n=/^(n?[zc]|p[oe]?|m)\b/i;var l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i;var a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,c){if(!s.column())c.context=0;if(s.eatSpace())return null;var u;if(s.eatWhile(/\w/)){if(e&&s.eat(".")){s.eatWhile(/\w/)}u=s.current();if(s.indentation()){if((c.context==1||c.context==4)&&i.test(u)){c.context=4;return"variable"}if(c.context==2&&n.test(u)){c.context=4;return"variableName.special"}if(t.test(u)){c.context=1;return"keyword"}else if(r.test(u)){c.context=2;return"keyword"}else if(c.context==4&&a.test(u)){return"number"}if(l.test(u))return"error"}else if(s.match(a)){return"number"}else{return null}}else if(s.eat(";")){s.skipToEnd();return"comment"}else if(s.eat('"')){while(u=s.next()){if(u=='"')break;if(u=="\\")s.next()}return"string"}else if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){c.context=5;if(s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else{s.next()}return null}}}const n=i(false);const l=i(true)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4311.b44e8bc4829e0b1226d2.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4311.b44e8bc4829e0b1226d2.js new file mode 100644 index 0000000000000000000000000000000000000000..b42b32241f3fc979e3e8a42d41e4ddef036ef773 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4311.b44e8bc4829e0b1226d2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4311],{4311:(t,e,i)=>{i.d(e,{diagram:()=>z});var a=i(75905);var n=i(24982);var s=function(){var t=(0,a.K2)((function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i}),"o"),e=[1,3],i=[1,4],n=[1,5],s=[1,6],r=[1,7],o=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],f=[1,35],g=[1,43],p=[1,41],y=[1,14],b=[1,23],T=[1,18],m=[1,19],k=[1,20],q=[1,21],_=[1,22],A=[1,24],S=[1,25],F=[1,26],P=[1,27],v=[1,28],C=[1,29],L=[1,32],I=[1,33],E=[1,34],D=[1,39],z=[1,40],w=[1,42],K=[1,44],U=[1,62],N=[1,61],R=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],B=[1,65],W=[1,66],$=[1,67],Q=[1,68],O=[1,69],X=[1,70],H=[1,71],M=[1,72],Y=[1,73],j=[1,74],G=[1,75],V=[1,76],Z=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],tt=[1,91],et=[1,92],it=[1,99],at=[1,93],nt=[1,96],st=[1,94],rt=[1,95],ot=[1,97],lt=[1,98],ht=[1,102],ct=[10,55,56,57],dt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57];var ut={trace:(0,a.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,a.K2)((function t(e,i,a,n,s,r,o){var l=r.length-1;switch(s){case 23:this.$=r[l];break;case 24:this.$=r[l-1]+""+r[l];break;case 26:this.$=r[l-1]+r[l];break;case 27:this.$=[r[l].trim()];break;case 28:r[l-2].push(r[l].trim());this.$=r[l-2];break;case 29:this.$=r[l-4];n.addClass(r[l-2],r[l]);break;case 37:this.$=[];break;case 42:this.$=r[l].trim();n.setDiagramTitle(this.$);break;case 43:this.$=r[l].trim();n.setAccTitle(this.$);break;case 44:case 45:this.$=r[l].trim();n.setAccDescription(this.$);break;case 46:n.addSection(r[l].substr(8));this.$=r[l].substr(8);break;case 47:n.addPoint(r[l-3],"",r[l-1],r[l],[]);break;case 48:n.addPoint(r[l-4],r[l-3],r[l-1],r[l],[]);break;case 49:n.addPoint(r[l-4],"",r[l-2],r[l-1],r[l]);break;case 50:n.addPoint(r[l-5],r[l-4],r[l-2],r[l-1],r[l]);break;case 51:n.setXAxisLeftText(r[l-2]);n.setXAxisRightText(r[l]);break;case 52:r[l-1].text+=" ⟶ ";n.setXAxisLeftText(r[l-1]);break;case 53:n.setXAxisLeftText(r[l]);break;case 54:n.setYAxisBottomText(r[l-2]);n.setYAxisTopText(r[l]);break;case 55:r[l-1].text+=" ⟶ ";n.setYAxisBottomText(r[l-1]);break;case 56:n.setYAxisBottomText(r[l]);break;case 57:n.setQuadrant1Text(r[l]);break;case 58:n.setQuadrant2Text(r[l]);break;case 59:n.setQuadrant3Text(r[l]);break;case 60:n.setQuadrant4Text(r[l]);break;case 64:this.$={text:r[l],type:"text"};break;case 65:this.$={text:r[l-1].text+""+r[l],type:r[l-1].type};break;case 66:this.$={text:r[l],type:"text"};break;case 67:this.$={text:r[l],type:"markdown"};break;case 68:this.$=r[l];break;case 69:this.$=r[l-1]+""+r[l];break}}),"anonymous"),table:[{18:e,26:1,27:2,28:i,55:n,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:i,55:n,56:s,57:r},{18:e,26:9,27:2,28:i,55:n,56:s,57:r},t(o,[2,33],{29:10}),t(l,[2,61]),t(l,[2,62]),t(l,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:b,35:T,37:m,39:k,41:q,42:_,48:A,50:S,51:F,52:P,53:v,54:C,60:L,61:I,63:E,64:D,65:z,66:w,67:K}),t(o,[2,34]),{27:45,55:n,56:s,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:u,10:x,12:f,13:g,14:p,18:y,25:b,35:T,37:m,39:k,41:q,42:_,48:A,50:S,51:F,52:P,53:v,54:C,60:L,61:I,63:E,64:D,65:z,66:w,67:K}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(h,[2,45]),t(h,[2,46]),{18:[1,50]},{4:d,5:u,10:x,12:f,13:g,14:p,43:51,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:f,13:g,14:p,43:52,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:f,13:g,14:p,43:53,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:f,13:g,14:p,43:54,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:f,13:g,14:p,43:55,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:f,13:g,14:p,43:56,58:31,60:L,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,44:[1,57],47:[1,58],58:60,59:59,63:E,64:D,65:z,66:w,67:K},t(R,[2,64]),t(R,[2,66]),t(R,[2,67]),t(R,[2,70]),t(R,[2,71]),t(R,[2,72]),t(R,[2,73]),t(R,[2,74]),t(R,[2,75]),t(R,[2,76]),t(R,[2,77]),t(R,[2,78]),t(R,[2,79]),t(R,[2,80]),t(o,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:64,4:B,5:W,6:$,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:V,21:63},t(h,[2,53],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,49:[1,77],63:E,64:D,65:z,66:w,67:K}),t(h,[2,56],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,49:[1,78],63:E,64:D,65:z,66:w,67:K}),t(h,[2,57],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,58],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,59],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,60],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),{45:[1,79]},{44:[1,80]},t(R,[2,65]),t(R,[2,81]),t(R,[2,82]),t(R,[2,83]),{3:82,4:B,5:W,6:$,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:V,18:[1,81]},t(Z,[2,23]),t(Z,[2,1]),t(Z,[2,2]),t(Z,[2,3]),t(Z,[2,4]),t(Z,[2,5]),t(Z,[2,6]),t(Z,[2,7]),t(Z,[2,8]),t(Z,[2,9]),t(Z,[2,10]),t(Z,[2,11]),t(Z,[2,12]),t(h,[2,52],{58:31,43:83,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:I,63:E,64:D,65:z,66:w,67:K}),t(h,[2,55],{58:31,43:84,4:d,5:u,10:x,12:f,13:g,14:p,60:L,61:I,63:E,64:D,65:z,66:w,67:K}),{46:[1,85]},{45:[1,86]},{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:ot,20:lt,22:88,23:87},t(Z,[2,24]),t(h,[2,51],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,54],{59:59,58:60,4:d,5:u,8:U,10:x,12:f,13:g,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,47],{22:88,16:89,23:100,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),{46:[1,101]},t(h,[2,29],{10:ht}),t(ct,[2,27],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),t(dt,[2,25]),t(dt,[2,13]),t(dt,[2,14]),t(dt,[2,15]),t(dt,[2,16]),t(dt,[2,17]),t(dt,[2,18]),t(dt,[2,19]),t(dt,[2,20]),t(dt,[2,21]),t(dt,[2,22]),t(h,[2,49],{10:ht}),t(h,[2,48],{22:88,16:89,23:104,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:ot,20:lt,22:105},t(dt,[2,26]),t(h,[2,50],{10:ht}),t(ct,[2,28],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,a.K2)((function t(e,i){if(i.recoverable){this.trace(e)}else{var a=new Error(e);a.hash=i;throw a}}),"parseError"),parse:(0,a.K2)((function t(e){var i=this,n=[0],s=[],r=[null],o=[],l=this.table,h="",c=0,d=0,u=0,x=2,f=1;var g=o.slice.call(arguments,1);var p=Object.create(this.lexer);var y={yy:{}};for(var b in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,b)){y.yy[b]=this.yy[b]}}p.setInput(e,y.yy);y.yy.lexer=p;y.yy.parser=this;if(typeof p.yylloc=="undefined"){p.yylloc={}}var T=p.yylloc;o.push(T);var m=p.options&&p.options.ranges;if(typeof y.yy.parseError==="function"){this.parseError=y.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function k(t){n.length=n.length-2*t;r.length=r.length-t;o.length=o.length-t}(0,a.K2)(k,"popStack");function q(){var t;t=s.pop()||p.lex()||f;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=i.symbols_[t]||t}return t}(0,a.K2)(q,"lex");var _,A,S,F,P,v,C={},L,I,E,D;while(true){S=n[n.length-1];if(this.defaultActions[S]){F=this.defaultActions[S]}else{if(_===null||typeof _=="undefined"){_=q()}F=l[S]&&l[S][_]}if(typeof F==="undefined"||!F.length||!F[0]){var z="";D=[];for(L in l[S]){if(this.terminals_[L]&&L>x){D.push("'"+this.terminals_[L]+"'")}}if(p.showPosition){z="Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[_]||_)+"'"}else{z="Parse error on line "+(c+1)+": Unexpected "+(_==f?"end of input":"'"+(this.terminals_[_]||_)+"'")}this.parseError(z,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:T,expected:D})}if(F[0]instanceof Array&&F.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_)}switch(F[0]){case 1:n.push(_);r.push(p.yytext);o.push(p.yylloc);n.push(F[1]);_=null;if(!A){d=p.yyleng;h=p.yytext;c=p.yylineno;T=p.yylloc;if(u>0){u--}}else{_=A;A=null}break;case 2:I=this.productions_[F[1]][1];C.$=r[r.length-I];C._$={first_line:o[o.length-(I||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(I||1)].first_column,last_column:o[o.length-1].last_column};if(m){C._$.range=[o[o.length-(I||1)].range[0],o[o.length-1].range[1]]}v=this.performAction.apply(C,[h,d,c,y.yy,F[1],r,o].concat(g));if(typeof v!=="undefined"){return v}if(I){n=n.slice(0,-1*I*2);r=r.slice(0,-1*I);o=o.slice(0,-1*I)}n.push(this.productions_[F[1]][0]);r.push(C.$);o.push(C._$);E=l[n[n.length-2]][n[n.length-1]];n.push(E);break;case 3:return true}}return true}),"parse")};var xt=function(){var t={EOF:1,parseError:(0,a.K2)((function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}}),"parseError"),setInput:(0,a.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,a.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,a.K2)((function(t){var e=t.length;var i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(i.length-1){this.yylineno-=i.length-1}var n=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[n[0],n[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,a.K2)((function(){this._more=true;return this}),"more"),reject:(0,a.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,a.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,a.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,a.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,a.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,a.K2)((function(t,e){var i,a,n;if(this.options.backtrack_lexer){n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){n.yylloc.range=this.yylloc.range.slice(0)}}a=t[0].match(/(?:\r\n?|\n).*/g);if(a){this.yylineno+=a.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(i){return i}else if(this._backtrack){for(var s in n){this[s]=n[s]}return false}return false}),"test_match"),next:(0,a.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,i,a;if(!this._more){this.yytext="";this.match=""}var n=this._currentRules();for(var s=0;se[0].length)){e=i;a=s;if(this.options.backtrack_lexer){t=this.test_match(i,n[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,n[a]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,a.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,a.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,a.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,a.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,a.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,a.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,a.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,a.K2)((function t(e,i,a,n){var s=n;switch(a){case 0:break;case 1:break;case 2:return 55;break;case 3:break;case 4:this.begin("title");return 35;break;case 5:this.popState();return"title_value";break;case 6:this.begin("acc_title");return 37;break;case 7:this.popState();return"acc_title_value";break;case 8:this.begin("acc_descr");return 39;break;case 9:this.popState();return"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";break;case 13:return 48;break;case 14:return 50;break;case 15:return 49;break;case 16:return 51;break;case 17:return 52;break;case 18:return 53;break;case 19:return 54;break;case 20:return 25;break;case 21:this.begin("md_string");break;case 22:return"MD_STR";break;case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";break;case 27:this.begin("class_name");break;case 28:this.popState();return 47;break;case 29:this.begin("point_start");return 44;break;case 30:this.begin("point_x");return 45;break;case 31:this.popState();break;case 32:this.popState();this.begin("point_y");break;case 33:this.popState();return 46;break;case 34:return 28;break;case 35:return 4;break;case 36:return 11;break;case 37:return 64;break;case 38:return 10;break;case 39:return 65;break;case 40:return 65;break;case 41:return 14;break;case 42:return 13;break;case 43:return 67;break;case 44:return 66;break;case 45:return 12;break;case 46:return 8;break;case 47:return 5;break;case 48:return 18;break;case 49:return 56;break;case 50:return 63;break;case 51:return 57;break}}),"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:false},point_y:{rules:[33],inclusive:false},point_x:{rules:[32],inclusive:false},point_start:{rules:[30,31],inclusive:false},acc_descr_multiline:{rules:[11,12],inclusive:false},acc_descr:{rules:[9],inclusive:false},acc_title:{rules:[7],inclusive:false},title:{rules:[5],inclusive:false},md_string:{rules:[22,23],inclusive:false},string:{rules:[25,26],inclusive:false},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:true}}};return t}();ut.lexer=xt;function ft(){this.yy={}}(0,a.K2)(ft,"Parser");ft.prototype=ut;ut.Parser=ft;return new ft}();s.parser=s;var r=s;var o=(0,a.P$)();var l=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig();this.themeConfig=this.getDefaultThemeConfig();this.data=this.getDefaultData()}static{(0,a.K2)(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:true,showYAxis:true,showTitle:true,chartHeight:a.UI.quadrantChart?.chartWidth||500,chartWidth:a.UI.quadrantChart?.chartHeight||500,titlePadding:a.UI.quadrantChart?.titlePadding||10,titleFontSize:a.UI.quadrantChart?.titleFontSize||20,quadrantPadding:a.UI.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:a.UI.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:a.UI.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:a.UI.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:a.UI.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:a.UI.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:a.UI.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:a.UI.quadrantChart?.pointTextPadding||5,pointLabelFontSize:a.UI.quadrantChart?.pointLabelFontSize||12,pointRadius:a.UI.quadrantChart?.pointRadius||5,xAxisPosition:a.UI.quadrantChart?.xAxisPosition||"top",yAxisPosition:a.UI.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig();this.themeConfig=this.getDefaultThemeConfig();this.data=this.getDefaultData();this.classes=new Map;a.Rm.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){a.Rm.trace("setConfig called with: ",t);this.config={...this.config,...t}}setThemeConfig(t){a.Rm.trace("setThemeConfig called with: ",t);this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){const n=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize;const s={top:t==="top"&&e?n:0,bottom:t==="bottom"&&e?n:0};const r=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize;const o={left:this.config.yAxisPosition==="left"&&i?r:0,right:this.config.yAxisPosition==="right"&&i?r:0};const l=this.config.titleFontSize+this.config.titlePadding*2;const h={top:a?l:0};const c=this.config.quadrantPadding+o.left;const d=this.config.quadrantPadding+s.top+h.top;const u=this.config.chartWidth-this.config.quadrantPadding*2-o.left-o.right;const x=this.config.chartHeight-this.config.quadrantPadding*2-s.top-s.bottom-h.top;const f=u/2;const g=x/2;const p={quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:f,quadrantHeight:x,quadrantHalfHeight:g};return{xAxisSpace:s,yAxisSpace:o,titleSpace:h,quadrantSpace:p}}getAxisLabels(t,e,i,a){const{quadrantSpace:n,titleSpace:s}=a;const{quadrantHalfHeight:r,quadrantHeight:o,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n;const u=Boolean(this.data.xAxisRightText);const x=Boolean(this.data.yAxisTopText);const f=[];if(this.data.xAxisLeftText&&e){f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(u?h/2:0),y:t==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0})}if(this.data.xAxisRightText&&e){f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+h+(u?h/2:0),y:t==="top"?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0})}if(this.data.yAxisBottomText&&i){f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+d+this.config.quadrantPadding,y:c+o-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90})}if(this.data.yAxisTopText&&i){f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+d+this.config.quadrantPadding,y:c+r-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90})}return f}getQuadrants(t){const{quadrantSpace:e}=t;const{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s}=e;const r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s,width:n,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s,width:n,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant4Fill}];for(const o of r){o.text.x=o.x+o.width/2;if(this.data.points.length===0){o.text.y=o.y+o.height/2;o.text.horizontalPos="middle"}else{o.text.y=o.y+this.config.quadrantTextTopPadding;o.text.horizontalPos="top"}}return r}getQuadrantPoints(t){const{quadrantSpace:e}=t;const{quadrantHeight:i,quadrantLeft:a,quadrantTop:s,quadrantWidth:r}=e;const o=(0,n.m4Y)().domain([0,1]).range([a,r+a]);const l=(0,n.m4Y)().domain([0,1]).range([i+s,s]);const h=this.data.points.map((t=>{const e=this.classes.get(t.className);if(e){t={...e,...t}}const i={x:o(t.x),y:l(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:o(t.x),y:l(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"};return i}));return h}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2;const{quadrantSpace:i}=t;const{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:s,quadrantHalfWidth:r,quadrantTop:o,quadrantWidth:l}=i;const h=[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:o,x2:s+l+e,y2:o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+l,y1:o+e,x2:s+l,y2:o+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:o+n,x2:s+l+e,y2:o+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:o+e,x2:s,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:o+e,x2:s+r,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+e,y1:o+a,x2:s+l-e,y2:o+a}];return h}getTitle(t){if(t){return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}return}build(){const t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText);const e=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText);const i=this.config.showTitle&&!!this.data.titleText;const a=this.data.points.length>0?"bottom":this.config.xAxisPosition;const n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}};var h=class extends Error{static{(0,a.K2)(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`);this.name="InvalidStyleError"}};function c(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}(0,a.K2)(c,"validateHexCode");function d(t){return!/^\d+$/.test(t)}(0,a.K2)(d,"validateNumber");function u(t){return!/^\d+px$/.test(t)}(0,a.K2)(u,"validateSizeInPixels");var x=(0,a.D7)();function f(t){return(0,a.jZ)(t.trim(),x)}(0,a.K2)(f,"textSanitizer");var g=new l;function p(t){g.setData({quadrant1Text:f(t.text)})}(0,a.K2)(p,"setQuadrant1Text");function y(t){g.setData({quadrant2Text:f(t.text)})}(0,a.K2)(y,"setQuadrant2Text");function b(t){g.setData({quadrant3Text:f(t.text)})}(0,a.K2)(b,"setQuadrant3Text");function T(t){g.setData({quadrant4Text:f(t.text)})}(0,a.K2)(T,"setQuadrant4Text");function m(t){g.setData({xAxisLeftText:f(t.text)})}(0,a.K2)(m,"setXAxisLeftText");function k(t){g.setData({xAxisRightText:f(t.text)})}(0,a.K2)(k,"setXAxisRightText");function q(t){g.setData({yAxisTopText:f(t.text)})}(0,a.K2)(q,"setYAxisTopText");function _(t){g.setData({yAxisBottomText:f(t.text)})}(0,a.K2)(_,"setYAxisBottomText");function A(t){const e={};for(const i of t){const[t,a]=i.trim().split(/\s*:\s*/);if(t==="radius"){if(d(a)){throw new h(t,a,"number")}e.radius=parseInt(a)}else if(t==="color"){if(c(a)){throw new h(t,a,"hex code")}e.color=a}else if(t==="stroke-color"){if(c(a)){throw new h(t,a,"hex code")}e.strokeColor=a}else if(t==="stroke-width"){if(u(a)){throw new h(t,a,"number of pixels (eg. 10px)")}e.strokeWidth=a}else{throw new Error(`style named ${t} is not supported.`)}}return e}(0,a.K2)(A,"parseStyles");function S(t,e,i,a,n){const s=A(n);g.addPoints([{x:i,y:a,text:f(t.text),className:e,...s}])}(0,a.K2)(S,"addPoint");function F(t,e){g.addClass(t,A(e))}(0,a.K2)(F,"addClass");function P(t){g.setConfig({chartWidth:t})}(0,a.K2)(P,"setWidth");function v(t){g.setConfig({chartHeight:t})}(0,a.K2)(v,"setHeight");function C(){const t=(0,a.D7)();const{themeVariables:e,quadrantChart:i}=t;if(i){g.setConfig(i)}g.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill});g.setData({titleText:(0,a.ab)()});return g.build()}(0,a.K2)(C,"getQuadrantData");var L=(0,a.K2)((function(){g.clear();(0,a.IU)()}),"clear");var I={setWidth:P,setHeight:v,setQuadrant1Text:p,setQuadrant2Text:y,setQuadrant3Text:b,setQuadrant4Text:T,setXAxisLeftText:m,setXAxisRightText:k,setYAxisTopText:q,setYAxisBottomText:_,parseStyles:A,addPoint:S,addClass:F,getQuadrantData:C,clear:L,setAccTitle:a.SV,getAccTitle:a.iN,setDiagramTitle:a.ke,getDiagramTitle:a.ab,getAccDescription:a.m7,setAccDescription:a.EI};var E=(0,a.K2)(((t,e,i,s)=>{function r(t){return t==="top"?"hanging":"middle"}(0,a.K2)(r,"getDominantBaseLine");function o(t){return t==="left"?"start":"middle"}(0,a.K2)(o,"getTextAnchor");function l(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,a.K2)(l,"getTransformation");const h=(0,a.D7)();a.Rm.debug("Rendering quadrant chart\n"+t);const c=h.securityLevel;let d;if(c==="sandbox"){d=(0,n.Ltv)("#i"+e)}const u=c==="sandbox"?(0,n.Ltv)(d.nodes()[0].contentDocument.body):(0,n.Ltv)("body");const x=u.select(`[id="${e}"]`);const f=x.append("g").attr("class","main");const g=h.quadrantChart?.chartWidth??500;const p=h.quadrantChart?.chartHeight??500;(0,a.a$)(x,p,g,h.quadrantChart?.useMaxWidth??true);x.attr("viewBox","0 0 "+g+" "+p);s.db.setHeight(p);s.db.setWidth(g);const y=s.db.getQuadrantData();const b=f.append("g").attr("class","quadrants");const T=f.append("g").attr("class","border");const m=f.append("g").attr("class","data-points");const k=f.append("g").attr("class","labels");const q=f.append("g").attr("class","title");if(y.title){q.append("text").attr("x",0).attr("y",0).attr("fill",y.title.fill).attr("font-size",y.title.fontSize).attr("dominant-baseline",r(y.title.horizontalPos)).attr("text-anchor",o(y.title.verticalPos)).attr("transform",l(y.title)).text(y.title.text)}if(y.borderLines){T.selectAll("line").data(y.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth))}const _=b.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class","quadrant");_.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill));_.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>r(t.text.horizontalPos))).attr("text-anchor",(t=>o(t.text.verticalPos))).attr("transform",(t=>l(t.text))).text((t=>t.text.text));const A=k.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class","label");A.append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>r(t.horizontalPos))).attr("text-anchor",(t=>o(t.verticalPos))).attr("transform",(t=>l(t)));const S=m.selectAll("g.data-point").data(y.points).enter().append("g").attr("class","data-point");S.append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeColor)).attr("stroke-width",(t=>t.strokeWidth));S.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>r(t.text.horizontalPos))).attr("text-anchor",(t=>o(t.text.verticalPos))).attr("transform",(t=>l(t.text)))}),"draw");var D={draw:E};var z={parser:r,db:I,renderer:D,styles:(0,a.K2)((()=>""),"styles")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4350.8c8a0e7a3ffe036494e1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4350.8c8a0e7a3ffe036494e1.js new file mode 100644 index 0000000000000000000000000000000000000000..730a8c9cf865e5588b6951ae692d9f4767fe3134 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4350.8c8a0e7a3ffe036494e1.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4350],{32017:e=>{"use strict";e.exports=function e(n,t){if(n===t)return true;if(n&&t&&typeof n=="object"&&typeof t=="object"){if(n.constructor!==t.constructor)return false;var i,r,s;if(Array.isArray(n)){i=n.length;if(i!=t.length)return false;for(r=i;r--!==0;)if(!e(n[r],t[r]))return false;return true}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();s=Object.keys(n);i=s.length;if(i!==Object.keys(t).length)return false;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return false;for(r=i;r--!==0;){var o=s[r];if(!e(n[o],t[o]))return false}return true}return n!==n&&t!==t}},72492:e=>{"use strict";e.exports=function(e,n){if(!n)n={};if(typeof n==="function")n={cmp:n};var t=typeof n.cycles==="boolean"?n.cycles:false;var i=n.cmp&&function(e){return function(n){return function(t,i){var r={key:t,value:n[t]};var s={key:i,value:n[i]};return e(r,s)}}}(n.cmp);var r=[];return function e(n){if(n&&n.toJSON&&typeof n.toJSON==="function"){n=n.toJSON()}if(n===undefined)return;if(typeof n=="number")return isFinite(n)?""+n:"null";if(typeof n!=="object")return JSON.stringify(n);var s,o;if(Array.isArray(n)){o="[";for(s=0;s{"use strict";t.d(n,{P:()=>h});const i="view",r="[",s="]",o="{",a="}",u=":",c=",",l="@",f=">",d=/[[\]{}]/,p={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let g,m;function h(e,n,t){g=n||i;m=t||p;return v(e.trim()).map(O)}function b(e){return m[e]}function y(e,n,t,i,r){const s=e.length;let o=0,a;for(;n=0)--o;else if(i&&i.indexOf(a)>=0)++o}return n}function v(e){const n=[],t=e.length;let i=0,u=0;while(u' after between selector: "+e}i=i.map(O);const o=O(e.slice(1).trim());if(o.between){return{between:i,stream:o}}else{o.between=i}return o}function w(e){const n={source:g},t=[];let i=[0,0],c=0,f=0,p=e.length,m=0,h,v;if(e[p-1]===a){m=e.lastIndexOf(o);if(m>=0){try{i=j(e.substring(m+1,p-1))}catch(O){throw"Invalid throttle specification: "+e}e=e.slice(0,m).trim();p=e.length}else throw"Unmatched right brace: "+e;m=0}if(!p)throw e;if(e[0]===l)c=++m;h=y(e,m,u);if(h1){n.type=t[1];if(c){n.markname=t[0].slice(1)}else if(b(t[0])){n.marktype=t[0]}else{n.source=t[0]}}else{n.type=t[0]}if(n.type.slice(-1)==="!"){n.consume=true;n.type=n.type.slice(0,-1)}if(v!=null)n.filter=v;if(i[0])n.throttle=i[0];if(i[1])n.debounce=i[1];return n}function j(e){const n=e.split(c);if(!e.length||n.length>2)throw e;return n.map((n=>{const t=+n;if(t!==t)throw e;return t}))}},54350:(e,n,t)=>{"use strict";t.r(n);t.d(n,{accessPathDepth:()=>Q,accessPathWithDatum:()=>W,compile:()=>Iw,contains:()=>F,deepEqual:()=>h,deleteNestedProperty:()=>R,duplicate:()=>b,entries:()=>M,every:()=>D,fieldIntersection:()=>_,flatAccessWithDatum:()=>H,getFirstDefined:()=>X,hasIntersection:()=>B,hash:()=>w,internalField:()=>ne,isBoolean:()=>L,isEmpty:()=>z,isEqual:()=>S,isInternalField:()=>te,isNullOrFalse:()=>j,isNumeric:()=>re,keys:()=>N,logicalExpr:()=>U,mergeDeep:()=>A,never:()=>y,normalize:()=>bd,normalizeAngle:()=>ie,omit:()=>O,pick:()=>v,prefixGenerator:()=>P,removePathFromField:()=>V,replaceAll:()=>K,replacePathInField:()=>Y,resetIdCounter:()=>ee,setEqual:()=>E,some:()=>$,stringify:()=>x,titleCase:()=>I,unique:()=>C,uniqueId:()=>Z,vals:()=>T,varName:()=>q,version:()=>Gw});const i={rE:"5.6.1"};var r=t(26372);var s=t(18729);var o=t.n(s);var a=t(32017);var u=t.n(a);var c=t(72492);var l=t.n(c);function f(e){return!!e.or}function d(e){return!!e.and}function p(e){return!!e.not}function g(e,n){if(p(e)){g(e.not,n)}else if(d(e)){for(const t of e.and){g(t,n)}}else if(f(e)){for(const t of e.or){g(t,n)}}else{n(e)}}function m(e,n){if(p(e)){return{not:m(e.not,n)}}else if(d(e)){return{and:e.and.map((e=>m(e,n)))}}else if(f(e)){return{or:e.or.map((e=>m(e,n)))}}else{return n(e)}}const h=u();const b=o();function y(e){throw new Error(e)}function v(e,n){const t={};for(const i of n){if((0,r.mQ)(e,i)){t[i]=e[i]}}return t}function O(e,n){const t=Object.assign({},e);for(const i of n){delete t[i]}return t}Set.prototype["toJSON"]=function(){return`Set(${[...this].map((e=>l()(e))).join(",")})`};const x=l();function w(e){if((0,r.Et)(e)){return e}const n=(0,r.Kg)(e)?e:l()(e);if(n.length<250){return n}let t=0;for(let i=0;in===0?e:`[${e}]`));const s=i.map(((e,n)=>i.slice(0,n+1).join("")));for(const t of s){n.add(t)}}return n}function _(e,n){if(e===undefined||n===undefined){return true}return B(P(e),P(n))}function z(e){return N(e).length===0}const N=Object.keys;const T=Object.values;const M=Object.entries;function L(e){return e===true||e===false}function q(e){const n=e.replace(/\W/g,"_");return(e.match(/^\d+/)?"_":"")+n}function U(e,n){if(p(e)){return`!(${U(e.not,n)})`}else if(d(e)){return`(${e.and.map((e=>U(e,n))).join(") && (")})`}else if(f(e)){return`(${e.or.map((e=>U(e,n))).join(") || (")})`}else{return n(e)}}function R(e,n){if(n.length===0){return true}const t=n.shift();if(t in e&&R(e[t],n)){delete e[t]}return z(e)}function I(e){return e.charAt(0).toUpperCase()+e.substr(1)}function W(e,n="datum"){const t=(0,r.iv)(e);const i=[];for(let s=1;s<=t.length;s++){const e=`[${t.slice(0,s).map(r.r$).join("][")}]`;i.push(`${n}${e}`)}return i.join(" && ")}function H(e,n="datum"){return`${n}[${(0,r.r$)((0,r.iv)(e).join("."))}]`}function G(e){return e.replace(/(\[|\]|\.|'|")/g,"\\$1")}function Y(e){return`${(0,r.iv)(e).map(G).join("\\.")}`}function K(e,n,t){return e.replace(new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),t)}function V(e){return`${(0,r.iv)(e).join(".")}`}function Q(e){if(!e){return 0}return(0,r.iv)(e).length}function X(...e){for(const n of e){if(n!==undefined){return n}}return undefined}let J=42;function Z(e){const n=++J;return e?String(e)+n:n}function ee(){J=42}function ne(e){return te(e)?e:`__${e}`}function te(e){return e.startsWith("__")}function ie(e){if(e===undefined){return undefined}return(e%360+360)%360}function re(e){if((0,r.Et)(e)){return true}return!isNaN(e)&&!isNaN(parseFloat(e))}var se=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rSt(e[n])?q(`_${n}_${M(e[n])}`):q(`_${n}_${e[n]}`))).join("")}function At(e){return e===true||Ct(e)&&!e.binned}function kt(e){return e==="binned"||Ct(e)&&e.binned===true}function Ct(e){return(0,r.Gv)(e)}function St(e){return e===null||e===void 0?void 0:e["param"]}function Et(e){switch(e){case oe:case ae:case Ae:case je:case Fe:case $e:case Be:case Ce:case Se:case Ee:case De:return 6;case Pe:return 4;default:return 10}}function Bt(e){return!!(e===null||e===void 0?void 0:e.expr)}function Pt(e){const n=N(e||{});const t={};for(const i of n){t[i]=Vt(e[i])}return t}var _t=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var i;e.field.push(Du(t,n));e.order.push((i=t.sort)!==null&&i!==void 0?i:"ascending");return e}),{field:[],order:[]})}function ui(e,n){const t=[...e];n.forEach((e=>{for(const n of t){if(h(n,e)){return}}t.push(e)}));return t}function ci(e,n){if(h(e,n)||!n){return e}else if(!e){return n}else{return[...(0,r.YO)(e),...(0,r.YO)(n)].join(", ")}}function li(e,n){const t=e.value;const i=n.value;if(t==null||i===null){return{explicit:e.explicit,value:null}}else if((Nt(t)||Tt(t))&&(Nt(i)||Tt(i))){return{explicit:e.explicit,value:ci(t,i)}}else if(Nt(t)||Tt(t)){return{explicit:e.explicit,value:t}}else if(Nt(i)||Tt(i)){return{explicit:e.explicit,value:i}}else if(!Nt(t)&&!Tt(t)&&!Nt(i)&&!Tt(i)){return{explicit:e.explicit,value:ui(t,i)}}throw new Error("It should never reach here")}function fi(e){return`Invalid specification ${x(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`}const di='Autosize "fit" only works for single views and layered views.';function pi(e){const n=e=="width"?"Width":"Height";return`${n} "container" only works for single views and layered views.`}function gi(e){const n=e=="width"?"Width":"Height";const t=e=="width"?"x":"y";return`${n} "container" only works well with autosize "fit" or "fit-${t}".`}function mi(e){return e?`Dropping "fit-${e}" because spec has discrete ${vn(e)}.`:`Dropping "fit" because spec has discrete size.`}function hi(e){return`Unknown field for ${e}. Cannot calculate view size.`}function bi(e){return`Cannot project a selection on encoding channel "${e}", which has no field.`}function yi(e,n){return`Cannot project a selection on encoding channel "${e}" as it uses an aggregate function ("${n}").`}function vi(e){return`The "nearest" transform is not supported for ${e} marks.`}function Oi(e){return`Selection not supported for ${e} yet.`}function xi(e){return`Cannot find a selection named "${e}".`}const wi="Scale bindings are currently only supported for scales with unbinned, continuous domains.";const ji="Legend bindings are only supported for selections over an individual field or encoding channel.";function Fi(e){return`Lookups can only be performed on selection parameters. "${e}" is a variable parameter.`}function $i(e){return`Cannot define and lookup the "${e}" selection in the same view. `+`Try moving the lookup into a second, layered view?`}const Di="The same selection must be used to override scale domains in a layered view.";const Ai='Interval selections should be initialized using "x" and/or "y" keys.';function ki(e){return`Unknown repeated value "${e}".`}function Ci(e){return`The "columns" property cannot be used when "${e}" has nested row/column.`}const Si="Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415).";function Ei(e){return`Unrecognized parse "${e}".`}function Bi(e,n,t){return`An ancestor parsed field "${e}" as ${t} but a child wants to parse the field as ${n}.`}const Pi="Attempt to add the same child twice.";function _i(e){return`Ignoring an invalid transform: ${x(e)}.`}const zi='If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';function Ni(e){return`Config.customFormatTypes is not true, thus custom format type and format for channel ${e} are dropped.`}function Ti(e){const{parentProjection:n,projection:t}=e;return`Layer's shared projection ${x(n)} is overridden by a child projection ${x(t)}.`}const Mi="Arc marks uses theta channel rather than angle, replacing angle with theta.";function Li(e){return`${e}Offset dropped because ${e} is continuous`}function qi(e){return`There is no ${e} encoding. Replacing ${e}Offset encoding as ${e}.`}function Ui(e,n,t){return`Channel ${e} is a ${n}. Converted to {value: ${x(t)}}.`}function Ri(e){return`Invalid field type "${e}".`}function Ii(e,n){return`Invalid field type "${e}" for aggregate: "${n}", using "quantitative" instead.`}function Wi(e){return`Invalid aggregation operator "${e}".`}function Hi(e,n){return`Missing type for channel "${e}", using "${n}" instead.`}function Gi(e,n){const{fill:t,stroke:i}=n;return`Dropping color ${e} as the plot also has ${t&&i?"fill and stroke":t?"fill":"stroke"}.`}function Yi(e){return`Position range does not support relative band size for ${e}.`}function Ki(e,n){return`Dropping ${x(e)} from channel "${n}" since it does not contain any data field, datum, value, or signal.`}const Vi="Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";function Qi(e,n,t){return`${e} dropped as it is incompatible with "${n}"${t?` when ${t}`:""}.`}function Xi(e){return`${e} encoding has no scale, so specified scale is ignored.`}function Ji(e){return`${e}-encoding is dropped as ${e} is not a valid encoding channel.`}function Zi(e){return`${e} encoding should be discrete (ordinal / nominal / binned).`}function er(e){return`${e} encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).`}function nr(e){return`Facet encoding dropped as ${e.join(" and ")} ${e.length>1?"are":"is"} also specified.`}function tr(e,n){return`Using discrete channel "${e}" to encode "${n}" field can be misleading as it does not encode ${n==="ordinal"?"order":"magnitude"}.`}function ir(e){return`The ${e} for range marks cannot be an expression`}function rr(e,n){const t=e&&n?"x2 and y2":e?"x2":"y2";return`Line mark is for continuous lines and thus cannot be used with ${t}. We will use the rule mark (line segments) instead.`}function sr(e,n){return`Specified orient "${e}" overridden with "${n}".`}const or="Custom domain scale cannot be unioned with default field-based domain.";function ar(e){return`Cannot use the scale property "${e}" with non-color channel.`}function ur(e){return`Cannot use the relative band size with ${e} scale.`}function cr(e){return`Using unaggregated domain with raw field has no effect (${x(e)}).`}function lr(e){return`Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`}function fr(e){return`Unaggregated domain is currently unsupported for log scale (${x(e)}).`}function dr(e){return`Cannot apply size to non-oriented mark "${e}".`}function pr(e,n,t){return`Channel "${e}" does not work with "${n}" scale. We are using "${t}" scale instead.`}function gr(e,n){return`FieldDef does not work with "${e}" scale. We are using "${n}" scale instead.`}function mr(e,n,t){return`${t}-scale's "${n}" is dropped as it does not work with ${e} scale.`}function hr(e,n){return`Scale type "${n}" does not work with mark "${e}".`}function br(e){return`The step for "${e}" is dropped because the ${e==="width"?"x":"y"} is continuous.`}function yr(e,n,t,i){return`Conflicting ${n.toString()} property "${e.toString()}" (${x(t)} and ${x(i)}). Using ${x(t)}.`}function vr(e,n,t,i){return`Conflicting ${n.toString()} property "${e.toString()}" (${x(t)} and ${x(i)}). Using the union of the two domains.`}function Or(e){return`Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`}function xr(e){return`Dropping sort property ${x(e)} as unioned domains only support boolean or op "count", "min", and "max".`}const wr="Domains that should be unioned has conflicting sort properties. Sort will be set to true.";const jr="Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect.";const Fr="Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect.";const $r="Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.";const Dr="Invalid channel for axis.";function Ar(e){return`Cannot stack "${e}" if there is already "${e}2".`}function kr(e){return`Cannot stack non-linear scale (${e}).`}function Cr(e){return`Stacking is applied even though the aggregate function is non-summative ("${e}").`}function Sr(e,n){return`Invalid ${e}: ${x(n)}.`}function Er(e){return`Dropping day from datetime ${x(e)} as day cannot be combined with other units.`}function Br(e,n){return`${n?"extent ":""}${n&&e?"and ":""}${e?"center ":""}${n&&e?"are ":"is "}not needed when data are aggregated.`}function Pr(e,n,t){return`${e} is not usually used with ${n} for ${t}.`}function _r(e,n){return`Continuous axis should not have customized aggregation function ${e}; ${n} already agregates the axis.`}function zr(e){return`1D error band does not support ${e}.`}function Nr(e){return`Channel ${e} is required for "binned" bin.`}function Tr(e){return`Channel ${e} should not be used with "binned" bin.`}function Mr(e){return`Domain for ${e} is required for threshold scale.`}var Lr=undefined&&undefined.__classPrivateFieldSet||function(e,n,t,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof n==="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,t):r?r.value=t:n.set(e,t),t};var qr=undefined&&undefined.__classPrivateFieldGet||function(e,n,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n==="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(e):i?i.value:n.get(e)};var Ur;const Rr=(0,r.vF)(r.P$);let Ir=Rr;class Wr{constructor(){this.warns=[];this.infos=[];this.debugs=[];Ur.set(this,Warn)}level(e){if(e){Lr(this,Ur,e,"f");return this}return qr(this,Ur,"f")}warn(...e){if(qr(this,Ur,"f")>=Warn)this.warns.push(...e);return this}info(...e){if(qr(this,Ur,"f")>=Info)this.infos.push(...e);return this}debug(...e){if(qr(this,Ur,"f")>=Debug)this.debugs.push(...e);return this}error(...e){if(qr(this,Ur,"f")>=ErrorLevel)throw Error(...e);return this}}Ur=new WeakMap;function Hr(e){return()=>{Ir=new Wr;e(Ir);Yr()}}function Gr(e){Ir=e;return Ir}function Yr(){Ir=Rr;return Ir}function Kr(...e){Ir.error(...e)}function Vr(...e){Ir.warn(...e)}function Qr(...e){Ir.info(...e)}function Xr(...e){Ir.debug(...e)}function Jr(e){if(e&&(0,r.Gv)(e)){for(const n of ds){if(n in e){return true}}}return false}const Zr=["january","february","march","april","may","june","july","august","september","october","november","december"];const es=Zr.map((e=>e.substr(0,3)));const ns=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];const ts=ns.map((e=>e.substr(0,3)));function is(e){if(re(e)){e=+e}if((0,r.Et)(e)){if(e>4){Vr(Sr("quarter",e))}return e-1}else{throw new Error(Sr("quarter",e))}}function rs(e){if(re(e)){e=+e}if((0,r.Et)(e)){return e-1}else{const n=e.toLowerCase();const t=Zr.indexOf(n);if(t!==-1){return t}const i=n.substr(0,3);const r=es.indexOf(i);if(r!==-1){return r}throw new Error(Sr("month",e))}}function ss(e){if(re(e)){e=+e}if((0,r.Et)(e)){return e%7}else{const n=e.toLowerCase();const t=ns.indexOf(n);if(t!==-1){return t}const i=n.substr(0,3);const r=ts.indexOf(i);if(r!==-1){return r}throw new Error(Sr("day",e))}}function os(e,n){const t=[];if(n&&e.day!==undefined){if(N(e).length>1){Vr(Er(e));e=b(e);delete e.day}}if(e.year!==undefined){t.push(e.year)}else{t.push(2012)}if(e.month!==undefined){const i=n?rs(e.month):e.month;t.push(i)}else if(e.quarter!==undefined){const i=n?is(e.quarter):e.quarter;t.push((0,r.Et)(i)?i*3:`${i}*3`)}else{t.push(0)}if(e.date!==undefined){t.push(e.date)}else if(e.day!==undefined){const i=n?ss(e.day):e.day;t.push((0,r.Et)(i)?i+1:`${i}+1`)}else{t.push(1)}for(const i of["hours","minutes","seconds","milliseconds"]){const n=e[i];t.push(typeof n==="undefined"?0:n)}return t}function as(e){const n=os(e,true);const t=n.join(", ");if(e.utc){return`utc(${t})`}else{return`datetime(${t})`}}function us(e){const n=os(e,false);const t=n.join(", ");if(e.utc){return`utc(${t})`}else{return`datetime(${t})`}}function cs(e){const n=os(e,true);if(e.utc){return+new Date(Date.UTC(...n))}else{return+new Date(...n)}}var ls=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rxs(e,n)))}function xs(e,n){const t=e.indexOf(n);if(t<0){return false}if(t>0&&n==="seconds"&&e.charAt(t-1)==="i"){return false}if(e.length>t+3&&n==="day"&&e.charAt(t+3)==="o"){return false}if(t>0&&n==="year"&&e.charAt(t-1)==="f"){return false}return true}function ws(e,n,{end:t}={end:false}){const i=W(n);const r=bs(e)?"utc":"";function s(e){if(e==="quarter"){return`(${r}quarter(${i})-1)`}else{return`${r}${e}(${i})`}}let o;const a={};for(const u of ds){if(xs(e,u)){a[u]=s(u);o=u}}if(t){a[o]+="+1"}return us(a)}function js(e){if(!e){return undefined}const n=Os(e);return`timeUnitSpecifier(${x(n)}, ${x(vs)})`}function Fs(e,n,t){if(!e){return undefined}const i=js(e);const r=t||bs(e);return`${r?"utc":"time"}Format(${n}, ${i})`}function $s(e){if(!e){return undefined}let n;if((0,r.Kg)(e)){n={unit:e}}else if((0,r.Gv)(e)){n=Object.assign(Object.assign({},e),e.unit?{unit:e.unit}:{})}if(bs(n.unit)){n.utc=true;n.unit=ys(n.unit)}return n}function Ds(e){const n=$s(e),{utc:t}=n,i=ls(n,["utc"]);if(i.unit){return(t?"utc":"")+N(i).map((e=>q(`${e==="unit"?"":`_${e}_`}${i[e]}`))).join("")}else{return(t?"utc":"")+"timeunit"+N(i).map((e=>q(`_${e}_${i[e]}`))).join("")}}function As(e){return e===null||e===void 0?void 0:e["param"]}function ks(e){return!!(e===null||e===void 0?void 0:e.field)&&e.equal!==undefined}function Cs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.lt!==undefined}function Ss(e){return!!(e===null||e===void 0?void 0:e.field)&&e.lte!==undefined}function Es(e){return!!(e===null||e===void 0?void 0:e.field)&&e.gt!==undefined}function Bs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.gte!==undefined}function Ps(e){if(e===null||e===void 0?void 0:e.field){if((0,r.cy)(e.range)&&e.range.length===2){return true}else if(Tt(e.range)){return true}}return false}function _s(e){return!!(e===null||e===void 0?void 0:e.field)&&((0,r.cy)(e.oneOf)||(0,r.cy)(e.in))}function zs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.valid!==undefined}function Ns(e){return _s(e)||ks(e)||Ps(e)||Cs(e)||Es(e)||Ss(e)||Bs(e)}function Ts(e,n){return Ju(e,{timeUnit:n,wrapTime:true})}function Ms(e,n){return e.map((e=>Ts(e,n)))}function Ls(e,n=true){var t;const{field:i}=e;const r=(t=$s(e.timeUnit))===null||t===void 0?void 0:t.unit;const s=r?`time(${ws(r,i)})`:Du(e,{expr:"datum"});if(ks(e)){return`${s}===${Ts(e.equal,r)}`}else if(Cs(e)){const n=e.lt;return`${s}<${Ts(n,r)}`}else if(Es(e)){const n=e.gt;return`${s}>${Ts(n,r)}`}else if(Ss(e)){const n=e.lte;return`${s}<=${Ts(n,r)}`}else if(Bs(e)){const n=e.gte;return`${s}>=${Ts(n,r)}`}else if(_s(e)){return`indexof([${Ms(e.oneOf,r).join(",")}], ${s}) !== -1`}else if(zs(e)){return qs(s,e.valid)}else if(Ps(e)){const{range:t}=e;const i=Tt(t)?{signal:`${t.signal}[0]`}:t[0];const o=Tt(t)?{signal:`${t.signal}[1]`}:t[1];if(i!==null&&o!==null&&n){return"inrange("+s+", ["+Ts(i,r)+", "+Ts(o,r)+"])"}const a=[];if(i!==null){a.push(`${s} >= ${Ts(i,r)}`)}if(o!==null){a.push(`${s} <= ${Ts(o,r)}`)}return a.length>0?a.join(" && "):"true"}throw new Error(`Invalid field predicate: ${x(e)}`)}function qs(e,n=true){if(n){return`isValid(${e}) && isFinite(+${e})`}else{return`!isValid(${e}) || !isFinite(+${e})`}}function Us(e){var n;if(Ns(e)&&e.timeUnit){return Object.assign(Object.assign({},e),{timeUnit:(n=$s(e.timeUnit))===null||n===void 0?void 0:n.unit})}return e}var Rs=t(78352);const Is={quantitative:"quantitative",ordinal:"ordinal",temporal:"temporal",nominal:"nominal",geojson:"geojson"};function Ws(e){return e in Is}function Hs(e){return e==="quantitative"||e==="temporal"}function Gs(e){return e==="ordinal"||e==="nominal"}const Ys=Is.quantitative;const Ks=Is.ordinal;const Vs=Is.temporal;const Qs=Is.nominal;const Xs=Is.geojson;const Js=N(Is);function Zs(e){if(e){e=e.toLowerCase();switch(e){case"q":case Ys:return"quantitative";case"t":case Vs:return"temporal";case"o":case Ks:return"ordinal";case"n":case Qs:return"nominal";case Xs:return"geojson"}}return undefined}var eo=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{switch(n.fieldTitle){case"plain":return e.field;case"functional":return Eu(e);default:return Su(e,n)}};let Pu=Bu;function _u(e){Pu=e}function zu(){_u(Bu)}function Nu(e,n,{allowDisabling:t,includeDefault:i=true}){var r,s;const o=(r=Tu(e))===null||r===void 0?void 0:r.title;if(!fu(e)){return o!==null&&o!==void 0?o:e.title}const a=e;const u=i?Mu(a,n):undefined;if(t){return X(o,a.title,u)}else{return(s=o!==null&&o!==void 0?o:a.title)!==null&&s!==void 0?s:u}}function Tu(e){if(xu(e)&&e.axis){return e.axis}else if(wu(e)&&e.legend){return e.legend}else if(Xa(e)&&e.header){return e.header}return undefined}function Mu(e,n){return Pu(e,n)}function Lu(e){var n;if(ju(e)){const{format:n,formatType:t}=e;return{format:n,formatType:t}}else{const t=(n=Tu(e))!==null&&n!==void 0?n:{};const{format:i,formatType:r}=t;return{format:i,formatType:r}}}function qu(e,n){var t;switch(n){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(iu(e)&&(0,r.cy)(e.sort)){return"ordinal"}const{aggregate:i,bin:s,timeUnit:o}=e;if(o){return"temporal"}if(s||i&&!vt(i)&&!yt(i)){return"quantitative"}if(Ou(e)&&((t=e.scale)===null||t===void 0?void 0:t.type)){switch(to[e.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}}return"nominal"}function Uu(e){if(fu(e)){return e}else if(uu(e)){return e.condition}return undefined}function Ru(e){if(bu(e)){return e}else if(cu(e)){return e.condition}return undefined}function Iu(e,n,t,i={}){if((0,r.Kg)(e)||(0,r.Et)(e)||(0,r.Lm)(e)){const t=(0,r.Kg)(e)?"string":(0,r.Et)(e)?"number":"boolean";Vr(Ui(n,t,e));return{value:e}}if(bu(e)){return Wu(e,n,t,i)}else if(cu(e)){return Object.assign(Object.assign({},e),{condition:Wu(e.condition,n,t,i)})}return e}function Wu(e,n,t,i){if(ju(e)){const{format:r,formatType:s}=e,o=Za(e,["format","formatType"]);if(Sa(s)&&!t.customFormatTypes){Vr(Ni(n));return Wu(o,n,t,i)}}else{const r=xu(e)?"axis":wu(e)?"legend":Xa(e)?"header":null;if(r&&e[r]){const s=e[r],{format:o,formatType:a}=s,u=Za(s,["format","formatType"]);if(Sa(a)&&!t.customFormatTypes){Vr(Ni(n));return Wu(Object.assign(Object.assign({},e),{[r]:u}),n,t,i)}}}if(fu(e)){return Gu(e,n,i)}return Hu(e)}function Hu(e){let n=e["type"];if(n){return e}const{datum:t}=e;n=(0,r.Et)(t)?"quantitative":(0,r.Kg)(t)?"nominal":Jr(t)?"temporal":undefined;return Object.assign(Object.assign({},e),{type:n})}function Gu(e,n,{compositeMark:t=false}={}){const{aggregate:i,timeUnit:s,bin:o,field:a}=e;const u=Object.assign({},e);if(!t&&i&&!Ot(i)&&!vt(i)&&!yt(i)){Vr(Wi(i));delete u.aggregate}if(s){u.timeUnit=$s(s)}if(a){u.field=`${a}`}if(At(o)){u.bin=Yu(o,n)}if(kt(o)&&!Rn(n)){Vr(Tr(n))}if(yu(u)){const{type:e}=u;const n=Zs(e);if(e!==n){u.type=n}if(e!=="quantitative"){if(wt(i)){Vr(Ii(e,i));u.type="quantitative"}}}else if(!mn(n)){const e=qu(u,n);u["type"]=e}if(yu(u)){const{compatible:e,warning:t}=Vu(u,n)||{};if(e===false){Vr(t)}}if(iu(u)&&(0,r.Kg)(u.sort)){const{sort:e}=u;if(Ga(e)){return Object.assign(Object.assign({},u),{sort:{encoding:e}})}const n=e.substr(1);if(e.charAt(0)==="-"&&Ga(n)){return Object.assign(Object.assign({},u),{sort:{encoding:n,order:"descending"}})}}if(Xa(u)){const{header:e}=u;if(e){const{orient:n}=e,t=Za(e,["orient"]);if(n){return Object.assign(Object.assign({},u),{header:Object.assign(Object.assign({},t),{labelOrient:e.labelOrient||n,titleOrient:e.titleOrient||n})})}}}return u}function Yu(e,n){if((0,r.Lm)(e)){return{maxbins:Et(n)}}else if(e==="binned"){return{binned:true}}else if(!e.maxbins&&!e.step){return Object.assign(Object.assign({},e),{maxbins:Et(n)})}else{return e}}const Ku={compatible:true};function Vu(e,n){const t=e.type;if(t==="geojson"&&n!=="shape"){return{compatible:false,warning:`Channel ${n} should not be used with a geojson data.`}}switch(n){case oe:case ae:case ue:if(!Au(e)){return{compatible:false,warning:Zi(n)}}return Ku;case ce:case le:case pe:case ge:case je:case Fe:case $e:case _e:case Ne:case Te:case Me:case Le:case qe:case ke:case be:case me:case Ue:return Ku;case Oe:case we:case ve:case xe:if(t!==Ys){return{compatible:false,warning:`Channel ${n} should be used with a quantitative field only, not ${e.type} field.`}}return Ku;case Ce:case Se:case Ee:case Be:case Ae:case ye:case he:case fe:case de:if(t==="nominal"&&!e["sort"]){return{compatible:false,warning:`Channel ${n} should not be used with an unsorted discrete field.`}}return Ku;case De:case Pe:if(!Au(e)&&!ku(e)){return{compatible:false,warning:er(n)}}return Ku;case ze:if(e.type==="nominal"&&!("sort"in e)){return{compatible:false,warning:`Channel order is inappropriate for nominal field, which has no inherent order.`}}return Ku}}function Qu(e){const{formatType:n}=Lu(e);return n==="time"||!n&&Xu(e)}function Xu(e){return e&&(e["type"]==="temporal"||fu(e)&&!!e.timeUnit)}function Ju(e,{timeUnit:n,type:t,wrapTime:i,undefinedIfExprNotRequired:s}){var o;const a=n&&((o=$s(n))===null||o===void 0?void 0:o.unit);let u=a||t==="temporal";let c;if(Bt(e)){c=e.expr}else if(Tt(e)){c=e.signal}else if(Jr(e)){u=true;c=as(e)}else if((0,r.Kg)(e)||(0,r.Et)(e)){if(u){c=`datetime(${x(e)})`;if(ps(a)){if((0,r.Et)(e)&&e<1e4||(0,r.Kg)(e)&&isNaN(Date.parse(e))){c=as({[a]:e})}}}}if(c){return i&&u?`time(${c})`:c}return s?undefined:x(e)}function Zu(e,n){const{type:t}=e;return n.map((n=>{const i=Ju(n,{timeUnit:fu(e)?e.timeUnit:undefined,type:t,undefinedIfExprNotRequired:true});if(i!==undefined){return{signal:i}}return n}))}function ec(e,n){if(!At(e.bin)){console.warn("Only call this method for binned field defs.");return false}return ct(n)&&["ordinal","nominal"].includes(e.type)}const nc={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function tc(e){return e===null||e===void 0?void 0:e.condition}const ic=["domain","grid","labels","ticks","title"];const rc={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"};const sc={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1};const oc=Object.assign(Object.assign({},sc),{style:1,labelExpr:1,encoding:1});function ac(e){return!!oc[e]}const uc=N(oc);const cc={axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1};const lc=N(cc);function fc(e){return"mark"in e}class dc{constructor(e,n){this.name=e;this.run=n}hasMatchingType(e){if(fc(e)){return Oa(e.mark)===this.name}return false}}var pc=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r!!e.field))}else{return fu(t)||uu(t)}}return false}function mc(e,n){const t=e&&e[n];if(t){if((0,r.cy)(t)){return $(t,(e=>!!e.field))}else{return fu(t)||pu(t)||cu(t)}}return false}function hc(e,n){if(Rn(n)){const t=e[n];if((fu(t)||pu(t))&&Gs(t.type)){const t=xn(n);return mc(e,t)}}return false}function bc(e){return $(en,(n=>{if(gc(e,n)){const t=e[n];if((0,r.cy)(t)){return $(t,(e=>!!e.aggregate))}else{const e=Uu(t);return e&&!!e.aggregate}}return false}))}function yc(e,n){const t=[];const i=[];const r=[];const s=[];const o={};jc(e,((a,u)=>{if(fu(a)){const{field:c,aggregate:l,bin:f,timeUnit:d}=a,p=pc(a,["field","aggregate","bin","timeUnit"]);if(l||d||f){const e=Tu(a);const g=e===null||e===void 0?void 0:e.title;let m=Du(a,{forAs:true});const h=Object.assign(Object.assign(Object.assign({},g?[]:{title:Nu(a,n,{allowDisabling:true})}),p),{field:m});if(l){let e;if(vt(l)){e="argmax";m=Du({op:"argmax",field:l.argmax},{forAs:true});h.field=`${m}.${c}`}else if(yt(l)){e="argmin";m=Du({op:"argmin",field:l.argmin},{forAs:true});h.field=`${m}.${c}`}else if(l!=="boxplot"&&l!=="errorbar"&&l!=="errorband"){e=l}if(e){const n={op:e,as:m};if(c){n.field=c}s.push(n)}}else{t.push(m);if(yu(a)&&At(f)){i.push({bin:f,field:c,as:m});t.push(Du(a,{binSuffix:"end"}));if(ec(a,u)){t.push(Du(a,{binSuffix:"range"}))}if(Rn(u)){const e={field:`${m}_end`};o[`${u}2`]=e}h.bin="binned";if(!mn(u)){h["type"]=Ys}}else if(d){r.push({timeUnit:d,field:c,as:m});const e=yu(a)&&a.type!==Vs&&"time";if(e){if(u===_e||u===Me){h["formatType"]=e}else if(st(u)){h["legend"]=Object.assign({formatType:e},h["legend"])}else if(Rn(u)){h["axis"]=Object.assign({formatType:e},h["axis"])}}}}o[u]=h}else{t.push(c);o[u]=e[u]}}else{o[u]=e[u]}}));return{bins:i,timeUnits:r,aggregate:s,groupby:t,encoding:o}}function vc(e,n,t){const i=lt(n,t);if(!i){return false}else if(i==="binned"){const t=e[n===fe?ce:le];if(fu(t)&&fu(e[n])&&kt(t.bin)){return true}else{return false}}return true}function Oc(e,n,t,i){const s={};for(const r of N(e)){if(!pn(r)){Vr(Ji(r))}}for(let o of jn){if(!e[o]){continue}const a=e[o];if(Kn(o)){const e=wn(o);const n=s[e];if(fu(n)){if(Hs(n.type)){if(fu(a)){Vr(Li(e));continue}}}else{o=e;Vr(qi(e))}}if(o==="angle"&&n==="arc"&&!e.theta){Vr(Mi);o=be}if(!vc(e,o,n)){Vr(Qi(o,n));continue}if(o===Ae&&n==="line"){const n=Uu(e[o]);if(n===null||n===void 0?void 0:n.aggregate){Vr(Vi);continue}}if(o===je&&(t?"fill"in e:"stroke"in e)){Vr(Gi("encoding",{fill:"fill"in e,stroke:"stroke"in e}));continue}if(o===Ne||o===ze&&!(0,r.cy)(a)&&!vu(a)||o===Me&&(0,r.cy)(a)){if(a){s[o]=(0,r.YO)(a).reduce(((e,n)=>{if(!fu(n)){Vr(Ki(n,o))}else{e.push(Gu(n,o))}return e}),[])}}else{if(o===Me&&a===null){s[o]=null}else if(!fu(a)&&!pu(a)&&!vu(a)&&!au(a)&&!Tt(a)){Vr(Ki(a,o));continue}s[o]=Iu(a,o,i)}}return s}function xc(e,n){const t={};for(const i of N(e)){const r=Iu(e[i],i,n,{compositeMark:true});t[i]=r}return t}function wc(e){const n=[];for(const t of N(e)){if(gc(e,t)){const i=e[t];const s=(0,r.YO)(i);for(const e of s){if(fu(e)){n.push(e)}else if(uu(e)){n.push(e.condition)}}}}return n}function jc(e,n,t){if(!e){return}for(const i of N(e)){const s=e[i];if((0,r.cy)(s)){for(const e of s){n.call(t,e,i)}}else{n.call(t,s,i)}}}function Fc(e,n,t,i){if(!e){return t}return N(e).reduce(((t,s)=>{const o=e[s];if((0,r.cy)(o)){return o.reduce(((e,t)=>n.call(i,e,t,s)),t)}else{return n.call(i,t,o,s)}}),t)}function $c(e,n){return N(n).reduce(((t,i)=>{switch(i){case ce:case le:case Le:case Ue:case qe:case fe:case de:case pe:case ge:case be:case ye:case me:case he:case ve:case Oe:case xe:case we:case _e:case De:case ke:case Me:return t;case ze:if(e==="line"||e==="trail"){return t}case Ne:case Te:{const e=n[i];if((0,r.cy)(e)||fu(e)){for(const n of(0,r.YO)(e)){if(!n.aggregate){t.push(Du(n,{}))}}}return t}case Ae:if(e==="trail"){return t}case je:case Fe:case $e:case Ce:case Se:case Ee:case Pe:case Be:{const e=Uu(n[i]);if(e&&!e.aggregate){t.push(Du(e,{}))}return t}}}),[])}var Dc=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const r=i?` of ${Cc(n)}`:"";return{field:e+n.field,type:n.type,title:Tt(t)?{signal:`${t}"${escape(r)}"`}:t+r}}));const s=wc(t).map(Fu);return{tooltip:[...r,...C(s,w)]}}function Cc(e){const{title:n,field:t}=e;return X(n,t)}function Sc(e,n,t,i,s){const{scale:o,axis:a}=t;return({partName:u,mark:c,positionPrefix:l,endPositionPrefix:f=undefined,extraEncoding:d={}})=>{const p=Cc(t);return Ec(e,u,s,{mark:c,encoding:Object.assign(Object.assign(Object.assign({[n]:Object.assign(Object.assign(Object.assign({field:`${l}_${t.field}`,type:t.type},p!==undefined?{title:p}:{}),o!==undefined?{scale:o}:{}),a!==undefined?{axis:a}:{})},(0,r.Kg)(f)?{[`${n}2`]:{field:`${f}_${t.field}`}}:{}),i),d)})}}function Ec(e,n,t,i){const{clip:s,color:o,opacity:a}=e;const u=e.type;if(e[n]||e[n]===undefined&&t[n]){return[Object.assign(Object.assign({},i),{mark:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t[n]),s?{clip:s}:{}),o?{color:o}:{}),a?{opacity:a}:{}),ia(i.mark)?i.mark:{type:i.mark}),{style:`${u}-${String(n)}`}),(0,r.Lm)(e[n])?{}:e[n])})]}return[]}function Bc(e,n,t){const{encoding:i}=e;const r=n==="vertical"?"y":"x";const s=i[r];const o=i[`${r}2`];const a=i[`${r}Error`];const u=i[`${r}Error2`];return{continuousAxisChannelDef:Pc(s,t),continuousAxisChannelDef2:Pc(o,t),continuousAxisChannelDefError:Pc(a,t),continuousAxisChannelDefError2:Pc(u,t),continuousAxis:r}}function Pc(e,n){if(e===null||e===void 0?void 0:e.aggregate){const{aggregate:t}=e,i=Dc(e,["aggregate"]);if(t!==n){Vr(_r(t,n))}return i}else{return e}}function _c(e,n){const{mark:t,encoding:i}=e;const{x:r,y:s}=i;if(ia(t)&&t.orient){return t.orient}if(gu(r)){if(gu(s)){const e=fu(r)&&r.aggregate;const t=fu(s)&&s.aggregate;if(!e&&t===n){return"vertical"}else if(!t&&e===n){return"horizontal"}else if(e===n&&t===n){throw new Error("Both x and y cannot have aggregate")}else{if(Qu(s)&&!Qu(r)){return"horizontal"}return"vertical"}}return"horizontal"}else if(gu(s)){return"vertical"}else{throw new Error(`Need a valid continuous axis for ${n}s`)}}var zc=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rSc(l,v,y,e,n.boxplot);const E=S(C);const B=S(j);const P=S(Object.assign(Object.assign({},C),k?{size:k}:{}));const _=kc([{fieldPrefix:g==="min-max"?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:g==="min-max"?"lower_whisker_":"min_",titlePrefix:"Min"}],y,j);const N={type:"tick",color:"black",opacity:1,orient:F,invalid:p,aria:false};const T=g==="min-max"?_:kc([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],y,j);const M=[...E({partName:"rule",mark:{type:"rule",invalid:p,aria:false},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:T}),...E({partName:"rule",mark:{type:"rule",invalid:p,aria:false},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:T}),...E({partName:"ticks",mark:N,positionPrefix:"lower_whisker",extraEncoding:T}),...E({partName:"ticks",mark:N,positionPrefix:"upper_whisker",extraEncoding:T})];const L=[...g!=="tukey"?M:[],...B({partName:"box",mark:Object.assign(Object.assign({type:"bar"},d?{size:d}:{}),{orient:$,invalid:p,ariaRoleDescription:"box"}),positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:_}),...P({partName:"median",mark:Object.assign(Object.assign(Object.assign({type:"tick",invalid:p},(0,r.Gv)(n.boxplot.median)&&n.boxplot.median.color?{color:n.boxplot.median.color}:{}),d?{size:d}:{}),{orient:F,aria:false}),positionPrefix:"mid_box",extraEncoding:_})];if(g==="min-max"){return Object.assign(Object.assign({},c),{transform:((i=c.transform)!==null&&i!==void 0?i:[]).concat(b),layer:L})}const q=`datum["lower_box_${y.field}"]`;const U=`datum["upper_box_${y.field}"]`;const R=`(${U} - ${q})`;const I=`${q} - ${f} * ${R}`;const W=`${U} + ${f} * ${R}`;const H=`datum["${y.field}"]`;const G={joinaggregate:Uc(y.field),groupby:x};const Y={transform:[{filter:`(${I} <= ${H}) && (${H} <= ${W})`},{aggregate:[{op:"min",field:y.field,as:`lower_whisker_${y.field}`},{op:"max",field:y.field,as:`upper_whisker_${y.field}`},{op:"min",field:`lower_box_${y.field}`,as:`lower_box_${y.field}`},{op:"max",field:`upper_box_${y.field}`,as:`upper_box_${y.field}`},...w],groupby:x}],layer:M};const{tooltip:K}=C,V=zc(C,["tooltip"]);const{scale:Q,axis:X}=y;const J=Cc(y);const Z=O(X,["title"]);const ee=Ec(l,"outliers",n.boxplot,{transform:[{filter:`(${H} < ${I}) || (${H} > ${W})`}],mark:"point",encoding:Object.assign(Object.assign(Object.assign({[v]:Object.assign(Object.assign(Object.assign({field:y.field,type:y.type},J!==undefined?{title:J}:{}),Q!==undefined?{scale:Q}:{}),z(Z)?{}:{axis:Z})},V),A?{color:A}:{}),D?{tooltip:D}:{})})[0];let ne;const te=[...m,...h,G];if(ee){ne={transform:te,layer:[ee,Y]}}else{ne=Y;ne.transform.unshift(...te)}return Object.assign(Object.assign({},c),{layer:[ne,{transform:b,layer:L}]})}function Uc(e){return[{op:"q1",field:e,as:`lower_box_${e}`},{op:"q3",field:e,as:`upper_box_${e}`}]}function Rc(e,n,t){const i=_c(e,Nc);const{continuousAxisChannelDef:r,continuousAxis:s}=Bc(e,i,Nc);const o=r.field;const a=Lc(n);const u=[...Uc(o),{op:"median",field:o,as:`mid_box_${o}`},{op:"min",field:o,as:(a==="min-max"?"lower_whisker_":"min_")+o},{op:"max",field:o,as:(a==="min-max"?"upper_whisker_":"max_")+o}];const c=a==="min-max"||a==="tukey"?[]:[{calculate:`datum["upper_box_${o}"] - datum["lower_box_${o}"]`,as:`iqr_${o}`},{calculate:`min(datum["upper_box_${o}"] + datum["iqr_${o}"] * ${n}, datum["max_${o}"])`,as:`upper_whisker_${o}`},{calculate:`max(datum["lower_box_${o}"] - datum["iqr_${o}"] * ${n}, datum["min_${o}"])`,as:`lower_whisker_${o}`}];const l=e.encoding,f=s,d=l[f],p=zc(l,[typeof f==="symbol"?f:f+""]);const{customTooltipWithoutAggregatedField:g,filteredEncoding:m}=Ac(p);const{bins:h,timeUnits:b,aggregate:y,groupby:v,encoding:O}=yc(m,t);const x=i==="vertical"?"horizontal":"vertical";const w=i;const j=[...h,...b,{aggregate:[...y,...u],groupby:v},...c];return{bins:h,timeUnits:b,transform:j,groupby:v,aggregate:y,continuousAxisChannelDef:r,continuousAxis:s,encodingWithoutContinuousAxis:O,ticksOrient:x,boxOrient:w,customTooltipWithoutAggregatedField:g}}var Ic=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r1?{layer:g}:Object.assign({},g[0]))}function Kc(e,n){const{encoding:t}=e;if(Vc(t)){return{orient:_c(e,n),inputType:"raw"}}const i=Qc(t);const r=Xc(t);const s=t.x;const o=t.y;if(i){if(r){throw new Error(`${n} cannot be both type aggregated-upper-lower and aggregated-error`)}const e=t.x2;const i=t.y2;if(bu(e)&&bu(i)){throw new Error(`${n} cannot have both x2 and y2`)}else if(bu(e)){if(gu(s)){return{orient:"horizontal",inputType:"aggregated-upper-lower"}}else{throw new Error(`Both x and x2 have to be quantitative in ${n}`)}}else if(bu(i)){if(gu(o)){return{orient:"vertical",inputType:"aggregated-upper-lower"}}else{throw new Error(`Both y and y2 have to be quantitative in ${n}`)}}throw new Error("No ranged axis")}else{const e=t.xError;const i=t.xError2;const r=t.yError;const a=t.yError2;if(bu(i)&&!bu(e)){throw new Error(`${n} cannot have xError2 without xError`)}if(bu(a)&&!bu(r)){throw new Error(`${n} cannot have yError2 without yError`)}if(bu(e)&&bu(r)){throw new Error(`${n} cannot have both xError and yError with both are quantiative`)}else if(bu(e)){if(gu(s)){return{orient:"horizontal",inputType:"aggregated-error"}}else{throw new Error("All x, xError, and xError2 (if exist) have to be quantitative")}}else if(bu(r)){if(gu(o)){return{orient:"vertical",inputType:"aggregated-error"}}else{throw new Error("All y, yError, and yError2 (if exist) have to be quantitative")}}throw new Error("No ranged axis")}}function Vc(e){return(bu(e.x)||bu(e.y))&&!bu(e.x2)&&!bu(e.y2)&&!bu(e.xError)&&!bu(e.xError2)&&!bu(e.yError)&&!bu(e.yError2)}function Qc(e){return bu(e.x2)||bu(e.y2)}function Xc(e){return bu(e.xError)||bu(e.xError2)||bu(e.yError)||bu(e.yError2)}function Jc(e,n,t){var i;const{mark:r,encoding:s,params:o,projection:a}=e,u=Ic(e,["mark","encoding","params","projection"]);const c=ia(r)?r:{type:r};if(o){Vr(Oi(n))}const{orient:l,inputType:f}=Kc(e,n);const{continuousAxisChannelDef:d,continuousAxisChannelDef2:p,continuousAxisChannelDefError:g,continuousAxisChannelDefError2:m,continuousAxis:h}=Bc(e,l,n);const{errorBarSpecificAggregate:b,postAggregateCalculates:y,tooltipSummary:v,tooltipTitleWithFieldName:O}=Zc(c,d,p,g,m,f,n,t);const x=s,w=h,j=x[w],F=h==="x"?"x2":"y2",$=x[F],D=h==="x"?"xError":"yError",A=x[D],k=h==="x"?"xError2":"yError2",C=x[k],S=Ic(x,[typeof w==="symbol"?w:w+"",typeof F==="symbol"?F:F+"",typeof D==="symbol"?D:D+"",typeof k==="symbol"?k:k+""]);const{bins:E,timeUnits:B,aggregate:P,groupby:_,encoding:z}=yc(S,t);const N=[...P,...b];const T=f!=="raw"?[]:_;const M=kc(v,d,z,O);return{transform:[...(i=u.transform)!==null&&i!==void 0?i:[],...E,...B,...N.length===0?[]:[{aggregate:N,groupby:T}],...y],groupby:T,continuousAxisChannelDef:d,continuousAxis:h,encodingWithoutContinuousAxis:z,ticksOrient:l==="vertical"?"horizontal":"vertical",markDef:c,outerSpec:u,tooltipEncoding:M}}function Zc(e,n,t,i,r,s,o,a){let u=[];let c=[];const l=n.field;let f;let d=false;if(s==="raw"){const n=e.center?e.center:e.extent?e.extent==="iqr"?"median":"mean":a.errorbar.center;const t=e.extent?e.extent:n==="mean"?"stderr":"iqr";if(n==="median"!==(t==="iqr")){Vr(Pr(n,t,o))}if(t==="stderr"||t==="stdev"){u=[{op:t,field:l,as:`extent_${l}`},{op:n,field:l,as:`center_${l}`}];c=[{calculate:`datum["center_${l}"] + datum["extent_${l}"]`,as:`upper_${l}`},{calculate:`datum["center_${l}"] - datum["extent_${l}"]`,as:`lower_${l}`}];f=[{fieldPrefix:"center_",titlePrefix:I(n)},{fieldPrefix:"upper_",titlePrefix:el(n,t,"+")},{fieldPrefix:"lower_",titlePrefix:el(n,t,"-")}];d=true}else{let e;let n;let i;if(t==="ci"){e="mean";n="ci0";i="ci1"}else{e="median";n="q1";i="q3"}u=[{op:n,field:l,as:`lower_${l}`},{op:i,field:l,as:`upper_${l}`},{op:e,field:l,as:`center_${l}`}];f=[{fieldPrefix:"upper_",titlePrefix:Nu({field:l,aggregate:i,type:"quantitative"},a,{allowDisabling:false})},{fieldPrefix:"lower_",titlePrefix:Nu({field:l,aggregate:n,type:"quantitative"},a,{allowDisabling:false})},{fieldPrefix:"center_",titlePrefix:Nu({field:l,aggregate:e,type:"quantitative"},a,{allowDisabling:false})}]}}else{if(e.center||e.extent){Vr(Br(e.center,e.extent))}if(s==="aggregated-upper-lower"){f=[];c=[{calculate:`datum["${t.field}"]`,as:`upper_${l}`},{calculate:`datum["${l}"]`,as:`lower_${l}`}]}else if(s==="aggregated-error"){f=[{fieldPrefix:"",titlePrefix:l}];c=[{calculate:`datum["${l}"] + datum["${i.field}"]`,as:`upper_${l}`}];if(r){c.push({calculate:`datum["${l}"] + datum["${r.field}"]`,as:`lower_${l}`})}else{c.push({calculate:`datum["${l}"] - datum["${i.field}"]`,as:`lower_${l}`})}}for(const e of c){f.push({fieldPrefix:e.as.substring(0,6),titlePrefix:K(K(e.calculate,'datum["',""),'"]',"")})}}return{postAggregateCalculates:c,errorBarSpecificAggregate:u,tooltipSummary:f,tooltipTitleWithFieldName:d}}function el(e,n,t){return`${I(e)} ${t} ${n}`}const nl="errorband";const tl=["band","borders"];const il=new dc(nl,rl);function rl(e,{config:n}){e=Object.assign(Object.assign({},e),{encoding:xc(e.encoding,n)});const{transform:t,continuousAxisChannelDef:i,continuousAxis:r,encodingWithoutContinuousAxis:s,markDef:o,outerSpec:a,tooltipEncoding:u}=Jc(e,nl,n);const c=o;const l=Sc(c,r,i,s,n.errorband);const f=e.encoding.x!==undefined&&e.encoding.y!==undefined;let d={type:f?"area":"rect"};let p={type:f?"line":"rule"};const g=Object.assign(Object.assign({},c.interpolate?{interpolate:c.interpolate}:{}),c.tension&&c.interpolate?{tension:c.tension}:{});if(f){d=Object.assign(Object.assign(Object.assign({},d),g),{ariaRoleDescription:"errorband"});p=Object.assign(Object.assign(Object.assign({},p),g),{aria:false})}else if(c.interpolate){Vr(zr("interpolate"))}else if(c.tension){Vr(zr("tension"))}return Object.assign(Object.assign({},a),{transform:t,layer:[...l({partName:"band",mark:d,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:u}),...l({partName:"borders",mark:p,positionPrefix:"lower",extraEncoding:u}),...l({partName:"borders",mark:p,positionPrefix:"upper",extraEncoding:u})]})}const sl={};function ol(e,n,t){const i=new dc(e,n);sl[e]={normalizer:i,parts:t}}function al(e){delete sl[e]}function ul(){return N(sl)}ol(Nc,qc,Tc);ol(Wc,Yc,Hc);ol(nl,rl,tl);const cl=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"];const ll={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"};const fl={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"};const dl=N(ll);const pl=N(fl);const gl={header:1,headerRow:1,headerColumn:1,headerFacet:1};const ml=N(gl);const hl=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"];const bl={gradientHorizontalMaxLength:200,gradientHorizontalMinLength:100,gradientVerticalMaxLength:200,gradientVerticalMinLength:64,unselectedOpacity:.35};const yl={aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1};const vl=N(yl);const Ol="_vgsid_";const xl={point:{on:"click",fields:[Ol],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[mousedown, window:mouseup] > window:mousemove!",encodings:["x","y"],translate:"[mousedown, window:mouseup] > window:mousemove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function wl(e){return e==="legend"||!!(e===null||e===void 0?void 0:e.legend)}function jl(e){return wl(e)&&(0,r.Gv)(e)}function Fl(e){return!!(e===null||e===void 0?void 0:e["select"])}var $l=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rthis.mapLayerOrUnit(e,n)))})}mapHConcat(e,n){return Object.assign(Object.assign({},e),{hconcat:e.hconcat.map((e=>this.map(e,n)))})}mapVConcat(e,n){return Object.assign(Object.assign({},e),{vconcat:e.vconcat.map((e=>this.map(e,n)))})}mapConcat(e,n){const{concat:t}=e,i=df(e,["concat"]);return Object.assign(Object.assign({},i),{concat:t.map((e=>this.map(e,n)))})}mapFacet(e,n){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,n)})}mapRepeat(e,n){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,n)})}}const gf={zero:1,center:1,normalize:1};function mf(e){return e in gf}const hf=new Set([Lo,Uo,qo,Go,Wo,Qo,Xo,Io,Yo,Ko]);const bf=new Set([Uo,qo,Lo]);function yf(e){return fu(e)&&du(e)==="quantitative"&&!e.bin}function vf(e,n){var t,i;const r=n==="x"?"y":"radius";const s=e[n];const o=e[r];if(fu(s)&&fu(o)){if(yf(s)&&yf(o)){if(s.stack){return n}else if(o.stack){return r}const e=fu(s)&&!!s.aggregate;const a=fu(o)&&!!o.aggregate;if(e!==a){return e?n:r}else{const e=(t=s.scale)===null||t===void 0?void 0:t.type;const a=(i=o.scale)===null||i===void 0?void 0:i.type;if(e&&e!=="linear"){return r}else if(a&&a!=="linear"){return n}}}else if(yf(s)){return n}else if(yf(o)){return r}}else if(yf(s)){return n}else if(yf(o)){return r}return undefined}function Of(e){switch(e){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}function xf(e,n){var t,i;const s=ia(e)?e.type:e;if(!hf.has(s)){return null}const o=vf(n,"x")||vf(n,"theta");if(!o){return null}const a=n[o];const u=fu(a)?Du(a,{}):undefined;const c=Of(o);const l=[];const f=new Set;if(n[c]){const e=n[c];const t=fu(e)?Du(e,{}):undefined;if(t&&t!==u){l.push(c);f.add(t)}const i=c==="x"?"xOffset":"yOffset";const r=n[i];const s=fu(r)?Du(r,{}):undefined;if(s&&s!==u){l.push(i);f.add(s)}}const d=Ln.reduce(((e,t)=>{if(t!=="tooltip"&&gc(n,t)){const i=n[t];for(const n of(0,r.YO)(i)){const i=Uu(n);if(i.aggregate){continue}const r=Du(i,{});if(!r||!f.has(r)){e.push({channel:t,fieldDef:i})}}}return e}),[]);let p;if(a.stack!==undefined){if((0,r.Lm)(a.stack)){p=a.stack?"zero":null}else{p=a.stack}}else if(bf.has(s)){p="zero"}if(!p||!mf(p)){return null}if(bc(n)&&d.length===0){return null}if(((t=a===null||a===void 0?void 0:a.scale)===null||t===void 0?void 0:t.type)&&((i=a===null||a===void 0?void 0:a.scale)===null||i===void 0?void 0:i.type)!==no.LINEAR){Vr(kr(a.scale.type));return null}if(bu(n[yn(o)])){if(a.stack!==undefined){Vr(Ar(o))}return null}if(fu(a)&&a.aggregate&&!Ft.has(a.aggregate)){Vr(Cr(a.aggregate))}return{groupbyChannels:l,groupbyFields:f,fieldChannel:o,impute:a.impute===null?false:ea(s),stackBy:d,offset:p}}var wf=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r1?i:i.type}function Ff(e){for(const n of["line","area","rule","trail"]){if(e[n]){e=Object.assign(Object.assign({},e),{[n]:O(e[n],["point","line"])})}}return e}function $f(e,n={},t){if(e.point==="transparent"){return{opacity:0}}else if(e.point){return(0,r.Gv)(e.point)?e.point:{}}else if(e.point!==undefined){return null}else{if(n.point||t.shape){return(0,r.Gv)(n.point)?n.point:{}}return undefined}}function Df(e,n={}){if(e.line){return e.line===true?{}:e.line}else if(e.line!==undefined){return null}else{if(n.line){return n.line===true?{}:n.line}return undefined}}class Af{constructor(){this.name="path-overlay"}hasMatchingType(e,n){if(fc(e)){const{mark:t,encoding:i}=e;const r=ia(t)?t:{type:t};switch(r.type){case"line":case"rule":case"trail":return!!$f(r,n[r.type],i);case"area":return!!$f(r,n[r.type],i)||!!Df(r,n[r.type])}}return false}run(e,n,t){const{config:i}=n;const{params:r,projection:s,mark:o,encoding:a}=e,u=wf(e,["params","projection","mark","encoding"]);const c=xc(a,i);const l=ia(o)?o:{type:o};const f=$f(l,i[l.type],c);const d=l.type==="area"&&Df(l,i[l.type]);const p=[Object.assign(Object.assign({},r?{params:r}:{}),{mark:jf(Object.assign(Object.assign({},l.type==="area"&&l.opacity===undefined&&l.fillOpacity===undefined?{opacity:.7}:{}),l)),encoding:O(c,["shape"])})];const g=xf(l,c);let m=c;if(g){const{fieldChannel:e,offset:n}=g;m=Object.assign(Object.assign({},c),{[e]:Object.assign(Object.assign({},c[e]),n?{stack:n}:{})})}m=O(m,["y2","x2"]);if(d){p.push(Object.assign(Object.assign({},s?{projection:s}:{}),{mark:Object.assign(Object.assign({type:"line"},v(l,["clip","interpolate","tension","tooltip"])),d),encoding:m}))}if(f){p.push(Object.assign(Object.assign({},s?{projection:s}:{}),{mark:Object.assign(Object.assign({type:"point",opacity:1,filled:true},v(l,["clip","tooltip"])),f),encoding:m}))}return t(Object.assign(Object.assign({},u),{layer:p}),Object.assign(Object.assign({},n),{config:Ff(i)}))}}var kf=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r_f(e,n))).filter((e=>e))}else{const e=_f(s,n);if(e!==undefined){t[i]=e}}}}return t}class Nf{constructor(){this.name="RuleForRangedLine"}hasMatchingType(e){if(fc(e)){const{encoding:n,mark:t}=e;if(t==="line"||ia(t)&&t.type==="line"){for(const e of gn){const t=hn(e);const i=n[t];if(n[e]){if(fu(i)&&!kt(i.bin)||pu(i)){return true}}}}}return false}run(e,n,t){const{encoding:i,mark:s}=e;Vr(rr(!!i.x2,!!i.y2));return t(Object.assign(Object.assign({},e),{mark:(0,r.Gv)(s)?Object.assign(Object.assign({},s),{type:"rule"}):"rule"}),n)}}var Tf=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const t=Object.assign(Object.assign({},u),{layer:e});const r=`${(i.name||"")+c}child__layer_${q(e)}`;const s=this.mapLayerOrUnit(i,Object.assign(Object.assign({},n),{repeater:t,repeaterPrefix:r}));s.name=r;return s}))})}}mapNonLayerRepeat(e,n){var t;const{repeat:i,spec:s,data:o}=e,a=Tf(e,["repeat","spec","data"]);if(!(0,r.cy)(i)&&e.columns){e=O(e,["columns"]);Vr(Ci("repeat"))}const u=[];const{repeater:c={},repeaterPrefix:l=""}=n;const f=!(0,r.cy)(i)&&i.row||[c?c.row:null];const d=!(0,r.cy)(i)&&i.column||[c?c.column:null];const p=(0,r.cy)(i)&&i||[c?c.repeat:null];for(const m of p){for(const e of f){for(const t of d){const o={repeat:m,row:e,column:t,layer:c.layer};const a=(s.name||"")+l+"child__"+((0,r.cy)(i)?`${q(m)}`:(i.row?`row_${q(e)}`:"")+(i.column?`column_${q(t)}`:""));const f=this.map(s,Object.assign(Object.assign({},n),{repeater:o,repeaterPrefix:a}));f.name=a;u.push(O(f,["data"]))}}}const g=(0,r.cy)(i)?e.columns:i.column?i.column.length:1;return Object.assign(Object.assign({data:(t=s.data)!==null&&t!==void 0?t:o,align:"all"},a),{columns:g,concat:u})}mapFacet(e,n){const{facet:t}=e;if(Qa(t)&&e.columns){e=O(e,["columns"]);Vr(Ci("facet"))}return super.mapFacet(e,n)}mapUnitWithParentEncodingOrProjection(e,n){const{encoding:t,projection:i}=e;const{parentEncoding:r,parentProjection:s,config:o}=n;const a=qf({parentProjection:s,projection:i});const u=Lf({parentEncoding:r,encoding:Sf(t,n.repeater)});return this.mapUnit(Object.assign(Object.assign(Object.assign({},e),a?{projection:a}:{}),u?{encoding:u}:{}),{config:o})}mapFacetedUnit(e,n){const t=e.encoding,{row:i,column:r,facet:s}=t,o=Tf(t,["row","column","facet"]);const{mark:a,width:u,projection:c,height:l,view:f,params:d,encoding:p}=e,g=Tf(e,["mark","width","projection","height","view","params","encoding"]);const{facetMapping:m,layout:h}=this.getFacetMappingAndLayout({row:i,column:r,facet:s},n);const b=Sf(o,n.repeater);return this.mapFacet(Object.assign(Object.assign(Object.assign({},g),h),{facet:m,spec:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u?{width:u}:{}),l?{height:l}:{}),f?{view:f}:{}),c?{projection:c}:{}),{mark:a,encoding:b}),d?{params:d}:{})}),n)}getFacetMappingAndLayout(e,n){var t;const{row:i,column:r,facet:s}=e;if(i||r){if(s){Vr(nr([...i?[oe]:[],...r?[ae]:[]]))}const n={};const o={};for(const i of[oe,ae]){const r=e[i];if(r){const{align:e,center:s,spacing:a,columns:u}=r,c=Tf(r,["align","center","spacing","columns"]);n[i]=c;for(const n of["align","center","spacing"]){if(r[n]!==undefined){(t=o[n])!==null&&t!==void 0?t:o[n]={};o[n][i]=r[n]}}}}return{facetMapping:n,layout:o}}else{const{align:e,center:t,spacing:i,columns:r}=s,o=Tf(s,["align","center","spacing","columns"]);return{facetMapping:Cf(o,n.repeater),layout:Object.assign(Object.assign(Object.assign(Object.assign({},e?{align:e}:{}),t?{center:t}:{}),i?{spacing:i}:{}),r?{columns:r}:{})}}}mapLayer(e,n){var{parentEncoding:t,parentProjection:i}=n,r=Tf(n,["parentEncoding","parentProjection"]);const{encoding:s,projection:o}=e,a=Tf(e,["encoding","projection"]);const u=Object.assign(Object.assign({},r),{parentEncoding:Lf({parentEncoding:t,encoding:s,layer:true}),parentProjection:qf({parentProjection:i,projection:o})});return super.mapLayer(a,u)}}function Lf({parentEncoding:e,encoding:n={},layer:t}){let i={};if(e){const s=new Set([...N(e),...N(n)]);for(const o of s){const s=n[o];const a=e[o];if(bu(s)){const e=Object.assign(Object.assign({},a),s);i[o]=e}else if(cu(s)){i[o]=Object.assign(Object.assign({},s),{condition:Object.assign(Object.assign({},a),s.condition)})}else if(s||s===null){i[o]=s}else if(t||vu(a)||Tt(a)||bu(a)||(0,r.cy)(a)){i[o]=a}}}else{i=n}return!i||z(i)?undefined:i}function qf(e){const{parentProjection:n,projection:t}=e;if(n&&t){Vr(Ti({parentProjection:n,projection:t}))}return t!==null&&t!==void 0?t:n}function Uf(e){return"filter"in e}function Rf(e){return(e===null||e===void 0?void 0:e["stop"])!==undefined}function If(e){return"lookup"in e}function Wf(e){return"data"in e}function Hf(e){return"param"in e}function Gf(e){return"pivot"in e}function Yf(e){return"density"in e}function Kf(e){return"quantile"in e}function Vf(e){return"regression"in e}function Qf(e){return"loess"in e}function Xf(e){return"sample"in e}function Jf(e){return"window"in e}function Zf(e){return"joinaggregate"in e}function ed(e){return"flatten"in e}function nd(e){return"calculate"in e}function td(e){return"bin"in e}function id(e){return"impute"in e}function rd(e){return"timeUnit"in e}function sd(e){return"aggregate"in e}function od(e){return"stack"in e}function ad(e){return"fold"in e}function ud(e){return e.map((e=>{if(Uf(e)){return{filter:m(e.filter,Us)}}return e}))}var cd=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var i;const r=t,{init:s,bind:o,empty:a}=r,u=cd(r,["init","bind","empty"]);if(u.type==="single"){u.type="point";u.toggle=false}else if(u.type==="multi"){u.type="point"}n.emptySelections[e]=a!=="none";for(const c of T((i=n.selectionPredicates[e])!==null&&i!==void 0?i:{})){c.empty=a!=="none"}return{name:e,value:s,select:u,bind:o}}))})}return e}}function fd(e,n){const{transform:t}=e,i=cd(e,["transform"]);if(t){const e=t.map((e=>{if(Uf(e)){return{filter:gd(e,n)}}else if(td(e)&&Ct(e.bin)){return Object.assign(Object.assign({},e),{bin:pd(e.bin)})}else if(If(e)){const n=e.from,{selection:t}=n,i=cd(n,["selection"]);return t?Object.assign(Object.assign({},e),{from:Object.assign({param:t},i)}):e}return e}));return Object.assign(Object.assign({},i),{transform:e})}return e}function dd(e,n){var t,i;const r=b(e);if(fu(r)&&Ct(r.bin)){r.bin=pd(r.bin)}if(Ou(r)&&((i=(t=r.scale)===null||t===void 0?void 0:t.domain)===null||i===void 0?void 0:i.selection)){const e=r.scale.domain,{selection:n}=e,t=cd(e,["selection"]);r.scale.domain=Object.assign(Object.assign({},t),n?{param:n}:{})}if(au(r)){if((0,Rs.isArray)(r.condition)){r.condition=r.condition.map((e=>{const{selection:t,param:i,test:r}=e,s=cd(e,["selection","param","test"]);return i?e:Object.assign(Object.assign({},s),{test:gd(e,n)})}))}else{const e=dd(r.condition,n),{selection:t,param:i,test:s}=e,o=cd(e,["selection","param","test"]);r.condition=i?r.condition:Object.assign(Object.assign({},o),{test:gd(r.condition,n)})}}return r}function pd(e){const n=e.extent;if(n===null||n===void 0?void 0:n.selection){const{selection:t}=n,i=cd(n,["selection"]);return Object.assign(Object.assign({},e),{extent:Object.assign(Object.assign({},i),{param:t})})}return e}function gd(e,n){const t=e=>m(e,(e=>{var t,i;var r;const s=(t=n.emptySelections[e])!==null&&t!==void 0?t:true;const o={param:e,empty:s};(i=(r=n.selectionPredicates)[e])!==null&&i!==void 0?i:r[e]=[];n.selectionPredicates[e].push(o);return o}));return e.selection?t(e.selection):m(e.test||e.filter,(e=>e.selection?t(e.selection):e))}class md extends pf{map(e,n){var t;const i=(t=n.selections)!==null&&t!==void 0?t:[];if(e.params&&!fc(e)){const n=[];for(const t of e.params){if(Fl(t)){i.push(t)}else{n.push(t)}}e.params=n}n.selections=i;return super.map(e,hd(e,n))}mapUnit(e,n){var t;const i=n.selections;if(!i||!i.length)return e;const r=((t=n.path)!==null&&t!==void 0?t:[]).concat(e.name);const s=[];for(const o of i){if(!o.views||!o.views.length){s.push(o)}else{for(const n of o.views){if((0,Rs.isString)(n)&&(n===e.name||r.indexOf(n)>=0)||(0,Rs.isArray)(n)&&n.map((e=>r.indexOf(e))).every(((e,n,t)=>e!==-1&&(n===0||e>t[n-1])))){s.push(o)}}}}if(s.length)e.params=s;return e}}for(const Yw of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){const e=md.prototype[Yw];md.prototype[Yw]=function(n,t){return e.call(this,n,hd(n,t))}}function hd(e,n){var t;return e.name?Object.assign(Object.assign({},n),{path:((t=n.path)!==null&&t!==void 0?t:[]).concat(e.name)}):n}function bd(e,n){if(n===undefined){n=nf(e.config)}const t=xd(e,n);const{width:i,height:r}=e;const s=jd(t,{width:i,height:r,autosize:e.autosize},n);return Object.assign(Object.assign({},t),s?{autosize:s}:{})}const yd=new Mf;const vd=new ld;const Od=new md;function xd(e,n={}){const t={config:n};return Od.map(yd.map(vd.map(e,t),t),t)}function wd(e){return(0,r.Kg)(e)?{type:e}:e!==null&&e!==void 0?e:{}}function jd(e,n,t){let{width:i,height:r}=n;const s=fc(e)||cf(e);const o={};if(!s){if(i=="container"){Vr(pi("width"));i=undefined}if(r=="container"){Vr(pi("height"));r=undefined}}else{if(i=="container"&&r=="container"){o.type="fit";o.contains="padding"}else if(i=="container"){o.type="fit-x";o.contains="padding"}else if(r=="container"){o.type="fit-y";o.contains="padding"}}const a=Object.assign(Object.assign(Object.assign({type:"pad"},o),t?wd(t.autosize):{}),wd(e.autosize));if(a.type==="fit"&&!s){Vr(di);a.type="pad"}if(i=="container"&&!(a.type=="fit"||a.type=="fit-x")){Vr(gi("width"))}if(r=="container"&&!(a.type=="fit"||a.type=="fit-y")){Vr(gi("height"))}if(h(a,{type:"pad"})){return undefined}return a}function Fd(e){return e==="fit"||e==="fit-x"||e==="fit-y"}function $d(e){return e?`fit-${Hn(e)}`:"fit"}const Dd=["background","padding"];function Ad(e,n){const t={};for(const i of Dd){if(e&&e[i]!==undefined){t[i]=Vt(e[i])}}if(n){t.params=e.params}return t}class kd{constructor(e={},n={}){this.explicit=e;this.implicit=n}clone(){return new kd(b(this.explicit),b(this.implicit))}combine(){return Object.assign(Object.assign({},this.explicit),this.implicit)}get(e){return X(this.explicit[e],this.implicit[e])}getWithExplicit(e){if(this.explicit[e]!==undefined){return{explicit:true,value:this.explicit[e]}}else if(this.implicit[e]!==undefined){return{explicit:false,value:this.implicit[e]}}return{explicit:false,value:undefined}}setWithExplicit(e,{value:n,explicit:t}){if(n!==undefined){this.set(e,n,t)}}set(e,n,t){delete this[t?"implicit":"explicit"][e];this[t?"explicit":"implicit"][e]=n;return this}copyKeyFromSplit(e,{explicit:n,implicit:t}){if(n[e]!==undefined){this.set(e,n[e],true)}else if(t[e]!==undefined){this.set(e,t[e],false)}}copyKeyFromObject(e,n){if(n[e]!==undefined){this.set(e,n[e],true)}}copyAll(e){for(const n of N(e.combine())){const t=e.getWithExplicit(n);this.setWithExplicit(n,t)}}}function Cd(e){return{explicit:true,value:e}}function Sd(e){return{explicit:false,value:e}}function Ed(e){return(n,t,i,r)=>{const s=e(n.value,t.value);if(s>0){return n}else if(s<0){return t}return Bd(n,t,i,r)}}function Bd(e,n,t,i){if(e.explicit&&n.explicit){Vr(yr(t,i,e.value,n.value))}return e}function Pd(e,n,t,i,r=Bd){if(e===undefined||e.value===undefined){return n}if(e.explicit&&!n.explicit){return e}else if(n.explicit&&!e.explicit){return n}else if(h(e.value,n.value)){return e}else{return r(e,n,t,i)}}class _d extends kd{constructor(e={},n={},t=false){super(e,n);this.explicit=e;this.implicit=n;this.parseNothing=t}clone(){const e=super.clone();e.parseNothing=this.parseNothing;return e}}function zd(e){return"url"in e}function Nd(e){return"values"in e}function Td(e){return"name"in e&&!zd(e)&&!Nd(e)&&!Md(e)}function Md(e){return e&&(Ld(e)||qd(e)||Ud(e))}function Ld(e){return"sequence"in e}function qd(e){return"sphere"in e}function Ud(e){return"graticule"in e}var Rd;(function(e){e[e["Raw"]=0]="Raw";e[e["Main"]=1]="Main";e[e["Row"]=2]="Row";e[e["Column"]=3]="Column";e[e["Lookup"]=4]="Lookup"})(Rd||(Rd={}));var Id=t(45948);var Wd=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rHd(e,n,t)));return n?`[${i.join(", ")}]`:i}else if(Jr(e)){if(n){return t(as(e))}else{return t(cs(e))}}return n?t(x(e)):e}function Gd(e,n){var t;for(const i of T((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=i.name;let s=`${t}${Sg}, ${i.resolve==="global"?"true":`{unit: ${Ng(e)}}`}`;for(const r of _g){if(!r.defined(i))continue;if(r.signals)n=r.signals(e,i,n);if(r.modifyExpr)s=r.modifyExpr(e,i,s)}n.push({name:t+Eg,on:[{events:{signal:i.name+Sg},update:`modify(${(0,r.r$)(i.name+Cg)}, ${s})`}]})}return Zd(n)}function Yd(e,n){if(e.component.selection&&N(e.component.selection).length){const t=(0,r.r$)(e.getName("cell"));n.unshift({name:"facet",value:{},on:[{events:(0,Id.P)("mousemove","scope"),update:`isTuple(facet) ? facet : group(${t}).datum`}]})}return Zd(n)}function Kd(e,n){var t;let i=false;for(const s of T((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=s.name;const o=(0,r.r$)(t+Cg);const a=n.filter((e=>e.name===t));if(a.length===0){const e=s.resolve==="global"?"union":s.resolve;const t=s.type==="point"?", true, true)":")";n.push({name:s.name,update:`${Pg}(${o}, ${(0,r.r$)(e)}${t}`})}i=true;for(const i of _g){if(i.defined(s)&&i.topLevelSignals){n=i.topLevelSignals(e,s,n)}}}if(i){const e=n.filter((e=>e.name==="unit"));if(e.length===0){n.unshift({name:"unit",value:{},on:[{events:"mousemove",update:"isTuple(group()) ? group() : unit"}]})}}return Zd(n)}function Vd(e,n){var t;const i=[...n];const r=Ng(e,{escape:false});for(const s of T((t=e.component.selection)!==null&&t!==void 0?t:{})){const e={name:s.name+Cg};if(s.project.hasSelectionId){e.transform=[{type:"collect",sort:{field:Ol}}]}if(s.init){const n=s.project.items.map((e=>{const{signals:n}=e,t=Wd(e,["signals"]);return t}));e.values=s.project.hasSelectionId?s.init.map((e=>({unit:r,[Ol]:Hd(e,false)[0]}))):s.init.map((e=>({unit:r,fields:n,values:Hd(e,false)})))}const n=i.filter((e=>e.name===s.name+Cg));if(!n.length){i.push(e)}}return i}function Qd(e,n){var t;for(const i of T((t=e.component.selection)!==null&&t!==void 0?t:{})){for(const t of _g){if(t.defined(i)&&t.marks){n=t.marks(e,i,n)}}}return n}function Xd(e,n){for(const t of e.children){if(ZO(t)){n=Qd(t,n)}}return n}function Jd(e,n,t,i){const s=tb(e,n.param,n);return{signal:ho(t.get("type"))&&(0,r.cy)(i)&&i[0]>i[1]?`isValid(${s}) && reverse(${s})`:s}}function Zd(e){return e.map((e=>{if(e.on&&!e.on.length)delete e.on;return e}))}class ep{constructor(e,n){this.debugName=n;this._children=[];this._parent=null;if(e){this.parent=e}}clone(){throw new Error("Cannot clone node")}get parent(){return this._parent}set parent(e){this._parent=e;if(e){e.addChild(this)}}get children(){return this._children}numChildren(){return this._children.length}addChild(e,n){if(this._children.includes(e)){Vr(Pi);return}if(n!==undefined){this._children.splice(n,0,e)}else{this._children.push(e)}}removeChild(e){const n=this._children.indexOf(e);this._children.splice(n,1);return n}remove(){let e=this._parent.removeChild(this);for(const n of this._children){n._parent=this._parent;this._parent.addChild(n,e++)}}insertAsParentOf(e){const n=e.parent;n.removeChild(this);this.parent=n;e.parent=this}swapWithParent(){const e=this._parent;const n=e.parent;for(const i of this._children){i.parent=e}this._children=[];e.removeChild(this);const t=e.parent.removeChild(e);this._parent=n;n.addChild(this,t);e.parent=this}}class np extends ep{clone(){const e=new this.constructor;e.debugName=`clone_${this.debugName}`;e._source=this._source;e._name=`clone_${this._name}`;e.type=this.type;e.refCounts=this.refCounts;e.refCounts[e._name]=0;return e}constructor(e,n,t,i){super(e,n);this.type=t;this.refCounts=i;this._source=this._name=n;if(this.refCounts&&!(this._name in this.refCounts)){this.refCounts[this._name]=0}}dependentFields(){return new Set}producedFields(){return new Set}hash(){if(this._hash===undefined){this._hash=`Output ${Z()}`}return this._hash}getSource(){this.refCounts[this._name]++;return this._source}isRequired(){return!!this.refCounts[this._name]}setSource(e){this._source=e}}var tp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const{field:t,timeUnit:i}=n;if(i){const r=Du(n,{forAs:true});e[w({as:r,field:t,timeUnit:i})]={as:r,field:t,timeUnit:i}}return e}),{});if(z(t)){return null}return new ip(e,t)}static makeFromTransform(e,n){const t=Object.assign({},n),{timeUnit:i}=t,r=tp(t,["timeUnit"]);const s=$s(i);const o=Object.assign(Object.assign({},r),{timeUnit:s});return new ip(e,{[w(o)]:o})}merge(e){this.formula=Object.assign({},this.formula);for(const n in e.formula){if(!this.formula[n]){this.formula[n]=e.formula[n]}}for(const n of e.children){e.removeChild(n);n.parent=this}e.remove()}removeFormulas(e){const n={};for(const[t,i]of M(this.formula)){if(!e.has(i.as)){n[t]=i}}this.formula=n}producedFields(){return new Set(T(this.formula).map((e=>e.as)))}dependentFields(){return new Set(T(this.formula).map((e=>e.field)))}hash(){return`TimeUnit ${w(this.formula)}`}assemble(){const e=[];for(const n of T(this.formula)){const{field:t,as:i,timeUnit:r}=n;const s=$s(r),{unit:o,utc:a}=s,u=tp(s,["unit","utc"]);e.push(Object.assign(Object.assign(Object.assign(Object.assign({field:Y(t),type:"timeunit"},o?{units:Os(o)}:{}),a?{timezone:"utc"}:{}),u),{as:[i,`${i}_end`]}))}return e}}var rp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rtrue,parse:(e,n,t)=>{var i;const s=n.name;const o=(i=n.project)!==null&&i!==void 0?i:n.project=new op;const a={};const u={};const c=new Set;const l=(e,n)=>{const t=n==="visual"?e.channel:e.field;let i=q(`${s}_${t}`);for(let r=1;c.has(i);r++){i=q(`${s}_${t}_${r}`)}c.add(i);return{[n]:i}};const f=n.type;const d=e.config.selection[f];const p=t.value!==undefined?(0,r.YO)(t.value):null;let{fields:g,encodings:m}=(0,r.Gv)(t.select)?t.select:{};if(!g&&!m&&p){for(const e of p){if(!(0,r.Gv)(e)){continue}for(const n of N(e)){if(dn(n)){(m||(m=[])).push(n)}else{if(f==="interval"){Vr(Ai);m=d.encodings}else{(g||(g=[])).push(n)}}}}}if(!g&&!m){m=d.encodings;if("fields"in d){g=d.fields}}for(const r of m!==null&&m!==void 0?m:[]){const n=e.fieldDef(r);if(n){let t=n.field;if(n.aggregate){Vr(yi(r,n.aggregate));continue}else if(!t){Vr(bi(r));continue}if(n.timeUnit){t=e.vgField(r);const i={timeUnit:n.timeUnit,as:t,field:n.field};u[w(i)]=i}if(!a[t]){let i="E";if(f==="interval"){const n=e.getScaleComponent(r).get("type");if(ho(n)){i="R"}}else if(n.bin){i="R-RE"}const s={field:t,channel:r,type:i};s.signals=Object.assign(Object.assign({},l(s,"data")),l(s,"visual"));o.items.push(a[t]=s);o.hasField[t]=o.hasChannel[r]=a[t];o.hasSelectionId=o.hasSelectionId||t===Ol}}else{Vr(bi(r))}}for(const r of g!==null&&g!==void 0?g:[]){if(o.hasField[r])continue;const e={type:"E",field:r};e.signals=Object.assign({},l(e,"data"));o.items.push(e);o.hasField[r]=e;o.hasSelectionId=o.hasSelectionId||r===Ol}if(p){n.init=p.map((e=>o.items.map((n=>(0,r.Gv)(e)?e[n.channel]!==undefined?e[n.channel]:e[n.field]:e))))}if(!z(u)){o.timeUnit=new ip(null,u)}},signals:(e,n,t)=>{const i=n.name+sp;const r=t.filter((e=>e.name===i));return r.length>0||n.project.hasSelectionId?t:t.concat({name:i,value:n.project.items.map((e=>{const{signals:n,hasLegend:t}=e,i=rp(e,["signals","hasLegend"]);i.field=Y(i.field);return i}))})}};const up=ap;const cp={defined:e=>e.type==="interval"&&e.resolve==="global"&&e.bind&&e.bind==="scales",parse:(e,n)=>{const t=n.scales=[];for(const i of n.project.items){const r=i.channel;if(!ct(r)){continue}const s=e.getScaleComponent(r);const o=s?s.get("type"):undefined;if(!s||!ho(o)){Vr(wi);continue}s.set("selectionExtent",{param:n.name,field:i.field},true);t.push(i)}},topLevelSignals:(e,n,t)=>{const i=n.scales.filter((e=>t.filter((n=>n.name===e.signals.data)).length===0));if(!e.parent||dp(e)||i.length===0){return t}const s=t.filter((e=>e.name===n.name))[0];let o=s.update;if(o.indexOf(Pg)>=0){s.update=`{${i.map((e=>`${(0,r.r$)(Y(e.field))}: ${e.signals.data}`)).join(", ")}}`}else{for(const e of i){const n=`${(0,r.r$)(Y(e.field))}: ${e.signals.data}`;if(!o.includes(n)){o=`${o.substring(0,o.length-1)}, ${n}}`}}s.update=o}return t.concat(i.map((e=>({name:e.signals.data}))))},signals:(e,n,t)=>{if(e.parent&&!dp(e)){for(const e of n.scales){const n=t.filter((n=>n.name===e.signals.data))[0];n.push="outer";delete n.value;delete n.update}}return t}};const lp=cp;function fp(e,n){const t=(0,r.r$)(e.scaleName(n));return`domain(${t})`}function dp(e){var n;return e.parent&&tx(e.parent)&&((n=!e.parent.parent)!==null&&n!==void 0?n:dp(e.parent.parent))}var pp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re.type==="interval",signals:(e,n,t)=>{const i=n.name;const s=i+sp;const o=lp.defined(n);const a=n.init?n.init[0]:null;const u=[];const c=[];if(n.translate&&!o){const e=`!event.item || event.item.mark.name !== ${(0,r.r$)(i+gp)}`;vp(n,((n,t)=>{var i;var s;const o=(0,r.YO)((i=(s=t.between[0]).filter)!==null&&i!==void 0?i:s.filter=[]);if(!o.includes(e)){o.push(e)}return n}))}n.project.items.forEach(((i,s)=>{const o=i.channel;if(o!==ce&&o!==le){Vr("Interval selections only support x and y encoding channels.");return}const l=a?a[s]:null;const f=yp(e,n,i,l);const d=i.signals.data;const p=i.signals.visual;const g=(0,r.r$)(e.scaleName(o));const m=e.getScaleComponent(o).get("type");const h=ho(m)?"+":"";t.push(...f);u.push(d);c.push({scaleName:e.scaleName(o),expr:`(!isArray(${d}) || `+`(${h}invert(${g}, ${p})[0] === ${h}${d}[0] && `+`${h}invert(${g}, ${p})[1] === ${h}${d}[1]))`})}));if(!o&&c.length){t.push({name:i+mp,value:{},on:[{events:c.map((e=>({scale:e.scaleName}))),update:`${c.map((e=>e.expr)).join(" && ")} ? ${i+mp} : {}`}]})}const l=`unit: ${Ng(e)}, fields: ${s}, values`;return t.concat(Object.assign(Object.assign({name:i+Sg},a?{init:`{${l}: ${Hd(a)}}`}:{}),u.length?{on:[{events:[{signal:u.join(" || ")}],update:`${u.join(" && ")} ? {${l}: [${u}]} : null`}]}:{}))},marks:(e,n,t)=>{const i=n.name;const{x:s,y:o}=n.project.hasChannel;const a=s===null||s===void 0?void 0:s.signals.visual;const u=o===null||o===void 0?void 0:o.signals.visual;const c=`data(${(0,r.r$)(n.name+Cg)})`;if(lp.defined(n)||!s&&!o){return t}const l={x:s!==undefined?{signal:`${a}[0]`}:{value:0},y:o!==undefined?{signal:`${u}[0]`}:{value:0},x2:s!==undefined?{signal:`${a}[1]`}:{field:{group:"width"}},y2:o!==undefined?{signal:`${u}[1]`}:{field:{group:"height"}}};if(n.resolve==="global"){for(const n of N(l)){l[n]=[Object.assign({test:`${c}.length && ${c}[0].unit === ${Ng(e)}`},l[n]),{value:0}]}}const f=n.mark,{fill:d,fillOpacity:p,cursor:g}=f,m=pp(f,["fill","fillOpacity","cursor"]);const h=N(m).reduce(((e,n)=>{e[n]=[{test:[s!==undefined&&`${a}[0] !== ${a}[1]`,o!==undefined&&`${u}[0] !== ${u}[1]`].filter((e=>e)).join(" && "),value:m[n]},{value:null}];return e}),{});return[{name:`${i+gp}_bg`,type:"rect",clip:true,encode:{enter:{fill:{value:d},fillOpacity:{value:p}},update:l}},...t,{name:i+gp,type:"rect",clip:true,encode:{enter:Object.assign(Object.assign({},g?{cursor:{value:g}}:{}),{fill:{value:"transparent"}}),update:Object.assign(Object.assign({},l),h)}}]}};const bp=hp;function yp(e,n,t,i){const s=t.channel;const o=t.signals.visual;const a=t.signals.data;const u=lp.defined(n);const c=(0,r.r$)(e.scaleName(s));const l=e.getScaleComponent(s);const f=l?l.get("type"):undefined;const d=e=>`scale(${c}, ${e})`;const p=e.getSizeSignalRef(s===ce?"width":"height").signal;const g=`${s}(unit)`;const m=vp(n,((e,n)=>[...e,{events:n.between[0],update:`[${g}, ${g}]`},{events:n,update:`[${o}[0], clamp(${g}, 0, ${p})]`}]));m.push({events:{signal:n.name+mp},update:ho(f)?`[${d(`${a}[0]`)}, ${d(`${a}[1]`)}]`:`[0, 0]`});return u?[{name:a,on:[]}]:[Object.assign(Object.assign({name:o},i?{init:Hd(i,true,d)}:{value:[]}),{on:m}),Object.assign(Object.assign({name:a},i?{init:Hd(i)}:{}),{on:[{events:{signal:o},update:`${o}[0] === ${o}[1] ? null : invert(${c}, ${o})`}]})]}function vp(e,n){return e.events.reduce(((e,t)=>{if(!t.between){Vr(`${t} is not an ordered event stream for interval selections.`);return e}return n(e,t)}),[])}const Op={defined:e=>e.type==="point",signals:(e,n,t)=>{var i;const s=n.name;const o=s+sp;const a=n.project;const u="(item().isVoronoi ? datum.datum : datum)";const c=T((i=e.component.selection)!==null&&i!==void 0?i:{}).reduce(((e,n)=>n.type==="interval"?e.concat(n.name+gp):e),[]).map((e=>`indexof(item().mark.name, '${e}') < 0`)).join(" && ");const l=`datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0${c?` && ${c}`:""}`;let f=`unit: ${Ng(e)}, `;if(n.project.hasSelectionId){f+=`${Ol}: ${u}[${(0,r.r$)(Ol)}]`}else{const n=a.items.map((n=>{const t=e.fieldDef(n.channel);return(t===null||t===void 0?void 0:t.bin)?`[${u}[${(0,r.r$)(e.vgField(n.channel,{}))}], `+`${u}[${(0,r.r$)(e.vgField(n.channel,{binSuffix:"end"}))}]]`:`${u}[${(0,r.r$)(n.field)}]`})).join(", ");f+=`fields: ${o}, values: [${n}]`}const d=n.events;return t.concat([{name:s+Sg,on:d?[{events:d,update:`${l} ? {${f}} : null`,force:true}]:[]}])}};const xp=Op;function wp(e,n,t,i){const s=au(n)&&n.condition;const o=i(n);if(s){const n=(0,r.YO)(s);const a=n.map((n=>{const t=i(n);if(eu(n)){const{param:i,empty:r}=n;const s=nb(e,{param:i,empty:r});return Object.assign({test:s},t)}else{const i=rb(e,n.test);return Object.assign({test:i},t)}}));return{[t]:[...a,...o!==undefined?[o]:[]]}}else{return o!==undefined?{[t]:o}:{}}}function jp(e,n="text"){const t=e.encoding[n];return wp(e,t,n,(n=>Fp(n,e.config)))}function Fp(e,n,t="datum"){if(e){if(vu(e)){return Xt(e.value)}if(bu(e)){const{format:i,formatType:r}=Lu(e);return Pa({fieldOrDatumDef:e,format:i,formatType:r,expr:t,config:n})}}return undefined}function $p(e,n={}){const{encoding:t,markDef:i,config:s,stack:o}=e;const a=t.tooltip;if((0,r.cy)(a)){return{tooltip:Ap({tooltip:a},o,s,n)}}else{const u=n.reactiveGeom?"datum.datum":"datum";return wp(e,a,"tooltip",(e=>{const a=Fp(e,s,u);if(a){return a}if(e===null){return undefined}let c=ii("tooltip",i,s);if(c===true){c={content:"encoding"}}if((0,r.Kg)(c)){return{value:c}}else if((0,r.Gv)(c)){if(Tt(c)){return c}else if(c.content==="encoding"){return Ap(t,o,s,n)}else{return{signal:u}}}return undefined}))}}function Dp(e,n,t,{reactiveGeom:i}={}){const s={};const o=i?"datum.datum":"datum";const a=[];function u(i,u){const c=hn(u);const l=yu(i)?i:Object.assign(Object.assign({},i),{type:e[c].type});const f=l.title||Mu(l,t);const d=(0,r.YO)(f).join(", ");let p;if(Rn(u)){const n=u==="x"?"x2":"y2";const i=Uu(e[n]);if(kt(l.bin)&&i){const e=Du(l,{expr:o});const r=Du(i,{expr:o});const{format:a,formatType:u}=Lu(l);p=Ra(e,r,a,u,t);s[n]=true}}if((Rn(u)||u===be||u===me)&&n&&n.fieldChannel===u&&n.offset==="normalize"){const{format:e,formatType:n}=Lu(l);p=Pa({fieldOrDatumDef:l,format:e,formatType:n,expr:o,config:t,normalizeStack:true}).signal}p!==null&&p!==void 0?p:p=Fp(l,t,o).signal;a.push({channel:u,key:d,value:p})}jc(e,((e,n)=>{if(fu(e)){u(e,n)}else if(uu(e)){u(e.condition,n)}}));const c={};for(const{channel:r,key:l,value:f}of a){if(!s[r]&&!c[l]){c[l]=f}}return c}function Ap(e,n,t,{reactiveGeom:i}={}){const r=Dp(e,n,t,{reactiveGeom:i});const s=M(r).map((([e,n])=>`"${e}": ${n}`));return s.length>0?{signal:`{${s.join(", ")}}`}:undefined}function kp(e){const{markDef:n,config:t}=e;const i=ii("aria",n,t);if(i===false){return{}}return Object.assign(Object.assign(Object.assign({},i?{aria:i}:{}),Cp(e)),Sp(e))}function Cp(e){const{mark:n,markDef:t,config:i}=e;if(i.aria===false){return{}}const r=ii("ariaRoleDescription",t,i);if(r!=null){return{ariaRoleDescription:{value:r}}}return n in Wt?{}:{ariaRoleDescription:{value:n}}}function Sp(e){const{encoding:n,markDef:t,config:i,stack:r}=e;const s=n.description;if(s){return wp(e,s,"description",(n=>Fp(n,e.config)))}const o=ii("description",t,i);if(o!=null){return{description:Xt(o)}}if(i.aria===false){return{}}const a=Dp(n,r,i);if(z(a)){return undefined}return{description:{signal:M(a).map((([e,n],t)=>`"${t>0?"; ":""}${e}: " + (${n})`)).join(" + ")}}}function Ep(e,n,t={}){const{markDef:i,encoding:r,config:s}=n;const{vgChannel:o}=t;let{defaultRef:a,defaultValue:u}=t;if(a===undefined){u!==null&&u!==void 0?u:u=ii(e,i,s,{vgChannel:o,ignoreVgConfig:true});if(u!==undefined){a=Xt(u)}}const c=r[e];return wp(n,c,o!==null&&o!==void 0?o:e,(t=>ka({channel:e,channelDef:t,markDef:i,config:s,scaleName:n.scaleName(e),scale:n.getScaleComponent(e),stack:null,defaultRef:a})))}function Bp(e,n={filled:undefined}){var t,i,r,s;const{markDef:o,encoding:a,config:u}=e;const{type:c}=o;const l=(t=n.filled)!==null&&t!==void 0?t:ii("filled",o,u);const f=F(["bar","point","circle","square","geoshape"],c)?"transparent":undefined;const d=(r=(i=ii(l===true?"color":undefined,o,u,{vgChannel:"fill"}))!==null&&i!==void 0?i:u.mark[l===true&&"color"])!==null&&r!==void 0?r:f;const p=(s=ii(l===false?"color":undefined,o,u,{vgChannel:"stroke"}))!==null&&s!==void 0?s:u.mark[l===false&&"color"];const g=l?"fill":"stroke";const m=Object.assign(Object.assign({},d?{fill:Xt(d)}:{}),p?{stroke:Xt(p)}:{});if(o.color&&(l?o.fill:o.stroke)){Vr(Gi("property",{fill:"fill"in o,stroke:"stroke"in o}))}return Object.assign(Object.assign(Object.assign(Object.assign({},m),Ep("color",e,{vgChannel:g,defaultValue:l?d:p})),Ep("fill",e,{defaultValue:a.fill?d:undefined})),Ep("stroke",e,{defaultValue:a.stroke?p:undefined}))}function Pp(e){const{encoding:n,mark:t}=e;const i=n.order;if(!ea(t)&&vu(i)){return wp(e,i,"zindex",(e=>Xt(e.value)))}return{}}function _p({channel:e,markDef:n,encoding:t={},model:i,bandPosition:r}){const s=`${e}Offset`;const o=n[s];const a=t[s];if((s==="xOffset"||s==="yOffset")&&a){const e=ka({channel:s,channelDef:a,markDef:n,config:i===null||i===void 0?void 0:i.config,scaleName:i.scaleName(s),scale:i.getScaleComponent(s),stack:null,defaultRef:Xt(o),bandPosition:r});return{offsetType:"encoding",offset:e}}const u=n[s];if(u){return{offsetType:"visual",offset:u}}return{}}function zp(e,n,{defaultPos:t,vgChannel:i}){const{encoding:r,markDef:s,config:o,stack:a}=n;const u=r[e];const c=r[yn(e)];const l=n.scaleName(e);const f=n.getScaleComponent(e);const{offset:d,offsetType:p}=_p({channel:e,markDef:s,encoding:r,model:n,bandPosition:.5});const g=Tp({model:n,defaultPos:t,channel:e,scaleName:l,scale:f});const m=!u&&Rn(e)&&(r.latitude||r.longitude)?{field:n.getName(e)}:Np({channel:e,channelDef:u,channel2Def:c,markDef:s,config:o,scaleName:l,scale:f,stack:a,offset:d,defaultRef:g,bandPosition:p==="encoding"?0:undefined});return m?{[i||e]:m}:undefined}function Np(e){const{channel:n,channelDef:t,scaleName:i,stack:r,offset:s,markDef:o}=e;if(bu(t)&&r&&n===r.fieldChannel){if(fu(t)){let e=t.bandPosition;if(e===undefined&&o.type==="text"&&(n==="radius"||n==="theta")){e=.5}if(e!==undefined){return Aa({scaleName:i,fieldOrDatumDef:t,startSuffix:"start",bandPosition:e,offset:s})}}return Da(t,i,{suffix:"end"},{offset:s})}return xa(e)}function Tp({model:e,defaultPos:n,channel:t,scaleName:i,scale:r}){const{markDef:s,config:o}=e;return()=>{const a=hn(t);const u=bn(t);const c=ii(t,s,o,{vgChannel:u});if(c!==undefined){return Ca(t,c)}switch(n){case"zeroOrMin":case"zeroOrMax":if(i){const e=r.get("type");if(F([no.LOG,no.TIME,no.UTC],e)){}else{if(r.domainDefinitelyIncludesZero()){return{scale:i,value:0}}}}if(n==="zeroOrMin"){return a==="y"?{field:{group:"height"}}:{value:0}}else{switch(a){case"radius":return{signal:`min(${e.width.signal},${e.height.signal})/2`};case"theta":return{signal:"2*PI"};case"x":return{field:{group:"width"}};case"y":return{value:0}}}break;case"mid":{const n=e[vn(t)];return Object.assign(Object.assign({},n),{mult:.5})}}return undefined}}const Mp={left:"x",center:"xc",right:"x2"};const Lp={top:"y",middle:"yc",bottom:"y2"};function qp(e,n,t,i="middle"){if(e==="radius"||e==="theta"){return bn(e)}const r=e==="x"?"align":"baseline";const s=ii(r,n,t);let o;if(Tt(s)){Vr(ir(r));o=undefined}else{o=s}if(e==="x"){return Mp[o||(i==="top"?"left":"center")]}else{return Lp[o||i]}}function Up(e,n,{defaultPos:t,defaultPos2:i,range:r}){if(r){return Rp(e,n,{defaultPos:t,defaultPos2:i})}return zp(e,n,{defaultPos:t})}function Rp(e,n,{defaultPos:t,defaultPos2:i}){const{markDef:r,config:s}=n;const o=yn(e);const a=vn(e);const u=Ip(n,i,o);const c=u[a]?qp(e,r,s):bn(e);return Object.assign(Object.assign({},zp(e,n,{defaultPos:t,vgChannel:c})),u)}function Ip(e,n,t){const{encoding:i,mark:r,markDef:s,stack:o,config:a}=e;const u=hn(t);const c=vn(t);const l=bn(t);const f=i[u];const d=e.scaleName(u);const p=e.getScaleComponent(u);const{offset:g}=t in i||t in s?_p({channel:t,markDef:s,encoding:i,model:e}):_p({channel:u,markDef:s,encoding:i,model:e});if(!f&&(t==="x2"||t==="y2")&&(i.latitude||i.longitude)){const n=vn(t);const i=e.markDef[n];if(i!=null){return{[n]:{value:i}}}else{return{[l]:{field:e.getName(t)}}}}const m=Wp({channel:t,channelDef:f,channel2Def:i[t],markDef:s,config:a,scaleName:d,scale:p,stack:o,offset:g,defaultRef:undefined});if(m!==undefined){return{[l]:m}}return Hp(t,s)||Hp(t,{[t]:si(t,s,a.style),[c]:si(c,s,a.style)})||Hp(t,a[r])||Hp(t,a.mark)||{[l]:Tp({model:e,defaultPos:n,channel:t,scaleName:d,scale:p})()}}function Wp({channel:e,channelDef:n,channel2Def:t,markDef:i,config:r,scaleName:s,scale:o,stack:a,offset:u,defaultRef:c}){if(bu(n)&&a&&e.charAt(0)===a.fieldChannel.charAt(0)){return Da(n,s,{suffix:"start"},{offset:u})}return xa({channel:e,channelDef:t,scaleName:s,scale:o,stack:a,markDef:i,config:r,offset:u,defaultRef:c})}function Hp(e,n){const t=vn(e);const i=bn(e);if(n[i]!==undefined){return{[i]:Ca(e,n[i])}}else if(n[e]!==undefined){return{[i]:Ca(e,n[e])}}else if(n[t]){const i=n[t];if(ga(i)){Vr(Yi(t))}else{return{[t]:Ca(e,i)}}}return undefined}function Gp(e,n){var t,i;const{config:r,encoding:s,markDef:o}=e;const a=o.type;const u=yn(n);const c=vn(n);const l=s[n];const f=s[u];const d=e.getScaleComponent(n);const p=d?d.get("type"):undefined;const g=o.orient;const m=(i=(t=s[c])!==null&&t!==void 0?t:s.size)!==null&&i!==void 0?i:ii("size",o,r,{vgChannel:c});const h=a==="bar"&&(n==="x"?g==="vertical":g==="horizontal");if(fu(l)&&(At(l.bin)||kt(l.bin)||l.timeUnit&&!f)&&!(m&&!ga(m))&&!mo(p)){return Qp({fieldDef:l,fieldDef2:f,channel:n,model:e})}else if((bu(l)&&mo(p)||h)&&!f){return Kp(l,n,e)}else{return Rp(n,e,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"})}}function Yp(e,n,t,i,s){if(ga(s)){if(t){const e=t.get("type");if(e==="band"){let e=`bandwidth('${n}')`;if(s.band!==1){e=`${s.band} * ${e}`}return{signal:`max(0.25, ${e})`}}else if(s.band!==1){Vr(ur(e));s=undefined}}else{return{mult:s.band,field:{group:e}}}}else if(Tt(s)){return s}else if(s){return{value:s}}if(t){const e=t.get("range");if(Mt(e)&&(0,r.Et)(e.step)){return{value:e.step-2}}}const o=ql(i.view,e);return{value:o-2}}function Kp(e,n,t){const{markDef:i,encoding:s,config:o,stack:a}=t;const u=i.orient;const c=t.scaleName(n);const l=t.getScaleComponent(n);const f=vn(n);const d=yn(n);const p=On(n);const g=t.scaleName(p);const m=u==="horizontal"&&n==="y"||u==="vertical"&&n==="x";let h;if(s.size||i.size){if(m){h=Ep("size",t,{vgChannel:f,defaultRef:Xt(i.size)})}else{Vr(dr(i.type))}}const b=!!h;const y=su({channel:n,fieldDef:e,markDef:i,config:o,scaleType:l===null||l===void 0?void 0:l.get("type"),useVlSizeChannel:m});h=h||{[f]:Yp(f,g||c,l,o,y)};const v=(l===null||l===void 0?void 0:l.get("type"))==="band"&&ga(y)&&!b?"top":"middle";const O=qp(n,i,o,v);const x=O==="xc"||O==="yc";const{offset:w,offsetType:j}=_p({channel:n,markDef:i,encoding:s,model:t,bandPosition:x?.5:0});const F=xa({channel:n,channelDef:e,markDef:i,config:o,scaleName:c,scale:l,stack:a,offset:w,defaultRef:Tp({model:t,defaultPos:"mid",channel:n,scaleName:c,scale:l}),bandPosition:x?j==="encoding"?0:.5:Tt(y)?{signal:`(1-${y})/2`}:ga(y)?(1-y.band)/2:0});if(f){return Object.assign({[O]:F},h)}else{const e=bn(d);const n=h[f];const t=w?Object.assign(Object.assign({},n),{offset:w}):n;return{[O]:F,[e]:(0,r.cy)(F)?[F[0],Object.assign(Object.assign({},F[1]),{offset:t})]:Object.assign(Object.assign({},F),{offset:t})}}}function Vp(e,n,t,i,r){if(We(e)){return 0}const s=e==="x"||e==="y2"?-n/2:n/2;if(Tt(t)||Tt(r)||Tt(i)){const e=ei(t);const n=ei(r);const o=ei(i);const a=o?`${o} + `:"";const u=e?`(${e} ? -1 : 1) * `:"";const c=n?`(${n} + ${s})`:s;return{signal:a+u+c}}else{r=r||0;return i+(t?-r-s:+r+s)}}function Qp({fieldDef:e,fieldDef2:n,channel:t,model:i}){var r,s,o;const{config:a,markDef:u,encoding:c}=i;const l=i.getScaleComponent(t);const f=i.scaleName(t);const d=l?l.get("type"):undefined;const p=l.get("reverse");const g=su({channel:t,fieldDef:e,markDef:u,config:a,scaleType:d});const m=(r=i.component.axes[t])===null||r===void 0?void 0:r[0];const h=(s=m===null||m===void 0?void 0:m.get("translate"))!==null&&s!==void 0?s:.5;const b=Rn(t)?(o=ii("binSpacing",u,a))!==null&&o!==void 0?o:0:0;const y=yn(t);const v=bn(t);const O=bn(y);const{offset:x}=_p({channel:t,markDef:u,encoding:c,model:i,bandPosition:0});const w=Tt(g)?{signal:`(1-${g.signal})/2`}:ga(g)?(1-g.band)/2:.5;if(At(e.bin)||e.timeUnit){return{[O]:Xp({fieldDef:e,scaleName:f,bandPosition:w,offset:Vp(y,b,p,h,x)}),[v]:Xp({fieldDef:e,scaleName:f,bandPosition:Tt(w)?{signal:`1-${w.signal}`}:1-w,offset:Vp(t,b,p,h,x)})}}else if(kt(e.bin)){const i=Da(e,f,{},{offset:Vp(y,b,p,h,x)});if(fu(n)){return{[O]:i,[v]:Da(n,f,{},{offset:Vp(t,b,p,h,x)})}}else if(Ct(e.bin)&&e.bin.step){return{[O]:i,[v]:{signal:`scale("${f}", ${Du(e,{expr:"datum"})} + ${e.bin.step})`,offset:Vp(t,b,p,h,x)}}}}Vr(Nr(y));return undefined}function Xp({fieldDef:e,scaleName:n,bandPosition:t,offset:i}){return Aa({scaleName:n,fieldOrDatumDef:e,bandPosition:t,offset:i})}const Jp=new Set(["aria","width","height"]);function Zp(e,n){const{fill:t=undefined,stroke:i=undefined}=n.color==="include"?Bp(e):{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ng(e.markDef,n)),eg(e,"fill",t)),eg(e,"stroke",i)),Ep("opacity",e)),Ep("fillOpacity",e)),Ep("strokeOpacity",e)),Ep("strokeWidth",e)),Ep("strokeDash",e)),Pp(e)),$p(e)),jp(e,"href")),kp(e))}function eg(e,n,t){const{config:i,mark:s,markDef:o}=e;const a=ii("invalid",o,i);if(a==="hide"&&t&&!ea(s)){const i=tg(e,{invalid:true,channels:ut});if(i){return{[n]:[{test:i,value:null},...(0,r.YO)(t)]}}}return t?{[n]:t}:{}}function ng(e,n){return It.reduce(((t,i)=>{if(!Jp.has(i)&&e[i]!==undefined&&n[i]!=="ignore"){t[i]=Xt(e[i])}return t}),{})}function tg(e,{invalid:n=false,channels:t}){const i=t.reduce(((n,t)=>{const i=e.getScaleComponent(t);if(i){const r=i.get("type");const s=e.vgField(t,{expr:"datum"});if(s&&ho(r)){n[s]=true}}return n}),{});const r=N(i);if(r.length>0){const e=n?"||":"&&";return r.map((e=>Fa(e,n))).join(` ${e} `)}return undefined}function ig(e){const{config:n,markDef:t}=e;const i=ii("invalid",t,n);if(i){const n=rg(e,{channels:Un});if(n){return{defined:{signal:n}}}}return{}}function rg(e,{invalid:n=false,channels:t}){const i=t.reduce(((n,t)=>{var i;const r=e.getScaleComponent(t);if(r){const s=r.get("type");const o=e.vgField(t,{expr:"datum",binSuffix:((i=e.stack)===null||i===void 0?void 0:i.impute)?"mid":undefined});if(o&&ho(s)){n[o]=true}}return n}),{});const r=N(i);if(r.length>0){const e=n?"||":"&&";return r.map((e=>Fa(e,n))).join(` ${e} `)}return undefined}function sg(e,n){if(n!==undefined){return{[e]:Xt(n)}}return undefined}const og="voronoi";const ag={defined:e=>e.type==="point"&&e.nearest,parse:(e,n)=>{if(n.events){for(const t of n.events){t.markname=e.getName(og)}}},marks:(e,n,t)=>{const{x:i,y:r}=n.project.hasChannel;const s=e.mark;if(ea(s)){Vr(vi(s));return t}const o={name:e.getName(og),type:"path",interactive:true,from:{data:e.getName("marks")},encode:{update:Object.assign({fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:true}},$p(e,{reactiveGeom:true}))},transform:[{type:"voronoi",x:{expr:i||!r?"datum.datum.x || 0":"0"},y:{expr:r||!i?"datum.datum.y || 0":"0"},size:[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]}]};let a=0;let u=false;t.forEach(((n,t)=>{var i;const r=(i=n.name)!==null&&i!==void 0?i:"";if(r===e.component.mark[0].name){a=t}else if(r.indexOf(og)>=0){u=true}}));if(!u){t.splice(a+1,0,o)}return t}};const ug=ag;const cg={defined:e=>e.type==="point"&&e.resolve==="global"&&e.bind&&e.bind!=="scales"&&!wl(e.bind),parse:(e,n,t)=>Mg(n,t),topLevelSignals:(e,n,t)=>{const i=n.name;const s=n.project;const o=n.bind;const a=n.init&&n.init[0];const u=ug.defined(n)?"(item().isVoronoi ? datum.datum : datum)":"datum";s.items.forEach(((e,s)=>{var c,l;const f=q(`${i}_${e.field}`);const d=t.filter((e=>e.name===f));if(!d.length){t.unshift(Object.assign(Object.assign({name:f},a?{init:Hd(a[s])}:{value:null}),{on:n.events?[{events:n.events,update:`datum && item().mark.marktype !== 'group' ? ${u}[${(0,r.r$)(e.field)}] : null`}]:[],bind:(l=(c=o[e.field])!==null&&c!==void 0?c:o[e.channel])!==null&&l!==void 0?l:o}))}}));return t},signals:(e,n,t)=>{const i=n.name;const r=n.project;const s=t.filter((e=>e.name===i+Sg))[0];const o=i+sp;const a=r.items.map((e=>q(`${i}_${e.field}`)));const u=a.map((e=>`${e} !== null`)).join(" && ");if(a.length){s.update=`${u} ? {fields: ${o}, values: [${a.join(", ")}]} : null`}delete s.value;delete s.on;return t}};const lg=cg;const fg="_toggle";const dg={defined:e=>e.type==="point"&&!!e.toggle,signals:(e,n,t)=>t.concat({name:n.name+fg,value:false,on:[{events:n.events,update:n.toggle}]}),modifyExpr:(e,n)=>{const t=n.name+Sg;const i=n.name+fg;return`${i} ? null : ${t}, `+(n.resolve==="global"?`${i} ? null : true, `:`${i} ? null : {unit: ${Ng(e)}}, `)+`${i} ? ${t} : null`}};const pg=dg;const gg={defined:e=>e.clear!==undefined&&e.clear!==false,parse:(e,n)=>{if(n.clear){n.clear=(0,r.Kg)(n.clear)?(0,Id.P)(n.clear,"view"):n.clear}},topLevelSignals:(e,n,t)=>{if(lg.defined(n)){for(const e of n.project.items){const i=t.findIndex((t=>t.name===q(`${n.name}_${e.field}`)));if(i!==-1){t[i].on.push({events:n.clear,update:"null"})}}}return t},signals:(e,n,t)=>{function i(e,i){if(e!==-1&&t[e].on){t[e].on.push({events:n.clear,update:i})}}if(n.type==="interval"){for(const e of n.project.items){const n=t.findIndex((n=>n.name===e.signals.visual));i(n,"[0, 0]");if(n===-1){const n=t.findIndex((n=>n.name===e.signals.data));i(n,"null")}}}else{let e=t.findIndex((e=>e.name===n.name+Sg));i(e,"null");if(pg.defined(n)){e=t.findIndex((e=>e.name===n.name+fg));i(e,"false")}}return t}};const mg=gg;const hg={defined:e=>{const n=e.resolve==="global"&&e.bind&&wl(e.bind);const t=e.project.items.length===1&&e.project.items[0].field!==Ol;if(n&&!t){Vr(ji)}return n&&t},parse:(e,n,t)=>{var i;const s=b(t);s.select=(0,r.Kg)(s.select)?{type:s.select,toggle:n.toggle}:Object.assign(Object.assign({},s.select),{toggle:n.toggle});Mg(n,s);if((0,Rs.isObject)(t.select)&&(t.select.on||t.select.clear)){const e='event.item && indexof(event.item.mark.role, "legend") < 0';for(const t of n.events){t.filter=(0,r.YO)((i=t.filter)!==null&&i!==void 0?i:[]);if(!t.filter.includes(e)){t.filter.push(e)}}}const o=jl(n.bind)?n.bind.legend:"click";const a=(0,r.Kg)(o)?(0,Id.P)(o,"view"):(0,r.YO)(o);n.bind={legend:{merge:a}}},topLevelSignals:(e,n,t)=>{const i=n.name;const r=jl(n.bind)&&n.bind.legend;const s=e=>n=>{const t=b(n);t.markname=e;return t};for(const o of n.project.items){if(!o.hasLegend)continue;const e=`${q(o.field)}_legend`;const a=`${i}_${e}`;const u=t.filter((e=>e.name===a));if(u.length===0){const i=r.merge.map(s(`${e}_symbols`)).concat(r.merge.map(s(`${e}_labels`))).concat(r.merge.map(s(`${e}_entries`)));t.unshift(Object.assign(Object.assign({name:a},!n.init?{value:null}:{}),{on:[{events:i,update:"datum.value || item().items[0].items[0].datum.value",force:true},{events:r.merge,update:`!event.item || !datum ? null : ${a}`,force:true}]}))}}return t},signals:(e,n,t)=>{const i=n.name;const r=n.project;const s=t.find((e=>e.name===i+Sg));const o=i+sp;const a=r.items.filter((e=>e.hasLegend)).map((e=>q(`${i}_${q(e.field)}_legend`)));const u=a.map((e=>`${e} !== null`)).join(" && ");const c=`${u} ? {fields: ${o}, values: [${a.join(", ")}]} : null`;if(n.events&&a.length>0){s.on.push({events:a.map((e=>({signal:e}))),update:c})}else if(a.length>0){s.update=c;delete s.value;delete s.on}const l=t.find((e=>e.name===i+fg));const f=jl(n.bind)&&n.bind.legend;if(l){if(!n.events)l.on[0].events=f;else l.on.push(Object.assign(Object.assign({},l.on[0]),{events:f}))}return t}};const bg=hg;function yg(e,n,t){var i,r,s,o;const a=(i=e.fieldDef(n))===null||i===void 0?void 0:i.field;for(const u of T((r=e.component.selection)!==null&&r!==void 0?r:{})){const e=(s=u.project.hasField[a])!==null&&s!==void 0?s:u.project.hasChannel[n];if(e&&hg.defined(u)){const n=(o=t.get("selections"))!==null&&o!==void 0?o:[];n.push(u.name);t.set("selections",n,false);e.hasLegend=true}}}const vg="_translate_anchor";const Og="_translate_delta";const xg={defined:e=>e.type==="interval"&&e.translate,signals:(e,n,t)=>{const i=n.name;const r=lp.defined(n);const s=i+vg;const{x:o,y:a}=n.project.hasChannel;let u=(0,Id.P)(n.translate,"scope");if(!r){u=u.map((e=>(e.between[0].markname=i+gp,e)))}t.push({name:s,value:{},on:[{events:u.map((e=>e.between[0])),update:"{x: x(unit), y: y(unit)"+(o!==undefined?`, extent_x: ${r?fp(e,ce):`slice(${o.signals.visual})`}`:"")+(a!==undefined?`, extent_y: ${r?fp(e,le):`slice(${a.signals.visual})`}`:"")+"}"}]},{name:i+Og,value:{},on:[{events:u,update:`{x: ${s}.x - x(unit), y: ${s}.y - y(unit)}`}]});if(o!==undefined){jg(e,n,o,"width",t)}if(a!==undefined){jg(e,n,a,"height",t)}return t}};const wg=xg;function jg(e,n,t,i,r){var s,o;const a=n.name;const u=a+vg;const c=a+Og;const l=t.channel;const f=lp.defined(n);const d=r.filter((e=>e.name===t.signals[f?"data":"visual"]))[0];const p=e.getSizeSignalRef(i).signal;const g=e.getScaleComponent(l);const m=g.get("type");const h=g.get("reverse");const b=!f?"":l===ce?h?"":"-":h?"-":"";const y=`${u}.extent_${l}`;const v=`${b}${c}.${l} / ${f?`${p}`:`span(${y})`}`;const O=!f?"panLinear":m==="log"?"panLog":m==="symlog"?"panSymlog":m==="pow"?"panPow":"panLinear";const x=!f?"":m==="pow"?`, ${(s=g.get("exponent"))!==null&&s!==void 0?s:1}`:m==="symlog"?`, ${(o=g.get("constant"))!==null&&o!==void 0?o:1}`:"";const w=`${O}(${y}, ${v}${x})`;d.on.push({events:{signal:c},update:f?w:`clampRange(${w}, 0, ${p})`})}const Fg="_zoom_anchor";const $g="_zoom_delta";const Dg={defined:e=>e.type==="interval"&&e.zoom,signals:(e,n,t)=>{const i=n.name;const s=lp.defined(n);const o=i+$g;const{x:a,y:u}=n.project.hasChannel;const c=(0,r.r$)(e.scaleName(ce));const l=(0,r.r$)(e.scaleName(le));let f=(0,Id.P)(n.zoom,"scope");if(!s){f=f.map((e=>(e.markname=i+gp,e)))}t.push({name:i+Fg,on:[{events:f,update:!s?`{x: x(unit), y: y(unit)}`:"{"+[c?`x: invert(${c}, x(unit))`:"",l?`y: invert(${l}, y(unit))`:""].filter((e=>!!e)).join(", ")+"}"}]},{name:o,on:[{events:f,force:true,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]});if(a!==undefined){kg(e,n,a,"width",t)}if(u!==undefined){kg(e,n,u,"height",t)}return t}};const Ag=Dg;function kg(e,n,t,i,r){var s,o;const a=n.name;const u=t.channel;const c=lp.defined(n);const l=r.filter((e=>e.name===t.signals[c?"data":"visual"]))[0];const f=e.getSizeSignalRef(i).signal;const d=e.getScaleComponent(u);const p=d.get("type");const g=c?fp(e,u):l.name;const m=a+$g;const h=`${a}${Fg}.${u}`;const b=!c?"zoomLinear":p==="log"?"zoomLog":p==="symlog"?"zoomSymlog":p==="pow"?"zoomPow":"zoomLinear";const y=!c?"":p==="pow"?`, ${(s=d.get("exponent"))!==null&&s!==void 0?s:1}`:p==="symlog"?`, ${(o=d.get("constant"))!==null&&o!==void 0?o:1}`:"";const v=`${b}(${g}, ${h}, ${m}${y})`;l.on.push({events:{signal:m},update:c?v:`clampRange(${v}, 0, ${f})`})}const Cg="_store";const Sg="_tuple";const Eg="_modify";const Bg="_selection_domain_";const Pg="vlSelectionResolve";const _g=[xp,bp,up,pg,lg,lp,bg,mg,wg,Ag,ug];function zg(e){let n=e.parent;while(n){if(ex(n))break;n=n.parent}return n}function Ng(e,{escape:n}={escape:true}){let t=n?(0,r.r$)(e.name):e.name;const i=zg(e);if(i){const{facet:e}=i;for(const n of Je){if(e[n]){t+=` + '__facet_${n}_' + (facet[${(0,r.r$)(i.vgField(n))}])`}}}return t}function Tg(e){var n;return T((n=e.component.selection)!==null&&n!==void 0?n:{}).reduce(((e,n)=>e||n.project.hasSelectionId),false)}function Mg(e,n){if((0,Rs.isString)(n.select)||!n.select.on)delete e.events;if((0,Rs.isString)(n.select)||!n.select.clear)delete e.clear;if((0,Rs.isString)(n.select)||!n.select.toggle)delete e.toggle}const Lg="RawCode";const qg="Literal";const Ug="Property";const Rg="Identifier";const Ig="ArrayExpression";const Wg="BinaryExpression";const Hg="CallExpression";const Gg="ConditionalExpression";const Yg="LogicalExpression";const Kg="MemberExpression";const Vg="ObjectExpression";const Qg="UnaryExpression";function Xg(e){this.type=e}Xg.prototype.visit=function(e){let n,t,i;if(e(this))return 1;for(n=Jg(this),t=0,i=n.length;t";Zg[om]="Identifier";Zg[am]="Keyword";Zg[um]="Null";Zg[cm]="Numeric";Zg[lm]="Punctuator";Zg[fm]="String";Zg[dm]="RegularExpression";var pm="ArrayExpression",gm="BinaryExpression",mm="CallExpression",hm="ConditionalExpression",bm="Identifier",ym="Literal",vm="LogicalExpression",Om="MemberExpression",xm="ObjectExpression",wm="Property",jm="UnaryExpression";var Fm="Unexpected token %0",$m="Unexpected number",Dm="Unexpected string",Am="Unexpected identifier",km="Unexpected reserved word",Cm="Unexpected end of input",Sm="Invalid regular expression",Em="Invalid regular expression: missing /",Bm="Octal literals are not allowed in strict mode.",Pm="Duplicate data property in object literal not allowed in strict mode";var _m="ILLEGAL",zm="Disabled.";var Nm=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),Tm=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function Mm(e,n){if(!e){throw new Error("ASSERT: "+n)}}function Lm(e){return e>=48&&e<=57}function qm(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function Um(e){return"01234567".indexOf(e)>=0}function Rm(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function Im(e){return e===10||e===13||e===8232||e===8233}function Wm(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e===92||e>=128&&Nm.test(String.fromCharCode(e))}function Hm(e){return e===36||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===92||e>=128&&Tm.test(String.fromCharCode(e))}const Gm={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function Ym(){while(nm1114111||e!=="}"){wh({},Fm,_m)}if(n<=65535){return String.fromCharCode(n)}t=(n-65536>>10)+55296;i=(n-65536&1023)+56320;return String.fromCharCode(t,i)}function Qm(){var e,n;e=em.charCodeAt(nm++);n=String.fromCharCode(e);if(e===92){if(em.charCodeAt(nm)!==117){wh({},Fm,_m)}++nm;e=Km("u");if(!e||e==="\\"||!Wm(e.charCodeAt(0))){wh({},Fm,_m)}n=e}while(nm>>="){nm+=4;return{type:lm,value:o,start:e,end:nm}}s=o.substr(0,3);if(s===">>>"||s==="<<="||s===">>="){nm+=3;return{type:lm,value:s,start:e,end:nm}}r=s.substr(0,2);if(i===r[1]&&"+-<>&|".indexOf(i)>=0||r==="=>"){nm+=2;return{type:lm,value:r,start:e,end:nm}}if(r==="//"){wh({},Fm,_m)}if("<>=!+-*%&|^/".indexOf(i)>=0){++nm;return{type:lm,value:i,start:e,end:nm}}wh({},Fm,_m)}function eh(e){let n="";while(nm=0&&nm=0){t=t.replace(/\\u\{([0-9a-fA-F]+)\}/g,((e,n)=>{if(parseInt(n,16)<=1114111){return"x"}wh({},Sm)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}try{new RegExp(t)}catch(i){wh({},Sm)}try{return new RegExp(e,n)}catch(r){return null}}function sh(){var e,n,t,i,r;e=em[nm];Mm(e==="/","Regular expression literal must start with a slash");n=em[nm++];t=false;i=false;while(nm=0){wh({},Sm,t)}return{value:t,literal:n}}function ah(){var e,n,t,i;im=null;Ym();e=nm;n=sh();t=oh();i=rh(n.value,t.value);return{literal:n.literal+t.literal,value:i,regex:{pattern:n.value,flags:t.value},start:e,end:nm}}function uh(e){return e.type===om||e.type===am||e.type===rm||e.type===um}function ch(){Ym();if(nm>=tm){return{type:sm,start:nm,end:nm}}const e=em.charCodeAt(nm);if(Wm(e)){return Jm()}if(e===40||e===41||e===59){return Zm()}if(e===39||e===34){return ih()}if(e===46){if(Lm(em.charCodeAt(nm+1))){return th()}return Zm()}if(Lm(e)){return th()}return Zm()}function lh(){const e=im;nm=e.end;im=ch();nm=e.end;return e}function fh(){const e=nm;im=ch();nm=e}function dh(e){const n=new Xg(pm);n.elements=e;return n}function ph(e,n,t){const i=new Xg(e==="||"||e==="&&"?vm:gm);i.operator=e;i.left=n;i.right=t;return i}function gh(e,n){const t=new Xg(mm);t.callee=e;t.arguments=n;return t}function mh(e,n,t){const i=new Xg(hm);i.test=e;i.consequent=n;i.alternate=t;return i}function hh(e){const n=new Xg(bm);n.name=e;return n}function bh(e){const n=new Xg(ym);n.value=e.value;n.raw=em.slice(e.start,e.end);if(e.regex){if(n.raw==="//"){n.raw="/(?:)/"}n.regex=e.regex}return n}function yh(e,n,t){const i=new Xg(Om);i.computed=e==="[";i.object=n;i.property=t;if(!i.computed)t.member=true;return i}function vh(e){const n=new Xg(xm);n.properties=e;return n}function Oh(e,n,t){const i=new Xg(wm);i.key=n;i.value=t;i.kind=e;return i}function xh(e,n){const t=new Xg(jm);t.operator=e;t.argument=n;t.prefix=true;return t}function wh(e,n){var t,i=Array.prototype.slice.call(arguments,2),r=n.replace(/%(\d)/g,((e,n)=>{Mm(n":case"<=":case">=":case"instanceof":case"in":n=7;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11;break}return n}function Rh(){var e,n,t,i,r,s,o,a,u,c;e=im;u=qh();i=im;r=Uh(i);if(r===0){return u}i.prec=r;lh();n=[e,im];o=qh();s=[u,i,o];while((r=Uh(im))>0){while(s.length>2&&r<=s[s.length-2].prec){o=s.pop();a=s.pop().value;u=s.pop();n.pop();t=ph(a,u,o);s.push(t)}i=lh();i.prec=r;s.push(i);n.push(im);t=qh();s.push(t)}c=s.length-1;t=s[c];n.pop();while(c>1){n.pop();t=ph(s[c-1].value,s[c-2],t);c-=2}return t}function Ih(){var e,n,t;e=Rh();if($h("?")){lh();n=Ih();Fh(":");t=Ih();e=mh(e,n,t)}return e}function Wh(){const e=Ih();if($h(",")){throw new Error(zm)}return e}function Hh(e){em=e;nm=0;tm=em.length;im=null;fh();const n=Wh();if(im.type!==sm){throw new Error("Unexpect token after expression.")}return n}var Gh={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function Yh(e){function n(n,t,i,r){let s=e(t[0]);if(i){s=i+"("+s+")";if(i.lastIndexOf("new ",0)===0)s="("+s+")"}return s+"."+n+(r<0?"":r===0?"()":"("+t.slice(1).map(e).join(",")+")")}function t(e,t,i){return r=>n(e,r,t,i)}const i="new Date",r="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(n){if(n.length<3)error("Missing arguments to clamp function.");if(n.length>3)error("Too many arguments to clamp function.");const t=n.map(e);return"Math.max("+t[1]+", Math.min("+t[2]+","+t[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:t("getDate",i,0),day:t("getDay",i,0),year:t("getFullYear",i,0),month:t("getMonth",i,0),hours:t("getHours",i,0),minutes:t("getMinutes",i,0),seconds:t("getSeconds",i,0),milliseconds:t("getMilliseconds",i,0),time:t("getTime",i,0),timezoneoffset:t("getTimezoneOffset",i,0),utcdate:t("getUTCDate",i,0),utcday:t("getUTCDay",i,0),utcyear:t("getUTCFullYear",i,0),utcmonth:t("getUTCMonth",i,0),utchours:t("getUTCHours",i,0),utcminutes:t("getUTCMinutes",i,0),utcseconds:t("getUTCSeconds",i,0),utcmilliseconds:t("getUTCMilliseconds",i,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",r,0),lower:t("toLowerCase",r,0),substring:t("substring",r),split:t("split",r),trim:t("trim",r,0),regexp:s,test:t("test",s),if:function(n){if(n.length<3)error("Missing arguments to if function.");if(n.length>3)error("Too many arguments to if function.");const t=n.map(e);return"("+t[0]+"?"+t[1]+":"+t[2]+")"}}}function Kh(e){const n=e&&e.length-1;return n&&(e[0]==='"'&&e[n]==='"'||e[0]==="'"&&e[n]==="'")?e.slice(1,-1):e}function Vh(e){e=e||{};const n=e.allowed?toSet(e.allowed):{},t=e.forbidden?toSet(e.forbidden):{},i=e.constants||Gh,r=(e.functions||Yh)(f),s=e.globalvar,o=e.fieldvar,a=isFunction(s)?s:e=>`${s}["${e}"]`;let u={},c={},l=0;function f(e){if(isString(e))return e;const n=d[e.type];if(n==null)error("Unsupported type: "+e.type);return n(e)}const d={Literal:e=>e.raw,Identifier:e=>{const r=e.name;if(l>0){return r}else if(hasOwnProperty(t,r)){return error("Illegal identifier: "+r)}else if(hasOwnProperty(i,r)){return i[r]}else if(hasOwnProperty(n,r)){return r}else{u[r]=1;return a(r)}},MemberExpression:e=>{const n=!e.computed,t=f(e.object);if(n)l+=1;const i=f(e.property);if(t===o){c[Kh(i)]=1}if(n)l-=1;return t+(n?"."+i:"["+i+"]")},CallExpression:e=>{if(e.callee.type!=="Identifier"){error("Illegal callee type: "+e.callee.type)}const n=e.callee.name,t=e.arguments,i=hasOwnProperty(r,n)&&r[n];if(!i)error("Unrecognized function: "+n);return isFunction(i)?i(t):i+"("+t.map(f).join(",")+")"},ArrayExpression:e=>"["+e.elements.map(f).join(",")+"]",BinaryExpression:e=>"("+f(e.left)+" "+e.operator+" "+f(e.right)+")",UnaryExpression:e=>"("+e.operator+f(e.argument)+")",ConditionalExpression:e=>"("+f(e.test)+"?"+f(e.consequent)+":"+f(e.alternate)+")",LogicalExpression:e=>"("+f(e.left)+e.operator+f(e.right)+")",ObjectExpression:e=>"{"+e.properties.map(f).join(",")+"}",Property:e=>{l+=1;const n=f(e.key);l-=1;return n+":"+f(e.value)}};function p(e){const n={code:f(e),globals:Object.keys(u),fields:Object.keys(c)};u={};c={};return n}p.functions=r;p.constants=i;return p}function Qh(e){const n=[];if(e.type==="Identifier"){return[e.name]}if(e.type==="Literal"){return[e.value]}if(e.type==="MemberExpression"){n.push(...Qh(e.object));n.push(...Qh(e.property))}return n}function Xh(e){if(e.object.type==="MemberExpression"){return Xh(e.object)}return e.object.name==="datum"}function Jh(e){const n=Hh(e);const t=new Set;n.visit((e=>{if(e.type==="MemberExpression"&&Xh(e)){t.add(Qh(e).slice(1).join("."))}}));return t}class Zh extends ep{clone(){return new Zh(null,this.model,b(this.filter))}constructor(e,n,t){super(e);this.model=n;this.filter=t;this.expr=rb(this.model,this.filter,this);this._dependentFields=Jh(this.expr)}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return`Filter ${this.expr}`}}function eb(e,n){var t;const i={};const s=e.config.selection;if(!n||!n.length)return i;for(const o of n){const n=q(o.name);const a=o.select;const u=(0,r.Kg)(a)?a:a.type;const c=(0,r.Gv)(a)?b(a):{type:u};const l=s[u];for(const e in l){if(e==="fields"||e==="encodings"){continue}if(e==="mark"){c[e]=Object.assign(Object.assign({},l[e]),c[e])}if(c[e]===undefined||c[e]===true){c[e]=(t=l[e])!==null&&t!==void 0?t:c[e]}}const f=i[n]=Object.assign(Object.assign({},c),{name:n,type:u,init:o.value,bind:o.bind,events:(0,r.Kg)(c.on)?(0,Id.P)(c.on,"scope"):(0,r.YO)(b(c.on))});for(const t of _g){if(t.defined(f)&&t.parse){t.parse(e,f,o)}}}return i}function nb(e,n,t,i="datum"){const s=(0,r.Kg)(n)?n:n.param;const o=q(s);const a=(0,r.r$)(o+Cg);let u;try{u=e.getSelectionComponent(o,s)}catch(p){return`!!${o}`}if(u.project.timeUnit){const n=t!==null&&t!==void 0?t:e.component.data.raw;const i=u.project.timeUnit.clone();if(n.parent){i.insertAsParentOf(n)}else{n.parent=i}}const c=u.project.hasSelectionId?"vlSelectionIdTest(":"vlSelectionTest(";const l=u.resolve==="global"?")":`, ${(0,r.r$)(u.resolve)})`;const f=`${c}${a}, ${i}${l}`;const d=`length(data(${a}))`;return n.empty===false?`${d} && ${f}`:`!${d} || ${f}`}function tb(e,n,t){const i=q(n);const s=t["encoding"];let o=t["field"];let a;try{a=e.getSelectionComponent(i,n)}catch(u){return i}if(!s&&!o){o=a.project.items[0].field;if(a.project.items.length>1){Vr('A "field" or "encoding" must be specified when using a selection as a scale domain. '+`Using "field": ${(0,r.r$)(o)}.`)}}else if(s&&!o){const e=a.project.items.filter((e=>e.channel===s));if(!e.length||e.length>1){o=a.project.items[0].field;Vr((!e.length?"No ":"Multiple ")+`matching ${(0,r.r$)(s)} encoding found for selection ${(0,r.r$)(t.param)}. `+`Using "field": ${(0,r.r$)(o)}.`)}else{o=e[0].field}}return`${a.name}[${(0,r.r$)(Y(o))}]`}function ib(e,n){var t;for(const[i,r]of M((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=e.getName(`lookup_${i}`);e.component.data.outputNodes[t]=r.materialized=new np(new Zh(n,e,{param:i}),t,Rd.Lookup,e.component.data.outputNodeRefCounts)}}function rb(e,n,t){return U(n,(n=>{if((0,r.Kg)(n)){return n}else if(As(n)){return nb(e,n,t)}else{return Ls(n)}}))}var sb=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rMu(e,n))).join(", ")}return e}function ab(e,n,t,i){var r,s,o;var a,u;(r=e.encode)!==null&&r!==void 0?r:e.encode={};(s=(a=e.encode)[n])!==null&&s!==void 0?s:a[n]={};(o=(u=e.encode[n]).update)!==null&&o!==void 0?o:u.update={};e.encode[n].update[t]=i}function ub(e,n,t,i={header:false}){var s,o;const a=e.combine(),{disable:u,orient:c,scale:l,labelExpr:f,title:d,zindex:p}=a,g=sb(a,["disable","orient","scale","labelExpr","title","zindex"]);if(u){return undefined}for(const m in g){const e=rc[m];const t=g[m];if(e&&e!==n&&e!=="both"){delete g[m]}else if(tc(t)){const{condition:e}=t,n=sb(t,["condition"]);const i=(0,r.YO)(e);const s=nc[m];if(s){const{vgProp:e,part:t}=s;const r=[...i.map((e=>{const{test:n}=e,t=sb(e,["test"]);return Object.assign({test:rb(null,n)},t)})),n];ab(g,t,e,r);delete g[m]}else if(s===null){const e={signal:i.map((e=>{const{test:n}=e,t=sb(e,["test"]);return`${rb(null,n)} ? ${Zt(t)} : `})).join("")+Zt(n)};g[m]=e}}else if(Tt(t)){const e=nc[m];if(e){const{vgProp:n,part:i}=e;ab(g,i,n,t);delete g[m]}}if(F(["labelAlign","labelBaseline"],m)&&g[m]===null){delete g[m]}}if(n==="grid"){if(!g.grid){return undefined}if(g.encode){const{grid:e}=g.encode;g.encode=Object.assign({},e?{grid:e}:{});if(z(g.encode)){delete g.encode}}return Object.assign(Object.assign({scale:l,orient:c},g),{domain:false,labels:false,aria:false,maxExtent:0,minExtent:0,ticks:false,zindex:X(p,0)})}else{if(!i.header&&e.mainExtracted){return undefined}if(f!==undefined){let e=f;if(((o=(s=g.encode)===null||s===void 0?void 0:s.labels)===null||o===void 0?void 0:o.update)&&Tt(g.encode.labels.update.text)){e=K(f,"datum.label",g.encode.labels.update.text.signal)}ab(g,"labels","text",{signal:e})}if(g.labelAlign===null){delete g.labelAlign}if(g.encode){for(const n of ic){if(!e.hasAxisPart(n)){delete g.encode[n]}}if(z(g.encode)){delete g.encode}}const n=ob(d,t);return Object.assign(Object.assign(Object.assign(Object.assign({scale:l,orient:c,grid:false},n?{title:n}:{}),g),t.aria===false?{aria:false}:{}),{zindex:X(p,0)})}}function cb(e){const{axes:n}=e.component;const t=[];for(const i of Un){if(n[i]){for(const r of n[i]){if(!r.get("disable")&&!r.get("gridScale")){const n=i==="x"?"height":"width";const r=e.getSizeSignalRef(n).signal;if(n!==r){t.push({name:n,update:r})}}}}}return t}function lb(e,n){const{x:t=[],y:i=[]}=e;return[...t.map((e=>ub(e,"grid",n))),...i.map((e=>ub(e,"grid",n))),...t.map((e=>ub(e,"main",n))),...i.map((e=>ub(e,"main",n)))].filter((e=>e))}function fb(e,n,t,i){return Object.assign.apply(null,[{},...e.map((e=>{if(e==="axisOrient"){const e=t==="x"?"bottom":"left";const r=n[t==="x"?"axisBottom":"axisLeft"]||{};const s=n[t==="x"?"axisTop":"axisRight"]||{};const o=new Set([...N(r),...N(s)]);const a={};for(const n of o.values()){a[n]={signal:`${i["signal"]} === "${e}" ? ${ei(r[n])} : ${ei(s[n])}`}}return a}return n[e]}))])}function db(e,n,t,i){const r=n==="band"?["axisDiscrete","axisBand"]:n==="point"?["axisDiscrete","axisPoint"]:co(n)?["axisQuantitative"]:n==="time"||n==="utc"?["axisTemporal"]:[];const s=e==="x"?"axisX":"axisY";const o=Tt(t)?"axisOrient":`axis${I(t)}`;const a=[...r,...r.map((e=>s+e.substr(4)))];const u=["axis",o,s];return{vlOnlyAxisConfig:fb(a,i,e,t),vgAxisConfig:fb(u,i,e,t),axisConfigStyle:pb([...u,...a],i)}}function pb(e,n){var t;const i=[{}];for(const s of e){let e=(t=n[s])===null||t===void 0?void 0:t.style;if(e){e=(0,r.YO)(e);for(const t of e){i.push(n.style[t])}}}return Object.assign.apply(null,i)}function gb(e,n,t,i={}){var r;const s=oi(e,t,n);if(s!==undefined){return{configFrom:"style",configValue:s}}for(const o of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"]){if(((r=i[o])===null||r===void 0?void 0:r[e])!==undefined){return{configFrom:o,configValue:i[o][e]}}}return{}}const mb={scale:({model:e,channel:n})=>e.scaleName(n),format:({fieldOrDatumDef:e,config:n,axis:t})=>{const{format:i,formatType:r}=t;return Na(e,e.type,i,r,n,true)},formatType:({axis:e,fieldOrDatumDef:n,scaleType:t})=>{const{formatType:i}=e;return Ta(i,n,t)},grid:({fieldOrDatumDef:e,axis:n,scaleType:t})=>{var i;return(i=n.grid)!==null&&i!==void 0?i:hb(t,e)},gridScale:({model:e,channel:n})=>bb(e,n),labelAlign:({axis:e,labelAngle:n,orient:t,channel:i})=>e.labelAlign||xb(n,t,i),labelAngle:({labelAngle:e})=>e,labelBaseline:({axis:e,labelAngle:n,orient:t,channel:i})=>e.labelBaseline||Ob(n,t,i),labelFlush:({axis:e,fieldOrDatumDef:n,channel:t})=>{var i;return(i=e.labelFlush)!==null&&i!==void 0?i:wb(n.type,t)},labelOverlap:({axis:e,fieldOrDatumDef:n,scaleType:t})=>{var i;return(i=e.labelOverlap)!==null&&i!==void 0?i:jb(n.type,t,fu(n)&&!!n.timeUnit,fu(n)?n.sort:undefined)},orient:({orient:e})=>e,tickCount:({channel:e,model:n,axis:t,fieldOrDatumDef:i,scaleType:r})=>{var s;const o=e==="x"?"width":e==="y"?"height":undefined;const a=o?n.getSizeSignalRef(o):undefined;return(s=t.tickCount)!==null&&s!==void 0?s:$b({fieldOrDatumDef:i,scaleType:r,size:a,values:t.values})},title:({axis:e,model:n,channel:t})=>{if(e.title!==undefined){return e.title}const i=Db(n,t);if(i!==undefined){return i}const r=n.typedFieldDef(t);const s=t==="x"?"x2":"y2";const o=n.fieldDef(s);return ui(r?[tu(r)]:[],fu(o)?[tu(o)]:[])},values:({axis:e,fieldOrDatumDef:n})=>Ab(e,n),zindex:({axis:e,fieldOrDatumDef:n,mark:t})=>{var i;return(i=e.zindex)!==null&&i!==void 0?i:kb(t,n)}};function hb(e,n){return!mo(e)&&fu(n)&&!At(n===null||n===void 0?void 0:n.bin)&&!kt(n===null||n===void 0?void 0:n.bin)}function bb(e,n){const t=n==="x"?"y":"x";if(e.getScaleComponent(t)){return e.scaleName(t)}return undefined}function yb(e,n,t,i,r){const s=n===null||n===void 0?void 0:n.labelAngle;if(s!==undefined){return Tt(s)?s:ie(s)}else{const{configValue:s}=gb("labelAngle",i,n===null||n===void 0?void 0:n.style,r);if(s!==undefined){return ie(s)}else{if(t===ce&&F([Qs,Ks],e.type)&&!(fu(e)&&e.timeUnit)){return 270}return undefined}}}function vb(e){return`(((${e.signal} % 360) + 360) % 360)`}function Ob(e,n,t,i){if(e!==undefined){if(t==="x"){if(Tt(e)){const t=vb(e);const i=Tt(n)?`(${n.signal} === "top")`:n==="top";return{signal:`(45 < ${t} && ${t} < 135) || (225 < ${t} && ${t} < 315) ? "middle" :`+`(${t} <= 45 || 315 <= ${t}) === ${i} ? "bottom" : "top"`}}if(45{if(!Ou(n)){return}if(Va(n.sort)){const{field:i,timeUnit:r}=n;const s=n.sort;const o=s.map(((e,n)=>`${Ls({field:i,timeUnit:r,equal:e})} ? ${n} : `)).join("")+s.length;e=new Cb(e,{calculate:o,as:Sb(n,t,{forAs:true})})}}));return e}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return`Calculate ${w(this.transform)}`}}function Sb(e,n,t){return Du(e,Object.assign({prefix:n,suffix:"sort_index"},t!==null&&t!==void 0?t:{}))}function Eb(e,n){if(F(["top","bottom"],n)){return"column"}else if(F(["left","right"],n)){return"row"}return e==="row"?"row":"column"}function Bb(e,n,t,i){const r=i==="row"?t.headerRow:i==="column"?t.headerColumn:t.headerFacet;return X((n||{})[e],r[e],t.header[e])}function Pb(e,n,t,i){const r={};for(const s of e){const e=Bb(s,n||{},t,i);if(e!==undefined){r[s]=e}}return r}const _b=["row","column"];const zb=["header","footer"];function Nb(e,n){const t=e.component.layoutHeaders[n].title;const i=e.config?e.config:undefined;const r=e.component.layoutHeaders[n].facetFieldDef?e.component.layoutHeaders[n].facetFieldDef:undefined;const{titleAnchor:s,titleAngle:o,titleOrient:a}=Pb(["titleAnchor","titleAngle","titleOrient"],r.header,i,n);const u=Eb(n,a);const c=ie(o);return{name:`${n}-title`,type:"group",role:`${u}-title`,title:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:t},n==="row"?{orient:"left"}:{}),{style:"guide-title"}),Mb(c,u)),Tb(u,c,s)),Gb(i,r,n,dl,ll))}}function Tb(e,n,t="middle"){switch(t){case"start":return{align:"left"};case"end":return{align:"right"}}const i=xb(n,e==="row"?"left":"top",e==="row"?"y":"x");return i?{align:i}:{}}function Mb(e,n){const t=Ob(e,n==="row"?"left":"top",n==="row"?"y":"x",true);return t?{baseline:t}:{}}function Lb(e,n){const t=e.component.layoutHeaders[n];const i=[];for(const r of zb){if(t[r]){for(const s of t[r]){const o=Rb(e,n,r,t,s);if(o!=null){i.push(o)}}}}return i}function qb(e,n){var t;const{sort:i}=e;if(Ka(i)){return{field:Du(i,{expr:"datum"}),order:(t=i.order)!==null&&t!==void 0?t:"ascending"}}else if((0,r.cy)(i)){return{field:Sb(e,n,{expr:"datum"}),order:"ascending"}}else{return{field:Du(e,{expr:"datum"}),order:i!==null&&i!==void 0?i:"ascending"}}}function Ub(e,n,t){const{format:i,formatType:r,labelAngle:s,labelAnchor:o,labelOrient:a,labelExpr:u}=Pb(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],e.header,t,n);const c=Pa({fieldOrDatumDef:e,format:i,formatType:r,expr:"parent",config:t}).signal;const l=Eb(n,a);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:{signal:u?K(K(u,"datum.label",c),"datum.value",Du(e,{expr:"parent"})):c}},n==="row"?{orient:"left"}:{}),{style:"guide-label",frame:"group"}),Mb(s,l)),Tb(l,s,o)),Gb(t,e,n,pl,fl))}function Rb(e,n,t,i,r){if(r){let s=null;const{facetFieldDef:o}=i;const a=e.config?e.config:undefined;if(o&&r.labels){const{labelOrient:e}=Pb(["labelOrient"],o.header,a,n);if(n==="row"&&!F(["top","bottom"],e)||n==="column"&&!F(["left","right"],e)){s=Ub(o,n,a)}}const u=ex(e)&&!Qa(e.facet);const c=r.axes;const l=(c===null||c===void 0?void 0:c.length)>0;if(s||l){const a=n==="row"?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName(`${n}_${t}`),type:"group",role:`${n}-${t}`},i.facetFieldDef?{from:{data:e.getName(`${n}_domain`)},sort:qb(o,n)}:{}),l&&u?{from:{data:e.getName(`facet_domain_${n}`)}}:{}),s?{title:s}:{}),r.sizeSignal?{encode:{update:{[a]:r.sizeSignal}}}:{}),l?{axes:c}:{})}}return null}const Ib={column:{start:0,end:1},row:{start:1,end:0}};function Wb(e,n){return Ib[n][e]}function Hb(e,n){const t={};for(const i of Je){const r=e[i];if(r===null||r===void 0?void 0:r.facetFieldDef){const{titleAnchor:e,titleOrient:s}=Pb(["titleAnchor","titleOrient"],r.facetFieldDef.header,n,i);const o=Eb(i,s);const a=Wb(e,o);if(a!==undefined){t[o]=a}}}return z(t)?undefined:t}function Gb(e,n,t,i,r){const s={};for(const o of i){if(!r[o]){continue}const i=Bb(o,n===null||n===void 0?void 0:n.header,e,t);if(i!==undefined){s[r[o]]=i}}return s}function Yb(e){return[...Kb(e,"width"),...Kb(e,"height"),...Kb(e,"childWidth"),...Kb(e,"childHeight")]}function Kb(e,n){const t=n==="width"?"x":"y";const i=e.component.layoutSize.get(n);if(!i||i==="merged"){return[]}const r=e.getSizeSignalRef(n).signal;if(i==="step"){const n=e.getScaleComponent(t);if(n){const i=n.get("type");const s=n.get("range");if(mo(i)&&Mt(s)){const i=e.scaleName(t);if(ex(e.parent)){const n=e.parent.component.resolve;if(n.scale[t]==="independent"){return[Vb(i,s)]}}return[Vb(i,s),{name:r,update:Qb(i,n,`domain('${i}').length`)}]}}throw new Error("layout size is step although width/height is not step.")}else if(i=="container"){const n=r.endsWith("width");const t=n?"containerSize()[0]":"containerSize()[1]";const i=Ll(e.config.view,n?"width":"height");const s=`isFinite(${t}) ? ${t} : ${i}`;return[{name:r,init:s,on:[{update:s,events:"window:resize"}]}]}else{return[{name:r,value:i}]}}function Vb(e,n){const t=`${e}_step`;if(Tt(n.step)){return{name:t,update:n.step.signal}}else{return{name:t,value:n.step}}}function Qb(e,n,t){const i=n.get("type");const r=n.get("padding");const s=X(n.get("paddingOuter"),r);let o=n.get("paddingInner");o=i==="band"?o!==undefined?o:r:1;return`bandspace(${t}, ${ei(o)}, ${ei(s)}) * ${e}_step`}function Xb(e){return e==="childWidth"?"width":e==="childHeight"?"height":e}function Jb(e,n){return N(e).reduce(((t,i)=>{const r=e[i];return Object.assign(Object.assign({},t),wp(n,r,i,(e=>Xt(e.value))))}),{})}function Zb(e,n){if(ex(n)){return e==="theta"?"independent":"shared"}else if(tx(n)){return"shared"}else if(nx(n)){return Rn(e)||e==="theta"||e==="radius"?"independent":"shared"}throw new Error("invalid model type for resolve")}function ey(e,n){const t=e.scale[n];const i=Rn(n)?"axis":"legend";if(t==="independent"){if(e[i][n]==="shared"){Vr(Or(n))}return"independent"}return e[i][n]||"shared"}const ny=Object.assign(Object.assign({},yl),{disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1});const ty=N(ny);class iy extends kd{}const ry={symbols:sy,gradient:oy,labels:ay,entries:uy};function sy(e,{fieldOrDatumDef:n,model:t,channel:i,legendCmpt:s,legendType:o}){var a,u,c,l,f,d,p,g;if(o!=="symbol"){return undefined}const{markDef:m,encoding:h,config:b,mark:y}=t;const v=m.filled&&y!=="trail";let O=Object.assign(Object.assign({},ni({},t,aa)),Bp(t,{filled:v}));const x=(a=s.get("symbolOpacity"))!==null&&a!==void 0?a:b.legend.symbolOpacity;const w=(u=s.get("symbolFillColor"))!==null&&u!==void 0?u:b.legend.symbolFillColor;const j=(c=s.get("symbolStrokeColor"))!==null&&c!==void 0?c:b.legend.symbolStrokeColor;const F=x===undefined?(l=cy(h.opacity))!==null&&l!==void 0?l:m.opacity:undefined;if(O.fill){if(i==="fill"||v&&i===je){delete O.fill}else{if(O.fill["field"]){if(w){delete O.fill}else{O.fill=Xt((f=b.legend.symbolBaseFillColor)!==null&&f!==void 0?f:"black");O.fillOpacity=Xt(F!==null&&F!==void 0?F:1)}}else if((0,r.cy)(O.fill)){const e=(g=(p=ly((d=h.fill)!==null&&d!==void 0?d:h.color))!==null&&p!==void 0?p:m.fill)!==null&&g!==void 0?g:v&&m.color;if(e){O.fill=Xt(e)}}}}if(O.stroke){if(i==="stroke"||!v&&i===je){delete O.stroke}else{if(O.stroke["field"]||j){delete O.stroke}else if((0,r.cy)(O.stroke)){const e=X(ly(h.stroke||h.color),m.stroke,v?m.color:undefined);if(e){O.stroke={value:e}}}}}if(i!==Ce){const e=fu(n)&&dy(t,s,n);if(e){O.opacity=[Object.assign({test:e},Xt(F!==null&&F!==void 0?F:1)),Xt(b.legend.unselectedOpacity)]}else if(F){O.opacity=Xt(F)}}O=Object.assign(Object.assign({},O),e);return z(O)?undefined:O}function oy(e,{model:n,legendType:t,legendCmpt:i}){var r;if(t!=="gradient"){return undefined}const{config:s,markDef:o,encoding:a}=n;let u={};const c=(r=i.get("gradientOpacity"))!==null&&r!==void 0?r:s.legend.gradientOpacity;const l=c===undefined?cy(a.opacity)||o.opacity:undefined;if(l){u.opacity=Xt(l)}u=Object.assign(Object.assign({},u),e);return z(u)?undefined:u}function ay(e,{fieldOrDatumDef:n,model:t,channel:i,legendCmpt:r}){const s=t.legend(i)||{};const o=t.config;const a=fu(n)?dy(t,r,n):undefined;const u=a?[{test:a,value:1},{value:o.legend.unselectedOpacity}]:undefined;const{format:c,formatType:l}=s;let f=undefined;if(Sa(l)){f=za({fieldOrDatumDef:n,field:"datum.value",format:c,formatType:l,config:o})}else if(c===undefined&&l===undefined&&o.customFormatTypes){if(n.type==="quantitative"&&o.numberFormatType){f=za({fieldOrDatumDef:n,field:"datum.value",format:o.numberFormat,formatType:o.numberFormatType,config:o})}else if(n.type==="temporal"&&o.timeFormatType&&fu(n)&&n.timeUnit===undefined){f=za({fieldOrDatumDef:n,field:"datum.value",format:o.timeFormat,formatType:o.timeFormatType,config:o})}}const d=Object.assign(Object.assign(Object.assign({},u?{opacity:u}:{}),f?{text:f}:{}),e);return z(d)?undefined:d}function uy(e,{legendCmpt:n}){const t=n.get("selections");return(t===null||t===void 0?void 0:t.length)?Object.assign(Object.assign({},e),{fill:{value:"transparent"}}):e}function cy(e){return fy(e,((e,n)=>Math.max(e,n.value)))}function ly(e){return fy(e,((e,n)=>X(e,n.value)))}function fy(e,n){if(lu(e)){return(0,r.YO)(e.condition).reduce(n,e.value)}else if(vu(e)){return e.value}return undefined}function dy(e,n,t){const i=n.get("selections");if(!(i===null||i===void 0?void 0:i.length))return undefined;const s=(0,r.r$)(t.field);return i.map((e=>{const n=(0,r.r$)(q(e)+Cg);return`(!length(data(${n})) || (${e}[${s}] && indexof(${e}[${s}], datum.value) >= 0))`})).join(" || ")}const py={direction:({direction:e})=>e,format:({fieldOrDatumDef:e,legend:n,config:t})=>{const{format:i,formatType:r}=n;return Na(e,e.type,i,r,t,false)},formatType:({legend:e,fieldOrDatumDef:n,scaleType:t})=>{const{formatType:i}=e;return Ta(i,n,t)},gradientLength:e=>{var n,t;const{legend:i,legendConfig:r}=e;return(t=(n=i.gradientLength)!==null&&n!==void 0?n:r.gradientLength)!==null&&t!==void 0?t:xy(e)},labelOverlap:({legend:e,legendConfig:n,scaleType:t})=>{var i,r;return(r=(i=e.labelOverlap)!==null&&i!==void 0?i:n.labelOverlap)!==null&&r!==void 0?r:jy(t)},symbolType:({legend:e,markDef:n,channel:t,encoding:i})=>{var r;return(r=e.symbolType)!==null&&r!==void 0?r:my(n.type,t,i.shape,n.shape)},title:({fieldOrDatumDef:e,config:n})=>Nu(e,n,{allowDisabling:true}),type:({legendType:e,scaleType:n,channel:t})=>{if(Qe(t)&&bo(n)){if(e==="gradient"){return undefined}}else if(e==="symbol"){return undefined}return e},values:({fieldOrDatumDef:e,legend:n})=>gy(n,e)};function gy(e,n){const t=e.values;if((0,r.cy)(t)){return Zu(n,t)}else if(Tt(t)){return t}return undefined}function my(e,n,t,i){var r;if(n!=="shape"){const e=(r=ly(t))!==null&&r!==void 0?r:i;if(e){return e}}switch(e){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}function hy(e){if(e==="gradient"){return 20}return undefined}function by(e){const{legend:n}=e;return X(n.type,yy(e))}function yy({channel:e,timeUnit:n,scaleType:t}){if(Qe(e)){if(F(["quarter","month","day"],n)){return"symbol"}if(bo(t)){return"gradient"}}return"symbol"}function vy({legendConfig:e,legendType:n,orient:t,legend:i}){var r,s;return(s=(r=i.direction)!==null&&r!==void 0?r:e[n?"gradientDirection":"symbolDirection"])!==null&&s!==void 0?s:Oy(t,n)}function Oy(e,n){switch(e){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case undefined:return undefined;default:return n==="gradient"?"horizontal":undefined}}function xy({legendConfig:e,model:n,direction:t,orient:i,scaleType:r}){const{gradientHorizontalMaxLength:s,gradientHorizontalMinLength:o,gradientVerticalMaxLength:a,gradientVerticalMinLength:u}=e;if(bo(r)){if(t==="horizontal"){if(i==="top"||i==="bottom"){return wy(n,"width",o,s)}else{return o}}else{return wy(n,"height",u,a)}}return undefined}function wy(e,n,t,i){const r=e.getSizeSignalRef(n).signal;return{signal:`clamp(${r}, ${t}, ${i})`}}function jy(e){if(F(["quantile","threshold","log","symlog"],e)){return"greedy"}return undefined}function Fy(e){const n=ZO(e)?$y(e):Cy(e);e.component.legends=n;return n}function $y(e){const{encoding:n}=e;const t={};for(const i of[je,...hl]){const r=Ru(n[i]);if(!r||!e.getScaleComponent(i)){continue}if(i===De&&fu(r)&&r.type===Xs){continue}t[i]=ky(e,i)}return t}function Dy(e,n){const t=e.scaleName(n);if(e.mark==="trail"){if(n==="color"){return{stroke:t}}else if(n==="size"){return{strokeWidth:t}}}if(n==="color"){return e.markDef.filled?{fill:t}:{stroke:t}}return{[n]:t}}function Ay(e,n,t,i){switch(n){case"disable":return t!==undefined;case"values":return!!(t===null||t===void 0?void 0:t.values);case"title":if(n==="title"&&e===(i===null||i===void 0?void 0:i.title)){return true}}return e===(t||{})[n]}function ky(e,n){var t,i,r;let s=e.legend(n);const{markDef:o,encoding:a,config:u}=e;const c=u.legend;const l=new iy({},Dy(e,n));yg(e,n,l);const f=s!==undefined?!s:c.disable;l.set("disable",f,s!==undefined);if(f){return l}s=s||{};const d=e.getScaleComponent(n).get("type");const p=Ru(a[n]);const g=fu(p)?(t=$s(p.timeUnit))===null||t===void 0?void 0:t.unit:undefined;const m=s.orient||u.legend.orient||"right";const h=by({legend:s,channel:n,timeUnit:g,scaleType:d});const b=vy({legend:s,legendType:h,orient:m,legendConfig:c});const y={legend:s,channel:n,model:e,markDef:o,encoding:a,fieldOrDatumDef:p,legendConfig:c,config:u,scaleType:d,orient:m,legendType:h,direction:b};for(const j of ty){if(h==="gradient"&&j.startsWith("symbol")||h==="symbol"&&j.startsWith("gradient")){continue}const t=j in py?py[j](y):s[j];if(t!==undefined){const i=Ay(t,j,s,e.fieldDef(n));if(i||u.legend[j]===undefined){l.set(j,t,i)}}}const v=(i=s===null||s===void 0?void 0:s.encoding)!==null&&i!==void 0?i:{};const O=l.get("selections");const x={};const w={fieldOrDatumDef:p,model:e,channel:n,legendCmpt:l,legendType:h};for(const j of["labels","legend","title","symbols","gradient","entries"]){const n=Jb((r=v[j])!==null&&r!==void 0?r:{},e);const t=j in ry?ry[j](n,w):n;if(t!==undefined&&!z(t)){x[j]=Object.assign(Object.assign(Object.assign({},(O===null||O===void 0?void 0:O.length)&&fu(p)?{name:`${q(p.field)}_legend_${j}`}:{}),(O===null||O===void 0?void 0:O.length)?{interactive:!!O}:{}),{update:t})}}if(!z(x)){l.set("encode",x,!!(s===null||s===void 0?void 0:s.encoding))}return l}function Cy(e){const{legends:n,resolve:t}=e.component;for(const i of e.children){Fy(i);for(const r of N(i.component.legends)){t.legend[r]=ey(e.component.resolve,r);if(t.legend[r]==="shared"){n[r]=Sy(n[r],i.component.legends[r]);if(!n[r]){t.legend[r]="independent";delete n[r]}}}}for(const i of N(n)){for(const n of e.children){if(!n.component.legends[i]){continue}if(t.legend[i]==="shared"){delete n.component.legends[i]}}}return n}function Sy(e,n){var t,i,r,s;if(!e){return n.clone()}const o=e.getWithExplicit("orient");const a=n.getWithExplicit("orient");if(o.explicit&&a.explicit&&o.value!==a.value){return undefined}let u=false;for(const c of ty){const t=Pd(e.getWithExplicit(c),n.getWithExplicit(c),c,"legend",((e,n)=>{switch(c){case"symbolType":return Ey(e,n);case"title":return li(e,n);case"type":u=true;return Sd("symbol")}return Bd(e,n,c,"legend")}));e.setWithExplicit(c,t)}if(u){if((i=(t=e.implicit)===null||t===void 0?void 0:t.encode)===null||i===void 0?void 0:i.gradient){R(e.implicit,["encode","gradient"])}if((s=(r=e.explicit)===null||r===void 0?void 0:r.encode)===null||s===void 0?void 0:s.gradient){R(e.explicit,["encode","gradient"])}}return e}function Ey(e,n){if(n.value==="circle"){return n}return e}var By=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rzy(n,e.config))).filter((e=>e!==undefined));return i}function zy(e,n){var t,i,r;const s=e.combine(),{disable:o,labelExpr:a,selections:u}=s,c=By(s,["disable","labelExpr","selections"]);if(o){return undefined}if(n.aria===false&&c.aria==undefined){c.aria=false}if((t=c.encode)===null||t===void 0?void 0:t.symbols){const e=c.encode.symbols.update;if(e.fill&&e.fill["value"]!=="transparent"&&!e.stroke&&!c.stroke){e.stroke={value:"transparent"}}for(const n of hl){if(c[n]){delete e[n]}}}if(!c.title){delete c.title}if(a!==undefined){let e=a;if(((r=(i=c.encode)===null||i===void 0?void 0:i.labels)===null||r===void 0?void 0:r.update)&&Tt(c.encode.labels.update.text)){e=K(a,"datum.label",c.encode.labels.update.text.signal)}Py(c,"labels","text",{signal:e})}return c}function Ny(e){if(tx(e)||nx(e)){return Ty(e)}else{return My(e)}}function Ty(e){return e.children.reduce(((e,n)=>e.concat(n.assembleProjections())),My(e))}function My(e){const n=e.component.projection;if(!n||n.merged){return[]}const t=n.combine();const{name:i}=t;if(!n.data){return[Object.assign(Object.assign({name:i},{translate:{signal:"[width / 2, height / 2]"}}),t)]}else{const r={signal:`[${n.size.map((e=>e.signal)).join(", ")}]`};const s=n.data.reduce(((n,t)=>{const i=Tt(t)?t.signal:`data('${e.lookupDataSource(t)}')`;if(!F(n,i)){n.push(i)}return n}),[]);if(s.length<=0){throw new Error("Projection's fit didn't find any data sources")}return[Object.assign({name:i,size:r,fit:{signal:s.length>1?`[${s.join(", ")}]`:s[0]}},t)]}}const Ly=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];class qy extends kd{constructor(e,n,t,i){super(Object.assign({},n),{name:e});this.specifiedProjection=n;this.size=t;this.data=i;this.merged=false}get isFit(){return!!this.data}}function Uy(e){e.component.projection=ZO(e)?Ry(e):Hy(e)}function Ry(e){var n;if(e.hasProjection){const t=Pt(e.specifiedProjection);const i=!(t&&(t.scale!=null||t.translate!=null));const r=i?[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]:undefined;const s=i?Iy(e):undefined;const o=new qy(e.projectionName(true),Object.assign(Object.assign({},(n=Pt(e.config.projection))!==null&&n!==void 0?n:{}),t!==null&&t!==void 0?t:{}),r,s);if(!o.get("type")){o.set("type","equalEarth",false)}return o}return undefined}function Iy(e){const n=[];const{encoding:t}=e;for(const i of[[Oe,ve],[we,xe]]){if(Ru(t[i[0]])||Ru(t[i[1]])){n.push({signal:e.getName(`geojson_${n.length}`)})}}if(e.channelHasField(De)&&e.typedFieldDef(De).type===Xs){n.push({signal:e.getName(`geojson_${n.length}`)})}if(n.length===0){n.push(e.requestDataName(Rd.Main))}return n}function Wy(e,n){const t=D(Ly,(t=>{if(!(0,r.mQ)(e.explicit,t)&&!(0,r.mQ)(n.explicit,t)){return true}if((0,r.mQ)(e.explicit,t)&&(0,r.mQ)(n.explicit,t)&&h(e.get(t),n.get(t))){return true}return false}));const i=h(e.size,n.size);if(i){if(t){return e}else if(h(e.explicit,{})){return n}else if(h(n.explicit,{})){return e}}return null}function Hy(e){if(e.children.length===0){return undefined}let n;for(const i of e.children){Uy(i)}const t=D(e.children,(e=>{const t=e.component.projection;if(!t){return true}else if(!n){n=t;return true}else{const e=Wy(n,t);if(e){n=e}return!!e}}));if(n&&t){const t=e.projectionName(true);const i=new qy(t,n.specifiedProjection,n.size,b(n.data));for(const n of e.children){const e=n.component.projection;if(e){if(e.isFit){i.data.push(...n.component.projection.data)}n.renameProjection(e.get("name"),t);e.merged=true}}return i}return undefined}var Gy=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{if(yu(t)&&At(t.bin)){const{key:r,binComponent:s}=Jy(t,t.bin,n);e[r]=Object.assign(Object.assign(Object.assign({},s),e[r]),Yy(n,t,i,n.config))}return e}),{});if(z(t)){return null}return new Zy(e,t)}static makeFromTransform(e,n,t){const{key:i,binComponent:r}=Jy(n,n.bin,t);return new Zy(e,{[i]:r})}merge(e,n){for(const t of N(e.bins)){if(t in this.bins){n(e.bins[t].signal,this.bins[t].signal);this.bins[t].as=C([...this.bins[t].as,...e.bins[t].as],w)}else{this.bins[t]=e.bins[t]}}for(const t of e.children){e.removeChild(t);t.parent=this}e.remove()}producedFields(){return new Set(T(this.bins).map((e=>e.as)).flat(2))}dependentFields(){return new Set(T(this.bins).map((e=>e.field)))}hash(){return`Bin ${w(this.bins)}`}assemble(){return T(this.bins).flatMap((e=>{const n=[];const[t,...i]=e.as;const r=e.bin,{extent:s}=r,o=Gy(r,["extent"]);const a=Object.assign(Object.assign(Object.assign({type:"bin",field:Y(e.field),as:t,signal:e.signal},!St(s)?{extent:s}:{extent:null}),e.span?{span:{signal:`span(${e.span})`}}:{}),o);if(!s&&e.extentSignal){n.push({type:"extent",field:Y(e.field),signal:e.extentSignal});a.extent={signal:e.extentSignal}}n.push(a);for(const u of i){for(let e=0;e<2;e++){n.push({type:"formula",expr:Du({field:t[e]},{expr:"datum"}),as:u[e]})}}if(e.formula){n.push({type:"formula",expr:e.formula,as:e.formulaAs})}return n}))}}function ev(e,n,t,i){var r;const s=ZO(i)?i.encoding[yn(n)]:undefined;if(yu(t)&&ZO(i)&&ou(t,s,i.markDef,i.config)){e.add(Du(t,{}));e.add(Du(t,{suffix:"end"}));if(t.bin&&ec(t,n)){e.add(Du(t,{binSuffix:"range"}))}}else if(Ye(n)){const t=Ge(n);e.add(i.getName(t))}else{e.add(Du(t))}if(Ou(t)&&jo((r=t.scale)===null||r===void 0?void 0:r.range)){e.add(t.scale.range.field)}return e}function nv(e,n){var t;for(const i of N(n)){const r=n[i];for(const n of N(r)){if(i in e){e[i][n]=new Set([...(t=e[i][n])!==null&&t!==void 0?t:[],...r[n]])}else{e[i]={[n]:r[n]}}}}}class tv extends ep{clone(){return new tv(null,new Set(this.dimensions),b(this.measures))}constructor(e,n,t){super(e);this.dimensions=n;this.measures=t}get groupBy(){return this.dimensions}static makeFromEncoding(e,n){let t=false;n.forEachFieldDef((e=>{if(e.aggregate){t=true}}));const i={};const r=new Set;if(!t){return null}n.forEachFieldDef(((e,t)=>{var s,o,a,u;const{aggregate:c,field:l}=e;if(c){if(c==="count"){(s=i["*"])!==null&&s!==void 0?s:i["*"]={};i["*"]["count"]=new Set([Du(e,{forAs:true})])}else{if(yt(c)||vt(c)){const e=yt(c)?"argmin":"argmax";const n=c[e];(o=i[n])!==null&&o!==void 0?o:i[n]={};i[n][e]=new Set([Du({op:e,field:n},{forAs:true})])}else{(a=i[l])!==null&&a!==void 0?a:i[l]={};i[l][c]=new Set([Du(e,{forAs:true})])}if(ct(t)&&n.scaleDomain(t)==="unaggregated"){(u=i[l])!==null&&u!==void 0?u:i[l]={};i[l]["min"]=new Set([Du({field:l,aggregate:"min"},{forAs:true})]);i[l]["max"]=new Set([Du({field:l,aggregate:"max"},{forAs:true})])}}}else{ev(r,t,e,n)}}));if(r.size+N(i).length===0){return null}return new tv(e,r,i)}static makeFromTransform(e,n){var t,i,r;const s=new Set;const o={};for(const a of n.aggregate){const{op:e,field:n,as:r}=a;if(e){if(e==="count"){(t=o["*"])!==null&&t!==void 0?t:o["*"]={};o["*"]["count"]=new Set([r?r:Du(a,{forAs:true})])}else{(i=o[n])!==null&&i!==void 0?i:o[n]={};o[n][e]=new Set([r?r:Du(a,{forAs:true})])}}}for(const a of(r=n.groupby)!==null&&r!==void 0?r:[]){s.add(a)}if(s.size+N(o).length===0){return null}return new tv(e,s,o)}merge(e){if(E(this.dimensions,e.dimensions)){nv(this.measures,e.measures);return true}Xr("different dimensions, cannot merge");return false}addDimensions(e){e.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...N(this.measures)])}producedFields(){const e=new Set;for(const n of N(this.measures)){for(const t of N(this.measures[n])){const i=this.measures[n][t];if(i.size===0){e.add(`${t}_${n}`)}else{i.forEach(e.add,e)}}}return e}hash(){return`Aggregate ${w({dimensions:this.dimensions,measures:this.measures})}`}assemble(){const e=[];const n=[];const t=[];for(const r of N(this.measures)){for(const i of N(this.measures[r])){for(const s of this.measures[r][i]){t.push(s);e.push(i);n.push(r==="*"?null:Y(r))}}}const i={type:"aggregate",groupby:[...this.dimensions].map(Y),ops:e,fields:n,as:t};return i}}class iv extends ep{constructor(e,n,t,i){super(e);this.model=n;this.name=t;this.data=i;for(const s of Je){const e=n.facet[s];if(e){const{bin:t,sort:i}=e;this[s]=Object.assign({name:n.getName(`${s}_domain`),fields:[Du(e),...At(t)?[Du(e,{binSuffix:"end"})]:[]]},Ka(i)?{sortField:i}:(0,r.cy)(i)?{sortIndexField:Sb(e,s)}:{})}}this.childModel=n.child}hash(){let e=`Facet`;for(const n of Je){if(this[n]){e+=` ${n.charAt(0)}:${w(this[n])}`}}return e}get fields(){var e;const n=[];for(const t of Je){if((e=this[t])===null||e===void 0?void 0:e.fields){n.push(...this[t].fields)}}return n}dependentFields(){const e=new Set(this.fields);for(const n of Je){if(this[n]){if(this[n].sortField){e.add(this[n].sortField.field)}if(this[n].sortIndexField){e.add(this[n].sortIndexField)}}}return e}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){const e={};for(const n of Un){const t=this.childModel.component.scales[n];if(t&&!t.merged){const i=t.get("type");const r=t.get("range");if(mo(i)&&Mt(r)){const t=cO(this.childModel,n);const i=uO(t);if(i){e[n]=i}else{Vr(hi(n))}}}}return e}assembleRowColumnHeaderData(e,n,t){const i={row:"y",column:"x",facet:undefined}[e];const r=[];const s=[];const o=[];if(i&&t&&t[i]){if(n){r.push(`distinct_${t[i]}`);s.push("max")}else{r.push(t[i]);s.push("distinct")}o.push(`distinct_${t[i]}`)}const{sortField:a,sortIndexField:u}=this[e];if(a){const{op:e=Wa,field:n}=a;r.push(n);s.push(e);o.push(Du(a,{forAs:true}))}else if(u){r.push(u);s.push("max");o.push(u)}return{name:this[e].name,source:n!==null&&n!==void 0?n:this.data,transform:[Object.assign({type:"aggregate",groupby:this[e].fields},r.length?{fields:r,ops:s,as:o}:{})]}}assembleFacetHeaderData(e){var n,t;const{columns:i}=this.model.layout;const{layoutHeaders:r}=this.model.component;const s=[];const o={};for(const c of _b){for(const e of zb){const i=(n=r[c]&&r[c][e])!==null&&n!==void 0?n:[];for(const e of i){if(((t=e.axes)===null||t===void 0?void 0:t.length)>0){o[c]=true;break}}}if(o[c]){const e=`length(data("${this.facet.name}"))`;const n=c==="row"?i?{signal:`ceil(${e} / ${i})`}:1:i?{signal:`min(${e}, ${i})`}:{signal:e};s.push({name:`${this.facet.name}_${c}`,transform:[{type:"sequence",start:0,stop:n}]})}}const{row:a,column:u}=o;if(a||u){s.unshift(this.assembleRowColumnHeaderData("facet",null,e))}return s}assemble(){var e,n;const t=[];let i=null;const r=this.getChildIndependentFieldsWithStep();const{column:s,row:o,facet:a}=this;if(s&&o&&(r.x||r.y)){i=`cross_${this.column.name}_${this.row.name}`;const s=[].concat((e=r.x)!==null&&e!==void 0?e:[],(n=r.y)!==null&&n!==void 0?n:[]);const o=s.map((()=>"distinct"));t.push({name:i,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields:s,ops:o}]})}for(const u of[ae,oe]){if(this[u]){t.push(this.assembleRowColumnHeaderData(u,i,r))}}if(a){const e=this.assembleFacetHeaderData(r);if(e){t.push(...e)}}return t}}function rv(e){if(e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"')){return e.slice(1,-1)}return e}function sv(e,n){const t=W(e);if(n==="number"){return`toNumber(${t})`}else if(n==="boolean"){return`toBoolean(${t})`}else if(n==="string"){return`toString(${t})`}else if(n==="date"){return`toDate(${t})`}else if(n==="flatten"){return t}else if(n.startsWith("date:")){const e=rv(n.slice(5,n.length));return`timeParse(${t},'${e}')`}else if(n.startsWith("utc:")){const e=rv(n.slice(4,n.length));return`utcParse(${t},'${e}')`}else{Vr(Ei(n));return null}}function ov(e){const n={};g(e.filter,(e=>{var t;if(Ns(e)){let i=null;if(ks(e)){i=Vt(e.equal)}else if(Ss(e)){i=Vt(e.lte)}else if(Cs(e)){i=Vt(e.lt)}else if(Es(e)){i=Vt(e.gt)}else if(Bs(e)){i=Vt(e.gte)}else if(Ps(e)){i=e.range[0]}else if(_s(e)){i=((t=e.oneOf)!==null&&t!==void 0?t:e["in"])[0]}if(i){if(Jr(i)){n[e.field]="date"}else if((0,r.Et)(i)){n[e.field]="number"}else if((0,r.Kg)(i)){n[e.field]="string"}}if(e.timeUnit){n[e.field]="date"}}}));return n}function av(e){const n={};function t(e){if(Qu(e)){n[e.field]="date"}else if(e.type==="quantitative"&&jt(e.aggregate)){n[e.field]="number"}else if(Q(e.field)>1){if(!(e.field in n)){n[e.field]="flatten"}}else if(Ou(e)&&Ka(e.sort)&&Q(e.sort.field)>1){if(!(e.sort.field in n)){n[e.sort.field]="flatten"}}}if(ZO(e)||ex(e)){e.forEachFieldDef(((n,i)=>{if(yu(n)){t(n)}else{const r=hn(i);const s=e.fieldDef(r);t(Object.assign(Object.assign({},n),{type:s.type}))}}))}if(ZO(e)){const{mark:t,markDef:i,encoding:r}=e;if(ea(t)&&!e.encoding.order){const e=i.orient==="horizontal"?"y":"x";const t=r[e];if(fu(t)&&t.type==="quantitative"&&!(t.field in n)){n[t.field]="number"}}}return n}function uv(e){const n={};if(ZO(e)&&e.component.selection){for(const t of N(e.component.selection)){const i=e.component.selection[t];for(const e of i.project.items){if(!e.channel&&Q(e.field)>1){n[e.field]="flatten"}}}}return n}class cv extends ep{clone(){return new cv(null,b(this._parse))}constructor(e,n){super(e);this._parse=n}hash(){return`Parse ${w(this._parse)}`}static makeExplicit(e,n,t){var i;let r={};const s=n.data;if(!Md(s)&&((i=s===null||s===void 0?void 0:s.format)===null||i===void 0?void 0:i.parse)){r=s.format.parse}return this.makeWithAncestors(e,r,{},t)}static makeWithAncestors(e,n,t,i){for(const o of N(t)){const e=i.getWithExplicit(o);if(e.value!==undefined){if(e.explicit||e.value===t[o]||e.value==="derived"||t[o]==="flatten"){delete t[o]}else{Vr(Bi(o,t[o],e.value))}}}for(const o of N(n)){const e=i.get(o);if(e!==undefined){if(e===n[o]){delete n[o]}else{Vr(Bi(o,n[o],e))}}}const r=new kd(n,t);i.copyAll(r);const s={};for(const o of N(r.combine())){const e=r.get(o);if(e!==null){s[o]=e}}if(N(s).length===0||i.parseNothing){return null}return new cv(e,s)}get parse(){return this._parse}merge(e){this._parse=Object.assign(Object.assign({},this._parse),e.parse);e.remove()}assembleFormatParse(){const e={};for(const n of N(this._parse)){const t=this._parse[n];if(Q(n)===1){e[n]=t}}return e}producedFields(){return new Set(N(this._parse))}dependentFields(){return new Set(N(this._parse))}assembleTransforms(e=false){return N(this._parse).filter((n=>e?Q(n)>1:true)).map((e=>{const n=sv(e,this._parse[e]);if(!n){return null}const t={type:"formula",expr:n,as:V(e)};return t})).filter((e=>e!==null))}}class lv extends ep{clone(){return new lv(null)}constructor(e){super(e)}dependentFields(){return new Set}producedFields(){return new Set([Ol])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:Ol}}}class fv extends ep{clone(){return new fv(null,this.params)}constructor(e,n){super(e);this.params=n}dependentFields(){return new Set}producedFields(){return undefined}hash(){return`Graticule ${w(this.params)}`}assemble(){return Object.assign({type:"graticule"},this.params===true?{}:this.params)}}class dv extends ep{clone(){return new dv(null,this.params)}constructor(e,n){super(e);this.params=n}dependentFields(){return new Set}producedFields(){var e;return new Set([(e=this.params.as)!==null&&e!==void 0?e:"data"])}hash(){return`Hash ${w(this.params)}`}assemble(){return Object.assign({type:"sequence"},this.params)}}class pv extends ep{constructor(e){super(null);e!==null&&e!==void 0?e:e={name:"source"};let n;if(!Md(e)){n=e.format?Object.assign({},O(e.format,["parse"])):{}}if(Nd(e)){this._data={values:e.values}}else if(zd(e)){this._data={url:e.url};if(!n.type){let t=/(?:\.([^.]+))?$/.exec(e.url)[1];if(!F(["json","csv","tsv","dsv","topojson"],t)){t="json"}n.type=t}}else if(qd(e)){this._data={values:[{type:"Sphere"}]}}else if(Td(e)||Md(e)){this._data={}}this._generator=Md(e);if(e.name){this._name=e.name}if(n&&!z(n)){this._data.format=n}}dependentFields(){return new Set}producedFields(){return undefined}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(e){this._name=e}set parent(e){throw new Error("Source nodes have to be roots.")}remove(){throw new Error("Source nodes are roots and cannot be removed.")}hash(){throw new Error("Cannot hash sources")}assemble(){return Object.assign(Object.assign({name:this._name},this._data),{transform:[]})}}var gv=undefined&&undefined.__classPrivateFieldSet||function(e,n,t,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof n==="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,t):r?r.value=t:n.set(e,t),t};var mv=undefined&&undefined.__classPrivateFieldGet||function(e,n,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n==="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(e):i?i.value:n.get(e)};var hv;function bv(e){return e instanceof pv||e instanceof fv||e instanceof dv}class yv{constructor(){hv.set(this,void 0);gv(this,hv,false,"f")}setModified(){gv(this,hv,true,"f")}get modifiedFlag(){return mv(this,hv,"f")}}hv=new WeakMap;class vv extends yv{getNodeDepths(e,n,t){t.set(e,n);for(const i of e.children){this.getNodeDepths(i,n+1,t)}return t}optimize(e){const n=this.getNodeDepths(e,0,new Map);const t=[...n.entries()].sort(((e,n)=>n[1]-e[1]));for(const i of t){this.run(i[0])}return this.modifiedFlag}}class Ov extends yv{optimize(e){this.run(e);for(const n of e.children){this.optimize(n)}return this.modifiedFlag}}class xv extends Ov{mergeNodes(e,n){const t=n.shift();for(const i of n){e.removeChild(i);i.parent=t;i.remove()}}run(e){const n=e.children.map((e=>e.hash()));const t={};for(let i=0;i1){this.setModified();this.mergeNodes(e,t[i])}}}}class wv extends Ov{constructor(e){super();this.requiresSelectionId=e&&Tg(e)}run(e){if(e instanceof lv){if(!(this.requiresSelectionId&&(bv(e.parent)||e.parent instanceof tv||e.parent instanceof cv))){this.setModified();e.remove()}}}}class jv extends yv{optimize(e){this.run(e,new Set);return this.modifiedFlag}run(e,n){let t=new Set;if(e instanceof ip){t=e.producedFields();if(B(t,n)){this.setModified();e.removeFormulas(n);if(e.producedFields.length===0){e.remove()}}}for(const i of e.children){this.run(i,new Set([...n,...t]))}}}class Fv extends Ov{constructor(){super()}run(e){if(e instanceof np&&!e.isRequired()){this.setModified();e.remove()}}}class $v extends vv{run(e){if(bv(e)){return}if(e.numChildren()>1){return}for(const n of e.children){if(n instanceof cv){if(e instanceof cv){this.setModified();e.merge(n)}else{if(_(e.producedFields(),n.dependentFields())){continue}this.setModified();n.swapWithParent()}}}return}}class Dv extends vv{run(e){const n=[...e.children];const t=e.children.filter((e=>e instanceof cv));if(e.numChildren()>1&&t.length>=1){const i={};const r=new Set;for(const e of t){const n=e.parse;for(const e of N(n)){if(!(e in i)){i[e]=n[e]}else if(i[e]!==n[e]){r.add(e)}}}for(const e of r){delete i[e]}if(!z(i)){this.setModified();const t=new cv(e,i);for(const r of n){if(r instanceof cv){for(const e of N(i)){delete r.parse[e]}}e.removeChild(r);r.parent=t;if(r instanceof cv&&N(r.parse).length===0){r.remove()}}}}}}class Av extends vv{run(e){if(e instanceof np||e.numChildren()>0||e instanceof iv){}else if(e instanceof pv){}else{this.setModified();e.remove()}}}class kv extends vv{run(e){const n=e.children.filter((e=>e instanceof ip));const t=n.pop();for(const i of n){this.setModified();t.merge(i)}}}class Cv extends vv{run(e){const n=e.children.filter((e=>e instanceof tv));const t={};for(const i of n){const e=w(i.groupBy);if(!(e in t)){t[e]=[]}t[e].push(i)}for(const i of N(t)){const n=t[i];if(n.length>1){const t=n.pop();for(const i of n){if(t.merge(i)){e.removeChild(i);i.parent=t;i.remove();this.setModified()}}}}}}class Sv extends vv{constructor(e){super();this.model=e}run(e){const n=!(bv(e)||e instanceof Zh||e instanceof cv||e instanceof lv);const t=[];const i=[];for(const r of e.children){if(r instanceof Zy){if(n&&!_(e.producedFields(),r.dependentFields())){t.push(r)}else{i.push(r)}}}if(t.length>0){const n=t.pop();for(const e of t){n.merge(e,this.model.renameSignal.bind(this.model))}this.setModified();if(e instanceof Zy){e.merge(n,this.model.renameSignal.bind(this.model))}else{n.swapWithParent()}}if(i.length>1){const e=i.pop();for(const n of i){e.merge(n,this.model.renameSignal.bind(this.model))}this.setModified()}}}class Ev extends vv{run(e){const n=[...e.children];const t=$(n,(e=>e instanceof np));if(!t||e.numChildren()<=1){return}const i=[];let r;for(const s of n){if(s instanceof np){let n=s;while(n.numChildren()===1){const[e]=n.children;if(e instanceof np){n=e}else{break}}i.push(...n.children);if(r){e.removeChild(s);s.parent=r.parent;r.parent.removeChild(r);r.parent=n;this.setModified()}else{r=n}}else{i.push(s)}}if(i.length){this.setModified();for(const e of i){e.parent.removeChild(e);e.parent=r}}}}class Bv extends ep{clone(){return new Bv(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}addDimensions(e){this.transform.groupby=C(this.transform.groupby.concat(e),(e=>e))}dependentFields(){const e=new Set;if(this.transform.groupby){this.transform.groupby.forEach(e.add,e)}this.transform.joinaggregate.map((e=>e.field)).filter((e=>e!==undefined)).forEach(e.add,e);return e}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(e){var n;return(n=e.as)!==null&&n!==void 0?n:Du(e)}hash(){return`JoinAggregateTransform ${w(this.transform)}`}assemble(){const e=[];const n=[];const t=[];for(const r of this.transform.joinaggregate){n.push(r.op);t.push(this.getDefaultName(r));e.push(r.field===undefined?null:r.field)}const i=this.transform.groupby;return Object.assign({type:"joinaggregate",as:t,ops:n,fields:e},i!==undefined?{groupby:i}:{})}}function Pv(e){return e.stack.stackBy.reduce(((e,n)=>{const t=n.fieldDef;const i=Du(t);if(i){e.push(i)}return e}),[])}function _v(e){return(0,r.cy)(e)&&e.every((e=>(0,r.Kg)(e)))&&e.length>1}class zv extends ep{clone(){return new zv(null,b(this._stack))}constructor(e,n){super(e);this._stack=n}static makeFromTransform(e,n){const{stack:t,groupby:i,as:s,offset:o="zero"}=n;const a=[];const u=[];if(n.sort!==undefined){for(const e of n.sort){a.push(e.field);u.push(X(e.order,"ascending"))}}const c={field:a,order:u};let l;if(_v(s)){l=s}else if((0,r.Kg)(s)){l=[s,`${s}_end`]}else{l=[`${n.stack}_start`,`${n.stack}_end`]}return new zv(e,{dimensionFieldDefs:[],stackField:t,groupby:i,offset:o,sort:c,facetby:[],as:l})}static makeFromEncoding(e,n){const t=n.stack;const{encoding:i}=n;if(!t){return null}const{groupbyChannels:s,fieldChannel:o,offset:a,impute:u}=t;const c=s.map((e=>{const n=i[e];return Uu(n)})).filter((e=>!!e));const l=Pv(n);const f=n.encoding.order;let d;if((0,r.cy)(f)||fu(f)){d=ai(f)}else{d=l.reduce(((e,n)=>{e.field.push(n);e.order.push(o==="y"?"descending":"ascending");return e}),{field:[],order:[]})}return new zv(e,{dimensionFieldDefs:c,stackField:n.vgField(o),facetby:[],stackby:l,sort:d,offset:a,impute:u,as:[n.vgField(o,{suffix:"start",forAs:true}),n.vgField(o,{suffix:"end",forAs:true})]})}get stack(){return this._stack}addDimensions(e){this._stack.facetby.push(...e)}dependentFields(){const e=new Set;e.add(this._stack.stackField);this.getGroupbyFields().forEach(e.add,e);this._stack.facetby.forEach(e.add,e);this._stack.sort.field.forEach(e.add,e);return e}producedFields(){return new Set(this._stack.as)}hash(){return`Stack ${w(this._stack)}`}getGroupbyFields(){const{dimensionFieldDefs:e,impute:n,groupby:t}=this._stack;if(e.length>0){return e.map((e=>{if(e.bin){if(n){return[Du(e,{binSuffix:"mid"})]}return[Du(e,{}),Du(e,{binSuffix:"end"})]}return[Du(e)]})).flat()}return t!==null&&t!==void 0?t:[]}assemble(){const e=[];const{facetby:n,dimensionFieldDefs:t,stackField:i,stackby:r,sort:s,offset:o,impute:a,as:u}=this._stack;if(a){for(const s of t){const{bandPosition:t=.5,bin:o}=s;if(o){const n=Du(s,{expr:"datum"});const i=Du(s,{expr:"datum",binSuffix:"end"});e.push({type:"formula",expr:`${t}*${n}+${1-t}*${i}`,as:Du(s,{binSuffix:"mid",forAs:true})})}e.push({type:"impute",field:i,groupby:[...r,...n],key:Du(s,{binSuffix:"mid"}),method:"value",value:0})}}e.push({type:"stack",groupby:[...this.getGroupbyFields(),...n],field:i,sort:s,as:u,offset:o});return e}}class Nv extends ep{clone(){return new Nv(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}addDimensions(e){this.transform.groupby=C(this.transform.groupby.concat(e),(e=>e))}dependentFields(){var e,n;const t=new Set;((e=this.transform.groupby)!==null&&e!==void 0?e:[]).forEach(t.add,t);((n=this.transform.sort)!==null&&n!==void 0?n:[]).forEach((e=>t.add(e.field)));this.transform.window.map((e=>e.field)).filter((e=>e!==undefined)).forEach(t.add,t);return t}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(e){var n;return(n=e.as)!==null&&n!==void 0?n:Du(e)}hash(){return`WindowTransform ${w(this.transform)}`}assemble(){var e;const n=[];const t=[];const i=[];const r=[];for(const f of this.transform.window){t.push(f.op);i.push(this.getDefaultName(f));r.push(f.param===undefined?null:f.param);n.push(f.field===undefined?null:f.field)}const s=this.transform.frame;const o=this.transform.groupby;if(s&&s[0]===null&&s[1]===null&&t.every((e=>Ot(e)))){return Object.assign({type:"joinaggregate",as:i,ops:t,fields:n},o!==undefined?{groupby:o}:{})}const a=[];const u=[];if(this.transform.sort!==undefined){for(const n of this.transform.sort){a.push(n.field);u.push((e=n.order)!==null&&e!==void 0?e:"ascending")}}const c={field:a,order:u};const l=this.transform.ignorePeers;return Object.assign(Object.assign(Object.assign({type:"window",params:r,as:i,ops:t,fields:n,sort:c},l!==undefined?{ignorePeers:l}:{}),o!==undefined?{groupby:o}:{}),s!==undefined?{frame:s}:{})}}function Tv(e){function n(t){if(!(t instanceof iv)){const i=t.clone();if(i instanceof np){const n=qv+i.getSource();i.setSource(n);e.model.component.data.outputNodes[n]=i}else if(i instanceof tv||i instanceof zv||i instanceof Nv||i instanceof Bv){i.addDimensions(e.fields)}for(const e of t.children.flatMap(n)){e.parent=i}return[i]}return t.children.flatMap(n)}return n}function Mv(e){if(e instanceof iv){if(e.numChildren()===1&&!(e.children[0]instanceof np)){const n=e.children[0];if(n instanceof tv||n instanceof zv||n instanceof Nv||n instanceof Bv){n.addDimensions(e.fields)}n.swapWithParent();Mv(e)}else{const n=e.model.component.data.main;Lv(n);const t=Tv(e);const i=e.children.map(t).flat();for(const e of i){e.parent=n}}}else{e.children.map(Mv)}}function Lv(e){if(e instanceof np&&e.type===Rd.Main){if(e.numChildren()===1){const n=e.children[0];if(!(n instanceof iv)){n.swapWithParent();Lv(e)}}}}const qv="scale_";const Uv=5;function Rv(e){for(const n of e){for(const e of n.children){if(e.parent!==n){return false}}if(!Rv(n.children)){return false}}return true}function Iv(e,n){let t=false;for(const i of n){t=e.optimize(i)||t}return t}function Wv(e,n,t){let i=e.sources;let r=false;r=Iv(new Fv,i)||r;r=Iv(new wv(n),i)||r;i=i.filter((e=>e.numChildren()>0));r=Iv(new Av,i)||r;i=i.filter((e=>e.numChildren()>0));if(!t){r=Iv(new $v,i)||r;r=Iv(new Sv(n),i)||r;r=Iv(new jv,i)||r;r=Iv(new Dv,i)||r;r=Iv(new Cv,i)||r;r=Iv(new kv,i)||r;r=Iv(new xv,i)||r;r=Iv(new Ev,i)||r}e.sources=i;return r}function Hv(e,n){Rv(e.sources);let t=0;let i=0;for(let r=0;re(n)))}}var Yv=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const i=Ju(e,{timeUnit:t,type:n});return{signal:`{data: ${i}}`}}))}function eO(e,n,t){var i;const r=(i=$s(t))===null||i===void 0?void 0:i.unit;if(n==="temporal"||r){return Zv(e,n,r)}return[e]}function nO(e,n,t,i){const{encoding:s}=t;const o=Ru(s[i]);const{type:a}=o;const u=o["timeUnit"];if(wo(n)){const r=nO(e,undefined,t,i);const s=eO(n.unionWith,a,u);return Cd([...s,...r.value])}else if(Tt(n)){return Cd([n])}else if(n&&n!=="unaggregated"&&!xo(n)){return Cd(eO(n,a,u))}const c=t.stack;if(c&&i===c.fieldChannel){if(c.offset==="normalize"){return Sd([[0,1]])}const e=t.requestDataName(Rd.Main);return Sd([{data:e,field:t.vgField(i,{suffix:"start"})},{data:e,field:t.vgField(i,{suffix:"end"})}])}const l=ct(i)&&fu(o)?rO(t,i,e):undefined;if(pu(o)){const e=eO([o.datum],a,u);return Sd(e)}const f=o;if(n==="unaggregated"){const e=t.requestDataName(Rd.Main);const{field:n}=o;return Sd([{data:e,field:Du({field:n,aggregate:"min"})},{data:e,field:Du({field:n,aggregate:"max"})}])}else if(At(f.bin)){if(mo(e)){if(e==="bin-ordinal"){return Sd([])}return Sd([{data:L(l)?t.requestDataName(Rd.Main):t.requestDataName(Rd.Raw),field:t.vgField(i,ec(f,i)?{binSuffix:"range"}:{}),sort:l===true||!(0,r.Gv)(l)?{field:t.vgField(i,{}),op:"min"}:l}])}else{const{bin:e}=f;if(At(e)){const n=Qy(t,f.field,e);return Sd([new Gv((()=>{const e=t.getSignalName(n);return`[${e}.start, ${e}.stop]`}))])}else{return Sd([{data:t.requestDataName(Rd.Main),field:t.vgField(i,{})}])}}}else if(f.timeUnit&&F(["time","utc"],e)&&ou(f,ZO(t)?t.encoding[yn(i)]:undefined,t.markDef,t.config)){const e=t.requestDataName(Rd.Main);return Sd([{data:e,field:t.vgField(i)},{data:e,field:t.vgField(i,{suffix:"end"})}])}else if(l){return Sd([{data:L(l)?t.requestDataName(Rd.Main):t.requestDataName(Rd.Raw),field:t.vgField(i),sort:l}])}else{return Sd([{data:t.requestDataName(Rd.Main),field:t.vgField(i)}])}}function tO(e,n){const{op:t,field:i,order:r}=e;return Object.assign(Object.assign({op:t!==null&&t!==void 0?t:n?"sum":Wa},i?{field:Y(i)}:{}),r?{order:r}:{})}function iO(e,n){var t;const i=e.component.scales[n];const r=e.specifiedScales[n].domain;const s=(t=e.fieldDef(n))===null||t===void 0?void 0:t.bin;const o=xo(r)&&r;const a=Ct(s)&&St(s.extent)&&s.extent;if(o||a){i.set("selectionExtent",o!==null&&o!==void 0?o:a,true)}}function rO(e,n,t){if(!mo(t)){return undefined}const i=e.fieldDef(n);const r=i.sort;if(Va(r)){return{op:"min",field:Sb(i,n),order:"ascending"}}const{stack:s}=e;const o=s?new Set([...s.groupbyFields,...s.stackBy.map((e=>e.fieldDef.field))]):undefined;if(Ka(r)){const e=s&&!o.has(r.field);return tO(r,e)}else if(Ya(r)){const{encoding:n,order:t}=r;const i=e.fieldDef(n);const{aggregate:a,field:u}=i;const c=s&&!o.has(u);if(yt(a)||vt(a)){return tO({field:Du(i),order:t},c)}else if(Ot(a)||!a){return tO({op:a,field:u,order:t},c)}}else if(r==="descending"){return{op:"min",field:e.vgField(n),order:"descending"}}else if(F(["ascending",undefined],r)){return true}return undefined}function sO(e,n){const{aggregate:t,type:i}=e;if(!t){return{valid:false,reason:cr(e)}}if((0,r.Kg)(t)&&!$t.has(t)){return{valid:false,reason:lr(t)}}if(i==="quantitative"){if(n==="log"){return{valid:false,reason:fr(e)}}}return{valid:true}}function oO(e,n,t,i){if(e.explicit&&n.explicit){Vr(vr(t,i,e.value,n.value))}return{explicit:e.explicit,value:[...e.value,...n.value]}}function aO(e){const n=C(e.map((e=>{if(Ut(e)){const{sort:n}=e,t=Yv(e,["sort"]);return t}return e})),w);const t=C(e.map((e=>{if(Ut(e)){const n=e.sort;if(n!==undefined&&!L(n)){if("op"in n&&n.op==="count"){delete n.field}if(n.order==="ascending"){delete n.order}}return n}return undefined})).filter((e=>e!==undefined)),w);if(n.length===0){return undefined}else if(n.length===1){const n=e[0];if(Ut(n)&&t.length>0){let e=t[0];if(t.length>1){Vr(wr);e=true}else{if((0,r.Gv)(e)&&"field"in e){const t=e.field;if(n.field===t){e=e.order?{order:e.order}:true}}}return Object.assign(Object.assign({},n),{sort:e})}return n}const i=C(t.map((e=>{if(L(e)||!("op"in e)||(0,r.Kg)(e.op)&&e.op in bt){return e}Vr(xr(e));return true})),w);let s;if(i.length===1){s=i[0]}else if(i.length>1){Vr(wr);s=true}const o=C(e.map((e=>{if(Ut(e)){return e.data}return null})),(e=>e));if(o.length===1&&o[0]!==null){const e=Object.assign({data:o[0],fields:n.map((e=>e.field))},s?{sort:s}:{});return e}return Object.assign({fields:n},s?{sort:s}:{})}function uO(e){if(Ut(e)&&(0,r.Kg)(e.field)){return e.field}else if(Lt(e)){let n;for(const t of e.fields){if(Ut(t)&&(0,r.Kg)(t.field)){if(!n){n=t.field}else if(n!==t.field){Vr(jr);return n}}}Vr(Fr);return n}else if(qt(e)){Vr($r);const n=e.fields[0];return(0,r.Kg)(n)?n:undefined}return undefined}function cO(e,n){const t=e.component.scales[n];const i=t.get("domains").map((n=>{if(Ut(n)){n.data=e.lookupDataSource(n.data)}return n}));return aO(i)}var lO=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re.concat(fO(n))),dO(e))}else{return dO(e)}}function dO(e){return N(e.component.scales).reduce(((n,t)=>{const i=e.component.scales[t];if(i.merged){return n}const r=i.combine();const{name:s,type:o,selectionExtent:a,domains:u,range:c,reverse:l}=r,f=lO(r,["name","type","selectionExtent","domains","range","reverse"]);const d=pO(r.range,s,t,e);const p=cO(e,t);const g=a?Jd(e,a,i,p):null;n.push(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:s,type:o},p?{domain:p}:{}),g?{domainRaw:g}:{}),{range:d}),l!==undefined?{reverse:l}:{}),f));return n}),[])}function pO(e,n,t,i){if(Rn(t)){if(Mt(e)){return{step:{signal:`${n}_step`}}}}else if((0,r.Gv)(e)&&Ut(e)){return Object.assign(Object.assign({},e),{data:i.lookupDataSource(e.data)})}return e}class gO extends kd{constructor(e,n){super({},{name:e});this.merged=false;this.setWithExplicit("type",n)}domainDefinitelyIncludesZero(){if(this.get("zero")!==false){return true}return $(this.get("domains"),(e=>(0,r.cy)(e)&&e.length===2&&e[0]<=0&&e[1]>=0))}}const mO=["range","scheme"];function hO(e){const n=e.component.scales;for(const t of ut){const i=n[t];if(!i){continue}const r=yO(t,e);i.setWithExplicit("range",r)}}function bO(e,n){const t=e.fieldDef(n);if(t===null||t===void 0?void 0:t.bin){const{bin:i,field:s}=t;const o=vn(n);const a=e.getName(o);if((0,r.Gv)(i)&&i.binned&&i.step!==undefined){return new Gv((()=>{const t=e.scaleName(n);const r=`(domain("${t}")[1] - domain("${t}")[0]) / ${i.step}`;return`${e.getSignalName(a)} / (${r})`}))}else if(At(i)){const n=Qy(e,s,i);return new Gv((()=>{const t=e.getSignalName(n);const i=`(${t}.stop - ${t}.start) / ${t}.step`;return`${e.getSignalName(a)} / (${i})`}))}}return undefined}function yO(e,n){const t=n.specifiedScales[e];const{size:i}=n;const s=n.getScaleComponent(e);const o=s.get("type");for(const d of mO){if(t[d]!==undefined){const i=_o(o,d);const s=zo(e,d);if(!i){Vr(mr(o,d,e))}else if(s){Vr(s)}else{switch(d){case"range":{const i=t.range;if((0,r.cy)(i)){if(Rn(e)){return Cd(i.map((e=>{if(e==="width"||e==="height"){const t=n.getName(e);const i=n.getSignalName.bind(n);return Gv.fromName(i,t)}return e})))}}else if((0,r.Gv)(i)){return Cd({data:n.requestDataName(Rd.Main),field:i.field,sort:{op:"min",field:n.vgField(e)}})}return Cd(i)}case"scheme":return Cd(vO(t[d]))}}}}const a=e===ce||e==="xOffset"?"width":"height";const u=i[a];if(Bl(u)){if(Rn(e)){if(mo(o)){const t=xO(u,n,e);if(t){return Cd({step:t})}}else{Vr(br(a))}}else if(Kn(e)){const t=e===pe?"x":"y";const i=n.getScaleComponent(t);const r=i.get("type");if(r==="band"){const e=wO(u,o);if(e){return Cd(e)}}}}const{rangeMin:c,rangeMax:l}=t;const f=OO(e,n);if((c!==undefined||l!==undefined)&&_o(o,"rangeMin")&&(0,r.cy)(f)&&f.length===2){return Cd([c!==null&&c!==void 0?c:f[0],l!==null&&l!==void 0?l:f[1]])}return Sd(f)}function vO(e){if(Oo(e)){return Object.assign({scheme:e.name},O(e,["name"]))}return{scheme:e}}function OO(e,n){const{size:t,config:i,mark:r,encoding:s}=n;const o=n.getSignalName.bind(n);const{type:a}=Ru(s[e]);const u=n.getScaleComponent(e);const c=u.get("type");const{domain:l,domainMid:f}=n.specifiedScales[e];switch(e){case ce:case le:{if(F(["point","band"],c)){const r=FO(e,t,i.view);if(Bl(r)){const t=xO(r,n,e);return{step:t}}}const r=vn(e);const s=n.getName(r);if(e===le&&ho(c)){return[Gv.fromName(o,s),0]}else{return[0,Gv.fromName(o,s)]}}case pe:case ge:return jO(e,n,c);case Ae:{const s=n.component.scales[e].get("zero");const o=AO(r,s,i);const a=CO(r,t,n,i);if(yo(c)){return DO(o,a,$O(c,i,l,e))}else{return[o,a]}}case be:return[0,Math.PI*2];case ke:return[0,360];case me:{return[0,new Gv((()=>{const e=n.getSignalName("width");const t=n.getSignalName("height");return`min(${e},${t})/2`}))]}case Be:return[i.scale.minStrokeWidth,i.scale.maxStrokeWidth];case Pe:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case De:return"symbol";case je:case Fe:case $e:if(c==="ordinal"){return a==="nominal"?"category":"ordinal"}else{if(f!==undefined){return"diverging"}else{return r==="rect"||r==="geoshape"?"heatmap":"ramp"}}case Ce:case Se:case Ee:return[i.scale.minOpacity,i.scale.maxOpacity]}}function xO(e,n,t){var i,r,s,o,a;const{encoding:u}=n;const c=n.getScaleComponent(t);const l=xn(t);const f=u[l];const d=El({step:e,offsetIsDiscrete:bu(f)&&Gs(f.type)});if(d==="offset"&&mc(u,l)){const t=n.getScaleComponent(l);const u=n.scaleName(l);let f=`domain('${u}').length`;if(t.get("type")==="band"){const e=(r=(i=t.get("paddingInner"))!==null&&i!==void 0?i:t.get("padding"))!==null&&r!==void 0?r:0;const n=(o=(s=t.get("paddingOuter"))!==null&&s!==void 0?s:t.get("padding"))!==null&&o!==void 0?o:0;f=`bandspace(${f}, ${e}, ${n})`}const d=(a=c.get("paddingInner"))!==null&&a!==void 0?a:c.get("padding");return{signal:`${e.step} * ${f} / (1-${Jt(d)})`}}else{return e.step}}function wO(e,n){const t=El({step:e,offsetIsDiscrete:mo(n)});if(t==="offset"){return{step:e.step}}return undefined}function jO(e,n,t){const i=e===pe?"x":"y";const r=n.getScaleComponent(i);const s=r.get("type");const o=n.scaleName(i);if(s==="band"){const e=FO(i,n.size,n.config.view);if(Bl(e)){const n=wO(e,t);if(n){return n}}return[0,{signal:`bandwidth('${o}')`}]}else{return y(`Cannot use ${e} scale if ${i} scale is not discrete.`)}}function FO(e,n,t){const i=e===ce?"width":"height";const r=n[i];if(r){return r}return Ul(t,i)}function $O(e,n,t,i){switch(e){case"quantile":return n.scale.quantileCount;case"quantize":return n.scale.quantizeCount;case"threshold":if(t!==undefined&&(0,r.cy)(t)){return t.length+1}else{Vr(Mr(i));return 3}}}function DO(e,n,t){const i=()=>{const i=ei(n);const r=ei(e);const s=`(${i} - ${r}) / (${t} - 1)`;return`sequence(${r}, ${i} + ${s}, ${s})`};if(Tt(n)){return new Gv(i)}else{return{signal:i()}}}function AO(e,n,t){if(n){if(Tt(n)){return{signal:`${n.signal} ? 0 : ${AO(e,false,t)}`}}else{return 0}}switch(e){case"bar":case"tick":return t.scale.minBandSize;case"line":case"trail":case"rule":return t.scale.minStrokeWidth;case"text":return t.scale.minFontSize;case"point":case"square":case"circle":return t.scale.minSize}throw new Error(Qi("size",e))}const kO=.95;function CO(e,n,t,i){const s={x:bO(t,"x"),y:bO(t,"y")};switch(e){case"bar":case"tick":{if(i.scale.maxBandSize!==undefined){return i.scale.maxBandSize}const e=SO(n,s,i.view);if((0,r.Et)(e)){return e-1}else{return new Gv((()=>`${e.signal} - 1`))}}case"line":case"trail":case"rule":return i.scale.maxStrokeWidth;case"text":return i.scale.maxFontSize;case"point":case"square":case"circle":{if(i.scale.maxSize){return i.scale.maxSize}const e=SO(n,s,i.view);if((0,r.Et)(e)){return Math.pow(kO*e,2)}else{return new Gv((()=>`pow(${kO} * ${e.signal}, 2)`))}}}throw new Error(Qi("size",e))}function SO(e,n,t){const i=Bl(e.width)?e.width.step:ql(t,"width");const r=Bl(e.height)?e.height.step:ql(t,"height");if(n.x||n.y){return new Gv((()=>{const e=[n.x?n.x.signal:i,n.y?n.y.signal:r];return`min(${e.join(", ")})`}))}return Math.min(i,r)}function EO(e,n){if(ZO(e)){BO(e,n)}else{zO(e,n)}}function BO(e,n){const t=e.component.scales;const{config:i,encoding:r,markDef:s,specifiedScales:o}=e;for(const a of N(t)){const u=o[a];const c=t[a];const l=e.getScaleComponent(a);const f=Ru(r[a]);const d=u[n];const p=l.get("type");const g=l.get("padding");const m=l.get("paddingInner");const h=_o(p,n);const b=zo(a,n);if(d!==undefined){if(!h){Vr(mr(p,n,a))}else if(b){Vr(b)}}if(h&&b===undefined){if(d!==undefined){const e=f["timeUnit"];const t=f.type;switch(n){case"domainMax":case"domainMin":if(Jr(u[n])||t==="temporal"||e){c.set(n,{signal:Ju(u[n],{type:t,timeUnit:e})},true)}else{c.set(n,u[n],true)}break;default:c.copyKeyFromObject(n,u)}}else{const t=n in PO?PO[n]({model:e,channel:a,fieldOrDatumDef:f,scaleType:p,scalePadding:g,scalePaddingInner:m,domain:u.domain,domainMin:u.domainMin,domainMax:u.domainMax,markDef:s,config:i,hasNestedOffsetScale:hc(r,a),hasSecondaryRangeChannel:!!r[yn(a)]}):i.scale[n];if(t!==undefined){c.set(n,t,false)}}}}}const PO={bins:({model:e,fieldOrDatumDef:n})=>fu(n)?NO(e,n):undefined,interpolate:({channel:e,fieldOrDatumDef:n})=>TO(e,n.type),nice:({scaleType:e,channel:n,domain:t,domainMin:i,domainMax:r,fieldOrDatumDef:s})=>MO(e,n,t,i,r,s),padding:({channel:e,scaleType:n,fieldOrDatumDef:t,markDef:i,config:r})=>LO(e,n,r.scale,t,i,r.bar),paddingInner:({scalePadding:e,channel:n,markDef:t,scaleType:i,config:r,hasNestedOffsetScale:s})=>qO(e,n,t.type,i,r.scale,s),paddingOuter:({scalePadding:e,channel:n,scaleType:t,scalePaddingInner:i,config:r,hasNestedOffsetScale:s})=>UO(e,n,t,i,r.scale,s),reverse:({fieldOrDatumDef:e,scaleType:n,channel:t,config:i})=>{const r=fu(e)?e.sort:undefined;return RO(n,r,t,i.scale)},zero:({channel:e,fieldOrDatumDef:n,domain:t,markDef:i,scaleType:r,config:s,hasSecondaryRangeChannel:o})=>IO(e,n,t,i,r,s.scale,o)};function _O(e){if(ZO(e)){hO(e)}else{zO(e,"range")}}function zO(e,n){const t=e.component.scales;for(const i of e.children){if(n==="range"){_O(i)}else{EO(i,n)}}for(const i of N(t)){let r;for(const t of e.children){const e=t.component.scales[i];if(e){const t=e.getWithExplicit(n);r=Pd(r,t,n,"scale",Ed(((e,t)=>{switch(n){case"range":if(e.step&&t.step){return e.step-t.step}return 0}return 0})))}}t[i].setWithExplicit(n,r)}}function NO(e,n){const t=n.bin;if(At(t)){const i=Qy(e,n.field,t);return new Gv((()=>e.getSignalName(i)))}else if(kt(t)&&Ct(t)&&t.step!==undefined){return{step:t.step}}return undefined}function TO(e,n){if(F([je,Fe,$e],e)&&n!=="nominal"){return"hcl"}return undefined}function MO(e,n,t,i,s,o){var a;if(((a=Uu(o))===null||a===void 0?void 0:a.bin)||(0,r.cy)(t)||s!=null||i!=null||F([no.TIME,no.UTC],e)){return undefined}return Rn(n)?true:undefined}function LO(e,n,t,i,r,s){if(Rn(e)){if(bo(n)){if(t.continuousPadding!==undefined){return t.continuousPadding}const{type:n,orient:o}=r;if(n==="bar"&&!(fu(i)&&(i.bin||i.timeUnit))){if(o==="vertical"&&e==="x"||o==="horizontal"&&e==="y"){return s.continuousBandSize}}}if(n===no.POINT){return t.pointPadding}}return undefined}function qO(e,n,t,i,r,s=false){if(e!==undefined){return undefined}if(Rn(n)){const{bandPaddingInner:e,barBandPaddingInner:n,rectBandPaddingInner:i,bandWithNestedOffsetPaddingInner:o}=r;if(s){return o}return X(e,t==="bar"?n:i)}else if(Kn(n)){if(i===no.BAND){return r.offsetBandPaddingInner}}return undefined}function UO(e,n,t,i,r,s=false){if(e!==undefined){return undefined}if(Rn(n)){const{bandPaddingOuter:e,bandWithNestedOffsetPaddingOuter:n}=r;if(s){return n}if(t===no.BAND){return X(e,Tt(i)?{signal:`${i.signal}/2`}:i/2)}}else if(Kn(n)){if(t===no.POINT){return.5}else if(t===no.BAND){return r.offsetBandPaddingOuter}}return undefined}function RO(e,n,t,i){if(t==="x"&&i.xReverse!==undefined){if(ho(e)&&n==="descending"){if(Tt(i.xReverse)){return{signal:`!${i.xReverse.signal}`}}else{return!i.xReverse}}return i.xReverse}if(ho(e)&&n==="descending"){return true}return undefined}function IO(e,n,t,i,s,o,a){const u=!!t&&t!=="unaggregated";if(u){if(ho(s)){if((0,r.cy)(t)){const e=t[0];const n=t[t.length-1];if(e<=0&&n>=0){return true}}return false}}if(e==="size"&&n.type==="quantitative"&&!yo(s)){return true}if(!(fu(n)&&n.bin)&&F([...Un,...Wn],e)){const{orient:n,type:t}=i;if(F(["bar","area","line","trail"],t)){if(n==="horizontal"&&e==="y"||n==="vertical"&&e==="x"){return false}}if(F(["bar","area"],t)&&!a){return true}return o===null||o===void 0?void 0:o.zero}return false}function WO(e,n,t,i,r=false){const s=HO(n,t,i,r);const{type:o}=e;if(!ct(n)){return null}if(o!==undefined){if(!To(n,o)){Vr(pr(n,o,s));return s}if(fu(t)&&!No(o,t.type)){Vr(gr(o,s));return s}return o}return s}function HO(e,n,t,i){var r;switch(n.type){case"nominal":case"ordinal":{if(Qe(e)||mt(e)==="discrete"){if(e==="shape"&&n.type==="ordinal"){Vr(tr(e,"ordinal"))}return"ordinal"}if(Rn(e)||Kn(e)){if(F(["rect","bar","image","rule"],t.type)){return"band"}if(i){return"band"}}else if(t.type==="arc"&&e in In){return"band"}const s=t[vn(e)];if(ga(s)){return"band"}if(xu(n)&&((r=n.axis)===null||r===void 0?void 0:r.tickBand)){return"band"}return"point"}case"temporal":if(Qe(e)){return"time"}else if(mt(e)==="discrete"){Vr(tr(e,"temporal"));return"ordinal"}else if(fu(n)&&n.timeUnit&&$s(n.timeUnit).utc){return"utc"}return"time";case"quantitative":if(Qe(e)){if(fu(n)&&At(n.bin)){return"bin-ordinal"}return"linear"}else if(mt(e)==="discrete"){Vr(tr(e,"quantitative"));return"ordinal"}return"linear";case"geojson":return undefined}throw new Error(Ri(n.type))}function GO(e,{ignoreRange:n}={}){YO(e);Kv(e);for(const t of Po){EO(e,t)}if(!n){_O(e)}}function YO(e){if(ZO(e)){e.component.scales=KO(e)}else{e.component.scales=QO(e)}}function KO(e){const{encoding:n,mark:t,markDef:i}=e;const r={};for(const s of ut){const o=Ru(n[s]);if(o&&t===Jo&&s===De&&o.type===Xs){continue}let a=o&&o["scale"];if(Kn(s)){const e=wn(s);if(!hc(n,e)){if(a){Vr(Xi(s))}continue}}if(o&&a!==null&&a!==false){a!==null&&a!==void 0?a:a={};const t=hc(n,s);const u=WO(a,s,o,i,t);r[s]=new gO(e.scaleName(`${s}`,true),{value:u,explicit:a.type===u})}}return r}const VO=Ed(((e,n)=>oo(e)-oo(n)));function QO(e){var n;var t;const i=e.component.scales={};const r={};const s=e.component.resolve;for(const o of e.children){YO(o);for(const i of N(o.component.scales)){(n=(t=s.scale)[i])!==null&&n!==void 0?n:t[i]=Zb(i,e);if(s.scale[i]==="shared"){const e=r[i];const n=o.component.scales[i].getWithExplicit("type");if(e){if(ro(e.value,n.value)){r[i]=Pd(e,n,"type","scale",VO)}else{s.scale[i]="independent";delete r[i]}}else{r[i]=n}}}}for(const o of N(r)){const n=e.scaleName(o,true);const t=r[o];i[o]=new gO(n,t);for(const i of e.children){const e=i.component.scales[o];if(e){i.renameScale(e.get("name"),n);e.merged=true}}}return i}var XO=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var n,t,i;if((n=e.from)===null||n===void 0?void 0:n.data){e.from.data=this.lookupDataSource(e.from.data)}if((i=(t=e.from)===null||t===void 0?void 0:t.facet)===null||i===void 0?void 0:i.data){e.from.facet.data=this.lookupDataSource(e.from.facet.data)}return e};this.parent=t;this.config=r;this.view=Pt(o);this.name=(a=e.name)!==null&&a!==void 0?a:i;this.title=Nt(e.title)?{text:e.title}:e.title?Pt(e.title):undefined;this.scaleNameMap=t?t.scaleNameMap:new JO;this.projectionNameMap=t?t.projectionNameMap:new JO;this.signalNameMap=t?t.signalNameMap:new JO;this.data=e.data;this.description=e.description;this.transforms=ud((u=e.transform)!==null&&u!==void 0?u:[]);this.layout=n==="layer"||n==="unit"?{}:Tl(e,n,r);this.component={data:{sources:t?t.component.data.sources:[],outputNodes:t?t.component.data.outputNodes:{},outputNodeRefCounts:t?t.component.data.outputNodeRefCounts:{},isFaceted:Ja(e)||(t===null||t===void 0?void 0:t.component.data.isFaceted)&&e.data===undefined},layoutSize:new kd,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:Object.assign({scale:{},axis:{},legend:{}},s?b(s):{}),selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale();this.parseLayoutSize();this.renameTopLevelLayoutSizeSignal();this.parseSelections();this.parseProjection();this.parseData();this.parseAxesAndHeaders();this.parseLegends();this.parseMarkGroup()}parseScale(){GO(this)}parseProjection(){Uy(this)}renameTopLevelLayoutSizeSignal(){if(this.getName("width")!=="width"){this.renameSignal(this.getName("width"),"width")}if(this.getName("height")!=="height"){this.renameSignal(this.getName("height"),"height")}}parseLegends(){Fy(this)}assembleEncodeFromView(e){const{style:n}=e,t=XO(e,["style"]);const i={};for(const r of N(t)){const e=t[r];if(e!==undefined){i[r]=Xt(e)}}return i}assembleGroupEncodeEntry(e){let n={};if(this.view){n=this.assembleEncodeFromView(this.view)}if(!e){if(this.description){n["description"]=Xt(this.description)}if(this.type==="unit"||this.type==="layer"){return Object.assign({width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height")},n!==null&&n!==void 0?n:{})}}return z(n)?undefined:n}assembleLayout(){if(!this.layout){return undefined}const e=this.layout,{spacing:n}=e,t=XO(e,["spacing"]);const{component:i,config:r}=this;const s=Hb(i.layoutHeaders,r);return Object.assign(Object.assign(Object.assign({padding:n},this.assembleDefaultLayout()),t),s?{titleBand:s}:{})}assembleDefaultLayout(){return{}}assembleHeaderMarks(){const{layoutHeaders:e}=this.component;let n=[];for(const t of Je){if(e[t].title){n.push(Nb(this,t))}}for(const t of _b){n=n.concat(Lb(this,t))}return n}assembleAxes(){return lb(this.component.axes,this.config)}assembleLegends(){return _y(this)}assembleProjections(){return Ny(this)}assembleTitle(){var e,n,t;const i=(e=this.title)!==null&&e!==void 0?e:{},{encoding:r}=i,s=XO(i,["encoding"]);const o=Object.assign(Object.assign(Object.assign({},zt(this.config.title).nonMarkTitleProperties),s),r?{encode:{update:r}}:{});if(o.text){if(F(["unit","layer"],this.type)){if(F(["middle",undefined],o.anchor)){(n=o.frame)!==null&&n!==void 0?n:o.frame="group"}}else{(t=o.anchor)!==null&&t!==void 0?t:o.anchor="start"}return z(o)?undefined:o}return undefined}assembleGroup(e=[]){const n={};e=e.concat(this.assembleSignals());if(e.length>0){n.signals=e}const t=this.assembleLayout();if(t){n.layout=t}n.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());const i=!this.parent||ex(this.parent)?fO(this):[];if(i.length>0){n.scales=i}const r=this.assembleAxes();if(r.length>0){n.axes=r}const s=this.assembleLegends();if(s.length>0){n.legends=s}return n}getName(e){return q((this.name?`${this.name}_`:"")+e)}getDataName(e){return this.getName(Rd[e].toLowerCase())}requestDataName(e){const n=this.getDataName(e);const t=this.component.data.outputNodeRefCounts;t[n]=(t[n]||0)+1;return n}getSizeSignalRef(e){if(ex(this.parent)){const n=Xb(e);const t=Hn(n);const i=this.component.scales[t];if(i&&!i.merged){const e=i.get("type");const n=i.get("range");if(mo(e)&&Mt(n)){const e=i.get("name");const n=cO(this,t);const r=uO(n);if(r){const n=Du({aggregate:"distinct",field:r},{expr:"datum"});return{signal:Qb(e,i,n)}}else{Vr(hi(t));return null}}}}return{signal:this.signalNameMap.get(this.getName(e))}}lookupDataSource(e){const n=this.component.data.outputNodes[e];if(!n){return e}return n.getSource()}getSignalName(e){return this.signalNameMap.get(e)}renameSignal(e,n){this.signalNameMap.rename(e,n)}renameScale(e,n){this.scaleNameMap.rename(e,n)}renameProjection(e,n){this.projectionNameMap.rename(e,n)}scaleName(e,n){if(n){return this.getName(e)}if(pn(e)&&ct(e)&&this.component.scales[e]||this.scaleNameMap.has(this.getName(e))){return this.scaleNameMap.get(this.getName(e))}return undefined}projectionName(e){if(e){return this.getName("projection")}if(this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection"))){return this.projectionNameMap.get(this.getName("projection"))}return undefined}getScaleComponent(e){if(!this.component.scales){throw new Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().")}const n=this.component.scales[e];if(n&&!n.merged){return n}return this.parent?this.parent.getScaleComponent(e):undefined}getSelectionComponent(e,n){let t=this.component.selection[e];if(!t&&this.parent){t=this.parent.getSelectionComponent(e,n)}if(!t){throw new Error(xi(n))}return t}hasAxisOrientSignalRef(){var e,n;return((e=this.component.axes.x)===null||e===void 0?void 0:e.some((e=>e.hasOrientSignalRef())))||((n=this.component.axes.y)===null||n===void 0?void 0:n.some((e=>e.hasOrientSignalRef())))}}class rx extends ix{vgField(e,n={}){const t=this.fieldDef(e);if(!t){return undefined}return Du(t,n)}reduceFieldDef(e,n){return Fc(this.getMapping(),((n,t,i)=>{const r=Uu(t);if(r){return e(n,r,i)}return n}),n)}forEachFieldDef(e,n){jc(this.getMapping(),((n,t)=>{const i=Uu(n);if(i){e(i,t)}}),n)}}var sx=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const s=ct(r)&&n.getScaleComponent(r);if(s){const n=s.get("type");if(ho(n)&&t.aggregate!=="count"&&!ea(i)){e[t.field]=t}}return e}),{});if(!N(o).length){return null}return new ax(e,o)}dependentFields(){return new Set(N(this.filter))}producedFields(){return new Set}hash(){return`FilterInvalid ${w(this.filter)}`}assemble(){const e=N(this.filter).reduce(((e,n)=>{const t=this.filter[n];const i=Du(t,{expr:"datum"});if(t!==null){if(t.type==="temporal"){e.push(`(isDate(${i}) || (isValid(${i}) && isFinite(+${i})))`)}else if(t.type==="quantitative"){e.push(`isValid(${i})`);e.push(`isFinite(+${i})`)}else{}}return e}),[]);return e.length>0?{type:"filter",expr:e.join(" && ")}:null}}class ux extends ep{clone(){return new ux(this.parent,b(this.transform))}constructor(e,n){super(e);this.transform=n;this.transform=b(n);const{flatten:t,as:i=[]}=this.transform;this.transform.as=t.map(((e,n)=>{var t;return(t=i[n])!==null&&t!==void 0?t:e}))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return`FlattenTransform ${w(this.transform)}`}assemble(){const{flatten:e,as:n}=this.transform;const t={type:"flatten",fields:e,as:n};return t}}class cx extends ep{clone(){return new cx(null,b(this.transform))}constructor(e,n){var t,i,r;super(e);this.transform=n;this.transform=b(n);const s=(t=this.transform.as)!==null&&t!==void 0?t:[undefined,undefined];this.transform.as=[(i=s[0])!==null&&i!==void 0?i:"key",(r=s[1])!==null&&r!==void 0?r:"value"]}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return`FoldTransform ${w(this.transform)}`}assemble(){const{fold:e,as:n}=this.transform;const t={type:"fold",fields:e,as:n};return t}}class lx extends ep{clone(){return new lx(null,b(this.fields),this.geojson,this.signal)}static parseAll(e,n){if(n.component.projection&&!n.component.projection.isFit){return e}let t=0;for(const i of[[Oe,ve],[we,xe]]){const r=i.map((e=>{const t=Ru(n.encoding[e]);return fu(t)?t.field:pu(t)?{expr:`${t.datum}`}:vu(t)?{expr:`${t["value"]}`}:undefined}));if(r[0]||r[1]){e=new lx(e,r,null,n.getName(`geojson_${t++}`))}}if(n.channelHasField(De)){const i=n.typedFieldDef(De);if(i.type===Xs){e=new lx(e,null,i.field,n.getName(`geojson_${t++}`))}}return e}constructor(e,n,t,i){super(e);this.fields=n;this.geojson=t;this.signal=i}dependentFields(){var e;const n=((e=this.fields)!==null&&e!==void 0?e:[]).filter(r.Kg);return new Set([...this.geojson?[this.geojson]:[],...n])}producedFields(){return new Set}hash(){return`GeoJSON ${this.geojson} ${this.signal} ${w(this.fields)}`}assemble(){return[...this.geojson?[{type:"filter",expr:`isValid(datum["${this.geojson}"])`}]:[],Object.assign(Object.assign(Object.assign({type:"geojson"},this.fields?{fields:this.fields}:{}),this.geojson?{geojson:this.geojson}:{}),{signal:this.signal})]}}class fx extends ep{clone(){return new fx(null,this.projection,b(this.fields),b(this.as))}constructor(e,n,t,i){super(e);this.projection=n;this.fields=t;this.as=i}static parseAll(e,n){if(!n.projectionName()){return e}for(const t of[[Oe,ve],[we,xe]]){const i=t.map((e=>{const t=Ru(n.encoding[e]);return fu(t)?t.field:pu(t)?{expr:`${t.datum}`}:vu(t)?{expr:`${t["value"]}`}:undefined}));const r=t[0]===we?"2":"";if(i[0]||i[1]){e=new fx(e,n.projectionName(),i,[n.getName(`x${r}`),n.getName(`y${r}`)])}}return e}dependentFields(){return new Set(this.fields.filter(r.Kg))}producedFields(){return new Set(this.as)}hash(){return`Geopoint ${this.projection} ${w(this.fields)} ${w(this.as)}`}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}}class dx extends ep{clone(){return new dx(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}dependentFields(){var e;return new Set([this.transform.impute,this.transform.key,...(e=this.transform.groupby)!==null&&e!==void 0?e:[]])}producedFields(){return new Set([this.transform.impute])}processSequence(e){const{start:n=0,stop:t,step:i}=e;const r=[n,t,...i?[i]:[]].join(",");return{signal:`sequence(${r})`}}static makeFromTransform(e,n){return new dx(e,n)}static makeFromEncoding(e,n){const t=n.encoding;const i=t.x;const r=t.y;if(fu(i)&&fu(r)){const s=i.impute?i:r.impute?r:undefined;if(s===undefined){return undefined}const o=i.impute?r:r.impute?i:undefined;const{method:a,value:u,frame:c,keyvals:l}=s.impute;const f=$c(n.mark,t);return new dx(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({impute:s.field,key:o.field},a?{method:a}:{}),u!==undefined?{value:u}:{}),c?{frame:c}:{}),l!==undefined?{keyvals:l}:{}),f.length?{groupby:f}:{}))}return null}hash(){return`Impute ${w(this.transform)}`}assemble(){const{impute:e,key:n,keyvals:t,method:i,groupby:r,value:s,frame:o=[null,null]}=this.transform;const a=Object.assign(Object.assign(Object.assign(Object.assign({type:"impute",field:e,key:n},t?{keyvals:Rf(t)?this.processSequence(t):t}:{}),{method:"value"}),r?{groupby:r}:{}),{value:!i||i==="value"?s:null});if(i&&i!=="value"){const n=Object.assign({type:"window",as:[`imputed_${e}_value`],ops:[i],fields:[e],frame:o,ignorePeers:false},r?{groupby:r}:{});const t={type:"formula",expr:`datum.${e} === null ? datum.imputed_${e}_value : datum.${e}`,as:e};return[a,n,t]}else{return[a]}}}var px=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re))}producedFields(){return undefined}dependentFields(){var e;return new Set([this.transform.pivot,this.transform.value,...(e=this.transform.groupby)!==null&&e!==void 0?e:[]])}hash(){return`PivotTransform ${w(this.transform)}`}assemble(){const{pivot:e,value:n,groupby:t,limit:i,op:r}=this.transform;return Object.assign(Object.assign(Object.assign({type:"pivot",field:e,value:n},i!==undefined?{limit:i}:{}),r!==undefined?{op:r}:{}),t!==undefined?{groupby:t}:{})}}class xx extends ep{clone(){return new xx(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}dependentFields(){return new Set}producedFields(){return new Set}hash(){return`SampleTransform ${w(this.transform)}`}assemble(){return{type:"sample",size:this.transform.sample}}}function wx(e){let n=0;function t(i,r){var s;if(i instanceof pv){if(!i.isGenerator&&!zd(i.data)){e.push(r);const n={name:null,source:r.name,transform:[]};r=n}}if(i instanceof cv){if(i.parent instanceof pv&&!r.source){r.format=Object.assign(Object.assign({},(s=r.format)!==null&&s!==void 0?s:{}),{parse:i.assembleFormatParse()});r.transform.push(...i.assembleTransforms(true))}else{r.transform.push(...i.assembleTransforms())}}if(i instanceof iv){if(!r.name){r.name=`data_${n++}`}if(!r.source||r.transform.length>0){e.push(r);i.data=r.name}else{i.data=r.source}e.push(...i.assemble());return}if(i instanceof fv||i instanceof dv||i instanceof ax||i instanceof Zh||i instanceof Cb||i instanceof fx||i instanceof tv||i instanceof mx||i instanceof Nv||i instanceof Bv||i instanceof cx||i instanceof ux||i instanceof ox||i instanceof gx||i instanceof bx||i instanceof vx||i instanceof lv||i instanceof xx||i instanceof Ox){r.transform.push(i.assemble())}if(i instanceof Zy||i instanceof ip||i instanceof dx||i instanceof zv||i instanceof lx){r.transform.push(...i.assemble())}if(i instanceof np){if(r.source&&r.transform.length===0){i.setSource(r.source)}else if(i.parent instanceof np){i.setSource(r.name)}else{if(!r.name){r.name=`data_${n++}`}i.setSource(r.name);if(i.numChildren()===1){e.push(r);const n={name:null,source:r.name,transform:[]};r=n}}}switch(i.numChildren()){case 0:if(i instanceof np&&(!r.source||r.transform.length>0)){e.push(r)}break;case 1:t(i.children[0],r);break;default:{if(!r.name){r.name=`data_${n++}`}let s=r.name;if(!r.source||r.transform.length>0){e.push(r)}else{s=r.source}for(const e of i.children){const n={name:null,source:s,transform:[]};t(e,n)}break}}}return t}function jx(e){const n=[];const t=wx(n);for(const i of e.children){t(i,{source:e.name,name:null,transform:[]})}return n}function Fx(e,n){var t,i;const r=[];const s=wx(r);let o=0;for(const u of e.sources){if(!u.hasName()){u.dataName=`source_${o++}`}const e=u.assemble();s(u,e)}for(const u of r){if(u.transform.length===0){delete u.transform}}let a=0;for(const[u,c]of r.entries()){if(((t=c.transform)!==null&&t!==void 0?t:[]).length===0&&!c.source){r.splice(a++,0,r.splice(u,1)[0])}}for(const u of r){for(const n of(i=u.transform)!==null&&i!==void 0?i:[]){if(n.type==="lookup"){n.from=e.outputNodes[n.from].getSource()}}}for(const u of r){if(u.name in n){u.values=n[u.name]}}return r}function $x(e){if(e==="top"||e==="left"||Tt(e)){return"header"}return"footer"}function Dx(e){for(const n of Je){Ax(e,n)}Cx(e,"x");Cx(e,"y")}function Ax(e,n){var t;const{facet:i,config:s,child:o,component:a}=e;if(e.channelHasField(n)){const u=i[n];const c=Bb("title",null,s,n);let l=Nu(u,s,{allowDisabling:true,includeDefault:c===undefined||!!c});if(o.component.layoutHeaders[n].title){l=(0,r.cy)(l)?l.join(", "):l;l+=` / ${o.component.layoutHeaders[n].title}`;o.component.layoutHeaders[n].title=null}const f=Bb("labelOrient",u.header,s,n);const d=u.header!==null?X((t=u.header)===null||t===void 0?void 0:t.labels,s.header.labels,true):false;const p=F(["bottom","right"],f)?"footer":"header";a.layoutHeaders[n]={title:u.header!==null?l:null,facetFieldDef:u,[p]:n==="facet"?[]:[kx(e,n,d)]}}}function kx(e,n,t){const i=n==="row"?"height":"width";return{labels:t,sizeSignal:e.child.component.layoutSize.get(i)?e.child.getSizeSignalRef(i):undefined,axes:[]}}function Cx(e,n){var t;const{child:i}=e;if(i.component.axes[n]){const{layoutHeaders:r,resolve:s}=e.component;s.axis[n]=ey(s,n);if(s.axis[n]==="shared"){const s=n==="x"?"column":"row";const o=r[s];for(const r of i.component.axes[n]){const n=$x(r.get("orient"));(t=o[n])!==null&&t!==void 0?t:o[n]=[kx(e,s,false)];const i=ub(r,"main",e.config,{header:true});if(i){o[n][0].axes.push(i)}r.mainExtracted=true}}else{}}}function Sx(e){Bx(e);Px(e,"width");Px(e,"height")}function Ex(e){Bx(e);const n=e.layout.columns===1?"width":"childWidth";const t=e.layout.columns===undefined?"height":"childHeight";Px(e,n);Px(e,t)}function Bx(e){for(const n of e.children){n.parseLayoutSize()}}function Px(e,n){var t;const i=Xb(n);const r=Hn(i);const s=e.component.resolve;const o=e.component.layoutSize;let a;for(const u of e.children){const n=u.component.layoutSize.getWithExplicit(i);const o=(t=s.scale[r])!==null&&t!==void 0?t:Zb(r,e);if(o==="independent"&&n.value==="step"){a=undefined;break}if(a){if(o==="independent"&&a.value!==n.value){a=undefined;break}a=Pd(a,n,i,"")}else{a=n}}if(a){for(const t of e.children){e.renameSignal(t.getName(i),e.getName(n));t.component.layoutSize.set(i,"merged",false)}o.setWithExplicit(n,a)}else{o.setWithExplicit(n,{explicit:false,value:undefined})}}function _x(e){const{size:n,component:t}=e;for(const i of Un){const r=vn(i);if(n[r]){const e=n[r];t.layoutSize.set(r,Bl(e)?"step":e,true)}else{const n=zx(e,r);t.layoutSize.set(r,n,false)}}}function zx(e,n){const t=n==="width"?"x":"y";const i=e.config;const r=e.getScaleComponent(t);if(r){const e=r.get("type");const t=r.get("range");if(mo(e)){const e=Ul(i.view,n);if(Mt(t)||Bl(e)){return"step"}else{return e}}else{return Ll(i.view,n)}}else if(e.hasProjection||e.mark==="arc"){return Ll(i.view,n)}else{const e=Ul(i.view,n);return Bl(e)?e.step:e}}function Nx(e,n,t){return Du(n,Object.assign({suffix:`by_${Du(e)}`},t!==null&&t!==void 0?t:{}))}class Tx extends rx{constructor(e,n,t,i){super(e,"facet",n,t,i,e.resolve);this.child=Uw(e.spec,this,this.getName("child"),undefined,i);this.children=[this.child];this.facet=this.initFacet(e.facet)}initFacet(e){if(!Qa(e)){return{facet:this.initFacetFieldDef(e,"facet")}}const n=N(e);const t={};for(const i of n){if(![oe,ae].includes(i)){Vr(Qi(i,"facet"));break}const n=e[i];if(n.field===undefined){Vr(Ki(n,i));break}t[i]=this.initFacetFieldDef(n,i)}return t}initFacetFieldDef(e,n){const t=Gu(e,n);if(t.header){t.header=Pt(t.header)}else if(t.header===null){t.header=null}return t}channelHasField(e){return!!this.facet[e]}fieldDef(e){return this.facet[e]}parseData(){this.component.data=Rx(this);this.child.parseData()}parseLayoutSize(){Bx(this)}parseSelections(){this.child.parseSelections();this.component.selection=this.child.component.selection}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders();Dx(this)}assembleSelectionTopLevelSignals(e){return this.child.assembleSelectionTopLevelSignals(e)}assembleSignals(){this.child.assembleSignals();return[]}assembleSelectionData(e){return this.child.assembleSelectionData(e)}getHeaderLayoutMixins(){var e,n,t;const i={};for(const r of Je){for(const s of zb){const o=this.component.layoutHeaders[r];const a=o[s];const{facetFieldDef:u}=o;if(u){const n=Bb("titleOrient",u.header,this.config,r);if(["right","bottom"].includes(n)){const t=Eb(r,n);(e=i.titleAnchor)!==null&&e!==void 0?e:i.titleAnchor={};i.titleAnchor[t]="end"}}if(a===null||a===void 0?void 0:a[0]){const e=r==="row"?"height":"width";const a=s==="header"?"headerBand":"footerBand";if(r!=="facet"&&!this.child.component.layoutSize.get(e)){(n=i[a])!==null&&n!==void 0?n:i[a]={};i[a][r]=.5}if(o.title){(t=i.offset)!==null&&t!==void 0?t:i.offset={};i.offset[r==="row"?"rowTitle":"columnTitle"]=10}}}}return i}assembleDefaultLayout(){const{column:e,row:n}=this.facet;const t=e?this.columnDistinctSignal():n?1:undefined;let i="all";if(!n&&this.component.resolve.scale.x==="independent"){i="none"}else if(!e&&this.component.resolve.scale.y==="independent"){i="none"}return Object.assign(Object.assign(Object.assign({},this.getHeaderLayoutMixins()),t?{columns:t}:{}),{bounds:"full",align:i})}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(this.parent&&this.parent instanceof Tx){return undefined}else{const e=this.getName("column_domain");return{signal:`length(data('${e}'))`}}}assembleGroupStyle(){return undefined}assembleGroup(e){if(this.parent&&this.parent instanceof Tx){return Object.assign(Object.assign({},this.channelHasField("column")?{encode:{update:{columns:{field:Du(this.facet.column,{prefix:"distinct"})}}}}:{}),super.assembleGroup(e))}return super.assembleGroup(e)}getCardinalityAggregateForChild(){const e=[];const n=[];const t=[];if(this.child instanceof Tx){if(this.child.channelHasField("column")){const i=Du(this.child.facet.column);e.push(i);n.push("distinct");t.push(`distinct_${i}`)}}else{for(const i of Un){const r=this.child.component.scales[i];if(r&&!r.merged){const s=r.get("type");const o=r.get("range");if(mo(s)&&Mt(o)){const r=cO(this.child,i);const s=uO(r);if(s){e.push(s);n.push("distinct");t.push(`distinct_${s}`)}else{Vr(hi(i))}}}}}return{fields:e,ops:n,as:t}}assembleFacet(){const{name:e,data:n}=this.component.data.facetRoot;const{row:t,column:i}=this.facet;const{fields:s,ops:o,as:a}=this.getCardinalityAggregateForChild();const u=[];for(const l of Je){const e=this.facet[l];if(e){u.push(Du(e));const{bin:n,sort:c}=e;if(At(n)){u.push(Du(e,{binSuffix:"end"}))}if(Ka(c)){const{field:n,op:r=Wa}=c;const u=Nx(e,c);if(t&&i){s.push(u);o.push("max");a.push(u)}else{s.push(n);o.push(r);a.push(u)}}else if((0,r.cy)(c)){const n=Sb(e,l);s.push(n);o.push("max");a.push(n)}}}const c=!!t&&!!i;return Object.assign({name:e,data:n,groupby:u},c||s.length>0?{aggregate:Object.assign(Object.assign({},c?{cross:c}:{}),s.length?{fields:s,ops:o,as:a}:{})}:{})}facetSortFields(e){const{facet:n}=this;const t=n[e];if(t){if(Ka(t.sort)){return[Nx(t,t.sort,{expr:"datum"})]}else if((0,r.cy)(t.sort)){return[Sb(t,e,{expr:"datum"})]}return[Du(t,{expr:"datum"})]}return[]}facetSortOrder(e){const{facet:n}=this;const t=n[e];if(t){const{sort:e}=t;const n=(Ka(e)?e.order:!(0,r.cy)(e)&&e)||"ascending";return[n]}return[]}assembleLabelTitle(){var e;const{facet:n,config:t}=this;if(n.facet){return Ub(n.facet,"facet",t)}const i={row:["top","bottom"],column:["left","right"]};for(const r of _b){if(n[r]){const s=Bb("labelOrient",(e=n[r])===null||e===void 0?void 0:e.header,t,r);if(i[r].includes(s)){return Ub(n[r],r,t)}}}return undefined}assembleMarks(){const{child:e}=this;const n=this.component.data.facetRoot;const t=jx(n);const i=e.assembleGroupEncodeEntry(false);const r=this.assembleLabelTitle()||e.assembleTitle();const s=e.assembleGroupStyle();const o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:this.getName("cell"),type:"group"},r?{title:r}:{}),s?{style:s}:{}),{from:{facet:this.assembleFacet()},sort:{field:Je.map((e=>this.facetSortFields(e))).flat(),order:Je.map((e=>this.facetSortOrder(e))).flat()}}),t.length>0?{data:t}:{}),i?{encode:{update:i}}:{}),e.assembleGroup(Yd(this,[])));return[o]}getMapping(){return this.facet}}function Mx(e,n){const{row:t,column:i}=n;if(t&&i){let n=null;for(const r of[t,i]){if(Ka(r.sort)){const{field:t,op:i=Wa}=r.sort;e=n=new Bv(e,{joinaggregate:[{op:i,field:t,as:Nx(r,r.sort,{forAs:true})}],groupby:[Du(r)]})}}return n}return null}function Lx(e,n){var t,i,r,s;for(const o of n){const n=o.data;if(e.name&&o.hasName()&&e.name!==o.dataName){continue}const a=(t=e["format"])===null||t===void 0?void 0:t.mesh;const u=(i=n.format)===null||i===void 0?void 0:i.feature;if(a&&u){continue}const c=(r=e["format"])===null||r===void 0?void 0:r.feature;if((c||u)&&c!==u){continue}const l=(s=n.format)===null||s===void 0?void 0:s.mesh;if((a||l)&&a!==l){continue}if(Nd(e)&&Nd(n)){if(h(e.values,n.values)){return o}}else if(zd(e)&&zd(n)){if(e.url===n.url){return o}}else if(Td(e)){if(e.name===o.dataName){return o}}}return null}function qx(e,n){if(e.data||!e.parent){if(e.data===null){const e=new pv({values:[]});n.push(e);return e}const t=Lx(e.data,n);if(t){if(!Md(e.data)){t.data.format=A({},e.data.format,t.data.format)}if(!t.hasName()&&e.data.name){t.dataName=e.data.name}return t}else{const t=new pv(e.data);n.push(t);return t}}else{return e.parent.component.data.facetRoot?e.parent.component.data.facetRoot:e.parent.component.data.main}}function Ux(e,n,t){var i,r;let s=0;for(const o of n.transforms){let a=undefined;let u;if(nd(o)){u=e=new Cb(e,o);a="derived"}else if(Uf(o)){const r=ov(o);u=e=(i=cv.makeWithAncestors(e,{},r,t))!==null&&i!==void 0?i:e;e=new Zh(e,n,o.filter)}else if(td(o)){u=e=Zy.makeFromTransform(e,o,n);a="number"}else if(rd(o)){a="date";const n=t.getWithExplicit(o.field);if(n.value===undefined){e=new cv(e,{[o.field]:a});t.set(o.field,a,false)}u=e=ip.makeFromTransform(e,o)}else if(sd(o)){u=e=tv.makeFromTransform(e,o);a="number";if(Tg(n)){e=new lv(e)}}else if(If(o)){u=e=mx.make(e,n,o,s++);a="derived"}else if(Jf(o)){u=e=new Nv(e,o);a="number"}else if(Zf(o)){u=e=new Bv(e,o);a="number"}else if(od(o)){u=e=zv.makeFromTransform(e,o);a="derived"}else if(ad(o)){u=e=new cx(e,o);a="derived"}else if(ed(o)){u=e=new ux(e,o);a="derived"}else if(Gf(o)){u=e=new Ox(e,o);a="derived"}else if(Xf(o)){e=new xx(e,o)}else if(id(o)){u=e=dx.makeFromTransform(e,o);a="derived"}else if(Yf(o)){u=e=new ox(e,o);a="derived"}else if(Kf(o)){u=e=new bx(e,o);a="derived"}else if(Vf(o)){u=e=new vx(e,o);a="derived"}else if(Qf(o)){u=e=new gx(e,o);a="derived"}else{Vr(_i(o));continue}if(u&&a!==undefined){for(const e of(r=u.producedFields())!==null&&r!==void 0?r:[]){t.set(e,a,false)}}}return e}function Rx(e){var n,t,i,r,s,o,a,u,c,l;let f=qx(e,e.component.data.sources);const{outputNodes:d,outputNodeRefCounts:p}=e.component.data;const g=e.data;const m=g&&(Md(g)||zd(g)||Nd(g));const h=!m&&e.parent?e.parent.component.data.ancestorParse.clone():new _d;if(Md(g)){if(Ld(g)){f=new dv(f,g.sequence)}else if(Ud(g)){f=new fv(f,g.graticule)}h.parseNothing=true}else if(((n=g===null||g===void 0?void 0:g.format)===null||n===void 0?void 0:n.parse)===null){h.parseNothing=true}f=(t=cv.makeExplicit(f,e,h))!==null&&t!==void 0?t:f;f=new lv(f);const b=e.parent&&tx(e.parent);if(ZO(e)||ex(e)){if(b){f=(i=Zy.makeFromEncoding(f,e))!==null&&i!==void 0?i:f}}if(e.transforms.length>0){f=Ux(f,e,h)}const y=uv(e);const v=av(e);f=(r=cv.makeWithAncestors(f,{},Object.assign(Object.assign({},y),v),h))!==null&&r!==void 0?r:f;if(ZO(e)){f=lx.parseAll(f,e);f=fx.parseAll(f,e)}if(ZO(e)||ex(e)){if(!b){f=(s=Zy.makeFromEncoding(f,e))!==null&&s!==void 0?s:f}f=(o=ip.makeFromEncoding(f,e))!==null&&o!==void 0?o:f;f=Cb.parseAllForSortIndex(f,e)}const O=e.getDataName(Rd.Raw);const x=new np(f,O,Rd.Raw,p);d[O]=x;f=x;if(ZO(e)){const n=tv.makeFromEncoding(f,e);if(n){f=n;if(Tg(e)){f=new lv(f)}}f=(a=dx.makeFromEncoding(f,e))!==null&&a!==void 0?a:f;f=(u=zv.makeFromEncoding(f,e))!==null&&u!==void 0?u:f}if(ZO(e)){f=(c=ax.make(f,e))!==null&&c!==void 0?c:f}const w=e.getDataName(Rd.Main);const j=new np(f,w,Rd.Main,p);d[w]=j;f=j;if(ZO(e)){ib(e,j)}let F=null;if(ex(e)){const n=e.getName("facet");f=(l=Mx(f,e.facet))!==null&&l!==void 0?l:f;F=new iv(f,e,n,j.getSource());d[n]=F}return Object.assign(Object.assign({},e.component.data),{outputNodes:d,outputNodeRefCounts:p,raw:x,main:j,facetRoot:F,ancestorParse:h})}class Ix extends ix{constructor(e,n,t,i){var r,s,o,a;super(e,"concat",n,t,i,e.resolve);if(((s=(r=e.resolve)===null||r===void 0?void 0:r.axis)===null||s===void 0?void 0:s.x)==="shared"||((a=(o=e.resolve)===null||o===void 0?void 0:o.axis)===null||a===void 0?void 0:a.y)==="shared"){Vr(Si)}this.children=this.getChildren(e).map(((e,n)=>Uw(e,this,this.getName(`concat_${n}`),undefined,i)))}parseData(){this.component.data=Rx(this);for(const e of this.children){e.parseData()}}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const n of N(e.component.selection)){this.component.selection[n]=e.component.selection[n]}}}parseMarkGroup(){for(const e of this.children){e.parseMarkGroup()}}parseAxesAndHeaders(){for(const e of this.children){e.parseAxesAndHeaders()}}getChildren(e){if(Cl(e)){return e.vconcat}else if(Sl(e)){return e.hconcat}return e.concat}parseLayoutSize(){Ex(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,n)=>n.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){this.children.forEach((e=>e.assembleSignals()));return[]}assembleLayoutSignals(){const e=Yb(this);for(const n of this.children){e.push(...n.assembleLayoutSignals())}return e}assembleSelectionData(e){return this.children.reduce(((e,n)=>n.assembleSelectionData(e)),e)}assembleMarks(){return this.children.map((e=>{const n=e.assembleTitle();const t=e.assembleGroupStyle();const i=e.assembleGroupEncodeEntry(false);return Object.assign(Object.assign(Object.assign(Object.assign({type:"group",name:e.getName("group")},n?{title:n}:{}),t?{style:t}:{}),i?{encode:{update:i}}:{}),e.assembleGroup())}))}assembleGroupStyle(){return undefined}assembleDefaultLayout(){const e=this.layout.columns;return Object.assign(Object.assign({},e!=null?{columns:e}:{}),{bounds:"full",align:"each"})}}function Wx(e){return e===false||e===null}const Hx=Object.assign(Object.assign({disable:1,gridScale:1,scale:1},sc),{labelExpr:1,encode:1});const Gx=N(Hx);class Yx extends kd{constructor(e={},n={},t=false){super();this.explicit=e;this.implicit=n;this.mainExtracted=t}clone(){return new Yx(b(this.explicit),b(this.implicit),this.mainExtracted)}hasAxisPart(e){if(e==="axis"){return true}if(e==="grid"||e==="title"){return!!this.get(e)}return!Wx(this.get(e))}hasOrientSignalRef(){return Tt(this.explicit.orient)}}function Kx(e,n,t){var i;const{encoding:r,config:s}=e;const o=(i=Ru(r[n]))!==null&&i!==void 0?i:Ru(r[yn(n)]);const a=e.axis(n)||{};const{format:u,formatType:c}=a;if(Sa(c)){return Object.assign({text:za({fieldOrDatumDef:o,field:"datum.value",format:u,formatType:c,config:s})},t)}else if(u===undefined&&c===undefined&&s.customFormatTypes){if(du(o)==="quantitative"){if(xu(o)&&o.stack==="normalize"&&s.normalizedNumberFormatType){return Object.assign({text:za({fieldOrDatumDef:o,field:"datum.value",format:s.normalizedNumberFormat,formatType:s.normalizedNumberFormatType,config:s})},t)}else if(s.numberFormatType){return Object.assign({text:za({fieldOrDatumDef:o,field:"datum.value",format:s.numberFormat,formatType:s.numberFormatType,config:s})},t)}}if(du(o)==="temporal"&&s.timeFormatType&&fu(o)&&!o.timeUnit){return Object.assign({text:za({fieldOrDatumDef:o,field:"datum.value",format:s.timeFormat,formatType:s.timeFormatType,config:s})},t)}}return t}function Vx(e){return Un.reduce(((n,t)=>{if(e.component.scales[t]){n[t]=[tw(t,e)]}return n}),{})}const Qx={bottom:"top",top:"bottom",left:"right",right:"left"};function Xx(e){var n;const{axes:t,resolve:i}=e.component;const r={top:0,bottom:0,right:0,left:0};for(const s of e.children){s.parseAxesAndHeaders();for(const n of N(s.component.axes)){i.axis[n]=ey(e.component.resolve,n);if(i.axis[n]==="shared"){t[n]=Jx(t[n],s.component.axes[n]);if(!t[n]){i.axis[n]="independent";delete t[n]}}}}for(const s of Un){for(const o of e.children){if(!o.component.axes[s]){continue}if(i.axis[s]==="independent"){t[s]=((n=t[s])!==null&&n!==void 0?n:[]).concat(o.component.axes[s]);for(const e of o.component.axes[s]){const{value:n,explicit:t}=e.getWithExplicit("orient");if(Tt(n)){continue}if(r[n]>0&&!t){const t=Qx[n];if(r[n]>r[t]){e.set("orient",t,false)}}r[n]++}}delete o.component.axes[s]}if(i.axis[s]==="independent"&&t[s]&&t[s].length>1){for(const e of t[s]){if(!!e.get("grid")&&!e.explicit.grid){e.implicit.grid=false}}}}}function Jx(e,n){if(e){if(e.length!==n.length){return undefined}const t=e.length;for(let i=0;ie.clone()))}return e}function Zx(e,n){for(const t of Gx){const i=Pd(e.getWithExplicit(t),n.getWithExplicit(t),t,"axis",((e,n)=>{switch(t){case"title":return li(e,n);case"gridScale":return{explicit:e.explicit,value:X(e.value,n.value)}}return Bd(e,n,t,"axis")}));e.setWithExplicit(t,i)}return e}function ew(e,n,t,i,r){if(n==="disable"){return t!==undefined}t=t||{};switch(n){case"titleAngle":case"labelAngle":return e===(Tt(t.labelAngle)?t.labelAngle:ie(t.labelAngle));case"values":return!!t.values;case"encode":return!!t.encoding||!!t.labelAngle;case"title":if(e===Db(i,r)){return true}}return e===t[n]}const nw=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function tw(e,n){var t,i,r;let s=n.axis(e);const o=new Yx;const a=Ru(n.encoding[e]);const{mark:u,config:c}=n;const l=(s===null||s===void 0?void 0:s.orient)||((t=c[e==="x"?"axisX":"axisY"])===null||t===void 0?void 0:t.orient)||((i=c.axis)===null||i===void 0?void 0:i.orient)||Fb(e);const f=n.getScaleComponent(e).get("type");const d=db(e,f,l,n.config);const p=s!==undefined?!s:gb("disable",c.style,s===null||s===void 0?void 0:s.style,d).configValue;o.set("disable",p,s!==undefined);if(p){return o}s=s||{};const g=yb(a,s,e,c.style,d);const m={fieldOrDatumDef:a,axis:s,channel:e,model:n,scaleType:f,orient:l,labelAngle:g,mark:u,config:c};for(const y of Gx){const t=y in mb?mb[y](m):ac(y)?s[y]:undefined;const i=t!==undefined;const r=ew(t,y,s,n,e);if(i&&r){o.set(y,t,r)}else{const{configValue:e=undefined,configFrom:n=undefined}=ac(y)&&y!=="values"?gb(y,c.style,s.style,d):{};const a=e!==undefined;if(i&&!a){o.set(y,t,r)}else if(!(n==="vgAxisConfig")||nw.has(y)&&a||tc(e)||Tt(e)){o.set(y,e,false)}}}const h=(r=s.encoding)!==null&&r!==void 0?r:{};const b=ic.reduce(((t,i)=>{var r;if(!o.hasAxisPart(i)){return t}const s=Jb((r=h[i])!==null&&r!==void 0?r:{},n);const a=i==="labels"?Kx(n,e,s):s;if(a!==undefined&&!z(a)){t[i]={update:a}}return t}),{});if(!z(b)){o.set("encode",b,!!s.encoding||s.labelAngle!==undefined)}return o}function iw({encoding:e,size:n}){for(const t of Un){const i=vn(t);if(Bl(n[i])){if(gu(e[t])){delete n[i];Vr(br(i))}}}return n}function rw(e,n,t){const i=Pt(e);const r=ii("orient",i,t);i.orient=uw(i.type,n,r);if(r!==undefined&&r!==i.orient){Vr(sr(i.orient,r))}if(i.type==="bar"&&i.orient){const e=ii("cornerRadiusEnd",i,t);if(e!==undefined){const t=i.orient==="horizontal"&&n.x2||i.orient==="vertical"&&n.y2?["cornerRadius"]:ma[i.orient];for(const n of t){i[n]=e}if(i.cornerRadiusEnd!==undefined){delete i.cornerRadiusEnd}}}const s=ii("opacity",i,t);if(s===undefined){i.opacity=ow(i.type,n)}const o=ii("cursor",i,t);if(o===undefined){i.cursor=sw(i,n,t)}return i}function sw(e,n,t){if(n.href||e.href||ii("href",e,t)){return"pointer"}return e.cursor}function ow(e,n){if(F([Wo,Ko,Qo,Xo],e)){if(!bc(n)){return.7}}return undefined}function aw(e,n,{graticule:t}){if(t){return false}const i=ri("filled",e,n);const r=e.type;return X(i,r!==Wo&&r!==Io&&r!==Go)}function uw(e,n,t){switch(e){case Wo:case Qo:case Xo:case Yo:case Ho:case Ro:return undefined}const{x:i,y:r,x2:s,y2:o}=n;switch(e){case Uo:if(fu(i)&&(kt(i.bin)||fu(r)&&r.aggregate&&!i.aggregate)){return"vertical"}if(fu(r)&&(kt(r.bin)||fu(i)&&i.aggregate&&!r.aggregate)){return"horizontal"}if(o||s){if(t){return t}if(!s){if(fu(i)&&i.type===Ys&&!At(i.bin)||hu(i)){if(fu(r)&&kt(r.bin)){return"horizontal"}}return"vertical"}if(!o){if(fu(r)&&r.type===Ys&&!At(r.bin)||hu(r)){if(fu(i)&&kt(i.bin)){return"vertical"}}return"horizontal"}}case Go:if(s&&!(fu(i)&&kt(i.bin))&&o&&!(fu(r)&&kt(r.bin))){return undefined}case qo:if(o){if(fu(r)&&kt(r.bin)){return"horizontal"}else{return"vertical"}}else if(s){if(fu(i)&&kt(i.bin)){return"vertical"}else{return"horizontal"}}else if(e===Go){if(i&&!r){return"vertical"}else if(r&&!i){return"horizontal"}}case Io:case Ko:{const n=gu(i);const s=gu(r);if(t){return t}else if(n&&!s){return e!=="tick"?"horizontal":"vertical"}else if(!n&&s){return e!=="tick"?"vertical":"horizontal"}else if(n&&s){const n=i;const t=r;const s=n.type===Vs;const o=t.type===Vs;if(s&&!o){return e!=="tick"?"vertical":"horizontal"}else if(!s&&o){return e!=="tick"?"horizontal":"vertical"}if(!n.aggregate&&t.aggregate){return e!=="tick"?"vertical":"horizontal"}else if(n.aggregate&&!t.aggregate){return e!=="tick"?"horizontal":"vertical"}return"vertical"}else{return undefined}}}return"vertical"}const cw={vgMark:"arc",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),zp("x",e,{defaultPos:"mid"})),zp("y",e,{defaultPos:"mid"})),Gp(e,"radius")),Gp(e,"theta"))};const lw={vgMark:"area",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"})),Up("x",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="horizontal"})),Up("y",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="vertical"})),ig(e))};const fw={vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Gp(e,"x")),Gp(e,"y"))};const dw={vgMark:"shape",encodeEntry:e=>Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),postEncodingTransform:e=>{const{encoding:n}=e;const t=n.shape;const i=Object.assign({type:"geoshape",projection:e.projectionName()},t&&fu(t)&&t.type===Xs?{field:Du(t,{expr:"datum"})}:{});return[i]}};const pw={vgMark:"image",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"})),Gp(e,"x")),Gp(e,"y")),jp(e,"url"))};const gw={vgMark:"line",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),zp("x",e,{defaultPos:"mid"})),zp("y",e,{defaultPos:"mid"})),Ep("size",e,{vgChannel:"strokeWidth"})),ig(e))};const mw={vgMark:"trail",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),zp("x",e,{defaultPos:"mid"})),zp("y",e,{defaultPos:"mid"})),Ep("size",e)),ig(e))};function hw(e,n){const{config:t}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),zp("x",e,{defaultPos:"mid"})),zp("y",e,{defaultPos:"mid"})),Ep("size",e)),Ep("angle",e)),bw(e,t,n))}function bw(e,n,t){if(t){return{shape:{value:t}}}return Ep("shape",e)}const yw={vgMark:"symbol",encodeEntry:e=>hw(e)};const vw={vgMark:"symbol",encodeEntry:e=>hw(e,"circle")};const Ow={vgMark:"symbol",encodeEntry:e=>hw(e,"square")};const xw={vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Gp(e,"x")),Gp(e,"y"))};const ww={vgMark:"rule",encodeEntry:e=>{const{markDef:n}=e;const t=n.orient;if(!e.encoding.x&&!e.encoding.y&&!e.encoding.latitude&&!e.encoding.longitude){return{}}return Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Up("x",e,{defaultPos:t==="horizontal"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:t!=="vertical"})),Up("y",e,{defaultPos:t==="vertical"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:t!=="horizontal"})),Ep("size",e,{vgChannel:"strokeWidth"}))}};const jw={vgMark:"text",encodeEntry:e=>{const{config:n,encoding:t}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"})),zp("x",e,{defaultPos:"mid"})),zp("y",e,{defaultPos:"mid"})),jp(e)),Ep("size",e,{vgChannel:"fontSize"})),Ep("angle",e)),sg("align",Fw(e.markDef,t,n))),sg("baseline",$w(e.markDef,t,n))),zp("radius",e,{defaultPos:null})),zp("theta",e,{defaultPos:null}))}};function Fw(e,n,t){const i=ii("align",e,t);if(i===undefined){return"center"}return undefined}function $w(e,n,t){const i=ii("baseline",e,t);if(i===undefined){return"middle"}return undefined}const Dw={vgMark:"rect",encodeEntry:e=>{const{config:n,markDef:t}=e;const i=t.orient;const r=i==="horizontal"?"width":"height";const s=i==="horizontal"?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),zp("x",e,{defaultPos:"mid",vgChannel:"xc"})),zp("y",e,{defaultPos:"mid",vgChannel:"yc"})),Ep("size",e,{defaultValue:Aw(e),vgChannel:r})),{[s]:Xt(ii("thickness",t,n))})}};function Aw(e){var n;const{config:t,markDef:i}=e;const{orient:s}=i;const o=s==="horizontal"?"width":"height";const a=e.getScaleComponent(s==="horizontal"?"x":"y");const u=(n=ii("size",i,t,{vgChannel:o}))!==null&&n!==void 0?n:t.tick.bandSize;if(u!==undefined){return u}else{const e=a?a.get("range"):undefined;if(e&&Mt(e)&&(0,r.Et)(e.step)){return e.step*3/4}const n=ql(t.view,o);return n*3/4}}const kw={arc:cw,area:lw,bar:fw,circle:vw,geoshape:dw,image:pw,line:gw,point:yw,rect:xw,rule:ww,square:Ow,text:jw,tick:Dw,trail:mw};function Cw(e){if(F([Io,qo,Vo],e.mark)){const n=$c(e.mark,e.encoding);if(n.length>0){return Ew(e,n)}}else if(e.mark===Uo){const n=Ht.some((n=>ii(n,e.markDef,e.config)));if(e.stack&&!e.fieldDef("size")&&n){return Pw(e)}}return zw(e)}const Sw="faceted_path_";function Ew(e,n){return[{name:e.getName("pathgroup"),type:"group",from:{facet:{name:Sw+e.requestDataName(Rd.Main),data:e.requestDataName(Rd.Main),groupby:n}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:zw(e,{fromPrefix:Sw})}]}const Bw="stack_group_";function Pw(e){var n;const[t]=zw(e,{fromPrefix:Bw});const i=e.scaleName(e.stack.fieldChannel);const r=(n={})=>e.vgField(e.stack.fieldChannel,n);const s=(e,n)=>{const t=[r({prefix:"min",suffix:"start",expr:n}),r({prefix:"max",suffix:"start",expr:n}),r({prefix:"min",suffix:"end",expr:n}),r({prefix:"max",suffix:"end",expr:n})];return`${e}(${t.map((e=>`scale('${i}',${e})`)).join(",")})`};let o;let a;if(e.stack.fieldChannel==="x"){o=Object.assign(Object.assign({},v(t.encode.update,["y","yc","y2","height",...Ht])),{x:{signal:s("min","datum")},x2:{signal:s("max","datum")},clip:{value:true}});a={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}};t.encode.update=Object.assign(Object.assign({},O(t.encode.update,["y","yc","y2"])),{height:{field:{group:"height"}}})}else{o=Object.assign(Object.assign({},v(t.encode.update,["x","xc","x2","width"])),{y:{signal:s("min","datum")},y2:{signal:s("max","datum")},clip:{value:true}});a={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}};t.encode.update=Object.assign(Object.assign({},O(t.encode.update,["x","xc","x2"])),{width:{field:{group:"width"}}})}for(const l of Ht){const n=ri(l,e.markDef,e.config);if(t.encode.update[l]){o[l]=t.encode.update[l];delete t.encode.update[l]}else if(n){o[l]=Xt(n)}if(n){t.encode.update[l]={value:0}}}const u=[];if(((n=e.stack.groupbyChannels)===null||n===void 0?void 0:n.length)>0){for(const n of e.stack.groupbyChannels){const t=e.fieldDef(n);const i=Du(t);if(i){u.push(i)}if((t===null||t===void 0?void 0:t.bin)||(t===null||t===void 0?void 0:t.timeUnit)){u.push(Du(t,{binSuffix:"end"}))}}}const c=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"];o=c.reduce(((n,i)=>{if(t.encode.update[i]){return Object.assign(Object.assign({},n),{[i]:t.encode.update[i]})}else{const t=ri(i,e.markDef,e.config);if(t!==undefined){return Object.assign(Object.assign({},n),{[i]:Xt(t)})}else{return n}}}),o);if(o.stroke){o.strokeForeground={value:true};o.strokeOffset={value:0}}return[{type:"group",from:{facet:{data:e.requestDataName(Rd.Main),name:Bw+e.requestDataName(Rd.Main),groupby:u,aggregate:{fields:[r({suffix:"start"}),r({suffix:"start"}),r({suffix:"end"}),r({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:o},marks:[{type:"group",encode:{update:a},marks:[t]}]}]}function _w(e){var n;const{encoding:t,stack:i,mark:s,markDef:o,config:a}=e;const u=t.order;if(!(0,r.cy)(u)&&vu(u)&&j(u.value)||!u&&j(ii("order",o,a))){return undefined}else if(((0,r.cy)(u)||fu(u))&&!i){return ai(u,{expr:"datum"})}else if(ea(s)){const i=o.orient==="horizontal"?"y":"x";const s=t[i];if(fu(s)){const t=s.sort;if((0,r.cy)(t)){return{field:Du(s,{prefix:i,suffix:"sort_index",expr:"datum"})}}else if(Ka(t)){return{field:Du({aggregate:bc(e.encoding)?t.op:undefined,field:t.field},{expr:"datum"})}}else if(Ya(t)){const n=e.fieldDef(t.encoding);return{field:Du(n,{expr:"datum"}),order:t.order}}else if(t===null){return undefined}else{return{field:Du(s,{binSuffix:((n=e.stack)===null||n===void 0?void 0:n.impute)?"mid":undefined,expr:"datum"})}}}return undefined}return undefined}function zw(e,n={fromPrefix:""}){const{mark:t,markDef:i,encoding:r,config:s}=e;const o=X(i.clip,Nw(e),Tw(e));const a=ti(i);const u=r.key;const c=_w(e);const l=Mw(e);const f=ii("aria",i,s);const d=kw[t].postEncodingTransform?kw[t].postEncodingTransform(e):null;return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName("marks"),type:kw[t].vgMark},o?{clip:true}:{}),a?{style:a}:{}),u?{key:u.field}:{}),c?{sort:c}:{}),l?l:{}),f===false?{aria:f}:{}),{from:{data:n.fromPrefix+e.requestDataName(Rd.Main)},encode:{update:kw[t].encodeEntry(e)}}),d?{transform:d}:{})]}function Nw(e){const n=e.getScaleComponent("x");const t=e.getScaleComponent("y");return(n===null||n===void 0?void 0:n.get("selectionExtent"))||(t===null||t===void 0?void 0:t.get("selectionExtent"))?true:undefined}function Tw(e){const n=e.component.projection;return n&&!n.isFit?true:undefined}function Mw(e){if(!e.component.selection)return null;const n=N(e.component.selection).length;let t=n;let i=e.parent;while(i&&t===0){t=N(i.component.selection).length;i=i.parent}return t?{interactive:n>0||!!e.encoding.tooltip}:null}class Lw extends rx{constructor(e,n,t,i={},r){var s;super(e,"unit",n,t,r,undefined,Pl(e)?e.view:undefined);this.specifiedScales={};this.specifiedAxes={};this.specifiedLegends={};this.specifiedProjection={};this.selection=[];this.children=[];const o=ia(e.mark)?Object.assign({},e.mark):{type:e.mark};const a=o.type;if(o.filled===undefined){o.filled=aw(o,r,{graticule:e.data&&Ud(e.data)})}const u=this.encoding=Oc(e.encoding||{},a,o.filled,r);this.markDef=rw(o,u,r);this.size=iw({encoding:u,size:Pl(e)?Object.assign(Object.assign(Object.assign({},i),e.width?{width:e.width}:{}),e.height?{height:e.height}:{}):i});this.stack=xf(a,u);this.specifiedScales=this.initScales(a,u);this.specifiedAxes=this.initAxes(u);this.specifiedLegends=this.initLegends(u);this.specifiedProjection=e.projection;this.selection=((s=e.params)!==null&&s!==void 0?s:[]).filter((e=>Fl(e)))}get hasProjection(){const{encoding:e}=this;const n=this.mark===Jo;const t=e&&Ke.some((n=>bu(e[n])));return n||t}scaleDomain(e){const n=this.specifiedScales[e];return n?n.domain:undefined}axis(e){return this.specifiedAxes[e]}legend(e){return this.specifiedLegends[e]}initScales(e,n){return ut.reduce(((e,t)=>{var i;const r=Ru(n[t]);if(r){e[t]=this.initScale((i=r.scale)!==null&&i!==void 0?i:{})}return e}),{})}initScale(e){const{domain:n,range:t}=e;const i=Pt(e);if((0,r.cy)(n)){i.domain=n.map(Vt)}if((0,r.cy)(t)){i.range=t.map(Vt)}return i}initAxes(e){return Un.reduce(((n,t)=>{const i=e[t];if(bu(i)||t===ce&&bu(e.x2)||t===le&&bu(e.y2)){const e=bu(i)?i.axis:undefined;n[t]=e?this.initAxis(Object.assign({},e)):e}return n}),{})}initAxis(e){const n=N(e);const t={};for(const i of n){const n=e[i];t[i]=tc(n)?Kt(n):Vt(n)}return t}initLegends(e){return rt.reduce(((n,t)=>{const i=Ru(e[t]);if(i&&ot(t)){const e=i.legend;n[t]=e?Pt(e):e}return n}),{})}parseData(){this.component.data=Rx(this)}parseLayoutSize(){_x(this)}parseSelections(){this.component.selection=eb(this,this.selection)}parseMarkGroup(){this.component.mark=Cw(this)}parseAxesAndHeaders(){this.component.axes=Vx(this)}assembleSelectionTopLevelSignals(e){return Kd(this,e)}assembleSignals(){return[...cb(this),...Gd(this,[])]}assembleSelectionData(e){return Vd(this,e)}assembleLayout(){return null}assembleLayoutSignals(){return Yb(this)}assembleMarks(){var e;let n=(e=this.component.mark)!==null&&e!==void 0?e:[];if(!this.parent||!tx(this.parent)){n=Qd(this,n)}return n.map(this.correctDataNames)}assembleGroupStyle(){const{style:e}=this.view||{};if(e!==undefined){return e}if(this.encoding.x||this.encoding.y){return"cell"}else{return undefined}}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(e){return gc(this.encoding,e)}fieldDef(e){const n=this.encoding[e];return Uu(n)}typedFieldDef(e){const n=this.fieldDef(e);if(yu(n)){return n}return null}}class qw extends ix{constructor(e,n,t,i,r){super(e,"layer",n,t,r,e.resolve,e.view);const s=Object.assign(Object.assign(Object.assign({},i),e.width?{width:e.width}:{}),e.height?{height:e.height}:{});this.children=e.layer.map(((e,n)=>{if(cf(e)){return new qw(e,this,this.getName(`layer_${n}`),s,r)}else if(fc(e)){return new Lw(e,this,this.getName(`layer_${n}`),s,r)}throw new Error(fi(e))}))}parseData(){this.component.data=Rx(this);for(const e of this.children){e.parseData()}}parseLayoutSize(){Sx(this)}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const n of N(e.component.selection)){this.component.selection[n]=e.component.selection[n]}}}parseMarkGroup(){for(const e of this.children){e.parseMarkGroup()}}parseAxesAndHeaders(){Xx(this)}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,n)=>n.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){return this.children.reduce(((e,n)=>e.concat(n.assembleSignals())),cb(this))}assembleLayoutSignals(){return this.children.reduce(((e,n)=>e.concat(n.assembleLayoutSignals())),Yb(this))}assembleSelectionData(e){return this.children.reduce(((e,n)=>n.assembleSelectionData(e)),e)}assembleGroupStyle(){const e=new Set;for(const t of this.children){for(const n of(0,r.YO)(t.assembleGroupStyle())){e.add(n)}}const n=Array.from(e);return n.length>1?n:n.length===1?n[0]:undefined}assembleTitle(){let e=super.assembleTitle();if(e){return e}for(const n of this.children){e=n.assembleTitle();if(e){return e}}return undefined}assembleLayout(){return null}assembleMarks(){return Xd(this,this.children.flatMap((e=>e.assembleMarks())))}assembleLegends(){return this.children.reduce(((e,n)=>e.concat(n.assembleLegends())),_y(this))}}function Uw(e,n,t,i,r){if(Ja(e)){return new Tx(e,n,t,r)}else if(cf(e)){return new qw(e,n,t,i,r)}else if(fc(e)){return new Lw(e,n,t,i,r)}else if(Al(e)){return new Ix(e,n,t,r)}throw new Error(fi(e))}var Rw=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{if((e.name==="width"||e.name==="height")&&e.value!==undefined){n[e.name]=+e.value;return false}return true}));const{params:f}=n,d=Rw(n,["params"]);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({$schema:"https://vega.github.io/schema/vega/v5.json"},e.description?{description:e.description}:{}),d),a?{title:a}:{}),u?{style:u}:{}),c?{encode:{update:c}}:{}),{data:s}),o.length>0?{projections:o}:{}),e.assembleGroup([...l,...e.assembleSelectionTopLevelSignals([]),...Dl(f)])),r?{config:r}:{}),i?{usermeta:i}:{})}const Gw=i.rE},18729:e=>{var n=function(){"use strict";function e(e,n){return n!=null&&e instanceof n}var n;try{n=Map}catch(l){n=function(){}}var t;try{t=Set}catch(l){t=function(){}}var i;try{i=Promise}catch(l){i=function(){}}function r(s,o,a,u,l){if(typeof o==="object"){a=o.depth;u=o.prototype;l=o.includeNonEnumerable;o=o.circular}var f=[];var d=[];var p=typeof Buffer!="undefined";if(typeof o=="undefined")o=true;if(typeof a=="undefined")a=Infinity;function g(s,a){if(s===null)return null;if(a===0)return s;var m;var h;if(typeof s!="object"){return s}if(e(s,n)){m=new n}else if(e(s,t)){m=new t}else if(e(s,i)){m=new i((function(e,n){s.then((function(n){e(g(n,a-1))}),(function(e){n(g(e,a-1))}))}))}else if(r.__isArray(s)){m=[]}else if(r.__isRegExp(s)){m=new RegExp(s.source,c(s));if(s.lastIndex)m.lastIndex=s.lastIndex}else if(r.__isDate(s)){m=new Date(s.getTime())}else if(p&&Buffer.isBuffer(s)){if(Buffer.allocUnsafe){m=Buffer.allocUnsafe(s.length)}else{m=new Buffer(s.length)}s.copy(m);return m}else if(e(s,Error)){m=Object.create(s)}else{if(typeof u=="undefined"){h=Object.getPrototypeOf(s);m=Object.create(h)}else{m=Object.create(u);h=u}}if(o){var b=f.indexOf(s);if(b!=-1){return d[b]}f.push(s);d.push(m)}if(e(s,n)){s.forEach((function(e,n){var t=g(n,a-1);var i=g(e,a-1);m.set(t,i)}))}if(e(s,t)){s.forEach((function(e){var n=g(e,a-1);m.add(n)}))}for(var y in s){var v;if(h){v=Object.getOwnPropertyDescriptor(h,y)}if(v&&v.set==null){continue}m[y]=g(s[y],a-1)}if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(s);for(var y=0;y{n.r(t);n.d(t,{blockComment:()=>y,blockUncomment:()=>k,copyLineDown:()=>tn,copyLineUp:()=>en,cursorCharBackward:()=>ue,cursorCharBackwardLogical:()=>me,cursorCharForward:()=>ce,cursorCharForwardLogical:()=>he,cursorCharLeft:()=>ie,cursorCharRight:()=>ae,cursorDocEnd:()=>Dt,cursorDocStart:()=>Et,cursorGroupBackward:()=>we,cursorGroupForward:()=>ke,cursorGroupForwardWin:()=>ve,cursorGroupLeft:()=>ge,cursorGroupRight:()=>ye,cursorLineBoundaryBackward:()=>Je,cursorLineBoundaryForward:()=>Ge,cursorLineBoundaryLeft:()=>Pe,cursorLineBoundaryRight:()=>He,cursorLineDown:()=>Ie,cursorLineEnd:()=>ze,cursorLineStart:()=>We,cursorLineUp:()=>Oe,cursorMatchingBracket:()=>je,cursorPageDown:()=>Ne,cursorPageUp:()=>Fe,cursorSubwordBackward:()=>De,cursorSubwordForward:()=>Ee,cursorSyntaxLeft:()=>Me,cursorSyntaxRight:()=>be,defaultKeymap:()=>wn,deleteCharBackward:()=>Ft,deleteCharBackwardStrict:()=>Nt,deleteCharForward:()=>Ut,deleteGroupBackward:()=>Jt,deleteGroupForward:()=>Pt,deleteLine:()=>nn,deleteLineBoundaryBackward:()=>zt,deleteLineBoundaryForward:()=>_t,deleteToLineEnd:()=>Ht,deleteToLineStart:()=>Wt,deleteTrailingWhitespace:()=>jt,emacsStyleKeymap:()=>yn,history:()=>T,historyField:()=>O,historyKeymap:()=>ee,indentLess:()=>hn,indentMore:()=>dn,indentSelection:()=>fn,indentWithTab:()=>Sn,insertBlankLine:()=>an,insertNewline:()=>rn,insertNewlineAndIndent:()=>sn,insertNewlineKeepIndent:()=>on,insertTab:()=>gn,invertedEffects:()=>L,isolateHistory:()=>x,lineComment:()=>m,lineUncomment:()=>p,moveLineDown:()=>Yt,moveLineUp:()=>Xt,redo:()=>V,redoDepth:()=>J,redoSelection:()=>N,selectAll:()=>Mt,selectCharBackward:()=>Ze,selectCharBackwardLogical:()=>tt,selectCharForward:()=>Ye,selectCharForwardLogical:()=>et,selectCharLeft:()=>Qe,selectCharRight:()=>Xe,selectDocEnd:()=>Lt,selectDocStart:()=>xt,selectGroupBackward:()=>st,selectGroupForward:()=>lt,selectGroupForwardWin:()=>it,selectGroupLeft:()=>rt,selectGroupRight:()=>ot,selectLine:()=>bt,selectLineBoundaryBackward:()=>St,selectLineBoundaryForward:()=>wt,selectLineBoundaryLeft:()=>vt,selectLineBoundaryRight:()=>At,selectLineDown:()=>pt,selectLineEnd:()=>Bt,selectLineStart:()=>Ct,selectLineUp:()=>mt,selectMatchingBracket:()=>qe,selectPageDown:()=>kt,selectPageUp:()=>yt,selectParentSyntax:()=>Tt,selectSubwordBackward:()=>ut,selectSubwordForward:()=>ct,selectSyntaxLeft:()=>ft,selectSyntaxRight:()=>dt,simplifySelection:()=>Ot,splitLine:()=>qt,standardKeymap:()=>kn,temporarilySetTabFocusMode:()=>pn,toggleBlockComment:()=>g,toggleBlockCommentByLine:()=>w,toggleComment:()=>f,toggleLineComment:()=>h,toggleTabFocusMode:()=>mn,transposeChars:()=>Kt,undo:()=>R,undoDepth:()=>G,undoSelection:()=>F});var r=n(71674);var o=n.n(r);var l=n(22819);var s=n.n(l);var i=n(4452);var a=n.n(i);var c=n(66575);var u=n.n(c);const f=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=S(e.state,n.from);return r.line?h(e):r.block?w(e):false};function d(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return false;let o=e(t,n);if(!o)return false;r(n.update(o));return true}}const h=d(E,0);const m=d(E,1);const p=d(E,2);const g=d(B,0);const y=d(B,1);const k=d(B,2);const w=d(((e,t)=>B(e,t,C(t))),0);function S(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const v=50;function A(e,{open:t,close:n},r,o){let l=e.sliceDoc(r-v,r);let s=e.sliceDoc(o,o+v);let i=/\s*$/.exec(l)[0].length,a=/^\s*/.exec(s)[0].length;let c=l.length-i;if(l.slice(c-t.length,c)==t&&s.slice(a,a+n.length)==n){return{open:{pos:r-i,margin:i&&1},close:{pos:o+a,margin:a&&1}}}let u,f;if(o-r<=2*v){u=f=e.sliceDoc(r,o)}else{u=e.sliceDoc(r,r+v);f=e.sliceDoc(o-v,o)}let d=/^\s*/.exec(u)[0].length,h=/\s*$/.exec(f)[0].length;let m=f.length-h-n.length;if(u.slice(d,d+t.length)==t&&f.slice(m,m+n.length)==n){return{open:{pos:r+d+t.length,margin:/\s/.test(u.charAt(d+t.length))?1:0},close:{pos:o-h-n.length,margin:/\s/.test(f.charAt(m-1))?1:0}}}return null}function C(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from);let o=n.to<=r.to?r:e.doc.lineAt(n.to);if(o.from>r.from&&o.from==n.to)o=n.to==r.to+1?r:e.doc.lineAt(n.to-1);let l=t.length-1;if(l>=0&&t[l].to>r.from)t[l].to=o.to;else t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function B(e,t,n=t.selection.ranges){let r=n.map((e=>S(t,e.from).block));if(!r.every((e=>e)))return null;let o=n.map(((e,n)=>A(t,r[n],e.from,e.to)));if(e!=2&&!o.every((e=>e))){return{changes:t.changes(n.map(((e,t)=>{if(o[t])return[];return[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]})))}}else if(e!=1&&o.some((e=>e))){let e=[];for(let t=0,n;to&&(l==s||s>e.from)){o=e.from;let t=/^\s*/.exec(e.text)[0].length;let l=t==e.length;let s=e.text.slice(t,t+i.length)==i?t:-1;if(te.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:o,indent:l,empty:s,single:i}of r)if(i||!s)e.push({from:t.from+l,insert:o+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:o}of r)if(n>=0){let r=t.from+n,l=r+o.length;if(t.text[l-t.from]==" ")l++;e.push({from:r,to:l})}return{changes:e}}return null}const D=r.Annotation.define();const x=r.Annotation.define();const L=r.Facet.define();const M=r.Facet.define({combine(e){return(0,r.combineConfig)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}});const b=r.StateField.define({create(){return Z.empty},update(e,t){let n=t.state.facet(M);let o=t.annotation(D);if(o){let r=P.fromTransaction(t,o.selection),l=o.side;let s=l==0?e.undone:e.done;if(r)s=H(s,s.length,n.minDepth,r);else s=K(s,t.startState.selection);return new Z(l==0?o.rest:s,l==0?s:o.rest)}let l=t.annotation(x);if(l=="full"||l=="before")e=e.isolate();if(t.annotation(r.Transaction.addToHistory)===false)return!t.changes.empty?e.addMapping(t.changes.desc):e;let s=P.fromTransaction(t);let i=t.annotation(r.Transaction.time),a=t.annotation(r.Transaction.userEvent);if(s)e=e.addChanges(s,i,a,n,t);else if(t.selection)e=e.addSelection(t.startState.selection,i,a,n.newGroupDelay);if(l=="full"||l=="after")e=e.isolate();return e},toJSON(e){return{done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}},fromJSON(e){return new Z(e.done.map(P.fromJSON),e.undone.map(P.fromJSON))}});function T(e={}){return[b,M.of(e),l.EditorView.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?R:e.inputType=="historyRedo"?V:null;if(!n)return false;e.preventDefault();return n(t)}})]}const O=b;function I(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return false;let o=n.field(b,false);if(!o)return false;let l=o.pop(e,n,t);if(!l)return false;r(l);return true}}const R=I(0,false);const V=I(1,false);const F=I(0,true);const N=I(1,true);function U(e){return function(t){let n=t.field(b,false);if(!n)return 0;let r=e==0?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}const G=U(0);const J=U(1);class P{constructor(e,t,n,r,o){this.changes=e;this.effects=t;this.mapped=n;this.startSelection=r;this.selectionsAfter=o}setSelAfter(e){return new P(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new P(e.changes&&r.ChangeSet.fromJSON(e.changes),[],e.mapped&&r.ChangeDesc.fromJSON(e.mapped),e.startSelection&&r.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(r.EditorSelection.fromJSON))}static fromTransaction(e,t){let n=j;for(let r of e.startState.facet(L)){let t=r(e);if(t.length)n=n.concat(t)}if(!n.length&&e.changes.empty)return null;return new P(e.changes.invert(e.startState.doc),n,undefined,t||e.startState.selection,j)}static selection(e){return new P(undefined,j,undefined,undefined,e)}}function H(e,t,n,r){let o=t+1>n+20?t-n-1:0;let l=e.slice(o,t);l.push(r);return l}function W(e,t){let n=[],r=false;e.iterChangedRanges(((e,t)=>n.push(e,t)));t.iterChangedRanges(((e,t,o,l)=>{for(let s=0;s=e&&o<=t)r=true}}));return r}function z(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter(((e,n)=>e.empty!=t.ranges[n].empty)).length===0}function _(e,t){return!e.length?t:!t.length?e:e.concat(t)}const j=[];const q=200;function K(e,t){if(!e.length){return[P.selection([t])]}else{let n=e[e.length-1];let r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-q));if(r.length&&r[r.length-1].eq(t))return e;r.push(t);return H(e,e.length-1,1e9,n.setSelAfter(r))}}function $(e){let t=e[e.length-1];let n=e.slice();n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1));return n}function Q(e,t){if(!e.length)return e;let n=e.length,r=j;while(n){let o=X(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,n);t[n-1]=o;return t}else{t=o.mapped;n--;r=o.selectionsAfter}}return r.length?[P.selection(r)]:j}function X(e,t,n){let o=_(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):j,n);if(!e.changes)return P.selection(o);let l=e.changes.map(t),s=t.mapDesc(e.changes,true);let i=e.mapped?e.mapped.composeDesc(s):s;return new P(l,r.StateEffect.mapEffects(e.effects,t),i,e.startSelection.map(s),o)}const Y=/^(input\.type|delete)($|\.)/;class Z{constructor(e,t,n=0,r=undefined){this.done=e;this.undone=t;this.prevTime=n;this.prevUserEvent=r}isolate(){return this.prevTime?new Z(this.done,this.undone):this}addChanges(e,t,n,o,l){let s=this.done,i=s[s.length-1];if(i&&i.changes&&!i.changes.empty&&e.changes&&(!n||Y.test(n))&&(!i.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimen.empty?e.moveByChar(n,t):oe(n,t)))}function se(e){return e.textDirectionAt(e.state.selection.main.head)==l.Direction.LTR}const ie=e=>le(e,!se(e));const ae=e=>le(e,se(e));const ce=e=>le(e,true);const ue=e=>le(e,false);function fe(e,t,n){let o=t.head,l=e.doc.lineAt(o);if(o==(n?l.to:l.from))o=n?Math.min(e.doc.length,l.to+1):Math.max(0,l.from-1);else o=l.from+(0,r.findClusterBreak)(l.text,o-l.from,n);return r.EditorSelection.cursor(o,n?-1:1)}function de(e,t){return re(e,(n=>n.empty?fe(e.state,n,t):oe(n,t)))}const he=e=>de(e,true);const me=e=>de(e,false);function pe(e,t){return re(e,(n=>n.empty?e.moveByGroup(n,t):oe(n,t)))}const ge=e=>pe(e,!se(e));const ye=e=>pe(e,se(e));const ke=e=>pe(e,true);const we=e=>pe(e,false);function Se(e,t,n){let o=e.state.charCategorizer(t);let l=o(n),s=l!=r.CharCategory.Space;return e=>{let t=o(e);if(t!=r.CharCategory.Space)return s&&t==l;s=false;return true}}const ve=e=>re(e,(t=>t.empty?e.moveByChar(t,true,(n=>Se(e,t.head,n))):oe(t,true)));const Ae=typeof Intl!="undefined"&&Intl.Segmenter?new Intl.Segmenter(undefined,{granularity:"word"}):null;function Ce(e,t,n){let o=e.state.charCategorizer(t.from);let l=r.CharCategory.Space,s=t.from,i=0;let a=false,c=false,u=false;let f=t=>{if(a)return false;s+=n?t.length:-t.length;let f=o(t),d;if(f==r.CharCategory.Word&&t.charCodeAt(0)<128&&/[\W_]/.test(t))f=-1;if(l==r.CharCategory.Space)l=f;if(l!=f)return false;if(l==r.CharCategory.Word){if(t.toLowerCase()==t){if(!n&&c)return false;u=true}else if(u){if(n)return false;a=true}else{if(c&&n&&o(d=e.state.sliceDoc(s,s+1))==r.CharCategory.Word&&d.toLowerCase()==d)return false;c=true}}i++;return true};let d=e.moveByChar(t,n,(e=>{f(e);return f}));if(Ae&&l==r.CharCategory.Word&&d.from==t.from+i*(n?1:-1)){let o=Math.min(t.head,d.head),l=Math.max(t.head,d.head);let s=e.state.sliceDoc(o,l);if(s.length>1&&/[\u4E00-\uffff]/.test(s)){let e=Array.from(Ae.segment(s));if(e.length>1){if(n)return r.EditorSelection.cursor(t.head+e[1].index,-1);return r.EditorSelection.cursor(d.head+e[e.length-1].index,1)}}}return d}function Be(e,t){return re(e,(n=>n.empty?Ce(e,n,t):oe(n,t)))}const Ee=e=>Be(e,true);const De=e=>Be(e,false);function xe(e,t,n){if(t.type.prop(n))return true;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Le(e,t,n){let o=(0,i.syntaxTree)(e).resolveInner(t.head);let l=n?c.NodeProp.closedBy:c.NodeProp.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;if(xe(e,t,l))o=t;else r=n?t.to:t.from}let s=o.type.prop(l),a,u;if(s&&(a=n?(0,i.matchBrackets)(e,o.from,1):(0,i.matchBrackets)(e,o.to,-1))&&a.matched)u=n?a.end.to:a.end.from;else u=n?o.to:o.from;return r.EditorSelection.cursor(u,n?-1:1)}const Me=e=>re(e,(t=>Le(e.state,t,!se(e))));const be=e=>re(e,(t=>Le(e.state,t,se(e))));function Te(e,t){return re(e,(n=>{if(!n.empty)return oe(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const Oe=e=>Te(e,false);const Ie=e=>Te(e,true);function Re(e){let t=e.scrollDOM.clientHeightr.empty?e.moveVertically(r,t,n.height):oe(r,t)));if(o.eq(r.selection))return false;let s;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head);let i=e.scrollDOM.getBoundingClientRect();let a=i.top+n.marginTop,c=i.bottom-n.marginBottom;if(t&&t.top>a&&t.bottomVe(e,false);const Ne=e=>Ve(e,true);function Ue(e,t,n){let o=e.lineBlockAt(t.head),l=e.moveToLineBoundary(t,n);if(l.head==t.head&&l.head!=(n?o.to:o.from))l=e.moveToLineBoundary(t,n,false);if(!n&&l.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;if(n&&t.head!=o.from+n)l=r.EditorSelection.cursor(o.from+n)}return l}const Ge=e=>re(e,(t=>Ue(e,t,true)));const Je=e=>re(e,(t=>Ue(e,t,false)));const Pe=e=>re(e,(t=>Ue(e,t,!se(e))));const He=e=>re(e,(t=>Ue(e,t,se(e))));const We=e=>re(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from,1)));const ze=e=>re(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1)));function _e(e,t,n){let o=false,l=te(e.selection,(t=>{let l=(0,i.matchBrackets)(e,t.head,-1)||(0,i.matchBrackets)(e,t.head,1)||t.head>0&&(0,i.matchBrackets)(e,t.head-1,1)||t.head_e(e,t,false);const qe=({state:e,dispatch:t})=>_e(e,t,true);function Ke(e,t){let n=te(e.state.selection,(e=>{let n=t(e);return r.EditorSelection.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||undefined)}));if(n.eq(e.state.selection))return false;e.dispatch(ne(e.state,n));return true}function $e(e,t){return Ke(e,(n=>e.moveByChar(n,t)))}const Qe=e=>$e(e,!se(e));const Xe=e=>$e(e,se(e));const Ye=e=>$e(e,true);const Ze=e=>$e(e,false);const et=e=>Ke(e,(t=>fe(e.state,t,true)));const tt=e=>Ke(e,(t=>fe(e.state,t,false)));function nt(e,t){return Ke(e,(n=>e.moveByGroup(n,t)))}const rt=e=>nt(e,!se(e));const ot=e=>nt(e,se(e));const lt=e=>nt(e,true);const st=e=>nt(e,false);const it=e=>Ke(e,(t=>e.moveByChar(t,true,(n=>Se(e,t.head,n)))));function at(e,t){return Ke(e,(n=>Ce(e,n,t)))}const ct=e=>at(e,true);const ut=e=>at(e,false);const ft=e=>Ke(e,(t=>Le(e.state,t,!se(e))));const dt=e=>Ke(e,(t=>Le(e.state,t,se(e))));function ht(e,t){return Ke(e,(n=>e.moveVertically(n,t)))}const mt=e=>ht(e,false);const pt=e=>ht(e,true);function gt(e,t){return Ke(e,(n=>e.moveVertically(n,t,Re(e).height)))}const yt=e=>gt(e,false);const kt=e=>gt(e,true);const wt=e=>Ke(e,(t=>Ue(e,t,true)));const St=e=>Ke(e,(t=>Ue(e,t,false)));const vt=e=>Ke(e,(t=>Ue(e,t,!se(e))));const At=e=>Ke(e,(t=>Ue(e,t,se(e))));const Ct=e=>Ke(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from)));const Bt=e=>Ke(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to)));const Et=({state:e,dispatch:t})=>{t(ne(e,{anchor:0}));return true};const Dt=({state:e,dispatch:t})=>{t(ne(e,{anchor:e.doc.length}));return true};const xt=({state:e,dispatch:t})=>{t(ne(e,{anchor:e.selection.main.anchor,head:0}));return true};const Lt=({state:e,dispatch:t})=>{t(ne(e,{anchor:e.selection.main.anchor,head:e.doc.length}));return true};const Mt=({state:e,dispatch:t})=>{t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"}));return true};const bt=({state:e,dispatch:t})=>{let n=$t(e).map((({from:t,to:n})=>r.EditorSelection.range(t,Math.min(n+1,e.doc.length))));t(e.update({selection:r.EditorSelection.create(n),userEvent:"select"}));return true};const Tt=({state:e,dispatch:t})=>{let n=te(e.selection,(t=>{let n=(0,i.syntaxTree)(e),o=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);if(e.node.from>=o.node.from&&e.node.to<=o.node.to)o=e}for(let e=o;e;e=e.next){let{node:n}=e;if((n.from=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.EditorSelection.range(n.to,n.from)}return t}));if(n.eq(e.selection))return false;t(ne(e,n));return true};const Ot=({state:e,dispatch:t})=>{let n=e.selection,o=null;if(n.ranges.length>1)o=r.EditorSelection.create([n.main]);else if(!n.main.empty)o=r.EditorSelection.create([r.EditorSelection.cursor(n.main.head)]);if(!o)return false;t(ne(e,o));return true};function It(e,t){if(e.state.readOnly)return false;let n="delete.selection",{state:o}=e;let s=o.changeByRange((o=>{let{from:l,to:s}=o;if(l==s){let r=t(o);if(rl){n="delete.forward";r=Rt(e,r,true)}l=Math.min(l,r);s=Math.max(s,r)}else{l=Rt(e,l,false);s=Rt(e,s,true)}return l==s?{range:o}:{changes:{from:l,to:s},range:r.EditorSelection.cursor(l,lt(e))))r.between(t,t,((e,r)=>{if(et)t=n?r:e}));return t}const Vt=(e,t,n)=>It(e,(o=>{let l=o.from,{state:s}=e,a=s.doc.lineAt(l),c,u;if(n&&!t&&l>a.from&&lVt(e,false,true);const Nt=e=>Vt(e,false,false);const Ut=e=>Vt(e,true,false);const Gt=(e,t)=>It(e,(n=>{let o=n.head,{state:l}=e,s=l.doc.lineAt(o);let i=l.charCategorizer(o);for(let e=null;;){if(o==(t?s.to:s.from)){if(o==n.head&&s.number!=(t?l.doc.lines:1))o+=t?1:-1;break}let a=(0,r.findClusterBreak)(s.text,o-s.from,t)+s.from;let c=s.text.slice(Math.min(o,a)-s.from,Math.max(o,a)-s.from);let u=i(c);if(e!=null&&u!=e)break;if(c!=" "||o!=n.head)e=u;o=a}return o}));const Jt=e=>Gt(e,false);const Pt=e=>Gt(e,true);const Ht=e=>It(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.headIt(e,(t=>{let n=e.lineBlockAt(t.head).from;return t.head>n?n:Math.max(0,t.head-1)}));const zt=e=>It(e,(t=>{let n=e.moveToLineBoundary(t,false).head;return t.head>n?n:Math.max(0,t.head-1)}));const _t=e=>It(e,(t=>{let n=e.moveToLineBoundary(t,true).head;return t.head{if(e.readOnly)return false;let n=[];for(let r=0,o="",l=e.doc.iter();;){l.next();if(l.lineBreak||l.done){let e=o.search(/\s+$/);if(e>-1)n.push({from:r-(o.length-e),to:r});if(l.done)break;o=""}else{o=l.value}r+=l.value.length}if(!n.length)return false;t(e.update({changes:n,userEvent:"delete"}));return true};const qt=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.Text.of(["",""])},range:r.EditorSelection.cursor(e.from)})));t(e.update(n,{scrollIntoView:true,userEvent:"input"}));return true};const Kt=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange((t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n);let l=n==o.from?n-1:(0,r.findClusterBreak)(o.text,n-o.from,false)+o.from;let s=n==o.to?n+1:(0,r.findClusterBreak)(o.text,n-o.from,true)+o.from;return{changes:{from:l,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(l,n))},range:r.EditorSelection.cursor(s)}}));if(n.changes.empty)return false;t(e.update(n,{scrollIntoView:true,userEvent:"move.character"}));return true};function $t(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),l=e.doc.lineAt(r.to);if(!r.empty&&r.to==l.from)l=e.doc.lineAt(r.to-1);if(n>=o.number){let e=t[t.length-1];e.to=l.to;e.ranges.push(r)}else{t.push({from:o.from,to:l.to,ranges:[r]})}n=l.number+1}return t}function Qt(e,t,n){if(e.readOnly)return false;let o=[],l=[];for(let s of $t(e)){if(n?s.to==e.doc.length:s.from==0)continue;let t=e.doc.lineAt(n?s.to+1:s.from-1);let i=t.length+1;if(n){o.push({from:s.to,to:t.to},{from:s.from,insert:t.text+e.lineBreak});for(let t of s.ranges)l.push(r.EditorSelection.range(Math.min(e.doc.length,t.anchor+i),Math.min(e.doc.length,t.head+i)))}else{o.push({from:t.from,to:s.from},{from:s.to,insert:e.lineBreak+t.text});for(let e of s.ranges)l.push(r.EditorSelection.range(e.anchor-i,e.head-i))}}if(!o.length)return false;t(e.update({changes:o,scrollIntoView:true,selection:r.EditorSelection.create(l,e.selection.mainIndex),userEvent:"move.line"}));return true}const Xt=({state:e,dispatch:t})=>Qt(e,t,false);const Yt=({state:e,dispatch:t})=>Qt(e,t,true);function Zt(e,t,n){if(e.readOnly)return false;let r=[];for(let o of $t(e)){if(n)r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak});else r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)})}t(e.update({changes:r,scrollIntoView:true,userEvent:"input.copyline"}));return true}const en=({state:e,dispatch:t})=>Zt(e,t,false);const tn=({state:e,dispatch:t})=>Zt(e,t,true);const nn=e=>{if(e.state.readOnly)return false;let{state:t}=e,n=t.changes($t(t).map((({from:e,to:n})=>{if(e>0)e--;else if(n{let n=undefined;if(e.lineWrapping){let r=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);if(o)n=r.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2}return e.moveVertically(t,true,n)})).map(n);e.dispatch({changes:n,selection:r,scrollIntoView:true,userEvent:"delete.line"});return true};const rn=({state:e,dispatch:t})=>{t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:true,userEvent:"input"}));return true};const on=({state:e,dispatch:t})=>{t(e.update(e.changeByRange((t=>{let n=/^\s*/.exec(e.doc.lineAt(t.from).text)[0];return{changes:{from:t.from,to:t.to,insert:e.lineBreak+n},range:r.EditorSelection.cursor(t.from+n.length+1)}})),{scrollIntoView:true,userEvent:"input"}));return true};function ln(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,i.syntaxTree)(e).resolveInner(t);let r=n.childBefore(t),o=n.childAfter(t),l;if(r&&o&&r.to<=t&&o.from>=t&&(l=r.type.prop(c.NodeProp.closedBy))&&l.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(r.to,o.from)))return{from:r.to,to:o.from};return null}const sn=cn(false);const an=cn(true);function cn(e){return({state:t,dispatch:n})=>{if(t.readOnly)return false;let o=t.changeByRange((n=>{let{from:o,to:l}=n,s=t.doc.lineAt(o);let a=!e&&o==l&&ln(t,o);if(e)o=l=(l<=s.to?s:t.doc.lineAt(l)).to;let c=new i.IndentContext(t,{simulateBreak:o,simulateDoubleBreak:!!a});let u=(0,i.getIndentation)(c,o);if(u==null)u=(0,r.countColumn)(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize);while(ls.from&&o{let l=[];for(let r=o.from;r<=o.to;){let s=e.doc.lineAt(r);if(s.number>n&&(o.empty||o.to>s.from)){t(s,l,o);n=s.number}r=s.to+1}let s=e.changes(l);return{changes:l,range:r.EditorSelection.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}}))}const fn=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=Object.create(null);let r=new i.IndentContext(e,{overrideIndentation:e=>{let t=n[e];return t==null?-1:t}});let o=un(e,((t,o,l)=>{let s=(0,i.getIndentation)(r,t.from);if(s==null)return;if(!/\S/.test(t.text))s=0;let a=/^\s*/.exec(t.text)[0];let c=(0,i.indentString)(e,s);if(a!=c||l.from{if(e.readOnly)return false;t(e.update(un(e,((t,n)=>{n.push({from:t.from,insert:e.facet(i.indentUnit)})})),{userEvent:"input.indent"}));return true};const hn=({state:e,dispatch:t})=>{if(e.readOnly)return false;t(e.update(un(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let l=(0,r.countColumn)(o,e.tabSize),s=0;let a=(0,i.indentString)(e,Math.max(0,l-(0,i.getIndentUnit)(e)));while(s{e.setTabFocusMode();return true};const pn=e=>{e.setTabFocusMode(2e3);return true};const gn=({state:e,dispatch:t})=>{if(e.selection.ranges.some((e=>!e.empty)))return dn({state:e,dispatch:t});t(e.update(e.replaceSelection("\t"),{scrollIntoView:true,userEvent:"input"}));return true};const yn=[{key:"Ctrl-b",run:ie,shift:Qe,preventDefault:true},{key:"Ctrl-f",run:ae,shift:Xe},{key:"Ctrl-p",run:Oe,shift:mt},{key:"Ctrl-n",run:Ie,shift:pt},{key:"Ctrl-a",run:We,shift:Ct},{key:"Ctrl-e",run:ze,shift:Bt},{key:"Ctrl-d",run:Ut},{key:"Ctrl-h",run:Ft},{key:"Ctrl-k",run:Ht},{key:"Ctrl-Alt-h",run:Jt},{key:"Ctrl-o",run:qt},{key:"Ctrl-t",run:Kt},{key:"Ctrl-v",run:Ne}];const kn=[{key:"ArrowLeft",run:ie,shift:Qe,preventDefault:true},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:ge,shift:rt,preventDefault:true},{mac:"Cmd-ArrowLeft",run:Pe,shift:vt,preventDefault:true},{key:"ArrowRight",run:ae,shift:Xe,preventDefault:true},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:ye,shift:ot,preventDefault:true},{mac:"Cmd-ArrowRight",run:He,shift:At,preventDefault:true},{key:"ArrowUp",run:Oe,shift:mt,preventDefault:true},{mac:"Cmd-ArrowUp",run:Et,shift:xt},{mac:"Ctrl-ArrowUp",run:Fe,shift:yt},{key:"ArrowDown",run:Ie,shift:pt,preventDefault:true},{mac:"Cmd-ArrowDown",run:Dt,shift:Lt},{mac:"Ctrl-ArrowDown",run:Ne,shift:kt},{key:"PageUp",run:Fe,shift:yt},{key:"PageDown",run:Ne,shift:kt},{key:"Home",run:Je,shift:St,preventDefault:true},{key:"Mod-Home",run:Et,shift:xt},{key:"End",run:Ge,shift:wt,preventDefault:true},{key:"Mod-End",run:Dt,shift:Lt},{key:"Enter",run:sn,shift:sn},{key:"Mod-a",run:Mt},{key:"Backspace",run:Ft,shift:Ft},{key:"Delete",run:Ut},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Jt},{key:"Mod-Delete",mac:"Alt-Delete",run:Pt},{mac:"Mod-Backspace",run:zt},{mac:"Mod-Delete",run:_t}].concat(yn.map((e=>({mac:e.key,run:e.run,shift:e.shift}))));const wn=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Me,shift:ft},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:be,shift:dt},{key:"Alt-ArrowUp",run:Xt},{key:"Shift-Alt-ArrowUp",run:en},{key:"Alt-ArrowDown",run:Yt},{key:"Shift-Alt-ArrowDown",run:tn},{key:"Escape",run:Ot},{key:"Mod-Enter",run:an},{key:"Alt-l",mac:"Ctrl-l",run:bt},{key:"Mod-i",run:Tt,preventDefault:true},{key:"Mod-[",run:hn},{key:"Mod-]",run:dn},{key:"Mod-Alt-\\",run:fn},{key:"Shift-Mod-k",run:nn},{key:"Shift-Mod-\\",run:je},{key:"Mod-/",run:f},{key:"Alt-A",run:g},{key:"Ctrl-m",mac:"Shift-Alt-m",run:mn}].concat(kn);const Sn={key:"Tab",run:dn,shift:hn}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4364.b9b49d8d836882f44e62.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4364.b9b49d8d836882f44e62.js new file mode 100644 index 0000000000000000000000000000000000000000..50fdce75b5a2173c897e7745b8a9c8517b78e352 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4364.b9b49d8d836882f44e62.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4364],{54364:(e,t,n)=>{n.r(t);n.d(t,{Hooks:()=>ze,Lexer:()=>$e,Marked:()=>Ae,Parser:()=>Te,Renderer:()=>Re,TextRenderer:()=>Se,Tokenizer:()=>ye,defaults:()=>r,getDefaults:()=>s,lexer:()=>ve,marked:()=>Ie,options:()=>Pe,parse:()=>Ee,parseInline:()=>qe,parser:()=>Ze,setOptions:()=>Le,use:()=>Ce,walkTokens:()=>Be});function s(){return{async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}let r=s();function i(e){r=e}const l={exec:()=>null};function o(e,t=""){let n=typeof e==="string"?e:e.source;const s={replace:(e,t)=>{let r=typeof t==="string"?t:t.source;r=r.replace(a.caret,"$1");n=n.replace(e,r);return s},getRegex:()=>new RegExp(n,t)};return s}const a={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")};const c=/^(?:[ \t]*(?:\n|$))+/;const h=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;const p=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;const u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;const f=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;const g=/(?:[*+-]|\d{1,9}[.)])/;const k=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;const d=o(k).replace(/bull/g,g).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex();const x=o(k).replace(/bull/g,g).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();const b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;const w=/^[^\n]+/;const m=/(?!\s*\])(?:\\.|[^\[\]\\])+/;const y=o(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();const $=o(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,g).getRegex();const R="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|h[1-6]|head|header|hr|html|iframe"+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+"|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title"+"|tr|track|ul";const S=/|$))/;const T=o("^ {0,3}(?:"+"<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?(?:\\?>\\n*|$)"+"|\\n*|$)"+"|\\n*|$)"+"|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+"|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+"|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+")","i").replace("comment",S).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();const z=o(b).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex();const A=o(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",z).getRegex();const _={blockquote:A,code:h,def:y,fences:p,heading:f,hr:u,html:T,lheading:d,list:$,newline:c,paragraph:z,table:l,text:w};const I=o("^ *([^\\n ].*)\\n"+" {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)"+"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex();const P={..._,lheading:x,table:I,paragraph:o(b).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()};const L={..._,html:o("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)"+"|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:o(b).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",d).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()};const C=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;const B=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;const q=/^( {2,}|\\)\n(?!\s*$)/;const E=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g;const G=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;const H=o(G,"u").replace(/punct/g,Z).getRegex();const X=o(G,"u").replace(/punct/g,j).getRegex();const F="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)"+"|[^*]+(?=[^*])"+"|(?!\\*)punct(\\*+)(?=[\\s]|$)"+"|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)"+"|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)"+"|[\\s](\\*+)(?!\\*)(?=punct)"+"|(?!\\*)punct(\\*+)(?!\\*)(?=punct)"+"|notPunctSpace(\\*+)(?=notPunctSpace)";const U=o(F,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,v).replace(/punct/g,Z).getRegex();const J=o(F,"gu").replace(/notPunctSpace/g,Q).replace(/punctSpace/g,O).replace(/punct/g,j).getRegex();const K=o("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)"+"|[^_]+(?=[^_])"+"|(?!_)punct(_+)(?=[\\s]|$)"+"|notPunctSpace(_+)(?!_)(?=punctSpace|$)"+"|(?!_)punctSpace(_+)(?=notPunctSpace)"+"|[\\s](_+)(?!_)(?=punct)"+"|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,v).replace(/punct/g,Z).getRegex();const V=o(/\\(punct)/,"gu").replace(/punct/g,Z).getRegex();const W=o(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex();const Y=o(S).replace("(?:--\x3e|$)","--\x3e").getRegex();const ee=o("^comment"+"|^"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^"+"|^").replace("comment",Y).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();const te=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;const ne=o(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();const se=o(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",m).getRegex();const re=o(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex();const ie=o("reflink|nolink(?!\\()","g").replace("reflink",se).replace("nolink",re).getRegex();const le={_backpedal:l,anyPunctuation:V,autolink:W,blockSkip:N,br:q,code:B,del:l,emStrongLDelim:H,emStrongRDelimAst:U,emStrongRDelimUnd:K,escape:C,link:ne,nolink:re,punctuation:M,reflink:se,reflinkSearch:ie,tag:ee,text:E,url:l};const oe={...le,link:o(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:o(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()};const ae={...le,emStrongRDelimAst:J,emStrongLDelim:X,url:o(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"};const fe=e=>ue[e];function ge(e,t){if(t){if(a.escapeTest.test(e)){return e.replace(a.escapeReplace,fe)}}else{if(a.escapeTestNoEncode.test(e)){return e.replace(a.escapeReplaceNoEncode,fe)}}return e}function ke(e){try{e=encodeURI(e).replace(a.percentDecode,"%")}catch{return null}return e}function de(e,t){const n=e.replace(a.findPipe,((e,t,n)=>{let s=false;let r=t;while(--r>=0&&n[r]==="\\")s=!s;if(s){return"|"}else{return" |"}})),s=n.split(a.splitPipe);let r=0;if(!s[0].trim()){s.shift()}if(s.length>0&&!s.at(-1)?.trim()){s.pop()}if(t){if(s.length>t){s.splice(t)}else{while(s.length{const t=e.match(n.other.beginningSpace);if(t===null){return e}const[s]=t;if(s.length>=r.length){return e.slice(r.length)}return e})).join("\n")}class ye{options;rules;lexer;constructor(e){this.options=e||r}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0){return{type:"space",raw:t[0]}}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:!this.options.pedantic?xe(e,"\n"):e}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0];const n=me(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=xe(e,"#");if(this.options.pedantic){e=t.trim()}else if(!t||this.rules.other.endingSpaceChar.test(t)){e=t.trim()}}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t){return{type:"hr",raw:xe(t[0],"\n")}}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=xe(t[0],"\n").split("\n");let n="";let s="";const r=[];while(e.length>0){let t=false;const i=[];let l;for(l=0;l1;const r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:false,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`;if(this.options.pedantic){n=s?n:"[*+-]"}const i=this.rules.other.listItemRegex(n);let l=false;while(e){let n=false;let s="";let o="";if(!(t=i.exec(e))){break}if(this.rules.block.hr.test(e)){break}s=t[0];e=e.substring(s.length);let a=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length)));let c=e.split("\n",1)[0];let h=!a.trim();let p=0;if(this.options.pedantic){p=2;o=a.trimStart()}else if(h){p=t[1].length+1}else{p=t[2].search(this.rules.other.nonSpaceChar);p=p>4?1:p;o=a.slice(p);p+=t[1].length}if(h&&this.rules.other.blankLine.test(c)){s+=c+"\n";e=e.substring(c.length+1);n=true}if(!n){const t=this.rules.other.nextBulletRegex(p);const n=this.rules.other.hrRegex(p);const r=this.rules.other.fencesBeginRegex(p);const i=this.rules.other.headingBeginRegex(p);const l=this.rules.other.htmlBeginRegex(p);while(e){const u=e.split("\n",1)[0];let f;c=u;if(this.options.pedantic){c=c.replace(this.rules.other.listReplaceNesting," ");f=c}else{f=c.replace(this.rules.other.tabCharGlobal," ")}if(r.test(c)){break}if(i.test(c)){break}if(l.test(c)){break}if(t.test(c)){break}if(n.test(c)){break}if(f.search(this.rules.other.nonSpaceChar)>=p||!c.trim()){o+="\n"+f.slice(p)}else{if(h){break}if(a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4){break}if(r.test(a)){break}if(i.test(a)){break}if(n.test(a)){break}o+="\n"+c}if(!h&&!c.trim()){h=true}s+=u+"\n";e=e.substring(u.length+1);a=f.slice(p)}}if(!r.loose){if(l){r.loose=true}else if(this.rules.other.doubleBlankLine.test(s)){l=true}}let u=null;let f;if(this.options.gfm){u=this.rules.other.listIsTask.exec(o);if(u){f=u[0]!=="[ ] ";o=o.replace(this.rules.other.listReplaceTask,"")}}r.items.push({type:"list_item",raw:s,task:!!u,checked:f,loose:false,text:o,tokens:[]});r.raw+=s}const o=r.items.at(-1);if(o){o.raw=o.raw.trimEnd();o.text=o.text.trimEnd()}else{return}r.raw=r.raw.trimEnd();for(let e=0;ee.type==="space"));const n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));r.loose=n}}if(r.loose){for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:false,align:i.align[t]}))))}return i}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e=t[1].charAt(t[1].length-1)==="\n"?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t){return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}}escape(e){const t=this.rules.inline.escape.exec(e);if(t){return{type:"escape",raw:t[0],text:t[1]}}}tag(e){const t=this.rules.inline.tag.exec(e);if(t){if(!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])){this.lexer.state.inLink=true}else if(this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])){this.lexer.state.inLink=false}if(!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])){this.lexer.state.inRawBlock=true}else if(this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])){this.lexer.state.inRawBlock=false}return{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:t[0]}}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e)){return}const t=xe(e.slice(0,-1),"\\");if((e.length-t.length)%2===0){return}}else{const e=be(t[2],"()");if(e>-1){const n=t[0].indexOf("!")===0?5:4;const s=n+t[1].length+e;t[2]=t[2].substring(0,e);t[0]=t[0].substring(0,s).trim();t[3]=""}}let n=t[2];let s="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);if(e){n=e[1];s=e[3]}}else{s=t[3]?t[3].slice(1,-1):""}n=n.trim();if(this.rules.other.startAngleBracket.test(n)){if(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)){n=n.slice(1)}else{n=n.slice(1,-1)}}return we(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ");const s=t[e.toLowerCase()];if(!s){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return we(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s)return;if(s[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;const r=s[1]||s[2]||"";if(!r||!n||this.rules.inline.punctuation.exec(n)){const n=[...s[0]].length-1;let r,i,l=n,o=0;const a=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;a.lastIndex=0;t=t.slice(-1*e.length+n);while((s=a.exec(t))!=null){r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6];if(!r)continue;i=[...r].length;if(s[3]||s[4]){l+=i;continue}else if(s[5]||s[6]){if(n%3&&!((n+i)%3)){o+=i;continue}}l-=i;if(l>0)continue;i=Math.min(i,i+l+o);const t=[...s[0]][0].length;const a=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e);const s=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);if(n&&s){e=e.substring(1,e.length-1)}return{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t){return{type:"br",raw:t[0]}}}del(e){const t=this.rules.inline.del.exec(e);if(t){return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;if(t[2]==="@"){e=t[1];n="mailto:"+e}else{e=t[1];n=e}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]==="@"){e=t[0];n="mailto:"+e}else{let s;do{s=t[0];t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=t[0];if(t[1]==="www."){n="http://"+t[0]}else{n=t[0]}}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}}class $e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[];this.tokens.links=Object.create(null);this.options=e||r;this.options.tokenizer=this.options.tokenizer||new ye;this.tokenizer=this.options.tokenizer;this.tokenizer.options=this.options;this.tokenizer.lexer=this;this.inlineQueue=[];this.state={inLink:false,inRawBlock:false,top:true};const t={other:a,block:he.normal,inline:pe.normal};if(this.options.pedantic){t.block=he.pedantic;t.inline=pe.pedantic}else if(this.options.gfm){t.block=he.gfm;if(this.options.breaks){t.inline=pe.breaks}else{t.inline=pe.gfm}}this.tokenizer.rules=t}static get rules(){return{block:he,inline:pe}}static lex(e,t){const n=new $e(t);return n.lex(e)}static lexInline(e,t){const n=new $e(t);return n.inlineTokens(e)}lex(e){e=e.replace(a.carriageReturn,"\n");this.blockTokens(e,this.tokens);for(let t=0;t{if(s=n.call({lexer:this},e,t)){e=e.substring(s.raw.length);t.push(s);return true}return false}))){continue}if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const n=t.at(-1);if(s.raw.length===1&&n!==undefined){n.raw+="\n"}else{t.push(s)}continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const n=t.at(-1);if(n?.type==="paragraph"||n?.type==="text"){n.raw+="\n"+s.raw;n.text+="\n"+s.text;this.inlineQueue.at(-1).src=n.text}else{t.push(s)}continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const n=t.at(-1);if(n?.type==="paragraph"||n?.type==="text"){n.raw+="\n"+s.raw;n.text+="\n"+s.raw;this.inlineQueue.at(-1).src=n.text}else if(!this.tokens.links[s.tag]){this.tokens.links[s.tag]={href:s.href,title:s.title}}continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length);t.push(s);continue}let r=e;if(this.options.extensions?.startBlock){let t=Infinity;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n);if(typeof s==="number"&&s>=0){t=Math.min(t,s)}}));if(t=0){r=e.substring(0,t+1)}}if(this.state.top&&(s=this.tokenizer.paragraph(r))){const i=t.at(-1);if(n&&i?.type==="paragraph"){i.raw+="\n"+s.raw;i.text+="\n"+s.text;this.inlineQueue.pop();this.inlineQueue.at(-1).src=i.text}else{t.push(s)}n=r.length!==e.length;e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const n=t.at(-1);if(n?.type==="text"){n.raw+="\n"+s.raw;n.text+="\n"+s.text;this.inlineQueue.pop();this.inlineQueue.at(-1).src=n.text}else{t.push(s)}continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else{throw new Error(t)}}}this.state.top=true;return t}inline(e,t=[]){this.inlineQueue.push({src:e,tokens:t});return t}inlineTokens(e,t=[]){let n=e;let s=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0){while((s=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null){if(e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))){n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}}}while((s=this.tokenizer.rules.inline.blockSkip.exec(n))!=null){n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex)}while((s=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null){n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex)}let r=false;let i="";while(e){if(!r){i=""}r=false;let s;if(this.options.extensions?.inline?.some((n=>{if(s=n.call({lexer:this},e,t)){e=e.substring(s.raw.length);t.push(s);return true}return false}))){continue}if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);const n=t.at(-1);if(s.type==="text"&&n?.type==="text"){n.raw+=s.raw;n.text+=s.text}else{t.push(s)}continue}if(s=this.tokenizer.emStrong(e,n,i)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length);t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length);t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length);t.push(s);continue}let l=e;if(this.options.extensions?.startInline){let t=Infinity;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n);if(typeof s==="number"&&s>=0){t=Math.min(t,s)}}));if(t=0){l=e.substring(0,t+1)}}if(s=this.tokenizer.inlineText(l)){e=e.substring(s.raw.length);if(s.raw.slice(-1)!=="_"){i=s.raw.slice(-1)}r=true;const n=t.at(-1);if(n?.type==="text"){n.raw+=s.raw;n.text+=s.text}else{t.push(s)}continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else{throw new Error(t)}}}return t}}class Re{options;parser;constructor(e){this.options=e||r}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(a.notSpaceStart)?.[0];const r=e.replace(a.endingNewline,"")+"\n";if(!s){return"
"+(n?r:ge(r,true))+"
\n"}return'
'+(n?r:ge(r,true))+"
\n"}blockquote({tokens:e}){const t=this.parser.parse(e);return`
\n${t}
\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)}\n`}hr(e){return"
\n"}list(e){const t=e.ordered;const n=e.start;let s="";for(let l=0;l\n"+s+"\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});if(e.loose){if(e.tokens[0]?.type==="paragraph"){e.tokens[0].text=n+" "+e.tokens[0].text;if(e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"){e.tokens[0].tokens[0].text=n+" "+ge(e.tokens[0].tokens[0].text);e.tokens[0].tokens[0].escaped=true}}else{e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:true})}}else{t+=n+" "}}t+=this.parser.parse(e.tokens,!!e.loose);return`
  • ${t}
  • \n`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    \n`}table(e){let t="";let n="";for(let r=0;r${s}`;return"\n"+"\n"+t+"\n"+s+"
    \n"}tablerow({text:e}){return`\n${e}\n`}tablecell(e){const t=this.parser.parseInline(e.tokens);const n=e.header?"th":"td";const s=e.align?`<${n} align="${e.align}">`:`<${n}>`;return s+t+`\n`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ge(e,true)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n);const r=ke(e);if(r===null){return s}e=r;let i='
    ";return i}image({href:e,title:t,text:n}){const s=ke(e);if(s===null){return ge(n)}e=s;let r=`${n}{const r=e[s].flat(Infinity);n=n.concat(this.walkTokens(r,t))}))}else if(e.tokens){n=n.concat(this.walkTokens(e.tokens,t))}}}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const n={...e};n.async=this.defaults.async||n.async||false;if(e.extensions){e.extensions.forEach((e=>{if(!e.name){throw new Error("extension name required")}if("renderer"in e){const n=t.renderers[e.name];if(n){t.renderers[e.name]=function(...t){let s=e.renderer.apply(this,t);if(s===false){s=n.apply(this,t)}return s}}else{t.renderers[e.name]=e.renderer}}if("tokenizer"in e){if(!e.level||e.level!=="block"&&e.level!=="inline"){throw new Error("extension level must be 'block' or 'inline'")}const n=t[e.level];if(n){n.unshift(e.tokenizer)}else{t[e.level]=[e.tokenizer]}if(e.start){if(e.level==="block"){if(t.startBlock){t.startBlock.push(e.start)}else{t.startBlock=[e.start]}}else if(e.level==="inline"){if(t.startInline){t.startInline.push(e.start)}else{t.startInline=[e.start]}}}}if("childTokens"in e&&e.childTokens){t.childTokens[e.name]=e.childTokens}}));n.extensions=t}if(e.renderer){const t=this.defaults.renderer||new Re(this.defaults);for(const n in e.renderer){if(!(n in t)){throw new Error(`renderer '${n}' does not exist`)}if(["options","parser"].includes(n)){continue}const s=n;const r=e.renderer[s];const i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);if(n===false){n=i.apply(t,e)}return n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new ye(this.defaults);for(const n in e.tokenizer){if(!(n in t)){throw new Error(`tokenizer '${n}' does not exist`)}if(["options","rules","lexer"].includes(n)){continue}const s=n;const r=e.tokenizer[s];const i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);if(n===false){n=i.apply(t,e)}return n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new ze;for(const n in e.hooks){if(!(n in t)){throw new Error(`hook '${n}' does not exist`)}if(["options","block"].includes(n)){continue}const s=n;const r=e.hooks[s];const i=t[s];if(ze.passThroughHooks.has(n)){t[s]=e=>{if(this.defaults.async){return Promise.resolve(r.call(t,e)).then((e=>i.call(t,e)))}const n=r.call(t,e);return i.call(t,n)}}else{t[s]=(...e)=>{let n=r.apply(t,e);if(n===false){n=i.apply(t,e)}return n}}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens;const s=e.walkTokens;n.walkTokens=function(e){let n=[];n.push(s.call(this,e));if(t){n=n.concat(t.call(this,e))}return n}}this.defaults={...this.defaults,...n}}));return this}setOptions(e){this.defaults={...this.defaults,...e};return this}lexer(e,t){return $e.lex(e,t??this.defaults)}parser(e,t){return Te.parse(e,t??this.defaults)}parseMarkdown(e){const t=(t,n)=>{const s={...n};const r={...this.defaults,...s};const i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===true&&s.async===false){return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."))}if(typeof t==="undefined"||t===null){return i(new Error("marked(): input parameter is undefined or null"))}if(typeof t!=="string"){return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"))}if(r.hooks){r.hooks.options=r;r.hooks.block=e}const l=r.hooks?r.hooks.provideLexer():e?$e.lex:$e.lexInline;const o=r.hooks?r.hooks.provideParser():e?Te.parse:Te.parseInline;if(r.async){return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then((e=>l(e,r))).then((e=>r.hooks?r.hooks.processAllTokens(e):e)).then((e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>o(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(i)}try{if(r.hooks){t=r.hooks.preprocess(t)}let e=l(t,r);if(r.hooks){e=r.hooks.processAllTokens(e)}if(r.walkTokens){this.walkTokens(e,r.walkTokens)}let n=o(e,r);if(r.hooks){n=r.hooks.postprocess(n)}return n}catch(a){return i(a)}};return t}onError(e,t){return n=>{n.message+="\nPlease report this to https://github.com/markedjs/marked.";if(e){const e="

    An error occurred:

    "+ge(n.message+"",true)+"
    ";if(t){return Promise.resolve(e)}return e}if(t){return Promise.reject(n)}throw n}}}const _e=new Ae;function Ie(e,t){return _e.parse(e,t)}Ie.options=Ie.setOptions=function(e){_e.setOptions(e);Ie.defaults=_e.defaults;i(Ie.defaults);return Ie};Ie.getDefaults=s;Ie.defaults=r;Ie.use=function(...e){_e.use(...e);Ie.defaults=_e.defaults;i(Ie.defaults);return Ie};Ie.walkTokens=function(e,t){return _e.walkTokens(e,t)};Ie.parseInline=_e.parseInline;Ie.Parser=Te;Ie.parser=Te.parse;Ie.Renderer=Re;Ie.TextRenderer=Se;Ie.Lexer=$e;Ie.lexer=$e.lex;Ie.Tokenizer=ye;Ie.Hooks=ze;Ie.parse=Ie;const Pe=Ie.options;const Le=Ie.setOptions;const Ce=Ie.use;const Be=Ie.walkTokens;const qe=Ie.parseInline;const Ee=Ie;const Ze=Te.parse;const ve=$e.lex}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ebc2d138d5f237530b21740b7585a4ec36ee906b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt @@ -0,0 +1 @@ +//!stream.match(tlvCommentMatch, false) && // not comment start diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4408.f24dd0edf35e08548967.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4408.f24dd0edf35e08548967.js new file mode 100644 index 0000000000000000000000000000000000000000..1c05ca8a2bc83c3bf880419c646bb6480d7732a9 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4408.f24dd0edf35e08548967.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4408],{74408:(e,t,n)=>{n.r(t);n.d(t,{fortran:()=>d});function a(e){var t={};for(var n=0;n\/\:]/;var l=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function s(e,t){if(e.match(l)){return"operator"}var n=e.next();if(n=="!"){e.skipToEnd();return"comment"}if(n=='"'||n=="'"){t.tokenize=_(n);return t.tokenize(e,t)}if(/[\[\]\(\),]/.test(n)){return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(o.test(n)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(i.hasOwnProperty(a)){return"keyword"}if(r.hasOwnProperty(a)||c.hasOwnProperty(a)){return"builtin"}return"variable"}function _(e){return function(t,n){var a=false,i,r=false;while((i=t.next())!=null){if(i==e&&!a){r=true;break}a=!a&&i=="\\"}if(r||!a)n.tokenize=null;return"string"}}const d={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||s)(e,t);if(n=="comment"||n=="meta")return n;return n}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4462.c3c6de84bc9399e0290d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4462.c3c6de84bc9399e0290d.js new file mode 100644 index 0000000000000000000000000000000000000000..1832b1ee362dd50e2ed451e9232480193d414e11 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4462.c3c6de84bc9399e0290d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4462],{84462:(e,t,r)=>{r.r(t);r.d(t,{stylus:()=>se});var i=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"];var a=["domain","regexp","url-prefix","url"];var n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"];var o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"];var l=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"];var s=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"];var c=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"];var u=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"];var d=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"];var m=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],p=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],h=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"];var b=i.concat(a,n,o,l,s,u,d,c,m,p,f,h);function g(e){e=e.sort((function(e,t){return t>e}));return new RegExp("^(("+e.join(")|(")+"))\\b")}function k(e){var t={};for(var r=0;r]=?|\?:|\~)/,P=g(m),U=k(p),E=new RegExp(/^\-(moz|ms|o|webkit)-/i),O=k(f),W="",A={},R,S,X,Y;function Z(e,t){W=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);t.context.line.firstWord=W?W[0].replace(/^\s*/,""):"";t.context.line.indent=e.indentation();R=e.peek();if(e.match("//")){e.skipToEnd();return["comment","comment"]}if(e.match("/*")){t.tokenize=T;return T(e,t)}if(R=='"'||R=="'"){e.next();t.tokenize=D(R);return t.tokenize(e,t)}if(R=="@"){e.next();e.eatWhile(/[\w\\-]/);return["def",e.current()]}if(R=="#"){e.next();if(e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)){return["atom","atom"]}if(e.match(/^[a-z][\w-]*/i)){return["builtin","hash"]}}if(e.match(E)){return["meta","vendor-prefixes"]}if(e.match(/^-?[0-9]?\.?[0-9]/)){e.eatWhile(/[a-z%]/i);return["number","unit"]}if(R=="!"){e.next();return[e.match(/^(important|optional)/i)?"keyword":"operator","important"]}if(R=="."&&e.match(/^\.[a-z][\w-]*/i)){return["qualifier","qualifier"]}if(e.match(_)){if(e.peek()=="(")t.tokenize=F;return["property","word"]}if(e.match(/^[a-z][\w-]*\(/i)){e.backUp(1);return["keyword","mixin"]}if(e.match(/^(\+|-)[a-z][\w-]*\(/i)){e.backUp(1);return["keyword","block-mixin"]}if(e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)){return["qualifier","qualifier"]}if(e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)){e.backUp(1);return["variableName.special","reference"]}if(e.match(/^&{1}\s*$/)){return["variableName.special","reference"]}if(e.match(P)){return["operator","operator"]}if(e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)){if(e.match(/^(\.|\[)[\w-\'\"\]]+/i,false)){if(!M(e.current())){e.match(".");return["variable","variable-name"]}}return["variable","word"]}if(e.match(L)){return["operator",e.current()]}if(/[:;,{}\[\]\(\)]/.test(R)){e.next();return[null,R]}e.next();return[null,null]}function T(e,t){var r=false,i;while((i=e.next())!=null){if(r&&i=="/"){t.tokenize=null;break}r=i=="*"}return["comment","comment"]}function D(e){return function(t,r){var i=false,a;while((a=t.next())!=null){if(a==e&&!i){if(e==")")t.backUp(1);break}i=!i&&a=="\\"}if(a==e||!i&&e!=")")r.tokenize=null;return["string","string"]}}function F(e,t){e.next();if(!e.match(/\s*[\"\')]/,false))t.tokenize=D(")");else t.tokenize=null;return[null,"("]}function I(e,t,r,i){this.type=e;this.indent=t;this.prev=r;this.line=i||{firstWord:"",indent:0}}function G(e,t,r,i){i=i>=0?i:t.indentUnit;e.context=new I(r,t.indentation()+i,e.context);return r}function H(e,t,r){var i=e.context.indent-t.indentUnit;r=r||false;e.context=e.context.prev;if(r)e.context.indent=i;return e.context.type}function J(e,t,r){return A[r.context.type](e,t,r)}function K(e,t,r,i){for(var a=i||1;a>0;a--)r.context=r.context.prev;return J(e,t,r)}function M(e){return e.toLowerCase()in v}function Q(e){e=e.toLowerCase();return e in x||e in N}function V(e){return e.toLowerCase()in U}function ee(e){return e.toLowerCase().match(E)}function te(e){var t=e.toLowerCase();var r="variable";if(M(e))r="tag";else if(V(e))r="block-keyword";else if(Q(e))r="property";else if(t in q||t in O)r="atom";else if(t=="return"||t in j)r="keyword";else if(e.match(/^[A-Z]/))r="string";return r}function re(e,t){return oe(t)&&(e=="{"||e=="]"||e=="hash"||e=="qualifier")||e=="block-mixin"}function ie(e,t){return e=="{"&&t.match(/^\s*\$?[\w-]+/i,false)}function ae(e,t){return e==":"&&t.match(/^[a-z-]+/,false)}function ne(e){return e.sol()||e.string.match(new RegExp("^\\s*"+w(e.current())))}function oe(e){return e.eol()||e.match(/^\s*$/,false)}function le(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i;var r=typeof e=="string"?e.match(t):e.string.match(t);return r?r[0].replace(/^\s*/,""):""}A.block=function(e,t,r){if(e=="comment"&&ne(t)||e==","&&oe(t)||e=="mixin"){return G(r,t,"block",0)}if(ie(e,t)){return G(r,t,"interpolation")}if(oe(t)&&e=="]"){if(!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!M(le(t))){return G(r,t,"block",0)}}if(re(e,t)){return G(r,t,"block")}if(e=="}"&&oe(t)){return G(r,t,"block",0)}if(e=="variable-name"){if(t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||V(le(t))){return G(r,t,"variableName")}else{return G(r,t,"variableName",0)}}if(e=="="){if(!oe(t)&&!V(le(t))){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="*"){if(oe(t)||t.match(/\s*(,|\.|#|\[|:|{)/,false)){Y="tag";return G(r,t,"block")}}if(ae(e,t)){return G(r,t,"pseudo")}if(/@(font-face|media|supports|(-moz-)?document)/.test(e)){return G(r,t,oe(t)?"block":"atBlock")}if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e)){return G(r,t,"keyframes")}if(/@extends?/.test(e)){return G(r,t,"extend",0)}if(e&&e.charAt(0)=="@"){if(t.indentation()>0&&Q(t.current().slice(1))){Y="variable";return"block"}if(/(@import|@require|@charset)/.test(e)){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="reference"&&oe(t)){return G(r,t,"block")}if(e=="("){return G(r,t,"parens")}if(e=="vendor-prefixes"){return G(r,t,"vendorPrefixes")}if(e=="word"){var i=t.current();Y=te(i);if(Y=="property"){if(ne(t)){return G(r,t,"block",0)}else{Y="atom";return"block"}}if(Y=="tag"){if(/embed|menu|pre|progress|sub|table/.test(i)){if(Q(le(t))){Y="atom";return"block"}}if(t.string.match(new RegExp("\\[\\s*"+i+"|"+i+"\\s*\\]"))){Y="atom";return"block"}if(y.test(i)){if(ne(t)&&t.string.match(/=/)||!ne(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!M(le(t))){Y="variable";if(V(le(t)))return"block";return G(r,t,"block",0)}}if(oe(t))return G(r,t,"block")}if(Y=="block-keyword"){Y="keyword";if(t.current(/(if|unless)/)&&!ne(t)){return"block"}return G(r,t,"block")}if(i=="return")return G(r,t,"block",0);if(Y=="variable"&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)){return G(r,t,"block")}}return r.context.type};A.parens=function(e,t,r){if(e=="(")return G(r,t,"parens");if(e==")"){if(r.context.prev.type=="parens"){return H(r,t)}if(t.string.match(/^[a-z][\w-]*\(/i)&&oe(t)||V(le(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(le(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&M(le(t))){return G(r,t,"block")}if(t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)){return G(r,t,"block",0)}if(oe(t))return G(r,t,"block");else return G(r,t,"block",0)}if(e&&e.charAt(0)=="@"&&Q(t.current().slice(1))){Y="variable"}if(e=="word"){var i=t.current();Y=te(i);if(Y=="tag"&&y.test(i)){Y="variable"}if(Y=="property"||i=="to")Y="atom"}if(e=="variable-name"){return G(r,t,"variableName")}if(ae(e,t)){return G(r,t,"pseudo")}return r.context.type};A.vendorPrefixes=function(e,t,r){if(e=="word"){Y="property";return G(r,t,"block",0)}return H(r,t)};A.pseudo=function(e,t,r){if(!Q(le(t.string))){t.match(/^[a-z-]+/);Y="variableName.special";if(oe(t))return G(r,t,"block");return H(r,t)}return K(e,t,r)};A.atBlock=function(e,t,r){if(e=="(")return G(r,t,"atBlock_parens");if(re(e,t)){return G(r,t,"block")}if(ie(e,t)){return G(r,t,"interpolation")}if(e=="word"){var i=t.current().toLowerCase();if(/^(only|not|and|or)$/.test(i))Y="keyword";else if($.hasOwnProperty(i))Y="tag";else if(C.hasOwnProperty(i))Y="attribute";else if(B.hasOwnProperty(i))Y="property";else if(z.hasOwnProperty(i))Y="string.special";else Y=te(t.current());if(Y=="tag"&&oe(t)){return G(r,t,"block")}}if(e=="operator"&&/^(not|and|or)$/.test(t.current())){Y="keyword"}return r.context.type};A.atBlock_parens=function(e,t,r){if(e=="{"||e=="}")return r.context.type;if(e==")"){if(oe(t))return G(r,t,"block");else return G(r,t,"atBlock")}if(e=="word"){var i=t.current().toLowerCase();Y=te(i);if(/^(max|min)/.test(i))Y="property";if(Y=="tag"){y.test(i)?Y="variable":Y="atom"}return r.context.type}return A.atBlock(e,t,r)};A.keyframes=function(e,t,r){if(t.indentation()=="0"&&(e=="}"&&ne(t)||e=="]"||e=="hash"||e=="qualifier"||M(t.current()))){return K(e,t,r)}if(e=="{")return G(r,t,"keyframes");if(e=="}"){if(ne(t))return H(r,t,true);else return G(r,t,"keyframes")}if(e=="unit"&&/^[0-9]+\%$/.test(t.current())){return G(r,t,"keyframes")}if(e=="word"){Y=te(t.current());if(Y=="block-keyword"){Y="keyword";return G(r,t,"keyframes")}}if(/@(font-face|media|supports|(-moz-)?document)/.test(e)){return G(r,t,oe(t)?"block":"atBlock")}if(e=="mixin"){return G(r,t,"block",0)}return r.context.type};A.interpolation=function(e,t,r){if(e=="{")H(r,t)&&G(r,t,"block");if(e=="}"){if(t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&M(le(t))){return G(r,t,"block")}if(!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,false)){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="variable-name"){return G(r,t,"variableName",0)}if(e=="word"){Y=te(t.current());if(Y=="tag")Y="atom"}return r.context.type};A.extend=function(e,t,r){if(e=="["||e=="=")return"extend";if(e=="]")return H(r,t);if(e=="word"){Y=te(t.current());return"extend"}return H(r,t)};A.variableName=function(e,t,r){if(e=="string"||e=="["||e=="]"||t.current().match(/^(\.|\$)/)){if(t.current().match(/^\.[\w-]+/i))Y="variable";return"variableName"}return K(e,t,r)};const se={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new I("block",0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;S=(t.tokenize||Z)(e,t);if(S&&typeof S=="object"){X=S[1];S=S[0]}Y=S;t.state=A[t.state](X,e,t);return Y},indent:function(e,t,r){var i=e.context,a=t&&t.charAt(0),n=i.indent,o=le(t),l=i.line.indent,s=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:l;if(i.prev&&(a=="}"&&(i.type=="block"||i.type=="atBlock"||i.type=="keyframes")||a==")"&&(i.type=="parens"||i.type=="atBlock_parens")||a=="{"&&i.type=="at")){n=i.indent-r.unit}else if(!/(\})/.test(a)){if(/@|\$|\d/.test(a)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(s)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||V(o)){n=l}else if(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(a)||M(o)){if(/\,\s*$/.test(s)){n=c}else if(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(s)||M(s)){n=l<=c?c:c+r.unit}else{n=l}}else if(!/,\s*$/.test(t)&&(ee(o)||Q(o))){if(V(s)){n=l<=c?c:c+r.unit}else if(/^\{/.test(s)){n=l<=c?l:c+r.unit}else if(ee(s)||Q(s)){n=l>=c?c:l}else if(/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(s)||/=\s*$/.test(s)||M(s)||/^\$[\w-\.\[\]\'\"]/.test(s)){n=c+r.unit}else{n=l}}}return n},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:b}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4528.43328125d98d6cfdfa99.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4528.43328125d98d6cfdfa99.js new file mode 100644 index 0000000000000000000000000000000000000000..85d19a1666ac9378341a12abe96182438460ff75 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4528.43328125d98d6cfdfa99.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4528],{24528:(e,t,n)=>{n.r(t);n.d(t,{c:()=>D,ceylon:()=>V,clike:()=>s,cpp:()=>z,csharp:()=>M,dart:()=>H,java:()=>L,kotlin:()=>O,nesC:()=>A,objectiveC:()=>U,objectiveCpp:()=>$,scala:()=>P,shader:()=>j,squirrel:()=>B});function r(e,t,n,r,a,i){this.indented=e;this.column=t;this.type=n;this.info=r;this.align=a;this.prev=i}function a(e,t,n,a){var i=e.indented;if(e.context&&e.context.type=="statement"&&n!="statement")i=e.context.indented;return e.context=new r(i,t,n,a,null,e.context)}function i(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}function o(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type")return true;if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n)))return true;if(t.typeAtEndOfLine&&e.column()==e.indentation())return true}function l(e){for(;;){if(!e||e.type=="top")return true;if(e.type=="}"&&e.prev.info!="namespace")return false;e=e.prev}}function s(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,s=e.keywords||{},c=e.types||{},f=e.builtin||{},d=e.blockKeywords||{},p=e.defKeywords||{},m=e.atoms||{},h=e.hooks||{},y=e.multiLineStrings,g=e.indentStatements!==false,k=e.indentSwitch!==false,b=e.namespaceSeparator,w=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,v=e.numberStart||/[\d\.]/,_=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,x=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,S=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=e.isReservedIdentifier||false;var N,C;function I(e,t){var n=e.next();if(h[n]){var r=h[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"){t.tokenize=D(n);return t.tokenize(e,t)}if(v.test(n)){e.backUp(1);if(e.match(_))return"number";e.next()}if(w.test(n)){N=n;return null}if(n=="/"){if(e.eat("*")){t.tokenize=z;return z(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(x.test(n)){while(!e.match(/^\/[\/*]/,false)&&e.eat(x)){}return"operator"}e.eatWhile(S);if(b)while(e.match(b))e.eatWhile(S);var a=e.current();if(u(s,a)){if(u(d,a))N="newstatement";if(u(p,a))C=true;return"keyword"}if(u(c,a))return"type";if(u(f,a)||T&&T(a)){if(u(d,a))N="newstatement";return"builtin"}if(u(m,a))return"atom";return"variable"}function D(e){return function(t,n){var r=false,a,i=false;while((a=t.next())!=null){if(a==e&&!r){i=true;break}r=!r&&a=="\\"}if(i||!(r||y))n.tokenize=null;return"string"}}function z(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function L(t,n){if(e.typeFirstDefinitions&&t.eol()&&l(n.context))n.typeAtEndOfLine=o(t,n,t.pos)}return{name:e.name,startState:function(e){return{tokenize:null,context:new r(-e,0,"top",null,false),indented:0,startOfLine:true,prevToken:null}},token:function(t,n){var r=n.context;if(t.sol()){if(r.align==null)r.align=false;n.indented=t.indentation();n.startOfLine=true}if(t.eatSpace()){L(t,n);return null}N=C=null;var s=(n.tokenize||I)(t,n);if(s=="comment"||s=="meta")return s;if(r.align==null)r.align=true;if(N==";"||N==":"||N==","&&t.match(/^\s*(?:\/\/.*)?$/,false))while(n.context.type=="statement")i(n);else if(N=="{")a(n,t.column(),"}");else if(N=="[")a(n,t.column(),"]");else if(N=="(")a(n,t.column(),")");else if(N=="}"){while(r.type=="statement")r=i(n);if(r.type=="}")r=i(n);while(r.type=="statement")r=i(n)}else if(N==r.type)i(n);else if(g&&((r.type=="}"||r.type=="top")&&N!=";"||r.type=="statement"&&N=="newstatement")){a(n,t.column(),"statement",t.current())}if(s=="variable"&&(n.prevToken=="def"||e.typeFirstDefinitions&&o(t,n,t.start)&&l(n.context)&&t.match(/^\s*\(/,false)))s="def";if(h.token){var c=h.token(t,n,s);if(c!==undefined)s=c}if(s=="def"&&e.styleDefs===false)s="variable";n.startOfLine=false;n.prevToken=C?"def":s||N;L(t,n);return s},indent:function(r,a,i){if(r.tokenize!=I&&r.tokenize!=null||r.typeAtEndOfLine&&l(r.context))return null;var o=r.context,s=a&&a.charAt(0);var c=s==o.type;if(o.type=="statement"&&s=="}")o=o.prev;if(e.dontIndentStatements)while(o.type=="statement"&&e.dontIndentStatements.test(o.info))o=o.prev;if(h.indent){var u=h.indent(r,o,a,i.unit);if(typeof u=="number")return u}var f=o.prev&&o.prev.info=="switch";if(e.allmanIndentation&&/[{(]/.test(s)){while(o.type!="top"&&o.type!="}")o=o.prev;return o.indented}if(o.type=="statement")return o.indented+(s=="{"?0:t||i.unit);if(o.align&&(!n||o.type!=")"))return o.column+(c?0:1);if(o.type==")"&&!c)return o.indented+(t||i.unit);return o.indented+(c?0:i.unit)+(!c&&f&&!/^(?:case|default)\b/.test(a)?i.unit:0)},languageData:{indentOnInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(s).concat(Object.keys(c)).concat(Object.keys(f)).concat(Object.keys(m)),...e.languageData}}}function c(e){var t={},n=e.split(" ");for(var r=0;r!?|\/#:@]/,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){if(!e.match('""'))return false;t.tokenize=E;return t.tokenize(e,t)},"'":function(e){if(e.match(/^(\\[^'\s]+|[^\\'])'/))return"character";e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(e,t){var n=t.context;if(n.type=="}"&&n.align&&e.eat(">")){t.context=new r(n.indented,n.column,n.type,n.info,null,n.prev);return"operator"}else{return false}},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function R(e){return function(t,n){var r=false,a,i=false;while(!t.eol()){if(!e&&!r&&t.match('"')){i=true;break}if(e&&t.match('"""')){i=true;break}a=t.next();if(!r&&a=="$"&&t.match("{"))t.skipTo("}");r=!r&&a=="\\"&&!e}if(i||!e)n.tokenize=null;return"string"}}const O=s({name:"kotlin",keywords:c("package as typealias class interface this super val operator "+"var fun for is in This throw return annotation "+"break continue object if else while do try when !in !is as? "+"file import where by get set abstract enum open inner override private public internal "+"protected catch finally out final vararg reified dynamic companion constructor init "+"sealed field property receiver param sparam lateinit data inline noinline tailrec "+"external annotation crossinline const operator infix suspend actual expect setparam"),types:c("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable "+"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process "+"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String "+"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray "+"ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy "+"LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:false,indentStatements:false,multiLineStrings:true,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:c("catch class do else finally for if where try while enum"),defKeywords:c("class val var object interface fun"),atoms:c("true false null this"),hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},"*":function(e,t){return t.prevToken=="."?"variable":"operator"},'"':function(e,t){t.tokenize=R(e.match('""'));return t.tokenize(e,t)},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)},indent:function(e,t,n,r){var a=n&&n.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&n=="")return e.indented;if(e.prevToken=="operator"&&n!="}"&&e.context.type!="}"||e.prevToken=="variable"&&a=="."||(e.prevToken=="}"||e.prevToken==")")&&a==".")return r*2+t.indented;if(t.align&&t.type=="}")return t.indented+(e.context.type==(n||"").charAt(0)?0:r)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});const j=s({name:"shader",keywords:c("sampler1D sampler2D sampler3D samplerCube "+"sampler1DShadow sampler2DShadow "+"const attribute uniform varying "+"break continue discard return "+"for while do if else struct "+"in out inout"),types:c("float int bool void "+"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 "+"mat2 mat3 mat4"),blockKeywords:c("for while do if else struct"),builtin:c("radians degrees sin cos tan asin acos atan "+"pow exp log exp2 sqrt inversesqrt "+"abs sign floor ceil fract mod min max clamp mix step smoothstep "+"length distance dot cross normalize ftransform faceforward "+"reflect refract matrixCompMult "+"lessThan lessThanEqual greaterThan greaterThanEqual "+"equal notEqual any all not "+"texture1D texture1DProj texture1DLod texture1DProjLod "+"texture2D texture2DProj texture2DLod texture2DProjLod "+"texture3D texture3DProj texture3DLod texture3DProjLod "+"textureCube textureCubeLod "+"shadow1D shadow2D shadow1DProj shadow2DProj "+"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod "+"dFdx dFdy fwidth "+"noise1 noise2 noise3 noise4"),atoms:c("true false "+"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex "+"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 "+"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 "+"gl_FogCoord gl_PointCoord "+"gl_Position gl_PointSize gl_ClipVertex "+"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor "+"gl_TexCoord gl_FogFragCoord "+"gl_FragCoord gl_FrontFacing "+"gl_FragData gl_FragDepth "+"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix "+"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse "+"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse "+"gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose "+"gl_ProjectionMatrixInverseTranspose "+"gl_ModelViewProjectionMatrixInverseTranspose "+"gl_TextureMatrixInverseTranspose "+"gl_NormalScale gl_DepthRange gl_ClipPlane "+"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel "+"gl_FrontLightModelProduct gl_BackLightModelProduct "+"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ "+"gl_FogParameters "+"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords "+"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats "+"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits "+"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits "+"gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":v}});const A=s({name:"nesc",keywords:c(f+" as atomic async call command component components configuration event generic "+"implementation includes interface module new norace nx_struct nx_union post provides "+"signal task uses abstract extends"),types:g,blockKeywords:c(b),atoms:c("null true false"),hooks:{"#":v}});const U=s({name:"objectivec",keywords:c(f+" "+p),types:k,builtin:c(m),blockKeywords:c(b+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:c(w+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:true,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":v,"*":_}});const $=s({name:"objectivecpp",keywords:c(f+" "+p+" "+d),types:k,builtin:c(m),blockKeywords:c(b+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:c(w+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:true,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":v,"*":_,u:T,U:T,L:T,R:T,0:S,1:S,2:S,3:S,4:S,5:S,6:S,7:S,8:S,9:S,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&N(e.current()))return"def"}},namespaceSeparator:"::"});const B=s({name:"squirrel",keywords:c("base break clone continue const default delete enum extends function in class"+" foreach local resume return this throw typeof yield constructor instanceof static"),types:g,blockKeywords:c("case catch class else for foreach if switch try while"),defKeywords:c("function local class"),typeFirstDefinitions:true,atoms:c("true false null"),hooks:{"#":v}});var K=null;function q(e){return function(t,n){var r=false,a,i=false;while(!t.eol()){if(!r&&t.match('"')&&(e=="single"||t.match('""'))){i=true;break}if(!r&&t.match("``")){K=q(e);i=true;break}a=t.next();r=e=="single"&&!r&&a=="\\"}if(i)n.tokenize=null;return"string"}}const V=s({name:"ceylon",keywords:c("abstracts alias assembly assert assign break case catch class continue dynamic else"+" exists extends finally for function given if import in interface is let module new"+" nonempty object of out outer package return satisfies super switch then this throw"+" try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:c("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:c("class dynamic function interface module object package value"),builtin:c("abstract actual aliased annotation by default deprecated doc final formal late license"+" native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:c("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){t.tokenize=q(e.match('""')?"triple":"single");return t.tokenize(e,t)},"`":function(e,t){if(!K||!e.match("`"))return false;t.tokenize=K;K=null;return t.tokenize(e,t)},"'":function(e){if(e.match(/^(\\[^'\s]+|[^\\'])'/))return"string.special";e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken=="."){return"variableName.special"}}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function W(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function G(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function Z(e){return e.interpolationStack?e.interpolationStack.length:0}function Q(e,t,n,r){var a=false;if(t.eat(e)){if(t.eat(e))a=true;else return"string"}function i(t,n){var i=false;while(!t.eol()){if(!r&&!i&&t.peek()=="$"){W(n);n.tokenize=X;return"string"}var o=t.next();if(o==e&&!i&&(!a||t.match(e+e))){n.tokenize=null;break}i=!r&&!i&&o=="\\"}return"string"}n.tokenize=i;return i(t,n)}function X(e,t){e.eat("$");if(e.eat("{")){t.tokenize=null}else{t.tokenize=Y}return null}function Y(e,t){e.eatWhile(/[\w_]/);t.tokenize=G(t);return"variable"}const H=s({name:"dart",keywords:c("this super static final const abstract class extends external factory "+"implements mixin get native set typedef with enum throw rethrow assert break case "+"continue default in return new deferred async await covariant try catch finally "+"do else for if switch while import library export part of show hide is as extension "+"on yield late required sealed base interface when inline"),blockKeywords:c("try catch finally do else for if switch while"),builtin:c("void bool num int double dynamic var String Null Never"),atoms:c("true false null"),number:/^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,hooks:{"@":function(e){e.eatWhile(/[\w\$_\.]/);return"meta"},"'":function(e,t){return Q("'",e,t,false)},'"':function(e,t){return Q('"',e,t,false)},r:function(e,t){var n=e.peek();if(n=="'"||n=='"'){return Q(e.next(),e,t,true)}return false},"}":function(e,t){if(Z(t)>0){t.tokenize=G(t);return null}return false},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)},token:function(e,t,n){if(n=="variable"){var r=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(r.test(e.current())){return"type"}}}}})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4616.04cfbd55593c51921cc7.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4616.04cfbd55593c51921cc7.js new file mode 100644 index 0000000000000000000000000000000000000000..0633b21e030355f936b044fcb9af49f9501806df --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4616.04cfbd55593c51921cc7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4616],{44616:(e,t,n)=>{n.r(t);n.d(t,{ruby:()=>b});function r(e){var t={};for(var n=0,r=e.length;n]/)){e.eat(/[\<\>]/);return"atom"}if(e.eat(/[\+\-\*\/\&\|\:\!]/)){return"atom"}if(e.eat(/[a-zA-Z$@_\xa1-\uffff]/)){e.eatWhile(/[\w$\xa1-\uffff]/);e.eat(/[\?\!\=]/);return"atom"}return"operator"}else if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/)){e.eat("@");e.eatWhile(/[\w\xa1-\uffff]/);return"propertyName"}else if(n=="$"){if(e.eat(/[a-zA-Z_]/)){e.eatWhile(/[\w]/)}else if(e.eat(/\d/)){e.eat(/\d/)}else{e.next()}return"variableName.special"}else if(/[a-zA-Z_\xa1-\uffff]/.test(n)){e.eatWhile(/[\w\xa1-\uffff]/);e.eat(/[\?\!]/);if(e.eat(":"))return"atom";return"variable"}else if(n=="|"&&(t.varList||t.lastTok=="{"||t.lastTok=="do")){s="|";return null}else if(/[\(\)\[\]{}\\;]/.test(n)){s=n;return null}else if(n=="-"&&e.eat(">")){return"operator"}else if(/[=+\-\/*:\.^%<>~|]/.test(n)){var o=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);if(n=="."&&!o)s=".";return"operator"}else{return null}}function d(e){var t=e.pos,n=0,r,i=false,a=false;while((r=e.next())!=null){if(!a){if("[{(".indexOf(r)>-1){n++}else if("]})".indexOf(r)>-1){n--;if(n<0)break}else if(r=="/"&&n==0){i=true;break}a=r=="\\"}else{a=false}}e.backUp(e.pos-t);return i}function k(e){if(!e)e=1;return function(t,n){if(t.peek()=="}"){if(e==1){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}else{n.tokenize[n.tokenize.length-1]=k(e-1)}}else if(t.peek()=="{"){n.tokenize[n.tokenize.length-1]=k(e+1)}return p(t,n)}}function h(){var e=false;return function(t,n){if(e){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}e=true;return p(t,n)}}function m(e,t,n,r){return function(i,a){var l=false,o;if(a.context.type==="read-quoted-paused"){a.context=a.context.prev;i.eat("}")}while((o=i.next())!=null){if(o==e&&(r||!l)){a.tokenize.pop();break}if(n&&o=="#"&&!l){if(i.eat("{")){if(e=="}"){a.context={prev:a.context,type:"read-quoted-paused"}}a.tokenize.push(k());break}else if(/[@\$]/.test(i.peek())){a.tokenize.push(h());break}}l=!l&&o=="\\"}return t}}function v(e,t){return function(n,r){if(t)n.eatSpace();if(n.match(e))r.tokenize.pop();else n.skipToEnd();return"string"}}function _(e,t){if(e.sol()&&e.match("=end")&&e.eol())t.tokenize.pop();e.skipToEnd();return"comment"}const b={name:"ruby",startState:function(e){return{tokenize:[p],indented:0,context:{type:"top",indented:-e},continuedLine:false,lastTok:null,varList:false}},token:function(e,t){s=null;if(e.sol())t.indented=e.indentation();var n=t.tokenize[t.tokenize.length-1](e,t),r;var i=s;if(n=="variable"){var f=e.current();n=t.lastTok=="."?"property":a.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(f)?"tag":t.lastTok=="def"||t.lastTok=="class"||t.varList?"def":"variable";if(n=="keyword"){i=f;if(l.propertyIsEnumerable(f))r="indent";else if(o.propertyIsEnumerable(f))r="dedent";else if((f=="if"||f=="unless")&&e.column()==e.indentation())r="indent";else if(f=="do"&&t.context.indented + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/492.5f186062d2dcdf79c86c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/492.5f186062d2dcdf79c86c.js new file mode 100644 index 0000000000000000000000000000000000000000..9da2571fb454e15f284d4425e736d9228235c9ed --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/492.5f186062d2dcdf79c86c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[492],{30492:(e,t,r)=>{r.r(t);r.d(t,{vb:()=>O});var n="error";function a(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]");var o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]");var c=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");var u=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");var l=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");var s=new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var f=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"];var d=["else","elseif","case","catch","finally"];var h=["next","loop"];var m=["and","andalso","or","orelse","xor","in","not","is","isnot","like"];var v=a(m);var p=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"];var b=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"];var g=a(p);var y=a(b);var k='"';var w=a(f);var x=a(d);var I=a(h);var z=a(["end"]);var L=a(["do"]);var E=null;function _(e,t){t.currentIndent++}function C(e,t){t.currentIndent--}function R(e,t){if(e.eatSpace()){return null}var r=e.peek();if(r==="'"){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,false)){var a=false;if(e.match(/^\d*\.\d+F?/i)){a=true}else if(e.match(/^\d+\.\d*F?/)){a=true}else if(e.match(/^\.\d+F?/)){a=true}if(a){e.eat(/J/i);return"number"}var f=false;if(e.match(/^&H[0-9a-f]+/i)){f=true}else if(e.match(/^&O[0-7]+/i)){f=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);f=true}else if(e.match(/^0(?![\dx])/i)){f=true}if(f){e.eat(/L/i);return"number"}}if(e.match(k)){t.tokenize=j(e.current());return t.tokenize(e,t)}if(e.match(l)||e.match(u)){return null}if(e.match(c)||e.match(i)||e.match(v)){return"operator"}if(e.match(o)){return null}if(e.match(L)){_(e,t);t.doInCurrentLine=true;return"keyword"}if(e.match(w)){if(!t.doInCurrentLine)_(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(x)){return"keyword"}if(e.match(z)){C(e,t);C(e,t);return"keyword"}if(e.match(I)){C(e,t);return"keyword"}if(e.match(y)){return"keyword"}if(e.match(g)){return"keyword"}if(e.match(s)){return"variable"}e.next();return n}function j(e){var t=e.length==1;var r="string";return function(n,a){while(!n.eol()){n.eatWhile(/[^'"]/);if(n.match(e)){a.tokenize=R;return r}else{n.eat(/['"]/)}}if(t){a.tokenize=R}return r}}function F(e,t){var r=t.tokenize(e,t);var a=e.current();if(a==="."){r=t.tokenize(e,t);if(r==="variable"){return"variable"}else{return n}}var i="[({".indexOf(a);if(i!==-1){_(e,t)}if(E==="dedent"){if(C(e,t)){return n}}i="])}".indexOf(a);if(i!==-1){if(C(e,t)){return n}}return r}const O={name:"vb",startState:function(){return{tokenize:R,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var r=F(e,t);t.lastToken={style:r,content:e.current()};return r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(I)||n.match(z)||n.match(x))return r.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:f.concat(d).concat(h).concat(m).concat(p).concat(b)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4928.6cb408e4def87534970d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4928.6cb408e4def87534970d.js new file mode 100644 index 0000000000000000000000000000000000000000..ce15d828d75a3a8c22258ec475c64e6ebd10440a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4928.6cb408e4def87534970d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4928],{28499:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractFindMath=void 0;var i=r(34981);var n=function(){function t(t){var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t)}t.OPTIONS={};return t}();e.AbstractFindMath=n},77137:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractInputJax=void 0;var i=r(34981);var n=r(43899);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;this.mmlFactory=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.preFilters=new n.FunctionList;this.postFilters=new n.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.setMmlFactory=function(t){this.mmlFactory=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e{Object.defineProperty(e,"__esModule",{value:true});e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function r(t,e,r,i,n,o,a){if(a===void 0){a=null}var s={open:t,math:e,close:r,n:i,start:{n},end:{n:o},display:a};return s}e.protoItem=r;var i=function(){function t(t,r,i,n,o){if(i===void 0){i=true}if(n===void 0){n={i:0,n:0,delim:""}}if(o===void 0){o={i:0,n:0,delim:""}}this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={};this._state=e.STATE.UNPROCESSED;this.math=t;this.inputJax=r;this.display=i;this.start=n;this.end=o;this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={}}Object.defineProperty(t.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:false,configurable:true});t.prototype.render=function(t){t.renderActions.renderMath(this,t)};t.prototype.rerender=function(t,r){if(r===void 0){r=e.STATE.RERENDER}if(this.state()>=r){this.state(r-1)}t.renderActions.renderMath(this,t,r)};t.prototype.convert=function(t,r){if(r===void 0){r=e.STATE.LAST}t.renderActions.renderConvert(this,t,r)};t.prototype.compile=function(t){if(this.state()=e.STATE.INSERTED){this.removeFromDocument(r)}if(t=e.STATE.TYPESET){this.outputData={}}if(t=e.STATE.COMPILED){this.inputData={}}this._state=t}return this._state};t.prototype.reset=function(t){if(t===void 0){t=false}this.state(e.STATE.UNPROCESSED,t)};return t}();e.AbstractMathItem=i;e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function n(t,r){if(t in e.STATE){throw Error("State "+t+" already exists")}e.STATE[t]=r}e.newState=n},4928:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.TeX=void 0;var s=r(77137);var u=r(34981);var l=r(12787);var f=a(r(73525));var c=a(r(72691));var p=a(r(75845));var d=a(r(98770));var h=a(r(24404));var v=r(17782);var y=r(56441);r(11252);var m=function(t){i(e,t);function e(r){if(r===void 0){r={}}var i=this;var n=o((0,u.separateOptions)(r,e.OPTIONS,l.FindTeX.OPTIONS),3),a=n[0],s=n[1],c=n[2];i=t.call(this,s)||this;i.findTeX=i.options["FindTeX"]||new l.FindTeX(c);var p=i.options.packages;var d=i.configuration=e.configure(p);var y=i._parseOptions=new h.default(d,[i.options,v.TagsFactory.OPTIONS]);(0,u.userOptions)(y.options,a);d.config(i);e.tags(y,d);i.postFilters.add(f.default.cleanSubSup,-6);i.postFilters.add(f.default.setInherited,-5);i.postFilters.add(f.default.moveLimits,-4);i.postFilters.add(f.default.cleanStretchy,-3);i.postFilters.add(f.default.cleanAttributes,-2);i.postFilters.add(f.default.combineRelations,-1);return i}e.configure=function(t){var e=new y.ParserConfiguration(t,["tex"]);e.init();return e};e.tags=function(t,e){v.TagsFactory.addTags(e.tags);v.TagsFactory.setDefault(t.options.tags);t.tags=v.TagsFactory.getDefault();t.tags.configuration=t};e.prototype.setMmlFactory=function(e){t.prototype.setMmlFactory.call(this,e);this._parseOptions.nodeFactory.setMmlFactory(e)};Object.defineProperty(e.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:false,configurable:true});e.prototype.reset=function(t){if(t===void 0){t=0}this.parseOptions.tags.reset(t)};e.prototype.compile=function(t,e){this.parseOptions.clear();this.executeFilters(this.preFilters,t,e,this.parseOptions);var r=t.display;this.latex=t.math;var i;this.parseOptions.tags.startEquation(t);var n;try{var o=new p.default(this.latex,{display:r,isInner:false},this.parseOptions);i=o.mml();n=o.stack.global}catch(a){if(!(a instanceof d.default)){throw a}this.parseOptions.error=true;i=this.options.formatError(this,a)}i=this.parseOptions.nodeFactory.create("node","math",[i]);if(n===null||n===void 0?void 0:n.indentalign){c.default.setAttribute(i,"indentalign",n.indentalign)}if(r){c.default.setAttribute(i,"display","block")}this.parseOptions.tags.finishEquation(t);this.parseOptions.root=i;this.executeFilters(this.postFilters,t,e,this.parseOptions);this.mathNode=this.parseOptions.root;return this.mathNode};e.prototype.findMath=function(t){return this.findTeX.findMath(t)};e.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)};e.NAME="TeX";e.OPTIONS=n(n({},s.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5*1024,formatError:function(t,e){return t.formatError(e)}});return e}(s.AbstractInputJax);e.TeX=m},73525:function(t,e,r){var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var o=r(80747);var a=n(r(72691));var s;(function(t){t.cleanStretchy=function(t){var e,r;var n=t.data;try{for(var o=i(n.getList("fixStretchy")),s=o.next();!s.done;s=o.next()){var u=s.value;if(a.default.getProperty(u,"fixStretchy")){var l=a.default.getForm(u);if(l&&l[3]&&l[3]["stretchy"]){a.default.setAttribute(u,"stretchy",false)}var f=u.parent;if(!a.default.getTexClass(u)&&(!l||!l[2])){var c=n.nodeFactory.create("node","TeXAtom",[u]);f.replaceChild(c,u);c.inheritAttributesFrom(u)}a.default.removeProperties(u,"fixStretchy")}}}catch(p){e={error:p}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}};t.cleanAttributes=function(t){var e=t.data.root;e.walkTree((function(t,e){var r,n;var o=t.attributes;if(!o){return}var a=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var s=i(o.getExplicitNames()),u=s.next();!u.done;u=s.next()){var l=u.value;if(!a.has(l)&&o.attributes[l]===t.attributes.getInherited(l)){delete o.attributes[l]}}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}}),{})};t.combineRelations=function(t){var n,s,u,l;var f=[];try{for(var c=i(t.data.getList("mo")),p=c.next();!p.done;p=c.next()){var d=p.value;if(d.getProperty("relationsCombined")||!d.parent||d.parent&&!a.default.isType(d.parent,"mrow")||a.default.getTexClass(d)!==o.TEXCLASS.REL){continue}var h=d.parent;var v=void 0;var y=h.childNodes;var m=y.indexOf(d)+1;var b=a.default.getProperty(d,"variantForm");while(m0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.FindTeX=void 0;var o=r(28499);var a=r(41278);var s=r(24971);var u=function(t){i(e,t);function e(e){var r=t.call(this,e)||this;r.getPatterns();return r}e.prototype.getPatterns=function(){var t=this;var e=this.options;var r=[],i=[],n=[];this.end={};this.env=this.sub=0;var o=1;e["inlineMath"].forEach((function(e){return t.addPattern(r,e,false)}));e["displayMath"].forEach((function(e){return t.addPattern(r,e,true)}));if(r.length){i.push(r.sort(a.sortLength).join("|"))}if(e["processEnvironments"]){i.push("\\\\begin\\s*\\{([^}]*)\\}");this.env=o;o++}if(e["processEscapes"]){n.push("\\\\([\\\\$])")}if(e["processRefs"]){n.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})")}if(n.length){i.push("("+n.join("|")+")");this.sub=o}this.start=new RegExp(i.join("|"),"g");this.hasPatterns=i.length>0};e.prototype.addPattern=function(t,e,r){var i=n(e,2),o=i[0],s=i[1];t.push((0,a.quotePattern)(o));this.end[o]=[s,r,this.endPattern(s)]};e.prototype.endPattern=function(t,e){return new RegExp((e||(0,a.quotePattern)(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")};e.prototype.findEnd=function(t,e,r,i){var o=n(i,3),a=o[0],u=o[1],l=o[2];var f=l.lastIndex=r.index+r[0].length;var c,p=0;while(c=l.exec(t)){if((c[1]||c[0])===a&&p===0){return(0,s.protoItem)(r[0],t.substr(f,c.index-f),c[0],e,r.index,c.index+c[0].length,u)}else if(c[0]==="{"){p++}else if(c[0]==="}"&&p){p--}}return null};e.prototype.findMathInString=function(t,e,r){var i,n;this.start.lastIndex=0;while(i=this.start.exec(r)){if(i[this.env]!==undefined&&this.env){var o="\\\\end\\s*(\\{"+(0,a.quotePattern)(i[this.env])+"\\})";n=this.findEnd(r,e,i,["{"+i[this.env]+"}",true,this.endPattern(null,o)]);if(n){n.math=n.open+n.math+n.close;n.open=n.close=""}}else if(i[this.sub]!==undefined&&this.sub){var u=i[this.sub];var o=i.index+i[this.sub].length;if(u.length===2){n=(0,s.protoItem)("",u.substr(1),"",e,i.index,o)}else{n=(0,s.protoItem)("",u,"",e,i.index,o,false)}}else{n=this.findEnd(r,e,i,this.end[i[0]])}if(n){t.push(n);this.start.lastIndex=n.end.n}}};e.prototype.findMath=function(t){var e=[];if(this.hasPatterns){for(var r=0,i=t.length;r{n.d(e,{CP:()=>c,HT:()=>u,PB:()=>h,aC:()=>l,lC:()=>s,m:()=>o,tk:()=>a});var r=n(75905);var i=n(16750);var a=(0,r.K2)(((t,e)=>{const n=t.append("rect");n.attr("x",e.x);n.attr("y",e.y);n.attr("fill",e.fill);n.attr("stroke",e.stroke);n.attr("width",e.width);n.attr("height",e.height);if(e.name){n.attr("name",e.name)}if(e.rx){n.attr("rx",e.rx)}if(e.ry){n.attr("ry",e.ry)}if(e.attrs!==void 0){for(const t in e.attrs){n.attr(t,e.attrs[t])}}if(e.class){n.attr("class",e.class)}return n}),"drawRect");var s=(0,r.K2)(((t,e)=>{const n={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};const r=a(t,n);r.lower()}),"drawBackgroundRect");var o=(0,r.K2)(((t,e)=>{const n=e.text.replace(r.H1," ");const i=t.append("text");i.attr("x",e.x);i.attr("y",e.y);i.attr("class","legend");i.style("text-anchor",e.anchor);if(e.class){i.attr("class",e.class)}const a=i.append("tspan");a.attr("x",e.x+e.textMargin*2);a.text(n);return i}),"drawText");var l=(0,r.K2)(((t,e,n,r)=>{const a=t.append("image");a.attr("x",e);a.attr("y",n);const s=(0,i.J)(r);a.attr("xlink:href",s)}),"drawImage");var c=(0,r.K2)(((t,e,n,r)=>{const a=t.append("use");a.attr("x",e);a.attr("y",n);const s=(0,i.J)(r);a.attr("xlink:href",`#${s}`)}),"drawEmbeddedImage");var h=(0,r.K2)((()=>{const t={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};return t}),"getNoteRect");var u=(0,r.K2)((()=>{const t={x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:true};return t}),"getTextObj")},85135:(t,e,n)=>{n.d(e,{diagram:()=>J});var r=n(60148);var i=n(75905);var a=n(24982);var s=function(){var t=(0,i.K2)((function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n}),"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],a=[1,11],s=[1,12],o=[1,13],l=[1,14];var c={trace:(0,i.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,i.K2)((function t(e,n,r,i,a,s,o){var l=s.length-1;switch(a){case 1:return s[l-1];break;case 2:this.$=[];break;case 3:s[l-1].push(s[l]);this.$=s[l-1];break;case 4:case 5:this.$=s[l];break;case 6:case 7:this.$=[];break;case 8:i.setDiagramTitle(s[l].substr(6));this.$=s[l].substr(6);break;case 9:this.$=s[l].trim();i.setAccTitle(this.$);break;case 10:case 11:this.$=s[l].trim();i.setAccDescription(this.$);break;case 12:i.addSection(s[l].substr(8));this.$=s[l].substr(8);break;case 13:i.addTask(s[l-1],s[l]);this.$="task";break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:a,16:s,17:o,18:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:r,14:a,16:s,17:o,18:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,i.K2)((function t(e,n){if(n.recoverable){this.trace(e)}else{var r=new Error(e);r.hash=n;throw r}}),"parseError"),parse:(0,i.K2)((function t(e){var n=this,r=[0],a=[],s=[null],o=[],l=this.table,c="",h=0,u=0,y=0,p=2,f=1;var d=o.slice.call(arguments,1);var g=Object.create(this.lexer);var x={yy:{}};for(var m in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,m)){x.yy[m]=this.yy[m]}}g.setInput(e,x.yy);x.yy.lexer=g;x.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var k=g.yylloc;o.push(k);var b=g.options&&g.options.ranges;if(typeof x.yy.parseError==="function"){this.parseError=x.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){r.length=r.length-2*t;s.length=s.length-t;o.length=o.length-t}(0,i.K2)(v,"popStack");function _(){var t;t=a.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){a=t;t=a.pop()}t=n.symbols_[t]||t}return t}(0,i.K2)(_,"lex");var w,K,$,T,M,S,E={},I,P,C,A;while(true){$=r[r.length-1];if(this.defaultActions[$]){T=this.defaultActions[$]}else{if(w===null||typeof w=="undefined"){w=_()}T=l[$]&&l[$][w]}if(typeof T==="undefined"||!T.length||!T[0]){var j="";A=[];for(I in l[$]){if(this.terminals_[I]&&I>p){A.push("'"+this.terminals_[I]+"'")}}if(g.showPosition){j="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{j="Parse error on line "+(h+1)+": Unexpected "+(w==f?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(j,{text:g.match,token:this.terminals_[w]||w,line:g.yylineno,loc:k,expected:A})}if(T[0]instanceof Array&&T.length>1){throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+w)}switch(T[0]){case 1:r.push(w);s.push(g.yytext);o.push(g.yylloc);r.push(T[1]);w=null;if(!K){u=g.yyleng;c=g.yytext;h=g.yylineno;k=g.yylloc;if(y>0){y--}}else{w=K;K=null}break;case 2:P=this.productions_[T[1]][1];E.$=s[s.length-P];E._$={first_line:o[o.length-(P||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(P||1)].first_column,last_column:o[o.length-1].last_column};if(b){E._$.range=[o[o.length-(P||1)].range[0],o[o.length-1].range[1]]}S=this.performAction.apply(E,[c,u,h,x.yy,T[1],s,o].concat(d));if(typeof S!=="undefined"){return S}if(P){r=r.slice(0,-1*P*2);s=s.slice(0,-1*P);o=o.slice(0,-1*P)}r.push(this.productions_[T[1]][0]);s.push(E.$);o.push(E._$);C=l[r[r.length-2]][r[r.length-1]];r.push(C);break;case 3:return true}}return true}),"parse")};var h=function(){var t={EOF:1,parseError:(0,i.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,i.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,i.K2)((function(t){var e=t.length;var n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(n.length-1){this.yylineno-=n.length-1}var i=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[i[0],i[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,i.K2)((function(){this._more=true;return this}),"more"),reject:(0,i.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,i.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,e){var n,r,i;if(this.options.backtrack_lexer){i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){i.yylloc.range=this.yylloc.range.slice(0)}}r=t[0].match(/(?:\r\n?|\n).*/g);if(r){this.yylineno+=r.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(n){return n}else if(this._backtrack){for(var a in i){this[a]=i[a]}return false}return false}),"test_match"),next:(0,i.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,n,r;if(!this._more){this.yytext="";this.match=""}var i=this._currentRules();for(var a=0;ae[0].length)){e=n;r=a;if(this.options.backtrack_lexer){t=this.test_match(n,i[a]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,i[r]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,i.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,i.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,i.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,i.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,i.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,i.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,i.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,i.K2)((function t(e,n,r,i){var a=i;switch(r){case 0:break;case 1:break;case 2:return 10;break;case 3:break;case 4:break;case 5:return 4;break;case 6:return 11;break;case 7:this.begin("acc_title");return 12;break;case 8:this.popState();return"acc_title_value";break;case 9:this.begin("acc_descr");return 14;break;case 10:this.popState();return"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";break;case 14:return 17;break;case 15:return 18;break;case 16:return 19;break;case 17:return":";break;case 18:return 6;break;case 19:return"INVALID";break}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:false},acc_descr:{rules:[10],inclusive:false},acc_title:{rules:[8],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:true}}};return t}();c.lexer=h;function u(){this.yy={}}(0,i.K2)(u,"Parser");u.prototype=c;c.Parser=u;return new u}();s.parser=s;var o=s;var l="";var c=[];var h=[];var u=[];var y=(0,i.K2)((function(){c.length=0;h.length=0;l="";u.length=0;(0,i.IU)()}),"clear");var p=(0,i.K2)((function(t){l=t;c.push(t)}),"addSection");var f=(0,i.K2)((function(){return c}),"getSections");var d=(0,i.K2)((function(){let t=k();const e=100;let n=0;while(!t&&n{if(e.people){t.push(...e.people)}}));const e=new Set(t);return[...e].sort()}),"updateActors");var x=(0,i.K2)((function(t,e){const n=e.substr(1).split(":");let r=0;let i=[];if(n.length===1){r=Number(n[0]);i=[]}else{r=Number(n[0]);i=n[1].split(",")}const a=i.map((t=>t.trim()));const s={section:l,type:l,people:a,task:t,score:r};u.push(s)}),"addTask");var m=(0,i.K2)((function(t){const e={section:l,type:l,description:t,task:t,classes:[]};h.push(e)}),"addTaskOrg");var k=(0,i.K2)((function(){const t=(0,i.K2)((function(t){return u[t].processed}),"compileTask");let e=true;for(const[n,r]of u.entries()){t(n);e=e&&r.processed}return e}),"compileTasks");var b=(0,i.K2)((function(){return g()}),"getActors");var v={getConfig:(0,i.K2)((()=>(0,i.D7)().journey),"getConfig"),clear:y,setDiagramTitle:i.ke,getDiagramTitle:i.ab,setAccTitle:i.SV,getAccTitle:i.iN,setAccDescription:i.EI,getAccDescription:i.m7,addSection:p,getSections:f,getTasks:d,addTask:x,addTaskOrg:m,getActors:b};var _=(0,i.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n font-family: ${t.fontFamily};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`),"getStyles");var w=_;var K=(0,i.K2)((function(t,e){return(0,r.tk)(t,e)}),"drawRect");var $=(0,i.K2)((function(t,e){const n=15;const r=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible");const s=t.append("g");s.append("circle").attr("cx",e.cx-n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");s.append("circle").attr("cx",e.cx+n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(t){const r=(0,a.JLW)().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(0,i.K2)(o,"smile");function l(t){const r=(0,a.JLW)().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(0,i.K2)(l,"sad");function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(0,i.K2)(c,"ambivalent");if(e.score>3){o(s)}else if(e.score<3){l(s)}else{c(s)}return r}),"drawFace");var T=(0,i.K2)((function(t,e){const n=t.append("circle");n.attr("cx",e.cx);n.attr("cy",e.cy);n.attr("class","actor-"+e.pos);n.attr("fill",e.fill);n.attr("stroke",e.stroke);n.attr("r",e.r);if(n.class!==void 0){n.attr("class",n.class)}if(e.title!==void 0){n.append("title").text(e.title)}return n}),"drawCircle");var M=(0,i.K2)((function(t,e){return(0,r.m)(t,e)}),"drawText");var S=(0,i.K2)((function(t,e){function n(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-i)+" "+(t+n-i*1.2)+","+(e+r)+" "+t+","+(e+r)}(0,i.K2)(n,"genPoints");const r=t.append("polygon");r.attr("points",n(e.x,e.y,50,20,7));r.attr("class","labelBox");e.y=e.y+e.labelMargin;e.x=e.x+.5*e.labelMargin;M(t,e)}),"drawLabel");var E=(0,i.K2)((function(t,e,n){const i=t.append("g");const a=(0,r.PB)();a.x=e.x;a.y=e.y;a.fill=e.fill;a.width=n.width*e.taskCount+n.diagramMarginX*(e.taskCount-1);a.height=n.height;a.class="journey-section section-type-"+e.num;a.rx=3;a.ry=3;K(i,a);A(n)(e.text,i,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection");var I=-1;var P=(0,i.K2)((function(t,e,n){const i=e.x+n.width/2;const a=t.append("g");I++;const s=300+5*30;a.append("line").attr("id","task"+I).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",s).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666");$(a,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=(0,r.PB)();o.x=e.x;o.y=e.y;o.fill=e.fill;o.width=n.width;o.height=n.height;o.class="task task-type-"+e.num;o.rx=3;o.ry=3;K(a,o);let l=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color;const r={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};T(a,r);l+=10}));A(n)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},n,e.colour)}),"drawTask");var C=(0,i.K2)((function(t,e){(0,r.lC)(t,e)}),"drawBackgroundRect");var A=function(){function t(t,e,n,i,a,s,o,l){const c=e.append("text").attr("x",n+a/2).attr("y",i+s/2+5).style("font-color",l).style("text-anchor","middle").text(t);r(c,o)}(0,i.K2)(t,"byText");function e(t,e,n,i,a,s,o,l,c){const{taskFontSize:h,taskFontFamily:u}=l;const y=t.split(//gi);for(let p=0;p{const i=V[r].color;const a={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:V[r].position};D.drawCircle(t,a);const s={x:40,y:n+7,fill:"#666",text:r,textMargin:e.boxTextMargin|5};D.drawText(t,s);n+=20}))}(0,i.K2)(F,"drawActorLegend");var B=(0,i.D7)().journey;var O=B.leftMargin;var N=(0,i.K2)((function(t,e,n,r){const s=(0,i.D7)().journey;const o=(0,i.D7)().securityLevel;let l;if(o==="sandbox"){l=(0,a.Ltv)("#i"+e)}const c=o==="sandbox"?(0,a.Ltv)(l.nodes()[0].contentDocument.body):(0,a.Ltv)("body");R.init();const h=c.select("#"+e);D.initGraphics(h);const u=r.db.getTasks();const y=r.db.getDiagramTitle();const p=r.db.getActors();for(const i in V){delete V[i]}let f=0;p.forEach((t=>{V[t]={color:s.actorColours[f%s.actorColours.length],position:f};f++}));F(h);R.insert(0,0,O,Object.keys(V).length*50);Y(h,u,0);const d=R.getBounds();if(y){h.append("text").text(y).attr("x",O).attr("font-size","4ex").attr("font-weight","bold").attr("y",25)}const g=d.stopy-d.starty+2*s.diagramMarginY;const x=O+d.stopx+2*s.diagramMarginX;(0,i.a$)(h,g,x,s.useMaxWidth);h.append("line").attr("x1",O).attr("y1",s.height*4).attr("x2",x-O-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const m=y?70:0;h.attr("viewBox",`${d.startx} -25 ${x} ${g+m}`);h.attr("preserveAspectRatio","xMinYMin meet");h.attr("height",g+m+25)}),"draw");var R={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,i.K2)((function(){this.sequenceItems=[];this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0};this.verticalPos=0}),"init"),updateVal:(0,i.K2)((function(t,e,n,r){if(t[e]===void 0){t[e]=n}else{t[e]=r(n,t[e])}}),"updateVal"),updateBounds:(0,i.K2)((function(t,e,n,r){const a=(0,i.D7)().journey;const s=this;let o=0;function l(l){return(0,i.K2)((function i(c){o++;const h=s.sequenceItems.length-o+1;s.updateVal(c,"starty",e-h*a.boxMargin,Math.min);s.updateVal(c,"stopy",r+h*a.boxMargin,Math.max);s.updateVal(R.data,"startx",t-h*a.boxMargin,Math.min);s.updateVal(R.data,"stopx",n+h*a.boxMargin,Math.max);if(!(l==="activation")){s.updateVal(c,"startx",t-h*a.boxMargin,Math.min);s.updateVal(c,"stopx",n+h*a.boxMargin,Math.max);s.updateVal(R.data,"starty",e-h*a.boxMargin,Math.min);s.updateVal(R.data,"stopy",r+h*a.boxMargin,Math.max)}}),"updateItemBounds")}(0,i.K2)(l,"updateFn");this.sequenceItems.forEach(l())}),"updateBounds"),insert:(0,i.K2)((function(t,e,n,r){const i=Math.min(t,n);const a=Math.max(t,n);const s=Math.min(e,r);const o=Math.max(e,r);this.updateVal(R.data,"startx",i,Math.min);this.updateVal(R.data,"starty",s,Math.min);this.updateVal(R.data,"stopx",a,Math.max);this.updateVal(R.data,"stopy",o,Math.max);this.updateBounds(i,s,a,o)}),"insert"),bumpVerticalPos:(0,i.K2)((function(t){this.verticalPos=this.verticalPos+t;this.data.stopy=this.verticalPos}),"bumpVerticalPos"),getVerticalPos:(0,i.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,i.K2)((function(){return this.data}),"getBounds")};var z=B.sectionFills;var W=B.sectionColours;var Y=(0,i.K2)((function(t,e,n){const r=(0,i.D7)().journey;let a="";const s=r.height*2+r.diagramMarginY;const o=n+s;let l=0;let c="#CCC";let h="black";let u=0;for(const[i,y]of e.entries()){if(a!==y.section){c=z[l%z.length];u=l%z.length;h=W[l%W.length];let n=0;const s=y.section;for(let t=i;t{if(V[e]){t[e]=V[e]}return t}),{});y.x=i*r.taskMargin+i*r.width+O;y.y=o;y.width=r.diagramMarginX;y.height=r.diagramMarginY;y.colour=h;y.fill=c;y.num=u;y.actors=n;D.drawTask(t,y,r);R.insert(y.x,y.y,y.x+y.width+r.taskMargin,300+5*30)}}),"drawTasks");var q={setConf:L,draw:N};var J={parser:o,db:v,renderer:q,styles:w,init:(0,i.K2)((t=>{q.setConf(t.journey);v.clear()}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5211.83e78dadcef89cae04bf.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5211.83e78dadcef89cae04bf.js new file mode 100644 index 0000000000000000000000000000000000000000..56b814c2a074fb57806bc06cff522795a184d267 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5211.83e78dadcef89cae04bf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5211],{5211:(e,t,n)=>{n.r(t);n.d(t,{factor:()=>a});var r=n(47228);const a=(0,r.I)({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}})},47228:(e,t,n)=>{n.d(t,{I:()=>r});function r(e){a(e,"start");var t={},n=e.languageData||{},r=false;for(var i in e)if(i!=n&&e.hasOwnProperty(i)){var s=t[i]=[],u=e[i];for(var d=0;d2&&s.token&&typeof s.token!="string"){n.pending=[];for(var l=2;l-1)return null;var a=n.indent.length-1,i=e[n.state];e:for(;;){for(var s=0;s0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.SafeHandler=e.SafeMathDocumentMixin=void 0;var s=r(23466);function f(t){var e;return e=function(t){n(e,t);function e(){var e,r;var n=[];for(var i=0;i=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:true});e.SafeMethods=void 0;var a=r(86810);e.SafeMethods={filterURL:function(t,e){var r=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();var n=t.allow.URLs;return n==="all"||n==="safe"&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){var r=this;var n=e.trim().replace(/\s\s+/g," ").split(/ /);return n.map((function(e){return r.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){var r=t.allow.classes;return r==="all"||r==="safe"&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){var r=t.allow.cssIDs;return r==="all"||r==="safe"&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){var r,i,a,o;if(t.allow.styles==="all")return e;if(t.allow.styles!=="safe")return null;var l=t.adaptor;var s=t.options;try{var f=l.node("div",{style:e});var u=l.node("div");try{for(var c=n(Object.keys(s.safeStyles)),p=c.next();!p.done;p=c.next()){var y=p.value;if(s.styleParts[y]){try{for(var h=(a=void 0,n(["Top","Right","Bottom","Left"])),v=h.next();!v.done;v=h.next()){var d=v.value;var m=y+d;var b=this.filterStyle(t,m,f);if(b){l.setStyle(u,m,b)}}}catch(g){a={error:g}}finally{try{if(v&&!v.done&&(o=h.return))o.call(h)}finally{if(a)throw a.error}}}else{var b=this.filterStyle(t,y,f);if(b){l.setStyle(u,y,b)}}}}catch(S){r={error:S}}finally{try{if(p&&!p.done&&(i=c.return))i.call(c)}finally{if(r)throw r.error}}e=l.allStyles(u)}catch(O){e=""}return e},filterStyle:function(t,e,r){var n=t.adaptor.getStyle(r,e);if(typeof n!=="string"||n===""||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data){return null}var i=e.replace(/Top|Right|Left|Bottom/,"");if(!t.options.safeStyles[e]&&!t.options.safeStyles[i]){return null}return this.filterStyleValue(t,e,n,r)},filterStyleValue:function(t,e,r,n){var i=t.options.styleLengths[e];if(!i){return r}if(typeof i!=="string"){return this.filterStyleLength(t,e,r)}var a=this.filterStyleLength(t,i,t.adaptor.getStyle(n,i));if(!a){return null}t.adaptor.setStyle(n,i,a);return t.adaptor.getStyle(n,e)},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))return null;var n=(0,a.length2em)(r,1);var o=t.options.styleLengths[e];var l=i(Array.isArray(o)?o:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];return s<=n&&n<=f?r:(n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.Safe=void 0;var a=r(34981);var o=r(91894);var l=function(){function t(t,e){this.filterAttributes=new Map([["href","filterURL"],["src","filterURL"],["altimg","filterURL"],["class","filterClassList"],["style","filterStyles"],["id","filterID"],["fontsize","filterFontSize"],["mathsize","filterFontSize"],["scriptminsize","filterFontSize"],["scriptsizemultiplier","filterSizeMultiplier"],["scriptlevel","filterScriptLevel"],["data-","filterData"]]);this.filterMethods=n({},o.SafeMethods);this.adaptor=t.adaptor;this.options=e;this.allow=this.options.allow}t.prototype.sanitize=function(t,e){try{t.root.walkTree(this.sanitizeNode.bind(this))}catch(r){e.options.compileError(e,t,r)}};t.prototype.sanitizeNode=function(t){var e,r;var n=t.attributes.getAllAttributes();try{for(var a=i(Object.keys(n)),o=a.next();!o.done;o=a.next()){var l=o.value;var s=this.filterAttributes.get(l);if(s){var f=this.filterMethods[s](this,n[l]);if(f){if(f!==(typeof f==="number"?parseFloat(n[l]):n[l])){n[l]=f}}else{delete n[l]}}}}catch(u){e={error:u}}finally{try{if(o&&!o.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}};t.prototype.mmlAttribute=function(t,e){if(t==="class")return null;var r=this.filterAttributes.get(t);var n=r||(t.substr(0,5)==="data-"?this.filterAttributes.get("data-"):null);if(!n){return e}var i=this.filterMethods[n](this,e,t);return typeof i==="number"||typeof i==="boolean"?String(i):i};t.prototype.mmlClassList=function(t){var e=this;return t.map((function(t){return e.filterMethods.filterClass(e,t)})).filter((function(t){return t!==null}))};t.OPTIONS={allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe"},lengthMax:3,scriptsizemultiplierRange:[.6,1],scriptlevelRange:[-2,2],classPattern:/^mjx-[-a-zA-Z0-9_.]+$/,idPattern:/^mjx-[-a-zA-Z0-9_.]+$/,dataPattern:/^data-mjx-/,safeProtocols:(0,a.expandable)({http:true,https:true,file:true,javascript:false,data:false}),safeStyles:(0,a.expandable)({color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true}),styleParts:(0,a.expandable)({border:true,padding:true,margin:true,outline:true}),styleLengths:(0,a.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:true,paddingRight:true,paddingBottom:true,paddingLeft:true,marginTop:true,marginRight:true,marginBottom:true,marginLeft:true,outlineTop:true,outlineRight:true,outlineBottom:true,outlineLeft:true,fontSize:[.707,1.44]})};return t}();e.Safe=l},34981:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n{Object.defineProperty(e,"__esModule",{value:true});e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0;e.BIGDIMEN=1e6;e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN};function r(t,r,n,i){if(r===void 0){r=0}if(n===void 0){n=1}if(i===void 0){i=16}if(typeof t!=="string"){t=String(t)}if(t===""||t==null){return r}if(e.MATHSPACE[t]){return e.MATHSPACE[t]}var a=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!a){return r}var o=parseFloat(a[1]||"1"),l=a[2];if(e.UNITS.hasOwnProperty(l)){return o*e.UNITS[l]/i/n}if(e.RELUNITS.hasOwnProperty(l)){return o*e.RELUNITS[l]}if(l==="%"){return o/100*r}return o*r}e.length2em=r;function n(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}e.percent=n;function i(t){if(Math.abs(t)<.001)return"0";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.em=i;function a(t,e){if(e===void 0){e=16}t=(Math.round(t*e)+.05)/e;if(Math.abs(t)<.001)return"0em";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.emRounded=a;function o(t,r,n){if(r===void 0){r=-e.BIGDIMEN}if(n===void 0){n=16}t*=n;if(r&&t{t.r(n);t.d(n,{cmake:()=>u});var r=/({)?[a-zA-Z0-9_]+(})?/;function i(e,n){var t,r,i=false;while(!e.eol()&&(t=e.next())!=n.pending){if(t==="$"&&r!="\\"&&n.pending=='"'){i=true;break}r=t}if(i){e.backUp(1)}if(t==n.pending){n.continueString=false}else{n.continueString=true}return"string"}function a(e,n){var t=e.next();if(t==="$"){if(e.match(r)){return"variableName.special"}return"variable"}if(n.continueString){e.backUp(1);return i(e,n)}if(e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)){e.backUp(1);return"def"}if(t=="#"){e.skipToEnd();return"comment"}if(t=="'"||t=='"'){n.pending=t;return i(e,n)}if(t=="("||t==")"){return"bracket"}if(t.match(/[0-9]/)){return"number"}e.eatWhile(/[\w-]/);return null}const u={name:"cmake",startState:function(){var e={};e.inDefinition=false;e.inInclude=false;e.continueString=false;e.pending=false;return e},token:function(e,n){if(e.eatSpace())return null;return a(e,n)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5318.d5df5c275e925c22d780.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5318.d5df5c275e925c22d780.js new file mode 100644 index 0000000000000000000000000000000000000000..989c69c8dea99ec7f907f9716b833c69b9ec8e10 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5318.d5df5c275e925c22d780.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5318],{55318:(e,t,n)=>{n.r(t);n.d(t,{d:()=>g});function r(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/;var m;function h(e,t){var n=e.next();if(c[n]){var r=c[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"||n=="`"){t.tokenize=y(n);return t.tokenize(e,t)}if(/[\[\]{}\(\),;\:\.]/.test(n)){m=n;return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("+")){t.tokenize=k;return k(e,t)}if(e.eat("*")){t.tokenize=b;return b(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(d.test(n)){e.eatWhile(d);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();if(l.propertyIsEnumerable(i)){if(s.propertyIsEnumerable(i))m="newstatement";return"keyword"}if(u.propertyIsEnumerable(i)){if(s.propertyIsEnumerable(i))m="newstatement";return"builtin"}if(f.propertyIsEnumerable(i))return"atom";return"variable"}function y(e){return function(t,n){var r=false,i,a=false;while((i=t.next())!=null){if(i==e&&!r){a=true;break}r=!r&&i=="\\"}if(a||!(r||p))n.tokenize=null;return"string"}}function b(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function k(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="+"}return"comment"}function v(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function w(e,t,n){var r=e.indented;if(e.context&&e.context.type=="statement")r=e.context.indented;return e.context=new v(r,t,n,null,e.context)}function _(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const g={name:"d",startState:function(e){return{tokenize:null,context:new v(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;m=null;var r=(t.tokenize||h)(e,t);if(r=="comment"||r=="meta")return r;if(n.align==null)n.align=true;if((m==";"||m==":"||m==",")&&n.type=="statement")_(t);else if(m=="{")w(t,e.column(),"}");else if(m=="[")w(t,e.column(),"]");else if(m=="(")w(t,e.column(),")");else if(m=="}"){while(n.type=="statement")n=_(t);if(n.type=="}")n=_(t);while(n.type=="statement")n=_(t)}else if(m==n.type)_(t);else if((n.type=="}"||n.type=="top")&&m!=";"||n.type=="statement"&&m=="newstatement")w(t,e.column(),"statement");t.startOfLine=false;return r},indent:function(e,t,n){if(e.tokenize!=h&&e.tokenize!=null)return null;var r=e.context,i=t&&t.charAt(0);if(r.type=="statement"&&i=="}")r=r.prev;var a=i==r.type;if(r.type=="statement")return r.indented+(i=="{"?0:o||n.unit);else if(r.align)return r.column+(a?0:1);else return r.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5492.44728a640c37a4b4aa0c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5492.44728a640c37a4b4aa0c.js new file mode 100644 index 0000000000000000000000000000000000000000..e03a9fa130888755d38d0381d0806c7c645227d1 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5492.44728a640c37a4b4aa0c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5492,3111],{13111:(e,t,n)=>{n.r(t);n.d(t,{Bounce:()=>N,Flip:()=>k,Icons:()=>v,Slide:()=>R,ToastContainer:()=>M,Zoom:()=>w,collapseToast:()=>f,cssTransition:()=>m,toast:()=>H,useToast:()=>b,useToastContainer:()=>T});var o=n(44914);var s=n.n(o);function a(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),c=e=>"string"==typeof e,u=e=>"function"==typeof e,d=e=>c(e)||u(e)?e:null,p=e=>(0,o.isValidElement)(e)||c(e)||u(e)||l(e);function f(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame((()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame((()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)}))}))}function m(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:i=!0,collapseDuration:r=300}=e;return function(e){let{children:l,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:m}=e;const g=a?`${t}--${c}`:t,h=a?`${n}--${c}`:n,y=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,o.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?f(e,d,r):d()};m||(u?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[m]),s().createElement(s().Fragment,null,l)}}function g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},y=e=>{let{theme:t,type:n,...o}=e;return s().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},v={info:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return s().createElement("div",{className:"Toastify__spinner"})}};function T(e){const[,t]=(0,o.useReducer)((e=>e+1),0),[n,s]=(0,o.useState)([]),a=(0,o.useRef)(null),i=(0,o.useRef)(new Map).current,r=e=>-1!==n.indexOf(e),f=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:r,getToast:e=>i.get(e)}).current;function m(e){let{containerId:t}=e;const{limit:n}=f.props;!n||t&&f.containerId!==t||(f.count-=f.queue.length,f.queue=[])}function y(e){s((t=>null==e?[]:t.filter((t=>t!==e))))}function T(){const{toastContent:e,toastProps:t,staleId:n}=f.queue.shift();C(e,t,n)}function E(e,n){let{delay:s,staleId:r,...m}=n;if(!p(e)||function(e){return!a.current||f.props.enableMultiContainer&&e.containerId!==f.props.containerId||i.has(e.toastId)&&null==e.updateId}(m))return;const{toastId:E,updateId:b,data:_}=m,{props:I}=f,L=()=>y(E),O=null==b;O&&f.count++;const N={...I,style:I.toastStyle,key:f.toastKey++,...m,toastId:E,updateId:b,data:_,closeToast:L,isIn:!1,className:d(m.className||I.toastClassName),bodyClassName:d(m.bodyClassName||I.bodyClassName),progressClassName:d(m.progressClassName||I.progressClassName),autoClose:!m.isLoading&&(R=m.autoClose,w=I.autoClose,!1===R||l(R)&&R>0?R:w),deleteToast(){const e=g(i.get(E),"removed");i.delete(E),h.emit(4,e);const n=f.queue.length;if(f.count=null==E?f.count-f.displayedToast:f.count-1,f.count<0&&(f.count=0),n>0){const e=null==E?f.props.limit:1;if(1===n||1===e)f.displayedToast++,T();else{const t=e>n?n:e;f.displayedToast=t;for(let e=0;ee in v)(n)&&(i=v[n](r))),i}(N),u(m.onOpen)&&(N.onOpen=m.onOpen),u(m.onClose)&&(N.onClose=m.onClose),N.closeButton=I.closeButton,!1===m.closeButton||p(m.closeButton)?N.closeButton=m.closeButton:!0===m.closeButton&&(N.closeButton=!p(I.closeButton)||I.closeButton);let k=e;(0,o.isValidElement)(e)&&!c(e.type)?k=(0,o.cloneElement)(e,{closeToast:L,toastProps:N,data:_}):u(e)&&(k=e({closeToast:L,toastProps:N,data:_})),I.limit&&I.limit>0&&f.count>I.limit&&O?f.queue.push({toastContent:k,toastProps:N,staleId:r}):l(s)?setTimeout((()=>{C(k,N,r)}),s):C(k,N,r)}function C(e,t,n){const{toastId:o}=t;n&&i.delete(n);const a={content:e,props:t};i.set(o,a),s((e=>[...e,o].filter((e=>e!==n)))),h.emit(4,g(a,null==a.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(f.containerId=e.containerId,h.cancelEmit(3).on(0,E).on(1,(e=>a.current&&y(e))).on(5,m).emit(2,f),()=>{i.clear(),h.emit(3,f)})),[]),(0,o.useEffect)((()=>{f.props=e,f.isToastActive=r,f.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,o=Array.from(i.values());return e.newestOnTop&&o.reverse(),o.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:a,isToastActive:r}}function E(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,n]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),i=(0,o.useRef)(null),r=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:m}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),r.didMove=!1,document.addEventListener("mousemove",T),document.addEventListener("mouseup",b),document.addEventListener("touchmove",T),document.addEventListener("touchend",b);const n=i.current;r.canCloseOnClick=!0,r.canDrag=!0,r.boundingRect=n.getBoundingClientRect(),n.style.transition="",r.x=E(t.nativeEvent),r.y=C(t.nativeEvent),"x"===e.draggableDirection?(r.start=r.x,r.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(r.start=r.y,r.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(r.boundingRect){const{top:n,bottom:o,left:s,right:a}=r.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&r.x>=s&&r.x<=a&&r.y>=n&&r.y<=o?v():y()}}function y(){n(!0)}function v(){n(!1)}function T(n){const o=i.current;r.canDrag&&o&&(r.didMove=!0,t&&v(),r.x=E(n),r.y=C(n),r.delta="x"===e.draggableDirection?r.x-r.start:r.y-r.start,r.start!==r.x&&(r.canCloseOnClick=!1),o.style.transform=`translate${e.draggableDirection}(${r.delta}px)`,o.style.opacity=""+(1-Math.abs(r.delta/r.removalDistance)))}function b(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",b);const t=i.current;if(r.canDrag&&r.didMove&&t){if(r.canDrag=!1,Math.abs(r.delta)>r.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,o.useEffect)((()=>{l.current=e})),(0,o.useEffect)((()=>(i.current&&i.current.addEventListener("d",y,{once:!0}),u(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;u(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)})),[]),(0,o.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",y),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const _={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return c&&d&&(_.onMouseEnter=v,_.onMouseLeave=y),m&&(_.onClick=e=>{f&&f(e),r.canCloseOnClick&&p()}),{playToast:y,pauseToast:v,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:_}}function _(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return s().createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},s().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(e){let{delay:t,isRunning:n,closeToast:o,type:a="default",hide:i,className:l,style:c,controlledProgress:d,progress:p,rtl:f,isIn:m,theme:g}=e;const h=i||d&&0===p,y={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${p})`);const v=r("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=u(l)?l({rtl:f,type:a,defaultClassName:v}):r(v,l);return s().createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&o()}})}const L=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:d,onClick:p,type:f,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:T,bodyClassName:E,bodyStyle:C,progressClassName:L,progressStyle:O,updateId:N,role:R,progress:w,rtl:k,toastId:M,deleteToast:x,isIn:$,isLoading:B,iconOut:P,closeOnClick:A,theme:D}=e,z=r("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),F=u(v)?v({rtl:k,position:y,type:f,defaultClassName:z}):r(z,v),S=!!w||!d,H={closeToast:g,type:f,theme:D};let q=null;return!1===l||(q=u(l)?l(H):(0,o.isValidElement)(l)?(0,o.cloneElement)(l,H):_(H)),s().createElement(h,{isIn:$,done:x,position:y,preventExitTransition:n,nodeRef:a},s().createElement("div",{id:M,onClick:p,className:F,...i,style:T,ref:a},s().createElement("div",{...$&&{role:R},className:u(E)?E({type:f}):r("Toastify__toast-body",E),style:C},null!=P&&s().createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),s().createElement("div",null,c)),q,s().createElement(I,{...N&&!S?{key:`pb-${N}`}:{},rtl:k,theme:D,delay:d,isRunning:t,isIn:$,closeToast:g,hide:m,type:f,style:O,className:L,controlledProgress:S,progress:w||0})))},O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=m(O("bounce",!0)),R=m(O("slide",!0)),w=m(O("zoom")),k=m(O("flip")),M=(0,o.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=T(e),{className:l,style:c,rtl:p,containerId:f}=e;function m(e){const t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":p});return u(l)?l({position:e,rtl:p,defaultClassName:t}):r(t,d(l))}return(0,o.useEffect)((()=>{t&&(t.current=a.current)}),[]),s().createElement("div",{ref:a,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return s().createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return s().createElement(L,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))}));M.displayName="ToastContainer",M.defaultProps={position:"top-right",transition:N,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,$=new Map,B=[],P=1;function A(){return""+P++}function D(e){return e&&(c(e.toastId)||l(e.toastId))?e.toastId:A()}function z(e,t){return $.size>0?h.emit(0,e,t):B.push({content:e,options:t}),t.toastId}function F(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function S(e){return(t,n)=>z(t,F(e,n))}function H(e,t){return z(e,F("default",t))}H.loading=(e,t)=>z(e,F("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),H.promise=function(e,t,n){let o,{pending:s,error:a,success:i}=t;s&&(o=c(s)?H.loading(s,n):H.loading(s.render,{...n,...s}));const r={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,s)=>{if(null==t)return void H.dismiss(o);const a={type:e,...r,...n,data:s},i=c(t)?{render:t}:t;return o?H.update(o,{...a,...i}):H(i.render,{...a,...i}),s},d=u(e)?e():e;return d.then((e=>l("success",i,e))).catch((e=>l("error",a,e))),d},H.success=S("success"),H.info=S("info"),H.error=S("error"),H.warning=S("warning"),H.warn=H.warning,H.dark=(e,t)=>z(e,F("default",{theme:"dark",...t})),H.dismiss=e=>{$.size>0?h.emit(1,e):B=B.filter((t=>null!=e&&t.options.toastId!==e))},H.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},H.isActive=e=>{let t=!1;return $.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const o=$.get(n||x);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={...o,...t,toastId:t.toastId||e,updateId:A()};a.toastId!==e&&(a.staleId=e);const i=a.render||s;delete a.render,z(i,a)}}),0)},H.done=e=>{H.update(e,{progress:1})},H.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),H.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},H.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,(e=>{x=e.containerId||e,$.set(x,e),B.forEach((e=>{h.emit(0,e.content,e.options)})),B=[]})).on(3,(e=>{$.delete(e.containerId||e),0===$.size&&h.off(0).off(1).off(5)}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5862.be1ec453e8db6844c62d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5862.be1ec453e8db6844c62d.js new file mode 100644 index 0000000000000000000000000000000000000000..1166a9fa0d550d5a81b28c95cfa0814ad8485335 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5862.be1ec453e8db6844c62d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5862],{95862:(e,a,t)=>{t.r(a);t.d(a,{mathematica:()=>A});var r="[a-zA-Z\\$][a-zA-Z0-9\\$]*";var n="(?:\\d+)";var i="(?:\\.\\d+|\\d+\\.\\d*|\\d+)";var u="(?:\\.\\w+|\\w+\\.\\w*|\\w+)";var l="(?:`(?:`?"+i+")?)";var c=new RegExp("(?:"+n+"(?:\\^\\^"+u+l+"?(?:\\*\\^[+-]?\\d+)?))");var f=new RegExp("(?:"+i+l+"?(?:\\*\\^[+-]?\\d+)?)");var m=new RegExp("(?:`?)(?:"+r+")(?:`(?:"+r+"))*(?:`?)");function o(e,a){var t;t=e.next();if(t==='"'){a.tokenize=s;return a.tokenize(e,a)}if(t==="("){if(e.eat("*")){a.commentLevel++;a.tokenize=z;return a.tokenize(e,a)}}e.backUp(1);if(e.match(c,true,false)){return"number"}if(e.match(f,true,false)){return"number"}if(e.match(/(?:In|Out)\[[0-9]*\]/,true,false)){return"atom"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,true,false)){return"meta"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,true,false)){return"string.special"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,true,false)){return"variableName.special"}if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,true,false)){return"variableName.special"}if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,true,false)){return"variableName.special"}if(e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,true,false)){return"variableName.special"}if(e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,true,false)){return"character"}if(e.match(/(?:\[|\]|{|}|\(|\))/,true,false)){return"bracket"}if(e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,true,false)){return"variableName.constant"}if(e.match(m,true,false)){return"keyword"}if(e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,true,false)){return"operator"}e.next();return"error"}function s(e,a){var t,r=false,n=false;while((t=e.next())!=null){if(t==='"'&&!n){r=true;break}n=!n&&t==="\\"}if(r&&!n){a.tokenize=o}return"string"}function z(e,a){var t,r;while(a.commentLevel>0&&(r=e.next())!=null){if(t==="("&&r==="*")a.commentLevel++;if(t==="*"&&r===")")a.commentLevel--;t=r}if(a.commentLevel<=0){a.tokenize=o}return"comment"}const A={name:"mathematica",startState:function(){return{tokenize:o,commentLevel:0}},token:function(e,a){if(e.eatSpace())return null;return a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5942.05cbcd55c5f45ff7db43.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5942.05cbcd55c5f45ff7db43.js new file mode 100644 index 0000000000000000000000000000000000000000..8f20fea748f134773d02f7db0e38e6ea9b30805b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5942.05cbcd55c5f45ff7db43.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5942],{35942:(O,$,Q)=>{Q.r($);Q.d($,{php:()=>GO,phpLanguage:()=>_O});var i=Q(27421);var y=Q(45145);const a=1,z=2,S=263,P=3,W=264,e=265,s=266,T=4,n=5,X=6,d=7,q=8,t=9,o=10,l=11,R=12,x=13,V=14,u=15,r=16,U=17,v=18,b=19,m=20,p=21,k=22,c=23,Y=24,Z=25,h=26,w=27,j=28,g=29,_=30,G=31,f=32,E=33,I=34,N=35,F=36,C=37,L=38,A=39,K=40,H=41,D=42,B=43,M=44,J=45,OO=46,$O=47,QO=48,iO=49,yO=50,aO=51,zO=52,SO=53,PO=54,WO=55,eO=56,sO=57,TO=58,nO=59,XO=60,dO=61,qO=62,tO=63,oO=64,lO=65;const RO={abstract:T,and:n,array:X,as:d,true:q,false:q,break:t,case:o,catch:l,clone:R,const:x,continue:V,declare:r,default:u,do:U,echo:v,else:b,elseif:m,enddeclare:p,endfor:k,endforeach:c,endif:Y,endswitch:Z,endwhile:h,enum:w,extends:j,final:g,finally:_,fn:G,for:f,foreach:E,from:I,function:N,global:F,goto:C,if:L,implements:A,include:K,include_once:H,instanceof:D,insteadof:B,interface:M,list:J,match:OO,namespace:$O,new:QO,null:iO,or:yO,print:aO,require:zO,require_once:SO,return:PO,switch:WO,throw:eO,trait:sO,try:TO,unset:nO,use:XO,var:dO,public:qO,private:qO,protected:qO,while:tO,xor:oO,yield:lO,__proto__:null};function xO(O){let $=RO[O.toLowerCase()];return $==null?-1:$}function VO(O){return O==9||O==10||O==13||O==32}function uO(O){return O>=97&&O<=122||O>=65&&O<=90}function rO(O){return O==95||O>=128||uO(O)}function UO(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const vO={int:true,integer:true,bool:true,boolean:true,float:true,double:true,real:true,string:true,array:true,object:true,unset:true,__proto__:null};const bO=new i.Lu((O=>{if(O.next==40){O.advance();let $=0;while(VO(O.peek($)))$++;let Q="",i;while(uO(i=O.peek($))){Q+=String.fromCharCode(i);$++}while(VO(O.peek($)))$++;if(O.peek($)==41&&vO[Q.toLowerCase()])O.acceptToken(a)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let i=0;i<3;i++)O.advance();while(O.next==32||O.next==9)O.advance();let $=O.next==39;if($)O.advance();if(!rO(O.next))return;let Q=String.fromCharCode(O.next);for(;;){O.advance();if(!rO(O.next)&&!(O.next>=48&&O.next<=55))break;Q+=String.fromCharCode(O.next)}if($){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let $=O.next==10||O.next==13;O.advance();if(O.next<0)return;if($){while(O.next==32||O.next==9)O.advance();let $=true;for(let i=0;i{if(O.next<0)O.acceptToken(s)}));const pO=new i.Lu(((O,$)=>{if(O.next==63&&$.canShift(e)&&O.peek(1)==62)O.acceptToken(e)}));function kO(O){let $=O.peek(1);if($==110||$==114||$==116||$==118||$==101||$==102||$==92||$==36||$==34||$==123)return 2;if($>=48&&$<=55){let $=2,Q;while($<5&&(Q=O.peek($))>=48&&Q<=55)$++;return $}if($==120&&UO(O.peek(2))){return UO(O.peek(3))?4:3}if($==117&&O.peek(2)==123){for(let $=3;;$++){let Q=O.peek($);if(Q==125)return $==2?0:$+1;if(!UO(Q))break}}return 0}const cO=new i.Lu(((O,$)=>{let Q=false;for(;;Q=true){if(O.next==34||O.next<0||O.next==36&&(rO(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36){break}else if(O.next==92){let $=kO(O);if($){if(Q)break;else return O.acceptToken(P,$)}}else if(!Q&&(O.next==91||O.next==45&&O.peek(1)==62&&rO(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&rO(O.peek(3)))&&$.canShift(W)){break}O.advance()}if(Q)O.acceptToken(S)}));const YO=(0,y.styleTags)({"Visibility abstract final static":y.tags.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":y.tags.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":y.tags.controlKeyword,"and or xor yield unset clone instanceof insteadof":y.tags.operatorKeyword,"function fn class trait implements extends const enum global interface use var":y.tags.definitionKeyword,"include include_once require require_once namespace":y.tags.moduleKeyword,"new from echo print array list as":y.tags.keyword,null:y.tags.null,Boolean:y.tags.bool,VariableName:y.tags.variableName,"NamespaceName/...":y.tags.namespace,"NamedType/...":y.tags.typeName,Name:y.tags.name,"CallExpression/Name":y.tags.function(y.tags.variableName),"LabelStatement/Name":y.tags.labelName,"MemberExpression/Name":y.tags.propertyName,"MemberExpression/VariableName":y.tags.special(y.tags.propertyName),"ScopedExpression/ClassMemberName/Name":y.tags.propertyName,"ScopedExpression/ClassMemberName/VariableName":y.tags.special(y.tags.propertyName),"CallExpression/MemberExpression/Name":y.tags.function(y.tags.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":y.tags.function(y.tags.propertyName),"MethodDeclaration/Name":y.tags.function(y.tags.definition(y.tags.variableName)),"FunctionDefinition/Name":y.tags.function(y.tags.definition(y.tags.variableName)),"ClassDeclaration/Name":y.tags.definition(y.tags.className),UpdateOp:y.tags.updateOperator,ArithOp:y.tags.arithmeticOperator,LogicOp:y.tags.logicOperator,BitOp:y.tags.bitwiseOperator,CompareOp:y.tags.compareOperator,ControlOp:y.tags.controlOperator,AssignOp:y.tags.definitionOperator,"$ ConcatOp":y.tags.operator,LineComment:y.tags.lineComment,BlockComment:y.tags.blockComment,Integer:y.tags.integer,Float:y.tags.float,String:y.tags.string,ShellExpression:y.tags.special(y.tags.string),"=> ->":y.tags.punctuation,"( )":y.tags.paren,"#[ [ ]":y.tags.squareBracket,"${ { }":y.tags.brace,"-> ?->":y.tags.derefOperator,", ; :: : \\":y.tags.separator,"PhpOpen PhpClose":y.tags.processingInstruction});const ZO={__proto__:null,static:311,STATIC:311,class:333,CLASS:333};const hO=i.U1.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQdO,5UQaO,5=hO!-eQ`O'#F}O!-jQdO'#IlO!&WQdO,5=iOOQ#u,5=j,5=jO!-uQ`O,5=lO!-xQ`O,5=mO!-}Q`O,5=nO!.YQdO,5=qOOQ#u,5=q,5=qO!.eQ`O,5=rO!.eQ`O,5=rO!.mQdO'#IwO!.{Q`O'#HXO!&WQdO,5=rO!/ZQ`O,5=rO!/fQdO'#IYO!&WQdO,5=vOOQ#u-E;_-E;_O!1RQ`O,5=kOOO#u,5:^,5:^O!1^O#|O,5:^OOO#u-E;^-E;^OOOO,5>p,5>pOOQ#y1G0S1G0SO!1fQ`O1G0XO*kQaO1G0XO!2xQ`O1G0pOOQS1G0p1G0pO!4[Q`O1G0pOOQS'#I_'#I_O*kQaO'#I_OOQS1G0q1G0qO!4cQ`O'#IaO!7lQ`O'#E}O!7yQaO'#EuOOQO'#Ia'#IaO!8TQ`O'#I`O!8]Q`O,5;_OOQS'#FQ'#FQOOQS1G1U1G1UO!8bQdO1G1]O!:dQdO1G1]O!wO#(fQaO'#HdO#(vQ`O,5>vOOQS1G0d1G0dO#)OQ`O1G0dO#)TQ`O'#I^O#*mQ`O'#I^O#*uQ`O,5;ROIbQaO,5;ROOQS1G0u1G0uPOQO'#E}'#E}O#+fQdO1G1RO0aQ`O'#HgO#-hQtO,5;cO#.YQaO1G0|OOQS,5;e,5;eO#0iQtO,5;gO#0vQdO1G0cO*kQaO1G0cO#2cQdO1G1YO#4OQdO1G1[OOQO,5<^,5<^O#4`Q`O'#HjO#4nQ`O,5?ROOQO1G1w1G1wO#4vQ`O,5?ZO!&WQdO1G3TO<_Q`O1G3TOOQ#u1G3U1G3UO#4{Q`O1G3YO!1RQ`O1G3VO#5WQ`O1G3VO#5]QpO'#FoO#5kQ`O'#FoO#5{Q`O'#FoO#6WQ`O'#FoO#6`Q`O'#FsO#6eQ`O'#FtOOQO'#If'#IfO#6lQ`O'#IeO#6tQ`O,5tOOQ#u1G3b1G3bOOQ#u1G3V1G3VO!-xQ`O1G3VO!1UQ`O1G3VOOO#u1G/x1G/xO*kQaO7+%sO#MuQdO7+%sOOQS7+&[7+&[O$ bQ`O,5>yO>UQaO,5;`O$ iQ`O,5;aO$#OQaO'#HfO$#YQ`O,5>zOOQS1G0y1G0yO$#bQ`O'#EYO$#gQ`O'#IXO$#oQ`O,5:sOOQS1G0e1G0eO$#tQ`O1G0eO$#yQ`O1G0iO9yQaO1G0iOOQO,5>O,5>OOOQO-E;b-E;bOOQS7+&O7+&OO>UQaO,5;SO$%`QaO'#HeO$%jQ`O,5>xOOQS1G0m1G0mO$%rQ`O1G0mOOQS,5>R,5>ROOQS-E;e-E;eO$%wQdO7+&hO$'yQtO1G1RO$(WQdO7+%}OOQS1G0i1G0iOOQO,5>U,5>UOOQO-E;h-E;hOOQ#u7+(o7+(oO!&WQdO7+(oOOQ#u7+(t7+(tO#KmQ`O7+(tO0aQ`O7+(tOOQ#u7+(q7+(qO!-xQ`O7+(qO!1UQ`O7+(qO!1RQ`O7+(qO$)sQ`O,5UQaO,5],5>]OOQS-E;o-E;oO$.iQdO7+'hO$.yQpO7+'hO$/RQdO'#IiOOQO,5dOOQ#u,5>d,5>dOOQ#u-E;v-E;vO$;lQaO7+(lO$cOOQS-E;u-E;uO!&WQdO7+(nO$=mQdO1G2TOOQS,5>[,5>[OOQS-E;n-E;nOOQ#u7+(r7+(rO$?nQ`O'#GQO$?uQ`O'#GQO$@ZQ`O'#HUOOQO'#Hy'#HyO$@`Q`O,5=oOOQ#u,5=o,5=oO$@gQpO7+(tOOQ#u7+(x7+(xO!&WQdO7+(xO$@rQdO,5>fOOQS-E;x-E;xO$AQQdO1G4}O$A]Q`O,5=tO$AbQ`O,5=tO$AmQ`O'#H{O$BRQ`O,5?dOOQS1G3_1G3_O#KrQ`O7+(xO$BZQdO,5=|OOQS-E;`-E;`O$CvQdO<Q,5>QOOQO-E;d-E;dO$8YQaO,5:tO$FxQaO'#HcO$GVQ`O,5>sOOQS1G0_1G0_OOQS7+&P7+&PO$G_Q`O7+&TO$HtQ`O1G0nO$JZQ`O,5>POOQO,5>P,5>POOQO-E;c-E;cOOQS7+&X7+&XOOQS7+&T7+&TOOQ#u<UQaO1G1uO$KsQ`O1G1uO$LOQ`O1G1yOOQO1G1y1G1yO$LTQ`O1G1uO$L]Q`O1G1uO$MrQ`O1G1zO>UQaO1G1zOOQO,5>V,5>VOOQO-E;i-E;iOOQS<`OOQ#u-E;r-E;rOhQaO<aOOQO-E;s-E;sO!&WQdO<g,5>gOOQO-E;y-E;yO!&WQdO<UQaO,5;TOOQ#uANAzANAzO#KmQ`OANAzOOQ#uANAwANAwO!-xQ`OANAwO%)vQ`O7+'aO>UQaO7+'aOOQO7+'e7+'eO%+]Q`O7+'aO%+hQ`O7+'eO>UQaO7+'fO%+mQ`O7+'fO%-SQ`O'#HlO%-bQ`O,5?SO%-bQ`O,5?SOOQO1G1{1G1{O$+qQpOAN@dOOQSAN@dAN@dO0aQ`OAN@dO%-jQtOANCgO%-xQ`OAN@dO*kQaOAN@nO%.QQdOAN@nO%.bQpOAN@nOOQS,5>X,5>XOOQS-E;k-E;kOOQO1G2U1G2UO!&WQdO1G2UO$/dQpO1G2UO<_Q`O1G2SO!.YQdO1G2WO!&WQdO1G2SOOQO1G2W1G2WOOQO1G2S1G2SO%.jQaO'#GSOOQO1G2X1G2XOOQSAN@oAN@oOOOQ<UQaO<W,5>WO%6wQ`O,5>WOOQO-E;j-E;jO%6|Q`O1G4nOOQSG26OG26OO$+qQpOG26OO0aQ`OG26OO%7UQdOG26YO*kQaOG26YOOQO7+'p7+'pO!&WQdO7+'pO!&WQdO7+'nOOQO7+'r7+'rOOQO7+'n7+'nO%7fQ`OLD+tO%8uQ`O'#E}O%9PQ`O'#IZO!&WQdO'#HrO%:|QaO,5^,5>^OOQP-E;p-E;pOOQO1G2Y1G2YOOQ#uLD,bLD,bOOQTG27RG27RO!&WQdOLD,xO!&WQdO<wO&EPQdO1G0cO#.YQaO1G0cO&F{QdO1G1YO&HwQdO1G1[O#.YQaO1G1|O#.YQaO7+%sO&JsQdO7+%sO&LoQdO7+%}O#.YQaO7+'hO&NkQdO7+'hO'!gQdO<lQdO,5>wO(@nQdO1G0cO'.QQaO1G0cO(BpQdO1G1YO(DrQdO1G1[O'.QQaO1G1|O'.QQaO7+%sO(FtQdO7+%sO(HvQdO7+%}O'.QQaO7+'hO(JxQdO7+'hO(LzQdO<wO*1sQaO'#HdO*2TQ`O,5>vO*2]QdO1G0cO9yQaO1G0cO*4XQdO1G1YO*6TQdO1G1[O9yQaO1G1|O>UQaO'#HwO*8PQ`O,5=[O*8XQaO'#HbO*8cQ`O,5>tO9yQaO7+%sO*8kQdO7+%sO*:gQ`O1G0iO>UQaO1G0iO*;|QdO7+%}O9yQaO7+'hO*=xQdO7+'hO*?tQ`O,5>cO*AZQ`O,5=|O*BpQdO<UQaO'#FeO>UQaO'#FfO>UQaO'#FgO>UQaO'#FhO>UQaO'#FhO>UQaO'#FkO+'XQaO'#FwO>UQaO'#GVO>UQaO'#GYO+'`QaO,5:mO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO+'gQ`O'#I]O$8YQaO'#EaO+)PQaOG26YO$8YQaO'#I]O+*{Q`O'#I[O++TQaO,5:wO>UQaO,5;nO>UQaO,5;pO++[Q`O,5UQaO1G0XO+9hQ`O1G1]O+;TQ`O1G1]O+]Q`O1G1]O+?xQ`O1G1]O+AeQ`O1G1]O+CQQ`O1G1]O+DmQ`O1G1]O+FYQ`O1G1]O+GuQ`O1G1]O+IbQ`O1G1]O+J}Q`O1G1]O+LjQ`O1G1]O+NVQ`O1G1]O, rQ`O1G1]O,#_Q`O1G0cO>UQaO1G0cO,$zQ`O1G1YO,&gQ`O1G1[O,(SQ`O1G1|O>UQaO1G1|O>UQaO7+%sO,([Q`O7+%sO,)wQ`O7+%}O>UQaO7+'hO,+dQ`O7+'hO,+lQ`O7+'hO,-XQpO7+'hO,-aQ`O<UQaO<UQaOAN@nO,0qQ`OAN@nO,2^QpOAN@nO,2fQ`OG26YO>UQaOG26YO,4RQ`OLD+tO,5nQaO,5:}O>UQaO1G0iO,5uQ`O'#I]O$8YQaO'#FeO$8YQaO'#FfO$8YQaO'#FgO$8YQaO'#FhO$8YQaO'#FhO+)PQaO'#FhO$8YQaO'#FkO,6SQaO'#FwO,6ZQaO'#FwO$8YQaO'#GVO+)PQaO'#GVO$8YQaO'#GYO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO,8YQ`O'#FlO>UQaO'#EaO>UQaO'#I]O,8bQaO,5:wO,8iQaO,5:wO$8YQaO,5;nO+)PQaO,5;nO$8YQaO,5;pO,:hQ`O,5wO-IcQ`O1G0cO-KOQ`O1G0cO$8YQaO1G0cO+)PQaO1G0cO-L_Q`O1G1YO-MzQ`O1G1YO. ZQ`O1G1[O$8YQaO1G1|O$8YQaO7+%sO+)PQaO7+%sO.!vQ`O7+%sO.$cQ`O7+%sO.%rQ`O7+%}O.'_Q`O7+%}O$8YQaO7+'hO.(nQ`O7+'hO.*ZQ`O<fQ`O,5>wO.@RQ`O1G1|O!%WQ`O1G1|O0aQ`O1G1|O0aQ`O7+'hO.@ZQ`O7+'hO.@cQpO7+'hO.@kQpO<UO#X&PO~P>UO!o&SO!s&RO#b&RO~OPgOQ|OU^OW}O[8lOo=yOs#hOx8jOy8jO}`O!O]O!Q8pO!R}O!T8oO!U8kO!V8kO!Y8rO!c8iO!s&VO!y[O#U&WO#W_O#bhO#daO#ebO#peO$T8nO$]8mO$^8nO$aqO$z8qO${!OO$}}O%O}O%V|O'g{O~O!x'SP~PAOO!s&[O#b&[O~OT#TOz#RO!S#UO!b#VO!o!{O!v!yO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO~O!x&nO~PCqO!x'VX!}'VX#O'VX#X'VX!n'VXV'VX!q'VX#u'VX#w'VXw'VX~P&sO!y$hO#S&oO~Oo$mOs$lO~O!o&pO~O!}&sO#S;dO#U;cO!x'OP~P9yOT6iOz6gO!S6jO!b6kO!o!{O!v8sO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'PX#X'PX~O#O&tO~PGSO!}&wO#X'OX~O#X&yO~O!}'OO!x'QP~P9yO!n'PO~PCqO!m#oa!o#oa#S#oa#p#qX&s#oa!x#oa#O#oaw#oa~OT#oaz#oa!S#oa!b#oa!v#oa!y#oa#W#oa#`#oa#a#oa#s#oa#z#oa#{#oa#|#oa#}#oa$O#oa$Q#oa$R#oa$S#oa$T#oa$U#oa$V#oa$W#oa$z#oa!}#oa#X#oa!n#oaV#oa!q#oa#u#oa#w#oa~PIpO!s'RO~O!x'UO#l'SO~O!x'VX#l'VX#p#qX#S'VX#U'VX#b'VX!o'VX#O'VXw'VX!m'VX&s'VX~O#S'YO~P*kO!m$Xa&s$Xa!x$Xa!n$Xa~PCqO!m$Ya&s$Ya!x$Ya!n$Ya~PCqO!m$Za&s$Za!x$Za!n$Za~PCqO!m$[a&s$[a!x$[a!n$[a~PCqO!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO$z#dOT$[a!S$[a!b$[a!m$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a&s$[a!x$[a!n$[a~Oz#RO~PNyO!m$_a&s$_a!x$_a!n$_a~PCqO!y!}O!}$fX#X$fX~O!}'^O#X'ZX~O#X'`O~O!s$kO#S'aO~O]'cO~O!s'eO~O!s'fO~O$l'gO~O!`'mO#S'kO#U'lO#b'jO$drO!x'XP~P0aO!^'sO!oXO!q'rO~O!s'uO!y$hO~O!y$hO#S'wO~O!y$hO#S'yO~O#u'zO!m$sX!}$sX&s$sX~O!}'{O!m'bX&s'bX~O!m#cO&s#cO~O!q(PO#O(OO~O!m$ka&s$ka!x$ka!n$ka~PCqOl(ROw(SO!o(TO!y!}O~O!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO~OT$yaz$ya!S$ya!b$ya!m$ya!v$ya#S$ya#z$ya#{$ya#|$ya#}$ya$O$ya$Q$ya$R$ya$S$ya$T$ya$U$ya$V$ya$W$ya$z$ya&s$ya!x$ya!}$ya#O$ya#X$ya!n$ya!q$yaV$ya#u$ya#w$ya~P!'WO!m$|a&s$|a!x$|a!n$|a~PCqO#W([O#`(YO#a(YO&r(ZOR&gX!o&gX#b&gX#e&gX&q&gX'f&gX~O'f(_O~P8lO!q(`O~PhO!o(cO!q(dO~O!q(`O&s(gO~PhO!a(kO~O!m(lO~P9yOZ(wOn(xO~O!s(zO~OT6iOz6gO!S6jO!b6kO!v8sO!}({O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'jX&s'jX~P!'WO#u)PO~O!})QO!m'`X&s'`X~Ol(RO!o(TO~Ow(SO!o)WO!q)ZO~O!m#cO!oXO&s#cO~O!o%pO!s#yO~OV)aO!})_O!m'kX&s'kX~O])cOs)cO!s#gO#peO~O!o%pO!s#gO#p)hO~OT6iOz6gO!S6jO!b6kO!v8sO!})iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&|X&s&|X#O&|X~P!'WOl(ROw(SO!o(TO~O!i)oO&t)oO~OT8vOz8tO!S8wO!b8xO!q)pO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#X)rO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!n)rO~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'TX!}'TX~P!'WOT'VXz'VX!S'VX!b'VX!o'VX!v'VX!y'VX#S'VX#W'VX#`'VX#a'VX#p#qX#s'VX#z'VX#{'VX#|'VX#}'VX$O'VX$Q'VX$R'VX$S'VX$T'VX$U'VX$V'VX$W'VX$z'VX~O!q)tO!x'VX!}'VX~P!5xO!x#iX!}#iX~P>UO!})vO!x'SX~O!x)xO~O$z#dOT#yiz#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi$W#yi&s#yi!x#yi!}#yi#O#yi#X#yi!n#yi!q#yiV#yi#u#yi#w#yi~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi&s#yi!x#yi!n#yi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!b#VO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi~P!'WOz#RO$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi~P!'WO_)yO~P9yO!x)|O~O#S*PO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Ta#X#Ta#O#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'Pa#X'Pa#O'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WO#S#oO#U#nO!}&WX#X&WX~P9yO!}&wO#X'Oa~O#X*SO~OT6iOz6gO!S6jO!b6kO!v8sO!}*UO#O*TO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'QX~P!'WO!}*UO!x'QX~O!x*WO~O!m#oi!o#oi#S#oi#p#qX&s#oi!x#oi#O#oiw#oi~OT#oiz#oi!S#oi!b#oi!v#oi!y#oi#W#oi#`#oi#a#oi#s#oi#z#oi#{#oi#|#oi#}#oi$O#oi$Q#oi$R#oi$S#oi$T#oi$U#oi$V#oi$W#oi$z#oi!}#oi#X#oi!n#oiV#oi!q#oi#u#oi#w#oi~P#*zO#l'SO!x#ka#S#ka#U#ka#b#ka!o#ka#O#kaw#ka!m#ka&s#ka~OPgOQ|OU^OW}O[4OOo5xOs#hOx3zOy3zO}`O!O]O!Q2^O!R}O!T4UO!U3|O!V3|O!Y2`O!c3xO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4SO$]4QO$^4SO$aqO$z2_O${!OO$}}O%O}O%V|O'g{O~O#l#oa#U#oa#b#oa~PIpOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pi!S#Pi!b#Pi!m#Pi&s#Pi!x#Pi!n#Pi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#vi!S#vi!b#vi!m#vi&s#vi!x#vi!n#vi~P!'WO!m#xi&s#xi!x#xi!n#xi~PCqO!s#gO#peO!}&^X#X&^X~O!}'^O#X'Za~O!s'uO~Ow(SO!o)WO!q*fO~O!s*jO~O#S*lO#U*mO#b*kO#l'SO~O#S*lO#U*mO#b*kO$drO~P0aO#u*oO!x$cX!}$cX~O#U*mO#b*kO~O#b*pO~O#b*rO~P0aO!}*sO!x'XX~O!x*uO~O!y*wO~O!^*{O!oXO!q*zO~O!q*}O!o'ci!m'ci&s'ci~O!q+QO#O+PO~O#b$nO!m&eX!}&eX&s&eX~O!}'{O!m'ba&s'ba~OT$kiz$ki!S$ki!b$ki!m$ki!o$ki!v$ki!y$ki#S$ki#W$ki#`$ki#a$ki#s$ki#u#fa#w#fa#z$ki#{$ki#|$ki#}$ki$O$ki$Q$ki$R$ki$S$ki$T$ki$U$ki$V$ki$W$ki$z$ki&s$ki!x$ki!}$ki#O$ki#X$ki!n$ki!q$kiV$ki~OS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n+hO#b$nO$aqO$drO~P0aO!s+lO~O#W+nO#`+mO#a+mO~O!s+pO#b+pO$}+pO%T+oO~O!n+qO~PCqOc%XXd%XXh%XXj%XXf%XXg%XXe%XX~PhOc+uOd+sOP%WiQ%WiS%WiU%WiW%WiX%Wi[%Wi]%Wi^%Wi`%Wia%Wib%Wik%Wim%Wio%Wip%Wiq%Wis%Wit%Wiu%Wiv%Wix%Wiy%Wi|%Wi}%Wi!O%Wi!P%Wi!Q%Wi!R%Wi!T%Wi!U%Wi!V%Wi!W%Wi!X%Wi!Y%Wi!Z%Wi![%Wi!]%Wi!^%Wi!`%Wi!a%Wi!c%Wi!m%Wi!o%Wi!s%Wi!y%Wi#W%Wi#b%Wi#d%Wi#e%Wi#p%Wi$T%Wi$]%Wi$^%Wi$a%Wi$d%Wi$l%Wi$z%Wi${%Wi$}%Wi%O%Wi%V%Wi&p%Wi'g%Wi&t%Wi!n%Wih%Wij%Wif%Wig%WiY%Wi_%Wii%Wie%Wi~Oc+yOd+vOh+xO~OY+zO_+{O!n,OO~OY+zO_+{Oi%^X~Oi,QO~Oj,RO~O!m,TO~P9yO!m,VO~Of,WO~OT6iOV,XOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOg,YO~O!y,ZO~OZ(wOn(xOP%liQ%liS%liU%liW%liX%li[%li]%li^%li`%lia%lib%lik%lim%lio%lip%liq%lis%lit%liu%liv%lix%liy%li|%li}%li!O%li!P%li!Q%li!R%li!T%li!U%li!V%li!W%li!X%li!Y%li!Z%li![%li!]%li!^%li!`%li!a%li!c%li!m%li!o%li!s%li!y%li#W%li#b%li#d%li#e%li#p%li$T%li$]%li$^%li$a%li$d%li$l%li$z%li${%li$}%li%O%li%V%li&p%li'g%li&t%li!n%lic%lid%lih%lij%lif%lig%liY%li_%lii%lie%li~O#u,_O~O!}({O!m%da&s%da~O!x,bO~O!s%dO!m&dX!}&dX&s&dX~O!})QO!m'`a&s'`a~OS+^OY,iOm+^Os$aO!^+dO!_+^O!`+^O$aqO$drO~O!n,lO~P#JwO!o)WO~O!o%pO!s'RO~O!s#gO#peO!m&nX!}&nX&s&nX~O!})_O!m'ka&s'ka~O!s,rO~OV,sO!n%|X!}%|X~O!},uO!n'lX~O!n,wO~O!m&UX!}&UX&s&UX#O&UX~P9yO!})iO!m&|a&s&|a#O&|a~Oz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq&s!uq!x!uq!n!uq~P!'WO!n,|O~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#ia!}#ia~P!'WO!x&YX!}&YX~PAOO!})vO!x'Sa~O#O-QO~O!}-RO!n&{X~O!n-TO~O!x-UO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vi#X#Vi~P!'WO!x&XX!}&XX~P9yO!}*UO!x'Qa~O!x-[O~OT#jqz#jq!S#jq!b#jq!m#jq!v#jq#S#jq#u#jq#w#jq#z#jq#{#jq#|#jq#}#jq$O#jq$Q#jq$R#jq$S#jq$T#jq$U#jq$V#jq$W#jq$z#jq&s#jq!x#jq!}#jq#O#jq#X#jq!n#jq!q#jqV#jq~P!'WO#l#oi#U#oi#b#oi~P#*zOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pq!S#Pq!b#Pq!m#Pq&s#Pq!x#Pq!n#Pq~P!'WO#u-dO!x$ca!}$ca~O#U-fO#b-eO~O#b-gO~O#S-hO#U-fO#b-eO#l'SO~O#b-jO#l'SO~O#u-kO!x$ha!}$ha~O!`'mO#S'kO#U'lO#b'jO$drO!x&_X!}&_X~P0aO!}*sO!x'Xa~O!oXO#l'SO~O#S-pO#b-oO!x'[P~O!oXO!q-rO~O!q-uO!o'cq!m'cq&s'cq~O!^-wO!oXO!q-rO~O!q-{O#O-zO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$si!}$si&s$si~P!'WO!m$jq&s$jq!x$jq!n$jq~PCqO#O-zO#l'SO~O!}-|Ow']X!o']X!m']X&s']X~O#b$nO#l'SO~OS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aOS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aOS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n.ZO#b$nO$aqO$drO~P0aO!s.^O~O!s._O#b._O$}._O%T+oO~O$}.`O~O#X.aO~Oc%Xad%Xah%Xaj%Xaf%Xag%Xae%Xa~PhOc.dOd+sOP%WqQ%WqS%WqU%WqW%WqX%Wq[%Wq]%Wq^%Wq`%Wqa%Wqb%Wqk%Wqm%Wqo%Wqp%Wqq%Wqs%Wqt%Wqu%Wqv%Wqx%Wqy%Wq|%Wq}%Wq!O%Wq!P%Wq!Q%Wq!R%Wq!T%Wq!U%Wq!V%Wq!W%Wq!X%Wq!Y%Wq!Z%Wq![%Wq!]%Wq!^%Wq!`%Wq!a%Wq!c%Wq!m%Wq!o%Wq!s%Wq!y%Wq#W%Wq#b%Wq#d%Wq#e%Wq#p%Wq$T%Wq$]%Wq$^%Wq$a%Wq$d%Wq$l%Wq$z%Wq${%Wq$}%Wq%O%Wq%V%Wq&p%Wq'g%Wq&t%Wq!n%Wqh%Wqj%Wqf%Wqg%WqY%Wq_%Wqi%Wqe%Wq~Oc.iOd+vOh.hO~O!q(`O~OP6]OQ|OU^OW}O[:fOo>ROs#hOx:dOy:dO}`O!O]O!Q:kO!R}O!T:jO!U:eO!V:eO!Y:oO!c8gO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:hO$]:gO$^:hO$aqO$z:mO${!OO$}}O%O}O%V|O'g{O~O!m.lO!q.lO~OY+zO_+{O!n.nO~OY+zO_+{Oi%^a~O!x.rO~P>UO!m.tO~O!m.tO~P9yOQ|OW}O!R}O$}}O%O}O%V|O'g{O~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&ka!}&ka&s&ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$qi!}$qi&s$qi~P!'WOS+^Om+^Os$aO!_+^O!`+^O$aqO$drO~OY/PO~P$?VOS+^Om+^Os$aO!_+^O!`+^O$aqO~O!s/QO~O!n/SO~P#JwOw(SO!o)WO#l'SO~OV/VO!m&na!}&na&s&na~O!})_O!m'ki&s'ki~O!s/XO~OV/YO!n%|a!}%|a~O]/[Os/[O!s#gO#peO!n&oX!}&oX~O!},uO!n'la~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&Ua!}&Ua&s&Ua#O&Ua~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy&s!uy!x!uy!n!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#hi!}#hi~P!'WO_)yO!n&VX!}&VX~P9yO!}-RO!n&{a~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vq#X#Vq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#[i!}#[i~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O/cO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x&Xa!}&Xa~P!'WO#u/iO!x$ci!}$ci~O#b/jO~O#U/lO#b/kO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$ci!}$ci~P!'WO#u/mO!x$hi!}$hi~O!}/oO!x'[X~O#b/qO~O!x/rO~O!oXO!q/uO~O#l'SO!o'cy!m'cy&s'cy~O!m$jy&s$jy!x$jy!n$jy~PCqO#O/xO#l'SO~O!s#gO#peOw&aX!o&aX!}&aX!m&aX&s&aX~O!}-|Ow']a!o']a!m']a&s']a~OU$PO]0QO!R$PO!s$OO!v#}O#b$nO#p2XO~P$?uO!m#cO!o0VO&s#cO~O#X0YO~Oh0_O~OT:tOz:pO!S:vO!b:xO!m0`O!q0`O!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO~P!'WOY%]a_%]a!n%]ai%]a~PhO!x0bO~O!x0bO~P>UO!m0dO~OT6iOz6gO!S6jO!b6kO!v8sO!x0fO#O0eO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WO!x0fO~O!x0gO#b0hO#l'SO~O!x0iO~O!s0jO~O!m#cO#u0lO&s#cO~O!s0mO~O!})_O!m'kq&s'kq~O!s0nO~OV0oO!n%}X!}%}X~OT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!n!|i!}!|i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cq!}$cq~P!'WO#u0vO!x$cq!}$cq~O#b0wO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hq!}$hq~P!'WO#S0zO#b0yO!x&`X!}&`X~O!}/oO!x'[a~O#l'SO!o'c!R!m'c!R&s'c!R~O!oXO!q1PO~O!m$j!R&s$j!R!x$j!R!n$j!R~PCqO#O1RO#l'SO~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1^O!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOh1_O~OY%[i_%[i!n%[ii%[i~PhOY%]i_%]i!n%]ii%]i~PhO!x1bO~O!x1bO~P>UO!x1eO~O!m#cO#u1iO&s#cO~O$}1jO%V1jO~O!s1kO~OV1lO!n%}a!}%}a~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#]i!}#]i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cy!}$cy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hy!}$hy~P!'WO#b1nO~O!}/oO!x'[i~O!m$j!Z&s$j!Z!x$j!Z!n$j!Z~PCqOT:uOz:qO!S:wO!b:yO!v=nO#S#QO#z:sO#{:{O#|:}O#};PO$O;RO$Q;VO$R;XO$S;ZO$T;]O$U;_O$V;aO$W;aO$z#dO~P!'WOV1uO{1tO~P!5xOV1uO{1tOT&}Xz&}X!S&}X!b&}X!o&}X!v&}X!y&}X#S&}X#W&}X#`&}X#a&}X#s&}X#u&}X#w&}X#z&}X#{&}X#|&}X#}&}X$O&}X$Q&}X$R&}X$S&}X$T&}X$U&}X$V&}X$W&}X$z&}X~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1xO!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOY%[q_%[q!n%[qi%[q~PhO!x1zO~O!x%gi~PCqOe1{O~O$}1|O%V1|O~O!s2OO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$c!R!}$c!R~P!'WO!m$j!c&s$j!c!x$j!c!n$j!c~PCqO!s2QO~O!`2SO!s2RO~O!s2VO!m$xi&s$xi~O!s'WO~O!s*]O~OT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$ka#u$ka#w$ka&s$ka!x$ka!n$ka!q$ka#X$ka!}$ka~P!'WO#S2]O~P*kO$l$tO~P#.YOT6iOz6gO!S6jO!b6kO!v8sO#O2[O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX&s'PX!x'PX!n'PX~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O3uO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'PX#X'PX#u'PX#w'PX!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~P!'WO#S3dO~P#.YOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Xa#u$Xa#w$Xa&s$Xa!x$Xa!n$Xa!q$Xa#X$Xa!}$Xa~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Ya#u$Ya#w$Ya&s$Ya!x$Ya!n$Ya!q$Ya#X$Ya!}$Ya~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Za#u$Za#w$Za&s$Za!x$Za!n$Za!q$Za#X$Za!}$Za~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$[a#u$[a#w$[a&s$[a!x$[a!n$[a!q$[a#X$[a!}$[a~P!'WOz2aO#u$[a#w$[a!q$[a#X$[a!}$[a~PNyOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$_a#u$_a#w$_a&s$_a!x$_a!n$_a!q$_a#X$_a!}$_a~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$|a#u$|a#w$|a&s$|a!x$|a!n$|a!q$|a#X$|a!}$|a~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#Ta#u#Ta#w#Ta&s#Ta!x#Ta!n#Ta!q#Ta#X#Ta!}#Ta~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m'Pa#u'Pa#w'Pa&s'Pa!x'Pa!n'Pa!q'Pa#X'Pa!}'Pa~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pi!S#Pi!b#Pi!m#Pi#u#Pi#w#Pi&s#Pi!x#Pi!n#Pi!q#Pi#X#Pi!}#Pi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#vi!S#vi!b#vi!m#vi#u#vi#w#vi&s#vi!x#vi!n#vi!q#vi#X#vi!}#vi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#xi#u#xi#w#xi&s#xi!x#xi!n#xi!q#xi#X#xi!}#xi~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq#u!uq#w!uq&s!uq!x!uq!n!uq!q!uq#X!uq!}!uq~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pq!S#Pq!b#Pq!m#Pq#u#Pq#w#Pq&s#Pq!x#Pq!n#Pq!q#Pq#X#Pq!}#Pq~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jq#u$jq#w$jq&s$jq!x$jq!n$jq!q$jq#X$jq!}$jq~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy#u!uy#w!uy&s!uy!x!uy!n!uy!q!uy#X!uy!}!uy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jy#u$jy#w$jy&s$jy!x$jy!n$jy!q$jy#X$jy!}$jy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!R#u$j!R#w$j!R&s$j!R!x$j!R!n$j!R!q$j!R#X$j!R!}$j!R~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!Z#u$j!Z#w$j!Z&s$j!Z!x$j!Z!n$j!Z!q$j!Z#X$j!Z!}$j!Z~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!c#u$j!c#w$j!c&s$j!c!x$j!c!n$j!c!q$j!c#X$j!c!}$j!c~P!'WOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S3vO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lO#u2uO#w2vO!q&zX#X&zX!}&zX~P0rOP6]OU^O[4POo8^Or2wOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S2tO#U2sO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!v#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX&s#xX!x#xX!n#xX!q#xX#X#xX!}#xX~P$;lOP6]OU^O[4POo8^Or4xOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S4uO#U4tO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!o#xX!v#xX!}#xX#O#xX#X#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!m#xX&s#xX!x#xX!n#xXV#xX!q#xX~P$;lO!q3PO~P>UO!q5}O#O3gO~OT8vOz8tO!S8wO!b8xO!q3hO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q6OO#O3kO~O!q6PO#O3oO~O#O3oO#l'SO~O#O3pO#l'SO~O#O3sO#l'SO~OP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$l$tO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S5eO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Xa#O$Xa#X$Xa#u$Xa#w$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Ya#O$Ya#X$Ya#u$Ya#w$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Za#O$Za#X$Za#u$Za#w$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$[a#O$[a#X$[a#u$[a#w$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz4dO!}$[a#O$[a#X$[a#u$[a#w$[aV$[a!q$[a~PNyOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$_a#O$_a#X$_a#u$_a#w$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$|a#O$|a#X$|a#u$|a#w$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#Ta#O#Ta#X#Ta#u#Ta#w#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'Pa#O'Pa#X'Pa#u'Pa#w'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi#u#Pi#w#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi#u#vi#w#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#xi#O#xi#X#xi#u#xi#w#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq#u!uq#w!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq#u#Pq#w#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jq#O$jq#X$jq#u$jq#w$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy#u!uy#w!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jy#O$jy#X$jy#u$jy#w$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!R#O$j!R#X$j!R#u$j!R#w$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!Z#O$j!Z#X$j!Z#u$j!Z#w$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!c#O$j!c#X$j!c#u$j!c#w$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S5wO~P#.YO!y$hO#S5{O~O!x4ZO#l'SO~O!y$hO#S5|O~OT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$ka#O$ka#X$ka#u$ka#w$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O5vO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!m'PX#u'PX#w'PX&s'PX!x'PX!n'PX!q'PX#X'PX!}'PX~P!'WO#u4vO#w4wO!}&zX#O&zX#X&zXV&zX!q&zX~P0rO!q5QO~P>UO!q8bO#O5hO~OT8vOz8tO!S8wO!b8xO!q5iO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q8cO#O5lO~O!q8dO#O5pO~O#O5pO#l'SO~O#O5qO#l'SO~O#O5tO#l'SO~O$l$tO~P9yOo5zOs$lO~O#S7oO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Xa#O$Xa#X$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Ya#O$Ya#X$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Za#O$Za#X$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$[a#O$[a#X$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz6gO!}$[a#O$[a#X$[aV$[a!q$[a~PNyOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$_a#O$_a#X$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$ka#O$ka#X$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$|a#O$|a#X$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7sO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'jX~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7uO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&|X~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WO#S7zO~P>UO!m#Ta&s#Ta!x#Ta!n#Ta~PCqO!m'Pa&s'Pa!x'Pa!n'Pa~PCqO#S;dO#U;cO!x&WX!}&WX~P9yO!}7lO!x'Oa~Oz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#xi#O#xi#X#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WO!}7sO!x%da~O!x&UX!}&UX~P>UO!}7uO!x&|a~Oz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vi!}#Vi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jq#O$jq#X$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&ka!}&ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&Ua!}&Ua~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vq!}#Vq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jy#O$jy#X$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!R#O$j!R#X$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!Z#O$j!Z#X$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!c#O$j!c#X$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S8[O~P9yO#O8ZO!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~PGSO!y$hO#S8`O~O!y$hO#S8aO~O#u6zO#w6{O!}&zX#O&zX#X&zXV&zX!q&zX~P0rOr6|O#S#oO#U#nO!}#xX#O#xX#X#xXV#xX!q#xX~P2yOr;iO#S9XO#U9VOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!n#xX!}#xX~P9yOr9WO#S9WO#U9WOT#xXz#xX!S#xX!b#xX!o#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX~P9yOr9]O#S;dO#U;cOT#xXz#xX!S#xX!b#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX#X#xX!x#xX!}#xX~P9yO$l$tO~P>UO!q7XO~P>UOT6iOz6gO!S6jO!b6kO!v8sO#O7iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'PX!}'PX~P!'WOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lO!}7lO!x'OX~O#S9yO~P>UOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Xa#X$Xa!x$Xa!}$Xa~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Ya#X$Ya!x$Ya!}$Ya~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Za#X$Za!x$Za!}$Za~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$[a#X$[a!x$[a!}$[a~P!'WOz8tO$z#dOT$[a!S$[a!b$[a!q$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a#X$[a!x$[a!}$[a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$_a#X$_a!x$_a!}$_a~P!'WO!q=dO#O7rO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$ka#X$ka!x$ka!}$ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$|a#X$|a!x$|a!}$|a~P!'WOT8vOz8tO!S8wO!b8xO!q7wO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi#X#yi!x#yi!}#yi~P!'WOz8tO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pi!S#Pi!b#Pi!q#Pi#X#Pi!x#Pi!}#Pi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#vi!S#vi!b#vi!q#vi#X#vi!x#vi!}#vi~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q#xi#X#xi!x#xi!}#xi~P!'WO!q=eO#O7|O~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uq!S!uq!b!uq!q!uq!v!uq#X!uq!x!uq!}!uq~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pq!S#Pq!b#Pq!q#Pq#X#Pq!x#Pq!}#Pq~P!'WO!q=iO#O8TO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jq#X$jq!x$jq!}$jq~P!'WO#O8TO#l'SO~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uy!S!uy!b!uy!q!uy!v!uy#X!uy!x!uy!}!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jy#X$jy!x$jy!}$jy~P!'WO#O8UO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!R#X$j!R!x$j!R!}$j!R~P!'WO#O8XO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!Z#X$j!Z!x$j!Z!}$j!Z~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!c#X$j!c!x$j!c!}$j!c~P!'WO#S:bO~P>UO#O:aO!q'PX!x'PX~PGSO$l$tO~P$8YOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$l$tO$z:nO${!OO~P$;lOo8_Os$lO~O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#S=UO#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOT6iOz6gO!S6jO!b6kO!v8sO#O=SO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O=RO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX!q'PX!n'PX!}'PX~P!'WOT&zXz&zX!S&zX!b&zX!o&zX!q&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX!}&zX~O#u9ZO#w9[O#X&zX!x&zX~P.8oO!y$hO#S=^O~O!q9hO~P>UO!y$hO#S=cO~O!q>OO#O9}O~OT8vOz8tO!S8wO!b8xO!q:OO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m#Ta!q#Ta!n#Ta!}#Ta~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m'Pa!q'Pa!n'Pa!}'Pa~P!'WO!q>PO#O:RO~O!q>QO#O:YO~O#O:YO#l'SO~O#O:ZO#l'SO~O#O:_O#l'SO~O#u;eO#w;gO!m&zX!n&zX~P.8oO#u;fO#w;hOT&zXz&zX!S&zX!b&zX!o&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX~O!q;tO~P>UO!q;uO~P>UO!q>XO#OYO#O9WO~OT8vOz8tO!S8wO!b8xO!qZO#O[O#O<{O~O#O<{O#l'SO~O#O9WO#l'SO~O#O<|O#l'SO~O#O=PO#l'SO~O!y$hO#S=|O~Oo=[Os$lO~O!y$hO#S=}O~O!y$hO#S>UO~O!y$hO#S>VO~O!y$hO#S>WO~Oo={Os$lO~Oo>TOs$lO~Oo>SOs$lO~O%O$U$}$d!d$V#b%V#e'g!s#d~",goto:"%&y'mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'nP'uPP'{(OPPP(hP(OP(O*ZP*ZPP2W:j:mPP*Z:sBpPBsPBsPP:sCSCVCZ:s:sPPPC^PP:sK^!$S!$S:s!$WP!$W!$W!%UP!.]!7pP!?oP*ZP*Z*ZPPPPP!?rPPPPPPP*Z*Z*Z*ZPP*Z*ZP!E]!GRP!GV!Gy!GR!GR!HP*Z*ZP!HY!Hl!Ib!J`!Jd!J`!Jo!J}!J}!KV!KY!KY*ZPP*ZPP!K^#%[#%[#%`P#%fP(O#%j(O#&S#&V#&V#&](O#&`(O(O#&f#&i(O#&r#&u(O(O(O(O(O#&x(O(O(O(O(O(O(O(O(O#&{!KR(O(O#'_#'o#'r(O(OP#'u#'|#(S#(o#(y#)P#)Z#)b#)h#*d#4X#5T#5Z#5a#5k#5q#5w#6]#6c#6i#6o#6u#6{#7R#7]#7g#7m#7s#7}PPPPPPPP#8T#8X#8}#NO#NR#N]$(f$(r$)X$)_$)b$)e$)k$,X$5v$>_$>b$>h$>k$>n$>w$>{$?X$?k$Bk$CO$C{$K{PP%%y%%}%&Z%&p%&vQ!nQT!qV!rQUOR%x!mRVO}!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a|!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ%^!ZQ%g!aQ%l!eQ'd$dQ'q$iQ)[%kQ*y'tQ,](xU-n*v*x+OQ.W+cQ.{,[S/t-s-tQ0T.SS0}/s/wQ1V0RQ1o1OR2P1p0u!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3ZfPVX[_bgjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#}$R$S$U$h$y$}%P%R%S%T%U%c%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)_)c)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3scPVX[_bdegjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#{#}$R$S$U$h$y$}%P%R%S%T%U%c%m%n%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)^)_)c)g)h)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u,x-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2W2X2Y2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[0phPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0`0a0d0e0i0v1R1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uRS=p>S>VS=s>T>UR=t>WT'n$h*s!csPVXt!S!j!r!s!w$h$}%P%S%U'i(T(`)W*s+]+g+r+u,g,k.b.d.l0`0a0i1aQ$^rR*`'^Q*x'sQ-t*{R/w-wQ(W$tQ)U%hQ)n%vQ*i'fQ+k(XR-c*jQ(V$tQ)Y%jQ)m%vQ*e'eS*h'f)nS+j(W(XS-b*i*jQ.]+kQ/T,mQ/e-`R/g-cQ(U$tQ)T%hQ)V%iQ)l%vU*g'f)m)nU+i(V(W(XQ,f)UU-a*h*i*jS.[+j+kS/f-b-cQ0X.]R0t/gT+e(T+g[%e!_$b'c+a.R0QR,d)Qb$ov(T+[+]+`+g.P.Q0PR+T'{S+e(T+gT,j)W,kR0W.XT1[0V1]0w|PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[R2Y2X|tPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aW$`t'i+],gS'i$h*sS+](T+gT,g)W,kQ'_$^R*a'_Q*t'oR-m*tQ/p-oS0{/p0|R0|/qQ-}+XR/|-}Q+g(TR.Y+gS+`(T+gS,h)W,kQ.Q+]W.T+`,h.Q/OR/O,gQ)R%eR,e)RQ'|$oR+U'|Q1]0VR1w1]Q${{R(^${Q+t(aR.c+tQ+w(bR.g+wQ+}(cQ,P(dT.m+},PQ(|%`S,a(|7tR7t7VQ(y%^R,^(yQ,k)WR/R,kQ)`%oS,q)`/WR/W,rQ,v)dR/^,vT!uV!rj!iPVX!j!r!s!w(`+r.l0`0a1aQ%Q!SQ(a$}W(h%P%S%U0iQ.e+uQ0Z.bR0[.d|ZPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ#f[U#m_#s&wQ#wbQ$VkQ$WlQ$XmQ$YnQ$ZoQ$[pQ$sx^$uy2_4b6e8q:m:nQ$vzQ%W!WQ%Y!XQ%[!YW%`!]%R(l,VU%s!g&p-RQ%|!yQ&O!zQ&Q!{S&U!})v^&^#R2a4d6g8t:p:qQ&_#SQ&`#TQ&a#UQ&b#VQ&c#WQ&d#XQ&e#YQ&f#ZQ&g#[Q&h#]Q&i#^Q&j#_Q&k#`Q&l#aQ&m#bQ&u#nQ&v#oS&{#t'OQ'X$RQ'Z$SQ'[$UQ(]$yQ(p%TQ)q%}Q)s&SQ)u&WQ*O&tS*['U4ZQ*^'Y^*_2[3u5v8Z:a=R=SQ+S'zQ+V(OQ,`({Q,c)PQ,y)iQ,{)pQ,})tQ-V*PQ-W*TQ-X*U^-]2]3v5w8[:b=T=UQ-i*oQ-x+PQ.k+zQ.w,XQ/`-QQ/h-dQ/n-kQ/y-zQ0r/cQ0u/iQ0x/mQ1Q/xU1X0V1]9WQ1d0eQ1m0vQ1q1RQ2Z2^Q2qjQ2r3yQ2x3zQ2y3|Q2z4OQ2{4QQ2|4SQ2}4UQ3O2`Q3Q2bQ3R2cQ3S2dQ3T2eQ3U2fQ3V2gQ3W2hQ3X2iQ3Y2jQ3Z2kQ3[2lQ3]2mQ3^2nQ3_2oQ3`2pQ3a2sQ3b2tQ3c2uQ3e2vQ3f2wQ3i3PQ3j3dQ3l3gQ3m3hQ3n3kQ3q3oQ3r3pQ3t3sQ4Y4WQ4y3{Q4z3}Q4{4PQ4|4RQ4}4TQ5O4VQ5P4cQ5R4eQ5S4fQ5T4gQ5U4hQ5V4iQ5W4jQ5X4kQ5Y4lQ5Z4mQ5[4nQ5]4oQ5^4pQ5_4qQ5`4rQ5a4sQ5b4tQ5c4uQ5d4vQ5f4wQ5g4xQ5j5QQ5k5eQ5m5hQ5n5iQ5o5lQ5r5pQ5s5qQ5u5tQ6Q4aQ6R3xQ6V6TQ6}6^Q7O6_Q7P6`Q7Q6aQ7R6bQ7S6cQ7T6dQ7U6fU7V,T.t0dQ7W%cQ7Y6hQ7Z6iQ7[6jQ7]6kQ7^6lQ7_6mQ7`6nQ7a6oQ7b6pQ7c6qQ7d6rQ7e6sQ7f6tQ7g6uQ7h6vQ7j6xQ7k6yQ7n6zQ7p6{Q7q6|Q7x7XQ7y7iQ7{7oQ7}7rQ8O7sQ8P7uQ8Q7wQ8R7zQ8S7|Q8V8TQ8W8UQ8Y8XQ8]8fU9U#k&s7lQ9^8jQ9_8kQ9`8lQ9a8mQ9b8nQ9c8oQ9e8pQ9f8rQ9g8sQ9i8uQ9j8vQ9k8wQ9l8xQ9m8yQ9n8zQ9o8{Q9p8|Q9q8}Q9r9OQ9s9PQ9t9QQ9u9RQ9v9SQ9w9TQ9x9ZQ9z9[Q9{9]Q:P9hQ:Q9yQ:T9}Q:V:OQ:W:RQ:[:YQ:^:ZQ:`:_Q:c8iQ;j:dQ;k:eQ;l:fQ;m:gQ;n:hQ;o:iQ;p:jQ;q:kQ;r:lQ;s:oQ;v:rQ;w:sQ;x:tQ;y:uQ;z:vQ;{:wQ;|:xQ;}:yQOQ=h>PQ=j>QQ=u>XQ=v>YQ=w>ZR=x>[0t!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[S$]r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,p)_Q,t)cQ/Z,uQ/{-|R0p/[|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[YO],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l8V<%lO9mR>YP;=`<%l8VR>dV!yQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV?QV!xU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR?nY&wP$VQOY$zYZ%fZz$zz{@^{!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR@eW$WQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRAUY$TQ&wPOY$zYZ%fZ{$z{|At|!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRA{V$zQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRBiV!}Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_CXZ$TQ%TW&wPOY$zYZ%fZ}$z}!OAt!O!^$z!^!_%k!_!`6U!`!aCz!a;'S$z;'S;=`&W<%lO$zVDRV#`U&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVDo[&wP$UQOY$zYZ%fZ!O$z!O!PEe!P!Q$z!Q![Fs![!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVEjX&wPOY$zYZ%fZ!O$z!O!PFV!P!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVF^V#UU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRFz_&wP%OQOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#SJc#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zRHO]&wPOY$zYZ%fZ{$z{|Hw|}$z}!OHw!O!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRH|X&wPOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRIpZ&wP%OQOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_#R$z#R#SHw#S;'S$z;'S;=`&W<%lO$zRJhX&wPOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVK[[&wP$VQOY$zYZ%fZz$zz{LQ{!P$z!P!Q,o!Q!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVLVX&wPOYLQYZLrZzLQz{N_{!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQVLwT&wPOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMZTOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMmVOzMWz{Mj{!PMW!P!QNS!Q;'SMW;'S;=`NX<%lOMWUNXO!eUUN[P;=`<%lMWVNdZ&wPOYLQYZLrZzLQz{N_{!PLQ!P!Q! V!Q!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQV! ^V!eU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV! vZOYLQYZLrZzLQz{N_{!aLQ!a!bMW!b;'SLQ;'S;=`!!i<%l~LQ~OLQ~~%fV!!lP;=`<%lLQZ!!vm&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!d$z!d!e!&o!e!g$z!g!hGy!h!q$z!q!r!(a!r!z$z!z!{!){!{#R$z#R#S!%}#S#U$z#U#V!&o#V#X$z#X#YGy#Y#c$z#c#d!(a#d#l$z#l#m!){#m;'S$z;'S;=`&W<%lO$zZ!$xa&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#S!%}#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zZ!&SX&wPOY$zYZ%fZ!Q$z!Q![!$q![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!&tY&wPOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!'k[&wP$}YOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_#R$z#R#S!&o#S;'S$z;'S;=`&W<%lO$zZ!(fX&wPOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!)YZ&wP$}YOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_#R$z#R#S!(a#S;'S$z;'S;=`&W<%lO$zZ!*Q]&wPOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zZ!+Q_&wP$}YOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#R$z#R#S!){#S#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zR!,WX!qQ&wPOY$zYZ%fZ![$z![!]!,s!]!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!,zV#sQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!-hV!mU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!.S[$RQOY$zYZ%fZ!^$z!^!_!.x!_!`!/i!`!a*c!a!b!0]!b;'S$z;'S;=`&W<%l~$z~O$z~~%fR!/PW$SQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!/pX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a*c!a;'S$z;'S;=`&W<%lO$zP!0bR!iP!_!`!0k!r!s!0p#d#e!0pP!0pO!iPP!0sQ!j!k!0y#[#]!0yP!0|Q!r!s!0k#d#e!0kV!1ZX#uQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`!a!1v!a;'S$z;'S;=`&W<%lO$zV!1}V#OU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!2kX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`!3W!`!a!.x!a;'S$z;'S;=`&W<%lO$zR!3_V$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!3{[!vQ&wPOY$zYZ%fZ}$z}!O!4q!O!^$z!^!_%k!_!`$z!`!a!6P!a!b!6m!b;'S$z;'S;=`&W<%lO$zV!4vX&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a!5c!a;'S$z;'S;=`&W<%lO$zV!5jV#aU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!6WV!gU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!6tW#zQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!7eV$]Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!8Ra&wP!s^OY$zYZ%fZ!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$z_!9_e&wP!s^OY$zYZ%fZr$zrs!:psw$zwx8Vx!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$zR!:wV&wP'gQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!;eV#WU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!mZ!^!=u!^!_!@u!_#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%lO!=uR!>rV&wPO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?[VO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[bO,cO,pO,0,1,2,3,mO],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,$)=>xO(O)<<1,external:xO},{term:81,get:O=>ZO[O]||-1}],tokenPrec:29354});var wO=Q(66575);var jO=Q(91962);var gO=Q(4452);const _O=gO.LRLanguage.define({name:"php",parser:hO.configure({props:[gO.indentNodeProp.add({IfStatement:(0,gO.continuedIndent)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,gO.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let $=O.textAfter,Q=/^\s*\}/.test($),i=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:i?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":(0,gO.delimitedIndent)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:(0,gO.continuedIndent)({except:/^({|end(for|foreach|switch|while)\b)/})}),gO.foldNodeProp.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":gO.foldInside,ColonBlock(O){return{from:O.from+1,to:O.to}},BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function GO(O={}){let $=[],Q;if(O.baseLanguage===null);else if(O.baseLanguage){Q=O.baseLanguage}else{let O=(0,jO.html)({matchClosingTags:false});$.push(O.support);Q=O.language}return new gO.LanguageSupport(_O.configure({wrap:Q&&(0,wO.parseMixed)((O=>{if(!O.type.isTop)return null;return{parser:Q.parser,overlay:O=>O.name=="Text"}})),top:O.plain?"Program":"Template"}),$)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6145.c422868290460078c013.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6145.c422868290460078c013.js new file mode 100644 index 0000000000000000000000000000000000000000..f1118cad58ba9edbf4f821d358fc57027e5eea62 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6145.c422868290460078c013.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6145],{26145:(e,t,r)=>{r.r(t);r.d(t,{powerShell:()=>z});function n(e,t){t=t||{};var r=t.prefix!==undefined?t.prefix:"^";var n=t.suffix!==undefined?t.suffix:"\\b";for(var i=0;i/;var l=n([u,c],{suffix:""});var p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i;var m=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/;var S=/[A-Z]:|%|\?/i;var f=n([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential"+"|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job"+"|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration"+"|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile"+"|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug"+"|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""});var v=n([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""});var P=n([S,f,v],{suffix:i});var d={keyword:a,number:p,operator:l,builtin:P,punctuation:s,variable:m};function g(e,t){var r=t.returnStack[t.returnStack.length-1];if(r&&r.shouldReturnFrom(t)){t.tokenize=r.tokenize;t.returnStack.pop();return t.tokenize(e,t)}if(e.eatSpace()){return null}if(e.eat("(")){t.bracketNesting+=1;return"punctuation"}if(e.eat(")")){t.bracketNesting-=1;return"punctuation"}for(var n in d){if(e.match(d[n])){return n}}var i=e.next();if(i==="'"){return b(e,t)}if(i==="$"){return y(e,t)}if(i==='"'){return C(e,t)}if(i==="<"&&e.eat("#")){t.tokenize=w;return w(e,t)}if(i==="#"){e.skipToEnd();return"comment"}if(i==="@"){var a=e.eat(/["']/);if(a&&e.eol()){t.tokenize=R;t.startQuote=a[0];return R(e,t)}else if(e.eol()){return"error"}else if(e.peek().match(/[({]/)){return"punctuation"}else if(e.peek().match(o)){return y(e,t)}}return"error"}function b(e,t){var r;while((r=e.peek())!=null){e.next();if(r==="'"&&!e.eat("'")){t.tokenize=g;return"string"}}return"error"}function C(e,t){var r;while((r=e.peek())!=null){if(r==="$"){t.tokenize=k;return"string"}e.next();if(r==="`"){e.next();continue}if(r==='"'&&!e.eat('"')){t.tokenize=g;return"string"}}return"error"}function k(e,t){return E(e,t,C)}function h(e,t){t.tokenize=R;t.startQuote='"';return R(e,t)}function x(e,t){return E(e,t,h)}function E(e,t,r){if(e.match("$(")){var n=t.bracketNesting;t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===n},tokenize:r});t.tokenize=g;t.bracketNesting+=1;return"punctuation"}else{e.next();t.returnStack.push({shouldReturnFrom:function(){return true},tokenize:r});t.tokenize=y;return t.tokenize(e,t)}}function w(e,t){var r=false,n;while((n=e.next())!=null){if(r&&n==">"){t.tokenize=g;break}r=n==="#"}return"comment"}function y(e,t){var r=e.peek();if(e.eat("{")){t.tokenize=M;return M(e,t)}else if(r!=undefined&&r.match(o)){e.eatWhile(o);t.tokenize=g;return"variable"}else{t.tokenize=g;return"error"}}function M(e,t){var r;while((r=e.next())!=null){if(r==="}"){t.tokenize=g;break}}return"variable"}function R(e,t){var r=t.startQuote;if(e.sol()&&e.match(new RegExp(r+"@"))){t.tokenize=g}else if(r==='"'){while(!e.eol()){var n=e.peek();if(n==="$"){t.tokenize=x;return"string"}e.next();if(n==="`"){e.next()}}}else{e.skipToEnd()}return"string"}const z={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:g}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6170.65d899f43342f1e34bf1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6170.65d899f43342f1e34bf1.js new file mode 100644 index 0000000000000000000000000000000000000000..fe45096f3f618b72668d15402e6ccd1e559fa2db --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6170.65d899f43342f1e34bf1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6170,8368],{85987:(e,t,r)=>{r.r(t);r.d(t,{javascript:()=>i,json:()=>a,jsonld:()=>u,typescript:()=>f});function n(e){var t=e.statementIndent;var r=e.jsonld;var n=e.json||r;var i=e.typescript;var a=e.wordCharacters||/[\w$\xa1-\uffff]/;var u=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d");var a=e("operator"),u={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:u,false:u,null:u,undefined:u,NaN:u,Infinity:u,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}();var f=/[+\-*&%=<>!?|~^@]/;var s=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function o(e){var t=false,r,n=false;while((r=e.next())!=null){if(!t){if(r=="/"&&!n)return;if(r=="[")n=true;else if(n&&r=="]")n=false}t=!t&&r=="\\"}}var l,c;function p(e,t,r){l=e;c=r;return t}function d(e,t){var r=e.next();if(r=='"'||r=="'"){t.tokenize=m(r);return t.tokenize(e,t)}else if(r=="."&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)){return p("number","number")}else if(r=="."&&e.match("..")){return p("spread","meta")}else if(/[\[\]{}\(\),;\:\.]/.test(r)){return p(r)}else if(r=="="&&e.eat(">")){return p("=>","operator")}else if(r=="0"&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)){return p("number","number")}else if(/\d/.test(r)){e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);return p("number","number")}else if(r=="/"){if(e.eat("*")){t.tokenize=v;return v(e,t)}else if(e.eat("/")){e.skipToEnd();return p("comment","comment")}else if(et(e,t,1)){o(e);e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return p("regexp","string.special")}else{e.eat("=");return p("operator","operator",e.current())}}else if(r=="`"){t.tokenize=k;return k(e,t)}else if(r=="#"&&e.peek()=="!"){e.skipToEnd();return p("meta","meta")}else if(r=="#"&&e.eatWhile(a)){return p("variable","property")}else if(r=="<"&&e.match("!--")||r=="-"&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start))){e.skipToEnd();return p("comment","comment")}else if(f.test(r)){if(r!=">"||!t.lexical||t.lexical.type!=">"){if(e.eat("=")){if(r=="!"||r=="=")e.eat("=")}else if(/[<>*+\-|&?]/.test(r)){e.eat(r);if(r==">")e.eat(r)}}if(r=="?"&&e.eat("."))return p(".");return p("operator","operator",e.current())}else if(a.test(r)){e.eatWhile(a);var n=e.current();if(t.lastType!="."){if(u.propertyIsEnumerable(n)){var i=u[n];return p(i.type,i.style,n)}if(n=="async"&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,false))return p("async","keyword",n)}return p("variable","variable",n)}}function m(e){return function(t,n){var i=false,a;if(r&&t.peek()=="@"&&t.match(s)){n.tokenize=d;return p("jsonld-keyword","meta")}while((a=t.next())!=null){if(a==e&&!i)break;i=!i&&a=="\\"}if(!i)n.tokenize=d;return p("string","string")}}function v(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=d;break}r=n=="*"}return p("comment","comment")}function k(e,t){var r=false,n;while((n=e.next())!=null){if(!r&&(n=="`"||n=="$"&&e.eat("{"))){t.tokenize=d;break}r=!r&&n=="\\"}return p("quasi","string.special",e.current())}var h="([{}])";function y(e,t){if(t.fatArrowAt)t.fatArrowAt=null;var r=e.string.indexOf("=>",e.start);if(r<0)return;if(i){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));if(n)r=n.index}var u=0,f=false;for(var s=r-1;s>=0;--s){var o=e.string.charAt(s);var l=h.indexOf(o);if(l>=0&&l<3){if(!u){++s;break}if(--u==0){if(o=="(")f=true;break}}else if(l>=3&&l<6){++u}else if(a.test(o)){f=true}else if(/["'\/`]/.test(o)){for(;;--s){if(s==0)return;var c=e.string.charAt(s-1);if(c==o&&e.string.charAt(s-2)!="\\"){s--;break}}}else if(f&&!u){++s;break}}if(f&&!u)t.fatArrowAt=s}var w={atom:true,number:true,variable:true,string:true,regexp:true,this:true,import:true,"jsonld-keyword":true};function b(e,t,r,n,i,a){this.indented=e;this.column=t;this.type=r;this.prev=i;this.info=a;if(n!=null)this.align=n}function g(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return true;for(var n=e.context;n;n=n.prev){for(var r=n.vars;r;r=r.next)if(r.name==t)return true}}function x(e,t,r,i,a){var u=e.cc;j.state=e;j.stream=a;j.marked=null;j.cc=u;j.style=t;if(!e.lexical.hasOwnProperty("align"))e.lexical.align=true;while(true){var f=u.length?u.pop():n?P:q;if(f(r,i)){while(u.length&&u[u.length-1].lex)u.pop()();if(j.marked)return j.marked;if(r=="variable"&&g(e,i))return"variableName.local";return t}}}var j={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)j.cc.push(arguments[e])}function A(){S.apply(null,arguments);return true}function L(e,t){for(var r=t;r;r=r.next)if(r.name==e)return true;return false}function T(t){var r=j.state;j.marked="def";if(r.context){if(r.lexical.info=="var"&&r.context&&r.context.block){var n=N(t,r.context);if(n!=null){r.context=n;return}}else if(!L(t,r.localVars)){r.localVars=new I(t,r.localVars);return}}if(e.globalVars&&!L(t,r.globalVars))r.globalVars=new I(t,r.globalVars)}function N(e,t){if(!t){return null}else if(t.block){var r=N(e,t.prev);if(!r)return null;if(r==t.prev)return t;return new O(r,t.vars,true)}else if(L(e,t.vars)){return t}else{return new O(t.prev,new I(e,t.vars),false)}}function V(e){return e=="public"||e=="private"||e=="protected"||e=="abstract"||e=="readonly"}function O(e,t,r){this.prev=e;this.vars=t;this.block=r}function I(e,t){this.name=e;this.next=t}var E=new I("this",new I("arguments",null));function z(){j.state.context=new O(j.state.context,j.state.localVars,false);j.state.localVars=E}function C(){j.state.context=new O(j.state.context,j.state.localVars,true);j.state.localVars=null}z.lex=C.lex=true;function _(){j.state.localVars=j.state.context.vars;j.state.context=j.state.context.prev}_.lex=true;function $(e,t){var r=function(){var r=j.state,n=r.indented;if(r.lexical.type=="stat")n=r.lexical.indented;else for(var i=r.lexical;i&&i.type==")"&&i.align;i=i.prev)n=i.indented;r.lexical=new b(n,j.stream.column(),e,null,r.lexical,t)};r.lex=true;return r}function D(){var e=j.state;if(e.lexical.prev){if(e.lexical.type==")")e.indented=e.lexical.indented;e.lexical=e.lexical.prev}}D.lex=true;function F(e){function t(r){if(r==e)return A();else if(e==";"||r=="}"||r==")"||r=="]")return S();else return A(t)}return t}function q(e,t){if(e=="var")return A($("vardef",t),Se,F(";"),D);if(e=="keyword a")return A($("form"),B,q,D);if(e=="keyword b")return A($("form"),q,D);if(e=="keyword d")return j.stream.match(/^\s*$/,false)?A():A($("stat"),G,F(";"),D);if(e=="debugger")return A(F(";"));if(e=="{")return A($("}"),C,se,D,_);if(e==";")return A();if(e=="if"){if(j.state.lexical.info=="else"&&j.state.cc[j.state.cc.length-1]==D)j.state.cc.pop()();return A($("form"),B,q,D,Oe)}if(e=="function")return A(Ce);if(e=="for")return A($("form"),C,Ie,q,_,D);if(e=="class"||i&&t=="interface"){j.marked="keyword";return A($("form",e=="class"?e:t),qe,D)}if(e=="variable"){if(i&&t=="declare"){j.marked="keyword";return A(q)}else if(i&&(t=="module"||t=="enum"||t=="type")&&j.stream.match(/^\s*\w/,false)){j.marked="keyword";if(t=="enum")return A(Re);else if(t=="type")return A($e,F("operator"),de,F(";"));else return A($("form"),Ae,F("{"),$("}"),se,D,D)}else if(i&&t=="namespace"){j.marked="keyword";return A($("form"),P,q,D)}else if(i&&t=="abstract"){j.marked="keyword";return A(q)}else{return A($("stat"),te)}}if(e=="switch")return A($("form"),B,F("{"),$("}","switch"),C,se,D,D,_);if(e=="case")return A(P,F(":"));if(e=="default")return A(F(":"));if(e=="catch")return A($("form"),z,U,q,D,_);if(e=="export")return A($("stat"),Be,D);if(e=="import")return A($("stat"),Ge,D);if(e=="async")return A(q);if(t=="@")return A(P,q);return S($("stat"),P,F(";"),D)}function U(e){if(e=="(")return A(De,F(")"))}function P(e,t){return Z(e,t,false)}function W(e,t){return Z(e,t,true)}function B(e){if(e!="(")return S();return A($(")"),G,F(")"),D)}function Z(e,t,r){if(j.state.fatArrowAt==j.stream.start){var n=r?R:Q;if(e=="(")return A(z,$(")"),ue(De,")"),D,F("=>"),n,_);else if(e=="variable")return S(z,Ae,F("=>"),n,_)}var a=r?J:H;if(w.hasOwnProperty(e))return A(a);if(e=="function")return A(Ce,a);if(e=="class"||i&&t=="interface"){j.marked="keyword";return A($("form"),Fe,D)}if(e=="keyword c"||e=="async")return A(r?W:P);if(e=="(")return A($(")"),G,F(")"),D,a);if(e=="operator"||e=="spread")return A(r?W:P);if(e=="[")return A($("]"),Qe,D,a);if(e=="{")return fe(ne,"}",null,a);if(e=="quasi")return S(K,a);if(e=="new")return A(X(r));return A()}function G(e){if(e.match(/[;\}\)\],]/))return S();return S(P)}function H(e,t){if(e==",")return A(G);return J(e,t,false)}function J(e,t,r){var n=r==false?H:J;var a=r==false?P:W;if(e=="=>")return A(z,r?R:Q,_);if(e=="operator"){if(/\+\+|--/.test(t)||i&&t=="!")return A(n);if(i&&t=="<"&&j.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,false))return A($(">"),ue(de,">"),D,n);if(t=="?")return A(P,F(":"),a);return A(a)}if(e=="quasi"){return S(K,n)}if(e==";")return;if(e=="(")return fe(W,")","call",n);if(e==".")return A(re,n);if(e=="[")return A($("]"),G,F("]"),D,n);if(i&&t=="as"){j.marked="keyword";return A(de,n)}if(e=="regexp"){j.state.lastType=j.marked="operator";j.stream.backUp(j.stream.pos-j.stream.start-1);return A(a)}}function K(e,t){if(e!="quasi")return S();if(t.slice(t.length-2)!="${")return A(K);return A(G,M)}function M(e){if(e=="}"){j.marked="string.special";j.state.tokenize=k;return A(K)}}function Q(e){y(j.stream,j.state);return S(e=="{"?q:P)}function R(e){y(j.stream,j.state);return S(e=="{"?q:W)}function X(e){return function(t){if(t==".")return A(e?ee:Y);else if(t=="variable"&&i)return A(ge,e?J:H);else return S(e?W:P)}}function Y(e,t){if(t=="target"){j.marked="keyword";return A(H)}}function ee(e,t){if(t=="target"){j.marked="keyword";return A(J)}}function te(e){if(e==":")return A(D,q);return S(H,F(";"),D)}function re(e){if(e=="variable"){j.marked="property";return A()}}function ne(e,t){if(e=="async"){j.marked="property";return A(ne)}else if(e=="variable"||j.style=="keyword"){j.marked="property";if(t=="get"||t=="set")return A(ie);var n;if(i&&j.state.fatArrowAt==j.stream.start&&(n=j.stream.match(/^\s*:\s*/,false)))j.state.fatArrowAt=j.stream.pos+n[0].length;return A(ae)}else if(e=="number"||e=="string"){j.marked=r?"property":j.style+" property";return A(ae)}else if(e=="jsonld-keyword"){return A(ae)}else if(i&&V(t)){j.marked="keyword";return A(ne)}else if(e=="["){return A(P,oe,F("]"),ae)}else if(e=="spread"){return A(W,ae)}else if(t=="*"){j.marked="keyword";return A(ne)}else if(e==":"){return S(ae)}}function ie(e){if(e!="variable")return S(ae);j.marked="property";return A(Ce)}function ae(e){if(e==":")return A(W);if(e=="(")return S(Ce)}function ue(e,t,r){function n(i,a){if(r?r.indexOf(i)>-1:i==","){var u=j.state.lexical;if(u.info=="call")u.pos=(u.pos||0)+1;return A((function(r,n){if(r==t||n==t)return S();return S(e)}),n)}if(i==t||a==t)return A();if(r&&r.indexOf(";")>-1)return S(e);return A(F(t))}return function(r,i){if(r==t||i==t)return A();return S(e,n)}}function fe(e,t,r){for(var n=3;n"),de);if(e=="quasi")return S(he,be)}function me(e){if(e=="=>")return A(de)}function ve(e){if(e.match(/[\}\)\]]/))return A();if(e==","||e==";")return A(ve);return S(ke,ve)}function ke(e,t){if(e=="variable"||j.style=="keyword"){j.marked="property";return A(ke)}else if(t=="?"||e=="number"||e=="string"){return A(ke)}else if(e==":"){return A(de)}else if(e=="["){return A(F("variable"),le,F("]"),ke)}else if(e=="("){return S(_e,ke)}else if(!e.match(/[;\}\)\],]/)){return A()}}function he(e,t){if(e!="quasi")return S();if(t.slice(t.length-2)!="${")return A(he);return A(de,ye)}function ye(e){if(e=="}"){j.marked="string.special";j.state.tokenize=k;return A(he)}}function we(e,t){if(e=="variable"&&j.stream.match(/^\s*[?:]/,false)||t=="?")return A(we);if(e==":")return A(de);if(e=="spread")return A(we);return S(de)}function be(e,t){if(t=="<")return A($(">"),ue(de,">"),D,be);if(t=="|"||e=="."||t=="&")return A(de);if(e=="[")return A(de,F("]"),be);if(t=="extends"||t=="implements"){j.marked="keyword";return A(de)}if(t=="?")return A(de,F(":"),de)}function ge(e,t){if(t=="<")return A($(">"),ue(de,">"),D,be)}function xe(){return S(de,je)}function je(e,t){if(t=="=")return A(de)}function Se(e,t){if(t=="enum"){j.marked="keyword";return A(Re)}return S(Ae,oe,Ne,Ve)}function Ae(e,t){if(i&&V(t)){j.marked="keyword";return A(Ae)}if(e=="variable"){T(t);return A()}if(e=="spread")return A(Ae);if(e=="[")return fe(Te,"]");if(e=="{")return fe(Le,"}")}function Le(e,t){if(e=="variable"&&!j.stream.match(/^\s*:/,false)){T(t);return A(Ne)}if(e=="variable")j.marked="property";if(e=="spread")return A(Ae);if(e=="}")return S();if(e=="[")return A(P,F("]"),F(":"),Le);return A(F(":"),Ae,Ne)}function Te(){return S(Ae,Ne)}function Ne(e,t){if(t=="=")return A(W)}function Ve(e){if(e==",")return A(Se)}function Oe(e,t){if(e=="keyword b"&&t=="else")return A($("form","else"),q,D)}function Ie(e,t){if(t=="await")return A(Ie);if(e=="(")return A($(")"),Ee,D)}function Ee(e){if(e=="var")return A(Se,ze);if(e=="variable")return A(ze);return S(ze)}function ze(e,t){if(e==")")return A();if(e==";")return A(ze);if(t=="in"||t=="of"){j.marked="keyword";return A(P,ze)}return S(P,ze)}function Ce(e,t){if(t=="*"){j.marked="keyword";return A(Ce)}if(e=="variable"){T(t);return A(Ce)}if(e=="(")return A(z,$(")"),ue(De,")"),D,ce,q,_);if(i&&t=="<")return A($(">"),ue(xe,">"),D,Ce)}function _e(e,t){if(t=="*"){j.marked="keyword";return A(_e)}if(e=="variable"){T(t);return A(_e)}if(e=="(")return A(z,$(")"),ue(De,")"),D,ce,_);if(i&&t=="<")return A($(">"),ue(xe,">"),D,_e)}function $e(e,t){if(e=="keyword"||e=="variable"){j.marked="type";return A($e)}else if(t=="<"){return A($(">"),ue(xe,">"),D)}}function De(e,t){if(t=="@")A(P,De);if(e=="spread")return A(De);if(i&&V(t)){j.marked="keyword";return A(De)}if(i&&e=="this")return A(oe,Ne);return S(Ae,oe,Ne)}function Fe(e,t){if(e=="variable")return qe(e,t);return Ue(e,t)}function qe(e,t){if(e=="variable"){T(t);return A(Ue)}}function Ue(e,t){if(t=="<")return A($(">"),ue(xe,">"),D,Ue);if(t=="extends"||t=="implements"||i&&e==","){if(t=="implements")j.marked="keyword";return A(i?de:P,Ue)}if(e=="{")return A($("}"),Pe,D)}function Pe(e,t){if(e=="async"||e=="variable"&&(t=="static"||t=="get"||t=="set"||i&&V(t))&&j.stream.match(/^\s+#?[\w$\xa1-\uffff]/,false)){j.marked="keyword";return A(Pe)}if(e=="variable"||j.style=="keyword"){j.marked="property";return A(We,Pe)}if(e=="number"||e=="string")return A(We,Pe);if(e=="[")return A(P,oe,F("]"),We,Pe);if(t=="*"){j.marked="keyword";return A(Pe)}if(i&&e=="(")return S(_e,Pe);if(e==";"||e==",")return A(Pe);if(e=="}")return A();if(t=="@")return A(P,Pe)}function We(e,t){if(t=="!"||t=="?")return A(We);if(e==":")return A(de,Ne);if(t=="=")return A(W);var r=j.state.lexical.prev,n=r&&r.info=="interface";return S(n?_e:Ce)}function Be(e,t){if(t=="*"){j.marked="keyword";return A(Me,F(";"))}if(t=="default"){j.marked="keyword";return A(P,F(";"))}if(e=="{")return A(ue(Ze,"}"),Me,F(";"));return S(q)}function Ze(e,t){if(t=="as"){j.marked="keyword";return A(F("variable"))}if(e=="variable")return S(W,Ze)}function Ge(e){if(e=="string")return A();if(e=="(")return S(P);if(e==".")return S(H);return S(He,Je,Me)}function He(e,t){if(e=="{")return fe(He,"}");if(e=="variable")T(t);if(t=="*")j.marked="keyword";return A(Ke)}function Je(e){if(e==",")return A(He,Je)}function Ke(e,t){if(t=="as"){j.marked="keyword";return A(He)}}function Me(e,t){if(t=="from"){j.marked="keyword";return A(P)}}function Qe(e){if(e=="]")return A();return S(ue(W,"]"))}function Re(){return S($("form"),Ae,F("{"),$("}"),ue(Xe,"}"),D,D)}function Xe(){return S(Ae,Ne)}function Ye(e,t){return e.lastType=="operator"||e.lastType==","||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function et(e,t,r){return t.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||t.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return{name:e.name,startState:function(t){var r={tokenize:d,lastType:"sof",cc:[],lexical:new b(-t,0,"block",false),localVars:e.localVars,context:e.localVars&&new O(null,null,false),indented:0};if(e.globalVars&&typeof e.globalVars=="object")r.globalVars=e.globalVars;return r},token:function(e,t){if(e.sol()){if(!t.lexical.hasOwnProperty("align"))t.lexical.align=false;t.indented=e.indentation();y(e,t)}if(t.tokenize!=v&&e.eatSpace())return null;var r=t.tokenize(e,t);if(l=="comment")return r;t.lastType=l=="operator"&&(c=="++"||c=="--")?"incdec":l;return x(t,r,l,c,e)},indent:function(r,n,i){if(r.tokenize==v||r.tokenize==k)return null;if(r.tokenize!=d)return 0;var a=n&&n.charAt(0),u=r.lexical,f;if(!/^\s*else\b/.test(n))for(var s=r.cc.length-1;s>=0;--s){var o=r.cc[s];if(o==D)u=u.prev;else if(o!=Oe&&o!=_)break}while((u.type=="stat"||u.type=="form")&&(a=="}"||(f=r.cc[r.cc.length-1])&&(f==H||f==J)&&!/^[,\.=+\-*:?[\(]/.test(n)))u=u.prev;if(t&&u.type==")"&&u.prev.type=="stat")u=u.prev;var l=u.type,c=a==l;if(l=="vardef")return u.indented+(r.lastType=="operator"||r.lastType==","?u.info.length+1:0);else if(l=="form"&&a=="{")return u.indented;else if(l=="form")return u.indented+i.unit;else if(l=="stat")return u.indented+(Ye(r,n)?t||i.unit:0);else if(u.info=="switch"&&!c&&e.doubleIndentSwitch!=false)return u.indented+(/^(?:case|default)\b/.test(n)?i.unit:2*i.unit);else if(u.align)return u.column+(c?0:1);else return u.indented+(c?0:i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:n?undefined:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const i=n({name:"javascript"});const a=n({name:"json",json:true});const u=n({name:"json",jsonld:true});const f=n({name:"typescript",typescript:true})},96170:(e,t,r)=>{r.r(t);r.d(t,{pug:()=>M});var n=r(85987);var i={"{":"}","(":")","[":"]"};function a(e){if(typeof e!="object")return e;let t={};for(let r in e){let n=e[r];t[r]=n instanceof Array?n.slice():n}return t}class u{constructor(e){this.indentUnit=e;this.javaScriptLine=false;this.javaScriptLineExcludesColon=false;this.javaScriptArguments=false;this.javaScriptArgumentsDepth=0;this.isInterpolating=false;this.interpolationNesting=0;this.jsState=n.javascript.startState(e);this.restOfLine="";this.isIncludeFiltered=false;this.isEach=false;this.lastTag="";this.isAttrs=false;this.attrsNest=[];this.inAttributeName=true;this.attributeIsType=false;this.attrValue="";this.indentOf=Infinity;this.indentToken=""}copy(){var e=new u(this.indentUnit);e.javaScriptLine=this.javaScriptLine;e.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon;e.javaScriptArguments=this.javaScriptArguments;e.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth;e.isInterpolating=this.isInterpolating;e.interpolationNesting=this.interpolationNesting;e.jsState=(n.javascript.copyState||a)(this.jsState);e.restOfLine=this.restOfLine;e.isIncludeFiltered=this.isIncludeFiltered;e.isEach=this.isEach;e.lastTag=this.lastTag;e.isAttrs=this.isAttrs;e.attrsNest=this.attrsNest.slice();e.inAttributeName=this.inAttributeName;e.attributeIsType=this.attributeIsType;e.attrValue=this.attrValue;e.indentOf=this.indentOf;e.indentToken=this.indentToken;return e}}function f(e,t){if(e.sol()){t.javaScriptLine=false;t.javaScriptLineExcludesColon=false}if(t.javaScriptLine){if(t.javaScriptLineExcludesColon&&e.peek()===":"){t.javaScriptLine=false;t.javaScriptLineExcludesColon=false;return}var r=n.javascript.token(e,t.jsState);if(e.eol())t.javaScriptLine=false;return r||true}}function s(e,t){if(t.javaScriptArguments){if(t.javaScriptArgumentsDepth===0&&e.peek()!=="("){t.javaScriptArguments=false;return}if(e.peek()==="("){t.javaScriptArgumentsDepth++}else if(e.peek()===")"){t.javaScriptArgumentsDepth--}if(t.javaScriptArgumentsDepth===0){t.javaScriptArguments=false;return}var r=n.javascript.token(e,t.jsState);return r||true}}function o(e){if(e.match(/^yield\b/)){return"keyword"}}function l(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return"meta"}function c(e,t){if(e.match("#{")){t.isInterpolating=true;t.interpolationNesting=0;return"punctuation"}}function p(e,t){if(t.isInterpolating){if(e.peek()==="}"){t.interpolationNesting--;if(t.interpolationNesting<0){e.next();t.isInterpolating=false;return"punctuation"}}else if(e.peek()==="{"){t.interpolationNesting++}return n.javascript.token(e,t.jsState)||true}}function d(e,t){if(e.match(/^case\b/)){t.javaScriptLine=true;return"keyword"}}function m(e,t){if(e.match(/^when\b/)){t.javaScriptLine=true;t.javaScriptLineExcludesColon=true;return"keyword"}}function v(e){if(e.match(/^default\b/)){return"keyword"}}function k(e,t){if(e.match(/^extends?\b/)){t.restOfLine="string";return"keyword"}}function h(e,t){if(e.match(/^append\b/)){t.restOfLine="variable";return"keyword"}}function y(e,t){if(e.match(/^prepend\b/)){t.restOfLine="variable";return"keyword"}}function w(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/)){t.restOfLine="variable";return"keyword"}}function b(e,t){if(e.match(/^include\b/)){t.restOfLine="string";return"keyword"}}function g(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,false)&&e.match("include")){t.isIncludeFiltered=true;return"keyword"}}function x(e,t){if(t.isIncludeFiltered){var r=I(e,t);t.isIncludeFiltered=false;t.restOfLine="string";return r}}function j(e,t){if(e.match(/^mixin\b/)){t.javaScriptLine=true;return"keyword"}}function S(e,t){if(e.match(/^\+([-\w]+)/)){if(!e.match(/^\( *[-\w]+ *=/,false)){t.javaScriptArguments=true;t.javaScriptArgumentsDepth=0}return"variable"}if(e.match("+#{",false)){e.next();t.mixinCallAfter=true;return c(e,t)}}function A(e,t){if(t.mixinCallAfter){t.mixinCallAfter=false;if(!e.match(/^\( *[-\w]+ *=/,false)){t.javaScriptArguments=true;t.javaScriptArgumentsDepth=0}return true}}function L(e,t){if(e.match(/^(if|unless|else if|else)\b/)){t.javaScriptLine=true;return"keyword"}}function T(e,t){if(e.match(/^(- *)?(each|for)\b/)){t.isEach=true;return"keyword"}}function N(e,t){if(t.isEach){if(e.match(/^ in\b/)){t.javaScriptLine=true;t.isEach=false;return"keyword"}else if(e.sol()||e.eol()){t.isEach=false}else if(e.next()){while(!e.match(/^ in\b/,false)&&e.next()){}return"variable"}}}function V(e,t){if(e.match(/^while\b/)){t.javaScriptLine=true;return"keyword"}}function O(e,t){var r;if(r=e.match(/^(\w(?:[-:\w]*\w)?)\/?/)){t.lastTag=r[1].toLowerCase();return"tag"}}function I(e,t){if(e.match(/^:([\w\-]+)/)){Z(e,t);return"atom"}}function E(e,t){if(e.match(/^(!?=|-)/)){t.javaScriptLine=true;return"punctuation"}}function z(e){if(e.match(/^#([\w-]+)/)){return"builtin"}}function C(e){if(e.match(/^\.([\w-]+)/)){return"className"}}function _(e,t){if(e.peek()=="("){e.next();t.isAttrs=true;t.attrsNest=[];t.inAttributeName=true;t.attrValue="";t.attributeIsType=false;return"punctuation"}}function $(e,t){if(t.isAttrs){if(i[e.peek()]){t.attrsNest.push(i[e.peek()])}if(t.attrsNest[t.attrsNest.length-1]===e.peek()){t.attrsNest.pop()}else if(e.eat(")")){t.isAttrs=false;return"punctuation"}if(t.inAttributeName&&e.match(/^[^=,\)!]+/)){if(e.peek()==="="||e.peek()==="!"){t.inAttributeName=false;t.jsState=n.javascript.startState(2);if(t.lastTag==="script"&&e.current().trim().toLowerCase()==="type"){t.attributeIsType=true}else{t.attributeIsType=false}}return"attribute"}var r=n.javascript.token(e,t.jsState);if(t.attrsNest.length===0&&(r==="string"||r==="variable"||r==="keyword")){try{Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,""));t.inAttributeName=true;t.attrValue="";e.backUp(e.current().length);return $(e,t)}catch(a){}}t.attrValue+=e.current();return r||true}}function D(e,t){if(e.match(/^&attributes\b/)){t.javaScriptArguments=true;t.javaScriptArgumentsDepth=0;return"keyword"}}function F(e){if(e.sol()&&e.eatSpace()){return"indent"}}function q(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/)){t.indentOf=e.indentation();t.indentToken="comment";return"comment"}}function U(e){if(e.match(/^: */)){return"colon"}}function P(e,t){if(e.match(/^(?:\| ?| )([^\n]+)/)){return"string"}if(e.match(/^(<[^\n]*)/,false)){Z(e,t);e.skipToEnd();return t.indentToken}}function W(e,t){if(e.eat(".")){Z(e,t);return"dot"}}function B(e){e.next();return null}function Z(e,t){t.indentOf=e.indentation();t.indentToken="string"}function G(e,t){if(e.sol()){t.restOfLine=""}if(t.restOfLine){e.skipToEnd();var r=t.restOfLine;t.restOfLine="";return r}}function H(e){return new u(e)}function J(e){return e.copy()}function K(e,t){var r=G(e,t)||p(e,t)||x(e,t)||N(e,t)||$(e,t)||f(e,t)||s(e,t)||A(e,t)||o(e)||l(e)||c(e,t)||d(e,t)||m(e,t)||v(e)||k(e,t)||h(e,t)||y(e,t)||w(e,t)||b(e,t)||g(e,t)||j(e,t)||S(e,t)||L(e,t)||T(e,t)||V(e,t)||O(e,t)||I(e,t)||E(e,t)||z(e)||C(e)||_(e,t)||D(e,t)||F(e)||P(e,t)||q(e,t)||U(e)||W(e,t)||B(e);return r===true?null:r}const M={startState:H,copyState:J,token:K}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6180.60303761cae10d63e963.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6180.60303761cae10d63e963.js new file mode 100644 index 0000000000000000000000000000000000000000..5c85b360833571bf8588288082c6ef3b9d5fb131 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6180.60303761cae10d63e963.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6180],{15136:(e,t,r)=>{r.r(t);r.d(t,{main:()=>D});var o=r(30397);var n=r(5592);var s=r(20979);var l=r(25313);var a=r(56104);var i=r(11114);var c=r(72508);var u=r(2129);var p=r(99382);var f=r(36672);var _=r(1904);var A=r(87779);var y=r(13067);var h=r(67374);var d=r(20135);var b=r(61689);var x=r(34072);var j=r(54336);var m=r(19457);var v=r(43017);var g=r(45695);var w=r(53640);var C=r(367);var k=r(68149);var P=r(87456);var S=r(4380);var E=r(61132);var O=r(57996);var R=r(41884);var I=r(51874);var L=r(90288);var M=r(87145);var N=r(90167);var $=r(98547);var J=r(57292);var Q=r(80046);var B=r(54289);var T=r(40779);var U=r(48552);var Y=r(40005);var q=r(70558);var z=r(31747);var G=r(95527);var K=r(50277);var V=r(77767);var F=r(54549);var H=r(75591);async function Z(e,t){try{const r=await window._JUPYTERLAB[e].get(t);const o=r();o.__scope__=e;return o}catch(r){console.warn(`Failed to create module: package: ${e}; module: ${t}`);throw r}}async function D(){var e=o.PageConfig.getOption("browserTest");if(e.toLowerCase()==="true"){var t=document.createElement("div");t.id="browserTest";document.body.appendChild(t);t.textContent="[]";t.style.display="none";var s=[];var l=false;var a=25e3;var i=function(){if(l){return}l=true;t.className="completed"};window.onerror=function(e,r,o,n,l){s.push(String(l));t.textContent=JSON.stringify(s)};console.error=function(e){s.push(String(e));t.textContent=JSON.stringify(s)}}var c=new n.PluginRegistry;var u=r(94307).JupyterLab;var p=[];var f=[];var _=[];var A=[];const y=[];const h=[];const d=[];const b=JSON.parse(o.PageConfig.getOption("federated_extensions"));const x={"@jupyterlab/application:mimedocument":"@jupyterlab/application-extension:mimedocument","@jupyterlab/help-extension:licenses":"@jupyterlab/apputils-extension:licenses-plugin","@jupyterlab/lsp:ILSPCodeExtractorsManager":"@jupyterlab/lsp-extension:code-extractor-manager","@jupyterlab/translation:translator":"@jupyterlab/translation-extension:translator","@jupyterlab/workspaces:commands":"@jupyterlab/workspaces-extension:commands"};const j=o.PageConfig.Extension.disabled.map((e=>{if(x[e]){console.warn(`Plugin ${e} has been renamed to ${x[e]}. Consider updating your config to use the new name.`);return x[e]}return e}));const m=o.PageConfig.Extension.deferred.map((e=>{if(x[e]){console.warn(`Plugin id ${e} has been renamed to ${x[e]}. Consider updating your config to use the new name.`);return x[e]}return e}));const v=e=>{const t=e.indexOf(":");let r="";if(t!==-1){r=e.slice(0,t)}return j.some((t=>t===e||r&&t===r))};const g=e=>{const t=e.indexOf(":");let r="";if(t!==-1){r=e.slice(0,t)}return m.some((t=>t===e||r&&t===r))};const w=[];b.forEach((e=>{if(e.extension){w.push(e.name);y.push(Z(e.name,e.extension))}if(e.mimeExtension){w.push(e.name);h.push(Z(e.name,e.mimeExtension))}if(e.style&&!v(e.name)){d.push(Z(e.name,e.style))}}));const C=[];function k(e){let t;if(e.hasOwnProperty("__esModule")){t=e.default}else{t=e}return Array.isArray(t)?t:[t]}function*P(e){const t=k(e);for(let r of t){const t=v(r.id);C.push({id:r.id,description:r.description,requires:r.requires??[],optional:r.optional??[],provides:r.provides??null,autoStart:r.autoStart,enabled:!t,extension:e.__scope__});if(t){p.push(r.id);continue}if(g(r.id)){f.push(r.id);_.push(r.id)}yield r}}const S=[];if(!w.includes("@jupyterlab/javascript-extension")){try{let e=r(65441);e.__scope__="@jupyterlab/javascript-extension";for(let t of P(e)){S.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/json-extension")){try{let e=r(6445);e.__scope__="@jupyterlab/json-extension";for(let t of P(e)){S.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/mermaid-extension")){try{let e=r(47375);e.__scope__="@jupyterlab/mermaid-extension";for(let t of P(e)){S.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/pdf-extension")){try{let e=r(51143);e.__scope__="@jupyterlab/pdf-extension";for(let t of P(e)){S.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/vega5-extension")){try{let e=r(59907);e.__scope__="@jupyterlab/vega5-extension";for(let t of P(e)){S.push(t)}}catch(Q){console.error(Q)}}const E=await Promise.allSettled(h);E.forEach((e=>{if(e.status==="fulfilled"){for(let t of P(e.value)){S.push(t)}}else{console.error(e.reason)}}));if(!w.includes("@jupyterlab/application-extension")){try{let e=r(90695);e.__scope__="@jupyterlab/application-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/apputils-extension")){try{let e=r(67237);e.__scope__="@jupyterlab/apputils-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/cell-toolbar-extension")){try{let e=r(70541);e.__scope__="@jupyterlab/cell-toolbar-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/celltags-extension")){try{let e=r(86781);e.__scope__="@jupyterlab/celltags-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/codemirror-extension")){try{let e=r(90193);e.__scope__="@jupyterlab/codemirror-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/completer-extension")){try{let e=r(86753);e.__scope__="@jupyterlab/completer-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/console-extension")){try{let e=r(73121);e.__scope__="@jupyterlab/console-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/csvviewer-extension")){try{let e=r(2611);e.__scope__="@jupyterlab/csvviewer-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/debugger-extension")){try{let e=r(56001);e.__scope__="@jupyterlab/debugger-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/docmanager-extension")){try{let e=r(51997);e.__scope__="@jupyterlab/docmanager-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/documentsearch-extension")){try{let e=r(27337);e.__scope__="@jupyterlab/documentsearch-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/extensionmanager-extension")){try{let e=r(90285);e.__scope__="@jupyterlab/extensionmanager-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/filebrowser-extension")){try{let e=r(80439);e.__scope__="@jupyterlab/filebrowser-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/fileeditor-extension")){try{let e=r(46425);e.__scope__="@jupyterlab/fileeditor-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/help-extension")){try{let e=r(11793);e.__scope__="@jupyterlab/help-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/htmlviewer-extension")){try{let e=r(91865);e.__scope__="@jupyterlab/htmlviewer-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/hub-extension")){try{let e=r(90945);e.__scope__="@jupyterlab/hub-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/imageviewer-extension")){try{let e=r(61121);e.__scope__="@jupyterlab/imageviewer-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/inspector-extension")){try{let e=r(68673);e.__scope__="@jupyterlab/inspector-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/launcher-extension")){try{let e=r(34937);e.__scope__="@jupyterlab/launcher-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/logconsole-extension")){try{let e=r(37377);e.__scope__="@jupyterlab/logconsole-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/lsp-extension")){try{let e=r(80865);e.__scope__="@jupyterlab/lsp-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/mainmenu-extension")){try{let e=r(22833);e.__scope__="@jupyterlab/mainmenu-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/markdownviewer-extension")){try{let e=r(91913);e.__scope__="@jupyterlab/markdownviewer-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/markedparser-extension")){try{let e=r(20321);e.__scope__="@jupyterlab/markedparser-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/mathjax-extension")){try{let e=r(98465);e.__scope__="@jupyterlab/mathjax-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/mermaid-extension")){try{let e=r(62889);e.__scope__="@jupyterlab/mermaid-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/metadataform-extension")){try{let e=r(26001);e.__scope__="@jupyterlab/metadataform-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/notebook-extension")){try{let e=r(27745);e.__scope__="@jupyterlab/notebook-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/pluginmanager-extension")){try{let e=r(23407);e.__scope__="@jupyterlab/pluginmanager-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/rendermime-extension")){try{let e=r(53813);e.__scope__="@jupyterlab/rendermime-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/running-extension")){try{let e=r(4369);e.__scope__="@jupyterlab/running-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/services-extension")){try{let e=r(33221);e.__scope__="@jupyterlab/services-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/settingeditor-extension")){try{let e=r(44937);e.__scope__="@jupyterlab/settingeditor-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/shortcuts-extension")){try{let e=r(89652);e.__scope__="@jupyterlab/shortcuts-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/statusbar-extension")){try{let e=r(45729);e.__scope__="@jupyterlab/statusbar-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/terminal-extension")){try{let e=r(65373);e.__scope__="@jupyterlab/terminal-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/theme-dark-extension")){try{let e=r(31109);e.__scope__="@jupyterlab/theme-dark-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/theme-dark-high-contrast-extension")){try{let e=r(13621);e.__scope__="@jupyterlab/theme-dark-high-contrast-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/theme-light-extension")){try{let e=r(23299);e.__scope__="@jupyterlab/theme-light-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/toc-extension")){try{let e=r(30549);e.__scope__="@jupyterlab/toc-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/tooltip-extension")){try{let e=r(55553);e.__scope__="@jupyterlab/tooltip-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/translation-extension")){try{let e=r(3385);e.__scope__="@jupyterlab/translation-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/ui-components-extension")){try{let e=r(41125);e.__scope__="@jupyterlab/ui-components-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}if(!w.includes("@jupyterlab/workspaces-extension")){try{let e=r(16569);e.__scope__="@jupyterlab/workspaces-extension";for(let t of P(e)){A.push(t)}}catch(Q){console.error(Q)}}const O=await Promise.allSettled(y);O.forEach((e=>{if(e.status==="fulfilled"){for(let t of P(e.value)){A.push(t)}}else{console.error(e.reason)}}));(await Promise.allSettled(d)).filter((({status:e})=>e==="rejected")).forEach((({reason:e})=>{console.error(e)}));c.registerPlugins(A);const R=r(28548).IConnectionStatus;const I=r(28548).IServiceManager;const L=await c.resolveOptionalService(R);const M=await c.resolveRequiredService(I);const N=new u({pluginRegistry:c,serviceManager:M,mimeExtensions:S,connectionStatus:L,disabled:{matches:p,patterns:j.map((function(e){return e.raw}))},deferred:{matches:f,patterns:m.map((function(e){return e.raw}))},availablePlugins:C});N.start({ignorePlugins:_,bubblingKeydown:true});var $=(o.PageConfig.getOption("exposeAppInBrowser")||"").toLowerCase()==="true";var J=(o.PageConfig.getOption("devMode")||"").toLowerCase()==="true";if($||J){window.jupyterapp=N}if(e.toLowerCase()==="true"){N.restored.then((function(){i(s)})).catch((function(e){i([`RestoreError: ${e.message}`])}));window.setTimeout((function(){i(s)}),a)}}},78269:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVQIHQGlAFr/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7+r3zKmT0/+pk9P/7+r3zAAAAAAAAAAABAAAAAAAAAAA6OPzM+/q9wAAAAAA6OPzMwAAAAAAAAAAAgAAAAAAAAAAGR8NiRQaCgAZIA0AGR8NiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQyoYJ/SY80UAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/649.4081045b1737e4213282.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/649.4081045b1737e4213282.js new file mode 100644 index 0000000000000000000000000000000000000000..c0296338525c5fd536d5e2601097b9b161b40e14 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/649.4081045b1737e4213282.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[649],{19163:(t,e,a)=>{a.d(e,{S:()=>n});var i=a(75905);function n(t,e){if(t.accDescr){e.setAccDescription?.(t.accDescr)}if(t.accTitle){e.setAccTitle?.(t.accTitle)}if(t.title){e.setDiagramTitle?.(t.title)}}(0,i.K2)(n,"populateCommonDb")},70649:(t,e,a)=>{a.d(e,{diagram:()=>K});var i=a(19163);var n=a(96049);var r=a(93113);var s=a(75905);var o=a(24010);var l=a(24982);var c=s.UI.pie;var p={sections:new Map,showData:false,config:c};var d=p.sections;var u=p.showData;var g=structuredClone(c);var f=(0,s.K2)((()=>structuredClone(g)),"getConfig");var v=(0,s.K2)((()=>{d=new Map;u=p.showData;(0,s.IU)()}),"clear");var h=(0,s.K2)((({label:t,value:e})=>{if(!d.has(t)){d.set(t,e);s.Rm.debug(`added new section: ${t}, with value: ${e}`)}}),"addSection");var m=(0,s.K2)((()=>d),"getSections");var S=(0,s.K2)((t=>{u=t}),"setShowData");var x=(0,s.K2)((()=>u),"getShowData");var w={getConfig:f,clear:v,setDiagramTitle:s.ke,getDiagramTitle:s.ab,setAccTitle:s.SV,getAccTitle:s.iN,setAccDescription:s.EI,getAccDescription:s.m7,addSection:h,getSections:m,setShowData:S,getShowData:x};var D=(0,s.K2)(((t,e)=>{(0,i.S)(t,e);e.setShowData(t.showData);t.sections.map(e.addSection)}),"populateDb");var $={parse:(0,s.K2)((async t=>{const e=await(0,o.qg)("pie",t);s.Rm.debug(e);D(e,w)}),"parse")};var y=(0,s.K2)((t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${t.pieOuterStrokeColor};\n stroke-width: ${t.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`),"getStyles");var T=y;var C=(0,s.K2)((t=>{const e=[...t.entries()].map((t=>({label:t[0],value:t[1]}))).sort(((t,e)=>e.value-t.value));const a=(0,l.rLf)().value((t=>t.value));return a(e)}),"createPieArcs");var b=(0,s.K2)(((t,e,a,i)=>{s.Rm.debug("rendering pie chart\n"+t);const o=i.db;const c=(0,s.D7)();const p=(0,n.$t)(o.getConfig(),c.pie);const d=40;const u=18;const g=4;const f=450;const v=f;const h=(0,r.D)(e);const m=h.append("g");m.attr("transform","translate("+v/2+","+f/2+")");const{themeVariables:S}=c;let[x]=(0,n.I5)(S.pieOuterStrokeWidth);x??=2;const w=p.textPosition;const D=Math.min(v,f)/2-d;const $=(0,l.JLW)().innerRadius(0).outerRadius(D);const y=(0,l.JLW)().innerRadius(D*w).outerRadius(D*w);m.append("circle").attr("cx",0).attr("cy",0).attr("r",D+x/2).attr("class","pieOuterCircle");const T=o.getSections();const b=C(T);const k=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12];const K=(0,l.UMr)(k);m.selectAll("mySlices").data(b).enter().append("path").attr("d",$).attr("fill",(t=>K(t.data.label))).attr("class","pieCircle");let A=0;T.forEach((t=>{A+=t}));m.selectAll("mySlices").data(b).enter().append("text").text((t=>(t.data.value/A*100).toFixed(0)+"%")).attr("transform",(t=>"translate("+y.centroid(t)+")")).style("text-anchor","middle").attr("class","slice");m.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-(f-50)/2).attr("class","pieTitleText");const R=m.selectAll(".legend").data(K.domain()).enter().append("g").attr("class","legend").attr("transform",((t,e)=>{const a=u+g;const i=a*K.domain().length/2;const n=12*u;const r=e*a-i;return"translate("+n+","+r+")"}));R.append("rect").attr("width",u).attr("height",u).style("fill",K).style("stroke",K);R.data(b).append("text").attr("x",u+g).attr("y",u-g).text((t=>{const{label:e,value:a}=t.data;if(o.getShowData()){return`${e} [${a}]`}return e}));const z=Math.max(...R.selectAll("text").nodes().map((t=>t?.getBoundingClientRect().width??0)));const M=v+d+u+g+z;h.attr("viewBox",`0 0 ${M} ${f}`);(0,s.a$)(h,f,M,p.useMaxWidth)}),"draw");var k={draw:b};var K={parser:$,db:w,renderer:k,styles:T}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6492.804d51a693edf6978ef4.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6492.804d51a693edf6978ef4.js new file mode 100644 index 0000000000000000000000000000000000000000..c43e3d3d488d2ba7b1038b6dfde231b22527950b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6492.804d51a693edf6978ef4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6492],{46492:(e,t,a)=>{a.r(t);a.d(t,{Cassandra:()=>Xe,MSSQL:()=>Ue,MariaSQL:()=>Te,MySQL:()=>Pe,PLSQL:()=>je,PostgreSQL:()=>Qe,SQLDialect:()=>_e,SQLite:()=>ze,StandardSQL:()=>we,keywordCompletionSource:()=>ye,schemaCompletionSource:()=>ke,sql:()=>Oe});var n=a(4452);var i=a.n(n);var r=a(45145);var s=a.n(r);var o=a(27421);var l=a(75128);const c=36,d=1,u=2,m=3,p=4,f=5,g=6,h=7,b=8,_=9,v=10,y=11,k=12,x=13,O=14,w=15,Q=16,C=17,S=18,q=19,P=20,T=21,U=22,z=23,X=24;function j(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function B(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function I(e,t,a){for(let n=false;;){if(e.next<0)return;if(e.next==t&&!n){e.advance();return}n=a&&!n&&e.next==92;e.advance()}}function R(e,t){e:for(;;){if(e.next<0)return;if(e.next==36){e.advance();for(let a=0;a)".charCodeAt(a);for(;;){if(e.next<0)return;if(e.next==n&&e.peek(1)==39){e.advance(2);return}e.advance()}}function Z(e,t){for(;;){if(e.next!=95&&!j(e.next))break;if(t!=null)t+=String.fromCharCode(e.next);e.advance()}return t}function N(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance();I(e,t,false)}else{Z(e)}}function V(e,t){while(e.next==48||e.next==49)e.advance();if(t&&e.next==t)e.advance()}function D(e,t){for(;;){if(e.next==46){if(t)break;t=true}else if(e.next<48||e.next>57){break}e.advance()}if(e.next==69||e.next==101){e.advance();if(e.next==43||e.next==45)e.advance();while(e.next>=48&&e.next<=57)e.advance()}}function $(e){while(!(e.next<0||e.next==10))e.advance()}function A(e,t){for(let a=0;a!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:false,words:W(M,G)};function K(e,t,a,n){let i={};for(let r in Y)i[r]=(e.hasOwnProperty(r)?e:Y)[r];if(t)i.words=W(t,a||"",n);return i}function F(e){return new o.Lu((t=>{var a;let{next:n}=t;t.advance();if(A(n,E)){while(A(t.next,E))t.advance();t.acceptToken(c)}else if(n==36&&e.doubleDollarQuotedStrings){let e=Z(t,"");if(t.next==36){t.advance();R(t,e);t.acceptToken(m)}}else if(n==39||n==34&&e.doubleQuotedStrings){I(t,n,e.backslashEscapes);t.acceptToken(m)}else if(n==35&&e.hashComments||n==47&&t.next==47&&e.slashComments){$(t);t.acceptToken(d)}else if(n==45&&t.next==45&&(!e.spaceAfterDashes||t.peek(1)==32)){$(t);t.acceptToken(d)}else if(n==47&&t.next==42){t.advance();for(let e=1;;){let a=t.next;if(t.next<0)break;t.advance();if(a==42&&t.next==47){e--;t.advance();if(!e)break}else if(a==47&&t.next==42){e++;t.advance()}}t.acceptToken(u)}else if((n==101||n==69)&&t.next==39){t.advance();I(t,39,true);t.acceptToken(m)}else if((n==110||n==78)&&t.next==39&&e.charSetCasts){t.advance();I(t,39,e.backslashEscapes);t.acceptToken(m)}else if(n==95&&e.charSetCasts){for(let a=0;;a++){if(t.next==39&&a>1){t.advance();I(t,39,e.backslashEscapes);t.acceptToken(m);break}if(!j(t.next))break;t.advance()}}else if(e.plsqlQuotingMechanism&&(n==113||n==81)&&t.next==39&&t.peek(1)>0&&!A(t.peek(1),E)){let e=t.peek(1);t.advance(2);L(t,e);t.acceptToken(m)}else if(n==40){t.acceptToken(h)}else if(n==41){t.acceptToken(b)}else if(n==123){t.acceptToken(_)}else if(n==125){t.acceptToken(v)}else if(n==91){t.acceptToken(y)}else if(n==93){t.acceptToken(k)}else if(n==59){t.acceptToken(x)}else if(e.unquotedBitLiterals&&n==48&&t.next==98){t.advance();V(t);t.acceptToken(U)}else if((n==98||n==66)&&(t.next==39||t.next==34)){const a=t.next;t.advance();if(e.treatBitsAsBytes){I(t,a,e.backslashEscapes);t.acceptToken(z)}else{V(t,a);t.acceptToken(U)}}else if(n==48&&(t.next==120||t.next==88)||(n==120||n==88)&&t.next==39){let e=t.next==39;t.advance();while(B(t.next))t.advance();if(e&&t.next==39)t.advance();t.acceptToken(p)}else if(n==46&&t.next>=48&&t.next<=57){D(t,true);t.acceptToken(p)}else if(n==46){t.acceptToken(O)}else if(n>=48&&n<=57){D(t,false);t.acceptToken(p)}else if(A(n,e.operatorChars)){while(A(t.next,e.operatorChars))t.advance();t.acceptToken(w)}else if(A(n,e.specialVar)){if(t.next==n)t.advance();N(t);t.acceptToken(C)}else if(A(n,e.identifierQuotes)){I(t,n,false);t.acceptToken(q)}else if(n==58||n==44){t.acceptToken(Q)}else if(j(n)){let i=Z(t,String.fromCharCode(n));t.acceptToken(t.next==46||t.peek(-i.length-1)==46?S:(a=e.words[i.toLowerCase()])!==null&&a!==void 0?a:S)}}))}const H=F(Y);const J=o.U1.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,H],topRules:{Script:[0,25]},tokenPrec:0});function ee(e){let t=e.cursor().moveTo(e.from,-1);while(/Comment/.test(t.name))t.moveTo(t.from,-1);return t.node}function te(e,t){let a=e.sliceString(t.from,t.to);let n=/^([`'"])(.*)\1$/.exec(a);return n?n[2]:a}function ae(e){return e&&(e.name=="Identifier"||e.name=="QuotedIdentifier")}function ne(e,t){if(t.name=="CompositeIdentifier"){let a=[];for(let n=t.firstChild;n;n=n.nextSibling)if(ae(n))a.push(te(e,n));return a}return[te(e,t)]}function ie(e,t){for(let a=[];;){if(!t||t.name!=".")return a;let n=ee(t);if(!ae(n))return a;a.unshift(te(e,n));t=ee(n)}}function re(e,t){let a=(0,n.syntaxTree)(e).resolveInner(t,-1);let i=oe(e.doc,a);if(a.name=="Identifier"||a.name=="QuotedIdentifier"||a.name=="Keyword"){return{from:a.from,quoted:a.name=="QuotedIdentifier"?e.doc.sliceString(a.from,a.from+1):null,parents:ie(e.doc,ee(a)),aliases:i}}if(a.name=="."){return{from:t,quoted:null,parents:ie(e.doc,a),aliases:i}}else{return{from:t,quoted:null,parents:[],empty:true,aliases:i}}}const se=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function oe(e,t){let a;for(let i=t;!a;i=i.parent){if(!i)return null;if(i.name=="Statement")a=i}let n=null;for(let i=a.firstChild,r=false,s=null;i;i=i.nextSibling){let t=i.name=="Keyword"?e.sliceString(i.from,i.to).toLowerCase():null;let a=null;if(!r){r=t=="from"}else if(t=="as"&&s&&ae(i.nextSibling)){a=te(e,i.nextSibling)}else if(t&&se.has(t)){break}else if(s&&ae(i)){a=te(e,i)}if(a){if(!n)n=Object.create(null);n[a]=ne(e,s)}s=/Identifier$/.test(i.name)?i:null}return n}function le(e,t){if(!e)return t;return t.map((t=>Object.assign(Object.assign({},t),{label:t.label[0]==e?t.label:e+t.label+e,apply:undefined})))}const ce=/^\w*$/,de=/^[`'"]?\w*[`'"]?$/;function ue(e){return e.self&&typeof e.self.label=="string"}class me{constructor(e,t){this.idQuote=e;this.idCaseInsensitive=t;this.list=[];this.children=undefined}child(e){let t=this.children||(this.children=Object.create(null));let a=t[e];if(a)return a;if(e&&!this.list.some((t=>t.label==e)))this.list.push(pe(e,"type",this.idQuote,this.idCaseInsensitive));return t[e]=new me(this.idQuote,this.idCaseInsensitive)}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex((t=>t.label==e.label));if(t>-1)this.list[t]=e;else this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion(typeof t=="string"?pe(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){if(Array.isArray(e)){this.addCompletions(e)}else if(ue(e)){this.addNamespace(e.children)}else{this.addNamespaceObject(e)}}addNamespaceObject(e){for(let t of Object.keys(e)){let a=e[t],n=null;let i=t.replace(/\\?\./g,(e=>e=="."?"\0":e)).split("\0");let r=this;if(ue(a)){n=a.self;a=a.children}for(let e=0;e{let{parents:t,from:a,quoted:i,empty:r,aliases:s}=re(e.state,e.pos);if(r&&!e.explicit)return null;if(s&&t.length==1)t=s[t[0]]||t;let o=l;for(let m of t){while(!o.children||!o.children[m]){if(o==l&&c)o=c;else if(o==c&&n)o=o.child(n);else return null}let e=o.maybeChild(m);if(!e)return null;o=e}let d=i&&e.state.sliceDoc(e.pos,e.pos+1)==i;let u=o.list;if(o==l&&s)u=u.concat(Object.keys(s).map((e=>({label:e,type:"constant"}))));return{from:a,to:d?e.pos+1:undefined,options:le(i,u),validFor:i?de:ce}}}function ge(e){return e==T?"type":e==P?"keyword":"variable"}function he(e,t,a){let n=Object.keys(e).map((n=>a(t?n.toUpperCase():n,ge(e[n]))));return(0,l.Ar)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,l.et)(n))}let be=J.configure({props:[n.indentNodeProp.add({Statement:(0,n.continuedIndent)()}),n.foldNodeProp.add({Statement(e,t){return{from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,r.styleTags)({Keyword:r.tags.keyword,Type:r.tags.typeName,Builtin:r.tags.standard(r.tags.name),Bits:r.tags.number,Bytes:r.tags.string,Bool:r.tags.bool,Null:r.tags.null,Number:r.tags.number,String:r.tags.string,Identifier:r.tags.name,QuotedIdentifier:r.tags.special(r.tags.string),SpecialVar:r.tags.special(r.tags.name),LineComment:r.tags.lineComment,BlockComment:r.tags.blockComment,Operator:r.tags.operator,"Semi Punctuation":r.tags.punctuation,"( )":r.tags.paren,"{ }":r.tags.brace,"[ ]":r.tags.squareBracket})]});class _e{constructor(e,t,a){this.dialect=e;this.language=t;this.spec=a}get extension(){return this.language.extension}static define(e){let t=K(e,e.keywords,e.types,e.builtin);let a=n.LRLanguage.define({name:"sql",parser:be.configure({tokenizers:[{from:H,to:F(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new _e(t,a,e)}}function ve(e,t){return{label:e,type:t,boost:-1}}function ye(e,t=false,a){return he(e.dialect.words,t,a||ve)}function ke(e){return e.schema?fe(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||we):()=>null}function xe(e){return e.schema?(e.dialect||we).language.data.of({autocomplete:ke(e)}):[]}function Oe(e={}){let t=e.dialect||we;return new n.LanguageSupport(t.language,[xe(e),t.language.data.of({autocomplete:ye(t,e.upperCaseKeywords,e.keywordCompletion)})])}const we=_e.define({});const Qe=_e.define({charSetCasts:true,doubleDollarQuotedStrings:true,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:M+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:G+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"});const Ce="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";const Se=G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed";const qe="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee";const Pe=_e.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:M+"group_concat "+Ce,types:Se,builtin:qe});const Te=_e.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:M+"always generated groupby_concat hard persistent shutdown soft virtual "+Ce,types:Se,builtin:qe});const Ue=_e.define({keywords:M+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:G+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"});const ze=_e.define({keywords:M+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"});const Xe=_e.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:G+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:true});const je=_e.define({keywords:M+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:G+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:true,charSetCasts:true,plsqlQuotingMechanism:true})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6540.51c00e890179a4832552.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6540.51c00e890179a4832552.js new file mode 100644 index 0000000000000000000000000000000000000000..01588fd969a0aecfbad7c73fcd3daf9aeb5ac9c8 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6540.51c00e890179a4832552.js @@ -0,0 +1,2 @@ +/*! For license information please see 6540.51c00e890179a4832552.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6540],{15287:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function d(e){if(null===e||"object"!==typeof e)return null;e=y&&e[y]||e["@@iterator"];return"function"===typeof e?e:null}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function m(e,t,r){this.props=e;this.context=t;this.refs=b;this.updater=r||_}m.prototype.isReactComponent={};m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")};m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function v(){}v.prototype=m.prototype;function S(e,t,r){this.props=e;this.context=t;this.refs=b;this.updater=r||_}var k=S.prototype=new v;k.constructor=S;h(k,m.prototype);k.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,$={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!R.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1{if(true){e.exports=r(15287)}else{}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js new file mode 100644 index 0000000000000000000000000000000000000000..40ca6d72058e92a50aa57c6a350c360a6f418687 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js @@ -0,0 +1,2 @@ +/*! For license information please see 6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6733],{26733:(e,r,t)=>{"use strict";t.r(r);t.d(r,{ADDITIONAL_PROPERTIES_KEY:()=>s,ADDITIONAL_PROPERTY_FLAG:()=>a,ALL_OF_KEY:()=>u,ANY_OF_KEY:()=>f,CONST_KEY:()=>c,DEFAULT_KEY:()=>l,DEFINITIONS_KEY:()=>d,DEPENDENCIES_KEY:()=>p,ENUM_KEY:()=>h,ERRORS_KEY:()=>m,ErrorSchemaBuilder:()=>xr,ID_KEY:()=>v,IF_KEY:()=>y,ITEMS_KEY:()=>g,JUNK_OPTION_ID:()=>b,NAME_KEY:()=>w,ONE_OF_KEY:()=>A,PROPERTIES_KEY:()=>x,REF_KEY:()=>E,REQUIRED_KEY:()=>O,RJSF_ADDITONAL_PROPERTIES_FLAG:()=>_,ROOT_SCHEMA_PREFIX:()=>I,SUBMIT_BTN_OPTIONS_KEY:()=>S,TranslatableString:()=>lt,UI_FIELD_KEY:()=>j,UI_GLOBAL_OPTIONS_KEY:()=>$,UI_OPTIONS_KEY:()=>D,UI_WIDGET_KEY:()=>P,allowAdditionalItems:()=>i,ariaDescribedByIds:()=>qr,asNumber:()=>o,canExpand:()=>N,createErrorHandler:()=>U,createSchemaUtils:()=>fr,dataURItoBlob:()=>cr,deepEquals:()=>L,descriptionId:()=>Wr,englishStringTranslator:()=>dr,enumOptionsDeselectValue:()=>hr,enumOptionsIndexForValue:()=>vr,enumOptionsIsSelected:()=>mr,enumOptionsSelectValue:()=>br,enumOptionsValueForIndex:()=>pr,errorId:()=>Lr,examplesId:()=>Cr,findSchemaDefinition:()=>z,getClosestMatchingOption:()=>Ce,getDefaultFormState:()=>Qe,getDiscriminatorFieldFromSchema:()=>ge,getDisplayLabel:()=>er,getFirstMatchingOption:()=>fe,getInputProps:()=>Sr,getMatchingOption:()=>ue,getOptionMatchingSimpleDiscriminator:()=>se,getSchemaType:()=>xe,getSubmitButtonOptions:()=>_r,getTemplate:()=>Ir,getUiOptions:()=>F,getWidget:()=>Nr,guessType:()=>be,hasWidget:()=>Ur,hashForSchema:()=>Tr,helpId:()=>Rr,isConstant:()=>Be,isCustomWidget:()=>Xe,isFilesArray:()=>Ze,isFixedItems:()=>Re,isMultiSelect:()=>Ke,isObject:()=>n,isSelect:()=>Ye,labelValue:()=>Yr,localToUTC:()=>Kr,mergeDefaultsWithFormData:()=>Ve,mergeObjects:()=>qe,mergeSchemas:()=>Oe,mergeValidationData:()=>rr,optionId:()=>Br,optionsList:()=>zr,orderProperties:()=>Hr,pad:()=>Gr,parseDateString:()=>Qr,rangeSpec:()=>Or,replaceStringParameters:()=>lr,retrieveSchema:()=>Se,sanitizeDataForNewSchema:()=>nr,schemaParser:()=>vt,schemaRequiresTrueValue:()=>Xr,shouldRender:()=>Zr,titleId:()=>Vr,toConstant:()=>Jr,toDateString:()=>et,toErrorList:()=>rt,toErrorSchema:()=>it,toIdSchema:()=>or,toPathSchema:()=>sr,unwrapErrorHandler:()=>ot,utcToLocal:()=>at,validationDataMerge:()=>st,withIdRefPrefix:()=>ct});function n(e){if(typeof File!=="undefined"&&e instanceof File){return false}if(typeof Date!=="undefined"&&e instanceof Date){return false}return typeof e==="object"&&e!==null&&!Array.isArray(e)}function i(e){if(e.additionalItems===true){console.warn("additionalItems=true is currently not supported")}return n(e.additionalItems)}function o(e){if(e===""){return undefined}if(e===null){return null}if(/\.$/.test(e)){return e}if(/\.0$/.test(e)){return e}if(/\.\d*0$/.test(e)){return e}const r=Number(e);const t=typeof r==="number"&&!Number.isNaN(r);return t?r:e}const a="__additional_property";const s="additionalProperties";const u="allOf";const f="anyOf";const c="const";const l="default";const d="definitions";const p="dependencies";const h="enum";const m="__errors";const v="$id";const y="if";const g="items";const b="_$junk_option_schema_id$_";const w="$name";const A="oneOf";const x="properties";const O="required";const S="submitButtonOptions";const E="$ref";const _="__rjsf_additionalProperties";const I="__rjsf_rootSchema";const j="ui:field";const P="ui:widget";const D="ui:options";const $="ui:globalOptions";function F(e={},r={}){return Object.keys(e).filter((e=>e.indexOf("ui:")===0)).reduce(((r,t)=>{const i=e[t];if(t===P&&n(i)){console.error("Setting options via ui:widget object is no longer supported, use ui:options instead");return r}if(t===D&&n(i)){return{...r,...i}}return{...r,[t.substring(3)]:i}}),{...r})}function N(e,r={},t){if(!e.additionalProperties){return false}const{expandable:n=true}=F(r);if(n===false){return n}if(e.maxProperties!==undefined&&t){return Object.keys(t).length({...e,[t]:U(r)})),r)}if(T()(e)){const t=e;return Object.keys(t).reduce(((e,r)=>({...e,[r]:U(t[r])})),r)}return r}var k=t(29132);var W=t.n(k);function L(e,r){return W()(e,r,((e,r)=>{if(typeof e==="function"&&typeof r==="function"){return true}return undefined}))}var C=t(58156);var R=t.n(C);var V=t(62193);var q=t.n(V);var B=t(56239);var Y=t(90179);var K=t.n(Y);function J(e,r){const t=r[e];const n=K()(r,[e]);return[n,t]}function z(e,r={}){let t=e||"";if(t.startsWith("#")){t=decodeURIComponent(t.substring(1))}else{throw new Error(`Could not find a definition for ${e}.`)}const n=B.get(r,t);if(n===undefined){throw new Error(`Could not find a definition for ${e}.`)}if(n[E]){const[e,t]=J(E,n);const i=z(t,r);if(Object.keys(e).length>0){return{...e,...i}}return i}return n}var H=t(61448);var G=t.n(H);var Q=t(98023);var X=t.n(Q);var Z=t(23805);var ee=t.n(Z);var re=t(85015);var te=t.n(re);var ne=t(40860);var ie=t.n(ne);var oe=t(6638);var ae=t.n(oe);function se(e,r,t){var n;if(e&&t){const i=R()(e,t);if(i===undefined){return}for(let e=0;e({required:[e]})))};let i;if(o.anyOf){const{...e}=o;if(!e.allOf){e.allOf=[]}else{e.allOf=e.allOf.slice()}e.allOf.push(t);i=e}else{i=Object.assign({},o,t)}delete i.required;if(e.isValid(i,r,n)){return a}}else if(e.isValid(o,r,n)){return a}}return 0}function fe(e,r,t,n,i){return ue(e,r,t,n,i)}var ce=t(2404);var le=t.n(ce);var de=t(63560);var pe=t.n(de);var he=t(69752);var me=t.n(he);var ve=t(33978);var ye=t.n(ve);function ge(e){let r;const t=R()(e,"discriminator.propertyName",undefined);if(te()(t)){r=t}else if(t!==undefined){console.warn(`Expecting discriminator to be a string, got "${typeof t}" instead`)}return r}function be(e){if(Array.isArray(e)){return"array"}if(typeof e==="string"){return"string"}if(e==null){return"null"}if(typeof e==="boolean"){return"boolean"}if(!isNaN(e)){return"number"}if(typeof e==="object"){return"object"}return"string"}var we=t(80299);var Ae=t.n(we);function xe(e){let{type:r}=e;if(!r&&e.const){return be(e.const)}if(!r&&e.enum){return"string"}if(!r&&(e.properties||e.additionalProperties)){return"object"}if(Array.isArray(r)){if(r.length===2&&r.includes("null")){r=r.find((e=>e!=="null"))}else{r=r[0]}}return r}function Oe(e,r){const t=Object.assign({},e);return Object.keys(r).reduce(((t,i)=>{const o=e?e[i]:{},a=r[i];if(e&&i in e&&n(a)){t[i]=Oe(o,a)}else if(e&&r&&(xe(e)==="object"||xe(r)==="object")&&i===O&&Array.isArray(o)&&Array.isArray(a)){t[i]=Ae()(o,a)}else{t[i]=a}return t}),t)}function Se(e,r,t={},n){return $e(e,r,t,n)[0]}function Ee(e,r,t,n,i,o){const{if:a,then:s,else:u,...f}=r;const c=e.isValid(a,o||{},t);let l=[f];let d=[];if(n){if(s&&typeof s!=="boolean"){d=d.concat($e(e,s,t,o,n,i))}if(u&&typeof u!=="boolean"){d=d.concat($e(e,u,t,o,n,i))}}else{const r=c?s:u;if(r&&typeof r!=="boolean"){d=d.concat($e(e,r,t,o,n,i))}}if(d.length){l=d.map((e=>Oe(f,e)))}return l.flatMap((r=>$e(e,r,t,o,n,i)))}function _e(e){const r=e.reduce(((e,r)=>{if(r.length>1){return r.flatMap((r=>ae()(e.length,(t=>[...e[t]].concat(r)))))}e.forEach((e=>e.push(r[0])));return e}),[[]]);return r}function Ie(e,r,t,n,i,o){const a=je(e,r,t,n,i,o);if(a.length>1||a[0]!==r){return a}if(p in r){const a=Ne(e,r,t,n,i,o);return a.flatMap((r=>$e(e,r,t,o,n,i)))}if(u in r&&Array.isArray(r.allOf)){const a=r.allOf.map((r=>$e(e,r,t,o,n,i)));const s=_e(a);return s.map((e=>({...r,allOf:e})))}return[r]}function je(e,r,t,n,i,o){const a=Pe(r,t,i);if(a!==r){return $e(e,a,t,o,n,i)}return[r]}function Pe(e,r,t){if(!n(e)){return e}let i=e;if(E in i){const{$ref:e,...n}=i;if(t.includes(e)){return i}t.push(e);const o=z(e,r);i={...o,...n}}if(x in i){const e=me()(i[x],((e,n,i)=>{e[i]=Pe(n,r,t)}),{});i={...i,[x]:e}}if(g in i&&!Array.isArray(i.items)&&typeof i.items!=="boolean"){i={...i,items:Pe(i.items,r,t)}}return le()(e,i)?e:i}function De(e,r,t,i){const o={...r,properties:{...r.properties}};const s=i&&n(i)?i:{};Object.keys(s).forEach((r=>{if(r in o.properties){return}let n={};if(typeof o.additionalProperties!=="boolean"){if(E in o.additionalProperties){n=Se(e,{$ref:R()(o.additionalProperties,[E])},t,s)}else if("type"in o.additionalProperties){n={...o.additionalProperties}}else if(f in o.additionalProperties||A in o.additionalProperties){n={type:"object",...o.additionalProperties}}else{n={type:be(R()(s,[r]))}}}else{n={type:be(R()(s,[r]))}}o.properties[r]=n;pe()(o.properties,[r,a],true)}));return o}function $e(e,r,t,i,o=false,a=[]){if(!n(r)){return[{}]}const f=Ie(e,r,t,o,a,i);return f.flatMap((r=>{let n=r;if(y in n){return Ee(e,n,t,o,a,i)}if(u in n){if(o){const{allOf:e,...r}=n;return[...e,r]}try{n=ye()(n,{deep:false})}catch(c){console.warn("could not merge subschemas in allOf:\n",c);const{allOf:e,...r}=n;return r}}const f=s in n&&n.additionalProperties!==false;if(f){return De(e,n,t,i)}return n}))}function Fe(e,r,t,n,i){let o;const{oneOf:a,anyOf:s,...u}=r;if(Array.isArray(a)){o=a}else if(Array.isArray(s)){o=s}if(o){const a=i===undefined&&n?{}:i;const s=ge(r);o=o.map((e=>Pe(e,t,[])));const f=fe(e,a,o,t,s);if(n){return o.map((e=>Oe(u,e)))}r=Oe(u,o[f])}return[r]}function Ne(e,r,t,n,i,o){const{dependencies:a,...s}=r;const u=Fe(e,s,t,n,o);return u.flatMap((r=>Me(e,a,r,t,n,i,o)))}function Me(e,r,t,i,o,a,s){let u=[t];for(const f in r){if(!o&&R()(s,[f])===undefined){continue}if(t.properties&&!(f in t.properties)){continue}const[c,l]=J(f,r);if(Array.isArray(l)){u[0]=Te(t,l)}else if(n(l)){u=Ue(e,t,i,f,l,o,a,s)}return u.flatMap((r=>Me(e,c,r,i,o,a,s)))}return u}function Te(e,r){if(!r){return e}const t=Array.isArray(e.required)?Array.from(new Set([...e.required,...r])):r;return{...e,required:t}}function Ue(e,r,t,n,i,o,a,s){const u=$e(e,i,t,s,o,a);return u.flatMap((i=>{const{oneOf:u,...f}=i;r=Oe(r,f);if(u===undefined){return r}const c=u.map((r=>{if(typeof r==="boolean"||!(E in r)){return[r]}return je(e,r,t,o,a,s)}));const l=_e(c);return l.flatMap((i=>ke(e,r,t,n,i,o,a,s)))}))}function ke(e,r,t,n,i,o,a,s){const u=i.filter((r=>{if(typeof r==="boolean"||!r||!r.properties){return false}const{[n]:i}=r.properties;if(i){const r={type:"object",properties:{[n]:i}};return e.isValid(r,s,t)||o}return false}));if(!o&&u.length!==1){console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid");return[r]}return u.flatMap((i=>{const u=i;const[f]=J(n,u.properties);const c={...u,properties:f};const l=$e(e,c,t,s,o,a);return l.map((e=>Oe(r,e)))}))}const We={type:"object",$id:b,properties:{__not_really_there__:{type:"number"}}};function Le(e,r,t,n={}){let i=0;if(t){if(ee()(t.properties)){i+=ie()(t.properties,((t,i,o)=>{const a=R()(n,o);if(typeof i==="boolean"){return t}if(G()(i,E)){const n=Se(e,i,r,a);return t+Le(e,r,n,a||{})}if((G()(i,A)||G()(i,f))&&a){const n=G()(i,A)?A:f;const o=ge(i);return t+Ce(e,r,a,R()(i,n),-1,o)}if(i.type==="object"){return t+Le(e,r,i,a||{})}if(i.type===be(a)){let e=t+1;if(i.default){e+=a===i.default?1:-1}else if(i.const){e+=a===i.const?1:-1}return e}return t}),0)}else if(te()(t.type)&&t.type===be(n)){i+=1}}return i}function Ce(e,r,t,n,i=-1,o){const a=n.map((e=>Pe(e,r,[])));const s=se(t,n,o);if(X()(s)){return s}const u=a.reduce(((n,i,a)=>{const s=[We,i];const u=fe(e,t,s,r,o);if(u===1){n.push(a)}return n}),[]);if(u.length===1){return u[0]}if(!u.length){ae()(a.length,(e=>u.push(e)))}const f=new Set;const{bestIndex:c}=u.reduce(((n,i)=>{const{bestScore:o}=n;const s=a[i];const u=Le(e,r,s,t);f.add(u);if(u>o){return{bestIndex:i,bestScore:u}}return n}),{bestIndex:i,bestScore:0});if(f.size===1&&i>=0){return i}return c}function Re(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>n(e)))}function Ve(e,r,t=false){if(Array.isArray(r)){const n=Array.isArray(e)?e:[];const i=r.map(((e,r)=>{if(n[r]){return Ve(n[r],e,t)}return e}));if(t&&i.length{n[i]=Ve(e?R()(e,i):{},R()(r,i),t);return n}),n)}return r}function qe(e,r,t=false){return Object.keys(r).reduce(((i,o)=>{const a=e?e[o]:{},s=r[o];if(e&&o in e&&n(s)){i[o]=qe(a,s,t)}else if(t&&Array.isArray(a)&&Array.isArray(s)){let e=s;if(t==="preventDuplicates"){e=s.reduce(((e,r)=>{if(!a.includes(r)){e.push(r)}return e}),[])}i[o]=a.concat(e)}else{i[o]=s}return i}),Object.assign({},e))}function Be(e){return Array.isArray(e.enum)&&e.enum.length===1||c in e}function Ye(e,r,t={}){const n=Se(e,r,t,undefined);const i=n.oneOf||n.anyOf;if(Array.isArray(n.enum)){return true}if(Array.isArray(i)){return i.every((e=>typeof e!=="boolean"&&Be(e)))}return false}function Ke(e,r,t){if(!r.uniqueItems||!r.items||typeof r.items==="boolean"){return false}return Ye(e,r.items,t)}var Je;(function(e){e[e["Ignore"]=0]="Ignore";e[e["Invert"]=1]="Invert";e[e["Fallback"]=2]="Fallback"})(Je||(Je={}));function ze(e,r=Je.Ignore,t=-1){if(t>=0){if(Array.isArray(e.items)&&tGe(e,r,{rootSchema:o,includeUndefinedValues:a,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:Array.isArray(t)?t[n]:undefined,rawFormData:m,required:c})))}else if(A in v){const{oneOf:r,...t}=v;if(r.length===0){return undefined}const n=ge(v);g=r[Ce(e,o,q()(m)?undefined:m,r,0,n)];g=Oe(t,g)}else if(f in v){const{anyOf:r,...t}=v;if(r.length===0){return undefined}const n=ge(v);g=r[Ce(e,o,q()(m)?undefined:m,r,0,n)];g=Oe(t,g)}if(g){return Ge(e,g,{rootSchema:o,includeUndefinedValues:a,_recurseList:b,experimental_defaultFormStateBehavior:u,parentDefaults:y,rawFormData:m,required:c})}if(y===undefined){y=v.default}switch(xe(v)){case"object":{const r=Object.keys(v.properties||{}).reduce(((r,t)=>{var n;const i=Ge(e,R()(v,[x,t]),{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:a===true,parentDefaults:R()(y,[t]),rawFormData:R()(m,[t]),required:(n=v.required)===null||n===void 0?void 0:n.includes(t)});He(r,t,i,a,c,v.required,u);return r}),{});if(v.additionalProperties){const t=n(v.additionalProperties)?v.additionalProperties:{};const i=new Set;if(n(y)){Object.keys(y).filter((e=>!v.properties||!v.properties[e])).forEach((e=>i.add(e)))}const f=[];Object.keys(m).filter((e=>!v.properties||!v.properties[e])).forEach((e=>{i.add(e);f.push(e)}));i.forEach((n=>{var i;const l=Ge(e,t,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:u,includeUndefinedValues:a===true,parentDefaults:R()(y,[n]),rawFormData:R()(m,[n]),required:(i=v.required)===null||i===void 0?void 0:i.includes(n)});He(r,n,l,a,c,f)}))}return r}case"array":{const r=((d=u===null||u===void 0?void 0:u.arrayMinItems)===null||d===void 0?void 0:d.populate)==="never";const t=((h=u===null||u===void 0?void 0:u.arrayMinItems)===null||h===void 0?void 0:h.populate)==="requiredOnly";if(Array.isArray(y)){y=y.map(((r,t)=>{const n=ze(v,Je.Fallback,t);return Ge(e,n,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:u,parentDefaults:r,required:c})}))}if(Array.isArray(i)){const t=ze(v);if(r){y=i}else{y=i.map(((r,n)=>Ge(e,t,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:u,rawFormData:r,parentDefaults:R()(y,[n]),required:c})))}}if(r){return y!==null&&y!==void 0?y:[]}if(t&&!c){return y?y:undefined}const n=Array.isArray(y)?y.length:0;if(!v.minItems||Ke(e,v,o)||v.minItems<=n){return y?y:[]}const a=y||[];const f=ze(v,Je.Invert);const l=f.default;const p=new Array(v.minItems-n).fill(Ge(e,f,{parentDefaults:l,rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:u,required:c}));return a.concat(p)}}return y}function Qe(e,r,t,i,o=false,a){if(!n(r)){throw new Error("Invalid schema: "+r)}const s=Se(e,r,i,t);const u=Ge(e,s,{rootSchema:i,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:t});if(t===undefined||t===null||typeof t==="number"&&isNaN(t)){return u}const{mergeExtraDefaults:f}=(a===null||a===void 0?void 0:a.arrayMinItems)||{};if(n(t)){return Ve(u,t,f)}if(Array.isArray(t)){return Ve(u,t,f)}return t}function Xe(e={}){return"widget"in F(e)&&F(e)["widget"]!=="hidden"}function Ze(e,r,t={},n){if(t[P]==="files"){return true}if(r.items){const t=Se(e,r.items,n);return t.type==="string"&&t.format==="data-url"}return false}function er(e,r,t={},n,i){const o=F(t,i);const{label:a=true}=o;let s=!!a;const u=xe(r);if(u==="array"){s=Ke(e,r,n)||Ze(e,r,t,n)||Xe(t)}if(u==="object"){s=false}if(u==="boolean"&&!t[P]){s=false}if(t[j]){s=false}return s}function rr(e,r,t){if(!t){return r}const{errors:n,errorSchema:i}=r;let o=e.toErrorList(t);let a=t;if(!q()(i)){a=qe(i,t,true);o=[...n].concat(o)}return{errorSchema:a,errors:o}}const tr=Symbol("no Value");function nr(e,r,t,n,i={}){let o;if(G()(t,x)){const a={};if(G()(n,x)){const e=R()(n,x,{});Object.keys(e).forEach((e=>{if(G()(i,e)){a[e]=undefined}}))}const s=Object.keys(R()(t,x,{}));const u={};s.forEach((o=>{const s=R()(i,o);let f=R()(n,[x,o],{});let c=R()(t,[x,o],{});if(G()(f,E)){f=Se(e,f,r,s)}if(G()(c,E)){c=Se(e,c,r,s)}const l=R()(f,"type");const d=R()(c,"type");if(!l||l===d){if(G()(a,o)){delete a[o]}if(d==="object"||d==="array"&&Array.isArray(s)){const t=nr(e,r,c,f,s);if(t!==undefined||d==="array"){u[o]=t}}else{const e=R()(c,"default",tr);const r=R()(f,"default",tr);if(e!==tr&&e!==s){if(r===s){a[o]=e}else if(R()(c,"readOnly")===true){a[o]=undefined}}const t=R()(c,"const",tr);const n=R()(f,"const",tr);if(t!==tr&&t!==s){a[o]=n===s?t:undefined}}}}));o={...typeof i=="string"||Array.isArray(i)?undefined:i,...a,...u}}else if(R()(n,"type")==="array"&&R()(t,"type")==="array"&&Array.isArray(i)){let a=R()(n,"items");let s=R()(t,"items");if(typeof a==="object"&&typeof s==="object"&&!Array.isArray(a)&&!Array.isArray(s)){if(G()(a,E)){a=Se(e,a,r,i)}if(G()(s,E)){s=Se(e,s,r,i)}const n=R()(a,"type");const u=R()(s,"type");if(!n||n===u){const n=R()(t,"maxItems",-1);if(u==="object"){o=i.reduce(((t,i)=>{const o=nr(e,r,s,a,i);if(o!==undefined&&(n<0||t.length0&&i.length>n?i.slice(0,n):i}}}else if(typeof a==="boolean"&&typeof s==="boolean"&&a===s){o=i}}return o}function ir(e,r,t,i,o,a,s,f=[]){if(E in r||p in r||u in r){const n=Se(e,r,a,s);const u=f.findIndex((e=>le()(e,n)));if(u===-1){return ir(e,n,t,i,o,a,s,f.concat(n))}}if(g in r&&!R()(r,[g,E])){return ir(e,R()(r,g),t,i,o,a,s,f)}const c=o||t;const l={$id:c};if(xe(r)==="object"&&x in r){for(const o in r.properties){const u=R()(r,[x,o]);const c=l[v]+i+o;l[o]=ir(e,n(u)?u:{},t,i,c,a,R()(s,[o]),f)}}return l}function or(e,r,t,n,i,o="root",a="_"){return ir(e,r,o,a,t,n,i)}function ar(e,r,t,n,i,o=[]){if(E in r||p in r||u in r){const a=Se(e,r,n,i);const s=o.findIndex((e=>le()(e,a)));if(s===-1){return ar(e,a,t,n,i,o.concat(a))}}let a={[w]:t.replace(/^\./,"")};if(A in r||f in r){const s=A in r?r.oneOf:r.anyOf;const u=ge(r);const f=Ce(e,n,i,s,0,u);const c=s[f];a={...a,...ar(e,c,t,n,i,o)}}if(s in r&&r[s]!==false){pe()(a,_,true)}if(g in r&&Array.isArray(i)){const{items:s,additionalItems:u}=r;if(Array.isArray(s)){i.forEach(((r,i)=>{if(s[i]){a[i]=ar(e,s[i],`${t}.${i}`,n,r,o)}else if(u){a[i]=ar(e,u,`${t}.${i}`,n,r,o)}else{console.warn(`Unable to generate path schema for "${t}.${i}". No schema defined for it`)}}))}else{i.forEach(((r,i)=>{a[i]=ar(e,s,`${t}.${i}`,n,r,o)}))}}else if(x in r){for(const s in r.properties){const u=R()(r,[x,s]);a[s]=ar(e,u,`${t}.${s}`,n,R()(i,[s]),o)}}return a}function sr(e,r,t="",n,i){return ar(e,r,t,n,i)}class ur{constructor(e,r,t){this.rootSchema=r;this.validator=e;this.experimental_defaultFormStateBehavior=t}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,t={}){if(!e||!r){return false}return this.validator!==e||!L(this.rootSchema,r)||!L(this.experimental_defaultFormStateBehavior,t)}getDefaultFormState(e,r,t=false){return Qe(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,r,t){return er(this.validator,e,r,this.rootSchema,t)}getClosestMatchingOption(e,r,t,n){return Ce(this.validator,this.rootSchema,e,r,t,n)}getFirstMatchingOption(e,r,t){return fe(this.validator,e,r,this.rootSchema,t)}getMatchingOption(e,r,t){return ue(this.validator,e,r,this.rootSchema,t)}isFilesArray(e,r){return Ze(this.validator,e,r,this.rootSchema)}isMultiSelect(e){return Ke(this.validator,e,this.rootSchema)}isSelect(e){return Ye(this.validator,e,this.rootSchema)}mergeValidationData(e,r){return rr(this.validator,e,r)}retrieveSchema(e,r){return Se(this.validator,e,this.rootSchema,r)}sanitizeDataForNewSchema(e,r,t){return nr(this.validator,this.rootSchema,e,r,t)}toIdSchema(e,r,t,n="root",i="_"){return or(this.validator,e,r,this.rootSchema,t,n,i)}toPathSchema(e,r,t){return sr(this.validator,e,r,this.rootSchema,t)}}function fr(e,r,t={}){return new ur(e,r,t)}function cr(e){const r=e.split(",");const t=r[0].split(";");const n=t[0].replace("data:","");const i=t.filter((e=>e.split("=")[0]==="name"));let o;if(i.length!==1){o="unknown"}else{o=decodeURI(i[0].split("=")[1])}try{const e=atob(r[1]);const t=[];for(let r=0;r{const n=e.findIndex((e=>e===`%${t+1}`));if(n>=0){e[n]=r}}));t=e.join("")}return t}function dr(e,r){return lr(e,r)}function pr(e,r=[],t){if(Array.isArray(e)){return e.map((e=>pr(e,r))).filter((e=>e))}const n=e===""||e===null?-1:Number(e);const i=r[n];return i?i.value:t}function hr(e,r,t=[]){const n=pr(e,t);if(Array.isArray(r)){return r.filter((e=>!le()(e,n)))}return le()(n,r)?undefined:r}function mr(e,r){if(Array.isArray(r)){return r.some((r=>le()(r,e)))}return le()(r,e)}function vr(e,r=[],t=false){const n=r.map(((r,t)=>mr(r.value,e)?String(t):undefined)).filter((e=>typeof e!=="undefined"));if(!t){return n[0]}return n}var yr=t(69843);var gr=t.n(yr);function br(e,r,t=[]){const n=pr(e,t);if(!gr()(n)){const e=t.findIndex((e=>n===e.value));const i=t.map((({value:e})=>e));const o=r.slice(0,e).concat(n,r.slice(e));return o.sort(((e,r)=>Number(i.indexOf(e)>i.indexOf(r))))}return r}var wr=t(88055);var Ar=t.n(wr);class xr{constructor(e){this.errorSchema={};this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){const r=Array.isArray(e)&&e.length>0||typeof e==="string";let t=r?R()(this.errorSchema,e):this.errorSchema;if(!t&&e){t={};pe()(this.errorSchema,e,t)}return t}resetAllErrors(e){this.errorSchema=e?Ar()(e):{};return this}addErrors(e,r){const t=this.getOrCreateErrorBlock(r);let n=R()(t,m);if(!Array.isArray(n)){n=[];t[m]=n}if(Array.isArray(e)){n.push(...e)}else{n.push(e)}return this}setErrors(e,r){const t=this.getOrCreateErrorBlock(r);const n=Array.isArray(e)?[...e]:[e];pe()(t,m,n);return this}clearErrors(e){const r=this.getOrCreateErrorBlock(e);pe()(r,m,[]);return this}}function Or(e){const r={};if(e.multipleOf){r.step=e.multipleOf}if(e.minimum||e.minimum===0){r.min=e.minimum}if(e.maximum||e.maximum===0){r.max=e.maximum}return r}function Sr(e,r,t={},n=true){const i={type:r||"text",...Or(e)};if(t.inputType){i.type=t.inputType}else if(!r){if(e.type==="number"){i.type="number";if(n&&i.step===undefined){i.step="any"}}else if(e.type==="integer"){i.type="number";if(i.step===undefined){i.step=1}}}if(t.autocomplete){i.autoComplete=t.autocomplete}return i}const Er={props:{disabled:false},submitText:"Submit",norender:false};function _r(e={}){const r=F(e);if(r&&r[S]){const e=r[S];return{...Er,...e}}return Er}function Ir(e,r,t={}){const{templates:n}=r;if(e==="ButtonTemplates"){return n[e]}return t[e]||n[e]}var jr=t(74848);var Pr=t(44914);var Dr=t(44363);const $r={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Fr(e){let r=R()(e,"MergedWidget");if(!r){const t=e.defaultProps&&e.defaultProps.options||{};r=({options:r,...n})=>(0,jr.jsx)(e,{options:{...t,...r},...n});pe()(e,"MergedWidget",r)}return r}function Nr(e,r,t={}){const n=xe(e);if(typeof r==="function"||r&&Dr.isForwardRef((0,Pr.createElement)(r))||Dr.isMemo(r)){return Fr(r)}if(typeof r!=="string"){throw new Error(`Unsupported widget definition: ${typeof r}`)}if(r in t){const n=t[r];return Nr(e,n,t)}if(typeof n==="string"){if(!(n in $r)){throw new Error(`No widget for type '${n}'`)}if(r in $r[n]){const i=t[$r[n][r]];return Nr(e,i,t)}}throw new Error(`No widget '${r}' for type '${n}'`)}function Mr(e){let r=0;for(let t=0;t(r.add(e),t)));return Mr(JSON.stringify(e,Array.from(r).sort()))}function Ur(e,r,t={}){try{Nr(e,r,t);return true}catch(n){const e=n;if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget"))){return false}throw n}}function kr(e,r){const t=te()(e)?e:e[v];return`${t}__${r}`}function Wr(e){return kr(e,"description")}function Lr(e){return kr(e,"error")}function Cr(e){return kr(e,"examples")}function Rr(e){return kr(e,"help")}function Vr(e){return kr(e,"title")}function qr(e,r=false){const t=r?` ${Cr(e)}`:"";return`${Lr(e)} ${Wr(e)} ${Rr(e)}${t}`}function Br(e,r){return`${e}-${r}`}function Yr(e,r,t){return r?t:e}function Kr(e){return e?new Date(e).toJSON():undefined}function Jr(e){if(h in e&&Array.isArray(e.enum)&&e.enum.length===1){return e.enum[0]}if(c in e){return e.const}throw new Error("schema cannot be inferred as a constant")}function zr(e){const r=e;if(r.enumNames&&"production"!=="production"){}if(e.enum){return e.enum.map(((e,t)=>{const n=r.enumNames&&r.enumNames[t]||String(e);return{label:n,value:e}}))}const t=e.oneOf||e.anyOf;return t&&t.map((e=>{const r=e;const t=Jr(r);const n=r.title||String(t);return{schema:r,label:n,value:t}}))}function Hr(e,r){if(!Array.isArray(r)){return e}const t=e=>e.reduce(((e,r)=>{e[r]=true;return e}),{});const n=e=>e.length>1?`properties '${e.join("', '")}'`:`property '${e[0]}'`;const i=t(e);const o=r.filter((e=>e==="*"||i[e]));const a=t(o);const s=e.filter((e=>!a[e]));const u=o.indexOf("*");if(u===-1){if(s.length){throw new Error(`uiSchema order list does not contain ${n(s)}`)}return o}if(u!==o.lastIndexOf("*")){throw new Error("uiSchema order list contains more than one wildcard item")}const f=[...o];f.splice(u,1,...s);return f}function Gr(e,r){let t=String(e);while(t.lengthXr(e);return e.allOf.some(r)}return false}function Zr(e,r,t){const{props:n,state:i}=e;return!L(n,r)||!L(i,t)}function et(e,r=true){const{year:t,month:n,day:i,hour:o=0,minute:a=0,second:s=0}=e;const u=Date.UTC(t,n-1,i,o,a,s);const f=new Date(u).toJSON();return r?f:f.slice(0,10)}function rt(e,r=[]){if(!e){return[]}let t=[];if(m in e){t=t.concat(e[m].map((e=>{const t=`.${r.join(".")}`;return{property:t,message:e,stack:`${t} ${e}`}})))}return Object.keys(e).reduce(((t,n)=>{if(n!==m){const i=e[n];if(T()(i)){t=t.concat(rt(i,[...r,n]))}}return t}),t)}var tt=t(42072);var nt=t.n(tt);function it(e){const r=new xr;if(e.length){e.forEach((e=>{const{property:t,message:n}=e;const i=t==="."?[]:nt()(t);if(i.length>0&&i[0]===""){i.splice(0,1)}if(n){r.addErrors(n,i)}}))}return r.ErrorSchema}function ot(e){return Object.keys(e).reduce(((r,t)=>{if(t==="addError"){return r}else{const n=e[t];if(T()(n)){return{...r,[t]:ot(n)}}return{...r,[t]:n}}}),{})}function at(e){if(!e){return""}const r=new Date(e);const t=Gr(r.getFullYear(),4);const n=Gr(r.getMonth()+1,2);const i=Gr(r.getDate(),2);const o=Gr(r.getHours(),2);const a=Gr(r.getMinutes(),2);const s=Gr(r.getSeconds(),2);const u=Gr(r.getMilliseconds(),3);return`${t}-${n}-${i}T${o}:${a}:${s}.${u}`}function st(e,r){if(!r){return e}const{errors:t,errorSchema:n}=e;let i=rt(r);let o=r;if(!q()(n)){o=qe(n,r,true);i=[...t].concat(i)}return{errorSchema:o,errors:i}}function ut(e){for(const r in e){const t=e;const n=t[r];if(r===E&&typeof n==="string"&&n.startsWith("#")){t[r]=I+n}else{t[r]=ct(n)}}return e}function ft(e){for(let r=0;r{const i=r.findIndex((e=>le()(e,n)));if(i===-1){r.push(n);const i=Fe(e,n,t,true);i.forEach((i=>{if(x in i&&i[x]){pt()(n[x],(n=>{mt(e,r,t,n)}))}}));if(g in n&&!Array.isArray(n.items)&&typeof n.items!=="boolean"){mt(e,r,t,n.items)}}}))}function vt(e){const r=new ht(e);const t=[];mt(r,t,e,e);return r.getSchemaMap()}},6641:(e,r,t)=>{"use strict";var n=t(85419),i=t(96552),o=t(82986);var a=Math.pow(2,31)-1;function s(e,r){var t=1,n;if(e===0){return r}if(r===0){return e}while(e%2===0&&r%2===0){e=e/2;r=r/2;t=t*2}while(e%2===0){e=e/2}while(r){while(r%2===0){r=r/2}if(e>r){n=r;r=e;e=n}r=r-e}return t*e}function u(e,r){var t=0,n;if(e===0){return r}if(r===0){return e}while((e&1)===0&&(r&1)===0){e>>>=1;r>>>=1;t++}while((e&1)===0){e>>>=1}while(r){while((r&1)===0){r>>>=1}if(e>r){n=r;r=e;e=n}r=r-e}return e<1){f=r[0];t=r[1];if(!o(t)){throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}}else{f=r[0]}c=f.length;if(c<2){return null}if(t){l=new Array(c);for(p=0;p{"use strict";var n=t(6641),i=t(85419),o=t(96552),a=t(82986);function s(){var e=arguments.length,r,t,s,u,f,c,l;r=new Array(e);for(l=0;l1){s=r[0];t=r[1];if(!a(t)){throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}}else{s=r[0]}u=s.length;if(u<2){return null}if(t){f=new Array(u);for(l=0;l{var n=t(2404);var i=t(33031);var o=t(63375);var a=t(9063);var s=t(84684);var u=t(80191);var f=t(11331);var c=t(53812);var l=e=>Array.isArray(e)?e:[e];var d=e=>e===undefined;var p=e=>f(e)||Array.isArray(e)?Object.keys(e):[];var h=(e,r)=>e.hasOwnProperty(r);var m=e=>i(o(e));var v=e=>d(e)||Array.isArray(e)&&e.length===0;var y=(e,r,t,n)=>r&&h(r,t)&&e&&h(e,t)&&n(e[t],r[t]);var g=(e,r)=>d(e)&&r===0||d(r)&&e===0||n(e,r);var b=(e,r)=>d(e)&&r===false||d(r)&&e===false||n(e,r);var w=e=>d(e)||n(e,{})||e===true;var A=e=>d(e)||n(e,{});var x=e=>d(e)||f(e)||e===true||e===false;function O(e,r){if(v(e)&&v(r)){return true}else{return n(m(e),m(r))}}function S(e,r){e=l(e);r=l(r);return n(m(e),m(r))}function E(e,r,t,i){var a=o(p(e).concat(p(r)));if(A(e)&&A(r)){return true}else if(A(e)&&p(r).length){return false}else if(A(r)&&p(e).length){return false}return a.every((function(t){var o=e[t];var a=r[t];if(Array.isArray(o)&&Array.isArray(a)){return n(m(e),m(r))}else if(Array.isArray(o)&&!Array.isArray(a)){return false}else if(Array.isArray(a)&&!Array.isArray(o)){return false}return y(e,r,t,i)}))}function _(e,r,t,i){if(f(e)&&f(r)){return i(e,r)}else if(Array.isArray(e)&&Array.isArray(r)){return E(e,r,t,i)}else{return n(e,r)}}function I(e,r,t,n){var i=a(e,n);var o=a(r,n);var s=u(i,o,n);return s.length===Math.max(i.length,o.length)}var j={title:n,uniqueItems:b,minLength:g,minItems:g,minProperties:g,required:O,enum:O,type:S,items:_,anyOf:I,allOf:I,oneOf:I,properties:E,patternProperties:E,dependencies:E};var P=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"];var D=["additionalProperties","additionalItems","contains","propertyNames","not"];function $(e,r,t){t=s(t,{ignore:[]});if(w(e)&&w(r)){return true}if(!x(e)||!x(r)){throw new Error("Either of the values are not a JSON schema.")}if(e===r){return true}if(c(e)&&c(r)){return e===r}if(e===undefined&&r===false||r===undefined&&e===false){return false}if(d(e)&&!d(r)||!d(e)&&d(r)){return false}var i=o(Object.keys(e).concat(Object.keys(r)));if(t.ignore.length){i=i.filter((e=>t.ignore.indexOf(e)===-1))}if(!i.length){return true}function a(e,r){return $(e,r,t)}return i.every((function(i){var o=e[i];var s=r[i];if(D.indexOf(i)!==-1){return $(o,s,t)}var u=j[i];if(!u){u=n}if(n(o,s)){return true}if(P.indexOf(i)===-1){if(!h(e,i)&&h(r,i)||h(e,i)&&!h(r,i)){return o===s}}var f=u(o,s,i,a);if(!c(f)){throw new Error("Comparer must return true or false")}return f}))}e.exports=$},5109:(e,r,t)=>{const n=t(35970);const i=t(3176);const o=t(11331);const a=t(63375);const s=t(9063);const u=t(91648);function f(e){for(const r in e){if(d(e,r)&&v(e[r])){delete e[r]}}return e}const c=e=>a(i(e.map(p)));const l=(e,r)=>e.map((e=>e&&e[r]));const d=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);const p=e=>{if(o(e)||Array.isArray(e)){return Object.keys(e)}else{return[]}};const h=e=>e!==undefined;const m=e=>o(e)||e===true||e===false;const v=e=>!p(e).length&&e!==false&&e!==true;const y=(e,...r)=>u.apply(null,[e].concat(n(r)));e.exports={allUniqueKeys:c,deleteUndefinedProps:f,getValues:l,has:d,isEmptySchema:v,isSchema:m,keys:p,notUndefined:h,uniqWith:s,withoutArr:y}},11051:(e,r,t)=>{const n=t(90370);const i=t(39754);const{allUniqueKeys:o,deleteUndefinedProps:a,has:s,isSchema:u,notUndefined:f,uniqWith:c}=t(5109);function l(e){i(e,(function(r,t){if(r===false){e.splice(t,1)}}))}function d(e,r){return e.map((function(e){if(!e){return undefined}if(Array.isArray(e.items)){const t=e.items[r];if(u(t)){return t}else if(s(e,"additionalItems")){return e.additionalItems}}else{return e.items}return undefined}))}function p(e){return e.map((function(e){if(!e){return undefined}if(Array.isArray(e.items)){return e.additionalItems}return e.items}))}function h(e,r,t){const i=o(t);return i.reduce((function(t,i){const o=d(e,i);const a=c(o.filter(f),n);t[i]=r(a,i);return t}),[])}e.exports={keywords:["items","additionalItems"],resolver(e,r,t){const n=e.map((e=>e.items));const i=n.filter(f);const o={};if(i.every(u)){o.items=t.items(n)}else{o.items=h(e,t.items,n)}let s;if(i.every(Array.isArray)){s=e.map((e=>e.additionalItems))}else if(i.some(Array.isArray)){s=p(e)}if(s){o.additionalItems=t.additionalItems(s)}if(o.additionalItems===false&&Array.isArray(o.items)){l(o.items)}return a(o)}}},7894:(e,r,t)=>{const n=t(90370);const i=t(39754);const{allUniqueKeys:o,deleteUndefinedProps:a,getValues:s,keys:u,notUndefined:f,uniqWith:c,withoutArr:l}=t(5109);function d(e){i(e,(function(r,t){if(r===false){delete e[t]}}))}function p(e,r){const t=o(e);return t.reduce((function(t,i){const o=s(e,i);const a=c(o.filter(f),n);t[i]=r(a,i);return t}),{})}e.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(e,r,t,n){if(!n.ignoreAdditionalProperties){e.forEach((function(r){const n=e.filter((e=>e!==r));const i=u(r.properties);const o=u(r.patternProperties);const a=o.map((e=>new RegExp(e)));n.forEach((function(e){const n=u(e.properties);const o=n.filter((e=>a.some((r=>r.test(e)))));const s=l(n,i,o);s.forEach((function(n){e.properties[n]=t.properties([e.properties[n],r.additionalProperties],n)}))}))}));e.forEach((function(r){const t=e.filter((e=>e!==r));const n=u(r.patternProperties);if(r.additionalProperties===false){t.forEach((function(e){const r=u(e.patternProperties);const t=l(r,n);t.forEach((r=>delete e.patternProperties[r]))}))}}))}const i={additionalProperties:t.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:p(e.map((e=>e.patternProperties)),t.patternProperties),properties:p(e.map((e=>e.properties)),t.properties)};if(i.additionalProperties===false){d(i.properties)}return a(i)}}},33978:(e,r,t)=>{const n=t(88055);const i=t(90370);const o=t(78867);const a=t(74354);const s=t(35970);const u=t(3176);const f=t(5287);const c=t(80191);const l=t(2404);const d=t(11331);const p=t(12358);const h=t(33031);const m=t(63375);const v=t(9063);const y=t(7894);const g=t(11051);const b=(e,r)=>e.indexOf(r)!==-1;const w=e=>d(e)||e===true||e===false;const A=e=>e===false;const x=e=>e===true;const O=(e,r,t)=>t(e);const S=e=>h(m(u(e)));const E=e=>e!==undefined;const _=e=>m(u(e.map(k)));const I=e=>e[0];const j=e=>S(e);const P=e=>Math.max.apply(Math,e);const D=e=>Math.min.apply(Math,e);const $=e=>e.some(x);const F=e=>v(s(e),l);function N(e){return function(r,t){return i({[e]:r},{[e]:t})}}function M(e){let{allOf:r=[],...t}=e;t=d(e)?t:e;return[t,...r.map(M)]}function T(e,r){return e.map((e=>e&&e[r]))}function U(e,r){return e.map((function(e,t){try{return r(e,t)}catch(n){return undefined}})).filter(E)}function k(e){if(d(e)||Array.isArray(e)){return Object.keys(e)}else{return[]}}function W(e,r){r=r||[];if(!e.length){return r}const t=e.slice(0).shift();const n=e.slice(1);if(r.length){return W(n,s(r.map((e=>t.map((r=>[r].concat(e)))))))}return W(n,t.map((e=>e)))}function L(e,r){let t;try{t=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(n){t=e.join(", ")}throw new Error('Could not resolve values for path:"'+r.join(".")+'". They are probably incompatible. Values: \n'+t)}function C(e,r,t,n,o,a){if(e.length){const s=o.complexResolvers[r];if(!s||!s.resolver){throw new Error("No resolver found for "+r)}const u=t.map((r=>e.reduce(((e,t)=>{if(r[t]!==undefined)e[t]=r[t];return e}),{})));const f=v(u,i);const c=s.keywords.reduce(((e,r)=>({...e,[r]:(e,t=[])=>n(e,null,a.concat(r,t))})),{});const l=s.resolver(f,a.concat(r),c,o);if(!d(l)){L(f,a.concat(r))}return l}}function R(e){return{required:e}}const V=["properties","patternProperties","definitions","dependencies"];const q=["anyOf","oneOf"];const B=["additionalProperties","additionalItems","contains","propertyNames","not","items"];const Y={type(e){if(e.some(Array.isArray)){const r=e.map((function(e){return Array.isArray(e)?e:[e]}));const t=f.apply(null,r);if(t.length===1){return t[0]}else if(t.length>1){return m(t)}}},dependencies(e,r,t){const n=_(e);return n.reduce((function(r,n){const o=T(e,n);let a=v(o.filter(E),l);const s=a.filter(Array.isArray);if(s.length){if(s.length===a.length){r[n]=S(a)}else{const e=a.filter(w);const i=s.map(R);r[n]=t(e.concat(i),n)}return r}a=v(a,i);r[n]=t(a,n);return r}),{})},oneOf(e,r,t){const o=W(n(e));const a=U(o,t);const s=v(a,i);if(s.length){return s}},not(e){return{anyOf:e}},pattern(e){return e.map((e=>"(?="+e+")")).join("")},multipleOf(e){let r=e.slice(0);let t=1;while(r.some((e=>!Number.isInteger(e)))){r=r.map((e=>e*10));t=t*10}return o(r)/t},enum(e){const r=c.apply(null,e.concat(l));if(r.length){return h(r)}}};Y.$id=I;Y.$ref=I;Y.$schema=I;Y.additionalItems=O;Y.additionalProperties=O;Y.anyOf=Y.oneOf;Y.contains=O;Y.default=I;Y.definitions=Y.dependencies;Y.description=I;Y.examples=F;Y.exclusiveMaximum=D;Y.exclusiveMinimum=P;Y.items=g;Y.maximum=D;Y.maxItems=D;Y.maxLength=D;Y.maxProperties=D;Y.minimum=P;Y.minItems=P;Y.minLength=P;Y.minProperties=P;Y.properties=y;Y.propertyNames=O;Y.required=j;Y.title=I;Y.uniqueItems=$;const K={properties:y,items:g};function J(e,r,t){t=t||[];r=a(r,{ignoreAdditionalProperties:false,resolvers:Y,complexResolvers:K,deep:true});const i=Object.entries(r.complexResolvers);function o(e,a,s){e=n(e.filter(E));s=s||[];const u=d(a)?a:{};if(!e.length){return}if(e.some(A)){return false}if(e.every(x)){return true}e=e.filter(d);const f=_(e);if(r.deep&&b(f,"allOf")){return J({allOf:e},r,t)}const c=i.map((([e,r])=>f.filter((e=>r.keywords.includes(e)))));c.forEach((e=>p(f,e)));f.forEach((function(t){const n=T(e,t);const i=v(n.filter(E),N(t));if(i.length===1&&b(q,t)){u[t]=i[0].map((e=>o([e],e)))}else if(i.length===1&&!b(V,t)&&!b(B,t)){u[t]=i[0]}else{const e=r.resolvers[t]||r.resolvers.defaultResolver;if(!e)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const n=(e,r=[])=>o(e,null,s.concat(t,r));u[t]=e(i,s.concat(t),n,r);if(u[t]===undefined){L(i,s.concat(t))}else if(u[t]===undefined){delete u[t]}}}));return i.reduce(((t,[n,i],a)=>({...t,...C(c[a],n,e,o,r,s)})),u)}const s=u(M(e));const f=o(s);return f}J.options={resolvers:Y};e.exports=J},56239:(e,r)=>{var t=/~/;var n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){if(!t.test(e))return e;return e.replace(n,i)}function a(e,r,t){var n;var i;for(var a=1,s=r.length;aa;if(typeof e[n]==="undefined"){if(Array.isArray(e)&&n==="-"){n=e.length}if(i){if(r[a]!==""&&r[a]{var n=t(53661),i=t(31380),o=t(51459);function a(e){var r=-1,t=e==null?0:e.length;this.__data__=new n;while(++r{var n=t(96131);function i(e,r){var t=e==null?0:e.length;return!!t&&n(e,r,0)>-1}e.exports=i},29905:e=>{function r(e,r,t){var n=-1,i=e==null?0:e.length;while(++n{function r(e,r,t,n){var i=-1,o=e==null?0:e.length;if(n&&o){t=e[++i]}while(++i{function r(e,r){var t=-1,n=e==null?0:e.length;while(++t{var n=t(98598),i=t(75288);function o(e,r,t){if(t!==undefined&&!i(e[r],t)||t===undefined&&!(r in e)){n(e,r,t)}}e.exports=o},83915:(e,r,t)=>{var n=t(38859),i=t(15325),o=t(29905),a=t(34932),s=t(27301),u=t(19219);var f=200;function c(e,r,t,c){var l=-1,d=i,p=true,h=e.length,m=[],v=r.length;if(!h){return m}if(t){r=a(r,s(t))}if(c){d=o;p=false}else if(r.length>=f){d=u;p=false;r=new n(r)}e:while(++l{var n=t(30641),i=t(38329);var o=i(n);e.exports=o},2523:e=>{function r(e,r,t,n){var i=e.length,o=t+(n?1:-1);while(n?o--:++o{var n=t(83221);var i=n();e.exports=i},30641:(e,r,t)=>{var n=t(86649),i=t(95950);function o(e,r){return e&&n(e,r,i)}e.exports=o},96131:(e,r,t)=>{var n=t(2523),i=t(85463),o=t(76959);function a(e,r,t){return r===r?o(e,r,t):n(e,i,t)}e.exports=a},12027:e=>{function r(e,r,t,n){var i=t-1,o=e.length;while(++i{var n=t(38859),i=t(15325),o=t(29905),a=t(34932),s=t(27301),u=t(19219);var f=Math.min;function c(e,r,t){var c=t?o:i,l=e[0].length,d=e.length,p=d,h=Array(d),m=Infinity,v=[];while(p--){var y=e[p];if(p&&r){y=a(y,s(r))}m=f(y.length,m);h[p]=!t&&(r||l>=120&&y.length>=120)?new n(p&&y):undefined}y=e[0];var g=-1,b=h[0];e:while(++g{var n=t(87068),i=t(40346);function o(e,r,t,a,s){if(e===r){return true}if(e==null||r==null||!i(e)&&!i(r)){return e!==e&&r!==r}return n(e,r,t,a,o,s)}e.exports=o},87068:(e,r,t)=>{var n=t(37217),i=t(25911),o=t(21986),a=t(50689),s=t(5861),u=t(56449),f=t(3656),c=t(37167);var l=1;var d="[object Arguments]",p="[object Array]",h="[object Object]";var m=Object.prototype;var v=m.hasOwnProperty;function y(e,r,t,m,y,g){var b=u(e),w=u(r),A=b?p:s(e),x=w?p:s(r);A=A==d?h:A;x=x==d?h:x;var O=A==h,S=x==h,E=A==x;if(E&&f(e)){if(!f(r)){return false}b=true;O=false}if(E&&!O){g||(g=new n);return b||c(e)?i(e,r,t,m,y,g):o(e,r,A,t,m,y,g)}if(!(t&l)){var _=O&&v.call(e,"__wrapped__"),I=S&&v.call(r,"__wrapped__");if(_||I){var j=_?e.value():e,P=I?r.value():r;g||(g=new n);return y(j,P,t,m,g)}}if(!E){return false}g||(g=new n);return a(e,r,t,m,y,g)}e.exports=y},41799:(e,r,t)=>{var n=t(37217),i=t(60270);var o=1,a=2;function s(e,r,t,s){var u=t.length,f=u,c=!s;if(e==null){return!f}e=Object(e);while(u--){var l=t[u];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e)){return false}}while(++u{function r(e){return e!==e}e.exports=r},15389:(e,r,t)=>{var n=t(93663),i=t(87978),o=t(83488),a=t(56449),s=t(50583);function u(e){if(typeof e=="function"){return e}if(e==null){return o}if(typeof e=="object"){return a(e)?i(e[0],e[1]):n(e)}return s(e)}e.exports=u},5128:(e,r,t)=>{var n=t(80909),i=t(64894);function o(e,r){var t=-1,o=i(e)?Array(e.length):[];n(e,(function(e,n,i){o[++t]=r(e,n,i)}));return o}e.exports=o},93663:(e,r,t)=>{var n=t(41799),i=t(10776),o=t(67197);function a(e){var r=i(e);if(r.length==1&&r[0][2]){return o(r[0][0],r[0][1])}return function(t){return t===e||n(t,e,r)}}e.exports=a},87978:(e,r,t)=>{var n=t(60270),i=t(58156),o=t(80631),a=t(28586),s=t(30756),u=t(67197),f=t(77797);var c=1,l=2;function d(e,r){if(a(e)&&s(r)){return u(f(e),r)}return function(t){var a=i(t,e);return a===undefined&&a===r?o(t,e):n(r,a,c|l)}}e.exports=d},85250:(e,r,t)=>{var n=t(37217),i=t(87805),o=t(86649),a=t(42824),s=t(23805),u=t(37241),f=t(14974);function c(e,r,t,l,d){if(e===r){return}o(r,(function(o,u){d||(d=new n);if(s(o)){a(e,r,u,t,c,l,d)}else{var p=l?l(f(e,u),o,u+"",e,r,d):undefined;if(p===undefined){p=o}i(e,u,p)}}),u)}e.exports=c},42824:(e,r,t)=>{var n=t(87805),i=t(93290),o=t(71961),a=t(23007),s=t(35529),u=t(72428),f=t(56449),c=t(83693),l=t(3656),d=t(1882),p=t(23805),h=t(11331),m=t(37167),v=t(14974),y=t(69884);function g(e,r,t,g,b,w,A){var x=v(e,t),O=v(r,t),S=A.get(O);if(S){n(e,t,S);return}var E=w?w(x,O,t+"",e,r,A):undefined;var _=E===undefined;if(_){var I=f(O),j=!I&&l(O),P=!I&&!j&&m(O);E=O;if(I||j||P){if(f(x)){E=x}else if(c(x)){E=a(x)}else if(j){_=false;E=i(O,true)}else if(P){_=false;E=o(O,true)}else{E=[]}}else if(h(O)||u(O)){E=x;if(u(x)){E=y(x)}else if(!p(x)||d(x)){E=s(O)}}else{_=false}}if(_){A.set(O,E);b(E,O,g,w,A);A["delete"](O)}n(e,t,E)}e.exports=g},46155:(e,r,t)=>{var n=t(34932),i=t(47422),o=t(15389),a=t(5128),s=t(73937),u=t(27301),f=t(43714),c=t(83488),l=t(56449);function d(e,r,t){if(r.length){r=n(r,(function(e){if(l(e)){return function(r){return i(r,e.length===1?e[0]:e)}}return e}))}else{r=[c]}var d=-1;r=n(r,u(o));var p=a(e,(function(e,t,i){var o=n(r,(function(r){return r(e)}));return{criteria:o,index:++d,value:e}}));return s(p,(function(e,r){return f(e,r,t)}))}e.exports=d},47237:e=>{function r(e){return function(r){return r==null?undefined:r[e]}}e.exports=r},17255:(e,r,t)=>{var n=t(47422);function i(e){return function(r){return n(r,e)}}e.exports=i},21988:(e,r,t)=>{var n=t(34932),i=t(96131),o=t(12027),a=t(27301),s=t(23007);var u=Array.prototype;var f=u.splice;function c(e,r,t,u){var c=u?o:i,l=-1,d=r.length,p=e;if(e===r){r=s(r)}if(t){p=n(e,a(t))}while(++l-1){if(p!==e){f.call(p,h,1)}f.call(e,h,1)}}return e}e.exports=c},85558:e=>{function r(e,r,t,n,i){i(e,(function(e,i,o){t=n?(n=false,e):r(t,e,i,o)}));return t}e.exports=r},69302:(e,r,t)=>{var n=t(83488),i=t(56757),o=t(32865);function a(e,r){return o(i(e,r,n),e+"")}e.exports=a},73937:e=>{function r(e,r){var t=e.length;e.sort(r);while(t--){e[t]=e[t].value}return e}e.exports=r},54128:(e,r,t)=>{var n=t(31800);var i=/^\s+/;function o(e){return e?e.slice(0,n(e)+1).replace(i,""):e}e.exports=o},55765:(e,r,t)=>{var n=t(38859),i=t(15325),o=t(29905),a=t(19219),s=t(44517),u=t(84247);var f=200;function c(e,r,t){var c=-1,l=i,d=e.length,p=true,h=[],m=h;if(t){p=false;l=o}else if(d>=f){var v=r?null:s(e);if(v){return u(v)}p=false;l=a;m=new n}else{m=r?[]:h}e:while(++c{function r(e,r){return e.has(r)}e.exports=r},80741:(e,r,t)=>{var n=t(83693);function i(e){return n(e)?e:[]}e.exports=i},24066:(e,r,t)=>{var n=t(83488);function i(e){return typeof e=="function"?e:n}e.exports=i},53730:(e,r,t)=>{var n=t(44394);function i(e,r){if(e!==r){var t=e!==undefined,i=e===null,o=e===e,a=n(e);var s=r!==undefined,u=r===null,f=r===r,c=n(r);if(!u&&!c&&!a&&e>r||a&&s&&f&&!u&&!c||i&&s&&f||!t&&f||!o){return 1}if(!i&&!a&&!c&&e{var n=t(53730);function i(e,r,t){var i=-1,o=e.criteria,a=r.criteria,s=o.length,u=t.length;while(++i=u){return f}var c=t[i];return f*(c=="desc"?-1:1)}}return e.index-r.index}e.exports=i},20999:(e,r,t)=>{var n=t(69302),i=t(36800);function o(e){return n((function(r,t){var n=-1,o=t.length,a=o>1?t[o-1]:undefined,s=o>2?t[2]:undefined;a=e.length>3&&typeof a=="function"?(o--,a):undefined;if(s&&i(t[0],t[1],s)){a=o<3?undefined:a;o=1}r=Object(r);while(++n{var n=t(64894);function i(e,r){return function(t,i){if(t==null){return t}if(!n(t)){return e(t,i)}var o=t.length,a=r?o:-1,s=Object(t);while(r?a--:++a{function r(e){return function(r,t,n){var i=-1,o=Object(r),a=n(r),s=a.length;while(s--){var u=a[e?s:++i];if(t(o[u],u,o)===false){break}}return r}}e.exports=r},44517:(e,r,t)=>{var n=t(76545),i=t(63950),o=t(84247);var a=1/0;var s=!(n&&1/o(new n([,-0]))[1]==a)?i:function(e){return new n(e)};e.exports=s},52606:(e,r,t)=>{var n=t(85250),i=t(23805);function o(e,r,t,a,s,u){if(i(e)&&i(r)){u.set(r,e);n(e,r,undefined,o,u);u["delete"](r)}return e}e.exports=o},25911:(e,r,t)=>{var n=t(38859),i=t(14248),o=t(19219);var a=1,s=2;function u(e,r,t,u,f,c){var l=t&a,d=e.length,p=r.length;if(d!=p&&!(l&&p>d)){return false}var h=c.get(e);var m=c.get(r);if(h&&m){return h==r&&m==e}var v=-1,y=true,g=t&s?new n:undefined;c.set(e,r);c.set(r,e);while(++v{var n=t(51873),i=t(37828),o=t(75288),a=t(25911),s=t(20317),u=t(84247);var f=1,c=2;var l="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",v="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]";var w="[object ArrayBuffer]",A="[object DataView]";var x=n?n.prototype:undefined,O=x?x.valueOf:undefined;function S(e,r,t,n,x,S,E){switch(t){case A:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset){return false}e=e.buffer;r=r.buffer;case w:if(e.byteLength!=r.byteLength||!S(new i(e),new i(r))){return false}return true;case l:case d:case m:return o(+e,+r);case p:return e.name==r.name&&e.message==r.message;case v:case g:return e==r+"";case h:var _=s;case y:var I=n&f;_||(_=u);if(e.size!=r.size&&!I){return false}var j=E.get(e);if(j){return j==r}n|=c;E.set(e,r);var P=a(_(e),_(r),n,x,S,E);E["delete"](e);return P;case b:if(O){return O.call(e)==O.call(r)}}return false}e.exports=S},50689:(e,r,t)=>{var n=t(50002);var i=1;var o=Object.prototype;var a=o.hasOwnProperty;function s(e,r,t,o,s,u){var f=t&i,c=n(e),l=c.length,d=n(r),p=d.length;if(l!=p&&!f){return false}var h=l;while(h--){var m=c[h];if(!(f?m in r:a.call(r,m))){return false}}var v=u.get(e);var y=u.get(r);if(v&&y){return v==r&&y==e}var g=true;u.set(e,r);u.set(r,e);var b=f;while(++h{var n=t(30756),i=t(95950);function o(e){var r=i(e),t=r.length;while(t--){var o=r[t],a=e[o];r[t]=[o,a,n(a)]}return r}e.exports=o},36800:(e,r,t)=>{var n=t(75288),i=t(64894),o=t(30361),a=t(23805);function s(e,r,t){if(!a(t)){return false}var s=typeof r;if(s=="number"?i(t)&&o(r,t.length):s=="string"&&r in t){return n(t[r],e)}return false}e.exports=s},30756:(e,r,t)=>{var n=t(23805);function i(e){return e===e&&!n(e)}e.exports=i},20317:e=>{function r(e){var r=-1,t=Array(e.size);e.forEach((function(e,n){t[++r]=[n,e]}));return t}e.exports=r},67197:e=>{function r(e,r){return function(t){if(t==null){return false}return t[e]===r&&(r!==undefined||e in Object(t))}}e.exports=r},14974:e=>{function r(e,r){if(r==="constructor"&&typeof e[r]==="function"){return}if(r=="__proto__"){return}return e[r]}e.exports=r},31380:e=>{var r="__lodash_hash_undefined__";function t(e){this.__data__.set(e,r);return this}e.exports=t},51459:e=>{function r(e){return this.__data__.has(e)}e.exports=r},84247:e=>{function r(e){var r=-1,t=Array(e.size);e.forEach((function(e){t[++r]=e}));return t}e.exports=r},76959:e=>{function r(e,r,t){var n=t-1,i=e.length;while(++n{var r=/\s/;function t(e){var t=e.length;while(t--&&r.test(e.charAt(t))){}return t}e.exports=t},84684:(e,r,t)=>{var n=t(69302),i=t(75288),o=t(36800),a=t(37241);var s=Object.prototype;var u=s.hasOwnProperty;var f=n((function(e,r){e=Object(e);var t=-1;var n=r.length;var f=n>2?r[2]:undefined;if(f&&o(r[0],r[1],f)){n=1}while(++t{var n=t(91033),i=t(69302),o=t(52606),a=t(6924);var s=i((function(e){e.push(undefined,o);return n(a,undefined,e)}));e.exports=s},3176:(e,r,t)=>{var n=t(83120);var i=1/0;function o(e){var r=e==null?0:e.length;return r?n(e,i):[]}e.exports=o},39754:(e,r,t)=>{var n=t(83729),i=t(80909),o=t(24066),a=t(56449);function s(e,r){var t=a(e)?n:i;return t(e,o(r))}e.exports=s},5287:(e,r,t)=>{var n=t(34932),i=t(27185),o=t(69302),a=t(80741);var s=o((function(e){var r=n(e,a);return r.length&&r[0]===e[0]?i(r):[]}));e.exports=s},80191:(e,r,t)=>{var n=t(34932),i=t(27185),o=t(69302),a=t(80741),s=t(68090);var u=o((function(e){var r=s(e),t=n(e,a);r=typeof r=="function"?r:undefined;if(r){t.pop()}return t.length&&t[0]===e[0]?i(t,undefined,r):[]}));e.exports=u},83693:(e,r,t)=>{var n=t(64894),i=t(40346);function o(e){return i(e)&&n(e)}e.exports=o},53812:(e,r,t)=>{var n=t(72552),i=t(40346);var o="[object Boolean]";function a(e){return e===true||e===false||i(e)&&n(e)==o}e.exports=a},2404:(e,r,t)=>{var n=t(60270);function i(e,r){return n(e,r)}e.exports=i},29132:(e,r,t)=>{var n=t(60270);function i(e,r,t){t=typeof t=="function"?t:undefined;var i=t?t(e,r):undefined;return i===undefined?n(e,r,undefined,t):!!i}e.exports=i},69843:e=>{function r(e){return e==null}e.exports=r},98023:(e,r,t)=>{var n=t(72552),i=t(40346);var o="[object Number]";function a(e){return typeof e=="number"||i(e)&&n(e)==o}e.exports=a},85015:(e,r,t)=>{var n=t(72552),i=t(56449),o=t(40346);var a="[object String]";function s(e){return typeof e=="string"||!i(e)&&o(e)&&n(e)==a}e.exports=s},6924:(e,r,t)=>{var n=t(85250),i=t(20999);var o=i((function(e,r,t,i){n(e,r,t,i)}));e.exports=o},63950:e=>{function r(){}e.exports=r},50583:(e,r,t)=>{var n=t(47237),i=t(17255),o=t(28586),a=t(77797);function s(e){return o(e)?n(a(e)):i(e)}e.exports=s},12358:(e,r,t)=>{var n=t(21988);function i(e,r){return e&&e.length&&r&&r.length?n(e,r):e}e.exports=i},40860:(e,r,t)=>{var n=t(40882),i=t(80909),o=t(15389),a=t(85558),s=t(56449);function u(e,r,t){var u=s(e)?n:a,f=arguments.length<3;return u(e,o(r,4),t,f,i)}e.exports=u},33031:(e,r,t)=>{var n=t(83120),i=t(46155),o=t(69302),a=t(36800);var s=o((function(e,r){if(e==null){return[]}var t=r.length;if(t>1&&a(e,r[0],r[1])){r=[]}else if(t>2&&a(r[0],r[1],r[2])){r=[r[0]]}return i(e,n(r,1),[])}));e.exports=s},6638:(e,r,t)=>{var n=t(78096),i=t(24066),o=t(61489);var a=9007199254740991;var s=4294967295;var u=Math.min;function f(e,r){e=o(e);if(e<1||e>a){return[]}var t=s,f=u(e,s);r=i(r);e-=s;var c=n(f,r);while(++t{var n=t(99374);var i=1/0,o=17976931348623157e292;function a(e){if(!e){return e===0?e:0}e=n(e);if(e===i||e===-i){var r=e<0?-1:1;return r*o}return e===e?e:0}e.exports=a},61489:(e,r,t)=>{var n=t(17400);function i(e){var r=n(e),t=r%1;return r===r?t?r-t:r:0}e.exports=i},99374:(e,r,t)=>{var n=t(54128),i=t(23805),o=t(44394);var a=0/0;var s=/^[-+]0x[0-9a-f]+$/i;var u=/^0b[01]+$/i;var f=/^0o[0-7]+$/i;var c=parseInt;function l(e){if(typeof e=="number"){return e}if(o(e)){return a}if(i(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=i(r)?r+"":r}if(typeof e!="string"){return e===0?e:+e}e=n(e);var t=u.test(e);return t||f.test(e)?c(e.slice(2),t?2:8):s.test(e)?a:+e}e.exports=l},69884:(e,r,t)=>{var n=t(21791),i=t(37241);function o(e){return n(e,i(e))}e.exports=o},69752:(e,r,t)=>{var n=t(83729),i=t(39344),o=t(30641),a=t(15389),s=t(28879),u=t(56449),f=t(3656),c=t(1882),l=t(23805),d=t(37167);function p(e,r,t){var p=u(e),h=p||f(e)||d(e);r=a(r,4);if(t==null){var m=e&&e.constructor;if(h){t=p?new m:[]}else if(l(e)){t=c(m)?i(s(e)):{}}else{t={}}}(h?n:o)(e,(function(e,n,i){return r(t,e,n,i)}));return t}e.exports=p},80299:(e,r,t)=>{var n=t(83120),i=t(69302),o=t(55765),a=t(83693);var s=i((function(e){return o(n(e,1,a,true))}));e.exports=s},63375:(e,r,t)=>{var n=t(55765);function i(e){return e&&e.length?n(e):[]}e.exports=i},9063:(e,r,t)=>{var n=t(55765);function i(e,r){r=typeof r=="function"?r:undefined;return e&&e.length?n(e,undefined,r):[]}e.exports=i},91648:(e,r,t)=>{var n=t(83915),i=t(69302),o=t(83693);var a=i((function(e,r){return o(e)?n(e,r):[]}));e.exports=a},22799:(e,r)=>{"use strict";var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function y(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type,e){case i:case a:case o:case l:case d:return e;default:switch(e=e&&e.$$typeof,e){case f:case u:case c:case h:case p:case s:return e;default:return r}}case n:return r}}}r.ContextConsumer=u;r.ContextProvider=s;r.Element=t;r.ForwardRef=c;r.Fragment=i;r.Lazy=h;r.Memo=p;r.Portal=n;r.Profiler=a;r.StrictMode=o;r.Suspense=l;r.SuspenseList=d;r.isAsyncMode=function(){return!1};r.isConcurrentMode=function(){return!1};r.isContextConsumer=function(e){return y(e)===u};r.isContextProvider=function(e){return y(e)===s};r.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===t};r.isForwardRef=function(e){return y(e)===c};r.isFragment=function(e){return y(e)===i};r.isLazy=function(e){return y(e)===h};r.isMemo=function(e){return y(e)===p};r.isPortal=function(e){return y(e)===n};r.isProfiler=function(e){return y(e)===a};r.isStrictMode=function(e){return y(e)===o};r.isSuspense=function(e){return y(e)===l};r.isSuspenseList=function(e){return y(e)===d};r.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===o||e===l||e===d||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===s||e.$$typeof===u||e.$$typeof===c||e.$$typeof===v||void 0!==e.getModuleId)?!0:!1};r.typeOf=y},44363:(e,r,t)=>{"use strict";if(true){e.exports=t(22799)}else{}},85419:e=>{"use strict";function r(e){return Object.prototype.toString.call(e)==="[object Array]"}e.exports=Array.isArray||r},82986:e=>{"use strict";function r(e){return typeof e==="function"}e.exports=r},96552:(e,r,t)=>{"use strict";var n=t(85419),i=t(84356);function o(e){var r;if(!n(e)){return false}r=e.length;if(!r){return false}for(var t=0;t{"use strict";var n=t(66415);function i(e){return n(e)&&e%1===0}e.exports=i},66415:e=>{"use strict";function r(e){return(typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]")&&e.valueOf()===e.valueOf()}e.exports=r}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..53dcf70ce5b1fcc4b4d914dc5a8e70542caf0bc2 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6779.051cfbcb0700a96839b2.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6779.051cfbcb0700a96839b2.js new file mode 100644 index 0000000000000000000000000000000000000000..32caff6bbcaabb71fb5cd50a87263b6570ad778b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6779.051cfbcb0700a96839b2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6779],{16779:(r,a,e)=>{e.d(a,{diagram:()=>_});var t=e(88855);var s=e(15051);var p=e(94065);var v=e(33416);var i=e(94746);var u=e(20778);var l=e(57590);var n=e(68232);var o=e(76261);var b=e(96049);var k=e(75905);var _={parser:t.Zk,get db(){return new t.u4(2)},renderer:t.q7,styles:t.tM,init:(0,k.K2)((r=>{if(!r.state){r.state={}}r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6986.a89a5aba790481992875.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6986.a89a5aba790481992875.js new file mode 100644 index 0000000000000000000000000000000000000000..d5d58695de8bf11d4b6532955e05c834c671dbc1 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6986.a89a5aba790481992875.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6986],{21148:(e,a,r)=>{r.d(a,{K:()=>t});var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:true})},96986:(e,a,r)=>{r.r(a);r.d(a,{default:()=>i});var l=r(21148);var t=(0,l.K)((async()=>await Promise.all([r.e(8606),r.e(2601),r.e(6439)]).then(r.bind(r,16439))),"loader");var p=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap"];var o=[{name:"elk",loader:t,algorithm:"elk.layered"},...p.map((e=>({name:e,loader:t,algorithm:e})))];var i=o}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7136.b312751fbb25b73f5e71.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7136.b312751fbb25b73f5e71.js new file mode 100644 index 0000000000000000000000000000000000000000..0ffd8017e9c09b48606ee183a811d72df24ff06b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7136.b312751fbb25b73f5e71.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7136],{97136:(e,t,r)=>{r.r(t);r.d(t,{r:()=>_});function n(e){var t={};for(var r=0;r=!&|~$:]/;var m;function d(e,t){m=null;var r=e.next();if(r=="#"){e.skipToEnd();return"comment"}else if(r=="0"&&e.eat("x")){e.eatWhile(/[\da-f]/i);return"number"}else if(r=="."&&e.eat(/\d/)){e.match(/\d*(?:e[+\-]?\d+)?/);return"number"}else if(/\d/.test(r)){e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);return"number"}else if(r=="'"||r=='"'){t.tokenize=v(r);return"string"}else if(r=="`"){e.match(/[^`]+`/);return"string.special"}else if(r=="."&&e.match(/.(?:[.]|\d+)/)){return"keyword"}else if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var n=e.current();if(u.propertyIsEnumerable(n))return"atom";if(s.propertyIsEnumerable(n)){if(o.propertyIsEnumerable(n)&&!e.match(/\s*if(\s+|$)/,false))m="block";return"keyword"}if(c.propertyIsEnumerable(n))return"builtin";return"variable"}else if(r=="%"){if(e.skipTo("%"))e.next();return"variableName.special"}else if(r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)){return"operator"}else if(r=="="&&t.ctx.argList){return"operator"}else if(p.test(r)){if(r=="$")return"operator";e.eatWhile(p);return"operator"}else if(/[\(\){}\[\];]/.test(r)){m=r;if(r==";")return"punctuation";return null}else{return null}}function v(e){return function(t,r){if(t.eat("\\")){var n=t.next();if(n=="x")t.match(/^[a-f0-9]{2}/i);else if((n=="u"||n=="U")&&t.eat("{")&&t.skipTo("}"))t.next();else if(n=="u")t.match(/^[a-f0-9]{4}/i);else if(n=="U")t.match(/^[a-f0-9]{8}/i);else if(/[0-7]/.test(n))t.match(/^[0-7]{1,2}/);return"string.special"}else{var i;while((i=t.next())!=null){if(i==e){r.tokenize=d;break}if(i=="\\"){t.backUp(1);break}}return"string"}}}var k=1,x=2,b=4;function h(e,t,r){e.ctx={type:t,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function g(e,t){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|t,column:r.column,prev:r.prev}}function y(e){e.indent=e.ctx.indent;e.ctx=e.ctx.prev}const _={name:"r",startState:function(e){return{tokenize:d,ctx:{type:"top",indent:-e,flags:x},indent:0,afterIdent:false}},token:function(e,t){if(e.sol()){if((t.ctx.flags&3)==0)t.ctx.flags|=x;if(t.ctx.flags&b)y(t);t.indent=e.indentation()}if(e.eatSpace())return null;var r=t.tokenize(e,t);if(r!="comment"&&(t.ctx.flags&x)==0)g(t,k);if((m==";"||m=="{"||m=="}")&&t.ctx.type=="block")y(t);if(m=="{")h(t,"}",e);else if(m=="("){h(t,")",e);if(t.afterIdent)t.ctx.argList=true}else if(m=="[")h(t,"]",e);else if(m=="block")h(t,"block",e);else if(m==t.ctx.type)y(t);else if(t.ctx.type=="block"&&r!="comment")g(t,b);t.afterIdent=r=="variable"||r=="keyword";return r},indent:function(e,t,r){if(e.tokenize!=d)return 0;var n=t&&t.charAt(0),i=e.ctx,a=n==i.type;if(i.flags&b)i=i.prev;if(i.type=="block")return i.indent+(n=="{"?0:r.unit);else if(i.flags&k)return i.column+(a?0:1);else return i.indent+(a?0:r.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:i.concat(a,l)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7269.962f078e97afc4f68e79.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7269.962f078e97afc4f68e79.js new file mode 100644 index 0000000000000000000000000000000000000000..aff67ac2b91c1853f6b35c09de419eb6b8571229 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7269.962f078e97afc4f68e79.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7269],{57269:(e,t,n)=>{n.r(t);n.d(t,{ttcn:()=>M});function r(e){var t={},n=e.split(" ");for(var r=0;r!\/]/;var E;function I(e,t){var n=e.next();if(n=='"'||n=="'"){t.tokenize=z(n);return t.tokenize(e,t)}if(/[\[\]{}\(\),;\\:\?\.]/.test(n)){E=n;return"punctuation"}if(n=="#"){e.skipToEnd();return"atom"}if(n=="%"){e.eatWhile(/\b/);return"atom"}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("*")){t.tokenize=C;return C(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(O.test(n)){if(n=="@"){if(e.match("try")||e.match("catch")||e.match("lazy")){return"keyword"}}e.eatWhile(O);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();if(s.propertyIsEnumerable(r))return"keyword";if(l.propertyIsEnumerable(r))return"builtin";if(u.propertyIsEnumerable(r))return"def";if(p.propertyIsEnumerable(r))return"def";if(f.propertyIsEnumerable(r))return"def";if(c.propertyIsEnumerable(r))return"def";if(m.propertyIsEnumerable(r))return"def";if(d.propertyIsEnumerable(r))return"def";if(h.propertyIsEnumerable(r))return"string";if(b.propertyIsEnumerable(r))return"string";if(y.propertyIsEnumerable(r))return"string";if(v.propertyIsEnumerable(r))return"typeName.standard";if(g.propertyIsEnumerable(r))return"modifier";if(x.propertyIsEnumerable(r))return"atom";return"variable"}function z(e){return function(t,n){var r=false,i,o=false;while((i=t.next())!=null){if(i==e&&!r){var a=t.peek();if(a){a=a.toLowerCase();if(a=="b"||a=="h"||a=="o")t.next()}o=true;break}r=!r&&i=="\\"}if(o||!(r||k))n.tokenize=null;return"string"}}function C(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function L(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function _(e,t,n){var r=e.indented;if(e.context&&e.context.type=="statement")r=e.context.indented;return e.context=new L(r,t,n,null,e.context)}function S(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const M={name:"ttcn",startState:function(){return{tokenize:null,context:new L(0,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;E=null;var r=(t.tokenize||I)(e,t);if(r=="comment")return r;if(n.align==null)n.align=true;if((E==";"||E==":"||E==",")&&n.type=="statement"){S(t)}else if(E=="{")_(t,e.column(),"}");else if(E=="[")_(t,e.column(),"]");else if(E=="(")_(t,e.column(),")");else if(E=="}"){while(n.type=="statement")n=S(t);if(n.type=="}")n=S(t);while(n.type=="statement")n=S(t)}else if(E==n.type)S(t);else if(w&&((n.type=="}"||n.type=="top")&&E!=";"||n.type=="statement"&&E=="newstatement"))_(t,e.column(),"statement");t.startOfLine=false;return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7318.7cc6b4b0b3151b205ecb.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7318.7cc6b4b0b3151b205ecb.js new file mode 100644 index 0000000000000000000000000000000000000000..3d8d7e61defb8cc6659b2dbc7aa090b60999e774 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7318.7cc6b4b0b3151b205ecb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7318],{97318:(e,t,r)=>{r.r(t);r.d(t,{elm:()=>g});function n(e,t,r){t(r);return r(e,t)}var i=/[a-z]/;var a=/[A-Z]/;var u=/[a-zA-Z0-9_]/;var o=/[0-9]/;var f=/[0-9A-Fa-f]/;var l=/[-&*+.\\/<>=?^|:]/;var s=/[(),[\]{}]/;var c=/[ \v\f]/;function p(){return function(e,t){if(e.eatWhile(c)){return null}var r=e.next();if(s.test(r)){return r==="{"&&e.eat("-")?n(e,t,h(1)):r==="["&&e.match("glsl|")?n(e,t,w):"builtin"}if(r==="'"){return n(e,t,m)}if(r==='"'){return e.eat('"')?e.eat('"')?n(e,t,v):"string":n(e,t,k)}if(a.test(r)){e.eatWhile(u);return"type"}if(i.test(r)){var p=e.pos===1;e.eatWhile(u);return p?"def":"variable"}if(o.test(r)){if(r==="0"){if(e.eat(/[xX]/)){e.eatWhile(f);return"number"}}else{e.eatWhile(o)}if(e.eat(".")){e.eatWhile(o)}if(e.eat(/[eE]/)){e.eat(/[-+]/);e.eatWhile(o)}return"number"}if(l.test(r)){if(r==="-"&&e.eat("-")){e.skipToEnd();return"comment"}e.eatWhile(l);return"keyword"}if(r==="_"){return"keyword"}return"error"}}function h(e){if(e==0){return p()}return function(t,r){while(!t.eol()){var n=t.next();if(n=="{"&&t.eat("-")){++e}else if(n=="-"&&t.eat("}")){--e;if(e===0){r(p());return"comment"}}}r(h(e));return"comment"}}function v(e,t){while(!e.eol()){var r=e.next();if(r==='"'&&e.eat('"')&&e.eat('"')){t(p());return"string"}}return"string"}function k(e,t){while(e.skipTo('\\"')){e.next();e.next()}if(e.skipTo('"')){e.next();t(p());return"string"}e.skipToEnd();t(p());return"error"}function m(e,t){while(e.skipTo("\\'")){e.next();e.next()}if(e.skipTo("'")){e.next();t(p());return"string"}e.skipToEnd();t(p());return"error"}function w(e,t){while(!e.eol()){var r=e.next();if(r==="|"&&e.eat("]")){t(p());return"string"}}return"string"}var x={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const g={name:"elm",startState:function(){return{f:p()}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,(function(e){t.f=e}));var n=e.current();return x.hasOwnProperty(n)?"keyword":r},languageData:{commentTokens:{line:"--"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7371.63b12ce793df713ab95b.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7371.63b12ce793df713ab95b.js new file mode 100644 index 0000000000000000000000000000000000000000..7fbf0e2e4d0d76b5b97623ea9790e5ac25327ad1 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7371.63b12ce793df713ab95b.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7371],{26527:function(t,e,r){(function e(i,n){if(true)t.exports=n(r(41709));else{}})(this,(function(t){return(()=>{"use strict";var e={658:t=>{t.exports=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i{var i=function(){function t(t,e){var r=[];var i=true;var n=false;var o=undefined;try{for(var a=t[Symbol.iterator](),s;!(i=(s=a.next()).done);i=true){r.push(s.value);if(e&&r.length===e)break}}catch(h){n=true;o=h}finally{try{if(!i&&a["return"])a["return"]()}finally{if(n)throw o}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return t(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var n=r(140).layoutBase.LinkedList;var o={};o.getTopMostNodes=function(t){var e={};for(var r=0;r0){l.merge(t)}}));for(var c=0;c1){l=s[0];c=l.connectedEdges().length;s.forEach((function(t){if(t.connectedEdges().length0){i.set("dummy"+(i.size+1),g)}}return u};o.relocateComponent=function(t,e,r){if(!r.fixedNodeConstraint){var n=Number.POSITIVE_INFINITY;var o=Number.NEGATIVE_INFINITY;var a=Number.POSITIVE_INFINITY;var s=Number.NEGATIVE_INFINITY;if(r.quality=="draft"){var h=true;var l=false;var c=undefined;try{for(var d=e.nodeIndexes[Symbol.iterator](),f;!(h=(f=d.next()).done);h=true){var g=f.value;var u=i(g,2);var p=u[0];var v=u[1];var y=r.cy.getElementById(p);if(y){var m=y.boundingBox();var E=e.xCoords[v]-m.w/2;var N=e.xCoords[v]+m.w/2;var T=e.yCoords[v]-m.h/2;var A=e.yCoords[v]+m.h/2;if(Eo)o=N;if(Ts)s=A}}}catch(C){l=true;c=C}finally{try{if(!h&&d.return){d.return()}}finally{if(l){throw c}}}var w=t.x-(o+n)/2;var L=t.y-(s+a)/2;e.xCoords=e.xCoords.map((function(t){return t+w}));e.yCoords=e.yCoords.map((function(t){return t+L}))}else{Object.keys(e).forEach((function(t){var r=e[t];var i=r.getRect().x;var h=r.getRect().x+r.getRect().width;var l=r.getRect().y;var c=r.getRect().y+r.getRect().height;if(io)o=h;if(ls)s=c}));var I=t.x-(o+n)/2;var _=t.y-(s+a)/2;Object.keys(e).forEach((function(t){var r=e[t];r.setCenter(r.getCenterX()+I,r.getCenterY()+_)}))}}};o.calcBoundingBox=function(t,e,r,i){var n=Number.MAX_SAFE_INTEGER;var o=Number.MIN_SAFE_INTEGER;var a=Number.MAX_SAFE_INTEGER;var s=Number.MIN_SAFE_INTEGER;var h=void 0;var l=void 0;var c=void 0;var d=void 0;var f=t.descendants().not(":parent");var g=f.length;for(var u=0;uh){n=h}if(oc){a=c}if(s{var i=r(548);var n=r(140).CoSELayout;var o=r(140).CoSENode;var a=r(140).layoutBase.PointD;var s=r(140).layoutBase.DimensionD;var h=r(140).layoutBase.LayoutConstants;var l=r(140).layoutBase.FDLayoutConstants;var c=r(140).CoSEConstants;var d=function t(e,r){var d=e.cy;var f=e.eles;var g=f.nodes();var u=f.edges();var p=void 0;var v=void 0;var y=void 0;var m={};if(e.randomize){p=r["nodeIndexes"];v=r["xCoords"];y=r["yCoords"]}var E=function t(e){return typeof e==="function"};var N=function t(e,r){if(E(e)){return e(r)}else{return e}};var T=i.calcParentsWithoutChildren(d,f);var A=function t(e,r,n,h){var l=r.length;for(var c=0;c0){var A=void 0;A=n.getGraphManager().add(n.newGraph(),g);t(A,f,n,h)}}};var w=function t(r,i,n){var o=0;var a=0;for(var s=0;s0)c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=o/a;else if(!E(e.idealEdgeLength))c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=e.idealEdgeLength;else c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=50;c.MIN_REPULSION_DIST=l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10;c.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH}};var L=function t(e,r){if(r.fixedNodeConstraint){e.constraints["fixedNodeConstraint"]=r.fixedNodeConstraint}if(r.alignmentConstraint){e.constraints["alignmentConstraint"]=r.alignmentConstraint}if(r.relativePlacementConstraint){e.constraints["relativePlacementConstraint"]=r.relativePlacementConstraint}};if(e.nestingFactor!=null)c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor;if(e.gravity!=null)c.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=e.gravity;if(e.numIter!=null)c.MAX_ITERATIONS=l.MAX_ITERATIONS=e.numIter;if(e.gravityRange!=null)c.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange;if(e.gravityCompound!=null)c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound;if(e.gravityRangeCompound!=null)c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound;if(e.initialEnergyOnIncremental!=null)c.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental;if(e.tilingCompareBy!=null)c.TILING_COMPARE_BY=e.tilingCompareBy;if(e.quality=="proof")h.QUALITY=2;else h.QUALITY=0;c.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels;c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!e.randomize;c.ANIMATE=l.ANIMATE=h.ANIMATE=e.animate;c.TILE=e.tile;c.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==="function"?e.tilingPaddingVertical.call():e.tilingPaddingVertical;c.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==="function"?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal;c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=true;c.PURE_INCREMENTAL=!e.randomize;h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions;if(e.step=="transformed"){c.TRANSFORM_ON_CONSTRAINT_HANDLING=true;c.ENFORCE_CONSTRAINTS=false;c.APPLY_LAYOUT=false}if(e.step=="enforced"){c.TRANSFORM_ON_CONSTRAINT_HANDLING=false;c.ENFORCE_CONSTRAINTS=true;c.APPLY_LAYOUT=false}if(e.step=="cose"){c.TRANSFORM_ON_CONSTRAINT_HANDLING=false;c.ENFORCE_CONSTRAINTS=false;c.APPLY_LAYOUT=true}if(e.step=="all"){if(e.randomize)c.TRANSFORM_ON_CONSTRAINT_HANDLING=true;else c.TRANSFORM_ON_CONSTRAINT_HANDLING=false;c.ENFORCE_CONSTRAINTS=true;c.APPLY_LAYOUT=true}if(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint){c.TREE_REDUCTION_ON_INCREMENTAL=false}else{c.TREE_REDUCTION_ON_INCREMENTAL=true}var t=new n;var I=t.newGraphManager();A(I.addRoot(),i.getTopMostNodes(g),t,e);w(t,I,u);L(t,e);t.runLayout();return m};t.exports={coseLayout:d}},212:(t,e,r)=>{var i=function(){function t(t,e){for(var r=0;r0){if(!v){var y=r.eles.boundingBox();g.push({x:y.x1+y.w/2,y:y.y1+y.h/2});if(r.randomize){var m=h(r);o.push(m)}if(r.quality=="default"||r.quality=="proof"){d.push(c(r,o[0]));a.relocateComponent(g[0],d[0],r)}else{a.relocateComponent(g[0],o[0],r)}}else{var E=a.getTopMostNodes(r.eles.nodes());f=a.connectComponents(i,r.eles,E);f.forEach((function(t){var e=t.boundingBox();g.push({x:e.x1+e.w/2,y:e.y1+e.h/2})}));if(r.randomize){f.forEach((function(t){r.eles=t;o.push(h(r))}))}if(r.quality=="default"||r.quality=="proof"){var N=i.collection();if(r.tile){var T=new Map;var A=[];var w=[];var L=0;var I={nodeIndexes:T,xCoords:A,yCoords:w};var _=[];f.forEach((function(t,e){if(t.edges().length==0){t.nodes().forEach((function(e,r){N.merge(t.nodes()[r]);if(!e.isParent()){I.nodeIndexes.set(t.nodes()[r].id(),L++);I.xCoords.push(t.nodes()[0].position().x);I.yCoords.push(t.nodes()[0].position().y)}}));_.push(e)}}));if(N.length>1){var C=N.boundingBox();g.push({x:C.x1+C.w/2,y:C.y1+C.h/2});f.push(N);o.push(I);for(var M=_.length-1;M>=0;M--){f.splice(_[M],1);o.splice(_[M],1);g.splice(_[M],1)}}}f.forEach((function(t,e){r.eles=t;d.push(c(r,o[e]));a.relocateComponent(g[e],d[e],r)}))}else{f.forEach((function(t,e){a.relocateComponent(g[e],o[e],r)}))}var x=new Set;if(f.length>1){var O=[];var D=n.filter((function(t){return t.css("display")=="none"}));f.forEach((function(t,e){var i=void 0;if(r.quality=="draft"){i=o[e].nodeIndexes}if(t.nodes().not(D).length>0){var n={};n.edges=[];n.nodes=[];var s=void 0;t.nodes().not(D).forEach((function(t){if(r.quality=="draft"){if(!t.isParent()){s=i.get(t.id());n.nodes.push({x:o[e].xCoords[s]-t.boundingbox().w/2,y:o[e].yCoords[s]-t.boundingbox().h/2,width:t.boundingbox().w,height:t.boundingbox().h})}else{var h=a.calcBoundingBox(t,o[e].xCoords,o[e].yCoords,i);n.nodes.push({x:h.topLeftX,y:h.topLeftY,width:h.width,height:h.height})}}else{if(d[e][t.id()]){n.nodes.push({x:d[e][t.id()].getLeft(),y:d[e][t.id()].getTop(),width:d[e][t.id()].getWidth(),height:d[e][t.id()].getHeight()})}}}));t.edges().forEach((function(t){var s=t.source();var h=t.target();if(s.css("display")!="none"&&h.css("display")!="none"){if(r.quality=="draft"){var l=i.get(s.id());var c=i.get(h.id());var f=[];var g=[];if(s.isParent()){var u=a.calcBoundingBox(s,o[e].xCoords,o[e].yCoords,i);f.push(u.topLeftX+u.width/2);f.push(u.topLeftY+u.height/2)}else{f.push(o[e].xCoords[l]);f.push(o[e].yCoords[l])}if(h.isParent()){var p=a.calcBoundingBox(h,o[e].xCoords,o[e].yCoords,i);g.push(p.topLeftX+p.width/2);g.push(p.topLeftY+p.height/2)}else{g.push(o[e].xCoords[c]);g.push(o[e].yCoords[c])}n.edges.push({startX:f[0],startY:f[1],endX:g[0],endY:g[1]})}else{if(d[e][s.id()]&&d[e][h.id()]){n.edges.push({startX:d[e][s.id()].getCenterX(),startY:d[e][s.id()].getCenterY(),endX:d[e][h.id()].getCenterX(),endY:d[e][h.id()].getCenterY()})}}}}));if(n.nodes.length>0){O.push(n);x.add(e)}}}));var R=p.packComponents(O,r.randomize).shifts;if(r.quality=="draft"){o.forEach((function(t,e){var r=t.xCoords.map((function(t){return t+R[e].dx}));var i=t.yCoords.map((function(t){return t+R[e].dy}));t.xCoords=r;t.yCoords=i}))}else{var b=0;x.forEach((function(t){Object.keys(d[t]).forEach((function(e){var r=d[t][e];r.setCenter(r.getCenterX()+R[b].dx,r.getCenterY()+R[b].dy)}));b++}))}}}}var G=function t(e,i){if(r.quality=="default"||r.quality=="proof"){if(typeof e==="number"){e=i}var n=void 0;var a=void 0;var s=e.data("id");d.forEach((function(t){if(s in t){n={x:t[s].getRect().getCenterX(),y:t[s].getRect().getCenterY()};a=t[s]}}));if(r.nodeDimensionsIncludeLabels){if(a.labelWidth){if(a.labelPosHorizontal=="left"){n.x+=a.labelWidth/2}else if(a.labelPosHorizontal=="right"){n.x-=a.labelWidth/2}}if(a.labelHeight){if(a.labelPosVertical=="top"){n.y+=a.labelHeight/2}else if(a.labelPosVertical=="bottom"){n.y-=a.labelHeight/2}}}if(n==undefined)n={x:e.position("x"),y:e.position("y")};return{x:n.x,y:n.y}}else{var h=void 0;o.forEach((function(t){var r=t.nodeIndexes.get(e.id());if(r!=undefined){h={x:t.xCoords[r],y:t.yCoords[r]}}}));if(h==undefined)h={x:e.position("x"),y:e.position("y")};return{x:h.x,y:h.y}}};if(r.quality=="default"||r.quality=="proof"||r.randomize){var F=a.calcParentsWithoutChildren(i,n);var S=n.filter((function(t){return t.css("display")=="none"}));r.eles=n.not(S);n.nodes().not(":parent").not(S).layoutPositions(e,r,G);if(F.length>0){F.forEach((function(t){t.position(G(t))}))}}else{console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}}]);return t}();t.exports=f},657:(t,e,r)=>{var i=r(548);var n=r(140).layoutBase.Matrix;var o=r(140).layoutBase.SVD;var a=function t(e){var r=e.cy;var a=e.eles;var s=a.nodes();var h=a.nodes(":parent");var l=new Map;var c=new Map;var d=new Map;var f=[];var g=[];var u=[];var p=[];var v=[];var y=[];var m=[];var E=[];var N=void 0;var T=void 0;var A=1e8;var w=1e-9;var L=e.piTol;var I=e.samplingType;var _=e.nodeSeparation;var C=void 0;var M=function t(){var e=0;var r=0;var i=false;while(r=o){s=n[o++];var p=f[s];for(var m=0;md){d=v[N];g=N}}}return g};var O=function t(e){var r=void 0;if(!e){M();for(var i=0;i=1){break}d=c}for(var v=0;v=1){break}d=c}for(var N=0;N0){if(r.isParent())f[e].push(d.get(r.id()));else f[e].push(r.id())}}))}));var X=function t(e){var i=c.get(e);var n=void 0;l.get(e).forEach((function(t){if(r.getElementById(t).isParent())n=d.get(t);else n=t;f[i].push(n);f[c.get(n)].push(e)}))};var z=true;var V=false;var B=undefined;try{for(var W=l.keys()[Symbol.iterator](),j;!(z=(j=W.next()).done);z=true){var q=j.value;X(q)}}catch(nt){V=true;B=nt}finally{try{if(!z&&W.return){W.return()}}finally{if(V){throw B}}}T=c.size;var $=void 0;if(T>2){C=T{var i=r(212);var n=function t(e){if(!e){return}e("layout","fcose",i)};if(typeof cytoscape!=="undefined"){n(cytoscape)}t.exports=n},140:e=>{e.exports=t}};var r={};function i(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};e[t](o,o.exports,i);return o.exports}var n=i(579);return n})()}))},41709:function(t,e,r){(function e(i,n){if(true)t.exports=n(r(1917));else{}})(this,(function(t){return(()=>{"use strict";var e={45:(t,e,r)=>{var i={};i.layoutBase=r(551);i.CoSEConstants=r(806);i.CoSEEdge=r(767);i.CoSEGraph=r(880);i.CoSEGraphManager=r(578);i.CoSELayout=r(765);i.CoSENode=r(991);i.ConstraintHandler=r(902);t.exports=i},806:(t,e,r)=>{var i=r(551).FDLayoutConstants;function n(){}for(var o in i){n[o]=i[o]}n.DEFAULT_USE_MULTI_LEVEL_SCALING=false;n.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH;n.DEFAULT_COMPONENT_SEPERATION=60;n.TILE=true;n.TILING_PADDING_VERTICAL=10;n.TILING_PADDING_HORIZONTAL=10;n.TRANSFORM_ON_CONSTRAINT_HANDLING=true;n.ENFORCE_CONSTRAINTS=true;n.APPLY_LAYOUT=true;n.RELAX_MOVEMENT_ON_CONSTRAINTS=true;n.TREE_REDUCTION_ON_INCREMENTAL=true;n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL;t.exports=n},767:(t,e,r)=>{var i=r(551).FDLayoutEdge;function n(t,e,r){i.call(this,t,e,r)}n.prototype=Object.create(i.prototype);for(var o in i){n[o]=i[o]}t.exports=n},880:(t,e,r)=>{var i=r(551).LGraph;function n(t,e,r){i.call(this,t,e,r)}n.prototype=Object.create(i.prototype);for(var o in i){n[o]=i[o]}t.exports=n},578:(t,e,r)=>{var i=r(551).LGraphManager;function n(t){i.call(this,t)}n.prototype=Object.create(i.prototype);for(var o in i){n[o]=i[o]}t.exports=n},765:(t,e,r)=>{var i=r(551).FDLayout;var n=r(578);var o=r(880);var a=r(991);var s=r(767);var h=r(806);var l=r(902);var c=r(551).FDLayoutConstants;var d=r(551).LayoutConstants;var f=r(551).Point;var g=r(551).PointD;var u=r(551).DimensionD;var p=r(551).Layout;var v=r(551).Integer;var y=r(551).IGeometry;var m=r(551).LGraph;var E=r(551).Transform;var N=r(551).LinkedList;function T(){i.call(this);this.toBeTiled={};this.constraints={}}T.prototype=Object.create(i.prototype);for(var A in i){T[A]=i[A]}T.prototype.newGraphManager=function(){var t=new n(this);this.graphManager=t;return t};T.prototype.newGraph=function(t){return new o(null,this.graphManager,t)};T.prototype.newNode=function(t){return new a(this.graphManager,t)};T.prototype.newEdge=function(t){return new s(null,null,t)};T.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments);if(!this.isSubLayout){if(h.DEFAULT_EDGE_LENGTH<10){this.idealEdgeLength=10}else{this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH}this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION;this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH;this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH;this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR;this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR;this.prunedNodesAll=[];this.growTreeIterations=0;this.afterGrowthIterations=0;this.isTreeGrowing=false;this.isGrowthFinished=false}};T.prototype.initSpringEmbedder=function(){i.prototype.initSpringEmbedder.call(this);this.coolingCycle=0;this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD;this.finalTemperature=.04;this.coolingAdjuster=1};T.prototype.layout=function(){var t=d.DEFAULT_CREATE_BENDS_AS_NEEDED;if(t){this.createBendpoints();this.graphManager.resetAllEdges()}this.level=0;return this.classicLayout()};T.prototype.classicLayout=function(){this.nodesWithGravity=this.calculateNodesToApplyGravitationTo();this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity);this.calcNoOfChildrenForAllNodes();this.graphManager.calcLowestCommonAncestors();this.graphManager.calcInclusionTreeDepths();this.graphManager.getRoot().calcEstimatedSize();this.calcIdealEdgeLengths();if(!this.incremental){var t=this.getFlatForest();if(t.length>0){this.positionNodesRadially(t)}else{this.reduceTrees();this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes());var r=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(r);this.positionNodesRandomly()}}else{if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees();this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes());var r=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(r)}}if(Object.keys(this.constraints).length>0){l.handleConstraints(this);this.initConstraintVariables()}this.initSpringEmbedder();if(h.APPLY_LAYOUT){this.runSpringEmbedder()}return true};T.prototype.tick=function(){this.totalIterations++;if(this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0){this.isTreeGrowing=true}else{return true}}if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0){this.isTreeGrowing=true}else{return true}}this.coolingCycle++;if(this.layoutQuality==0){this.coolingAdjuster=this.coolingCycle}else if(this.layoutQuality==1){this.coolingAdjuster=this.coolingCycle/3}this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature);this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds();this.updateGrid();this.growTree(this.prunedNodesAll);this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes());var e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e);this.graphManager.updateBounds();this.updateGrid();if(h.PURE_INCREMENTAL)this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2;else this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else{this.isTreeGrowing=false;this.isGrowthFinished=true}}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged()){return true}if(this.afterGrowthIterations%10==0){this.graphManager.updateBounds();this.updateGrid()}if(h.PURE_INCREMENTAL)this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100);else this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100);this.afterGrowthIterations++}var r=!this.isTreeGrowing&&!this.isGrowthFinished;var i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;this.totalDisplacement=0;this.graphManager.updateBounds();this.calcSpringForces();this.calcRepulsionForces(r,i);this.calcGravitationalForces();this.moveNodes();this.animate();return false};T.prototype.getPositionsData=function(){var t=this.graphManager.getAllNodes();var e={};for(var r=0;r0){this.updateDisplacements()}for(var r=0;r0){i.fixedNodeWeight=o}}}}if(this.constraints.relativePlacementConstraint){var a=new Map;var s=new Map;this.dummyToNodeForVerticalAlignment=new Map;this.dummyToNodeForHorizontalAlignment=new Map;this.fixedNodesOnHorizontal=new Set;this.fixedNodesOnVertical=new Set;this.fixedNodeSet.forEach((function(e){t.fixedNodesOnHorizontal.add(e);t.fixedNodesOnVertical.add(e)}));if(this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var l=this.constraints.alignmentConstraint.vertical;for(var r=0;r=2*t.length/3;i--){e=Math.floor(Math.random()*(i+1));r=t[i];t[i]=t[e];t[e]=r}return t};this.nodesInRelativeHorizontal=[];this.nodesInRelativeVertical=[];this.nodeToRelativeConstraintMapHorizontal=new Map;this.nodeToRelativeConstraintMapVertical=new Map;this.nodeToTempPositionMapHorizontal=new Map;this.nodeToTempPositionMapVertical=new Map;this.constraints.relativePlacementConstraint.forEach((function(e){if(e.left){var r=a.has(e.left)?a.get(e.left):e.left;var i=a.has(e.right)?a.get(e.right):e.right;if(!t.nodesInRelativeHorizontal.includes(r)){t.nodesInRelativeHorizontal.push(r);t.nodeToRelativeConstraintMapHorizontal.set(r,[]);if(t.dummyToNodeForVerticalAlignment.has(r)){t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX())}else{t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(r).getCenterX())}}if(!t.nodesInRelativeHorizontal.includes(i)){t.nodesInRelativeHorizontal.push(i);t.nodeToRelativeConstraintMapHorizontal.set(i,[]);if(t.dummyToNodeForVerticalAlignment.has(i)){t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(i)[0]).getCenterX())}else{t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(i).getCenterX())}}t.nodeToRelativeConstraintMapHorizontal.get(r).push({right:i,gap:e.gap});t.nodeToRelativeConstraintMapHorizontal.get(i).push({left:r,gap:e.gap})}else{var n=s.has(e.top)?s.get(e.top):e.top;var o=s.has(e.bottom)?s.get(e.bottom):e.bottom;if(!t.nodesInRelativeVertical.includes(n)){t.nodesInRelativeVertical.push(n);t.nodeToRelativeConstraintMapVertical.set(n,[]);if(t.dummyToNodeForHorizontalAlignment.has(n)){t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(n)[0]).getCenterY())}else{t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(n).getCenterY())}}if(!t.nodesInRelativeVertical.includes(o)){t.nodesInRelativeVertical.push(o);t.nodeToRelativeConstraintMapVertical.set(o,[]);if(t.dummyToNodeForHorizontalAlignment.has(o)){t.nodeToTempPositionMapVertical.set(o,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(o)[0]).getCenterY())}else{t.nodeToTempPositionMapVertical.set(o,t.idToNodeMap.get(o).getCenterY())}}t.nodeToRelativeConstraintMapVertical.get(n).push({bottom:o,gap:e.gap});t.nodeToRelativeConstraintMapVertical.get(o).push({top:n,gap:e.gap})}}))}else{var d=new Map;var f=new Map;this.constraints.relativePlacementConstraint.forEach((function(t){if(t.left){var e=a.has(t.left)?a.get(t.left):t.left;var r=a.has(t.right)?a.get(t.right):t.right;if(d.has(e)){d.get(e).push(r)}else{d.set(e,[r])}if(d.has(r)){d.get(r).push(e)}else{d.set(r,[e])}}else{var i=s.has(t.top)?s.get(t.top):t.top;var n=s.has(t.bottom)?s.get(t.bottom):t.bottom;if(f.has(i)){f.get(i).push(n)}else{f.set(i,[n])}if(f.has(n)){f.get(n).push(i)}else{f.set(n,[i])}}}));var g=function t(e,r){var i=[];var n=[];var o=new N;var a=new Set;var s=0;e.forEach((function(t,h){if(!a.has(h)){i[s]=[];n[s]=false;var l=h;o.push(l);a.add(l);i[s].push(l);while(o.length!=0){l=o.shift();if(r.has(l)){n[s]=true}var c=e.get(l);c.forEach((function(t){if(!a.has(t)){o.push(t);a.add(t);i[s].push(t)}}))}s++}}));return{components:i,isFixed:n}};var u=g(d,t.fixedNodesOnHorizontal);this.componentsOnHorizontal=u.components;this.fixedComponentsOnHorizontal=u.isFixed;var p=g(f,t.fixedNodesOnVertical);this.componentsOnVertical=p.components;this.fixedComponentsOnVertical=p.isFixed}}};T.prototype.updateDisplacements=function(){var t=this;if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach((function(e){var r=t.idToNodeMap.get(e.nodeId);r.displacementX=0;r.displacementY=0}))}if(this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var e=this.constraints.alignmentConstraint.vertical;for(var r=0;r1){var s;for(s=0;si){i=Math.floor(a.y)}o=Math.floor(a.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new g(d.WORLD_CENTER_X-a.x/2,d.WORLD_CENTER_Y-a.y/2))};T.radialLayout=function(t,e,r){var i=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);T.branchRadialLayout(e,null,0,359,0,i);var n=m.calculateBounds(t);var o=new E;o.setDeviceOrgX(n.getMinX());o.setDeviceOrgY(n.getMinY());o.setWorldOrgX(r.x);o.setWorldOrgY(r.y);for(var a=0;a1){var E=m[0];m.splice(0,1);var N=f.indexOf(E);if(N>=0){f.splice(N,1)}p--;g--}if(e!=null){v=(f.indexOf(m[0])+1)%p}else{v=0}var A=Math.abs(i-r)/g;for(var w=v;u!=g;w=++w%p){var L=f[w].getOtherEnd(t);if(L==e){continue}var I=(r+u*A)%360;var _=(I+A)%360;T.branchRadialLayout(L,t,I,_,n+o,o);u++}};T.maxDiagonalInTree=function(t){var e=v.MIN_VALUE;for(var r=0;re){e=n}}return e};T.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength};T.prototype.groupZeroDegreeMembers=function(){var t=this;var e={};this.memberGroups={};this.idToDummyNode={};var r=[];var i=this.graphManager.getAllNodes();for(var n=0;n1){var i="DummyCompound_"+r;t.memberGroups[i]=e[r];var n=e[r][0].getParent();var o=new a(t.graphManager);o.id=i;o.paddingLeft=n.paddingLeft||0;o.paddingRight=n.paddingRight||0;o.paddingBottom=n.paddingBottom||0;o.paddingTop=n.paddingTop||0;t.idToDummyNode[i]=o;var s=t.getGraphManager().add(t.newGraph(),o);var h=n.getChild();h.add(o);for(var l=0;ln){i.rect.x-=(i.labelWidth-n)/2;i.setWidth(i.labelWidth);i.labelMarginLeft=(i.labelWidth-n)/2}else if(i.labelPosHorizontal=="right"){i.setWidth(n+i.labelWidth)}}if(i.labelHeight){if(i.labelPosVertical=="top"){i.rect.y-=i.labelHeight;i.setHeight(o+i.labelHeight);i.labelMarginTop=i.labelHeight}else if(i.labelPosVertical=="center"&&i.labelHeight>o){i.rect.y-=(i.labelHeight-o)/2;i.setHeight(i.labelHeight);i.labelMarginTop=(i.labelHeight-o)/2}else if(i.labelPosVertical=="bottom"){i.setHeight(o+i.labelHeight)}}}}))};T.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t];var r=e.id;var i=e.paddingLeft;var n=e.paddingTop;var o=e.labelMarginLeft;var a=e.labelMarginTop;this.adjustLocations(this.tiledMemberPack[r],e.rect.x,e.rect.y,i,n,o,a)}};T.prototype.repopulateZeroDegreeMembers=function(){var t=this;var e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(r){var i=t.idToDummyNode[r];var n=i.paddingLeft;var o=i.paddingTop;var a=i.labelMarginLeft;var s=i.labelMarginTop;t.adjustLocations(e[r],i.rect.x,i.rect.y,n,o,a,s)}))};T.prototype.getToBeTiled=function(t){var e=t.id;if(this.toBeTiled[e]!=null){return this.toBeTiled[e]}var r=t.getChild();if(r==null){this.toBeTiled[e]=false;return false}var i=r.getNodes();for(var n=0;n0){this.toBeTiled[e]=false;return false}if(o.getChild()==null){this.toBeTiled[o.id]=false;continue}if(!this.getToBeTiled(o)){this.toBeTiled[e]=false;return false}}this.toBeTiled[e]=true;return true};T.prototype.getNodeDegree=function(t){var e=t.id;var r=t.getEdges();var i=0;for(var n=0;nc)c=f.rect.height}r+=c+t.verticalPadding}};T.prototype.tileCompoundMembers=function(t,e){var r=this;this.tiledMemberPack=[];Object.keys(t).forEach((function(i){var n=e[i];r.tiledMemberPack[i]=r.tileNodes(t[i],n.paddingLeft+n.paddingRight);n.rect.width=r.tiledMemberPack[i].width;n.rect.height=r.tiledMemberPack[i].height;n.setCenter(r.tiledMemberPack[i].centerX,r.tiledMemberPack[i].centerY);n.labelMarginLeft=0;n.labelMarginTop=0;if(h.NODE_DIMENSIONS_INCLUDE_LABELS){var o=n.rect.width;var a=n.rect.height;if(n.labelWidth){if(n.labelPosHorizontal=="left"){n.rect.x-=n.labelWidth;n.setWidth(o+n.labelWidth);n.labelMarginLeft=n.labelWidth}else if(n.labelPosHorizontal=="center"&&n.labelWidth>o){n.rect.x-=(n.labelWidth-o)/2;n.setWidth(n.labelWidth);n.labelMarginLeft=(n.labelWidth-o)/2}else if(n.labelPosHorizontal=="right"){n.setWidth(o+n.labelWidth)}}if(n.labelHeight){if(n.labelPosVertical=="top"){n.rect.y-=n.labelHeight;n.setHeight(a+n.labelHeight);n.labelMarginTop=n.labelHeight}else if(n.labelPosVertical=="center"&&n.labelHeight>a){n.rect.y-=(n.labelHeight-a)/2;n.setHeight(n.labelHeight);n.labelMarginTop=(n.labelHeight-a)/2}else if(n.labelPosVertical=="bottom"){n.setHeight(a+n.labelHeight)}}}}))};T.prototype.tileNodes=function(t,e){var r=this.tileNodesByFavoringDim(t,e,true);var i=this.tileNodesByFavoringDim(t,e,false);var n=this.getOrgRatio(r);var o=this.getOrgRatio(i);var a;if(os){s=t.getWidth()}}));var l=o/n;var c=a/n;var d=Math.pow(r-i,2)+4*(l+i)*(c+r)*n;var f=(i-r+Math.sqrt(d))/(2*(l+i));var g;if(e){g=Math.ceil(f);if(g==f){g++}}else{g=Math.floor(f)}var u=g*(l+i)-i;if(s>u){u=s}u+=i*2;return u};T.prototype.tileNodesByFavoringDim=function(t,e,r){var i=h.TILING_PADDING_VERTICAL;var n=h.TILING_PADDING_HORIZONTAL;var o=h.TILING_COMPARE_BY;var a={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:i,horizontalPadding:n,centerX:0,centerY:0};if(o){a.idealRowWidth=this.calcIdealRowWidth(t,r)}var s=function t(e){return e.rect.width*e.rect.height};var l=function t(e,r){return s(r)-s(e)};t.sort((function(t,e){var r=l;if(a.idealRowWidth){r=o;return r(t.id,e.id)}return r(t,e)}));var c=0;var d=0;for(var f=0;f0){a+=t.horizontalPadding}t.rowWidth[r]=a;if(t.width0)s+=t.verticalPadding;var h=0;if(s>t.rowHeight[r]){h=t.rowHeight[r];t.rowHeight[r]=s;h=t.rowHeight[r]-h}t.height+=h;t.rows[r].push(e)};T.prototype.getShortestRowIndex=function(t){var e=-1;var r=Number.MAX_VALUE;for(var i=0;ir){e=i;r=t.rowWidth[i]}}return e};T.prototype.canAddHorizontal=function(t,e,r){if(t.idealRowWidth){var i=t.rows.length-1;var n=t.rowWidth[i];return n+e+t.horizontalPadding<=t.idealRowWidth}var o=this.getShortestRowIndex(t);if(o<0){return true}var a=t.rowWidth[o];if(a+t.horizontalPadding+e<=t.width)return true;var s=0;if(t.rowHeight[o]0)s=r+t.verticalPadding-t.rowHeight[o]}var h;if(t.width-a>=e+t.horizontalPadding){h=(t.height+s)/(a+e+t.horizontalPadding)}else{h=(t.height+s)/t.width}s=r+t.verticalPadding;var l;if(t.widtho&&e!=r){i.splice(-1,1);t.rows[r].push(n);t.rowWidth[e]=t.rowWidth[e]-o;t.rowWidth[r]=t.rowWidth[r]+o;t.width=t.rowWidth[instance.getLongestRowIndex(t)];var a=Number.MIN_VALUE;for(var s=0;sa)a=i[s].height}if(e>0)a+=t.verticalPadding;var h=t.rowHeight[e]+t.rowHeight[r];t.rowHeight[e]=a;if(t.rowHeight[r]0){for(var p=n;p<=o;p++){u[0]+=this.grid[p][a-1].length+this.grid[p][a].length-1}}if(o0){for(var p=a;p<=s;p++){u[3]+=this.grid[n-1][p].length+this.grid[n][p].length-1}}var y=v.MAX_VALUE;var m;var E;for(var N=0;N{var i=r(551).FDLayoutNode;var n=r(551).IMath;function o(t,e,r,n){i.call(this,t,e,r,n)}o.prototype=Object.create(i.prototype);for(var a in i){o[a]=i[a]}o.prototype.calculateDisplacement=function(){var t=this.graphManager.getLayout();if(this.getChild()!=null&&this.fixedNodeWeight){this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight;this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight}else{this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren;this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren}if(Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement){this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)}if(Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement){this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)}if(this.child&&this.child.getNodes().length>0){this.propogateDisplacementToChildren(this.displacementX,this.displacementY)}};o.prototype.propogateDisplacementToChildren=function(t,e){var r=this.getChild().getNodes();var i;for(var n=0;n{function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0){var i=0;e.forEach((function(t){if(r=="horizontal"){g.set(t,h.has(t)?l[h.get(t)]:a.get(t));i+=g.get(t)}else{g.set(t,h.has(t)?c[h.get(t)]:a.get(t));i+=g.get(t)}}));i=i/e.length;t.forEach((function(t){if(!n.has(t)){g.set(t,i)}}))}else{var o=0;t.forEach((function(t){if(r=="horizontal"){o+=h.has(t)?l[h.get(t)]:a.get(t)}else{o+=h.has(t)?c[h.get(t)]:a.get(t)}}));o=o/t.length;t.forEach((function(t){g.set(t,o)}))}}))}var v=function t(){var i=p.shift();var o=e.get(i);o.forEach((function(t){if(g.get(t.id)o){o=m}if(Es){s=E}}}catch(C){f=true;u=C}finally{try{if(!d&&p.return){p.return()}}finally{if(f){throw u}}}var N=(i+o)/2-(n+s)/2;var T=true;var A=false;var w=undefined;try{for(var L=t[Symbol.iterator](),I;!(T=(I=L.next()).done);T=true){var _=I.value;g.set(_,g.get(_)+N)}}catch(C){A=true;w=C}finally{try{if(!T&&L.return){L.return()}}finally{if(A){throw w}}}}))}return g};var m=function t(e){var r=0,i=0;var n=0,o=0;e.forEach((function(t){if(t.left){l[h.get(t.left)]-l[h.get(t.right)]>=0?r++:i++}else{c[h.get(t.top)]-c[h.get(t.bottom)]>=0?n++:o++}}));if(r>i&&n>o){for(var a=0;ai){for(var s=0;so){for(var d=0;d1){e.fixedNodeConstraint.forEach((function(t,e){A[e]=[t.position.x,t.position.y];w[e]=[l[h.get(t.nodeId)],c[h.get(t.nodeId)]]}));L=true}else if(e.alignmentConstraint){(function(){var t=0;if(e.alignmentConstraint.vertical){var r=e.alignmentConstraint.vertical;var n=function e(n){var o=new Set;r[n].forEach((function(t){o.add(t)}));var a=new Set([].concat(i(o)).filter((function(t){return _.has(t)})));var s=void 0;if(a.size>0)s=l[h.get(a.values().next().value)];else s=v(o).x;r[n].forEach((function(e){A[t]=[s,c[h.get(e)]];w[t]=[l[h.get(e)],c[h.get(e)]];t++}))};for(var o=0;o0)s=l[h.get(o.values().next().value)];else s=v(n).y;a[r].forEach((function(e){A[t]=[l[h.get(e)],s];w[t]=[l[h.get(e)],c[h.get(e)]];t++}))};for(var d=0;dO){O=x[R].length;D=R}}if(O0){var q={x:0,y:0};e.fixedNodeConstraint.forEach((function(t,e){var r={x:l[h.get(t.nodeId)],y:c[h.get(t.nodeId)]};var i=t.position;var n=p(i,r);q.x+=n.x;q.y+=n.y}));q.x/=e.fixedNodeConstraint.length;q.y/=e.fixedNodeConstraint.length;l.forEach((function(t,e){l[e]+=q.x}));c.forEach((function(t,e){c[e]+=q.y}));e.fixedNodeConstraint.forEach((function(t){l[h.get(t.nodeId)]=t.position.x;c[h.get(t.nodeId)]=t.position.y}))}if(e.alignmentConstraint){if(e.alignmentConstraint.vertical){var $=e.alignmentConstraint.vertical;var K=function t(e){var r=new Set;$[e].forEach((function(t){r.add(t)}));var n=new Set([].concat(i(r)).filter((function(t){return _.has(t)})));var o=void 0;if(n.size>0)o=l[h.get(n.values().next().value)];else o=v(r).x;r.forEach((function(t){if(!_.has(t))l[h.get(t)]=o}))};for(var Z=0;Z<$.length;Z++){K(Z)}}if(e.alignmentConstraint.horizontal){var Q=e.alignmentConstraint.horizontal;var J=function t(e){var r=new Set;Q[e].forEach((function(t){r.add(t)}));var n=new Set([].concat(i(r)).filter((function(t){return _.has(t)})));var o=void 0;if(n.size>0)o=c[h.get(n.values().next().value)];else o=v(r).y;r.forEach((function(t){if(!_.has(t))c[h.get(t)]=o}))};for(var tt=0;tt{e.exports=t}};var r={};function i(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};e[t](o,o.exports,i);return o.exports}var n=i(45);return n})()}))},1917:function(t){(function e(r,i){if(true)t.exports=i();else{}})(this,(function(){return function(t){var e={};function r(i){if(e[i]){return e[i].exports}var n=e[i]={i,l:false,exports:{}};t[i].call(n.exports,n,n.exports,r);n.l=true;return n.exports}r.m=t;r.c=e;r.i=function(t){return t};r.d=function(t,e,i){if(!r.o(t,e)){Object.defineProperty(t,e,{configurable:false,enumerable:true,get:i})}};r.n=function(t){var e=t&&t.__esModule?function e(){return t["default"]}:function e(){return t};r.d(e,"a",e);return e};r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};r.p="";return r(r.s=28)}([function(t,e,r){"use strict";function i(){}i.QUALITY=1;i.DEFAULT_CREATE_BENDS_AS_NEEDED=false;i.DEFAULT_INCREMENTAL=false;i.DEFAULT_ANIMATION_ON_LAYOUT=true;i.DEFAULT_ANIMATION_DURING_LAYOUT=false;i.DEFAULT_ANIMATION_PERIOD=50;i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=false;i.DEFAULT_GRAPH_MARGIN=15;i.NODE_DIMENSIONS_INCLUDE_LABELS=false;i.SIMPLE_NODE_SIZE=40;i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2;i.EMPTY_COMPOUND_NODE_SIZE=40;i.MIN_EDGE_LENGTH=1;i.WORLD_BOUNDARY=1e6;i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3;i.WORLD_CENTER_X=1200;i.WORLD_CENTER_Y=900;t.exports=i},function(t,e,r){"use strict";var i=r(2);var n=r(8);var o=r(9);function a(t,e,r){i.call(this,r);this.isOverlapingSourceAndTarget=false;this.vGraphObject=r;this.bendpoints=[];this.source=t;this.target=e}a.prototype=Object.create(i.prototype);for(var s in i){a[s]=i[s]}a.prototype.getSource=function(){return this.source};a.prototype.getTarget=function(){return this.target};a.prototype.isInterGraph=function(){return this.isInterGraph};a.prototype.getLength=function(){return this.length};a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget};a.prototype.getBendpoints=function(){return this.bendpoints};a.prototype.getLca=function(){return this.lca};a.prototype.getSourceInLca=function(){return this.sourceInLca};a.prototype.getTargetInLca=function(){return this.targetInLca};a.prototype.getOtherEnd=function(t){if(this.source===t){return this.target}else if(this.target===t){return this.source}else{throw"Node is not incident with this edge"}};a.prototype.getOtherEndInGraph=function(t,e){var r=this.getOtherEnd(t);var i=e.getGraphManager().getRoot();while(true){if(r.getOwner()==e){return r}if(r.getOwner()==i){break}r=r.getOwner().getParent()}return null};a.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t);if(!this.isOverlapingSourceAndTarget){this.lengthX=t[0]-t[2];this.lengthY=t[1]-t[3];if(Math.abs(this.lengthX)<1){this.lengthX=o.sign(this.lengthX)}if(Math.abs(this.lengthY)<1){this.lengthY=o.sign(this.lengthY)}this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)}};a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX();this.lengthY=this.target.getCenterY()-this.source.getCenterY();if(Math.abs(this.lengthX)<1){this.lengthX=o.sign(this.lengthX)}if(Math.abs(this.lengthY)<1){this.lengthY=o.sign(this.lengthY)}this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)};t.exports=a},function(t,e,r){"use strict";function i(t){this.vGraphObject=t}t.exports=i},function(t,e,r){"use strict";var i=r(2);var n=r(10);var o=r(13);var a=r(0);var s=r(16);var h=r(5);function l(t,e,r,a){if(r==null&&a==null){a=e}i.call(this,a);if(t.graphManager!=null)t=t.graphManager;this.estimatedSize=n.MIN_VALUE;this.inclusionTreeDepth=n.MAX_VALUE;this.vGraphObject=a;this.edges=[];this.graphManager=t;if(r!=null&&e!=null)this.rect=new o(e.x,e.y,r.width,r.height);else this.rect=new o}l.prototype=Object.create(i.prototype);for(var c in i){l[c]=i[c]}l.prototype.getEdges=function(){return this.edges};l.prototype.getChild=function(){return this.child};l.prototype.getOwner=function(){return this.owner};l.prototype.getWidth=function(){return this.rect.width};l.prototype.setWidth=function(t){this.rect.width=t};l.prototype.getHeight=function(){return this.rect.height};l.prototype.setHeight=function(t){this.rect.height=t};l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2};l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2};l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)};l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)};l.prototype.getRect=function(){return this.rect};l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)};l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2};l.prototype.setRect=function(t,e){this.rect.x=t.x;this.rect.y=t.y;this.rect.width=e.width;this.rect.height=e.height};l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2;this.rect.y=e-this.rect.height/2};l.prototype.setLocation=function(t,e){this.rect.x=t;this.rect.y=e};l.prototype.moveBy=function(t,e){this.rect.x+=t;this.rect.y+=e};l.prototype.getEdgeListToNode=function(t){var e=[];var r;var i=this;i.edges.forEach((function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}));return e};l.prototype.getEdgesBetween=function(t){var e=[];var r;var i=this;i.edges.forEach((function(r){if(!(r.source==i||r.target==i))throw"Incorrect edge source and/or target";if(r.target==t||r.source==t){e.push(r)}}));return e};l.prototype.getNeighborsList=function(){var t=new Set;var e=this;e.edges.forEach((function(r){if(r.source==e){t.add(r.target)}else{if(r.target!=e){throw"Incorrect incidency!"}t.add(r.source)}}));return t};l.prototype.withChildren=function(){var t=new Set;var e;var r;t.add(this);if(this.child!=null){var i=this.child.getNodes();for(var n=0;ne){this.rect.x-=(this.labelWidth-e)/2;this.setWidth(this.labelWidth)}else if(this.labelPosHorizontal=="right"){this.setWidth(e+this.labelWidth)}}if(this.labelHeight){if(this.labelPosVertical=="top"){this.rect.y-=this.labelHeight;this.setHeight(r+this.labelHeight)}else if(this.labelPosVertical=="center"&&this.labelHeight>r){this.rect.y-=(this.labelHeight-r)/2;this.setHeight(this.labelHeight)}else if(this.labelPosVertical=="bottom"){this.setHeight(r+this.labelHeight)}}}}};l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE){throw"assert failed"}return this.inclusionTreeDepth};l.prototype.transform=function(t){var e=this.rect.x;if(e>a.WORLD_BOUNDARY){e=a.WORLD_BOUNDARY}else if(e<-a.WORLD_BOUNDARY){e=-a.WORLD_BOUNDARY}var r=this.rect.y;if(r>a.WORLD_BOUNDARY){r=a.WORLD_BOUNDARY}else if(r<-a.WORLD_BOUNDARY){r=-a.WORLD_BOUNDARY}var i=new h(e,r);var n=t.inverseTransformPoint(i);this.setLocation(n.x,n.y)};l.prototype.getLeft=function(){return this.rect.x};l.prototype.getRight=function(){return this.rect.x+this.rect.width};l.prototype.getTop=function(){return this.rect.y};l.prototype.getBottom=function(){return this.rect.y+this.rect.height};l.prototype.getParent=function(){if(this.owner==null){return null}return this.owner.getParent()};t.exports=l},function(t,e,r){"use strict";var i=r(0);function n(){}for(var o in i){n[o]=i[o]}n.MAX_ITERATIONS=2500;n.DEFAULT_EDGE_LENGTH=50;n.DEFAULT_SPRING_STRENGTH=.45;n.DEFAULT_REPULSION_STRENGTH=4500;n.DEFAULT_GRAVITY_STRENGTH=.4;n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1;n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8;n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5;n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=true;n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=true;n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3;n.COOLING_ADAPTATION_FACTOR=.33;n.ADAPTATION_LOWER_NODE_LIMIT=1e3;n.ADAPTATION_UPPER_NODE_LIMIT=5e3;n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100;n.MAX_NODE_DISPLACEMENT=n.MAX_NODE_DISPLACEMENT_INCREMENTAL*3;n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10;n.CONVERGENCE_CHECK_PERIOD=100;n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1;n.MIN_EDGE_LENGTH=1;n.GRID_CALCULATION_CHECK_PERIOD=10;t.exports=n},function(t,e,r){"use strict";function i(t,e){if(t==null&&e==null){this.x=0;this.y=0}else{this.x=t;this.y=e}}i.prototype.getX=function(){return this.x};i.prototype.getY=function(){return this.y};i.prototype.setX=function(t){this.x=t};i.prototype.setY=function(t){this.y=t};i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)};i.prototype.getCopy=function(){return new i(this.x,this.y)};i.prototype.translate=function(t){this.x+=t.width;this.y+=t.height;return this};t.exports=i},function(t,e,r){"use strict";var i=r(2);var n=r(10);var o=r(0);var a=r(7);var s=r(3);var h=r(1);var l=r(13);var c=r(12);var d=r(11);function f(t,e,r){i.call(this,r);this.estimatedSize=n.MIN_VALUE;this.margin=o.DEFAULT_GRAPH_MARGIN;this.edges=[];this.nodes=[];this.isConnected=false;this.parent=t;if(e!=null&&e instanceof a){this.graphManager=e}else if(e!=null&&e instanceof Layout){this.graphManager=e.graphManager}}f.prototype=Object.create(i.prototype);for(var g in i){f[g]=i[g]}f.prototype.getNodes=function(){return this.nodes};f.prototype.getEdges=function(){return this.edges};f.prototype.getGraphManager=function(){return this.graphManager};f.prototype.getParent=function(){return this.parent};f.prototype.getLeft=function(){return this.left};f.prototype.getRight=function(){return this.right};f.prototype.getTop=function(){return this.top};f.prototype.getBottom=function(){return this.bottom};f.prototype.isConnected=function(){return this.isConnected};f.prototype.add=function(t,e,r){if(e==null&&r==null){var i=t;if(this.graphManager==null){throw"Graph has no graph mgr!"}if(this.getNodes().indexOf(i)>-1){throw"Node already in graph!"}i.owner=this;this.getNodes().push(i);return i}else{var n=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(r)>-1)){throw"Source or target not in graph!"}if(!(e.owner==r.owner&&e.owner==this)){throw"Both owners must be this graph!"}if(e.owner!=r.owner){return null}n.source=e;n.target=r;n.isInterGraph=false;this.getEdges().push(n);e.edges.push(n);if(r!=e){r.edges.push(n)}return n}};f.prototype.remove=function(t){var e=t;if(t instanceof s){if(e==null){throw"Node is null!"}if(!(e.owner!=null&&e.owner==this)){throw"Owner graph is invalid!"}if(this.graphManager==null){throw"Owner graph manager is invalid!"}var r=e.edges.slice();var i;var n=r.length;for(var o=0;o-1&&c>-1)){throw"Source and/or target doesn't know this edge!"}i.source.edges.splice(l,1);if(i.target!=i.source){i.target.edges.splice(c,1)}var a=i.source.owner.getEdges().indexOf(i);if(a==-1){throw"Not in owner's edge list!"}i.source.owner.getEdges().splice(a,1)}};f.prototype.updateLeftTop=function(){var t=n.MAX_VALUE;var e=n.MAX_VALUE;var r;var i;var o;var a=this.getNodes();var s=a.length;for(var h=0;hr){t=r}if(e>i){e=i}}if(t==n.MAX_VALUE){return null}if(a[0].getParent().paddingLeft!=undefined){o=a[0].getParent().paddingLeft}else{o=this.margin}this.left=e-o;this.top=t-o;return new c(this.left,this.top)};f.prototype.updateBounds=function(t){var e=n.MAX_VALUE;var r=-n.MAX_VALUE;var i=n.MAX_VALUE;var o=-n.MAX_VALUE;var a;var s;var h;var c;var d;var f=this.nodes;var g=f.length;for(var u=0;ua){e=a}if(rh){i=h}if(oa){e=a}if(rh){i=h}if(o=this.nodes.length){var f=0;r.forEach((function(e){if(e.owner==t){f++}}));if(f==this.nodes.length){this.isConnected=true}}};t.exports=f},function(t,e,r){"use strict";var i;var n=r(1);function o(t){i=r(6);this.layout=t;this.graphs=[];this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph();var e=this.layout.newNode(null);var r=this.add(t,e);this.setRootGraph(r);return this.rootGraph};o.prototype.add=function(t,e,r,i,n){if(r==null&&i==null&&n==null){if(t==null){throw"Graph is null!"}if(e==null){throw"Parent node is null!"}if(this.graphs.indexOf(t)>-1){throw"Graph already in this graph mgr!"}this.graphs.push(t);if(t.parent!=null){throw"Already has a parent!"}if(e.child!=null){throw"Already has a child!"}t.parent=e;e.child=t;return t}else{n=r;i=e;r=t;var o=i.getOwner();var a=n.getOwner();if(!(o!=null&&o.getGraphManager()==this)){throw"Source not in this graph mgr!"}if(!(a!=null&&a.getGraphManager()==this)){throw"Target not in this graph mgr!"}if(o==a){r.isInterGraph=false;return o.add(r,i,n)}else{r.isInterGraph=true;r.source=i;r.target=n;if(this.edges.indexOf(r)>-1){throw"Edge already in inter-graph edge list!"}this.edges.push(r);if(!(r.source!=null&&r.target!=null)){throw"Edge source and/or target is null!"}if(!(r.source.edges.indexOf(r)==-1&&r.target.edges.indexOf(r)==-1)){throw"Edge already in source and/or target incidency list!"}r.source.edges.push(r);r.target.edges.push(r);return r}}};o.prototype.remove=function(t){if(t instanceof i){var e=t;if(e.getGraphManager()!=this){throw"Graph not in this graph mgr"}if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this)){throw"Invalid parent node!"}var r=[];r=r.concat(e.getEdges());var o;var a=r.length;for(var s=0;s=e.getRight()){r[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())}else if(e.getX()<=t.getX()&&e.getRight()>=t.getRight()){r[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())}if(t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()){r[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom())}else if(e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()){r[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom())}var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));if(e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()){o=1}var a=o*r[0];var s=r[1]/o;if(r[0]a){r[0]=i;r[1]=h;r[2]=o;r[3]=E;return false}else if(no){r[0]=s;r[1]=n;r[2]=y;r[3]=a;return false}else if(io){r[0]=c;r[1]=d;w=true}else{r[0]=l;r[1]=h;w=true}}else if(I===C){if(i>o){r[0]=s;r[1]=h;w=true}else{r[0]=f;r[1]=d;w=true}}if(-_===C){if(o>i){r[2]=m;r[3]=E;L=true}else{r[2]=y;r[3]=v;L=true}}else if(_===C){if(o>i){r[2]=p;r[3]=v;L=true}else{r[2]=N;r[3]=E;L=true}}if(w&&L){return false}if(i>o){if(n>a){M=this.getCardinalDirection(I,C,4);x=this.getCardinalDirection(_,C,2)}else{M=this.getCardinalDirection(-I,C,3);x=this.getCardinalDirection(-_,C,1)}}else{if(n>a){M=this.getCardinalDirection(-I,C,1);x=this.getCardinalDirection(-_,C,3)}else{M=this.getCardinalDirection(I,C,2);x=this.getCardinalDirection(_,C,4)}}if(!w){switch(M){case 1:D=h;O=i+-u/C;r[0]=O;r[1]=D;break;case 2:O=f;D=n+g*C;r[0]=O;r[1]=D;break;case 3:D=d;O=i+u/C;r[0]=O;r[1]=D;break;case 4:O=c;D=n+-g*C;r[0]=O;r[1]=D;break}}if(!L){switch(x){case 1:b=v;R=o+-A/C;r[2]=R;r[3]=b;break;case 2:R=N;b=a+T*C;r[2]=R;r[3]=b;break;case 3:b=E;R=o+A/C;r[2]=R;r[3]=b;break;case 4:R=m;b=a+-T*C;r[2]=R;r[3]=b;break}}}return false};n.getCardinalDirection=function(t,e,r){if(t>e){return r}else{return 1+r%4}};n.getIntersection=function(t,e,r,n){if(n==null){return this.getIntersection2(t,e,r)}var o=t.x;var a=t.y;var s=e.x;var h=e.y;var l=r.x;var c=r.y;var d=n.x;var f=n.y;var g=void 0,u=void 0;var p=void 0,v=void 0,y=void 0,m=void 0,E=void 0,N=void 0;var T=void 0;p=h-a;y=o-s;E=s*a-o*h;v=f-c;m=l-d;N=d*c-l*f;T=p*m-v*y;if(T===0){return null}g=(y*N-m*E)/T;u=(v*E-p*N)/T;return new i(g,u)};n.angleOfVector=function(t,e,r,i){var n=void 0;if(t!==r){n=Math.atan((i-e)/(r-t));if(r=0){var d=(-h+Math.sqrt(h*h-4*s*l))/(2*s);var f=(-h-Math.sqrt(h*h-4*s*l))/(2*s);var g=null;if(d>=0&&d<=1){return[d]}if(f>=0&&f<=1){return[f]}return g}else return null};n.HALF_PI=.5*Math.PI;n.ONE_AND_HALF_PI=1.5*Math.PI;n.TWO_PI=2*Math.PI;n.THREE_PI=3*Math.PI;t.exports=n},function(t,e,r){"use strict";function i(){}i.sign=function(t){if(t>0){return 1}else if(t<0){return-1}else{return 0}};i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)};i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)};t.exports=i},function(t,e,r){"use strict";function i(){}i.MAX_VALUE=2147483647;i.MIN_VALUE=-2147483648;t.exports=i},function(t,e,r){"use strict";var i=function(){function t(t,e){for(var r=0;r0&&e){s.push(l[0]);while(s.length>0&&e){var c=s[0];s.splice(0,1);a.add(c);var d=c.getEdges();for(var o=0;o-1){l.splice(p,1)}}a=new Set;h=new Map}}return t};f.prototype.createDummyNodesForBendpoints=function(t){var e=[];var r=t.source;var i=this.graphManager.calcLowestCommonAncestor(t.source,t.target);for(var n=0;n0){var n=this.edgeToDummyNodes.get(r);for(var o=0;o=0){e.splice(d,1)}var f=s.getNeighborsList();f.forEach((function(t){if(r.indexOf(t)<0){var e=i.get(t);var n=e-1;if(n==1){l.push(t)}i.set(t,n)}}))}r=r.concat(l);if(e.length==1||e.length==2){n=true;o=e[0]}}return o};f.prototype.setGraphManager=function(t){this.graphManager=t};t.exports=f},function(t,e,r){"use strict";function i(){}i.seed=1;i.x=0;i.nextDouble=function(){i.x=Math.sin(i.seed++)*1e4;return i.x-Math.floor(i.x)};t.exports=i},function(t,e,r){"use strict";var i=r(5);function n(t,e){this.lworldOrgX=0;this.lworldOrgY=0;this.ldeviceOrgX=0;this.ldeviceOrgY=0;this.lworldExtX=1;this.lworldExtY=1;this.ldeviceExtX=1;this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX};n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t};n.prototype.getWorldOrgY=function(){return this.lworldOrgY};n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t};n.prototype.getWorldExtX=function(){return this.lworldExtX};n.prototype.setWorldExtX=function(t){this.lworldExtX=t};n.prototype.getWorldExtY=function(){return this.lworldExtY};n.prototype.setWorldExtY=function(t){this.lworldExtY=t};n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX};n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t};n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY};n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t};n.prototype.getDeviceExtX=function(){return this.ldeviceExtX};n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t};n.prototype.getDeviceExtY=function(){return this.ldeviceExtY};n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t};n.prototype.transformX=function(t){var e=0;var r=this.lworldExtX;if(r!=0){e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/r}return e};n.prototype.transformY=function(t){var e=0;var r=this.lworldExtY;if(r!=0){e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/r}return e};n.prototype.inverseTransformX=function(t){var e=0;var r=this.ldeviceExtX;if(r!=0){e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/r}return e};n.prototype.inverseTransformY=function(t){var e=0;var r=this.ldeviceExtY;if(r!=0){e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/r}return e};n.prototype.inverseTransformPoint=function(t){var e=new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return e};t.exports=n},function(t,e,r){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);eo.ADAPTATION_LOWER_NODE_LIMIT){this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))}this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(t>o.ADAPTATION_LOWER_NODE_LIMIT){this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR))}else{this.coolingFactor=1}this.initialCoolingFactor=this.coolingFactor;this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations);this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100;this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length;this.repulsionRange=this.calcRepulsionRange()};l.prototype.calcSpringForces=function(){var t=this.getAllEdges();var e;for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:true;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r,i;var n,a;var s=this.getAllNodes();var h;if(this.useFRGridVariant){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&t){this.updateGrid()}h=new Set;for(r=0;rh||s>h){t.gravitationForceX=-this.gravityConstant*n;t.gravitationForceY=-this.gravityConstant*o}}else{h=e.getEstimatedSize()*this.compoundGravityRangeFactor;if(a>h||s>h){t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant;t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant}}};l.prototype.isConverged=function(){var t;var e=false;if(this.totalIterations>this.maxIterations/3){e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2}t=this.totalDisplacement=h.length||c>=h[0].length)){for(var d=0;de}}]);return t}();t.exports=a},function(t,e,r){"use strict";function i(){}i.svd=function(t){this.U=null;this.V=null;this.s=null;this.m=0;this.n=0;this.m=t.length;this.n=t[0].length;var e=Math.min(this.m,this.n);this.s=function(t){var e=[];while(t-- >0){e.push(0)}return e}(Math.min(this.m+1,this.n));this.U=function(t){var e=function t(e){if(e.length==0){return 0}else{var r=[];for(var i=0;i0){e.push(0)}return e}(this.n);var n=function(t){var e=[];while(t-- >0){e.push(0)}return e}(this.m);var o=true;var a=true;var s=Math.min(this.m-1,this.n);var h=Math.max(0,Math.min(this.n-2,this.m));for(var l=0;l=0;x--){if(this.s[x]!==0){for(var O=x+1;O=0;P--){if(function(t,e){return t&&e}(P0){var j=void 0;var q=void 0;for(j=_-2;j>=-1;j--){if(j===-1){break}if(Math.abs(r[j])<=W+B*(Math.abs(this.s[j])+Math.abs(this.s[j+1]))){r[j]=0;break}}if(j===_-2){q=4}else{var $=void 0;for($=_-1;$>=j;$--){if($===j){break}var K=($!==_?Math.abs(r[$]):0)+($!==j+1?Math.abs(r[$-1]):0);if(Math.abs(this.s[$])<=W+B*K){this.s[$]=0;break}}if($===j){q=3}else if($===_-1){q=1}else{q=2;j=$}}j++;switch(q){case 1:{var Z=r[_-2];r[_-2]=0;for(var Q=_-2;Q>=j;Q--){var J=i.hypot(this.s[Q],Z);var tt=this.s[Q]/J;var et=Z/J;this.s[Q]=J;if(Q!==j){Z=-et*r[Q-1];r[Q-1]=tt*r[Q-1]}if(a){for(var rt=0;rt=this.s[j+1]){break}var Ct=this.s[j];this.s[j]=this.s[j+1];this.s[j+1]=Ct;if(a&&jMath.abs(e)){r=e/t;r=Math.abs(t)*Math.sqrt(1+r*r)}else if(e!=0){r=t/e;r=Math.abs(e)*Math.sqrt(1+r*r)}else{r=0}return r};t.exports=i},function(t,e,r){"use strict";var i=function(){function t(t,e){for(var r=0;r2&&arguments[2]!==undefined?arguments[2]:1;var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-1;var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:-1;n(this,t);this.sequence1=e;this.sequence2=r;this.match_score=i;this.mismatch_penalty=o;this.gap_penalty=a;this.iMax=e.length+1;this.jMax=r.length+1;this.grid=new Array(this.iMax);for(var s=0;s=0;r--){var i=this.listeners[r];if(i.event===t&&i.callback===e){this.listeners.splice(r,1)}}};n.emit=function(t,e){for(var r=0;r{"use strict";r.d(e,{diagram:()=>yt});var i=r(68232);var n=r(76261);var o=r(19163);var a=r(13249);var s=r(96049);var h=r(93113);var l=r(75905);var c=r(24010);var d=r(76405);var f=r(26527);var g=r.n(f);var u=r(24982);var p={L:"left",R:"right",T:"top",B:"bottom"};var v={L:(0,l.K2)((t=>`${t},${t/2} 0,${t} 0,0`),"L"),R:(0,l.K2)((t=>`0,${t/2} ${t},0 ${t},${t}`),"R"),T:(0,l.K2)((t=>`0,0 ${t},0 ${t/2},${t}`),"T"),B:(0,l.K2)((t=>`${t/2},0 ${t},${t} 0,${t}`),"B")};var y={L:(0,l.K2)(((t,e)=>t-e+2),"L"),R:(0,l.K2)(((t,e)=>t-2),"R"),T:(0,l.K2)(((t,e)=>t-e+2),"T"),B:(0,l.K2)(((t,e)=>t-2),"B")};var m=(0,l.K2)((function(t){if(N(t)){return t==="L"?"R":"L"}else{return t==="T"?"B":"T"}}),"getOppositeArchitectureDirection");var E=(0,l.K2)((function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"}),"isArchitectureDirection");var N=(0,l.K2)((function(t){const e=t;return e==="L"||e==="R"}),"isArchitectureDirectionX");var T=(0,l.K2)((function(t){const e=t;return e==="T"||e==="B"}),"isArchitectureDirectionY");var A=(0,l.K2)((function(t,e){const r=N(t)&&T(e);const i=T(t)&&N(e);return r||i}),"isArchitectureDirectionXY");var w=(0,l.K2)((function(t){const e=t[0];const r=t[1];const i=N(e)&&T(r);const n=T(e)&&N(r);return i||n}),"isArchitecturePairXY");var L=(0,l.K2)((function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"}),"isValidArchitectureDirectionPair");var I=(0,l.K2)((function(t,e){const r=`${t}${e}`;return L(r)?r:void 0}),"getArchitectureDirectionPair");var _=(0,l.K2)((function([t,e],r){const i=r[0];const n=r[1];if(N(i)){if(T(n)){return[t+(i==="L"?-1:1),e+(n==="T"?1:-1)]}else{return[t+(i==="L"?-1:1),e]}}else{if(N(n)){return[t+(n==="L"?1:-1),e+(i==="T"?1:-1)]}else{return[t,e+(i==="T"?1:-1)]}}}),"shiftPositionByArchitectureDirectionPair");var C=(0,l.K2)((function(t){if(t==="LT"||t==="TL"){return[1,1]}else if(t==="BL"||t==="LB"){return[1,-1]}else if(t==="BR"||t==="RB"){return[-1,-1]}else{return[-1,1]}}),"getArchitectureDirectionXYFactors");var M=(0,l.K2)((function(t,e){if(A(t,e)){return"bend"}else if(N(t)){return"horizontal"}return"vertical"}),"getArchitectureDirectionAlignment");var x=(0,l.K2)((function(t){const e=t;return e.type==="service"}),"isArchitectureService");var O=(0,l.K2)((function(t){const e=t;return e.type==="junction"}),"isArchitectureJunction");var D=(0,l.K2)((t=>t.data()),"edgeData");var R=(0,l.K2)((t=>t.data()),"nodeData");var b=l.UI.architecture;var G=new a.m((()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:b,dataStructures:void 0,elements:{}})));var F=(0,l.K2)((()=>{G.reset();(0,l.IU)()}),"clear");var S=(0,l.K2)((function({id:t,icon:e,in:r,title:i,iconText:n}){if(G.records.registeredIds[t]!==void 0){throw new Error(`The service id [${t}] is already in use by another ${G.records.registeredIds[t]}`)}if(r!==void 0){if(t===r){throw new Error(`The service [${t}] cannot be placed within itself`)}if(G.records.registeredIds[r]===void 0){throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`)}if(G.records.registeredIds[r]==="node"){throw new Error(`The service [${t}]'s parent is not a group`)}}G.records.registeredIds[t]="node";G.records.nodes[t]={id:t,type:"service",icon:e,iconText:n,title:i,edges:[],in:r}}),"addService");var P=(0,l.K2)((()=>Object.values(G.records.nodes).filter(x)),"getServices");var U=(0,l.K2)((function({id:t,in:e}){G.records.registeredIds[t]="node";G.records.nodes[t]={id:t,type:"junction",edges:[],in:e}}),"addJunction");var k=(0,l.K2)((()=>Object.values(G.records.nodes).filter(O)),"getJunctions");var Y=(0,l.K2)((()=>Object.values(G.records.nodes)),"getNodes");var H=(0,l.K2)((t=>G.records.nodes[t]),"getNode");var X=(0,l.K2)((function({id:t,icon:e,in:r,title:i}){if(G.records.registeredIds[t]!==void 0){throw new Error(`The group id [${t}] is already in use by another ${G.records.registeredIds[t]}`)}if(r!==void 0){if(t===r){throw new Error(`The group [${t}] cannot be placed within itself`)}if(G.records.registeredIds[r]===void 0){throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`)}if(G.records.registeredIds[r]==="node"){throw new Error(`The group [${t}]'s parent is not a group`)}}G.records.registeredIds[t]="group";G.records.groups[t]={id:t,icon:e,title:i,in:r}}),"addGroup");var z=(0,l.K2)((()=>Object.values(G.records.groups)),"getGroups");var V=(0,l.K2)((function({lhsId:t,rhsId:e,lhsDir:r,rhsDir:i,lhsInto:n,rhsInto:o,lhsGroup:a,rhsGroup:s,title:h}){if(!E(r)){throw new Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}`)}if(!E(i)){throw new Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${i}`)}if(G.records.nodes[t]===void 0&&G.records.groups[t]===void 0){throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`)}if(G.records.nodes[e]===void 0&&G.records.groups[t]===void 0){throw new Error(`The right-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`)}const l=G.records.nodes[t].in;const c=G.records.nodes[e].in;if(a&&l&&c&&l==c){throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`)}if(s&&l&&c&&l==c){throw new Error(`The right-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`)}const d={lhsId:t,lhsDir:r,lhsInto:n,lhsGroup:a,rhsId:e,rhsDir:i,rhsInto:o,rhsGroup:s,title:h};G.records.edges.push(d);if(G.records.nodes[t]&&G.records.nodes[e]){G.records.nodes[t].edges.push(G.records.edges[G.records.edges.length-1]);G.records.nodes[e].edges.push(G.records.edges[G.records.edges.length-1])}}),"addEdge");var B=(0,l.K2)((()=>G.records.edges),"getEdges");var W=(0,l.K2)((()=>{if(G.records.dataStructures===void 0){const t={};const e=Object.entries(G.records.nodes).reduce(((e,[r,i])=>{e[r]=i.edges.reduce(((e,i)=>{const n=H(i.lhsId)?.in;const o=H(i.rhsId)?.in;if(n&&o&&n!==o){const e=M(i.lhsDir,i.rhsDir);if(e!=="bend"){t[n]??={};t[n][o]=e;t[o]??={};t[o][n]=e}}if(i.lhsId===r){const t=I(i.lhsDir,i.rhsDir);if(t){e[t]=i.rhsId}}else{const t=I(i.rhsDir,i.lhsDir);if(t){e[t]=i.lhsId}}return e}),{});return e}),{});const r=Object.keys(e)[0];const i={[r]:1};const n=Object.keys(e).reduce(((t,e)=>e===r?t:{...t,[e]:1}),{});const o=(0,l.K2)((t=>{const r={[t]:[0,0]};const o=[t];while(o.length>0){const t=o.shift();if(t){i[t]=1;delete n[t];const a=e[t];const[s,h]=r[t];Object.entries(a).forEach((([t,e])=>{if(!i[e]){r[e]=_([s,h],t);o.push(e)}}))}}return r}),"BFS");const a=[o(r)];while(Object.keys(n).length>0){a.push(o(Object.keys(n)[0]))}G.records.dataStructures={adjList:e,spatialMaps:a,groupAlignments:t}}return G.records.dataStructures}),"getDataStructures");var j=(0,l.K2)(((t,e)=>{G.records.elements[t]=e}),"setElementForId");var q=(0,l.K2)((t=>G.records.elements[t]),"getElementById");var $={clear:F,setDiagramTitle:l.ke,getDiagramTitle:l.ab,setAccTitle:l.SV,getAccTitle:l.iN,setAccDescription:l.EI,getAccDescription:l.m7,addService:S,getServices:P,addJunction:U,getJunctions:k,getNodes:Y,getNode:H,addGroup:X,getGroups:z,addEdge:V,getEdges:B,setElementForId:j,getElementById:q,getDataStructures:W};function K(t){const e=(0,l.D7)().architecture;if(e?.[t]){return e[t]}return b[t]}(0,l.K2)(K,"getConfigField");var Z=(0,l.K2)(((t,e)=>{(0,o.S)(t,e);t.groups.map(e.addGroup);t.services.map((t=>e.addService({...t,type:"service"})));t.junctions.map((t=>e.addJunction({...t,type:"junction"})));t.edges.map(e.addEdge)}),"populateDb");var Q={parse:(0,l.K2)((async t=>{const e=await(0,c.qg)("architecture",t);l.Rm.debug(e);Z(e,$)}),"parse")};var J=(0,l.K2)((t=>`\n .edge {\n stroke-width: ${t.archEdgeWidth};\n stroke: ${t.archEdgeColor};\n fill: none;\n }\n\n .arrow {\n fill: ${t.archEdgeArrowColor};\n }\n\n .node-bkg {\n fill: none;\n stroke: ${t.archGroupBorderColor};\n stroke-width: ${t.archGroupBorderWidth};\n stroke-dasharray: 8;\n }\n .node-icon-text {\n display: flex; \n align-items: center;\n }\n \n .node-icon-text > div {\n color: #fff;\n margin: 1px;\n height: fit-content;\n text-align: center;\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n }\n`),"getStyles");var tt=J;var et=(0,l.K2)((t=>`${t}`),"wrapIcon");var rt={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:et('')},server:{body:et('')},disk:{body:et('')},internet:{body:et('')},cloud:{body:et('')},unknown:i.Gc,blank:{body:et("")}}};var it=(0,l.K2)((async function(t,e){const r=K("padding");const i=K("iconSize");const o=i/2;const a=i/6;const s=a/2;await Promise.all(e.edges().map((async e=>{const{source:i,sourceDir:h,sourceArrow:c,sourceGroup:d,target:f,targetDir:g,targetArrow:u,targetGroup:p,label:m}=D(e);let{x:E,y:L}=e[0].sourceEndpoint();const{x:_,y:M}=e[0].midpoint();let{x,y:O}=e[0].targetEndpoint();const R=r+4;if(d){if(N(h)){E+=h==="L"?-R:R}else{L+=h==="T"?-R:R+18}}if(p){if(N(g)){x+=g==="L"?-R:R}else{O+=g==="T"?-R:R+18}}if(!d&&$.getNode(i)?.type==="junction"){if(N(h)){E+=h==="L"?o:-o}else{L+=h==="T"?o:-o}}if(!p&&$.getNode(f)?.type==="junction"){if(N(g)){x+=g==="L"?o:-o}else{O+=g==="T"?o:-o}}if(e[0]._private.rscratch){const e=t.insert("g");e.insert("path").attr("d",`M ${E},${L} L ${_},${M} L${x},${O} `).attr("class","edge");if(c){const t=N(h)?y[h](E,a):E-s;const r=T(h)?y[h](L,a):L-s;e.insert("polygon").attr("points",v[h](a)).attr("transform",`translate(${t},${r})`).attr("class","arrow")}if(u){const t=N(g)?y[g](x,a):x-s;const r=T(g)?y[g](O,a):O-s;e.insert("polygon").attr("points",v[g](a)).attr("transform",`translate(${t},${r})`).attr("class","arrow")}if(m){const t=!A(h,g)?N(h)?"X":"Y":"XY";let r=0;if(t==="X"){r=Math.abs(E-x)}else if(t==="Y"){r=Math.abs(L-O)/1.5}else{r=Math.abs(E-x)/2}const i=e.append("g");await(0,n.GZ)(i,m,{useHtmlLabels:false,width:r,classes:"architecture-service-label"},(0,l.D7)());i.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");if(t==="X"){i.attr("transform","translate("+_+", "+M+")")}else if(t==="Y"){i.attr("transform","translate("+_+", "+M+") rotate(-90)")}else if(t==="XY"){const t=I(h,g);if(t&&w(t)){const e=i.node().getBoundingClientRect();const[r,n]=C(t);i.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*r*n*45})`);const o=i.node().getBoundingClientRect();i.attr("transform",`\n translate(${_}, ${M-e.height/2})\n translate(${r*o.width/2}, ${n*o.height/2})\n rotate(${-1*r*n*45}, 0, ${e.height/2})\n `)}}}}})))}),"drawEdges");var nt=(0,l.K2)((async function(t,e){const r=K("padding");const o=r*.75;const a=K("fontSize");const s=K("iconSize");const h=s/2;await Promise.all(e.nodes().map((async e=>{const r=R(e);if(r.type==="group"){const{h:s,w:c,x1:d,y1:f}=e.boundingBox();t.append("rect").attr("x",d+h).attr("y",f+h).attr("width",c).attr("height",s).attr("class","node-bkg");const g=t.append("g");let u=d;let p=f;if(r.icon){const t=g.append("g");t.html(`${await(0,i.WY)(r.icon,{height:o,width:o,fallbackPrefix:rt.prefix})}`);t.attr("transform","translate("+(u+h+1)+", "+(p+h+1)+")");u+=o;p+=a/2-1-2}if(r.label){const t=g.append("g");await(0,n.GZ)(t,r.label,{useHtmlLabels:false,width:c,classes:"architecture-service-label"},(0,l.D7)());t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start");t.attr("transform","translate("+(u+h+4)+", "+(p+h+2)+")")}}})))}),"drawGroups");var ot=(0,l.K2)((async function(t,e,r){for(const o of r){const r=e.append("g");const a=K("iconSize");if(o.title){const t=r.append("g");await(0,n.GZ)(t,o.title,{useHtmlLabels:false,width:a*1.5,classes:"architecture-service-label"},(0,l.D7)());t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");t.attr("transform","translate("+a/2+", "+a+")")}const s=r.append("g");if(o.icon){s.html(`${await(0,i.WY)(o.icon,{height:a,width:a,fallbackPrefix:rt.prefix})}`)}else if(o.iconText){s.html(`${await(0,i.WY)("blank",{height:a,width:a,fallbackPrefix:rt.prefix})}`);const t=s.append("g");const e=t.append("foreignObject").attr("width",a).attr("height",a);const r=e.append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(o.iconText);const n=parseInt(window.getComputedStyle(r.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;r.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/n)};`)}else{s.append("path").attr("class","node-bkg").attr("id","node-"+o.id).attr("d",`M0 ${a} v${-a} q0,-5 5,-5 h${a} q5,0 5,5 v${a} H0 Z`)}r.attr("class","architecture-service");const{width:h,height:c}=r._groups[0][0].getBBox();o.width=h;o.height=c;t.setElementForId(o.id,r)}return 0}),"drawServices");var at=(0,l.K2)((function(t,e,r){r.forEach((r=>{const i=e.append("g");const n=K("iconSize");const o=i.append("g");o.append("rect").attr("id","node-"+r.id).attr("fill-opacity","0").attr("width",n).attr("height",n);i.attr("class","architecture-junction");const{width:a,height:s}=i._groups[0][0].getBBox();i.width=a;i.height=s;t.setElementForId(r.id,i)}))}),"drawJunctions");(0,i.pC)([{name:rt.prefix,icons:rt}]);d.A.use(g());function st(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:K("iconSize"),height:K("iconSize")},classes:"node-service"})}))}(0,l.K2)(st,"addServices");function ht(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:K("iconSize"),height:K("iconSize")},classes:"node-junction"})}))}(0,l.K2)(ht,"addJunctions");function lt(t,e){e.nodes().map((e=>{const r=R(e);if(r.type==="group"){return}r.x=e.position().x;r.y=e.position().y;const i=t.getElementById(r.id);i.attr("transform","translate("+(r.x||0)+","+(r.y||0)+")")}))}(0,l.K2)(lt,"positionNodes");function ct(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})}))}(0,l.K2)(ct,"addGroups");function dt(t,e){t.forEach((t=>{const{lhsId:r,rhsId:i,lhsInto:n,lhsGroup:o,rhsInto:a,lhsDir:s,rhsDir:h,rhsGroup:l,title:c}=t;const d=A(t.lhsDir,t.rhsDir)?"segments":"straight";const f={id:`${r}-${i}`,label:c,source:r,sourceDir:s,sourceArrow:n,sourceGroup:o,sourceEndpoint:s==="L"?"0 50%":s==="R"?"100% 50%":s==="T"?"50% 0":"50% 100%",target:i,targetDir:h,targetArrow:a,targetGroup:l,targetEndpoint:h==="L"?"0 50%":h==="R"?"100% 50%":h==="T"?"50% 0":"50% 100%"};e.add({group:"edges",data:f,classes:d})}))}(0,l.K2)(dt,"addEdges");function ft(t,e,r){const i=(0,l.K2)(((t,e)=>Object.entries(t).reduce(((t,[i,n])=>{let o=0;const a=Object.entries(n);if(a.length===1){t[i]=a[0][1];return t}for(let s=0;s{const r={};const n={};Object.entries(e).forEach((([e,[i,o]])=>{const a=t.getNode(e)?.in??"default";r[o]??={};r[o][a]??=[];r[o][a].push(e);n[i]??={};n[i][a]??=[];n[i][a].push(e)}));return{horiz:Object.values(i(r,"horizontal")).filter((t=>t.length>1)),vert:Object.values(i(n,"vertical")).filter((t=>t.length>1))}}));const[o,a]=n.reduce((([t,e],{horiz:r,vert:i})=>[[...t,...r],[...e,...i]]),[[],[]]);return{horizontal:o,vertical:a}}(0,l.K2)(ft,"getAlignments");function gt(t){const e=[];const r=(0,l.K2)((t=>`${t[0]},${t[1]}`),"posToStr");const i=(0,l.K2)((t=>t.split(",").map((t=>parseInt(t)))),"strToPos");t.forEach((t=>{const n=Object.fromEntries(Object.entries(t).map((([t,e])=>[r(e),t])));const o=[r([0,0])];const a={};const s={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(o.length>0){const t=o.shift();if(t){a[t]=1;const h=n[t];if(h){const l=i(t);Object.entries(s).forEach((([t,i])=>{const s=r([l[0]+i[0],l[1]+i[1]]);const c=n[s];if(c&&!a[s]){o.push(s);e.push({[p[t]]:c,[p[m(t)]]:h,gap:1.5*K("iconSize")})}}))}}}}));return e}(0,l.K2)(gt,"getRelativeConstraints");function ut(t,e,r,i,n,{spatialMaps:o,groupAlignments:a}){return new Promise((s=>{const h=(0,u.Ltv)("body").append("div").attr("id","cy").attr("style","display:none");const c=(0,d.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${K("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${K("padding")}px`}}]});h.remove();ct(r,c);st(t,c);ht(e,c);dt(i,c);const f=ft(n,o,a);const g=gt(o);const p=c.layout({name:"fcose",quality:"proof",styleEnabled:false,animate:false,nodeDimensionsIncludeLabels:false,idealEdgeLength(t){const[e,r]=t.connectedNodes();const{parent:i}=R(e);const{parent:n}=R(r);const o=i===n?1.5*K("iconSize"):.5*K("iconSize");return o},edgeElasticity(t){const[e,r]=t.connectedNodes();const{parent:i}=R(e);const{parent:n}=R(r);const o=i===n?.45:.001;return o},alignmentConstraint:f,relativePlacementConstraint:g});p.one("layoutstop",(()=>{function t(t,e,r,i){let n,o;const{x:a,y:s}=t;const{x:h,y:l}=e;o=(i-s+(a-r)*(s-l)/(a-h))/Math.sqrt(1+Math.pow((s-l)/(a-h),2));n=Math.sqrt(Math.pow(i-s,2)+Math.pow(r-a,2)-Math.pow(o,2));const c=Math.sqrt(Math.pow(h-a,2)+Math.pow(l-s,2));n=n/c;let d=(h-a)*(i-s)-(l-s)*(r-a);switch(true){case d>=0:d=1;break;case d<0:d=-1;break}let f=(h-a)*(r-a)+(l-s)*(i-s);switch(true){case f>=0:f=1;break;case f<0:f=-1;break}o=Math.abs(o)*d;n=n*f;return{distances:o,weights:n}}(0,l.K2)(t,"getSegmentWeights");c.startBatch();for(const e of Object.values(c.edges())){if(e.data?.()){const{x:r,y:i}=e.source().position();const{x:n,y:o}=e.target().position();if(r!==n&&i!==o){const r=e.sourceEndpoint();const i=e.targetEndpoint();const{sourceDir:n}=D(e);const[o,a]=T(n)?[r.x,i.y]:[i.x,r.y];const{weights:s,distances:h}=t(r,i,o,a);e.style("segment-distances",h);e.style("segment-weights",s)}}}c.endBatch();p.run()}));p.run();c.ready((t=>{l.Rm.info("Ready",t);s(c)}))}))}(0,l.K2)(ut,"layoutArchitecture");var pt=(0,l.K2)((async(t,e,r,i)=>{const n=i.db;const o=n.getServices();const a=n.getJunctions();const s=n.getGroups();const c=n.getEdges();const d=n.getDataStructures();const f=(0,h.D)(e);const g=f.append("g");g.attr("class","architecture-edges");const u=f.append("g");u.attr("class","architecture-services");const p=f.append("g");p.attr("class","architecture-groups");await ot(n,u,o);at(n,u,a);const v=await ut(o,a,s,c,n,d);await it(g,v);await nt(p,v);lt(n,v);(0,l.ot)(void 0,f,K("padding"),K("useMaxWidth"))}),"draw");var vt={draw:pt};var yt={parser:Q,db:$,renderer:vt,styles:tt}},19163:(t,e,r)=>{"use strict";r.d(e,{S:()=>n});var i=r(75905);function n(t,e){if(t.accDescr){e.setAccDescription?.(t.accDescr)}if(t.accTitle){e.setAccTitle?.(t.accTitle)}if(t.title){e.setDiagramTitle?.(t.title)}}(0,i.K2)(n,"populateCommonDb")},13249:(t,e,r)=>{"use strict";r.d(e,{m:()=>n});var i=r(75905);var n=class{constructor(t){this.init=t;this.records=this.init()}static{(0,i.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7756.93d0ab41829355a147ab.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7756.93d0ab41829355a147ab.js new file mode 100644 index 0000000000000000000000000000000000000000..3b15b683ee02081c657d3eb54389fda0c98f49c8 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7756.93d0ab41829355a147ab.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7756],{7756:(e,t,r)=>{r.r(t);r.d(t,{tiddlyWiki:()=>y});var n={};var i={allTags:true,closeAll:true,list:true,newJournal:true,newTiddler:true,permaview:true,saveChanges:true,search:true,slider:true,tabs:true,tag:true,tagging:true,tags:true,tiddler:true,timeline:true,today:true,version:true,option:true,with:true,filter:true};var u=/[\w_\-]/i,a=/^\-\-\-\-+$/,f=/^\/\*\*\*$/,l=/^\*\*\*\/$/,o=/^<<<$/,c=/^\/\/\{\{\{$/,m=/^\/\/\}\}\}$/,s=/^$/,h=/^$/,k=/^\{\{\{$/,p=/^\}\}\}$/,b=/.*?\}\}\}/;function d(e,t,r){t.tokenize=r;return r(e,t)}function w(e,t){var r=e.sol(),i=e.peek();t.block=false;if(r&&/[<\/\*{}\-]/.test(i)){if(e.match(k)){t.block=true;return d(e,t,$)}if(e.match(o))return"quote";if(e.match(f)||e.match(l))return"comment";if(e.match(c)||e.match(m)||e.match(s)||e.match(h))return"comment";if(e.match(a))return"contentSeparator"}e.next();if(r&&/[\/\*!#;:>|]/.test(i)){if(i=="!"){e.skipToEnd();return"header"}if(i=="*"){e.eatWhile("*");return"comment"}if(i=="#"){e.eatWhile("#");return"comment"}if(i==";"){e.eatWhile(";");return"comment"}if(i==":"){e.eatWhile(":");return"comment"}if(i==">"){e.eatWhile(">");return"quote"}if(i=="|")return"header"}if(i=="{"&&e.match("{{"))return d(e,t,$);if(/[hf]/i.test(i)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(i=='"')return"string";if(i=="~")return"brace";if(/[\[\]]/.test(i)&&e.match(i))return"brace";if(i=="@"){e.eatWhile(u);return"link"}if(/\d/.test(i)){e.eatWhile(/\d/);return"number"}if(i=="/"){if(e.eat("%")){return d(e,t,v)}else if(e.eat("/")){return d(e,t,z)}}if(i=="_"&&e.eat("_"))return d(e,t,W);if(i=="-"&&e.eat("-")){if(e.peek()!=" ")return d(e,t,g);if(e.peek()==" ")return"brace"}if(i=="'"&&e.eat("'"))return d(e,t,_);if(i=="<"&&e.eat("<"))return d(e,t,x);e.eatWhile(/[\w\$_]/);return n.propertyIsEnumerable(e.current())?"keyword":null}function v(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=w;break}r=n=="%"}return"comment"}function _(e,t){var r=false,n;while(n=e.next()){if(n=="'"&&r){t.tokenize=w;break}r=n=="'"}return"strong"}function $(e,t){var r=t.block;if(r&&e.current()){return"comment"}if(!r&&e.match(b)){t.tokenize=w;return"comment"}if(r&&e.sol()&&e.match(p)){t.tokenize=w;return"comment"}e.next();return"comment"}function z(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=w;break}r=n=="/"}return"emphasis"}function W(e,t){var r=false,n;while(n=e.next()){if(n=="_"&&r){t.tokenize=w;break}r=n=="_"}return"link"}function g(e,t){var r=false,n;while(n=e.next()){if(n=="-"&&r){t.tokenize=w;break}r=n=="-"}return"deleted"}function x(e,t){if(e.current()=="<<"){return"meta"}var r=e.next();if(!r){t.tokenize=w;return null}if(r==">"){if(e.peek()==">"){e.next();t.tokenize=w;return"meta"}}e.eatWhile(/[\w\$_]/);return i.propertyIsEnumerable(e.current())?"keyword":null}const y={name:"tiddlywiki",startState:function(){return{tokenize:w}},token:function(e,t){if(e.eatSpace())return null;var r=t.tokenize(e,t);return r}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7856.dd9523e57bed80f1f694.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7856.dd9523e57bed80f1f694.js new file mode 100644 index 0000000000000000000000000000000000000000..30f814c5dfb48086975082fbd34c6a26fa84b68f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7856.dd9523e57bed80f1f694.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7856,5606],{97856:(e,t,i)=>{var s=i(65606);!function(t,i){if(true)e.exports=i();else{var s,r}}(globalThis,(()=>(()=>{"use strict";var e={4567:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const n=i(9042),o=i(9924),a=i(844),h=i(4725),c=i(2585),l=i(3656);let d=t.AccessibilityManager=class extends a.Disposable{constructor(e,t,i,s){super(),this._terminal=e,this._coreBrowserService=i,this._renderService=s,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let r=0;rthis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new o.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((e=>this._handleResize(e.rows)))),this.register(this._terminal.onRender((e=>this._refreshRows(e.start,e.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((e=>this._handleChar(e)))),this.register(this._terminal.onLineFeed((()=>this._handleChar("\n")))),this.register(this._terminal.onA11yTab((e=>this._handleTab(e)))),this.register(this._terminal.onKey((e=>this._handleKey(e.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,l.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,a.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const i=this._terminal.buffer,s=i.lines.length.toString();for(let r=e;r<=t;r++){const e=i.lines.get(i.ydisp+r),t=[],n=e?.translateToString(!0,void 0,void 0,t)||"",o=(i.ydisp+r+1).toString(),a=this._rowElements[r];a&&(0===n.length?(a.innerText=" ",this._rowColumns.set(a,[0,1])):(a.textContent=n,this._rowColumns.set(a,t)),a.setAttribute("aria-posinset",o),a.setAttribute("aria-setsize",s))}this._announceCharacters()}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const i=e.target,s=this._rowElements[0===t?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")===(0===t?"1":`${this._terminal.buffer.lines.length}`))return;if(e.relatedTarget!==s)return;let r,n;if(0===t?(r=i,n=this._rowElements.pop(),this._rowContainer.removeChild(n)):(r=this._rowElements.shift(),n=i,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),n.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){const e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{const e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(0===this._rowElements.length)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let t={node:e.anchorNode,offset:e.anchorOffset},i={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(i.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===i.node&&t.offset>i.offset)&&([t,i]=[i,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;const s=this._rowElements.slice(-1)[0];if(i.node.compareDocumentPosition(s)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(i={node:s,offset:s.textContent?.length??0}),!this._rowContainer.contains(i.node))return;const r=({node:e,offset:t})=>{const i=e instanceof Text?e.parentNode:e;let s=parseInt(i?.getAttribute("aria-posinset"),10)-1;if(isNaN(s))return console.warn("row is invalid. Race condition?"),null;const r=this._rowColumns.get(i);if(!r)return console.warn("columns is null. Race condition?"),null;let n=t=this._terminal.cols&&(++s,n=0),{row:s,column:n}},n=r(t),o=r(i);if(n&&o){if(n.row>o.row||n.row===o.row&&n.column>=o.column)throw new Error("invalid range");this._terminal.select(n.column,n.row,(o.row-n.row)*this._terminal.cols-n.column+o.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;te;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function i(e){return e.replace(/\r?\n/g,"\r")}function s(e,t){return t?"[200~"+e+"[201~":e}function r(e,t,r,n){e=s(e=i(e),r.decPrivateModes.bracketedPasteMode&&!0!==n.rawOptions.ignoreBracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function n(e,t,i){const s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=s,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,s){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,i,s)},t.paste=r,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(e,t,i,s,r){n(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},3551:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier=void 0;const n=i(3656),o=i(8460),a=i(844),h=i(2585),c=i(4725);let l=t.Linkifier=class extends a.Disposable{get currentLink(){return this._currentLink}constructor(e,t,i,s,r){super(),this._element=e,this._mouseService=t,this._renderService=i,this._bufferService=s,this._linkProviderService=r,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new o.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)((()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){this._lastMouseEvent=e;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;const i=e.composedPath();for(let s=0;s{e?.forEach((e=>{e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);let i=!1;for(const[s,r]of this._linkProviderService.linkProviders.entries())if(t){const t=this._activeProviderReplies?.get(s);t&&(i=this._checkLinkProviderResult(s,e,i))}else r.provideLinks(e.y,(t=>{if(this._isMouseOut)return;const r=t?.map((e=>({link:e})));this._activeProviderReplies?.set(s,r),i=this._checkLinkProviderResult(s,e,i),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)}))}_removeIntersectingLinks(e,t){const i=new Set;for(let s=0;se?this._bufferService.cols:s.link.range.end.x;for(let e=n;e<=o;e++){if(i.has(e)){r.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){if(!this._activeProviderReplies)return i;const s=this._activeProviderReplies.get(e);let r=!1;for(let n=0;nthis._linkAtPosition(e.link,t)));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!i)for(let n=0;nthis._linkAtPosition(e.link,t)));if(e){i=!0,this._handleNewLink(e);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._lastMouseEvent)return;const t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:e=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",e))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:t=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((e=>{if(!this._currentLink)return;const t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(t,i),this._lastMouseEvent)){const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}}))))}_linkHover(e,t,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){const i=e.range,s=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-s-1,i.end.x,i.end.y-s-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=s}_positionFromMouseEvent(e,t,i){const s=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}};t.Linkifier=l=s([r(1,c.IMouseService),r(2,c.IRenderService),r(3,h.IBufferService),r(4,c.ILinkProviderService)],l)},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const n=i(511),o=i(2585);let a=t.OscLinkProvider=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){const i=this._bufferService.buffer.lines.get(e-1);if(!i)return void t(void 0);const s=[],r=this._optionsService.rawOptions.linkHandler,o=new n.CellData,a=i.getTrimmedLength();let c=-1,l=-1,d=!1;for(let n=0;nr?r.activate(e,t,i):h(0,t),hover:(e,t)=>r?.hover?.(e,t,i),leave:(e,t)=>r?.leave?.(e,t,i)})}d=!1,o.hasExtendedAttrs()&&o.extended.urlId?(l=n,c=o.extended.urlId):(l=-1,c=-1)}}t(s)}};function h(e,t){if(confirm(`Do you want to navigate to ${t}?\n\nWARNING: This link could potentially be dangerous`)){const e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}t.OscLinkProvider=a=s([r(0,o.IBufferService),r(1,o.IOptionsService),r(2,o.IOscLinkService)],a)},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const s=i(3614),r=i(3656),n=i(3551),o=i(9042),a=i(3730),h=i(1680),c=i(3107),l=i(5744),d=i(2950),_=i(1296),u=i(428),f=i(4269),v=i(5114),p=i(8934),g=i(3230),m=i(9312),S=i(4725),C=i(6731),b=i(8055),w=i(8969),y=i(8460),E=i(844),k=i(6114),L=i(8437),D=i(2584),R=i(7399),x=i(5941),A=i(9074),B=i(2585),T=i(5435),M=i(4567),O=i(779);class P extends w.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(e={}){super(e),this.browser=k,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new E.MutableDisposable),this._onCursorMove=this.register(new y.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new y.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new y.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new y.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new y.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new y.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new y.EventEmitter),this._onBlur=this.register(new y.EventEmitter),this._onA11yCharEmitter=this.register(new y.EventEmitter),this._onA11yTabEmitter=this.register(new y.EventEmitter),this._onWillOpen=this.register(new y.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(A.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(O.LinkProviderService),this._instantiationService.setService(S.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(a.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((e,t)=>this.refresh(e,t)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((e=>this._reportWindowsOptions(e)))),this.register(this._inputHandler.onColor((e=>this._handleColorEvent(e)))),this.register((0,y.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,y.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,y.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,y.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((e=>this._afterResize(e.cols,e.rows)))),this.register((0,E.toDisposable)((()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)})))}_handleColorEvent(e){if(this._themeService)for(const t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:const s=b.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${D.C0.ESC}]${i};${(0,x.toRgbString)(s)}${D.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors((e=>e.ansi[t.index]=b.channels.toColor(...t.color)));else{const i=e;this._themeService.modifyColors((e=>e[i]=b.channels.toColor(...t.color)))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(D.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(D.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;const i=Math.min(this.buffer.x,this.cols-1),s=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*r,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=s+"px",this.textarea.style.lineHeight=s+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,r.addDisposableDomListener)(this.element,"copy",(e=>{this.hasSelection()&&(0,s.copyHandler)(e,this._selectionService)})));const e=e=>(0,s.handlePasteEvent)(e,this.textarea,this.coreService,this.optionsService);this.register((0,r.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,r.addDisposableDomListener)(this.element,"paste",e)),k.isFirefox?this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>{2===e.button&&(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,r.addDisposableDomListener)(this.element,"contextmenu",(e=>{(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),k.isLinux&&this.register((0,r.addDisposableDomListener)(this.element,"auxclick",(e=>{1===e.button&&(0,s.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,r.addDisposableDomListener)(this.textarea,"keyup",(e=>this._keyUp(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keydown",(e=>this._keyDown(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keypress",(e=>this._keyPress(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionupdate",(e=>this._compositionHelper.compositionupdate(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,r.addDisposableDomListener)(this.textarea,"input",(e=>this._inputEvent(e)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(e){if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this.element?.ownerDocument.defaultView&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);const t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,r.addDisposableDomListener)(this.screenElement,"mousemove",(e=>this.updateCursorStyle(e)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.promptLabel),k.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(v.CoreBrowserService,this.textarea,e.ownerDocument.defaultView??window,this._document??"undefined"!=typeof window?window.document:null)),this._instantiationService.setService(S.ICoreBrowserService,this._coreBrowserService),this.register((0,r.addDisposableDomListener)(this.textarea,"focus",(e=>this._handleTextAreaFocus(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(u.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(C.ThemeService),this._instantiationService.setService(S.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(f.CharacterJoinerService),this._instantiationService.setService(S.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(g.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((e=>this._onRender.fire(e)))),this.onResize((e=>this._renderService.resize(e.cols,e.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(d.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(p.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(n.Linkifier,this.screenElement)),this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(h.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(m.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,r.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(c.BufferDecorationRenderer,this.screenElement)),this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>this._selectionService.handleMouseDown(e)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(e=>this._handleScreenReaderModeOptionChange(e)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(_.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const e=this,t=this.element;function i(t){const i=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!i)return!1;let s,r;switch(t.overrideType||t.type){case"mousemove":r=32,void 0===t.buttons?(s=3,void 0!==t.button&&(s=t.button<3?t.button:3)):s=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":r=0,s=t.button<3?t.button:3;break;case"mousedown":r=1,s=t.button<3?t.button:3;break;case"wheel":if(e._customWheelEventHandler&&!1===e._customWheelEventHandler(t))return!1;if(0===e.viewport.getLinesScrolled(t))return!1;r=t.deltaY<0?0:1,s=4;break;default:return!1}return!(void 0===r||void 0===s||s>4)&&e.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:s,action:r,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}const s={mouseup:null,wheel:null,mousedrag:null,mousemove:null},n={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.removeEventListener("mousemove",s.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange((e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?s.mousemove||(t.addEventListener("mousemove",n.mousemove),s.mousemove=n.mousemove):(t.removeEventListener("mousemove",s.mousemove),s.mousemove=null),16&e?s.wheel||(t.addEventListener("wheel",n.wheel,{passive:!1}),s.wheel=n.wheel):(t.removeEventListener("wheel",s.wheel),s.wheel=null),2&e?s.mouseup||(s.mouseup=n.mouseup):(this._document.removeEventListener("mouseup",s.mouseup),s.mouseup=null),4&e?s.mousedrag||(s.mousedrag=n.mousedrag):(this._document.removeEventListener("mousemove",s.mousedrag),s.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,r.addDisposableDomListener)(t,"mousedown",(e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),s.mouseup&&this._document.addEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.addEventListener("mousemove",s.mousedrag),this.cancel(e)}))),this.register((0,r.addDisposableDomListener)(t,"wheel",(e=>{if(!s.wheel){if(this._customWheelEventHandler&&!1===this._customWheelEventHandler(e))return!1;if(!this.buffer.hasScrollback){const t=this.viewport.getLinesScrolled(e);if(0===t)return;const i=D.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let s="";for(let e=0;e{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)}),{passive:!0})),this.register((0,r.addDisposableDomListener)(t,"touchmove",(e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)}),{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){1===i?(super.scrollLines(e,t,i),this.refresh(0,this.rows-1)):this.viewport?.scrollLines(e)}paste(e){(0,s.paste)(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);const i=(0,R.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==D.C0.ETX&&i.key!==D.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){const i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){this._charSizeService?.measure(),this.viewport?.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;const s=Date.now();if(s-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=s,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=s-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(3656),o=i(4725),a=i(8460),h=i(844),c=i(2585);let l=t.Viewport=class extends h.Disposable{constructor(e,t,i,s,r,o,h,c){super(),this._viewportElement=e,this._scrollArea=t,this._bufferService=i,this._optionsService=s,this._charSizeService=r,this._renderService=o,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new a.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((e=>this._renderDimensions=e))),this._handleThemeChange(c.colors),this.register(c.onChangeColors((e=>this._handleThemeChange(e)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){const i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&i0&&(i=e),s=""}}return{bufferElements:r,cursorElement:i}}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){const i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){const t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};t.Viewport=l=s([r(2,c.IBufferService),r(3,c.IOptionsService),r(4,o.ICharSizeService),r(5,o.IRenderService),r(6,o.ICoreBrowserService),r(7,o.IThemeService)],l)},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(4725),o=i(844),a=i(2585);let h=t.BufferDecorationRenderer=class extends o.Disposable{constructor(e,t,i,s,r){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=i,this._decorationService=s,this._renderService=r,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((e=>this._removeDecoration(e)))),this.register((0,o.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){const t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer","top"===e?.options?.layer),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",t.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const i=e.options.x??0;return i&&i>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){const t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose((()=>{this._decorationElements.delete(e),i.remove()}))),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){if(!t)return;const i=e.options.x??0;"right"===(e.options.anchor||"left")?t.style.right=i?i*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=i?i*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};t.BufferDecorationRenderer=h=s([r(1,a.IBufferService),r(2,n.ICoreBrowserService),r(3,a.IDecorationService),r(4,n.IRenderService)],h)},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const n=i(5871),o=i(4725),a=i(844),h=i(2585),c={full:0,left:0,center:0,right:0},l={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0};let _=t.OverviewRulerRenderer=class extends a.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(e,t,i,s,r,o,h){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=o,this._coreBrowserService=h,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement);const c=this._canvas.getContext("2d");if(!c)throw new Error("Ctx cannot be null");this._ctx=c,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,a.toDisposable)((()=>{this._canvas?.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);l.full=this._canvas.width,l.left=e,l.center=t,l.right=e,this._refreshDrawHeightConstants(),d.full=0,d.left=0,d.center=l.left,d.right=l.left+l.center}_refreshDrawHeightConstants(){c.full=Math.round(2*this._coreBrowserService.dpr);const e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);c.left=t,c.center=t,c.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(d[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-c[e.position||"full"]/2),l[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+c[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};t.OverviewRulerRenderer=_=s([r(2,h.IBufferService),r(3,h.IDecorationService),r(4,o.IRenderService),r(5,h.IOptionsService),r(6,o.ICoreBrowserService)],_)},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);let h=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}}),0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const e=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0)),0)}}};t.CompositionHelper=h=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],h)},9806:(e,t)=>{function i(e,t,i){const s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,s,r,n,o,a,h,c){if(!o)return;const l=i(e,t,s);return l?(l[0]=Math.ceil((l[0]+(c?a/2:0))/a),l[1]=Math.ceil(l[1]/h),l[0]=Math.min(Math.max(l[0],1),r+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),n),l):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const s=i(2584);function r(e,t,i,s){const r=e-n(e,i),a=t-n(t,i),l=Math.abs(r-a)-function(e,t,i){let s=0;const r=e-n(e,i),a=t-n(t,i);for(let n=0;n=0&&et?"A":"B"}function a(e,t,i,s,r,n){let o=e,a=t,h="";for(;o!==i||a!==s;)o+=r?1:-1,r&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),o=n.cols-1,e=o,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function h(e,t){const i=t?"O":"[";return s.C0.ESC+i+e}function c(e,t){e=Math.floor(e);let i="";for(let s=0;s0?s-n(s,o):t;const _=s,u=function(e,t,i,s,o,a){let h;return h=r(i,s,o,a).length>0?s-n(s,o):t,e=i&&he?"D":"C",c(Math.abs(o-e),h(d,s));d=l>t?"D":"C";const _=Math.abs(l-t);return c(function(e,t){return t.cols-e}(l>t?e:o,i)+(_-1)*i.cols+1+((l>t?o:e)-1),h(d,s))}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const n=i(3787),o=i(2550),a=i(2223),h=i(6171),c=i(6052),l=i(4725),d=i(8055),_=i(8460),u=i(844),f=i(2585),v="xterm-dom-renderer-owner-",p="xterm-rows",g="xterm-fg-",m="xterm-bg-",S="xterm-focus",C="xterm-selection";let b=1,w=t.DomRenderer=class extends u.Disposable{constructor(e,t,i,s,r,a,l,d,f,g,m,S,w){super(),this._terminal=e,this._document=t,this._element=i,this._screenElement=s,this._viewportElement=r,this._helperContainer=a,this._linkifier2=l,this._charSizeService=f,this._optionsService=g,this._bufferService=m,this._coreBrowserService=S,this._themeService=w,this._terminalClass=b++,this._rowElements=[],this._selectionRenderModel=(0,c.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new _.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(p),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(C),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,h.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((e=>this._injectCss(e)))),this._injectCss(this._themeService.colors),this._rowFactory=d.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(v+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((e=>this._handleLinkHover(e)))),this.register(this._linkifier2.onHideLinkUnderline((e=>this._handleLinkLeave(e)))),this.register((0,u.toDisposable)((()=>{this._element.classList.remove(v+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new o.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const i of this._rowElements)i.style.width=`${this.dimensions.css.canvas.width}px`,i.style.height=`${this.dimensions.css.cell.height}px`,i.style.lineHeight=`${this.dimensions.css.cell.height}px`,i.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const t=`${this._terminalSelector} .${p} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${p} { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${p} .xterm-dim { color: ${d.color.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const i=`blink_underline_${this._terminalClass}`,s=`blink_bar_${this._terminalClass}`,r=`blink_block_${this._terminalClass}`;t+=`@keyframes ${i} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${s} { 50% { box-shadow: none; }}`,t+=`@keyframes ${r} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${p}.${S} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${p}.${S} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${s} 1s step-end infinite;}${this._terminalSelector} .${p}.${S} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${p} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${p} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${p} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${p} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${p} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${C} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${C} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${C} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(const[n,o]of e.ansi.entries())t+=`${this._terminalSelector} .${g}${n} { color: ${o.css}; }${this._terminalSelector} .${g}${n}.xterm-dim { color: ${d.color.multiplyOpacity(o,.5).css}; }${this._terminalSelector} .${m}${n} { background-color: ${o.css}; }`;t+=`${this._terminalSelector} .${g}${a.INVERTED_DEFAULT_COLOR} { color: ${d.color.opaque(e.background).css}; }${this._terminalSelector} .${g}${a.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${d.color.multiplyOpacity(d.color.opaque(e.background),.5).css}; }${this._terminalSelector} .${m}${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){const e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let i=this._rowElements.length;i<=t;i++){const e=this._document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(S),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(S),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;this._selectionRenderModel.update(this._terminal,e,t,i);const s=this._selectionRenderModel.viewportStartRow,r=this._selectionRenderModel.viewportEndRow,n=this._selectionRenderModel.viewportCappedStartRow,o=this._selectionRenderModel.viewportCappedEndRow;if(n>=this._bufferService.rows||o<0)return;const a=this._document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,i?t[0]:e[0],i?e[0]:t[0],o-n+1))}else{const i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(n,i,h));const c=o-n-1;if(a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,c)),n!==o){const e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,s=1){const r=this._document.createElement("div"),n=t*this.dimensions.css.cell.width;let o=this.dimensions.css.cell.width*(i-t);return n+o>this.dimensions.css.canvas.width&&(o=this.dimensions.css.canvas.width-n),r.style.height=s*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=`${n}px`,r.style.width=`${o}px`,r}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const e of this._rowElements)e.replaceChildren()}renderRows(e,t){const i=this._bufferService.buffer,s=i.ybase+i.y,r=Math.min(i.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink,o=this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let h=e;h<=t;h++){const e=h+i.ydisp,t=this._rowElements[h],c=i.lines.get(e);if(!t||!c)break;t.replaceChildren(...this._rowFactory.createRow(c,e,e===s,o,a,r,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${v}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){i<0&&(e=0),s<0&&(t=0);const o=this._bufferService.rows-1;i=Math.max(Math.min(i,o),0),s=Math.max(Math.min(s,o),0),r=Math.min(r,this._bufferService.cols);const a=this._bufferService.buffer,h=a.ybase+a.y,c=Math.min(a.x,r-1),l=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,_=this._optionsService.rawOptions.cursorInactiveStyle;for(let u=i;u<=s;++u){const o=u+a.ydisp,f=this._rowElements[u],v=a.lines.get(o);if(!f||!v)break;f.replaceChildren(...this._rowFactory.createRow(v,o,o===h,d,_,c,l,this.dimensions.css.cell.width,this._widthCache,n?u===i?e:0:-1,n?(u===s?t:r)-1:-1))}}};t.DomRenderer=w=s([r(7,f.IInstantiationService),r(8,l.ICharSizeService),r(9,f.IOptionsService),r(10,f.IBufferService),r(11,l.ICoreBrowserService),r(12,l.IThemeService)],w)},3787:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;const n=i(2223),o=i(643),a=i(511),h=i(2585),c=i(8055),l=i(4725),d=i(4269),_=i(6171),u=i(3734);let f=t.DomRendererRowFactory=class{constructor(e,t,i,s,r,n,o){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=s,this._coreService=r,this._decorationService=n,this._themeService=o,this._workCell=new a.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,s,r,a,h,l,_,f,p){const g=[],m=this._characterJoinerService.getJoinedCharacters(t),S=this._themeService.colors;let C,b=e.getNoBgTrimmedLength();i&&b0&&M===m[0][0]){O=!0;const t=m.shift();I=new d.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),P=t[1]-1,b=I.getWidth()}const H=this._isCellInSelection(M,t),F=i&&M===a,W=T&&M>=f&&M<=p;let U=!1;this._decorationService.forEachDecorationAtCell(M,t,void 0,(e=>{U=!0}));let N=I.getChars()||o.WHITESPACE_CELL_CHAR;if(" "===N&&(I.isUnderline()||I.isOverline())&&(N=" "),A=b*l-_.get(N,I.isBold(),I.isItalic()),C){if(w&&(H&&x||!H&&!x&&I.bg===E)&&(H&&x&&S.selectionForeground||I.fg===k)&&I.extended.ext===L&&W===D&&A===R&&!F&&!O&&!U){I.isInvisible()?y+=o.WHITESPACE_CELL_CHAR:y+=N,w++;continue}w&&(C.textContent=y),C=this._document.createElement("span"),w=0,y=""}else C=this._document.createElement("span");if(E=I.bg,k=I.fg,L=I.extended.ext,D=W,R=A,x=H,O&&a>=M&&a<=P&&(a=M),!this._coreService.isCursorHidden&&F&&this._coreService.isCursorInitialized)if(B.push("xterm-cursor"),this._coreBrowserService.isFocused)h&&B.push("xterm-cursor-blink"),B.push("bar"===s?"xterm-cursor-bar":"underline"===s?"xterm-cursor-underline":"xterm-cursor-block");else if(r)switch(r){case"outline":B.push("xterm-cursor-outline");break;case"block":B.push("xterm-cursor-block");break;case"bar":B.push("xterm-cursor-bar");break;case"underline":B.push("xterm-cursor-underline")}if(I.isBold()&&B.push("xterm-bold"),I.isItalic()&&B.push("xterm-italic"),I.isDim()&&B.push("xterm-dim"),y=I.isInvisible()?o.WHITESPACE_CELL_CHAR:I.getChars()||o.WHITESPACE_CELL_CHAR,I.isUnderline()&&(B.push(`xterm-underline-${I.extended.underlineStyle}`)," "===y&&(y=" "),!I.isUnderlineColorDefault()))if(I.isUnderlineColorRGB())C.style.textDecorationColor=`rgb(${u.AttributeData.toColorRGB(I.getUnderlineColor()).join(",")})`;else{let e=I.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&I.isBold()&&e<8&&(e+=8),C.style.textDecorationColor=S.ansi[e].css}I.isOverline()&&(B.push("xterm-overline")," "===y&&(y=" ")),I.isStrikethrough()&&B.push("xterm-strikethrough"),W&&(C.style.textDecoration="underline");let $=I.getFgColor(),j=I.getFgColorMode(),z=I.getBgColor(),K=I.getBgColorMode();const q=!!I.isInverse();if(q){const e=$;$=z,z=e;const t=j;j=K,K=t}let V,G,X,J=!1;switch(this._decorationService.forEachDecorationAtCell(M,t,void 0,(e=>{"top"!==e.options.layer&&J||(e.backgroundColorRGB&&(K=50331648,z=e.backgroundColorRGB.rgba>>8&16777215,V=e.backgroundColorRGB),e.foregroundColorRGB&&(j=50331648,$=e.foregroundColorRGB.rgba>>8&16777215,G=e.foregroundColorRGB),J="top"===e.options.layer)})),!J&&H&&(V=this._coreBrowserService.isFocused?S.selectionBackgroundOpaque:S.selectionInactiveBackgroundOpaque,z=V.rgba>>8&16777215,K=50331648,J=!0,S.selectionForeground&&(j=50331648,$=S.selectionForeground.rgba>>8&16777215,G=S.selectionForeground)),J&&B.push("xterm-decoration-top"),K){case 16777216:case 33554432:X=S.ansi[z],B.push(`xterm-bg-${z}`);break;case 50331648:X=c.channels.toColor(z>>16,z>>8&255,255&z),this._addStyle(C,`background-color:#${v((z>>>0).toString(16),"0",6)}`);break;default:q?(X=S.foreground,B.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):X=S.background}switch(V||I.isDim()&&(V=c.color.multiplyOpacity(X,.5)),j){case 16777216:case 33554432:I.isBold()&&$<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&($+=8),this._applyMinimumContrast(C,X,S.ansi[$],I,V,void 0)||B.push(`xterm-fg-${$}`);break;case 50331648:const e=c.channels.toColor($>>16&255,$>>8&255,255&$);this._applyMinimumContrast(C,X,e,I,V,G)||this._addStyle(C,`color:#${v($.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(C,X,S.foreground,I,V,G)||q&&B.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}B.length&&(C.className=B.join(" "),B.length=0),F||O||U?C.textContent=y:w++,A!==this.defaultSpacing&&(C.style.letterSpacing=`${A}px`),g.push(C),M=P}return C&&w&&(C.textContent=y),g}_applyMinimumContrast(e,t,i,s,r,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,_.treatGlyphAsBackgroundColor)(s.getCode()))return!1;const o=this._getContrastCache(s);let a;if(r||n||(a=o.getColor(t.rgba,i.rgba)),void 0===a){const e=this._optionsService.rawOptions.minimumContrastRatio/(s.isDim()?2:1);a=c.color.ensureContrastRatio(r||t,n||i,e),o.setColor((r||t).rgba,(n||i).rgba,a??null)}return!!a&&(this._addStyle(e,`color:${a.css}`),!0)}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){const i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t=i[0]&&e=i[0])}};function v(e,t,i){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const i=e.createElement("span");i.classList.add("xterm-char-measure-element");const s=e.createElement("span");s.classList.add("xterm-char-measure-element"),s.style.fontWeight="bold";const r=e.createElement("span");r.classList.add("xterm-char-measure-element"),r.style.fontStyle="italic";const n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold",n.style.fontStyle="italic",this._measureElements=[i,s,r,n],this._container.appendChild(i),this._container.appendChild(s),this._container.appendChild(r),this._container.appendChild(n),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,s){e===this._font&&t===this._fontSize&&i===this._weight&&s===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=s,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${s}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${s}`,this.clear())}get(e,t,i){let s=0;if(!t&&!i&&1===e.length&&(s=e.charCodeAt(0))<256){if(-9999!==this._flat[s])return this._flat[s];const t=this._measure(e,0);return t>0&&(this._flat[s]=t),t}let r=e;t&&(r+="B"),i&&(r+="I");let n=this._holey.get(r);if(void 0===n){let s=0;t&&(s|=1),i&&(s|=2),n=this._measure(e,s),n>0&&this._holey.set(r,n)}return n}_measure(e,t){const i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}}},2223:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}function s(e){return e>=128512&&e<=128591||e>=127744&&e<=128511||e>=128640&&e<=128767||e>=9728&&e<=9983||e>=9984&&e<=10175||e>=65024&&e<=65039||e>=129280&&e<=129535||e>=127462&&e<=127487}Object.defineProperty(t,"__esModule",{value:!0}),t.computeNextVariantOffset=t.createRenderDimensions=t.treatGlyphAsBackgroundColor=t.allowRescaling=t.isEmoji=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.isEmoji=s,t.allowRescaling=function(e,t,r,n){return 1===t&&r>Math.ceil(1.5*n)&&void 0!==e&&e>255&&!s(e)&&!i(e)&&!function(e){return 57344<=e&&e<=63743}(e)},t.treatGlyphAsBackgroundColor=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},t.computeNextVariantOffset=function(e,t,i=0){return(e-(2*Math.round(t)-i))%(2*Math.round(t))}},6052:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class i{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,i,s=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1])return void this.clear();const r=e.buffers.active.ydisp,n=t[1]-r,o=i[1]-r,a=Math.max(n,0),h=Math.min(o,e.rows-1);a>=e.rows||h<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=s,this.viewportStartRow=n,this.viewportEndRow=o,this.viewportCappedStartRow=a,this.viewportCappedEndRow=h,this.startCol=t[0],this.endCol=i[0])}isCellSelected(e,t,i){return!!this.hasSelection&&(i-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&i>=this.viewportCappedStartRow&&t=this.viewportCappedStartRow&&t>=this.endCol&&i<=this.viewportCappedEndRow:i>this.viewportStartRow&&i=this.startCol&&t=this.startCol)}}t.createSelectionRenderModel=function(){return new i}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460),a=i(844);let h=t.CharSizeService=class extends a.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new o.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new d(this._optionsService))}catch{this._measureStrategy=this.register(new l(e,t,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};t.CharSizeService=h=s([r(2,n.IOptionsService)],h);class c extends a.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){void 0!==e&&e>0&&void 0!==t&&t>0&&(this._result.width=e,this._result.height=t)}}class l extends c{constructor(e,t,i){super(),this._document=e,this._parentElement=t,this._optionsService=i,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class d extends c{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}}},4269:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const n=i(3734),o=i(643),a=i(511),h=i(2585);class c extends n.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=c;let l=t.CharacterJoinerService=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;const s=i(844),r=i(8460),n=i(3656);class o extends s.Disposable{constructor(e,t,i){super(),this._textarea=e,this._window=t,this.mainDocument=i,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new a(this._window),this._onDprChange=this.register(new r.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new r.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((e=>this._screenDprMonitor.setWindow(e)))),this.register((0,r.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}t.CoreBrowserService=o;class a extends s.Disposable{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this.register(new s.MutableDisposable),this._onDprChange=this.register(new r.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,s.toDisposable)((()=>this.clearListener())))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,n.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkProviderService=void 0;const s=i(844);class r extends s.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,s.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{const t=this.linkProviders.indexOf(e);-1!==t&&this.linkProviders.splice(t,1)}}}}t.LinkProviderService=r},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);let a=t.MouseService=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){const i=(0,o.getCoordsRelativeToElement)(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};t.MouseService=a=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],a)},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const n=i(6193),o=i(4725),a=i(8460),h=i(844),c=i(7226),l=i(2585);let d=t.RenderService=class extends h.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(e,t,i,s,r,o,l,d){super(),this._rowCount=e,this._charSizeService=s,this._renderer=this.register(new h.MutableDisposable),this._pausedResizeTask=new c.DebouncedIdleTask,this._observerDisposable=this.register(new h.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new a.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new a.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new a.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new a.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new n.RenderDebouncer(((e,t)=>this._renderRows(e,t)),l),this.register(this._renderDebouncer),this.register(l.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(o.onResize((()=>this._fullRefresh()))),this.register(o.buffers.onBufferActivate((()=>this._renderer.value?.clear()))),this.register(i.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(r.onDecorationRegistered((()=>this._fullRefresh()))),this.register(r.onDecorationRemoved((()=>this._fullRefresh()))),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(o.cols,o.rows),this._fullRefresh()}))),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(o.buffer.y,o.buffer.y,!0)))),this.register(d.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(l.window,t),this.register(l.onWindowChange((e=>this._registerIntersectionObserver(e,t))))}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){const i=new e.IntersectionObserver((e=>this._handleIntersectionChange(e[e.length-1])),{threshold:0});i.observe(t),this._observerDisposable.value=(0,h.toDisposable)((()=>i.disconnect()))}}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.value&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw((e=>this.refreshRows(e.start,e.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>this._renderer.value?.handleResize(e,t))):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,i){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,this._renderer.value?.handleSelectionChanged(e,t,i)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};t.RenderService=d=s([r(2,l.IOptionsService),r(3,o.ICharSizeService),r(4,l.IDecorationService),r(5,l.IBufferService),r(6,o.ICoreBrowserService),r(7,o.IThemeService)],d)},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const n=i(9806),o=i(9504),a=i(456),h=i(4725),c=i(8460),l=i(844),d=i(6114),_=i(4841),u=i(511),f=i(2585),v=String.fromCharCode(160),p=new RegExp(v,"g");let g=t.SelectionService=class extends l.Disposable{constructor(e,t,i,s,r,n,o,h,d){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=o,this._renderService=h,this._coreBrowserService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new u.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new c.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new c.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new c.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new c.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((e=>this._handleTrim(e))),this.register(this._bufferService.buffers.onBufferActivate((e=>this._handleBufferActivate(e)))),this.enable(),this._model=new a.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,l.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";const i=this._bufferService.buffer,s=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";const r=e[0]e.replace(p," "))).join(d.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),d.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){const t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!!(i&&s&&t)&&this._areCoordsInSelection(t,i,s)}isCellInSelection(e,t){const i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){const i=this._linkifier.currentLink?.link?.range;if(i)return this._model.selectionStart=[i.start.x-1,i.start.y-1],this._model.selectionStartLength=(0,_.getRangeLength)(i,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const s=this._getMouseBufferCoords(e);return!!s&&(this._selectWordAt(s,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];const i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return d.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){const t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(d.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;const t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,o.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((e=>this._handleTrim(e)))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let s=0;t>=s;s++){const r=e.loadCell(s,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:r>1&&t!==s&&(i+=r-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,s=!0){if(e[0]>=this._bufferService.cols)return;const r=this._bufferService.buffer,n=r.lines.get(e[1]);if(!n)return;const o=r.translateBufferLineToString(e[1],!1);let a=this._convertViewportColToCharacterIndex(n,e[0]),h=a;const c=e[0]-a;let l=0,d=0,_=0,u=0;if(" "===o.charAt(a)){for(;a>0&&" "===o.charAt(a-1);)a--;for(;h1&&(u+=s-1,h+=s-1);t>0&&a>0&&!this._isCharWordSeparator(n.loadCell(t-1,this._workCell));){n.loadCell(t-1,this._workCell);const e=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,t--):e>1&&(_+=e-1,a-=e-1),a--,t--}for(;i1&&(u+=e-1,h+=e-1),h++,i++}}h++;let f=a+c-l+_,v=Math.min(this._bufferService.cols,h-a+l+d-_-u);if(t||""!==o.slice(a,h).trim()){if(i&&0===f&&32!==n.getCodePoint(0)){const t=r.lines.get(e[1]-1);if(t&&n.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){const t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){const e=this._bufferService.cols-t.start;f-=e,v+=e}}}if(s&&f+v===this._bufferService.cols&&32!==n.getCodePoint(this._bufferService.cols-1)){const t=r.lines.get(e[1]+1);if(t?.isWrapped&&32!==t.getCodePoint(0)){const t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(v+=t.length)}}return{start:f,length:v}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){const t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){const t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,_.getRangeLength)(i,this._bufferService.cols)}};t.SelectionService=g=s([r(3,f.IBufferService),r(4,f.ICoreService),r(5,h.IMouseService),r(6,f.IOptionsService),r(7,h.IRenderService),r(8,h.ICoreBrowserService)],g)},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ILinkProviderService=t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const s=i(8343);t.ICharSizeService=(0,s.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,s.createDecorator)("CoreBrowserService"),t.IMouseService=(0,s.createDecorator)("MouseService"),t.IRenderService=(0,s.createDecorator)("RenderService"),t.ISelectionService=(0,s.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,s.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,s.createDecorator)("ThemeService"),t.ILinkProviderService=(0,s.createDecorator)("LinkProviderService")},6731:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const n=i(7239),o=i(8055),a=i(8460),h=i(844),c=i(2585),l=o.css.toColor("#ffffff"),d=o.css.toColor("#000000"),_=o.css.toColor("#ffffff"),u=o.css.toColor("#000000"),f={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[o.css.toColor("#2e3436"),o.css.toColor("#cc0000"),o.css.toColor("#4e9a06"),o.css.toColor("#c4a000"),o.css.toColor("#3465a4"),o.css.toColor("#75507b"),o.css.toColor("#06989a"),o.css.toColor("#d3d7cf"),o.css.toColor("#555753"),o.css.toColor("#ef2929"),o.css.toColor("#8ae234"),o.css.toColor("#fce94f"),o.css.toColor("#729fcf"),o.css.toColor("#ad7fa8"),o.css.toColor("#34e2e2"),o.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){const s=t[i/36%6|0],r=t[i/6%6|0],n=t[i%6];e.push({css:o.channels.toCss(s,r,n),rgba:o.channels.toRgba(s,r,n)})}for(let i=0;i<24;i++){const t=8+10*i;e.push({css:o.channels.toCss(t,t,t),rgba:o.channels.toRgba(t,t,t)})}return e})());let v=t.ThemeService=class extends h.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:l,background:d,cursor:_,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:f,selectionBackgroundOpaque:o.color.blend(d,f),selectionInactiveBackgroundTransparent:f,selectionInactiveBackgroundOpaque:o.color.blend(d,f),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(e={}){const i=this._colors;if(i.foreground=p(e.foreground,l),i.background=p(e.background,d),i.cursor=p(e.cursor,_),i.cursorAccent=p(e.cursorAccent,u),i.selectionBackgroundTransparent=p(e.selectionBackground,f),i.selectionBackgroundOpaque=o.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=p(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=o.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?p(e.selectionForeground,o.NULL_COLOR):void 0,i.selectionForeground===o.NULL_COLOR&&(i.selectionForeground=void 0),o.color.isOpaque(i.selectionBackgroundTransparent)){const e=.3;i.selectionBackgroundTransparent=o.color.opacity(i.selectionBackgroundTransparent,e)}if(o.color.isOpaque(i.selectionInactiveBackgroundTransparent)){const e=.3;i.selectionInactiveBackgroundTransparent=o.color.opacity(i.selectionInactiveBackgroundTransparent,e)}if(i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=p(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=p(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=p(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=p(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=p(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=p(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=p(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=p(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=p(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=p(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=p(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=p(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=p(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=p(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=p(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=p(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const s=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new s.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new s.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new s.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;const t=new Array(e);for(let i=0;ithis._length)for(let t=this._length;t=e;s--)this._array[this._getCyclicIndex(s+i.length)]=this._array[this._getCyclicIndex(s)];for(let s=0;sthis._maxLength){const e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));const s=e+t+i-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const s=Array.isArray(t)?[]:{};for(const r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let i=0,s=0,r=0,n=0;var o,a,h,c,l;function d(e){const t=e.toString(16);return t.length<2?"0"+t:t}function _(e,t){return e>>0},e.toColor=function(t,i,s,r){return{css:e.toCss(t,i,s,r),rgba:e.toRgba(t,i,s,r)}}}(o||(t.channels=o={})),function(e){function t(e,t){return n=Math.round(255*t),[i,s,r]=l.toChannels(e.rgba),{css:o.toCss(i,s,r,n),rgba:o.toRgba(i,s,r,n)}}e.blend=function(e,t){if(n=(255&t.rgba)/255,1===n)return{css:t.css,rgba:t.rgba};const a=t.rgba>>24&255,h=t.rgba>>16&255,c=t.rgba>>8&255,l=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return i=l+Math.round((a-l)*n),s=d+Math.round((h-d)*n),r=_+Math.round((c-_)*n),{css:o.toCss(i,s,r),rgba:o.toRgba(i,s,r)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=l.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return o.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[i,s,r]=l.toChannels(t),{css:o.toCss(i,s,r),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return n=255&e.rgba,t(e,n*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(a||(t.color=a={})),function(e){let t,a;try{const e=document.createElement("canvas");e.width=1,e.height=1;const i=e.getContext("2d",{willReadFrequently:!0});i&&(t=i,t.globalCompositeOperation="copy",a=t.createLinearGradient(0,0,1,1))}catch{}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return i=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),o.toColor(i,s,r);case 5:return i=parseInt(e.slice(1,2).repeat(2),16),s=parseInt(e.slice(2,3).repeat(2),16),r=parseInt(e.slice(3,4).repeat(2),16),n=parseInt(e.slice(4,5).repeat(2),16),o.toColor(i,s,r,n);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const h=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(h)return i=parseInt(h[1]),s=parseInt(h[2]),r=parseInt(h[3]),n=Math.round(255*(void 0===h[5]?1:parseFloat(h[5]))),o.toColor(i,s,r,n);if(!t||!a)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=a,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[i,s,r,n]=t.getImageData(0,0,1,1).data,255!==n)throw new Error("css.toColor: Unsupported css format");return{rgba:o.toRgba(i,s,r,n),css:e}}}(h||(t.css=h={})),function(e){function t(e,t,i){const s=e/255,r=t/255,n=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(c||(t.rgb=c={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l0||a>0||h>0);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function a(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l>>0}e.blend=function(e,t){if(n=(255&t)/255,1===n)return t;const a=t>>24&255,h=t>>16&255,c=t>>8&255,l=e>>24&255,d=e>>16&255,_=e>>8&255;return i=l+Math.round((a-l)*n),s=d+Math.round((h-d)*n),r=_+Math.round((c-_)*n),o.toRgba(i,s,r)},e.ensureContrastRatio=function(e,i,s){const r=c.relativeLuminance(e>>8),n=c.relativeLuminance(i>>8);if(_(r,n)>8));if(o_(r,c.relativeLuminance(t>>8))?n:t}return n}const o=a(e,i,s),h=_(r,c.relativeLuminance(o>>8));if(h_(r,c.relativeLuminance(n>>8))?o:n}return o}},e.reduceLuminance=t,e.increaseLuminance=a,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}}(l||(t.rgba=l={})),t.toPaddedHex=d,t.contrastRatio=_},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),c=i(6975),l=i(8460),d=i(1753),_=i(1480),u=i(7994),f=i(9282),v=i(5435),p=i(5981),g=i(2660);let m=!1;class S extends s.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event((e=>{this._onScrollApi?.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new s.MutableDisposable),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new h.OptionsService(e)),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(c.CoreService)),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(_.UnicodeService)),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(u.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(g.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new v.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new p.WriteBuffer(((e,t)=>this._inputHandler.parse(e,t)))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!m&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){const t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1;const t=this.optionsService.rawOptions.windowsPty;t&&void 0!==t.buildNumber&&void 0!==t.buildNumber?e=!!("conpty"===t.backend&&t.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const e=[];e.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},(()=>((0,f.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,s.toDisposable)((()=>{for(const t of e)t.dispose()}))}}}t.CoreTerminal=S},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.runAndSubscribe=t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))},t.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))}},5435:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const n=i(2584),o=i(7116),a=i(2015),h=i(844),c=i(482),l=i(8437),d=i(8460),_=i(643),u=i(511),f=i(3734),v=i(2585),p=i(1480),g=i(6242),m=i(6351),S=i(5941),C={"(":0,")":1,"*":2,"+":3,"-":1,".":2},b=131072;function w(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var y;!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(y||(t.WindowsOptionsReportType=y={}));let E=0;class k extends h.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,i,s,r,h,_,f,v=new a.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=s,this._optionsService=r,this._oscLinkService=h,this._coreMouseService=_,this._unicodeService=f,this._parser=v,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new c.StringToUtf32,this._utf8Decoder=new c.Utf8ToUtf32,this._workCell=new u.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new d.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new d.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new d.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new d.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new d.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new d.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new d.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new d.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new d.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new d.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new d.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new d.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new L(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._parser.setCsiHandlerFallback(((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})})),this._parser.setEscHandlerFallback((e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})})),this._parser.setExecuteHandlerFallback((e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})})),this._parser.setOscHandlerFallback(((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})})),this._parser.setDcsHandlerFallback(((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})})),this._parser.setPrintHandler(((e,t,i)=>this.print(e,t,i))),this._parser.registerCsiHandler({final:"@"},(e=>this.insertChars(e))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(e=>this.scrollLeft(e))),this._parser.registerCsiHandler({final:"A"},(e=>this.cursorUp(e))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(e=>this.scrollRight(e))),this._parser.registerCsiHandler({final:"B"},(e=>this.cursorDown(e))),this._parser.registerCsiHandler({final:"C"},(e=>this.cursorForward(e))),this._parser.registerCsiHandler({final:"D"},(e=>this.cursorBackward(e))),this._parser.registerCsiHandler({final:"E"},(e=>this.cursorNextLine(e))),this._parser.registerCsiHandler({final:"F"},(e=>this.cursorPrecedingLine(e))),this._parser.registerCsiHandler({final:"G"},(e=>this.cursorCharAbsolute(e))),this._parser.registerCsiHandler({final:"H"},(e=>this.cursorPosition(e))),this._parser.registerCsiHandler({final:"I"},(e=>this.cursorForwardTab(e))),this._parser.registerCsiHandler({final:"J"},(e=>this.eraseInDisplay(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(e=>this.eraseInDisplay(e,!0))),this._parser.registerCsiHandler({final:"K"},(e=>this.eraseInLine(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(e=>this.eraseInLine(e,!0))),this._parser.registerCsiHandler({final:"L"},(e=>this.insertLines(e))),this._parser.registerCsiHandler({final:"M"},(e=>this.deleteLines(e))),this._parser.registerCsiHandler({final:"P"},(e=>this.deleteChars(e))),this._parser.registerCsiHandler({final:"S"},(e=>this.scrollUp(e))),this._parser.registerCsiHandler({final:"T"},(e=>this.scrollDown(e))),this._parser.registerCsiHandler({final:"X"},(e=>this.eraseChars(e))),this._parser.registerCsiHandler({final:"Z"},(e=>this.cursorBackwardTab(e))),this._parser.registerCsiHandler({final:"`"},(e=>this.charPosAbsolute(e))),this._parser.registerCsiHandler({final:"a"},(e=>this.hPositionRelative(e))),this._parser.registerCsiHandler({final:"b"},(e=>this.repeatPrecedingCharacter(e))),this._parser.registerCsiHandler({final:"c"},(e=>this.sendDeviceAttributesPrimary(e))),this._parser.registerCsiHandler({prefix:">",final:"c"},(e=>this.sendDeviceAttributesSecondary(e))),this._parser.registerCsiHandler({final:"d"},(e=>this.linePosAbsolute(e))),this._parser.registerCsiHandler({final:"e"},(e=>this.vPositionRelative(e))),this._parser.registerCsiHandler({final:"f"},(e=>this.hVPosition(e))),this._parser.registerCsiHandler({final:"g"},(e=>this.tabClear(e))),this._parser.registerCsiHandler({final:"h"},(e=>this.setMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(e=>this.setModePrivate(e))),this._parser.registerCsiHandler({final:"l"},(e=>this.resetMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(e=>this.resetModePrivate(e))),this._parser.registerCsiHandler({final:"m"},(e=>this.charAttributes(e))),this._parser.registerCsiHandler({final:"n"},(e=>this.deviceStatus(e))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(e=>this.deviceStatusPrivate(e))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(e=>this.softReset(e))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(e=>this.setCursorStyle(e))),this._parser.registerCsiHandler({final:"r"},(e=>this.setScrollRegion(e))),this._parser.registerCsiHandler({final:"s"},(e=>this.saveCursor(e))),this._parser.registerCsiHandler({final:"t"},(e=>this.windowOptions(e))),this._parser.registerCsiHandler({final:"u"},(e=>this.restoreCursor(e))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(e=>this.insertColumns(e))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(e=>this.deleteColumns(e))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(e=>this.selectProtected(e))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(e=>this.requestMode(e,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(e=>this.requestMode(e,!1))),this._parser.setExecuteHandler(n.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(n.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(n.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(n.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(n.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(n.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(n.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(n.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(n.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new g.OscHandler((e=>(this.setTitle(e),this.setIconName(e),!0)))),this._parser.registerOscHandler(1,new g.OscHandler((e=>this.setIconName(e)))),this._parser.registerOscHandler(2,new g.OscHandler((e=>this.setTitle(e)))),this._parser.registerOscHandler(4,new g.OscHandler((e=>this.setOrReportIndexedColor(e)))),this._parser.registerOscHandler(8,new g.OscHandler((e=>this.setHyperlink(e)))),this._parser.registerOscHandler(10,new g.OscHandler((e=>this.setOrReportFgColor(e)))),this._parser.registerOscHandler(11,new g.OscHandler((e=>this.setOrReportBgColor(e)))),this._parser.registerOscHandler(12,new g.OscHandler((e=>this.setOrReportCursorColor(e)))),this._parser.registerOscHandler(104,new g.OscHandler((e=>this.restoreIndexedColor(e)))),this._parser.registerOscHandler(110,new g.OscHandler((e=>this.restoreFgColor(e)))),this._parser.registerOscHandler(111,new g.OscHandler((e=>this.restoreBgColor(e)))),this._parser.registerOscHandler(112,new g.OscHandler((e=>this.restoreCursorColor(e)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const n in o.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:n},(()=>this.selectCharset("("+n))),this._parser.registerEscHandler({intermediates:")",final:n},(()=>this.selectCharset(")"+n))),this._parser.registerEscHandler({intermediates:"*",final:n},(()=>this.selectCharset("*"+n))),this._parser.registerEscHandler({intermediates:"+",final:n},(()=>this.selectCharset("+"+n))),this._parser.registerEscHandler({intermediates:"-",final:n},(()=>this.selectCharset("-"+n))),this._parser.registerEscHandler({intermediates:".",final:n},(()=>this.selectCharset("."+n))),this._parser.registerEscHandler({intermediates:"/",final:n},(()=>this.selectCharset("/"+n)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((e=>(this._logService.error("Parsing error: ",e),e))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new m.DcsHandler(((e,t)=>this.requestStatusString(e,t))))}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(((e,t)=>setTimeout((()=>t("#SLOW_TIMEOUT")),5e3)))]).catch((e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>b&&(n=this._parseStack.position+b)}if(this._logService.logLevel<=v.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,(e=>String.fromCharCode(e))).join("")}"`),"string"==typeof e?e.split("").map((e=>e.charCodeAt(0))):e),this._parseBuffer.lengthb)for(let c=n;c0&&2===f.getWidth(this._activeBuffer.x-1)&&f.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let v=this._parser.precedingJoinState;for(let g=t;ga)if(h){const e=f;let t=this._activeBuffer.x-m;for(this._activeBuffer.x=m,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),f=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),m>0&&f instanceof l.BufferLine&&f.copyCellsFrom(e,t,0,m,!1);t=0;)f.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}else if(d&&(f.insertCells(this._activeBuffer.x,r-m,this._activeBuffer.getNullCell(u)),2===f.getWidth(a-1)&&f.setCellFromCodepoint(a-1,_.NULL_CELL_CODE,_.NULL_CELL_WIDTH,u)),f.setCellFromCodepoint(this._activeBuffer.x++,s,r,u),r>0)for(;--r;)f.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=v,this._activeBuffer.x0&&0===f.getWidth(this._activeBuffer.x)&&!f.hasContent(this._activeBuffer.x)&&f.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(e=>!w(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new m.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new g.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){const t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){const t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){const t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){const t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){const n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),r),s&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y65535?2:1}let h=a;for(let c=1;c0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;te?1:2,u=e.params[0];return f=u,v=t?2===u?4:4===u?_(o.modes.insertMode):12===u?3:20===u?_(d.convertEol):0:1===u?_(i.applicationCursorKeys):3===u?d.windowOptions.setWinLines?80===h?2:132===h?1:0:0:6===u?_(i.origin):7===u?_(i.wraparound):8===u?3:9===u?_("X10"===s):12===u?_(d.cursorBlink):25===u?_(!o.isCursorHidden):45===u?_(i.reverseWraparound):66===u?_(i.applicationKeypad):67===u?4:1e3===u?_("VT200"===s):1002===u?_("DRAG"===s):1003===u?_("ANY"===s):1004===u?_(i.sendFocus):1005===u?4:1006===u?_("SGR"===r):1015===u?4:1016===u?_("SGR_PIXELS"===r):1048===u?1:47===u||1047===u||1049===u?_(c===l):2004===u?_(i.bracketedPasteMode):0,o.triggerDataEvent(`${n.C0.ESC}[${t?"":"?"}${f};${v}$y`),!0;var f,v}_updateAttrColor(e,t,i,s,r){return 2===t?(e|=50331648,e&=-16777216,e|=f.AttributeData.fromColorRGB([i,s,r])):5===t&&(e&=-50331904,e|=33554432|255&i),e}_extractColor(e,t,i){const s=[0,0,-1,0,0,0];let r=0,n=0;do{if(s[n+r]=e.params[t+n],e.hasSubParams(t+n)){const i=e.getSubParams(t+n);let o=0;do{5===s[1]&&(r=1),s[n+o+1+r]=i[o]}while(++o=2||2===s[1]&&n+r>=5)break;s[1]&&(r=1)}while(++n+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=l.DEFAULT_ATTR_DATA.fg,e.bg=l.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;const t=e.length;let i;const s=this._curAttrData;for(let r=0;r=30&&i<=37?(s.fg&=-50331904,s.fg|=16777216|i-30):i>=40&&i<=47?(s.bg&=-50331904,s.bg|=16777216|i-40):i>=90&&i<=97?(s.fg&=-50331904,s.fg|=16777224|i-90):i>=100&&i<=107?(s.bg&=-50331904,s.bg|=16777224|i-100):0===i?this._processSGR0(s):1===i?s.fg|=134217728:3===i?s.bg|=67108864:4===i?(s.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,s)):5===i?s.fg|=536870912:7===i?s.fg|=67108864:8===i?s.fg|=1073741824:9===i?s.fg|=2147483648:2===i?s.bg|=134217728:21===i?this._processUnderline(2,s):22===i?(s.fg&=-134217729,s.bg&=-134217729):23===i?s.bg&=-67108865:24===i?(s.fg&=-268435457,this._processUnderline(0,s)):25===i?s.fg&=-536870913:27===i?s.fg&=-67108865:28===i?s.fg&=-1073741825:29===i?s.fg&=2147483647:39===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===i?(s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?r+=this._extractColor(e,r,s):53===i?s.bg|=1073741824:55===i?s.bg&=-1073741825:59===i?(s.extended=s.extended.clone(),s.extended.underlineColor=-1,s.updateExtended()):100===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){const t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const i=t%2==1;return this._optionsService.options.cursorBlink=i,!0}setScrollRegion(e){const t=e.params[0]||1;let i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||0===i)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!w(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;const t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;i.length>1;){const e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(D(i))if("?"===s)t.push({type:0,index:i});else{const e=(0,S.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){const t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();const i=e.split(":");let s;const r=i.findIndex((e=>e.startsWith("id=")));return-1!==r&&(s=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:s,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){const i=e.split(";");for(let s=0;s=this._specialColors.length);++s,++t)if("?"===i[s])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{const e=(0,S.parseColor)(i[s]);e&&this._onColor.fire([{type:1,index:this._specialColors[t],color:e}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let s=0;s=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const e=new u.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t(this._coreService.triggerDataEvent(`${n.C0.ESC}${e}${n.C0.ESC}\\`),!0))('"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=k;let L=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){ethis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(E=e,e=t,t=E),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function D(e){return 0<=e&&e<256}L=s([r(0,v.IBufferService)],L)},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,n){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,n)}get(e,t,i,s){return this._data.get(e,t)?.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"!=typeof s&&"title"in s;const i=t.isNode?"node":navigator.userAgent,r=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=r.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e)),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;const t=this._getKey(e);if(void 0===t)return!1;if(i=this._search(t),-1===i)return!1;if(this._getKey(this._array[i])!==t)return!1;do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{yield this._array[i]}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{t(this._array[i])}while(++i=t;){let s=t+i>>1;const r=this._getKey(this._array[s]);if(r>e)i=s-1;else{if(!(r0&&this._getKey(this._array[s-1])===e;)s--;return s}t=s+1}}return t}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(6114);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class n extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const s=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=t?.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&i&&(r.isWrapped=i[s.CHAR_DATA_CODE_INDEX]!==s.NULL_CELL_CODE&&i[s.CHAR_DATA_CODE_INDEX]!==s.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}t.AttributeData=i;class s{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){const e=(3758096384&this._ext)>>29;return e<0?4294967288^e:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;const s=i(6349),r=i(7226),n=i(3734),o=i(8437),a=i(4634),h=i(511),c=i(643),l=i(4863),d=i(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=d.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new r.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){const i=this.getNullCell(o.DEFAULT_ATTR_DATA);let s=0;const r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let n=0;n.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){const e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){const i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(i.length>0){const s=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,s.layout),this._reflowLargerAdjustViewport(e,t,s.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){const s=this.getNullCell(o.DEFAULT_ATTR_DATA);let r=i;for(;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;n--){let h=this.lines.get(n);if(!h||!h.isWrapped&&h.getTrimmedLength()<=e)continue;const c=[h];for(;h.isWrapped&&n>0;)h=this.lines.get(--n),c.unshift(h);const l=this.ybase+this.y;if(l>=n&&l0&&(s.push({start:n+c.length+r,newLines:v}),r+=v.length),c.push(...v);let p=_.length-1,g=_[p];0===g&&(p--,g=_[p]);let m=c.length-u-1,S=d;for(;m>=0;){const e=Math.min(S,g);if(void 0===c[p])break;if(c[p].copyCellsFrom(c[m],S-e,g-e,e,!0),g-=e,0===g&&(p--,g=_[p]),S-=e,0===S){m--;const e=Math.max(m,0);S=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t0;)0===this.ybase?this.y0){const e=[],t=[];for(let s=0;s=0;d--)if(a&&a.start>n+h){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(d--,a.newLines[e]);d++,e.push({index:n+1,amount:a.newLines.length}),h+=a.newLines.length,a=s[++o]}else this.lines.set(d,t[n--]);let c=0;for(let s=e.length-1;s>=0;s--)e[s].index+=c,this.lines.onInsertEmitter.fire(e[s]),c+=e[s].amount;const l=Math.max(0,i+r-this.lines.maxLength);l>0&&this.lines.onTrimEmitter.fire(l)}}translateBufferLineToString(e,t,i=0,s){const r=this.lines.get(e);return r?r.translateToString(t,i,s):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((e=>{t.line>=e.index&&(t.line+=e.amount)}))),t.register(this.lines.onDelete((e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)}))),t.register(t.onDispose((()=>this._removeMarker(t)))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const s=i(3734),r=i(511),n=i(643),o=i(482);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);let a=0;class h{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const s=t||r.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let r=0;r>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],t[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,o.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodepoint(e,t,i,s){268435456&s.bg&&(this._extendedAttrs[e]=s.extended),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s.fg,this._data[3*e+2]=s.bg}addCodepointToCell(e,t,i){let s=this._data[3*e+0];2097152&s?this._combined[e]+=(0,o.stringFromCodePoint)(t):2097151&s?(this._combined[e]=(0,o.stringFromCodePoint)(2097151&s)+(0,o.stringFromCodePoint)(t),s&=-2097152,s|=2097152):s=t|1<<22,i&&(s&=-12582913,s|=i<<22),this._data[3*e+0]=s}insertCells(e,t,i){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodepoint(e-1,0,1,i),t=0;--i)this.setCell(e+t+i,this.loadCell(e+i,s));for(let r=0;rthis.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{const e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i=e&&delete this._combined[s]}const s=Object.keys(this._extendedAttrs);for(let i=0;i=e&&delete this._extendedAttrs[t]}}return this.length=e,4*i*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,s,r){const n=e._data;if(r)for(let a=s-1;a>=0;a--){for(let e=0;e<3;e++)this._data[3*(i+a)+e]=n[3*(t+a)+e];268435456&n[3*(t+a)+2]&&(this._extendedAttrs[i+a]=e._extendedAttrs[t+a])}else for(let a=0;a=t&&(this._combined[s-t+i]=e._combined[s])}}translateToString(e,t,i,s){t=t??0,i=i??this.length,e&&(i=Math.min(i,this.getTrimmedLength())),s&&(s.length=0);let r="";for(;t>22||1}return s&&s.push(t),r}}t.BufferLine=h},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();const s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),r=2===e[t+1].getWidth(0);return s&&r?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,s,r,n){const o=[];for(let a=0;a=a&&r0&&(e>d||0===l[e].getTrimmedLength());e--)v++;v>0&&(o.push(a+l.length-v),o.push(v)),a+=l.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){const i=[];let s=0,r=t[s],n=0;for(let o=0;oi(e,r,t))).reduce(((e,t)=>e+t));let o=0,a=0,h=0;for(;hc&&(o-=c,a++);const l=2===e[a].getWidth(o-1);l&&o--;const d=l?s-1:s;r.push(d),h+=d}return r},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const s=i(8460),r=i(844),n=i(9092);class o extends r.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new s.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const s=i(8460),r=i(844);class n{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new s.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=n,n._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(i||(t.C0=i={})),function(e){e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"}(s||(t.C1=s={})),function(e){e.ST=`${i.ESC}\\`}(r||(t.C1_ESCAPED=r={}))},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const s=i(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,n){const o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B");break;case 8:o.key=e.ctrlKey?"\b":s.C0.DEL,e.altKey&&(o.key=s.C0.ESC+o.key);break;case 9:if(e.shiftKey){o.key=s.C0.ESC+"[Z";break}o.key=s.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?s.C0.ESC+s.C0.CR:s.C0.CR,o.cancel=!0;break;case 27:o.key=s.C0.ESC,e.altKey&&(o.key=s.C0.ESC+s.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"D",o.key===s.C0.ESC+"[1;3D"&&(o.key=s.C0.ESC+(i?"b":"[1;5D"))):o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"C",o.key===s.C0.ESC+"[1;3C"&&(o.key=s.C0.ESC+(i?"f":"[1;5C"))):o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"A",i||o.key!==s.C0.ESC+"[1;3A"||(o.key=s.C0.ESC+"[1;5A")):o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"B",i||o.key!==s.C0.ESC+"[1;3B"||(o.key=s.C0.ESC+"[1;5B")):o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=s.C0.ESC+"[2~");break;case 46:o.key=a?s.C0.ESC+"[3;"+(a+1)+"~":s.C0.ESC+"[3~";break;case 36:o.key=a?s.C0.ESC+"[1;"+(a+1)+"H":t?s.C0.ESC+"OH":s.C0.ESC+"[H";break;case 35:o.key=a?s.C0.ESC+"[1;"+(a+1)+"F":t?s.C0.ESC+"OF":s.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=s.C0.ESC+"[5;"+(a+1)+"~":o.key=s.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=s.C0.ESC+"[6;"+(a+1)+"~":o.key=s.C0.ESC+"[6~";break;case 112:o.key=a?s.C0.ESC+"[1;"+(a+1)+"P":s.C0.ESC+"OP";break;case 113:o.key=a?s.C0.ESC+"[1;"+(a+1)+"Q":s.C0.ESC+"OQ";break;case 114:o.key=a?s.C0.ESC+"[1;"+(a+1)+"R":s.C0.ESC+"OR";break;case 115:o.key=a?s.C0.ESC+"[1;"+(a+1)+"S":s.C0.ESC+"OS";break;case 116:o.key=a?s.C0.ESC+"[15;"+(a+1)+"~":s.C0.ESC+"[15~";break;case 117:o.key=a?s.C0.ESC+"[17;"+(a+1)+"~":s.C0.ESC+"[17~";break;case 118:o.key=a?s.C0.ESC+"[18;"+(a+1)+"~":s.C0.ESC+"[18~";break;case 119:o.key=a?s.C0.ESC+"[19;"+(a+1)+"~":s.C0.ESC+"[19~";break;case 120:o.key=a?s.C0.ESC+"[20;"+(a+1)+"~":s.C0.ESC+"[20~";break;case 121:o.key=a?s.C0.ESC+"[21;"+(a+1)+"~":s.C0.ESC+"[21~";break;case 122:o.key=a?s.C0.ESC+"[23;"+(a+1)+"~":s.C0.ESC+"[23~";break;case 123:o.key=a?s.C0.ESC+"[24;"+(a+1)+"~":s.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!n||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(o.key=s.C0.US),"@"===e.key&&(o.key=s.C0.NUL)):65===e.keyCode&&(o.type=1);else{const t=r[e.keyCode],i=t?.[e.shiftKey?1:0];if(i)o.key=s.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){const t=e.ctrlKey?e.keyCode-64:e.keyCode+32;let i=String.fromCharCode(t);e.shiftKey&&(i=i.toUpperCase()),o.key=s.C0.ESC+i}else if(32===e.keyCode)o.key=s.C0.ESC+(e.ctrlKey?s.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=s.C0.ESC+t,o.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=s.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=s.C0.DEL:219===e.keyCode?o.key=s.C0.ESC:220===e.keyCode?o.key=s.C0.FS:221===e.keyCode&&(o.key=s.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let n=r;n=i)return this._interim=r,s;const o=e.charCodeAt(n);56320<=o&&o<=57343?t[s++]=1024*(r-55296)+o-56320+65536:(t[s++]=r,t[s++]=o)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,n,o,a=0,h=0,c=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let n,o=0;for(;(n=63&this.interim[++o])&&o<4;)r<<=6,r|=n;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,l=h-o;for(;c=i)return 0;if(n=e[c++],128!=(192&n)){c--,s=!0;break}this.interim[o++]=n,r<<=6,r|=63&n}s||(2===h?r<128?c--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const l=i-4;let d=c;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&n,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=n,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&n)<<6|63&o,h<65536||h>1114111)continue;t[a++]=h}}return a}}},225:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const s=i(1480),r=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let o;t.UnicodeV6=class{constructor(){if(this.version="6",!o){o=new Uint8Array(65536),o.fill(1),o[0]=0,o.fill(0,1,32),o.fill(0,127,160),o.fill(2,4352,4448),o[9001]=2,o[9002]=2,o.fill(2,11904,42192),o[12351]=1,o.fill(2,44032,55204),o.fill(2,63744,64256),o.fill(2,65040,65050),o.fill(2,65072,65136),o.fill(2,65280,65377),o.fill(2,65504,65511);for(let e=0;et[r][1])return!1;for(;r>=s;)if(i=s+r>>1,e>t[i][1])s=i+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let i=this.wcwidth(e),r=0===i&&0!==t;if(r){const e=s.UnicodeService.extractWidth(t);0===e?r=!1:e>i&&(i=e)}return s.UnicodeService.createPropertyValue(0,i,r)}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new s.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,t);if(s){const e=e=>Date.now()-i>=12?setTimeout((()=>this._innerWrite(0,e))):this._innerWrite(i,e);return void s.catch((e=>(queueMicrotask((()=>{throw e})),Promise.resolve(!1)))).then(e)}const r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,s=/^[\da-f]+$/;function r(e,t){const i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const e=i.exec(t);if(e){const t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),s.exec(t)&&[3,6,9,12].includes(t.length))){const e=t.length/3,i=[0,0,0];for(let s=0;s<3;++s){const r=parseInt(t.slice(e*s,e*s+e),16);i[s]=1===e?r<<4:2===e?r:3===e?r>>4:r>>8}return i}},t.toRgbString=function(e,t=16){const[i,s,n]=e;return`rgb:${r(i,t)}/${r(s,t)}/${r(n,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const s=i(482),r=i(8742),n=i(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,s.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].unhook(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=o,this._ident=0}};const a=new r.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,s.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then((e=>(this._params=a,this._data="",this._hitLimit=!1,e)));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const s=i(844),r=i(8742),n=i(6242),o=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(e,t,i,s){for(let r=0;rt)),i=(e,i)=>t.slice(e,i),s=i(32,127),r=i(0,24);r.push(25),r.push.apply(r,i(28,32));const n=i(0,14);let o;for(o in e.setDefault(1,0),e.addMany(s,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(i(128,144),o,3,0),e.addMany(i(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();class c extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new r.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,s.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let t=0;ts||s>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=s}}if(1!==e.final.length)throw new Error("final must be a single byte");const s=e.final.charCodeAt(0);if(t[0]>s||s>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=s,i}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){const i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);const s=this._escHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){const i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);const s=this._csiHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(e,t,i){let s,r=0,n=0,o=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const t=this._parseStack.handlers;let n=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](this._params),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 4:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],s=this._dcsParser.unhook(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],s=this._oscParser.end(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let a=o;a>4){case 2:for(let s=a+1;;++s){if(s>=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=0&&(s=i[o](this._params),!0!==s);o--)if(s instanceof Promise)return this._preserveStack(3,i,o,n,a),s;o<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++a47&&r<60);a--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:const c=this._escHandlers[this._collect<<8|r];let l=c?c.length-1:-1;for(;l>=0&&(s=c[l](),!0!==s);l--)if(s instanceof Promise)return this._preserveStack(4,c,l,n,a),s;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let s=a+1;;++s)if(s>=t||24===(r=e[s])||26===r||27===r||r>127&&r=t||(r=e[s])<32||r>127&&r{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].end(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then((e=>(this._data="",this._hitLimit=!1,e)));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const i=2147483647;class s{static fromArray(e){const t=new s;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const e=new s(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){const e=[];for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,s))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>i?i:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>i?i:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){const t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){const e={};for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&(e[t]=this._subParams.slice(i,s))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const s=this._digitIsSub?this._subParams:this.params,r=s[t-1];s[t-1]=~r?Math.min(10*r+e,i):e}}t.Params=s},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){const t=this._buffer.lines.get(e);if(t)return new s.BufferLineApiView(t)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const s=i(8771),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new r.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,(e=>t(e.toArray())))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,((e,i)=>t(e,i.toArray())))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(8460),o=i(844),a=i(5295),h=i(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let c=t.BufferService=class extends o.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new a.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let s;s=this._cachedBlankLine,s&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=i.getBlankLine(e,t),this._cachedBlankLine=s),s.isWrapped=t;const r=i.ybase+i.scrollTop,n=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;n===i.lines.length-1?e?i.lines.recycle().copyFrom(s):i.lines.push(s.clone()):i.lines.splice(n+1,0,s.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=n-r+1;i.lines.shiftElements(r+1,e-1,-1),i.lines.set(n,s.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);const r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r!==s.ydisp&&(t||this._onScroll.fire(s.ydisp))}};t.BufferService=c=s([r(0,h.IOptionsService)],c)},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a=i(844),h={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function c(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,d={DEFAULT:e=>{const t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`${l(t[0])}${l(t[1])}${l(t[2])}`},SGR:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.x};${e.y}${t}`}};let _=t.CoreMouseService=class extends a.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const i of Object.keys(h))this.addProtocol(i,h[i]);for(const i of Object.keys(d))this.addEncoding(i,d[i]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;const t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=_=s([r(0,n.IBufferService),r(1,n.ICoreService)],_)},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(1439),o=i(8460),a=i(844),h=i(2585),c=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let d=t.CoreService=class extends a.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}reset(){this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;const i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onBinary.fire(e))}};t.CoreService=d=s([r(0,h.IBufferService),r(1,h.ILogService),r(2,h.IOptionsService)],d)},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const s=i(8055),r=i(8460),n=i(844),o=i(6106);let a=0,h=0;class c extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new o.SortedList((e=>e?.marker.line)),this._onDecorationRegistered=this.register(new r.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new r.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)((()=>this.reset())))}registerDecoration(e){if(e.marker.isDisposed)return;const t=new l(e);if(t){const e=t.marker.onDispose((()=>t.dispose()));t.onDispose((()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())})),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){let s=0,r=0;for(const n of this._decorations.getKeyIterator(t))s=n.options.x??0,r=s+(n.options.width??1),e>=s&&e{a=t.options.x??0,h=a+(t.options.width??1),e>=a&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const s=i(2585),r=i(8343);class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(const[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,r.getServiceDependencies)(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of i){const t=this._services.get(r.id);if(!t)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`);s.push(t)}const n=i.length>0?i[0].index:t.length;if(t.length!==n)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${n+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...s])}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;const n=i(844),o=i(2585),a={trace:o.LogLevelEnum.TRACE,debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF};let h,c=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),h=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tJSON.stringify(e))).join(", ")})`);const t=s.apply(this,e);return h.trace(`GlyphRenderer#${s.name} return`,t),t}}},7302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;const s=i(8460),r=i(844),n=i(6114);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const o=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends r.Disposable{constructor(e){super(),this._onOptionChange=this.register(new s.EventEmitter),this.onOptionChange=this._onOptionChange.event;const i={...t.DEFAULT_OPTIONS};for(const t in e)if(t in i)try{const s=e[t];i[t]=this._sanitizeAndValidateOption(t,s)}catch(e){console.error(e)}this.rawOptions=i,this.options={...i},this._setupOptions(),this.register((0,r.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(e,t){return this.onOptionChange((i=>{i===e&&t(this.rawOptions[e])}))}onMultipleOptionChange(e,t){return this.onOptionChange((i=>{-1!==e.indexOf(i)&&t()}))}_setupOptions(){const e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(const t in this.rawOptions){const s={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,s)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":if(i||(i=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(i))throw new Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=o.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${i}`);break;case"rows":case"cols":if(!i&&0!==i)throw new Error(`${e} must be numeric, value: ${i}`);break;case"windowsPty":i=i??{}}return i}}t.OptionsService=a},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;const n=i(2585);let o=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose((()=>this._removeMarkerFromLink(s,i))),this._dataByLinkId.set(s.id,s),s.id}const i=e,s=this._getEntryIdKey(i),r=this._entriesWithId.get(s);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose((()=>this._removeMarkerFromLink(o,n))),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every((e=>e.line!==t))){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(i,e)))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){const i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=o=s([r(0,n.IBufferService)],o)},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const i="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const r=function(e,t,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[i]===t?t[s].push({id:e,index:r}):(t[s]=[{id:e,index:r}],t[i]=t)}(r,e,n)};return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(8343);var r;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(r||(t.LogLevelEnum=r={})),t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const s=i(8460),r=i(225);class n{static extractShouldJoin(e){return 0!=(1&e)}static extractWidth(e){return e>>1&3}static extractCharKind(e){return e>>3}static createPropertyValue(e,t,i=!1){return(16777215&e)<<3|(3&t)<<1|(i?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter,this.onChange=this._onChange.event;const e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0,i=0;const s=e.length;for(let r=0;r=s)return t+this.wcwidth(o);const i=e.charCodeAt(r);56320<=i&&i<=57343?o=1024*(o-55296)+i-56320+65536:t+=this.wcwidth(i)}const a=this.charProperties(o,i);let h=n.extractWidth(a);n.extractShouldJoin(a)&&(h-=n.extractWidth(i)),t+=h,i=a}return t}charProperties(e,t){return this._activeProvider.charProperties(e,t)}}t.UnicodeService=n}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;const t=i(9042),s=i(3236),n=i(844),o=i(5741),a=i(8285),h=i(7975),c=i(7090),l=["cols","rows"];class d extends n.Disposable{constructor(e){super(),this._core=this.register(new s.Terminal(e)),this._addonManager=this.register(new o.AddonManager),this._publicOptions={...this._core.options};const t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const s in this._core.options){const e={get:t.bind(this,s),set:i.bind(this,s)};Object.defineProperty(this._publicOptions,s,e)}}_checkReadonlyOptions(e){if(l.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new c.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new a.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}e.Terminal=d})(),r})()))},65606:e=>{var t=e.exports={};var i;var s;function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){i=setTimeout}else{i=r}}catch(e){i=r}try{if(typeof clearTimeout==="function"){s=clearTimeout}else{s=n}}catch(e){s=n}})();function o(e){if(i===setTimeout){return setTimeout(e,0)}if((i===r||!i)&&setTimeout){i=setTimeout;return setTimeout(e,0)}try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}function a(e){if(s===clearTimeout){return clearTimeout(e)}if((s===n||!s)&&clearTimeout){s=clearTimeout;return clearTimeout(e)}try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}var h=[];var c=false;var l;var d=-1;function _(){if(!c||!l){return}c=false;if(l.length){h=l.concat(h)}else{d=-1}if(h.length){u()}}function u(){if(c){return}var e=o(_);c=true;var t=h.length;while(t){l=h;h=[];while(++d1){for(var i=1;i{r.r(t);r.d(t,{liveScript:()=>p});var n=function(e,t){var r=t.next||"start";if(r){t.next=t.next;var n=s[r];if(n.splice){for(var o=0;o|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+o+")?))\\s*$");var x="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))";var g={token:"string",regex:".+"};var s={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+x},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+x},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+x},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+x},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+x},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+x},{token:"variableName",regex:o+"\\s*:(?![:=])"},{token:"variableName",regex:o},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:o,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},g],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},g],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},g],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},g],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},g],words:[{token:"string",regex:".*?\\]>",next:"key"},g]};for(var i in s){var k=s[i];if(k.splice){for(var l=0,c=k.length;l{"use strict";var t=/("(?:[^\\"]|\\.)*")|[:,]/g;e.exports=function e(r,n){var i,a,o;n=n||{};i=JSON.stringify([1],undefined,n.indent===undefined?2:n.indent).slice(2,-3);a=i===""?Infinity:n.maxLength===undefined?80:n.maxLength;o=n.replacer;return function e(r,n,s){var l,c,u,f,h,p,d,v,g,m,y,b;if(r&&typeof r.toJSON==="function"){r=r.toJSON()}y=JSON.stringify(r,o);if(y===undefined){return y}d=a-n.length-s;if(y.length<=d){g=y.replace(t,(function(e,t){return t||e+" "}));if(g.length<=d){return g}}if(o!=null){r=JSON.parse(y);o=undefined}if(typeof r==="object"&&r!==null){v=n+i;u=[];c=0;if(Array.isArray(r)){m="[";l="]";d=r.length;for(;c0){return[m,i+u.join(",\n"+v),l].join("\n"+n)}}return y}(r,"",0)}},65606:e=>{var t=e.exports={};var r;var n;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=i}}catch(e){r=i}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=a}}catch(e){n=a}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===i||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function s(e){if(n===clearTimeout){return clearTimeout(e)}if((n===a||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function h(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){p()}}function p(){if(c){return}var e=o(h);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var r=1;r{"use strict";r.r(t);r.d(t,{DEFAULT_ACTIONS:()=>Ca,default:()=>Wa,guessMode:()=>Ua,vega:()=>Ra,vegaLite:()=>Da,version:()=>Ta});var n={};r.r(n);r.d(n,{JsonPatchError:()=>b,_areEquals:()=>T,applyOperation:()=>A,applyPatch:()=>I,applyReducer:()=>N,deepClone:()=>E,getValueByPointer:()=>O,validate:()=>L,validator:()=>S});var i={};r.r(i);r.d(i,{compare:()=>B,generate:()=>M,observe:()=>_,unobserve:()=>P});var a={};r.r(a);r.d(a,{dark:()=>Le,excel:()=>Re,fivethirtyeight:()=>_e,ggplot2:()=>ze,googlecharts:()=>vt,latimes:()=>qe,powerbi:()=>Mt,quartz:()=>Ke,urbaninstitute:()=>ft,version:()=>zt,vox:()=>tt});var o=undefined&&undefined.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var s=Object.prototype.hasOwnProperty;function l(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){var t=new Array(e.length);for(var r=0;r=48&&n<=57){t++;continue}return false}return true}function h(e){if(e.indexOf("/")===-1&&e.indexOf("~")===-1)return e;return e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function d(e,t){var r;for(var n in e){if(l(e,n)){if(e[n]===t){return h(n)+"/"}else if(typeof e[n]==="object"){r=d(e[n],t);if(r!=""){return h(n)+"/"+r}}}}return""}function v(e,t){if(e===t){return"/"}var r=d(e,t);if(r===""){throw new Error("Object not found in root")}return"/"+r}function g(e){if(e===undefined){return true}if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[h-1]=="constructor")){throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README")}if(r){if(v===undefined){if(c[g]===undefined){v=l.slice(0,h).join("/")}else if(h==d-1){v=t.path}if(v!==undefined){m(t,0,e,v)}}}h++;if(Array.isArray(c)){if(g==="-"){g=c.length}else{if(r&&!f(g)){throw new b("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e)}else if(f(g)){g=~~g}}if(h>=d){if(r&&t.op==="add"&&g>c.length){throw new b("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e)}var o=x[t.op].call(t,c,g,e);if(o.test===false){throw new b("Test operation failed","TEST_OPERATION_FAILED",a,t,e)}return o}}else{if(h>=d){var o=w[t.op].call(t,c,g,e);if(o.test===false){throw new b("Test operation failed","TEST_OPERATION_FAILED",a,t,e)}return o}}c=c[g];if(r&&h0){throw new b('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r)}else if((e.op==="move"||e.op==="copy")&&typeof e.from!=="string"){throw new b("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r)}else if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===undefined){throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r)}else if((e.op==="add"||e.op==="replace"||e.op==="test")&&g(e.value)){throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r)}else if(r){if(e.op=="add"){var i=e.path.split("/").length;var a=n.split("/").length;if(i!==a+1&&i!==a){throw new b("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n){throw new b("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}}else if(e.op==="move"||e.op==="copy"){var o={op:"_get",path:e.from,value:undefined};var s=L([o],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE"){throw new b("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}}function L(e,t,r){try{if(!Array.isArray(e)){throw new b("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(t){I(u(t),u(e),r||true)}else{r=r||S;for(var n=0;n0){e.patches=[];if(e.callback){e.callback(n)}}return n}function z(e,t,r,n,i){if(t===e){return}if(typeof t.toJSON==="function"){t=t.toJSON()}var a=c(t);var o=c(e);var s=false;var f=false;for(var p=o.length-1;p>=0;p--){var d=o[p];var v=e[d];if(l(t,d)&&!(t[d]===undefined&&v!==undefined&&Array.isArray(t)===false)){var g=t[d];if(typeof v=="object"&&v!=null&&typeof g=="object"&&g!=null&&Array.isArray(v)===Array.isArray(g)){z(v,g,r,n+"/"+h(d),i)}else{if(v!==g){s=true;if(i){r.push({op:"test",path:n+"/"+h(d),value:u(v)})}r.push({op:"replace",path:n+"/"+h(d),value:u(g)})}}}else if(Array.isArray(e)===Array.isArray(t)){if(i){r.push({op:"test",path:n+"/"+h(d),value:u(v)})}r.push({op:"remove",path:n+"/"+h(d)});f=true}else{if(i){r.push({op:"test",path:n,value:e})}r.push({op:"replace",path:n,value:t});s=true}}if(!f&&a.length==o.length){return}for(var p=0;pe.x2){n=e.x;e.x=e.x2;e.x2=n}e.width=e.x2-e.x}else{e.x=e.x2-(e.width||0)}}if(t.xc){e.x=e.xc-(e.width||0)/2}if(t.y2){if(t.y){if(r&&e.y>e.y2){n=e.y;e.y=e.y2;e.y2=n}e.height=e.y2-e.y}else{e.y=e.y2-(e.height||0)}}if(t.yc){e.y=e.yc-(e.height||0)/2}}var W={NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE};var H={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>ee<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t};var Y={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const J=Array.prototype.slice;const q=(e,t,r)=>{const n=r?r(t[0]):t[0];return n[e].apply(n,J.call(t,1))};const Q=(e,t,r,n,i,a,o)=>new Date(e,t||0,r!=null?r:1,n||0,i||0,a||0,o||0);var Z={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,r)=>Math.max(t,Math.min(r,e)),now:Date.now,utc:Date.UTC,datetime:Q,date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return q("join",arguments)},indexof:function(){return q("indexOf",arguments)},lastindexof:function(){return q("lastIndexOf",arguments)},slice:function(){return q("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat,parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return q("substring",arguments,String)},split:function(){return q("split",arguments,String)},replace:function(){return q("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const K=["view","item","group","xy","x","y"];const ee=new Set([Function,eval,setTimeout,setInterval]);if(typeof setImmediate==="function")ee.add(setImmediate);const te={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const r=t.name;return e.memberDepth>0?r:r==="datum"?e.datum:r==="event"?e.event:r==="item"?e.item:W[r]||e.params["$"+r]},MemberExpression:(e,t)=>{const r=!t.computed,n=e(t.object);if(r)e.memberDepth+=1;const i=e(t.property);if(r)e.memberDepth-=1;if(ee.has(n[i])){console.error(`Prevented interpretation of member "${i}" which could lead to insecure code execution`);return}return n[i]},CallExpression:(e,t)=>{const r=t.arguments;let n=t.callee.name;if(n.startsWith("_")){n=n.slice(1)}return n==="if"?e(r[0])?e(r[1]):e(r[2]):(e.fn[n]||Z[n]).apply(e.fn,r.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>H[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>Y[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>t.operator==="&&"?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,r)=>{e.memberDepth+=1;const n=e(r.key);e.memberDepth-=1;if(ee.has(e(r.value))){console.error(`Prevented interpretation of property "${n}" which could lead to insecure code execution`)}else{t[n]=e(r.value)}return t}),{})};function re(e,t,r,n,i,a){const o=e=>te[e.type](o,e);o.memberDepth=0;o.fn=Object.create(t);o.params=r;o.datum=n;o.event=i;o.item=a;K.forEach((e=>o.fn[e]=function(){return i.vega[e](...arguments)}));return o(e)}var ne={operator(e,t){const r=t.ast,n=e.functions;return e=>re(r,n,e)},parameter(e,t){const r=t.ast,n=e.functions;return(e,t)=>re(r,n,t,e)},event(e,t){const r=t.ast,n=e.functions;return e=>re(r,n,undefined,undefined,e)},handler(e,t){const r=t.ast,n=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return re(r,n,e,i,t)}},encode(e,t){const{marktype:r,channels:n}=t,i=e.functions,a=r==="group"||r==="image"||r==="rect";return(e,t)=>{const o=e.datum;let s=0,l;for(const r in n){l=re(n[r].ast,i,t,o,undefined,e);if(e[r]!==l){e[r]=l;s=1}}if(r!=="rule"){$(e,n,a)}return s}}};var ie=r(17438);function ae(e){const[t,r]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:r}}const oe=ae;var se="vega-themes";var le="2.12.1";var ce="Themes for stylized Vega and Vega-Lite visualizations.";var ue=["vega","vega-lite","themes","style"];var fe="BSD-3-Clause";var he={name:"UW Interactive Data Lab",url:"https://idl.cs.washington.edu"};var pe=[{name:"Emily Gu",url:"https://github.com/emilygu"},{name:"Arvind Satyanarayan",url:"http://arvindsatya.com"},{name:"Jeffrey Heer",url:"https://idl.cs.washington.edu"},{name:"Dominik Moritz",url:"https://www.domoritz.de"}];var de="build/vega-themes.js";var ve="build/vega-themes.module.js";var ge="build/vega-themes.min.js";var me="build/vega-themes.min.js";var ye="build/vega-themes.module.d.ts";var be={type:"git",url:"https://github.com/vega/vega-themes.git"};var Ee=["src","build"];var we={prebuild:"yarn clean",build:"rollup -c",clean:"rimraf build && rimraf examples/build","copy:data":"rsync -r node_modules/vega-datasets/data/* examples/data","copy:build":"rsync -r build/* examples/build","deploy:gh":"yarn build && mkdir -p examples/build && rsync -r build/* examples/build && gh-pages -d examples",preversion:"yarn lint",serve:"browser-sync start -s -f build examples --serveStatic examples",start:"yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",prepare:"beemo create-config",eslintbase:"beemo eslint .",format:"yarn eslintbase --fix",lint:"yarn eslintbase",release:"release-it"};var xe={"@release-it/conventional-changelog":"^5.1.1","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.4.0","browser-sync":"^2.27.10",concurrently:"^7.3.0","gh-pages":"^5.0.0","release-it":"^15.6.0","rollup-plugin-bundle-size":"^1.0.3","rollup-plugin-ts":"^3.0.2",rollup:"^3.15.0",typescript:"^4.7.4","vega-lite-dev-config":"^0.21.0","vega-lite":"^5.0.0",vega:"^5.19.1"};var Oe={vega:"*","vega-lite":"*"};var Ae={};var Ie={name:se,version:le,description:ce,keywords:ue,license:fe,author:he,contributors:pe,main:de,module:ve,unpkg:ge,jsdelivr:me,types:ye,repository:be,files:Ee,scripts:we,devDependencies:xe,peerDependencies:Oe,dependencies:Ae};const Ne="#fff";const Se="#888";const Le={background:"#333",view:{stroke:Se},title:{color:Ne,subtitleColor:Ne},style:{"guide-label":{fill:Ne},"guide-title":{fill:Ne}},axis:{domainColor:Ne,gridColor:Se,tickColor:Ne}};const Te="#4572a7";const Re={background:"#fff",arc:{fill:Te},area:{fill:Te},line:{stroke:Te,strokeWidth:2},path:{stroke:Te},rect:{fill:Te},shape:{stroke:Te},symbol:{fill:Te,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:true,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:false,tickExtra:true},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}};const De="#30a2da";const ke="#cbcbcb";const Ce="#999";const Fe="#333";const je="#f0f0f0";const Pe="#333";const _e={arc:{fill:De},area:{fill:De},axis:{domainColor:ke,grid:true,gridColor:ke,gridWidth:1,labelColor:Ce,labelFontSize:10,titleColor:Fe,tickColor:ke,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:false},background:je,group:{fill:je},legend:{labelColor:Pe,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:Pe,titleFontSize:14,titlePadding:10},line:{stroke:De,strokeWidth:2},path:{stroke:De,strokeWidth:.5},rect:{fill:De},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:true,shape:"circle"},shape:{stroke:De},bar:{binSpacing:2,fill:De,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}};const Me="#000";const ze={group:{fill:"#e5e5e5"},arc:{fill:Me},area:{fill:Me},line:{stroke:Me},path:{stroke:Me},rect:{fill:Me},shape:{stroke:Me},symbol:{fill:Me,size:40},axis:{domain:false,grid:true,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}};const Be=22;const Ge="normal";const Ue="Benton Gothic, sans-serif";const Ve=11.5;const Xe="normal";const $e="#82c6df";const We="Benton Gothic Bold, sans-serif";const He="normal";const Ye=13;const Je={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]};const qe={background:"#ffffff",title:{anchor:"start",color:"#000000",font:We,fontSize:Be,fontWeight:Ge},arc:{fill:$e},area:{fill:$e},line:{stroke:$e,strokeWidth:2},path:{stroke:$e},rect:{fill:$e},shape:{stroke:$e},symbol:{fill:$e,size:30},axis:{labelFont:Ue,labelFontSize:Ve,labelFontWeight:Xe,titleFont:We,titleFontSize:Ye,titleFontWeight:He},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:Ue,labelFontSize:Ve,symbolType:"square",titleFont:We,titleFontSize:Ye,titleFontWeight:He},range:{category:Je["category-6"],diverging:Je["fireandice-6"],heatmap:Je["fire-7"],ordinal:Je["fire-7"],ramp:Je["fire-7"]}};const Qe="#ab5787";const Ze="#979797";const Ke={background:"#f9f9f9",arc:{fill:Qe},area:{fill:Qe},line:{stroke:Qe},path:{stroke:Qe},rect:{fill:Qe},shape:{stroke:Qe},symbol:{fill:Qe,size:30},axis:{domainColor:Ze,domainWidth:.5,gridWidth:.2,labelColor:Ze,tickColor:Ze,tickWidth:.2,titleColor:Ze},axisBand:{grid:false},axisX:{grid:true,tickSize:10},axisY:{domain:false,grid:true,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}};const et="#3e5c69";const tt={background:"#fff",arc:{fill:et},area:{fill:et},line:{stroke:et},path:{stroke:et},rect:{fill:et},shape:{stroke:et},symbol:{fill:et},axis:{domainWidth:.5,grid:true,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:false},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}};const rt="#1696d2";const nt="#000000";const it="#FFFFFF";const at="Lato";const ot="Lato";const st="Lato";const lt="#DEDDDD";const ct=18;const ut={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]};const ft={background:it,title:{anchor:"start",fontSize:ct,font:at},axisX:{domain:true,domainColor:nt,domainWidth:1,grid:false,labelFontSize:12,labelFont:ot,labelAngle:0,tickColor:nt,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:at},axisY:{domain:false,domainWidth:1,grid:true,gridColor:lt,gridWidth:1,labelFontSize:12,labelFont:ot,labelPadding:8,ticks:false,titleFontSize:12,titlePadding:10,titleFont:at,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:ot,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:at,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:ut["six-groups-cat-1"],diverging:ut["diverging-colors"],heatmap:ut["diverging-colors"],ordinal:ut["six-groups-seq"],ramp:ut["shades-blue"]},area:{fill:rt},rect:{fill:rt},line:{color:rt,stroke:rt,strokeWidth:5},trail:{color:rt,stroke:rt,strokeWidth:0,size:1},path:{stroke:rt,strokeWidth:.5},point:{filled:true},text:{font:st,color:rt,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:rt,stroke:null}},arc:{fill:rt},shape:{stroke:rt},symbol:{fill:rt,size:30}};const ht="#3366CC";const pt="#ccc";const dt="Arial, sans-serif";const vt={arc:{fill:ht},area:{fill:ht},path:{stroke:ht},rect:{fill:ht},shape:{stroke:ht},symbol:{stroke:ht},circle:{fill:ht},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:dt,fontSize:12},"guide-title":{font:dt,fontSize:12},"group-title":{font:dt,fontSize:12}},title:{font:dt,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:pt,tickColor:pt,domain:false,grid:true},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}};const gt=e=>e*(1/3+1);const mt=gt(9);const yt=gt(10);const bt=gt(12);const Et="Segoe UI";const wt="wf_standard-font, helvetica, arial, sans-serif";const xt="#252423";const Ot="#605E5C";const At="transparent";const It="#C8C6C4";const Nt="#118DFF";const St="#12239E";const Lt="#E66C37";const Tt="#6B007B";const Rt="#E044A7";const Dt="#744EC2";const kt="#D9B300";const Ct="#D64550";const Ft=Nt;const jt="#DEEFFF";const Pt=[jt,Ft];const _t=[jt,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",Ft];const Mt={view:{stroke:At},background:At,font:Et,header:{titleFont:wt,titleFontSize:bt,titleColor:xt,labelFont:Et,labelFontSize:yt,labelColor:Ot},axis:{ticks:false,grid:false,domain:false,labelColor:Ot,labelFontSize:mt,titleFont:wt,titleColor:xt,titleFontSize:bt,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:true,gridColor:It,gridDash:[1,5],labelFlush:false},axisBand:{tickExtra:true},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:Nt},line:{stroke:Nt,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:Et,fontSize:mt,fill:Ot},arc:{fill:Nt},area:{fill:Nt,line:true,opacity:.6},path:{stroke:Nt},rect:{fill:Nt},point:{fill:Nt,filled:true,size:75},shape:{stroke:Nt},symbol:{fill:Nt,strokeWidth:1.5,size:50},legend:{titleFont:Et,titleFontWeight:"bold",titleColor:Ot,labelFont:Et,labelFontSize:yt,labelColor:Ot,symbolType:"circle",symbolSize:75},range:{category:[Nt,St,Lt,Tt,Rt,Dt,kt,Ct],diverging:Pt,heatmap:Pt,ordinal:_t}};const zt=Ie.version;var Bt=r(26372);var Gt="vega-tooltip";var Ut="0.30.1";var Vt="A tooltip plugin for Vega-Lite and Vega visualizations.";var Xt=["vega-lite","vega","tooltip"];var $t={type:"git",url:"https://github.com/vega/vega-tooltip.git"};var Wt={name:"UW Interactive Data Lab",url:"https://idl.cs.washington.edu"};var Ht=["Dominik Moritz","Sira Horradarn","Zening Qu","Kanit Wongsuphasawat","Yuri Astrakhan","Jeffrey Heer"];var Yt="BSD-3-Clause";var Jt={url:"https://github.com/vega/vega-tooltip/issues"};var qt="https://github.com/vega/vega-tooltip#readme";var Qt="build/vega-tooltip.js";var Zt="build/vega-tooltip.module.js";var Kt="build/vega-tooltip.min.js";var er="build/vega-tooltip.min.js";var tr="build/vega-tooltip.module.d.ts";var rr=["src","build","types"];var nr={prebuild:"yarn clean && yarn build:style",build:"rollup -c","build:style":"./build-style.sh",clean:"rimraf build && rimraf src/style.ts","copy:data":"rsync -r node_modules/vega-datasets/data/* examples/data","copy:build":"rsync -r build/* examples/build","deploy:gh":"yarn build && yarn copy:build && gh-pages -d examples && yarn clean",prepublishOnly:"yarn clean && yarn build",preversion:"yarn lint && yarn test",serve:"browser-sync start -s -f build examples --serveStatic examples",start:"yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",pretest:"yarn build:style",test:"beemo jest","test:inspect":"node --inspect-brk ./node_modules/.bin/jest --runInBand",prepare:"beemo create-config && yarn copy:data",prettierbase:"beemo prettier '*.{css,scss,html}'",eslintbase:"beemo eslint .",format:"yarn eslintbase --fix && yarn prettierbase --write",lint:"yarn eslintbase && yarn prettierbase --check",release:"release-it"};var ir={"@release-it/conventional-changelog":"^5.1.1","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","release-it":"^15.6.0","browser-sync":"^2.27.11",concurrently:"^7.6.0","gh-pages":"^5.0.0","jest-environment-jsdom":"^29.4.2",path:"^0.12.7",rollup:"^3.15.0","rollup-plugin-bundle-size":"^1.0.3","@rollup/plugin-terser":"^0.4.0","rollup-plugin-ts":"^3.2.0",sass:"^1.58.0",typescript:"~4.9.5","vega-datasets":"^2.5.4","vega-lite-dev-config":"^0.21.0","vega-typings":"^0.22.3"};var ar={"vega-util":"^1.17.0"};var or={name:Gt,version:Ut,description:Vt,keywords:Xt,repository:$t,author:Wt,collaborators:Ht,license:Yt,bugs:Jt,homepage:qt,main:Qt,module:Zt,unpkg:Kt,jsdelivr:er,types:tr,files:rr,scripts:nr,devDependencies:ir,dependencies:ar};function sr(e,t){var r={};for(var n in e)if(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);it((0,Bt.Kg)(e)?e:ur(e,r)))).join(", ")}]`}if((0,Bt.Gv)(e)){let n="";const i=e,{title:a,image:o}=i,s=sr(i,["title","image"]);if(a){n+=`

    ${t(a)}

    `}if(o){n+=``}const l=Object.keys(s);if(l.length>0){n+="";for(const e of l){let i=s[e];if(i===undefined){continue}if((0,Bt.Gv)(i)){i=ur(i,r)}n+=``}n+=`
    ${t(e)}:${t(i)}
    `}return n||"{}"}return t(e)}function cr(e){const t=[];return function(r,n){if(typeof n!=="object"||n===null){return n}const i=t.indexOf(this)+1;t.length=i;if(t.length>e){return"[Object]"}if(t.indexOf(n)>=0){return"[Circular]"}t.push(n);return n}}function ur(e,t){return JSON.stringify(e,cr(t))}var fr=`#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element img {\n max-width: 200px;\n max-height: 200px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n`;const hr="vg-tooltip-element";const pr={offsetX:10,offsetY:10,id:hr,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:false,sanitize:dr,maxDepth:2,formatTooltip:lr};function dr(e){return String(e).replace(/&/g,"&").replace(/window.innerWidth){i=+e.clientX-r-t.width}let a=e.clientY+n;if(a+t.height>window.innerHeight){a=+e.clientY-n-t.height}return{x:i,y:a}}class mr{constructor(e){this.options=Object.assign(Object.assign({},pr),e);const t=this.options.id;this.el=null;this.call=this.tooltipHandler.bind(this);if(!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId);e.innerHTML=vr(t);const r=document.head;if(r.childNodes.length>0){r.insertBefore(e,r.childNodes[0])}else{r.appendChild(e)}}}tooltipHandler(e,t,r,n){var i;this.el=document.getElementById(this.options.id);if(!this.el){this.el=document.createElement("div");this.el.setAttribute("id",this.options.id);this.el.classList.add("vg-tooltip");const e=(i=document.fullscreenElement)!==null&&i!==void 0?i:document.body;e.appendChild(this.el)}if(n==null||n===""){this.el.classList.remove("visible",`${this.options.theme}-theme`);return}this.el.innerHTML=this.options.formatTooltip(n,this.options.sanitize,this.options.maxDepth);this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:a,y:o}=gr(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${o}px`;this.el.style.left=`${a}px`}}const yr=or.version;function br(e,t){const r=new mr(t);e.tooltip(r.call).run();return r}var Er=r(65606);function wr(e){"@babel/helpers - typeof";return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wr(e)}function xr(e,t){if(wr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(wr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Or(e){var t=xr(e,"string");return wr(t)==="symbol"?t:String(t)}function Ar(e,t,r){t=Or(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function Ir(e,t,r,n,i,a,o){try{var s=e[a](o);var l=s.value}catch(c){r(c);return}if(s.done){t(l)}else{Promise.resolve(l).then(n,i)}}function Nr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Ir(a,n,i,o,s,"next",e)}function s(e){Ir(a,n,i,o,s,"throw",e)}o(undefined)}))}}var Sr=Object.prototype;var Lr=Sr.hasOwnProperty;var Tr;var Rr=typeof Symbol==="function"?Symbol:{};var Dr=Rr.iterator||"@@iterator";var kr=Rr.asyncIterator||"@@asyncIterator";var Cr=Rr.toStringTag||"@@toStringTag";function Fr(e,t,r,n){var i=t&&t.prototype instanceof Gr?t:Gr;var a=Object.create(i.prototype);var o=new an(n||[]);a._invoke=en(e,r,o);return a}function jr(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}var Pr="suspendedStart";var _r="suspendedYield";var Mr="executing";var zr="completed";var Br={};function Gr(){}function Ur(){}function Vr(){}var Xr={};Xr[Dr]=function(){return this};var $r=Object.getPrototypeOf;var Wr=$r&&$r($r(sn([])));if(Wr&&Wr!==Sr&&Lr.call(Wr,Dr)){Xr=Wr}var Hr=Vr.prototype=Gr.prototype=Object.create(Xr);Ur.prototype=Hr.constructor=Vr;Vr.constructor=Ur;Vr[Cr]=Ur.displayName="GeneratorFunction";function Yr(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Jr(e){var t=typeof e==="function"&&e.constructor;return t?t===Ur||(t.displayName||t.name)==="GeneratorFunction":false}function qr(e){if(Object.setPrototypeOf){Object.setPrototypeOf(e,Vr)}else{e.__proto__=Vr;if(!(Cr in e)){e[Cr]="GeneratorFunction"}}e.prototype=Object.create(Hr);return e}function Qr(e){return{__await:e}}function Zr(e,t){function r(n,i,a,o){var s=jr(e[n],e,i);if(s.type==="throw"){o(s.arg)}else{var l=s.arg;var c=l.value;if(c&&typeof c==="object"&&Lr.call(c,"__await")){return t.resolve(c.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)}))}return t.resolve(c).then((function(e){l.value=e;a(l)}),(function(e){return r("throw",e,a,o)}))}}var n;function i(e,i){function a(){return new t((function(t,n){r(e,i,t,n)}))}return n=n?n.then(a,a):a()}this._invoke=i}Yr(Zr.prototype);Zr.prototype[kr]=function(){return this};function Kr(e,t,r,n,i){if(i===void 0)i=Promise;var a=new Zr(Fr(e,t,r,n),i);return Jr(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))}function en(e,t,r){var n=Pr;return function i(a,o){if(n===Mr){throw new Error("Generator is already running")}if(n===zr){if(a==="throw"){throw o}return ln()}r.method=a;r.arg=o;while(true){var s=r.delegate;if(s){var l=tn(s,r);if(l){if(l===Br)continue;return l}}if(r.method==="next"){r.sent=r._sent=r.arg}else if(r.method==="throw"){if(n===Pr){n=zr;throw r.arg}r.dispatchException(r.arg)}else if(r.method==="return"){r.abrupt("return",r.arg)}n=Mr;var c=jr(e,t,r);if(c.type==="normal"){n=r.done?zr:_r;if(c.arg===Br){continue}return{value:c.arg,done:r.done}}else if(c.type==="throw"){n=zr;r.method="throw";r.arg=c.arg}}}}function tn(e,t){var r=e.iterator[t.method];if(r===Tr){t.delegate=null;if(t.method==="throw"){if(e.iterator["return"]){t.method="return";t.arg=Tr;tn(e,t);if(t.method==="throw"){return Br}}t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return Br}var n=jr(r,e.iterator,t.arg);if(n.type==="throw"){t.method="throw";t.arg=n.arg;t.delegate=null;return Br}var i=n.arg;if(!i){t.method="throw";t.arg=new TypeError("iterator result is not an object");t.delegate=null;return Br}if(i.done){t[e.resultName]=i.value;t.next=e.nextLoc;if(t.method!=="return"){t.method="next";t.arg=Tr}}else{return i}t.delegate=null;return Br}Yr(Hr);Hr[Cr]="Generator";Hr[Dr]=function(){return this};Hr.toString=function(){return"[object Generator]"};function rn(e){var t={tryLoc:e[0]};if(1 in e){t.catchLoc=e[1]}if(2 in e){t.finallyLoc=e[2];t.afterLoc=e[3]}this.tryEntries.push(t)}function nn(e){var t=e.completion||{};t.type="normal";delete t.arg;e.completion=t}function an(e){this.tryEntries=[{tryLoc:"root"}];e.forEach(rn,this);this.reset(true)}function on(e){var t=[];for(var r in e){t.push(r)}t.reverse();return function r(){while(t.length){var n=t.pop();if(n in e){r.value=n;r.done=false;return r}}r.done=true;return r}}function sn(e){if(e){var t=e[Dr];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var r=-1,n=function t(){while(++r=0;--i){var a=this.tryEntries[i];var o=a.completion;if(a.tryLoc==="root"){return n("end")}if(a.tryLoc<=this.prev){var s=Lr.call(a,"catchLoc");var l=Lr.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&Lr.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t){this.complete(n.completion,n.afterLoc);nn(n);return Br}}},catch:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if(i.type==="throw"){var a=i.arg;nn(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function e(t,r,n){this.delegate={iterator:sn(t),resultName:r,nextLoc:n};if(this.method==="next"){this.arg=Tr}return Br}};var cn={wrap:Fr,isGeneratorFunction:Jr,AsyncIterator:Zr,mark:qr,awrap:Qr,async:Kr,keys:on,values:sn};var un;var fn;function hn(){if(fn)return un;fn=1;un=function e(t){t.prototype[Symbol.iterator]=cn.mark((function e(){var t;return cn.wrap((function e(r){while(1)switch(r.prev=r.next){case 0:t=this.head;case 1:if(!t){r.next=7;break}r.next=4;return t.value;case 4:t=t.next;r.next=1;break;case 7:case"end":return r.stop()}}),e,this)}))};return un}var pn=dn;dn.Node=yn;dn.create=dn;function dn(e){var t=this;if(!(t instanceof dn)){t=new dn}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};dn.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};dn.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};dn.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};dn.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new dn;if(tthis.length){t=this.length}for(var n=0,i=this.head;i!==null&&nthis.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};dn.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r1;class Dn{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[En]=e.max||Infinity;var t=e.length||Rn;this[xn]=typeof t!=="function"?Rn:t;this[On]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[An]=e.maxAge||0;this[In]=e.dispose;this[Nn]=e.noDisposeOnSet||false;this[Tn]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[En]=e||Infinity;Fn(this)}get max(){return this[En]}set allowStale(e){this[On]=!!e}get allowStale(){return this[On]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[An]=e;Fn(this)}get maxAge(){return this[An]}set lengthCalculator(e){if(typeof e!=="function")e=Rn;if(e!==this[xn]){this[xn]=e;this[wn]=0;this[Sn].forEach((e=>{e.length=this[xn](e.value,e.key);this[wn]+=e.length}))}Fn(this)}get lengthCalculator(){return this[xn]}get length(){return this[wn]}get itemCount(){return this[Sn].length}rforEach(e,t){t=t||this;for(var r=this[Sn].tail;r!==null;){var n=r.prev;_n(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(var r=this[Sn].head;r!==null;){var n=r.next;_n(this,e,r,t);r=n}}keys(){return this[Sn].toArray().map((e=>e.key))}values(){return this[Sn].toArray().map((e=>e.value))}reset(){if(this[In]&&this[Sn]&&this[Sn].length){this[Sn].forEach((e=>this[In](e.key,e.value)))}this[Ln]=new Map;this[Sn]=new bn;this[wn]=0}dump(){return this[Sn].map((e=>Cn(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Sn]}set(e,t,r){r=r||this[An];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");var n=r?Date.now():0;var i=this[xn](t,e);if(this[Ln].has(e)){if(i>this[En]){jn(this,this[Ln].get(e));return false}var a=this[Ln].get(e);var o=a.value;if(this[In]){if(!this[Nn])this[In](e,o.value)}o.now=n;o.maxAge=r;o.value=t;this[wn]+=i-o.length;o.length=i;this.get(e);Fn(this);return true}var s=new Pn(e,t,i,n,r);if(s.length>this[En]){if(this[In])this[In](e,t);return false}this[wn]+=s.length;this[Sn].unshift(s);this[Ln].set(e,this[Sn].head);Fn(this);return true}has(e){if(!this[Ln].has(e))return false;var t=this[Ln].get(e).value;return!Cn(this,t)}get(e){return kn(this,e,true)}peek(e){return kn(this,e,false)}pop(){var e=this[Sn].tail;if(!e)return null;jn(this,e);return e.value}del(e){jn(this,this[Ln].get(e))}load(e){this.reset();var t=Date.now();for(var r=e.length-1;r>=0;r--){var n=e[r];var i=n.e||0;if(i===0)this.set(n.k,n.v);else{var a=i-t;if(a>0){this.set(n.k,n.v,a)}}}}prune(){this[Ln].forEach(((e,t)=>kn(this,t,false)))}}var kn=(e,t,r)=>{var n=e[Ln].get(t);if(n){var i=n.value;if(Cn(e,i)){jn(e,n);if(!e[On])return undefined}else{if(r){if(e[Tn])n.value.now=Date.now();e[Sn].unshiftNode(n)}}return i.value}};var Cn=(e,t)=>{if(!t||!t.maxAge&&!e[An])return false;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[An]&&r>e[An]};var Fn=e=>{if(e[wn]>e[En]){for(var t=e[Sn].tail;e[wn]>e[En]&&t!==null;){var r=t.prev;jn(e,t);t=r}}};var jn=(e,t)=>{if(t){var r=t.value;if(e[In])e[In](r.key,r.value);e[wn]-=r.length;e[Ln].delete(r.key);e[Sn].removeNode(t)}};class Pn{constructor(e,t,r,n,i){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=i||0}}var _n=(e,t,r,n)=>{var i=r.value;if(Cn(e,i)){jn(e,r);if(!e[On])i=undefined}if(i)t.call(n,i.value,i.key,e)};var Mn=Dn;var zn=["includePrerelease","loose","rtl"];var Bn=e=>!e?{}:typeof e!=="object"?{loose:true}:zn.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});var Gn=Bn;var Un={};var Vn={get exports(){return Un},set exports(e){Un=e}};var Xn="2.0.0";var $n=256;var Wn=Number.MAX_SAFE_INTEGER||9007199254740991;var Hn=16;var Yn={SEMVER_SPEC_VERSION:Xn,MAX_LENGTH:$n,MAX_SAFE_INTEGER:Wn,MAX_SAFE_COMPONENT_LENGTH:Hn};var Jn=typeof Er==="object"&&Er.env&&Er.env.NODE_DEBUG&&/\bsemver\b/i.test(Er.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};var qn=Jn;(function(e,t){var r=Yn.MAX_SAFE_COMPONENT_LENGTH;var n=qn;t=e.exports={};var i=t.re=[];var a=t.src=[];var o=t.t={};var s=0;var l=(e,t,r)=>{var l=s++;n(e,l,t);o[e]=l;a[l]=t;i[l]=new RegExp(t,r?"g":undefined)};l("NUMERICIDENTIFIER","0|[1-9]\\d*");l("NUMERICIDENTIFIERLOOSE","[0-9]+");l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");l("MAINVERSION","(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")"));l("MAINVERSIONLOOSE","(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")"));l("PRERELEASEIDENTIFIER","(?:".concat(a[o.NUMERICIDENTIFIER],"|").concat(a[o.NONNUMERICIDENTIFIER],")"));l("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[o.NUMERICIDENTIFIERLOOSE],"|").concat(a[o.NONNUMERICIDENTIFIER],")"));l("PRERELEASE","(?:-(".concat(a[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIER],")*))"));l("PRERELEASELOOSE","(?:-?(".concat(a[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIERLOOSE],")*))"));l("BUILDIDENTIFIER","[0-9A-Za-z-]+");l("BUILD","(?:\\+(".concat(a[o.BUILDIDENTIFIER],"(?:\\.").concat(a[o.BUILDIDENTIFIER],")*))"));l("FULLPLAIN","v?".concat(a[o.MAINVERSION]).concat(a[o.PRERELEASE],"?").concat(a[o.BUILD],"?"));l("FULL","^".concat(a[o.FULLPLAIN],"$"));l("LOOSEPLAIN","[v=\\s]*".concat(a[o.MAINVERSIONLOOSE]).concat(a[o.PRERELEASELOOSE],"?").concat(a[o.BUILD],"?"));l("LOOSE","^".concat(a[o.LOOSEPLAIN],"$"));l("GTLT","((?:<|>)?=?)");l("XRANGEIDENTIFIERLOOSE","".concat(a[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*"));l("XRANGEIDENTIFIER","".concat(a[o.NUMERICIDENTIFIER],"|x|X|\\*"));l("XRANGEPLAIN","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:".concat(a[o.PRERELEASE],")?").concat(a[o.BUILD],"?")+")?)?");l("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[o.PRERELEASELOOSE],")?").concat(a[o.BUILD],"?")+")?)?");l("XRANGE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAIN],"$"));l("XRANGELOOSE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAINLOOSE],"$"));l("COERCE","".concat("(^|[^\\d])"+"(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])");l("COERCERTL",a[o.COERCE],true);l("LONETILDE","(?:~>?)");l("TILDETRIM","(\\s*)".concat(a[o.LONETILDE],"\\s+"),true);t.tildeTrimReplace="$1~";l("TILDE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAIN],"$"));l("TILDELOOSE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAINLOOSE],"$"));l("LONECARET","(?:\\^)");l("CARETTRIM","(\\s*)".concat(a[o.LONECARET],"\\s+"),true);t.caretTrimReplace="$1^";l("CARET","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAIN],"$"));l("CARETLOOSE","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAINLOOSE],"$"));l("COMPARATORLOOSE","^".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],")$|^$"));l("COMPARATOR","^".concat(a[o.GTLT],"\\s*(").concat(a[o.FULLPLAIN],")$|^$"));l("COMPARATORTRIM","(\\s*)".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],"|").concat(a[o.XRANGEPLAIN],")"),true);t.comparatorTrimReplace="$1$2$3";l("HYPHENRANGE","^\\s*(".concat(a[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAIN],")")+"\\s*$");l("HYPHENRANGELOOSE","^\\s*(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s*$");l("STAR","(<|>)?=?\\s*\\*");l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Vn,Un);var Qn=/^[0-9]+$/;var Zn=(e,t)=>{var r=Qn.test(e);var n=Qn.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:eZn(t,e);var ei={compareIdentifiers:Zn,rcompareIdentifiers:Kn};var ti=qn;var ri=Yn.MAX_LENGTH,ni=Yn.MAX_SAFE_INTEGER;var ii=Un.re,ai=Un.t;var oi=Gn;var si=ei.compareIdentifiers;let li=class e{constructor(t,r){r=oi(r);if(t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError("Invalid Version: ".concat(t))}if(t.length>ri){throw new TypeError("version is longer than ".concat(ri," characters"))}ti("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?ii[ai.LOOSE]:ii[ai.FULL]);if(!n){throw new TypeError("Invalid Version: ".concat(t))}this.raw=t;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>ni||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>ni||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>ni||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(si(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: ".concat(e))}this.format();this.raw=this.version;return this}};var ci=li;var ui=ci;var fi=(e,t,r)=>new ui(e,r).compare(new ui(t,r));var hi=fi;var pi=hi;var di=(e,t,r)=>pi(e,t,r)===0;var vi=di;var gi=hi;var mi=(e,t,r)=>gi(e,t,r)!==0;var yi=mi;var bi=hi;var Ei=(e,t,r)=>bi(e,t,r)>0;var wi=Ei;var xi=hi;var Oi=(e,t,r)=>xi(e,t,r)>=0;var Ai=Oi;var Ii=hi;var Ni=(e,t,r)=>Ii(e,t,r)<0;var Si=Ni;var Li=hi;var Ti=(e,t,r)=>Li(e,t,r)<=0;var Ri=Ti;var Di=vi;var ki=yi;var Ci=wi;var Fi=Ai;var ji=Si;var Pi=Ri;var _i=(e,t,r,n)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return Di(e,r,n);case"!=":return ki(e,r,n);case">":return Ci(e,r,n);case">=":return Fi(e,r,n);case"<":return ji(e,r,n);case"<=":return Pi(e,r,n);default:throw new TypeError("Invalid operator: ".concat(t))}};var Mi=_i;var zi;var Bi;function Gi(){if(Bi)return zi;Bi=1;var e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(n,i){i=r(i);if(n instanceof t){if(n.loose===!!i.loose){return n}else{n=n.value}}o("comparator",n,i);this.options=i;this.loose=!!i.loose;this.parse(n);if(this.semver===e){this.value=""}else{this.value=this.operator+this.semver.version}o("comp",this)}parse(t){var r=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR];var a=t.match(r);if(!a){throw new TypeError("Invalid comparator: ".concat(t))}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=e}else{this.semver=new s(a[2],this.options.loose)}}toString(){return this.value}test(t){o("Comparator.test",t,this.options.loose);if(this.semver===e||t===e){return true}if(typeof t==="string"){try{t=new s(t,this.options)}catch(Ka){return false}}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,r).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,r).test(e.semver)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=a(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");var u=a(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||o&&s||c||u}}zi=t;var r=Gn;var n=Un.re,i=Un.t;var a=Mi;var o=qn;var s=ci;var l=Hi();return zi}function Ui(e,t){var r=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Vi(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;var i=function e(){};return{s:i,n:function t(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){r=r.call(e)},n:function e(){var t=r.next();a=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!a&&r.return!=null)r.return()}finally{if(o)throw s}}}}function Vi(e,t){if(!e)return;if(typeof e==="string")return Xi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xi(e,t)}function Xi(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);rthis.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError("Invalid SemVer Range: ".concat(t))}if(this.set.length>1){var a=this.set[0];this.set=this.set.filter((e=>!h(e[0])));if(this.set.length===0){this.set=[a]}else if(this.set.length>1){var o=Ui(this.set),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;if(l.length===1&&p(l[0])){this.set=[l];break}}}catch(c){o.e(c)}finally{o.f()}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();var t=Object.keys(this.options).join(",");var n="parseRange:".concat(t,":").concat(e);var o=r.get(n);if(o){return o}var p=this.options.loose;var d=p?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(d,I(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(s[l.COMPARATORTRIM],c);a("comparator trim",e);e=e.replace(s[l.TILDETRIM],u);e=e.replace(s[l.CARETTRIM],f);e=e.split(/\s+/).join(" ");var g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));if(p){g=g.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(s[l.COMPARATORLOOSE])}))}a("range list",g);var m=new Map;var y=g.map((e=>new i(e,this.options)));var b=Ui(y),E;try{for(b.s();!(E=b.n()).done;){var w=E.value;if(h(w)){return[w]}m.set(w.value,w)}}catch(O){b.e(O)}finally{b.f()}if(m.size>1&&m.has("")){m.delete("")}var x=[...m.values()];r.set(n,x);return x}intersects(t,r){if(!(t instanceof e)){throw new TypeError("a Range is required")}return this.set.some((e=>d(e,r)&&t.set.some((t=>d(t,r)&&e.every((e=>t.every((t=>e.intersects(t,r)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new o(e,this.options)}catch(Ka){return false}}for(var t=0;te.value==="<0.0.0-0";var p=e=>e.value==="";var d=(e,t)=>{var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every((e=>i.intersects(e,t)));i=n.pop()}return r};var v=(e,t)=>{a("comp",e,t);e=b(e,t);a("caret",e);e=m(e,t);a("tildes",e);e=w(e,t);a("xrange",e);e=O(e,t);a("stars",e);return e};var g=e=>!e||e.toLowerCase()==="x"||e==="*";var m=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" ");var y=(e,t)=>{var r=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(r,((t,r,n,i,o)=>{a("tilde",e,t,r,n,i,o);var s;if(g(r)){s=""}else if(g(n)){s=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0")}else if(g(i)){s=">=".concat(r,".").concat(n,".0 <").concat(r,".").concat(+n+1,".0-0")}else if(o){a("replaceTilde pr",o);s=">=".concat(r,".").concat(n,".").concat(i,"-").concat(o," <").concat(r,".").concat(+n+1,".0-0")}else{s=">=".concat(r,".").concat(n,".").concat(i," <").concat(r,".").concat(+n+1,".0-0")}a("tilde return",s);return s}))};var b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" ");var E=(e,t)=>{a("caret",e,t);var r=t.loose?s[l.CARETLOOSE]:s[l.CARET];var n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,s)=>{a("caret",e,t,r,i,o,s);var l;if(g(r)){l=""}else if(g(i)){l=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0")}else if(g(o)){if(r==="0"){l=">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0")}else{l=">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0")}}else if(s){a("replaceCaret pr",s);if(r==="0"){if(i==="0"){l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(r,".").concat(i,".").concat(+o+1,"-0")}else{l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(r,".").concat(+i+1,".0-0")}}else{l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(+r+1,".0.0-0")}}else{a("no pr");if(r==="0"){if(i==="0"){l=">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(i,".").concat(+o+1,"-0")}else{l=">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(+i+1,".0-0")}}else{l=">=".concat(r,".").concat(i,".").concat(o," <").concat(+r+1,".0.0-0")}}a("caret return",l);return l}))};var w=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>x(e,t))).join(" ")};var x=(e,t)=>{e=e.trim();var r=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(r,((r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);var c=g(i);var u=c||g(o);var f=u||g(s);var h=f;if(n==="="&&h){n=""}l=t.includePrerelease?"-0":"";if(c){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&h){if(u){o=0}s=0;if(n===">"){n=">=";if(u){i=+i+1;o=0;s=0}else{o=+o+1;s=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{o=+o+1}}if(n==="<"){l="-0"}r="".concat(n+i,".").concat(o,".").concat(s).concat(l)}else if(u){r=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0")}else if(f){r=">=".concat(i,".").concat(o,".0").concat(l," <").concat(i,".").concat(+o+1,".0-0")}a("xRange return",r);return r}))};var O=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(s[l.STAR],"")};var A=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};var I=e=>(t,r,n,i,a,o,s,l,c,u,f,h,p)=>{if(g(n)){r=""}else if(g(i)){r=">=".concat(n,".0.0").concat(e?"-0":"")}else if(g(a)){r=">=".concat(n,".").concat(i,".0").concat(e?"-0":"")}else if(o){r=">=".concat(r)}else{r=">=".concat(r).concat(e?"-0":"")}if(g(c)){l=""}else if(g(u)){l="<".concat(+c+1,".0.0-0")}else if(g(f)){l="<".concat(c,".").concat(+u+1,".0-0")}else if(h){l="<=".concat(c,".").concat(u,".").concat(f,"-").concat(h)}else if(e){l="<".concat(c,".").concat(u,".").concat(+f+1,"-0")}else{l="<=".concat(l)}return"".concat(r," ").concat(l).trim()};var N=(e,t,r)=>{for(var n=0;n0){var s=e[o].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true};return $i}var Yi=Hi();var Ji=(e,t,r)=>{try{t=new Yi(t,r)}catch(Ka){return false}return t.test(e)};var qi=Ji;function Qi(e,t,r){var n=e.open(t);var i=1e4;var a=250;var o=new URL(t),s=o.origin;var l=~~(i/a);function c(t){if(t.source===n){l=0;e.removeEventListener("message",c,false)}}e.addEventListener("message",c,false);function u(){if(l<=0){return}n.postMessage(r,s);setTimeout(u,a);l-=1}setTimeout(u,a)}var Zi='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';if(!String.prototype.startsWith){String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e}}function Ki(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=e.length)return{done:true};return{done:false,value:e[n++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){r=r.call(e)},n:function e(){var t=r.next();a=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!a&&r.return!=null)r.return()}finally{if(o)throw s}}}}function Ia(e,t){if(!e)return;if(typeof e==="string")return Na(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Na(e,t)}function Na(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);re,"vega-lite":(e,t)=>Da.compile(e,{config:t}).spec};var Ma='\n\n \n \n \n';var za="chart-wrapper";function Ba(e){return typeof e==="function"}function Ga(e,t,r,n){var i="".concat(t,'
    ');var a="
    ".concat(r,"");var o=window.open("");o.document.write(i+e+a);o.document.title="".concat(ja[n]," JSON Source")}function Ua(e,t){if(e.$schema){var r=oe(e.$schema);if(t&&t!==r.library){var n;console.warn("The given visualization spec is written in ".concat(ja[r.library],", but mode argument sets ").concat((n=ja[t])!==null&&n!==void 0?n:t,"."))}var i=r.library;if(!qi(Pa[i],"^".concat(r.version.slice(1)))){console.warn("The input spec uses ".concat(ja[i]," ").concat(r.version,", but the current version of ").concat(ja[i]," is v").concat(Pa[i],"."))}return i}if("mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e){return"vega-lite"}if("marks"in e||"signals"in e||"scales"in e||"axes"in e){return"vega"}return t!==null&&t!==void 0?t:"vega"}function Va(e){return!!(e&&"load"in e)}function Xa(e){return Va(e)?e:Ra.loader(e)}function $a(e){var t,r;var n=(t=(r=e.usermeta)===null||r===void 0?void 0:r.embedOptions)!==null&&t!==void 0?t:{};if((0,X.isString)(n.defaultStyle)){n.defaultStyle=false}return n}function Wa(e,t){return Ha.apply(this,arguments)}function Ha(){Ha=Nr(cn.mark((function e(t,r){var n,i;var a,o,s,l,c,u,f,h,p,d=arguments;return cn.wrap((function e(v){while(1)switch(v.prev=v.next){case 0:a=d.length>2&&d[2]!==undefined?d[2]:{};if(!(0,X.isString)(r)){v.next=10;break}s=Xa(a.loader);v.t0=JSON;v.next=6;return s.load(r);case 6:v.t1=v.sent;o=v.t0.parse.call(v.t0,v.t1);v.next=11;break;case 10:o=r;case 11:l=$a(o);c=l.loader;if(!s||c){s=Xa((u=a.loader)!==null&&u!==void 0?u:c)}v.next=16;return Ya(l,s);case 16:f=v.sent;v.next=19;return Ya(a,s);case 19:h=v.sent;p=La(La({},Ki(h,f)),{},{config:(0,X.mergeConfig)((n=h.config)!==null&&n!==void 0?n:{},(i=f.config)!==null&&i!==void 0?i:{})});v.next=23;return Qa(t,o,p,s);case 23:return v.abrupt("return",v.sent);case 24:case"end":return v.stop()}}),e)})));return Ha.apply(this,arguments)}function Ya(e,t){return Ja.apply(this,arguments)}function Ja(){Ja=Nr(cn.mark((function e(t,r){var n;var i,a;return cn.wrap((function e(o){while(1)switch(o.prev=o.next){case 0:if(!(0,X.isString)(t.config)){o.next=8;break}o.t1=JSON;o.next=4;return r.load(t.config);case 4:o.t2=o.sent;o.t0=o.t1.parse.call(o.t1,o.t2);o.next=9;break;case 8:o.t0=(n=t.config)!==null&&n!==void 0?n:{};case 9:i=o.t0;if(!(0,X.isString)(t.patch)){o.next=18;break}o.t4=JSON;o.next=14;return r.load(t.patch);case 14:o.t5=o.sent;o.t3=o.t4.parse.call(o.t4,o.t5);o.next=19;break;case 18:o.t3=t.patch;case 19:a=o.t3;return o.abrupt("return",La(La(La({},t),a?{patch:a}:{}),i?{config:i}:{}));case 21:case"end":return o.stop()}}),e)})));return Ja.apply(this,arguments)}function qa(e){var t;var r=e.getRootNode?e.getRootNode():document;return r instanceof ShadowRoot?{root:r,rootContainer:r}:{root:document,rootContainer:(t=document.head)!==null&&t!==void 0?t:document.body}}function Qa(e,t){return Za.apply(this,arguments)}function Za(){Za=Nr(cn.mark((function e(t,r){var n,i,o,s,l,c,u;var f,h,p,d,v,g,m,y,b,E,w,x,O,A,N,S,L,T,R,D,k,C,F,j,P,_,M,z,B,G,U,$,W,H,Y,J,q,Q,Z,K,ee,te,re,ie,ae=arguments;return cn.wrap((function e(se){while(1)switch(se.prev=se.next){case 0:ie=function e(){if(U){document.removeEventListener("click",U)}P.finalize()};f=ae.length>2&&ae[2]!==undefined?ae[2]:{};h=ae.length>3?ae[3]:undefined;p=f.theme?(0,X.mergeConfig)(a[f.theme],(n=f.config)!==null&&n!==void 0?n:{}):f.config;d=(0,X.isBoolean)(f.actions)?f.actions:Ki({},Ca,(i=f.actions)!==null&&i!==void 0?i:{});v=La(La({},Fa),f.i18n);g=(o=f.renderer)!==null&&o!==void 0?o:"canvas";m=(s=f.logLevel)!==null&&s!==void 0?s:Ra.Warn;y=(l=f.downloadFileName)!==null&&l!==void 0?l:"visualization";b=typeof t==="string"?document.querySelector(t):t;if(b){se.next=12;break}throw new Error("".concat(t," does not exist"));case 12:if(f.defaultStyle!==false){E="vega-embed-style";w=qa(b),x=w.root,O=w.rootContainer;if(!x.getElementById(E)){A=document.createElement("style");A.id=E;A.innerHTML=f.defaultStyle===undefined||f.defaultStyle===true?Zi.toString():f.defaultStyle;O.appendChild(A)}}N=Ua(r,f.mode);S=_a[N](r,p);if(N==="vega-lite"){if(S.$schema){L=oe(S.$schema);if(!qi(Pa.vega,"^".concat(L.version.slice(1)))){console.warn("The compiled spec uses Vega ".concat(L.version,", but current version is v").concat(Pa.vega,"."))}}}b.classList.add("vega-embed");if(d){b.classList.add("has-actions")}b.innerHTML="";T=b;if(d){R=document.createElement("div");R.classList.add(za);b.appendChild(R);T=R}D=f.patch;if(D){S=D instanceof Function?D(S):I(S,D,true,false).newDocument}if(f.formatLocale){Ra.formatLocale(f.formatLocale)}if(f.timeFormatLocale){Ra.timeFormatLocale(f.timeFormatLocale)}if(f.expressionFunctions){for(k in f.expressionFunctions){C=f.expressionFunctions[k];if("fn"in C){Ra.expressionFunction(k,C.fn,C["visitor"])}else if(C instanceof Function){Ra.expressionFunction(k,C)}}}F=f.ast;j=Ra.parse(S,N==="vega-lite"?{}:p,{ast:F});P=new(f.viewClass||Ra.View)(j,La({loader:h,logLevel:m,renderer:g},F?{expr:(c=(u=Ra.expressionInterpreter)!==null&&u!==void 0?u:f.expr)!==null&&c!==void 0?c:ne}:{}));P.addSignalListener("autosize",((e,t)=>{var r=t.type;if(r=="fit-x"){T.classList.add("fit-x");T.classList.remove("fit-y")}else if(r=="fit-y"){T.classList.remove("fit-x");T.classList.add("fit-y")}else if(r=="fit"){T.classList.add("fit-x","fit-y")}else{T.classList.remove("fit-x","fit-y")}}));if(f.tooltip!==false){_=Ba(f.tooltip)?f.tooltip:new mr(f.tooltip===true?{}:f.tooltip).call;P.tooltip(_)}M=f.hover;if(M===undefined){M=N==="vega"}if(M){z=typeof M==="boolean"?{}:M,B=z.hoverSet,G=z.updateSet;P.hover(B,G)}if(f){if(f.width!=null){P.width(f.width)}if(f.height!=null){P.height(f.height)}if(f.padding!=null){P.padding(f.padding)}}se.next=37;return P.initialize(T,f.bind).runAsync();case 37:if(!(d!==false)){se.next=63;break}$=b;if(f.defaultStyle!==false){W=document.createElement("details");W.title=v.CLICK_TO_VIEW_ACTIONS;b.append(W);$=W;H=document.createElement("summary");H.innerHTML=Ma;W.append(H);U=e=>{if(!W.contains(e.target)){W.removeAttribute("open")}};document.addEventListener("click",U)}Y=document.createElement("div");$.append(Y);Y.classList.add("vega-actions");if(!(d===true||d.export!==false)){se.next=60;break}J=Aa(["svg","png"]);se.prev=45;Q=cn.mark((function e(){var t,r,n,i;return cn.wrap((function e(a){while(1)switch(a.prev=a.next){case 0:t=q.value;if(d===true||d.export===true||d.export[t]){r=v["".concat(t.toUpperCase(),"_ACTION")];n=document.createElement("a");i=(0,X.isObject)(f.scaleFactor)?f.scaleFactor[t]:f.scaleFactor;n.text=r;n.href="#";n.target="_blank";n.download="".concat(y,".").concat(t);n.addEventListener("mousedown",function(){var e=Nr(cn.mark((function e(r){var n;return cn.wrap((function e(a){while(1)switch(a.prev=a.next){case 0:r.preventDefault();a.next=3;return P.toImageURL(t,i);case 3:n=a.sent;this.href=n;case 5:case"end":return a.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}());Y.append(n)}case 2:case"end":return a.stop()}}),e)}));J.s();case 48:if((q=J.n()).done){se.next=52;break}return se.delegateYield(Q(),"t0",50);case 50:se.next=48;break;case 52:se.next=57;break;case 54:se.prev=54;se.t1=se["catch"](45);J.e(se.t1);case 57:se.prev=57;J.f();return se.finish(57);case 60:if(d===true||d.source!==false){Z=document.createElement("a");Z.text=v.SOURCE_ACTION;Z.href="#";Z.addEventListener("click",(function(e){var t,n;Ga(V()(r),(t=f.sourceHeader)!==null&&t!==void 0?t:"",(n=f.sourceFooter)!==null&&n!==void 0?n:"",N);e.preventDefault()}));Y.append(Z)}if(N==="vega-lite"&&(d===true||d.compiled!==false)){K=document.createElement("a");K.text=v.COMPILED_ACTION;K.href="#";K.addEventListener("click",(function(e){var t,r;Ga(V()(S),(t=f.sourceHeader)!==null&&t!==void 0?t:"",(r=f.sourceFooter)!==null&&r!==void 0?r:"","vega");e.preventDefault()}));Y.append(K)}if(d===true||d.editor!==false){te=(ee=f.editorUrl)!==null&&ee!==void 0?ee:"https://vega.github.io/editor/";re=document.createElement("a");re.text=v.EDITOR_ACTION;re.href="#";re.addEventListener("click",(function(e){Qi(window,te,{config:p,mode:N,renderer:g,spec:V()(r)});e.preventDefault()}));Y.append(re)}case 63:return se.abrupt("return",{view:P,spec:r,vgSpec:S,finalize:ie,embedOptions:f});case 64:case"end":return se.stop()}}),e,null,[[45,54,57,60]])})));return Za.apply(this,arguments)}},26372:(e,t,r)=>{"use strict";r.d(t,{$D:()=>E,$G:()=>Y,$P:()=>me,AU:()=>T,B:()=>de,B2:()=>H,BS:()=>Q,Cc:()=>Oe,D_:()=>p,EV:()=>Ie,Eb:()=>xe,Et:()=>be,G4:()=>De,Gv:()=>N,KH:()=>B,Kg:()=>we,Lm:()=>ge,Ln:()=>Te,M1:()=>je,N6:()=>i,NV:()=>b,P$:()=>w,PK:()=>ve,R2:()=>x,Ro:()=>k,SW:()=>W,Tn:()=>Z,UD:()=>ee,VC:()=>z,V_:()=>te,X$:()=>se,Xx:()=>le,YO:()=>q,ZZ:()=>f,ay:()=>Ce,bX:()=>pe,co:()=>G,cy:()=>I,dI:()=>Fe,dY:()=>ae,eV:()=>Le,gd:()=>Ee,h1:()=>Ne,id:()=>h,io:()=>L,iv:()=>u,lL:()=>X,mQ:()=>ue,me:()=>m,n:()=>ce,nG:()=>he,nS:()=>a,oV:()=>$,r$:()=>Re,rt:()=>_e,sY:()=>n,se:()=>D,sg:()=>oe,ux:()=>Se,vF:()=>A,vN:()=>g,v_:()=>d,vu:()=>J,xH:()=>v,xZ:()=>ye,xv:()=>Pe,y:()=>O,z3:()=>c,zy:()=>U});function n(e,t,r){e.fields=t||[];e.fname=r;return e}function i(e){return e==null?null:e.fname}function a(e){return e==null?null:e.fields}function o(e){return e.length===1?s(e[0]):l(e)}const s=e=>function(t){return t[e]};const l=e=>{const t=e.length;return function(r){for(let n=0;no){u()}else{o=s+1}}else if(l==="["){if(s>o)u();i=o=s+1}else if(l==="]"){if(!i)c("Access path missing open bracket: "+e);if(i>0)u();i=0;o=s+1}}if(i)c("Access path missing closing bracket: "+e);if(n)c("Access path missing closing quote: "+e);if(s>o){s++;u()}return t}function f(e,t,r){const i=u(e);e=i.length===1?i[0]:e;return n((r&&r.get||o)(i),[e],t||e)}const h=f("id");const p=n((e=>e),[],"identity");const d=n((()=>0),[],"zero");const v=n((()=>1),[],"one");const g=n((()=>true),[],"true");const m=n((()=>false),[],"false");function y(e,t,r){const n=[t].concat([].slice.call(r));console[e].apply(console,n)}const b=0;const E=1;const w=2;const x=3;const O=4;function A(e,t){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:y;let n=e||b;return{level(e){if(arguments.length){n=+e;return this}else{return n}},error(){if(n>=E)r(t||"error","ERROR",arguments);return this},warn(){if(n>=w)r(t||"warn","WARN",arguments);return this},info(){if(n>=x)r(t||"log","INFO",arguments);return this},debug(){if(n>=O)r(t||"log","DEBUG",arguments);return this}}}var I=Array.isArray;function N(e){return e===Object(e)}const S=e=>e!=="__proto__";function L(){for(var e=arguments.length,t=new Array(e),r=0;r{for(const r in t){if(r==="signals"){e.signals=R(e.signals,t.signals)}else{const n=r==="legend"?{layout:1}:r==="style"?true:null;T(e,r,t[r],n)}}return e}),{})}function T(e,t,r,n){if(!S(t))return;let i,a;if(N(r)&&!I(r)){a=N(e[t])?e[t]:e[t]={};for(i in r){if(n&&(n===true||n[i])){T(a,i,r[i])}else if(S(i)){a[i]=r[i]}}}else{e[t]=r}}function R(e,t){if(e==null)return t;const r={},n=[];function i(e){if(!r[e.name]){r[e.name]=1;n.push(e)}}t.forEach(i);e.forEach(i);return n}function D(e){return e[e.length-1]}function k(e){return e==null||e===""?null:+e}const C=e=>t=>e*Math.exp(t);const F=e=>t=>Math.log(e*t);const j=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e));const P=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e;const _=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function M(e,t,r,n){const i=r(e[0]),a=r(D(e)),o=(a-i)*t;return[n(i-o),n(a-o)]}function z(e,t){return M(e,t,k,p)}function B(e,t){var r=Math.sign(e[0]);return M(e,t,F(r),C(r))}function G(e,t,r){return M(e,t,_(r),_(1/r))}function U(e,t,r){return M(e,t,j(r),P(r))}function V(e,t,r,n,i){const a=n(e[0]),o=n(D(e)),s=t!=null?n(t):(a+o)/2;return[i(s+(a-s)*r),i(s+(o-s)*r)]}function X(e,t,r){return V(e,t,r,k,p)}function $(e,t,r){const n=Math.sign(e[0]);return V(e,t,r,F(n),C(n))}function W(e,t,r,n){return V(e,t,r,_(n),_(1/n))}function H(e,t,r,n){return V(e,t,r,j(n),P(n))}function Y(e){return 1+~~(new Date(e).getMonth()/3)}function J(e){return 1+~~(new Date(e).getUTCMonth()/3)}function q(e){return e!=null?I(e)?e:[e]:[]}function Q(e,t,r){let n=e[0],i=e[1],a;if(i=r-t?[t,r]:[n=Math.min(Math.max(n,t),r-a),n+a]}function Z(e){return typeof e==="function"}const K="descending";function ee(e,t,r){r=r||{};t=q(t)||[];const i=[],o=[],s={},l=r.comparator||re;q(e).forEach(((e,n)=>{if(e==null)return;i.push(t[n]===K?-1:1);o.push(e=Z(e)?e:f(e,null,r));(a(e)||[]).forEach((e=>s[e]=1))}));return o.length===0?null:n(l(o,i),Object.keys(s))}const te=(e,t)=>(et||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0;const re=(e,t)=>e.length===1?ne(e[0],t[0]):ie(e,t,e.length);const ne=(e,t)=>function(r,n){return te(e(r),e(n))*t};const ie=(e,t,r)=>{t.push(0);return function(n,i){let a,o=0,s=-1;while(o===0&&++se}function oe(e,t){let r;return n=>{if(r)clearTimeout(r);r=setTimeout((()=>(t(n),r=null)),e)}}function se(e){for(let t,r,n=1,i=arguments.length;no)o=i}}}else{for(i=t(e[r]);ro)o=i}}}}return[a,o]}function ce(e,t){const r=e.length;let n=-1,i,a,o,s,l;if(t==null){while(++n=a){i=o=a;break}}if(n===r)return[-1,-1];s=l=n;while(++na){i=a;s=n}if(o=a){i=o=a;break}}if(n===r)return[-1,-1];s=l=n;while(++na){i=a;s=n}if(o{i.set(t,e[t])}));return i}function pe(e,t,r,n,i,a){if(!r&&r!==0)return a;const o=+r;let s=e[0],l=D(e),c;if(la){o=i;i=a;a=o}r=r===undefined||r;n=n===undefined||n;return(r?i<=e:ie.replace(/\\(.)/g,"$1"))):q(e)}const i=e&&e.length,a=r&&r.get||o,s=e=>a(t?[e]:u(e));let l;if(!i){l=function(){return""}}else if(i===1){const t=s(e[0]);l=function(e){return""+t(e)}}else{const t=e.map(s);l=function(e){let r=""+t[0](e),n=0;while(++n{t={};r={};n=0};const a=(i,a)=>{if(++n>e){r=t;t={};n=1}return t[i]=a};i();return{clear:i,has:e=>ue(t,e)||ue(r,e),get:e=>ue(t,e)?t[e]:ue(r,e)?a(e,r[e]):undefined,set:(e,r)=>ue(t,e)?t[e]=r:a(e,r)}}function Ne(e,t,r,n){const i=t.length,a=r.length;if(!a)return t;if(!i)return r;const o=n||new t.constructor(i+a);let s=0,l=0,c=0;for(;s0?r[l++]:t[s++]}for(;s=0)r+=e;return r}function Le(e,t,r,n){const i=r||" ",a=e+"",o=t-a.length;return o<=0?a:n==="left"?Se(i,o)+a:n==="center"?Se(i,~~(o/2))+a+Se(i,Math.ceil(o/2)):a+Se(i,o)}function Te(e){return e&&D(e)-e[0]||0}function Re(e){return I(e)?"["+e.map(Re)+"]":N(e)||we(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function De(e){return e==null||e===""?null:!e||e==="false"||e==="0"?false:!!e}const ke=e=>be(e)?e:me(e)?e:Date.parse(e);function Ce(e,t){t=t||ke;return e==null||e===""?null:t(e)}function Fe(e){return e==null||e===""?null:e+""}function je(e){const t={},r=e.length;for(let n=0;n{a.d(e,{CP:()=>l,HT:()=>h,PB:()=>d,aC:()=>c,lC:()=>n,m:()=>o,tk:()=>i});var s=a(75905);var r=a(16750);var i=(0,s.K2)(((t,e)=>{const a=t.append("rect");a.attr("x",e.x);a.attr("y",e.y);a.attr("fill",e.fill);a.attr("stroke",e.stroke);a.attr("width",e.width);a.attr("height",e.height);if(e.name){a.attr("name",e.name)}if(e.rx){a.attr("rx",e.rx)}if(e.ry){a.attr("ry",e.ry)}if(e.attrs!==void 0){for(const t in e.attrs){a.attr(t,e.attrs[t])}}if(e.class){a.attr("class",e.class)}return a}),"drawRect");var n=(0,s.K2)(((t,e)=>{const a={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};const s=i(t,a);s.lower()}),"drawBackgroundRect");var o=(0,s.K2)(((t,e)=>{const a=e.text.replace(s.H1," ");const r=t.append("text");r.attr("x",e.x);r.attr("y",e.y);r.attr("class","legend");r.style("text-anchor",e.anchor);if(e.class){r.attr("class",e.class)}const i=r.append("tspan");i.attr("x",e.x+e.textMargin*2);i.text(a);return r}),"drawText");var c=(0,s.K2)(((t,e,a,s)=>{const i=t.append("image");i.attr("x",e);i.attr("y",a);const n=(0,r.J)(s);i.attr("xlink:href",n)}),"drawImage");var l=(0,s.K2)(((t,e,a,s)=>{const i=t.append("use");i.attr("x",e);i.attr("y",a);const n=(0,r.J)(s);i.attr("xlink:href",`#${n}`)}),"drawEmbeddedImage");var d=(0,s.K2)((()=>{const t={x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0};return t}),"getNoteRect");var h=(0,s.K2)((()=>{const t={x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:true};return t}),"getTextObj")},13249:(t,e,a)=>{a.d(e,{m:()=>r});var s=a(75905);var r=class{constructor(t){this.init=t;this.records=this.init()}static{(0,s.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},38038:(t,e,a)=>{a.d(e,{diagram:()=>Tt});var s=a(60148);var r=a(13249);var i=a(96049);var n=a(75905);var o=a(24982);var c=a(16750);var l=function(){var t=(0,n.K2)((function(t,e,a,s){for(a=a||{},s=t.length;s--;a[t[s]]=e);return a}),"o"),e=[1,2],a=[1,3],s=[1,4],r=[2,4],i=[1,9],o=[1,11],c=[1,13],l=[1,14],d=[1,16],h=[1,17],p=[1,18],g=[1,24],u=[1,25],f=[1,26],x=[1,27],y=[1,28],b=[1,29],m=[1,30],T=[1,31],E=[1,32],w=[1,33],v=[1,34],k=[1,35],I=[1,36],L=[1,37],_=[1,38],P=[1,39],A=[1,41],N=[1,42],M=[1,43],D=[1,44],S=[1,45],O=[1,46],R=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],Y=[4,5,16,50,52,53],K=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],C=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],B=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],V=[68,69,70],F=[1,122];var W={trace:(0,n.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:(0,n.K2)((function t(e,a,s,r,i,n,o){var c=n.length-1;switch(i){case 3:r.apply(n[c]);return n[c];break;case 4:case 9:this.$=[];break;case 5:case 10:n[c-1].push(n[c]);this.$=n[c-1];break;case 6:case 7:case 11:case 12:this.$=n[c];break;case 8:case 13:this.$=[];break;case 15:n[c].type="createParticipant";this.$=n[c];break;case 16:n[c-1].unshift({type:"boxStart",boxData:r.parseBoxData(n[c-2])});n[c-1].push({type:"boxEnd",boxText:n[c-2]});this.$=n[c-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(n[c-2]),sequenceIndexStep:Number(n[c-1]),sequenceVisible:true,signalType:r.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(n[c-1]),sequenceIndexStep:1,sequenceVisible:true,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:false,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:true,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:n[c-1].actor};break;case 23:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:n[c-1].actor};break;case 29:r.setDiagramTitle(n[c].substring(6));this.$=n[c].substring(6);break;case 30:r.setDiagramTitle(n[c].substring(7));this.$=n[c].substring(7);break;case 31:this.$=n[c].trim();r.setAccTitle(this.$);break;case 32:case 33:this.$=n[c].trim();r.setAccDescription(this.$);break;case 34:n[c-1].unshift({type:"loopStart",loopText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.LOOP_START});n[c-1].push({type:"loopEnd",loopText:n[c-2],signalType:r.LINETYPE.LOOP_END});this.$=n[c-1];break;case 35:n[c-1].unshift({type:"rectStart",color:r.parseMessage(n[c-2]),signalType:r.LINETYPE.RECT_START});n[c-1].push({type:"rectEnd",color:r.parseMessage(n[c-2]),signalType:r.LINETYPE.RECT_END});this.$=n[c-1];break;case 36:n[c-1].unshift({type:"optStart",optText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.OPT_START});n[c-1].push({type:"optEnd",optText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.OPT_END});this.$=n[c-1];break;case 37:n[c-1].unshift({type:"altStart",altText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.ALT_START});n[c-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END});this.$=n[c-1];break;case 38:n[c-1].unshift({type:"parStart",parText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.PAR_START});n[c-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END});this.$=n[c-1];break;case 39:n[c-1].unshift({type:"parStart",parText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.PAR_OVER_START});n[c-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END});this.$=n[c-1];break;case 40:n[c-1].unshift({type:"criticalStart",criticalText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.CRITICAL_START});n[c-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END});this.$=n[c-1];break;case 41:n[c-1].unshift({type:"breakStart",breakText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.BREAK_START});n[c-1].push({type:"breakEnd",optText:r.parseMessage(n[c-2]),signalType:r.LINETYPE.BREAK_END});this.$=n[c-1];break;case 43:this.$=n[c-3].concat([{type:"option",optionText:r.parseMessage(n[c-1]),signalType:r.LINETYPE.CRITICAL_OPTION},n[c]]);break;case 45:this.$=n[c-3].concat([{type:"and",parText:r.parseMessage(n[c-1]),signalType:r.LINETYPE.PAR_AND},n[c]]);break;case 47:this.$=n[c-3].concat([{type:"else",altText:r.parseMessage(n[c-1]),signalType:r.LINETYPE.ALT_ELSE},n[c]]);break;case 48:n[c-3].draw="participant";n[c-3].type="addParticipant";n[c-3].description=r.parseMessage(n[c-1]);this.$=n[c-3];break;case 49:n[c-1].draw="participant";n[c-1].type="addParticipant";this.$=n[c-1];break;case 50:n[c-3].draw="actor";n[c-3].type="addParticipant";n[c-3].description=r.parseMessage(n[c-1]);this.$=n[c-3];break;case 51:n[c-1].draw="actor";n[c-1].type="addParticipant";this.$=n[c-1];break;case 52:n[c-1].type="destroyParticipant";this.$=n[c-1];break;case 53:this.$=[n[c-1],{type:"addNote",placement:n[c-2],actor:n[c-1].actor,text:n[c]}];break;case 54:n[c-2]=[].concat(n[c-1],n[c-1]).slice(0,2);n[c-2][0]=n[c-2][0].actor;n[c-2][1]=n[c-2][1].actor;this.$=[n[c-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:n[c-2].slice(0,2),text:n[c]}];break;case 55:this.$=[n[c-1],{type:"addLinks",actor:n[c-1].actor,text:n[c]}];break;case 56:this.$=[n[c-1],{type:"addALink",actor:n[c-1].actor,text:n[c]}];break;case 57:this.$=[n[c-1],{type:"addProperties",actor:n[c-1].actor,text:n[c]}];break;case 58:this.$=[n[c-1],{type:"addDetails",actor:n[c-1].actor,text:n[c]}];break;case 61:this.$=[n[c-2],n[c]];break;case 62:this.$=n[c];break;case 63:this.$=r.PLACEMENT.LEFTOF;break;case 64:this.$=r.PLACEMENT.RIGHTOF;break;case 65:this.$=[n[c-4],n[c-1],{type:"addMessage",from:n[c-4].actor,to:n[c-1].actor,signalType:n[c-3],msg:n[c],activate:true},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:n[c-1].actor}];break;case 66:this.$=[n[c-4],n[c-1],{type:"addMessage",from:n[c-4].actor,to:n[c-1].actor,signalType:n[c-3],msg:n[c]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:n[c-4].actor}];break;case 67:this.$=[n[c-3],n[c-1],{type:"addMessage",from:n[c-3].actor,to:n[c-1].actor,signalType:n[c-2],msg:n[c]}];break;case 68:this.$={type:"addParticipant",actor:n[c]};break;case 69:this.$=r.LINETYPE.SOLID_OPEN;break;case 70:this.$=r.LINETYPE.DOTTED_OPEN;break;case 71:this.$=r.LINETYPE.SOLID;break;case 72:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=r.LINETYPE.DOTTED;break;case 74:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=r.LINETYPE.SOLID_CROSS;break;case 76:this.$=r.LINETYPE.DOTTED_CROSS;break;case 77:this.$=r.LINETYPE.SOLID_POINT;break;case 78:this.$=r.LINETYPE.DOTTED_POINT;break;case 79:this.$=r.parseMessage(n[c].trim().substring(1));break}}),"anonymous"),table:[{3:1,4:e,5:a,6:s},{1:[3]},{3:5,4:e,5:a,6:s},{3:6,4:e,5:a,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:o,8:8,9:10,12:12,13:c,14:l,17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},t(R,[2,5]),{9:47,12:12,13:c,14:l,17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},t(R,[2,7]),t(R,[2,8]),t(R,[2,14]),{12:48,50:L,52:_,53:P},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:O},{22:55,70:O},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(R,[2,29]),t(R,[2,30]),{32:[1,61]},{34:[1,62]},t(R,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:O},{22:72,70:O},{22:73,70:O},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:O},{22:90,70:O},{22:91,70:O},{22:92,70:O},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(R,[2,6]),t(R,[2,15]),t(Y,[2,9],{10:93}),t(R,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(R,[2,21]),{5:[1,97]},{5:[1,98]},t(R,[2,24]),t(R,[2,25]),t(R,[2,26]),t(R,[2,27]),t(R,[2,28]),t(R,[2,31]),t(R,[2,32]),t(K,r,{7:99}),t(K,r,{7:100}),t(K,r,{7:101}),t(C,r,{40:102,7:103}),t(B,r,{42:104,7:105}),t(B,r,{7:105,42:106}),t($,r,{45:107,7:108}),t(K,r,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:O},t(V,[2,69]),t(V,[2,70]),t(V,[2,71]),t(V,[2,72]),t(V,[2,73]),t(V,[2,74]),t(V,[2,75]),t(V,[2,76]),t(V,[2,77]),t(V,[2,78]),{22:118,70:O},{22:120,58:119,70:O},{70:[2,63]},{70:[2,64]},{56:121,81:F},{56:123,81:F},{56:124,81:F},{56:125,81:F},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:L,52:_,53:P},{5:[1,131]},t(R,[2,19]),t(R,[2,20]),t(R,[2,22]),t(R,[2,23]),{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,132],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,133],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,134],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{16:[1,135]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,46],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,49:[1,136],50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{16:[1,137]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,44],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,48:[1,138],50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{16:[1,139]},{16:[1,140]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,42],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,47:[1,141],50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,142],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:f,33:x,35:y,36:b,37:m,38:T,39:E,41:w,43:v,44:k,46:I,50:L,52:_,53:P,54:A,59:N,60:M,61:D,62:S,70:O},{15:[1,143]},t(R,[2,49]),{15:[1,144]},t(R,[2,51]),t(R,[2,52]),{22:145,70:O},{22:146,70:O},{56:147,81:F},{56:148,81:F},{56:149,81:F},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(R,[2,16]),t(Y,[2,10]),{12:151,50:L,52:_,53:P},t(Y,[2,12]),t(Y,[2,13]),t(R,[2,18]),t(R,[2,34]),t(R,[2,35]),t(R,[2,36]),t(R,[2,37]),{15:[1,152]},t(R,[2,38]),{15:[1,153]},t(R,[2,39]),t(R,[2,40]),{15:[1,154]},t(R,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:F},{56:158,81:F},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:O},t(Y,[2,11]),t(C,r,{7:103,40:160}),t(B,r,{7:105,42:161}),t($,r,{7:108,45:162}),t(R,[2,48]),t(R,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:(0,n.K2)((function t(e,a){if(a.recoverable){this.trace(e)}else{var s=new Error(e);s.hash=a;throw s}}),"parseError"),parse:(0,n.K2)((function t(e){var a=this,s=[0],r=[],i=[null],o=[],c=this.table,l="",d=0,h=0,p=0,g=2,u=1;var f=o.slice.call(arguments,1);var x=Object.create(this.lexer);var y={yy:{}};for(var b in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,b)){y.yy[b]=this.yy[b]}}x.setInput(e,y.yy);y.yy.lexer=x;y.yy.parser=this;if(typeof x.yylloc=="undefined"){x.yylloc={}}var m=x.yylloc;o.push(m);var T=x.options&&x.options.ranges;if(typeof y.yy.parseError==="function"){this.parseError=y.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(t){s.length=s.length-2*t;i.length=i.length-t;o.length=o.length-t}(0,n.K2)(E,"popStack");function w(){var t;t=r.pop()||x.lex()||u;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=a.symbols_[t]||t}return t}(0,n.K2)(w,"lex");var v,k,I,L,_,P,A={},N,M,D,S;while(true){I=s[s.length-1];if(this.defaultActions[I]){L=this.defaultActions[I]}else{if(v===null||typeof v=="undefined"){v=w()}L=c[I]&&c[I][v]}if(typeof L==="undefined"||!L.length||!L[0]){var O="";S=[];for(N in c[I]){if(this.terminals_[N]&&N>g){S.push("'"+this.terminals_[N]+"'")}}if(x.showPosition){O="Parse error on line "+(d+1)+":\n"+x.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'"}else{O="Parse error on line "+(d+1)+": Unexpected "+(v==u?"end of input":"'"+(this.terminals_[v]||v)+"'")}this.parseError(O,{text:x.match,token:this.terminals_[v]||v,line:x.yylineno,loc:m,expected:S})}if(L[0]instanceof Array&&L.length>1){throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v)}switch(L[0]){case 1:s.push(v);i.push(x.yytext);o.push(x.yylloc);s.push(L[1]);v=null;if(!k){h=x.yyleng;l=x.yytext;d=x.yylineno;m=x.yylloc;if(p>0){p--}}else{v=k;k=null}break;case 2:M=this.productions_[L[1]][1];A.$=i[i.length-M];A._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column};if(T){A._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]}P=this.performAction.apply(A,[l,h,d,y.yy,L[1],i,o].concat(f));if(typeof P!=="undefined"){return P}if(M){s=s.slice(0,-1*M*2);i=i.slice(0,-1*M);o=o.slice(0,-1*M)}s.push(this.productions_[L[1]][0]);i.push(A.$);o.push(A._$);D=c[s[s.length-2]][s[s.length-1]];s.push(D);break;case 3:return true}}return true}),"parse")};var q=function(){var t={EOF:1,parseError:(0,n.K2)((function t(e,a){if(this.yy.parser){this.yy.parser.parseError(e,a)}else{throw new Error(e)}}),"parseError"),setInput:(0,n.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,n.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,n.K2)((function(t){var e=t.length;var a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(a.length-1){this.yylineno-=a.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===s.length?this.yylloc.first_column:0)+s[s.length-a.length].length-a[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,n.K2)((function(){this._more=true;return this}),"more"),reject:(0,n.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,n.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,n.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,n.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,n.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,n.K2)((function(t,e){var a,s,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}s=t[0].match(/(?:\r\n?|\n).*/g);if(s){this.yylineno+=s.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(a){return a}else if(this._backtrack){for(var i in r){this[i]=r[i]}return false}return false}),"test_match"),next:(0,n.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,a,s;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var i=0;ie[0].length)){e=a;s=i;if(this.options.backtrack_lexer){t=this.test_match(a,r[i]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[s]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,n.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,n.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,n.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,n.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,n.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,n.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,n.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,n.K2)((function t(e,a,s,r){var i=r;switch(s){case 0:return 5;break;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;break;case 7:this.begin("LINE");return 14;break;case 8:this.begin("ID");return 50;break;case 9:this.begin("ID");return 52;break;case 10:return 13;break;case 11:this.begin("ID");return 53;break;case 12:a.yytext=a.yytext.trim();this.begin("ALIAS");return 70;break;case 13:this.popState();this.popState();this.begin("LINE");return 51;break;case 14:this.popState();this.popState();return 5;break;case 15:this.begin("LINE");return 36;break;case 16:this.begin("LINE");return 37;break;case 17:this.begin("LINE");return 38;break;case 18:this.begin("LINE");return 39;break;case 19:this.begin("LINE");return 49;break;case 20:this.begin("LINE");return 41;break;case 21:this.begin("LINE");return 43;break;case 22:this.begin("LINE");return 48;break;case 23:this.begin("LINE");return 44;break;case 24:this.begin("LINE");return 47;break;case 25:this.begin("LINE");return 46;break;case 26:this.popState();return 15;break;case 27:return 16;break;case 28:return 65;break;case 29:return 66;break;case 30:return 59;break;case 31:return 60;break;case 32:return 61;break;case 33:return 62;break;case 34:return 57;break;case 35:return 54;break;case 36:this.begin("ID");return 21;break;case 37:this.begin("ID");return 23;break;case 38:return 29;break;case 39:return 30;break;case 40:this.begin("acc_title");return 31;break;case 41:this.popState();return"acc_title_value";break;case 42:this.begin("acc_descr");return 33;break;case 43:this.popState();return"acc_descr_value";break;case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";break;case 47:return 6;break;case 48:return 18;break;case 49:return 20;break;case 50:return 64;break;case 51:return 5;break;case 52:a.yytext=a.yytext.trim();return 70;break;case 53:return 73;break;case 54:return 74;break;case 55:return 75;break;case 56:return 76;break;case 57:return 71;break;case 58:return 72;break;case 59:return 77;break;case 60:return 78;break;case 61:return 79;break;case 62:return 80;break;case 63:return 81;break;case 64:return 68;break;case 65:return 69;break;case 66:return 5;break;case 67:return"INVALID";break}}),"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:false},acc_descr:{rules:[43],inclusive:false},acc_title:{rules:[41],inclusive:false},ID:{rules:[2,3,12],inclusive:false},ALIAS:{rules:[2,3,13,14],inclusive:false},LINE:{rules:[2,3,26],inclusive:false},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:true}}};return t}();W.lexer=q;function z(){this.yy={}}(0,n.K2)(z,"Parser");z.prototype=W;W.Parser=z;return new z}();l.parser=l;var d=l;var h={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34};var p={FILLED:0,OPEN:1};var g={LEFTOF:0,RIGHTOF:1,OVER:2};var u=class{constructor(){this.state=new r.m((()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:false,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})));this.setAccTitle=n.SV;this.setAccDescription=n.EI;this.setDiagramTitle=n.ke;this.getAccTitle=n.iN;this.getAccDescription=n.m7;this.getDiagramTitle=n.ab;this.apply=this.apply.bind(this);this.parseBoxData=this.parseBoxData.bind(this);this.parseMessage=this.parseMessage.bind(this);this.clear();this.setWrap((0,n.D7)().wrap);this.LINETYPE=h;this.ARROWTYPE=p;this.PLACEMENT=g}static{(0,n.K2)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]});this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,s){let r=this.state.records.currentBox;const i=this.state.records.actors.get(t);if(i){if(this.state.records.currentBox&&i.box&&this.state.records.currentBox!==i.box){throw new Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`)}r=i.box?i.box:this.state.records.currentBox;i.box=r;if(i&&e===i.name&&a==null){return}}if(a?.text==null){a={text:e,type:s}}if(s==null||a.text==null){a={text:e,type:s}}this.state.records.actors.set(t,{box:r,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s??"participant"});if(this.state.records.prevActor){const e=this.state.records.actors.get(this.state.records.prevActor);if(e){e.nextActor=t}}if(this.state.records.currentBox){this.state.records.currentBox.actorKeys.push(t)}this.state.records.prevActor=t}activationCount(t){let e;let a=0;if(!t){return 0}for(e=0;e>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]};throw e}}this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:s,activate:r});return true}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((t=>t.name))}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=true}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=false}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0){return{}}t=t.trim();const e=/^:?wrap:/.exec(t)!==null?true:/^:?nowrap:/.exec(t)!==null?false:void 0;const a=(e===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim();return{cleanedText:a,wrap:e}}autoWrap(){if(this.state.records.wrapEnabled!==void 0){return this.state.records.wrapEnabled}return(0,n.D7)().sequence?.wrap??false}clear(){this.state.reset();(0,n.IU)()}parseMessage(t){const e=t.trim();const{wrap:a,cleanedText:s}=this.extractWrap(e);const r={text:s,wrap:a};n.Rm.debug(`parseMessage: ${JSON.stringify(r)}`);return r}parseBoxData(t){const e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let a=e?.[1]?e[1].trim():"transparent";let s=e?.[2]?e[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",a)){a="transparent";s=t.trim()}}else{const e=(new Option).style;e.color=a;if(e.color!==a){a="transparent";s=t.trim()}}const{wrap:r,cleanedText:i}=this.extractWrap(s);return{text:i?(0,n.jZ)(i,(0,n.D7)()):void 0,color:a,wrap:r}}addNote(t,e,a){const s={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()};const r=[].concat(t,t);this.state.records.notes.push(s);this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:r[0],to:r[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){const a=this.getActor(t);try{let t=(0,n.jZ)(e.text,(0,n.D7)());t=t.replace(/=/g,"=");t=t.replace(/&/g,"&");const s=JSON.parse(t);this.insertLinks(a,s)}catch(s){n.Rm.error("error while parsing actor link text",s)}}addALink(t,e){const a=this.getActor(t);try{const t={};let s=(0,n.jZ)(e.text,(0,n.D7)());const r=s.indexOf("@");s=s.replace(/=/g,"=");s=s.replace(/&/g,"&");const i=s.slice(0,r-1).trim();const o=s.slice(r+1).trim();t[i]=o;this.insertLinks(a,t)}catch(s){n.Rm.error("error while parsing actor link text",s)}}insertLinks(t,e){if(t.links==null){t.links=e}else{for(const a in e){t.links[a]=e[a]}}}addProperties(t,e){const a=this.getActor(t);try{const t=(0,n.jZ)(e.text,(0,n.D7)());const s=JSON.parse(t);this.insertProperties(a,s)}catch(s){n.Rm.error("error while parsing actor properties text",s)}}insertProperties(t,e){if(t.properties==null){t.properties=e}else{for(const a in e){t.properties[a]=e[a]}}}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){const a=this.getActor(t);const s=document.getElementById(e.text);try{const t=s.innerHTML;const e=JSON.parse(t);if(e.properties){this.insertProperties(a,e.properties)}if(e.links){this.insertLinks(a,e.links)}}catch(r){n.Rm.error("error while parsing actor details text",r)}}getActorProperty(t,e){if(t?.properties!==void 0){return t.properties[e]}return void 0}apply(t){if(Array.isArray(t)){t.forEach((t=>{this.apply(t)}))}else{switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:false,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(this.state.records.actors.has(t.actor)){throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior")}this.state.records.lastCreated=t.actor;this.addActor(t.actor,t.actor,t.description,t.draw);this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor;this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated){throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.")}else{this.state.records.lastCreated=void 0}}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed){throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.")}else{this.state.records.lastDestroyed=void 0}}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":(0,n.SV)(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}}getConfig(){return(0,n.D7)().sequence}};var f=(0,n.K2)((t=>`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`),"getStyles");var x=f;var y=18*2;var b="actor-top";var m="actor-bottom";var T="actor-box";var E="actor-man";var w=(0,n.K2)((function(t,e){return(0,s.tk)(t,e)}),"drawRect");var v=(0,n.K2)((function(t,e,a,s,r){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0){return{height:0,width:0}}const i=e.links;const n=e.actorCnt;const o=e.rectData;var l="none";if(r){l="block !important"}const d=t.append("g");d.attr("id","actor"+n+"_popup");d.attr("class","actorPopupMenu");d.attr("display",l);var h="";if(o.class!==void 0){h=" "+o.class}let p=o.width>a?o.width:a;const g=d.append("rect");g.attr("class","actorPopupMenuPanel"+h);g.attr("x",o.x);g.attr("y",o.height);g.attr("fill",o.fill);g.attr("stroke",o.stroke);g.attr("width",p);g.attr("height",o.height);g.attr("rx",o.rx);g.attr("ry",o.ry);if(i!=null){var u=20;for(let t in i){var f=d.append("a");var x=(0,c.J)(i[t]);f.attr("xlink:href",x);f.attr("target","_blank");U(s)(t,f,o.x+10,o.height+u,p,20,{class:"actor"},s);u+=30}}g.attr("height",u);return{height:o.height+u,width:p}}),"drawPopup");var k=(0,n.K2)((function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"}),"popupMenuToggle");var I=(0,n.K2)((async function(t,e,a=null){let s=t.append("foreignObject");const r=await(0,n.VJ)(e.text,(0,n.zj)());const i=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(r);const o=i.node().getBoundingClientRect();s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width));if(e.class==="noteText"){const a=t.node().firstChild;a.setAttribute("height",o.height+2*e.textMargin);const r=a.getBBox();s.attr("x",Math.round(r.x+r.width/2-o.width/2)).attr("y",Math.round(r.y+r.height/2-o.height/2))}else if(a){let{startx:t,stopx:r,starty:i}=a;if(t>r){const e=t;t=r;r=e}s.attr("x",Math.round(t+Math.abs(t-r)/2-o.width/2));if(e.class==="loopText"){s.attr("y",Math.round(i))}else{s.attr("y",Math.round(i-o.height))}}return[s]}),"drawKatex");var L=(0,n.K2)((function(t,e){let a=0;let s=0;const r=e.text.split(n.Y2.lineBreakRegex);const[o,c]=(0,i.I5)(e.fontSize);let l=[];let d=0;let h=(0,n.K2)((()=>e.y),"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0){switch(e.valign){case"top":case"start":h=(0,n.K2)((()=>Math.round(e.y+e.textMargin)),"yfunc");break;case"middle":case"center":h=(0,n.K2)((()=>Math.round(e.y+(a+s+e.textMargin)/2)),"yfunc");break;case"bottom":case"end":h=(0,n.K2)((()=>Math.round(e.y+(a+s+2*e.textMargin)-e.textMargin)),"yfunc");break}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0){switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin);e.anchor="start";e.dominantBaseline="middle";e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2);e.anchor="middle";e.dominantBaseline="middle";e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin);e.anchor="end";e.dominantBaseline="middle";e.alignmentBaseline="middle";break}}for(let[n,p]of r.entries()){if(e.textMargin!==void 0&&e.textMargin===0&&o!==void 0){d=n*o}const r=t.append("text");r.attr("x",e.x);r.attr("y",h());if(e.anchor!==void 0){r.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline)}if(e.fontFamily!==void 0){r.style("font-family",e.fontFamily)}if(c!==void 0){r.style("font-size",c)}if(e.fontWeight!==void 0){r.style("font-weight",e.fontWeight)}if(e.fill!==void 0){r.attr("fill",e.fill)}if(e.class!==void 0){r.attr("class",e.class)}if(e.dy!==void 0){r.attr("dy",e.dy)}else if(d!==0){r.attr("dy",d)}const g=p||i.pe;if(e.tspan){const t=r.append("tspan");t.attr("x",e.x);if(e.fill!==void 0){t.attr("fill",e.fill)}t.text(g)}else{r.text(g)}if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0){s+=(r._groups||r)[0][0].getBBox().height;a=s}l.push(r)}return l}),"drawText");var _=(0,n.K2)((function(t,e){function a(t,e,a,s,r){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+s-r)+" "+(t+a-r*1.2)+","+(e+s)+" "+t+","+(e+s)}(0,n.K2)(a,"genPoints");const s=t.append("polygon");s.attr("points",a(e.x,e.y,e.width,e.height,7));s.attr("class","labelBox");e.y=e.y+e.height/2;L(t,e);return s}),"drawLabel");var P=-1;var A=(0,n.K2)(((t,e,a,s)=>{if(!t.select){return}a.forEach((a=>{const r=e.get(a);const i=t.select("#actor"+r.actorCnt);if(!s.mirrorActors&&r.stopy){i.attr("y2",r.stopy+r.height/2)}else if(s.mirrorActors){i.attr("y2",r.stopy)}}))}),"fixLifeLineHeights");var N=(0,n.K2)((function(t,e,a,r){const i=r?e.stopy:e.starty;const o=e.x+e.width/2;const c=i+e.height;const l=t.append("g").lower();var d=l;if(!r){P++;if(Object.keys(e.links||{}).length&&!a.forceMenus){d.attr("onclick",k(`actor${P}_popup`)).attr("cursor","pointer")}d.append("line").attr("id","actor"+P).attr("x1",o).attr("y1",c).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);d=l.append("g");e.actorCnt=P;if(e.links!=null){d.attr("id","root-"+P)}}const h=(0,s.PB)();var p="actor";if(e.properties?.class){p=e.properties.class}else{h.fill="#eaeaea"}if(r){p+=` ${m}`}else{p+=` ${b}`}h.x=e.x;h.y=i;h.width=e.width;h.height=e.height;h.class=p;h.rx=3;h.ry=3;h.name=e.name;const g=w(d,h);e.rectData=h;if(e.properties?.icon){const t=e.properties.icon.trim();if(t.charAt(0)==="@"){(0,s.CP)(d,h.x+h.width-20,h.y+10,t.substr(1))}else{(0,s.aC)(d,h.x+h.width-20,h.y+10,t)}}j(a,(0,n.Wi)(e.description))(e.description,d,h.x,h.y,h.width,h.height,{class:`actor ${T}`},a);let u=e.height;if(g.node){const t=g.node().getBBox();e.height=t.height;u=t.height}return u}),"drawActorTypeParticipant");var M=(0,n.K2)((function(t,e,a,r){const i=r?e.stopy:e.starty;const o=e.x+e.width/2;const c=i+80;const l=t.append("g").lower();if(!r){P++;l.append("line").attr("id","actor"+P).attr("x1",o).attr("y1",c).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);e.actorCnt=P}const d=t.append("g");let h=E;if(r){h+=` ${m}`}else{h+=` ${b}`}d.attr("class",h);d.attr("name",e.name);const p=(0,s.PB)();p.x=e.x;p.y=i;p.fill="#eaeaea";p.width=e.width;p.height=e.height;p.class="actor";p.rx=3;p.ry=3;d.append("line").attr("id","actor-man-torso"+P).attr("x1",o).attr("y1",i+25).attr("x2",o).attr("y2",i+45);d.append("line").attr("id","actor-man-arms"+P).attr("x1",o-y/2).attr("y1",i+33).attr("x2",o+y/2).attr("y2",i+33);d.append("line").attr("x1",o-y/2).attr("y1",i+60).attr("x2",o).attr("y2",i+45);d.append("line").attr("x1",o).attr("y1",i+45).attr("x2",o+y/2-2).attr("y2",i+60);const g=d.append("circle");g.attr("cx",e.x+e.width/2);g.attr("cy",i+10);g.attr("r",15);g.attr("width",e.width);g.attr("height",e.height);const u=d.node().getBBox();e.height=u.height;j(a,(0,n.Wi)(e.description))(e.description,d,p.x,p.y+35,p.width,p.height,{class:`actor ${E}`},a);return e.height}),"drawActorTypeActor");var D=(0,n.K2)((async function(t,e,a,s){switch(e.type){case"actor":return await M(t,e,a,s);case"participant":return await N(t,e,a,s)}}),"drawActor");var S=(0,n.K2)((function(t,e,a){const s=t.append("g");const r=s;K(r,e);if(e.name){j(a)(e.name,r,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a)}r.lower()}),"drawBox");var O=(0,n.K2)((function(t){return t.append("g")}),"anchorElement");var R=(0,n.K2)((function(t,e,a,r,i){const n=(0,s.PB)();const o=e.anchored;n.x=e.startx;n.y=e.starty;n.class="activation"+i%3;n.width=e.stopx-e.startx;n.height=a-e.starty;w(o,n)}),"drawActivation");var Y=(0,n.K2)((async function(t,e,a,r){const{boxMargin:i,boxTextMargin:o,labelBoxHeight:c,labelBoxWidth:l,messageFontFamily:d,messageFontSize:h,messageFontWeight:p}=r;const g=t.append("g");const u=(0,n.K2)((function(t,e,a,s){return g.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",s).attr("class","loopLine")}),"drawLoopLine");u(e.startx,e.starty,e.stopx,e.starty);u(e.stopx,e.starty,e.stopx,e.stopy);u(e.startx,e.stopy,e.stopx,e.stopy);u(e.startx,e.starty,e.startx,e.stopy);if(e.sections!==void 0){e.sections.forEach((function(t){u(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}))}let f=(0,s.HT)();f.text=a;f.x=e.startx;f.y=e.starty;f.fontFamily=d;f.fontSize=h;f.fontWeight=p;f.anchor="middle";f.valign="middle";f.tspan=false;f.width=l||50;f.height=c||20;f.textMargin=o;f.class="labelText";_(g,f);f=z();f.text=e.title;f.x=e.startx+l/2+(e.stopx-e.startx)/2;f.y=e.starty+i+o;f.anchor="middle";f.valign="middle";f.textMargin=o;f.class="loopText";f.fontFamily=d;f.fontSize=h;f.fontWeight=p;f.wrap=true;let x=(0,n.Wi)(f.text)?await I(g,f,e):L(g,f);if(e.sectionTitles!==void 0){for(const[t,a]of Object.entries(e.sectionTitles)){if(a.message){f.text=a.message;f.x=e.startx+(e.stopx-e.startx)/2;f.y=e.sections[t].y+i+o;f.class="loopText";f.anchor="middle";f.valign="middle";f.tspan=false;f.fontFamily=d;f.fontSize=h;f.fontWeight=p;f.wrap=e.wrap;if((0,n.Wi)(f.text)){e.starty=e.sections[t].y;await I(g,f,e)}else{L(g,f)}let s=Math.round(x.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[t].height+=s-(i+o)}}}e.height=Math.round(e.stopy-e.starty);return g}),"drawLoop");var K=(0,n.K2)((function(t,e){(0,s.lC)(t,e)}),"drawBackgroundRect");var C=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}),"insertDatabaseIcon");var B=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}),"insertComputerIcon");var $=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}),"insertClockIcon");var V=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")}),"insertArrowHead");var F=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"insertArrowFilledHead");var W=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}),"insertSequenceNumber");var q=(0,n.K2)((function(t){const e=t.append("defs");const a=e.append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5);a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")}),"insertArrowCrossHead");var z=(0,n.K2)((function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:true,valign:void 0}}),"getTextObj");var H=(0,n.K2)((function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect");var j=function(){function t(t,e,a,s,i,n,o){const c=e.append("text").attr("x",a+i/2).attr("y",s+n/2+5).style("text-anchor","middle").text(t);r(c,o)}(0,n.K2)(t,"byText");function e(t,e,a,s,o,c,l,d){const{actorFontSize:h,actorFontFamily:p,actorFontWeight:g}=d;const[u,f]=(0,i.I5)(h);const x=t.split(n.Y2.lineBreakRegex);for(let i=0;it.height||0)))+(this.loops.length===0?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(this.messages.length===0?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(this.notes.length===0?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))}),"getHeight"),clear:(0,n.K2)((function(){this.actors=[];this.boxes=[];this.loops=[];this.messages=[];this.notes=[]}),"clear"),addBox:(0,n.K2)((function(t){this.boxes.push(t)}),"addBox"),addActor:(0,n.K2)((function(t){this.actors.push(t)}),"addActor"),addLoop:(0,n.K2)((function(t){this.loops.push(t)}),"addLoop"),addMessage:(0,n.K2)((function(t){this.messages.push(t)}),"addMessage"),addNote:(0,n.K2)((function(t){this.notes.push(t)}),"addNote"),lastActor:(0,n.K2)((function(){return this.actors[this.actors.length-1]}),"lastActor"),lastLoop:(0,n.K2)((function(){return this.loops[this.loops.length-1]}),"lastLoop"),lastMessage:(0,n.K2)((function(){return this.messages[this.messages.length-1]}),"lastMessage"),lastNote:(0,n.K2)((function(){return this.notes[this.notes.length-1]}),"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,n.K2)((function(){this.sequenceItems=[];this.activations=[];this.models.clear();this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0};this.verticalPos=0;ot((0,n.D7)())}),"init"),updateVal:(0,n.K2)((function(t,e,a,s){if(t[e]===void 0){t[e]=a}else{t[e]=s(a,t[e])}}),"updateVal"),updateBounds:(0,n.K2)((function(t,e,a,s){const r=this;let i=0;function o(o){return(0,n.K2)((function n(c){i++;const l=r.sequenceItems.length-i+1;r.updateVal(c,"starty",e-l*J.boxMargin,Math.min);r.updateVal(c,"stopy",s+l*J.boxMargin,Math.max);r.updateVal(G.data,"startx",t-l*J.boxMargin,Math.min);r.updateVal(G.data,"stopx",a+l*J.boxMargin,Math.max);if(!(o==="activation")){r.updateVal(c,"startx",t-l*J.boxMargin,Math.min);r.updateVal(c,"stopx",a+l*J.boxMargin,Math.max);r.updateVal(G.data,"starty",e-l*J.boxMargin,Math.min);r.updateVal(G.data,"stopy",s+l*J.boxMargin,Math.max)}}),"updateItemBounds")}(0,n.K2)(o,"updateFn");this.sequenceItems.forEach(o());this.activations.forEach(o("activation"))}),"updateBounds"),insert:(0,n.K2)((function(t,e,a,s){const r=n.Y2.getMin(t,a);const i=n.Y2.getMax(t,a);const o=n.Y2.getMin(e,s);const c=n.Y2.getMax(e,s);this.updateVal(G.data,"startx",r,Math.min);this.updateVal(G.data,"starty",o,Math.min);this.updateVal(G.data,"stopx",i,Math.max);this.updateVal(G.data,"stopy",c,Math.max);this.updateBounds(r,o,i,c)}),"insert"),newActivation:(0,n.K2)((function(t,e,a){const s=a.get(t.from);const r=ct(t.from).length||0;const i=s.x+s.width/2+(r-1)*J.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+J.activationWidth,stopy:void 0,actor:t.from,anchored:X.anchorElement(e)})}),"newActivation"),endActivation:(0,n.K2)((function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from);return this.activations.splice(e,1)[0]}),"endActivation"),createLoop:(0,n.K2)((function(t={message:void 0,wrap:false,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}}),"createLoop"),newLoop:(0,n.K2)((function(t={message:void 0,wrap:false,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))}),"newLoop"),endLoop:(0,n.K2)((function(){return this.sequenceItems.pop()}),"endLoop"),isLoopOverlap:(0,n.K2)((function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:false}),"isLoopOverlap"),addSectionToLoop:(0,n.K2)((function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[];e.sectionTitles=e.sectionTitles||[];e.sections.push({y:G.getVerticalPos(),height:0});e.sectionTitles.push(t);this.sequenceItems.push(e)}),"addSectionToLoop"),saveVerticalPos:(0,n.K2)((function(){if(this.isLoopOverlap()){this.savedVerticalPos=this.verticalPos}}),"saveVerticalPos"),resetVerticalPos:(0,n.K2)((function(){if(this.isLoopOverlap()){this.verticalPos=this.savedVerticalPos}}),"resetVerticalPos"),bumpVerticalPos:(0,n.K2)((function(t){this.verticalPos=this.verticalPos+t;this.data.stopy=n.Y2.getMax(this.data.stopy,this.verticalPos)}),"bumpVerticalPos"),getVerticalPos:(0,n.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,n.K2)((function(){return{bounds:this.data,models:this.models}}),"getBounds")};var Z=(0,n.K2)((async function(t,e){G.bumpVerticalPos(J.boxMargin);e.height=J.boxMargin;e.starty=G.getVerticalPos();const a=(0,s.PB)();a.x=e.startx;a.y=e.starty;a.width=e.width||J.width;a.class="note";const r=t.append("g");const i=X.drawRect(r,a);const o=(0,s.HT)();o.x=e.startx;o.y=e.starty;o.width=a.width;o.dy="1em";o.text=e.message;o.class="noteText";o.fontFamily=J.noteFontFamily;o.fontSize=J.noteFontSize;o.fontWeight=J.noteFontWeight;o.anchor=J.noteAlign;o.textMargin=J.noteMargin;o.valign="center";const c=(0,n.Wi)(o.text)?await I(r,o):L(r,o);const l=Math.round(c.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));i.attr("height",l+2*J.noteMargin);e.height+=l+2*J.noteMargin;G.bumpVerticalPos(l+2*J.noteMargin);e.stopy=e.starty+l+2*J.noteMargin;e.stopx=e.startx+a.width;G.insert(e.startx,e.starty,e.stopx,e.stopy);G.models.addNote(e)}),"drawNote");var Q=(0,n.K2)((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");var tt=(0,n.K2)((t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight})),"noteFont");var et=(0,n.K2)((t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight})),"actorFont");async function at(t,e){G.bumpVerticalPos(10);const{startx:a,stopx:s,message:r}=e;const o=n.Y2.splitBreaks(r).length;const c=(0,n.Wi)(r);const l=c?await(0,n.Dl)(r,(0,n.D7)()):i._K.calculateTextDimensions(r,Q(J));if(!c){const t=l.height/o;e.height+=t;G.bumpVerticalPos(t)}let d;let h=l.height-10;const p=l.width;if(a===s){d=G.getVerticalPos()+h;if(!J.rightAngles){h+=J.boxMargin;d=G.getVerticalPos()+h}h+=30;const t=n.Y2.getMax(p/2,J.width/2);G.insert(a-t,G.getVerticalPos()-10+h,s+t,G.getVerticalPos()+30+h)}else{h+=J.boxMargin;d=G.getVerticalPos()+h;G.insert(a,d-10,s,d)}G.bumpVerticalPos(h);e.height+=h;e.stopy=e.starty+e.height;G.insert(e.fromBounds,e.starty,e.toBounds,e.stopy);return d}(0,n.K2)(at,"boundMessage");var st=(0,n.K2)((async function(t,e,a,r){const{startx:o,stopx:c,starty:l,message:d,type:h,sequenceIndex:p,sequenceVisible:g}=e;const u=i._K.calculateTextDimensions(d,Q(J));const f=(0,s.HT)();f.x=o;f.y=l+10;f.width=c-o;f.class="messageText";f.dy="1em";f.text=d;f.fontFamily=J.messageFontFamily;f.fontSize=J.messageFontSize;f.fontWeight=J.messageFontWeight;f.anchor=J.messageAlign;f.valign="center";f.textMargin=J.wrapPadding;f.tspan=false;if((0,n.Wi)(f.text)){await I(t,f,{startx:o,stopx:c,starty:a})}else{L(t,f)}const x=u.width;let y;if(o===c){if(J.rightAngles){y=t.append("path").attr("d",`M ${o},${a} H ${o+n.Y2.getMax(J.width/2,x/2)} V ${a+25} H ${o}`)}else{y=t.append("path").attr("d","M "+o+","+a+" C "+(o+60)+","+(a-10)+" "+(o+60)+","+(a+30)+" "+o+","+(a+20))}}else{y=t.append("line");y.attr("x1",o);y.attr("y1",a);y.attr("x2",c);y.attr("y2",a)}if(h===r.db.LINETYPE.DOTTED||h===r.db.LINETYPE.DOTTED_CROSS||h===r.db.LINETYPE.DOTTED_POINT||h===r.db.LINETYPE.DOTTED_OPEN||h===r.db.LINETYPE.BIDIRECTIONAL_DOTTED){y.style("stroke-dasharray","3, 3");y.attr("class","messageLine1")}else{y.attr("class","messageLine0")}let b="";if(J.arrowMarkerAbsolute){b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;b=b.replace(/\(/g,"\\(");b=b.replace(/\)/g,"\\)")}y.attr("stroke-width",2);y.attr("stroke","none");y.style("fill","none");if(h===r.db.LINETYPE.SOLID||h===r.db.LINETYPE.DOTTED){y.attr("marker-end","url("+b+"#arrowhead)")}if(h===r.db.LINETYPE.BIDIRECTIONAL_SOLID||h===r.db.LINETYPE.BIDIRECTIONAL_DOTTED){y.attr("marker-start","url("+b+"#arrowhead)");y.attr("marker-end","url("+b+"#arrowhead)")}if(h===r.db.LINETYPE.SOLID_POINT||h===r.db.LINETYPE.DOTTED_POINT){y.attr("marker-end","url("+b+"#filled-head)")}if(h===r.db.LINETYPE.SOLID_CROSS||h===r.db.LINETYPE.DOTTED_CROSS){y.attr("marker-end","url("+b+"#crosshead)")}if(g||J.showSequenceNumbers){y.attr("marker-start","url("+b+"#sequencenumber)");t.append("text").attr("x",o).attr("y",a+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(p)}}),"drawMessage");var rt=(0,n.K2)((function(t,e,a,s,r,i,o){let c=0;let l=0;let d=void 0;let h=0;for(const p of s){const t=e.get(p);const s=t.box;if(d&&d!=s){if(!o){G.models.addBox(d)}l+=J.boxMargin+d.margin}if(s&&s!=d){if(!o){s.x=c+l;s.y=r}l+=s.margin}t.width=t.width||J.width;t.height=n.Y2.getMax(t.height||J.height,J.height);t.margin=t.margin||J.actorMargin;h=n.Y2.getMax(h,t.height);if(a.get(t.name)){l+=t.width/2}t.x=c+l;t.starty=G.getVerticalPos();G.insert(t.x,r,t.x+t.width,t.height);c+=t.width+l;if(t.box){t.box.width=c+s.margin-t.box.x}l=t.margin;d=t.box;G.models.addActor(t)}if(d&&!o){G.models.addBox(d)}G.bumpVerticalPos(h)}),"addActorRenderingData");var it=(0,n.K2)((async function(t,e,a,s){if(!s){for(const s of a){const a=e.get(s);await X.drawActor(t,a,J,false)}}else{let s=0;G.bumpVerticalPos(J.boxMargin*2);for(const r of a){const a=e.get(r);if(!a.stopy){a.stopy=G.getVerticalPos()}const i=await X.drawActor(t,a,J,true);s=n.Y2.getMax(s,i)}G.bumpVerticalPos(s+J.boxMargin)}}),"drawActors");var nt=(0,n.K2)((function(t,e,a,s){let r=0;let i=0;for(const n of a){const a=e.get(n);const o=ut(a);const c=X.drawPopup(t,a,o,J,J.forceMenus,s);if(c.height>r){r=c.height}if(c.width+a.x>i){i=c.width+a.x}}return{maxHeight:r,maxWidth:i}}),"drawActorsPopup");var ot=(0,n.K2)((function(t){(0,n.hH)(J,t);if(t.fontFamily){J.actorFontFamily=J.noteFontFamily=J.messageFontFamily=t.fontFamily}if(t.fontSize){J.actorFontSize=J.noteFontSize=J.messageFontSize=t.fontSize}if(t.fontWeight){J.actorFontWeight=J.noteFontWeight=J.messageFontWeight=t.fontWeight}}),"setConf");var ct=(0,n.K2)((function(t){return G.activations.filter((function(e){return e.actor===t}))}),"actorActivations");var lt=(0,n.K2)((function(t,e){const a=e.get(t);const s=ct(t);const r=s.reduce((function(t,e){return n.Y2.getMin(t,e.startx)}),a.x+a.width/2-1);const i=s.reduce((function(t,e){return n.Y2.getMax(t,e.stopx)}),a.x+a.width/2+1);return[r,i]}),"activationBounds");function dt(t,e,a,s,r){G.bumpVerticalPos(a);let o=s;if(e.id&&e.message&&t[e.id]){const a=t[e.id].width;const r=Q(J);e.message=i._K.wrapLabel(`[${e.message}]`,a-2*J.wrapPadding,r);e.width=a;e.wrap=true;const c=i._K.calculateTextDimensions(e.message,r);const l=n.Y2.getMax(c.height,J.labelBoxHeight);o=s+l;n.Rm.debug(`${l} - ${e.message}`)}r(e);G.bumpVerticalPos(o)}(0,n.K2)(dt,"adjustLoopHeightForWrap");function ht(t,e,a,s,r,i,o){function c(a,s){if(a.x{t.add(e.from);t.add(e.to)}));x=x.filter((e=>t.has(e)))}rt(h,p,g,x,0,y,false);const w=await bt(y,p,E,s);X.insertArrowHead(h);X.insertArrowCrossHead(h);X.insertArrowFilledHead(h);X.insertSequenceNumber(h);function v(t,e){const a=G.endActivation(t);if(a.starty+18>e){a.starty=e-6;e+=12}X.drawActivation(h,a,e,J,ct(t.from).length);G.insert(a.startx,e-10,a.stopx,e)}(0,n.K2)(v,"activeEnd");let k=1;let I=1;const L=[];const _=[];let P=0;for(const o of y){let t,e,a;switch(o.type){case s.db.LINETYPE.NOTE:G.resetVerticalPos();e=o.noteModel;await Z(h,e);break;case s.db.LINETYPE.ACTIVE_START:G.newActivation(o,h,p);break;case s.db.LINETYPE.ACTIVE_END:v(o,G.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));break;case s.db.LINETYPE.LOOP_END:t=G.endLoop();await X.drawLoop(h,t,"loop",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;case s.db.LINETYPE.RECT_START:dt(w,o,J.boxMargin,J.boxMargin,(t=>G.newLoop(void 0,t.message)));break;case s.db.LINETYPE.RECT_END:t=G.endLoop();_.push(t);G.models.addLoop(t);G.bumpVerticalPos(t.stopy-G.getVerticalPos());break;case s.db.LINETYPE.OPT_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));break;case s.db.LINETYPE.OPT_END:t=G.endLoop();await X.drawLoop(h,t,"opt",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;case s.db.LINETYPE.ALT_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));break;case s.db.LINETYPE.ALT_ELSE:dt(w,o,J.boxMargin+J.boxTextMargin,J.boxMargin,(t=>G.addSectionToLoop(t)));break;case s.db.LINETYPE.ALT_END:t=G.endLoop();await X.drawLoop(h,t,"alt",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));G.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:dt(w,o,J.boxMargin+J.boxTextMargin,J.boxMargin,(t=>G.addSectionToLoop(t)));break;case s.db.LINETYPE.PAR_END:t=G.endLoop();await X.drawLoop(h,t,"par",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;case s.db.LINETYPE.AUTONUMBER:k=o.message.start||k;I=o.message.step||I;if(o.message.visible){s.db.enableSequenceNumbers()}else{s.db.disableSequenceNumbers()}break;case s.db.LINETYPE.CRITICAL_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));break;case s.db.LINETYPE.CRITICAL_OPTION:dt(w,o,J.boxMargin+J.boxTextMargin,J.boxMargin,(t=>G.addSectionToLoop(t)));break;case s.db.LINETYPE.CRITICAL_END:t=G.endLoop();await X.drawLoop(h,t,"critical",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;case s.db.LINETYPE.BREAK_START:dt(w,o,J.boxMargin,J.boxMargin+J.boxTextMargin,(t=>G.newLoop(t)));break;case s.db.LINETYPE.BREAK_END:t=G.endLoop();await X.drawLoop(h,t,"break",J);G.bumpVerticalPos(t.stopy-G.getVerticalPos());G.models.addLoop(t);break;default:try{a=o.msgModel;a.starty=G.getVerticalPos();a.sequenceIndex=k;a.sequenceVisible=s.db.showSequenceNumbers();const t=await at(h,a);ht(o,a,t,P,p,g,u);L.push({messageModel:a,lineStartY:t});G.models.addMessage(a)}catch(K){n.Rm.error("error while drawing message",K)}}if([s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(o.type)){k=k+I}P++}n.Rm.debug("createdActors",g);n.Rm.debug("destroyedActors",u);await it(h,p,x,false);for(const n of L){await st(h,n.messageModel,n.lineStartY,s)}if(J.mirrorActors){await it(h,p,x,true)}_.forEach((t=>X.drawBackgroundRect(h,t)));A(h,p,x,J);for(const n of G.models.boxes){n.height=G.getVerticalPos()-n.y;G.insert(n.x,n.y,n.x+n.width,n.height);n.startx=n.x;n.starty=n.y;n.stopx=n.startx+n.width;n.stopy=n.starty+n.height;n.stroke="rgb(0,0,0, 0.5)";X.drawBox(h,n,J)}if(m){G.bumpVerticalPos(J.boxMargin)}const N=nt(h,p,x,d);const{bounds:M}=G.getBounds();if(M.startx===void 0){M.startx=0}if(M.starty===void 0){M.starty=0}if(M.stopx===void 0){M.stopx=0}if(M.stopy===void 0){M.stopy=0}let D=M.stopy-M.starty;if(D{const a=Q(J);let s=e.actorKeys.reduce(((e,a)=>e+=t.get(a).width+(t.get(a).margin||0)),0);s-=2*J.boxTextMargin;if(e.wrap){e.name=i._K.wrapLabel(e.name,s-2*J.wrapPadding,a)}const o=i._K.calculateTextDimensions(e.name,a);r=n.Y2.getMax(o.height,r);const c=n.Y2.getMax(s,o.width+2*J.wrapPadding);e.margin=J.boxTextMargin;if(st.textMaxHeight=r));return n.Y2.getMax(s,J.height)}(0,n.K2)(ft,"calculateActorMargins");var xt=(0,n.K2)((async function(t,e,a){const s=e.get(t.from);const r=e.get(t.to);const o=s.x;const c=r.x;const l=t.wrap&&t.message;let d=(0,n.Wi)(t.message)?await(0,n.Dl)(t.message,(0,n.D7)()):i._K.calculateTextDimensions(l?i._K.wrapLabel(t.message,J.width,tt(J)):t.message,tt(J));const h={width:l?J.width:n.Y2.getMax(J.width,d.width+2*J.noteMargin),height:0,startx:s.x,stopx:0,starty:0,stopy:0,message:t.message};if(t.placement===a.db.PLACEMENT.RIGHTOF){h.width=l?n.Y2.getMax(J.width,d.width):n.Y2.getMax(s.width/2+r.width/2,d.width+2*J.noteMargin);h.startx=o+(s.width+J.actorMargin)/2}else if(t.placement===a.db.PLACEMENT.LEFTOF){h.width=l?n.Y2.getMax(J.width,d.width+2*J.noteMargin):n.Y2.getMax(s.width/2+r.width/2,d.width+2*J.noteMargin);h.startx=o-h.width+(s.width-J.actorMargin)/2}else if(t.to===t.from){d=i._K.calculateTextDimensions(l?i._K.wrapLabel(t.message,n.Y2.getMax(J.width,s.width),tt(J)):t.message,tt(J));h.width=l?n.Y2.getMax(J.width,s.width):n.Y2.getMax(s.width,J.width,d.width+2*J.noteMargin);h.startx=o+(s.width-h.width)/2}else{h.width=Math.abs(o+s.width/2-(c+r.width/2))+J.actorMargin;h.startx=o2;const g=(0,n.K2)((t=>l?-t:t),"adjustValue");if(t.from===t.to){h=d}else{if(t.activate&&!p){h+=g(J.activationWidth/2-1)}if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN].includes(t.type)){h+=g(3)}if([a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)){d-=g(3)}}const u=[s,r,o,c];const f=Math.abs(d-h);if(t.wrap&&t.message){t.message=i._K.wrapLabel(t.message,n.Y2.getMax(f+2*J.wrapPadding,J.width),Q(J))}const x=i._K.calculateTextDimensions(t.message,Q(J));return{width:n.Y2.getMax(t.wrap?0:x.width+2*J.wrapPadding,f+2*J.wrapPadding,J.width),height:0,startx:d,stopx:h,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}}),"buildMessageModel");var bt=(0,n.K2)((async function(t,e,a,s){const r={};const i=[];let o,c,l;for(const d of t){switch(d.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:i.push({id:d.id,msg:d.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:if(d.message){o=i.pop();r[o.id]=o;r[d.id]=o;i.push(o)}break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:o=i.pop();r[o.id]=o;break;case s.db.LINETYPE.ACTIVE_START:{const t=e.get(d.from?d.from:d.to.actor);const a=ct(d.from?d.from:d.to.actor).length;const s=t.x+t.width/2+(a-1)*J.activationWidth/2;const r={startx:s,stopx:s+J.activationWidth,actor:d.from,enabled:true};G.activations.push(r)}break;case s.db.LINETYPE.ACTIVE_END:{const t=G.activations.map((t=>t.actor)).lastIndexOf(d.from);G.activations.splice(t,1).splice(0,1)}break}const t=d.placement!==void 0;if(t){c=await xt(d,e,s);d.noteModel=c;i.forEach((t=>{o=t;o.from=n.Y2.getMin(o.from,c.startx);o.to=n.Y2.getMax(o.to,c.startx+c.width);o.width=n.Y2.getMax(o.width,Math.abs(o.from-o.to))-J.labelBoxWidth}))}else{l=yt(d,e,s);d.msgModel=l;if(l.startx&&l.stopx&&i.length>0){i.forEach((t=>{o=t;if(l.startx===l.stopx){const t=e.get(d.from);const a=e.get(d.to);o.from=n.Y2.getMin(t.x-l.width/2,t.x-t.width/2,o.from);o.to=n.Y2.getMax(a.x+l.width/2,a.x+t.width/2,o.to);o.width=n.Y2.getMax(o.width,Math.abs(o.to-o.from))-J.labelBoxWidth}else{o.from=n.Y2.getMin(l.startx,o.from);o.to=n.Y2.getMax(l.stopx,o.to);o.width=n.Y2.getMax(o.width,l.width)-J.labelBoxWidth}}))}}}G.activations=[];n.Rm.debug("Loop type widths:",r);return r}),"calculateLoopBounds");var mt={bounds:G,drawActors:it,drawActorsPopup:nt,setConf:ot,draw:pt};var Tt={parser:d,get db(){return new u},renderer:mt,styles:x,init:(0,n.K2)((t=>{if(!t.sequence){t.sequence={}}if(t.wrap){t.sequence.wrap=t.wrap;(0,n.XV)({sequence:{wrap:t.wrap}})}}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/805.2a0b8ac50aa8e6ab096f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/805.2a0b8ac50aa8e6ab096f.js new file mode 100644 index 0000000000000000000000000000000000000000..faad3ce33b0b6919717ff787ec0174da9d6c5425 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/805.2a0b8ac50aa8e6ab096f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[805],{27574:(t,e,i)=>{i.d(e,{A:()=>a});var s=i(57991);var r=i(63221);const n=(t,e)=>s.A.lang.round(r.A.parse(t)[e]);const a=n},15051:(t,e,i)=>{i.d(e,{A:()=>n,P:()=>a});var s=i(75905);var r=i(24982);var n=(0,s.K2)(((t,e)=>{let i;if(e==="sandbox"){i=(0,r.Ltv)("#i"+t)}const s=e==="sandbox"?(0,r.Ltv)(i.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=s.select(`[id="${t}"]`);return n}),"getDiagramElement");var a=(0,s.K2)(((t,e,i,r)=>{t.attr("class",i);const{width:n,height:a,x:l,y:h}=c(t,e);(0,s.a$)(t,a,n,r);const u=o(l,h,n,a,e);t.attr("viewBox",u);s.Rm.debug(`viewBox configured: ${u} with padding: ${e}`)}),"setupViewPortForSVG");var c=(0,s.K2)(((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}}),"calculateDimensionsWithPadding");var o=(0,s.K2)(((t,e,i,s,r)=>`${t-r} ${e-r} ${i} ${s}`),"createViewBox")},70805:(t,e,i)=>{i.d(e,{diagram:()=>O});var s=i(15051);var r=i(94065);var n=i(33416);var a=i(94746);var c=i(20778);var o=i(57590);var l=i(68232);var h=i(76261);var u=i(96049);var y=i(75905);var d=i(24982);var b=i(27574);var p=i(3635);var f=function(){var t=(0,y.K2)((function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i}),"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],i=[1,10],s=[1,11],r=[1,12],n=[1,13],a=[1,20],c=[1,21],o=[1,22],l=[1,23],h=[1,24],u=[1,19],d=[1,25],b=[1,26],p=[1,18],f=[1,33],k=[1,34],_=[1,35],g=[1,36],m=[1,37],E=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],v=[1,42],S=[1,43],O=[1,52],T=[40,50,68,69],A=[1,63],R=[1,61],N=[1,58],I=[1,62],x=[1,64],C=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],$=[63,64,65,66,67],D=[1,81],w=[1,80],K=[1,78],L=[1,79],M=[6,10,42,47],B=[6,10,13,41,42,47,48,49],F=[1,89],P=[1,88],Y=[1,87],G=[19,56],z=[1,98],U=[1,97],Z=[19,56,58,60];var j={trace:(0,y.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:(0,y.K2)((function t(e,i,s,r,n,a,c){var o=a.length-1;switch(n){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]);this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(a[o-4]);r.addEntity(a[o-2]);r.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:r.addEntity(a[o-8]);r.addEntity(a[o-4]);r.addRelationship(a[o-8],a[o],a[o-4],a[o-5]);r.setClass([a[o-8]],a[o-6]);r.setClass([a[o-4]],a[o-2]);break;case 10:r.addEntity(a[o-6]);r.addEntity(a[o-2]);r.addRelationship(a[o-6],a[o],a[o-2],a[o-3]);r.setClass([a[o-6]],a[o-4]);break;case 11:r.addEntity(a[o-6]);r.addEntity(a[o-4]);r.addRelationship(a[o-6],a[o],a[o-4],a[o-5]);r.setClass([a[o-4]],a[o-2]);break;case 12:r.addEntity(a[o-3]);r.addAttributes(a[o-3],a[o-1]);break;case 13:r.addEntity(a[o-5]);r.addAttributes(a[o-5],a[o-1]);r.setClass([a[o-5]],a[o-3]);break;case 14:r.addEntity(a[o-2]);break;case 15:r.addEntity(a[o-4]);r.setClass([a[o-4]],a[o-2]);break;case 16:r.addEntity(a[o]);break;case 17:r.addEntity(a[o-2]);r.setClass([a[o-2]],a[o]);break;case 18:r.addEntity(a[o-6],a[o-4]);r.addAttributes(a[o-6],a[o-1]);break;case 19:r.addEntity(a[o-8],a[o-6]);r.addAttributes(a[o-8],a[o-1]);r.setClass([a[o-8]],a[o-3]);break;case 20:r.addEntity(a[o-5],a[o-3]);break;case 21:r.addEntity(a[o-7],a[o-5]);r.setClass([a[o-7]],a[o-2]);break;case 22:r.addEntity(a[o-3],a[o-1]);break;case 23:r.addEntity(a[o-5],a[o-3]);r.setClass([a[o-5]],a[o]);break;case 24:case 25:this.$=a[o].trim();r.setAccTitle(this.$);break;case 26:case 27:this.$=a[o].trim();r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=a[o-3];r.addClass(a[o-2],a[o-1]);break;case 37:case 38:case 56:case 64:this.$=[a[o]];break;case 39:case 40:this.$=a[o-2].concat([a[o]]);break;case 41:this.$=a[o-2];r.setClass(a[o-1],a[o]);break;case 42:;this.$=a[o-3];r.addCssStyles(a[o-2],a[o-1]);break;case 43:this.$=[a[o]];break;case 44:a[o-2].push(a[o]);this.$=a[o-2];break;case 46:this.$=a[o-1]+a[o];break;case 54:case 76:case 77:this.$=a[o].replace(/"/g,"");break;case 55:case 78:this.$=a[o];break;case 57:a[o].push(a[o-1]);this.$=a[o];break;case 58:this.$={type:a[o-1],name:a[o]};break;case 59:this.$={type:a[o-2],name:a[o-1],keys:a[o]};break;case 60:this.$={type:a[o-2],name:a[o-1],comment:a[o]};break;case 61:this.$={type:a[o-3],name:a[o-2],keys:a[o-1],comment:a[o]};break;case 62:case 63:case 66:this.$=a[o];break;case 65:a[o-2].push(a[o]);this.$=a[o-2];break;case 67:this.$=a[o].replace(/"/g,"");break;case 68:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:i,24:s,26:r,28:n,29:14,30:15,31:16,32:17,33:a,34:c,35:o,36:l,37:h,40:u,43:d,44:b,50:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:27,11:9,22:i,24:s,26:r,28:n,29:14,30:15,31:16,32:17,33:a,34:c,35:o,36:l,37:h,40:u,43:d,44:b,50:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:f,64:k,65:_,66:g,67:m}),{23:[1,38]},{25:[1,39]},{27:[1,40]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(E,[2,54]),t(E,[2,55]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:41,40:v,41:S},{16:44,40:v,41:S},{16:45,40:v,41:S},t(e,[2,4]),{11:46,40:u,50:p},{16:47,40:v,41:S},{18:48,19:[1,49],51:50,52:51,56:O},{11:53,40:u,50:p},{62:54,68:[1,55],69:[1,56]},t(T,[2,69]),t(T,[2,70]),t(T,[2,71]),t(T,[2,72]),t(T,[2,73]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:A,38:57,41:R,42:N,45:59,46:60,48:I,49:x},t(C,[2,37]),t(C,[2,38]),{16:65,40:v,41:S,42:N},{13:A,38:66,41:R,42:N,45:59,46:60,48:I,49:x},{13:[1,67],15:[1,68]},t(e,[2,17],{61:32,12:69,17:[1,70],42:N,63:f,64:k,65:_,66:g,67:m}),{19:[1,71]},t(e,[2,14]),{18:72,19:[2,56],51:50,52:51,56:O},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:f,64:k,65:_,66:g,67:m},t($,[2,74]),t($,[2,75]),{6:D,10:w,39:77,42:K,47:L},{40:[1,82],41:[1,83]},t(M,[2,43],{46:84,13:A,41:R,48:I,49:x}),t(B,[2,45]),t(B,[2,50]),t(B,[2,51]),t(B,[2,52]),t(B,[2,53]),t(e,[2,41],{42:N}),{6:D,10:w,39:85,42:K,47:L},{14:86,40:F,50:P,70:Y},{16:90,40:v,41:S},{11:91,40:u,50:p},{18:92,19:[1,93],51:50,52:51,56:O},t(e,[2,12]),{19:[2,57]},t(G,[2,58],{54:94,55:95,57:96,59:z,60:U}),t([19,56,59,60],[2,63]),t(e,[2,22],{15:[1,100],17:[1,99]}),t([40,50],[2,68]),t(e,[2,36]),{13:A,41:R,45:101,46:60,48:I,49:x},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(C,[2,39]),t(C,[2,40]),t(B,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,76]),t(e,[2,77]),t(e,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},t(e,[2,15]),t(G,[2,59],{55:106,58:[1,107],60:U}),t(G,[2,60]),t(Z,[2,64]),t(G,[2,67]),t(Z,[2,66]),{18:108,19:[1,109],51:50,52:51,56:O},{16:110,40:v,41:S},t(M,[2,44],{46:84,13:A,41:R,48:I,49:x}),{14:111,40:F,50:P,70:Y},{16:112,40:v,41:S},{14:113,40:F,50:P,70:Y},t(e,[2,13]),t(G,[2,61]),{57:114,59:z},{19:[1,115]},t(e,[2,20]),t(e,[2,23],{17:[1,116],42:N}),t(e,[2,11]),{13:[1,117],42:N},t(e,[2,10]),t(Z,[2,65]),t(e,[2,18]),{18:118,19:[1,119],51:50,52:51,56:O},{14:120,40:F,50:P,70:Y},{19:[1,121]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:(0,y.K2)((function t(e,i){if(i.recoverable){this.trace(e)}else{var s=new Error(e);s.hash=i;throw s}}),"parseError"),parse:(0,y.K2)((function t(e){var i=this,s=[0],r=[],n=[null],a=[],c=this.table,o="",l=0,h=0,u=0,d=2,b=1;var p=a.slice.call(arguments,1);var f=Object.create(this.lexer);var k={yy:{}};for(var _ in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,_)){k.yy[_]=this.yy[_]}}f.setInput(e,k.yy);k.yy.lexer=f;k.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var g=f.yylloc;a.push(g);var m=f.options&&f.options.ranges;if(typeof k.yy.parseError==="function"){this.parseError=k.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(t){s.length=s.length-2*t;n.length=n.length-t;a.length=a.length-t}(0,y.K2)(E,"popStack");function v(){var t;t=r.pop()||f.lex()||b;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=i.symbols_[t]||t}return t}(0,y.K2)(v,"lex");var S,O,T,A,R,N,I={},x,C,$,D;while(true){T=s[s.length-1];if(this.defaultActions[T]){A=this.defaultActions[T]}else{if(S===null||typeof S=="undefined"){S=v()}A=c[T]&&c[T][S]}if(typeof A==="undefined"||!A.length||!A[0]){var w="";D=[];for(x in c[T]){if(this.terminals_[x]&&x>d){D.push("'"+this.terminals_[x]+"'")}}if(f.showPosition){w="Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[S]||S)+"'"}else{w="Parse error on line "+(l+1)+": Unexpected "+(S==b?"end of input":"'"+(this.terminals_[S]||S)+"'")}this.parseError(w,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:g,expected:D})}if(A[0]instanceof Array&&A.length>1){throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+S)}switch(A[0]){case 1:s.push(S);n.push(f.yytext);a.push(f.yylloc);s.push(A[1]);S=null;if(!O){h=f.yyleng;o=f.yytext;l=f.yylineno;g=f.yylloc;if(u>0){u--}}else{S=O;O=null}break;case 2:C=this.productions_[A[1]][1];I.$=n[n.length-C];I._$={first_line:a[a.length-(C||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(C||1)].first_column,last_column:a[a.length-1].last_column};if(m){I._$.range=[a[a.length-(C||1)].range[0],a[a.length-1].range[1]]}N=this.performAction.apply(I,[o,h,l,k.yy,A[1],n,a].concat(p));if(typeof N!=="undefined"){return N}if(C){s=s.slice(0,-1*C*2);n=n.slice(0,-1*C);a=a.slice(0,-1*C)}s.push(this.productions_[A[1]][0]);n.push(I.$);a.push(I._$);$=c[s[s.length-2]][s[s.length-1]];s.push($);break;case 3:return true}}return true}),"parse")};var W=function(){var t={EOF:1,parseError:(0,y.K2)((function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}}),"parseError"),setInput:(0,y.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,y.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,y.K2)((function(t){var e=t.length;var i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(i.length-1){this.yylineno-=i.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,y.K2)((function(){this._more=true;return this}),"more"),reject:(0,y.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,y.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,y.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,y.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,y.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,y.K2)((function(t,e){var i,s,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}s=t[0].match(/(?:\r\n?|\n).*/g);if(s){this.yylineno+=s.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(i){return i}else if(this._backtrack){for(var n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,y.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,i,s;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var n=0;ne[0].length)){e=i;s=n;if(this.options.backtrack_lexer){t=this.test_match(i,r[n]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[s]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,y.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,y.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,y.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,y.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,y.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,y.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,y.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,y.K2)((function t(e,i,s,r){var n=r;switch(s){case 0:this.begin("acc_title");return 24;break;case 1:this.popState();return"acc_title_value";break;case 2:this.begin("acc_descr");return 26;break;case 3:this.popState();return"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";break;case 7:return 33;break;case 8:return 34;break;case 9:return 35;break;case 10:return 36;break;case 11:return 10;break;case 12:break;case 13:return 8;break;case 14:return 50;break;case 15:return 70;break;case 16:return 4;break;case 17:this.begin("block");return 17;break;case 18:return 49;break;case 19:return 49;break;case 20:return 42;break;case 21:return 15;break;case 22:return 13;break;case 23:break;case 24:return 59;break;case 25:return 56;break;case 26:return 56;break;case 27:return 60;break;case 28:break;case 29:this.popState();return 19;break;case 30:return i.yytext[0];break;case 31:return 20;break;case 32:return 21;break;case 33:this.begin("style");return 44;break;case 34:this.popState();return 10;break;case 35:break;case 36:return 13;break;case 37:return 42;break;case 38:return 49;break;case 39:this.begin("style");return 37;break;case 40:return 43;break;case 41:return 63;break;case 42:return 65;break;case 43:return 65;break;case 44:return 65;break;case 45:return 63;break;case 46:return 63;break;case 47:return 64;break;case 48:return 64;break;case 49:return 64;break;case 50:return 64;break;case 51:return 64;break;case 52:return 65;break;case 53:return 64;break;case 54:return 65;break;case 55:return 66;break;case 56:return 66;break;case 57:return 66;break;case 58:return 66;break;case 59:return 63;break;case 60:return 64;break;case 61:return 65;break;case 62:return 67;break;case 63:return 68;break;case 64:return 69;break;case 65:return 69;break;case 66:return 68;break;case 67:return 68;break;case 68:return 68;break;case 69:return 41;break;case 70:return 47;break;case 71:return 40;break;case 72:return 48;break;case 73:return i.yytext[0];break;case 74:return 6;break}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:false},acc_descr_multiline:{rules:[5,6],inclusive:false},acc_descr:{rules:[3],inclusive:false},acc_title:{rules:[1],inclusive:false},block:{rules:[23,24,25,26,27,28,29,30],inclusive:false},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,72,73,74],inclusive:true}}};return t}();j.lexer=W;function X(){this.yy={}}(0,y.K2)(X,"Parser");X.prototype=j;j.Parser=X;return new X}();f.parser=f;var k=f;var _=class{constructor(){this.entities=new Map;this.relationships=[];this.classes=new Map;this.direction="TB";this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"};this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"};this.setAccTitle=y.SV;this.getAccTitle=y.iN;this.setAccDescription=y.EI;this.getAccDescription=y.m7;this.setDiagramTitle=y.ke;this.getDiagramTitle=y.ab;this.getConfig=(0,y.K2)((()=>(0,y.D7)().er),"getConfig");this.clear();this.addEntity=this.addEntity.bind(this);this.addAttributes=this.addAttributes.bind(this);this.addRelationship=this.addRelationship.bind(this);this.setDirection=this.setDirection.bind(this);this.addCssStyles=this.addCssStyles.bind(this);this.addClass=this.addClass.bind(this);this.setClass=this.setClass.bind(this);this.setAccTitle=this.setAccTitle.bind(this);this.setAccDescription=this.setAccDescription.bind(this)}static{(0,y.K2)(this,"ErDB")}addEntity(t,e=""){if(!this.entities.has(t)){this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:(0,y.D7)().look??"default",cssClasses:"default",cssStyles:[]});y.Rm.info("Added new entity :",t)}else if(!this.entities.get(t)?.alias&&e){this.entities.get(t).alias=e;y.Rm.info(`Add alias '${e}' to entity '${t}'`)}return this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){const i=this.addEntity(t);let s;for(s=e.length-1;s>=0;s--){if(!e[s].keys){e[s].keys=[]}if(!e[s].comment){e[s].comment=""}i.attributes.push(e[s]);y.Rm.debug("Added attribute ",e[s].name)}}addRelationship(t,e,i,s){const r=this.entities.get(t);const n=this.entities.get(i);if(!r||!n){return}const a={entityA:r.id,roleA:e,entityB:n.id,relSpec:s};this.relationships.push(a);y.Rm.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(const i of t){const t=this.classes.get(i);if(t?.styles){e=[...e,...t.styles??[]].map((t=>t.trim()))}if(t?.textStyles){e=[...e,...t.textStyles??[]].map((t=>t.trim()))}}return e}addCssStyles(t,e){for(const i of t){const t=this.entities.get(i);if(!e||!t){return}for(const i of e){t.cssStyles.push(i)}}}addClass(t,e){t.forEach((t=>{let i=this.classes.get(t);if(i===void 0){i={id:t,styles:[],textStyles:[]};this.classes.set(t,i)}if(e){e.forEach((function(t){if(/color/.exec(t)){const e=t.replace("fill","bgFill");i.textStyles.push(e)}i.styles.push(t)}))}}))}setClass(t,e){for(const i of t){const t=this.entities.get(i);if(t){for(const i of e){t.cssClasses+=" "+i}}}}clear(){this.entities=new Map;this.classes=new Map;this.relationships=[];(0,y.IU)()}getData(){const t=[];const e=[];const i=(0,y.D7)();for(const r of this.entities.keys()){const e=this.entities.get(r);if(e){e.cssCompiledStyles=this.getCompiledStyles(e.cssClasses.split(" "));t.push(e)}}let s=0;for(const r of this.relationships){const t={id:(0,u.rY)(r.entityA,r.entityB,{prefix:"id",counter:s++}),type:"normal",curve:"basis",start:r.entityA,end:r.entityB,label:r.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:r.relSpec.cardB.toLowerCase(),arrowTypeEnd:r.relSpec.cardA.toLowerCase(),pattern:r.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:i.look};e.push(t)}return{nodes:t,edges:e,other:{},config:i,direction:"TB"}}};var g={};(0,y.VA)(g,{draw:()=>m});var m=(0,y.K2)((async function(t,e,i,n){y.Rm.info("REF0:");y.Rm.info("Drawing er diagram (unified)",e);const{securityLevel:a,er:c,layout:o}=(0,y.D7)();const l=n.db.getData();const h=(0,s.A)(e,a);l.type=n.type;l.layoutAlgorithm=(0,r.q7)(o);l.config.flowchart.nodeSpacing=c?.nodeSpacing||140;l.config.flowchart.rankSpacing=c?.rankSpacing||80;l.direction=n.db.getDirection();l.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];l.diagramId=e;await(0,r.XX)(l,h);if(l.layoutAlgorithm==="elk"){h.select(".edges").lower()}const b=h.selectAll('[id*="-background"]');if(Array.from(b).length>0){b.each((function(){const t=(0,d.Ltv)(this);const e=t.attr("id");const i=e.replace("-background","");const s=h.select(`#${CSS.escape(i)}`);if(!s.empty()){const e=s.attr("transform");t.attr("transform",e)}}))}const p=8;u._K.insertTitle(h,"erDiagramTitleText",c?.titleTopMargin??25,n.db.getDiagramTitle());(0,s.P)(h,p,"erDiagram",c?.useMaxWidth??true)}),"draw");var E=(0,y.K2)(((t,e)=>{const i=b.A;const s=i(t,"r");const r=i(t,"g");const n=i(t,"b");return p.A(s,r,n,e)}),"fade");var v=(0,y.K2)((t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .labelBkg {\n background-color: ${E(t.tertiaryColor,.5)};\n }\n\n .edgeLabel .label {\n fill: ${t.nodeBorder};\n font-size: 14px;\n }\n\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .edge-pattern-dashed {\n stroke-dasharray: 8,8;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon\n {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n }\n\n .marker {\n fill: none !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n`),"getStyles");var S=v;var O={parser:k,get db(){return new _},renderer:g,styles:S}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8103.ed2b21471519b58a3d73.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8103.ed2b21471519b58a3d73.js new file mode 100644 index 0000000000000000000000000000000000000000..ff9e0cecde5e062d9279aa89ec1144c055a7468a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8103.ed2b21471519b58a3d73.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8103],{88103:(O,Q,e)=>{e.r(Q);e.d(Q,{autoCloseTags:()=>rO,completionPath:()=>L,esLint:()=>SO,javascript:()=>aO,javascriptLanguage:()=>B,jsxLanguage:()=>M,localCompletionSource:()=>A,scopeCompletionSource:()=>D,snippets:()=>k,tsxLanguage:()=>F,typescriptLanguage:()=>K,typescriptSnippets:()=>_});var a=e(27421);var i=e(45145);const t=301,$=1,r=2,S=302,n=304,P=305,o=3,Z=4;const l=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];const c=125,X=59,s=47,p=42,g=43,Y=45;const b=new a.Aj({start:false,shift(O,Q){return Q==o||Q==Z||Q==n?O:Q==P},strict:false});const f=new a.Lu(((O,Q)=>{let{next:e}=O;if((e==c||e==-1||Q.context)&&Q.canShift(S))O.acceptToken(S)}),{contextual:true,fallback:true});const h=new a.Lu(((O,Q)=>{let{next:e}=O,a;if(l.indexOf(e)>-1)return;if(e==s&&((a=O.peek(1))==s||a==p))return;if(e!=c&&e!=X&&e!=-1&&!Q.context&&Q.canShift(t))O.acceptToken(t)}),{contextual:true});const u=new a.Lu(((O,Q)=>{let{next:e}=O;if(e==g||e==Y){O.advance();if(e==O.next){O.advance();let e=!Q.context&&Q.canShift($);O.acceptToken(e?$:r)}}}),{contextual:true});const W=(0,i.styleTags)({"get set async static":i.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":i.tags.controlKeyword,"in of await yield void typeof delete instanceof":i.tags.operatorKeyword,"let var const function class extends":i.tags.definitionKeyword,"import export from":i.tags.moduleKeyword,"with debugger as new":i.tags.keyword,TemplateString:i.tags.special(i.tags.string),super:i.tags.atom,BooleanLiteral:i.tags.bool,this:i.tags.self,null:i.tags.null,Star:i.tags.modifier,VariableName:i.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.tags.function(i.tags.variableName),VariableDefinition:i.tags.definition(i.tags.variableName),Label:i.tags.labelName,PropertyName:i.tags.propertyName,PrivatePropertyName:i.tags.special(i.tags.propertyName),"CallExpression/MemberExpression/PropertyName":i.tags.function(i.tags.propertyName),"FunctionDeclaration/VariableDefinition":i.tags.function(i.tags.definition(i.tags.variableName)),"ClassDeclaration/VariableDefinition":i.tags.definition(i.tags.className),PropertyDefinition:i.tags.definition(i.tags.propertyName),PrivatePropertyDefinition:i.tags.definition(i.tags.special(i.tags.propertyName)),UpdateOp:i.tags.updateOperator,LineComment:i.tags.lineComment,BlockComment:i.tags.blockComment,Number:i.tags.number,String:i.tags.string,Escape:i.tags.escape,ArithOp:i.tags.arithmeticOperator,LogicOp:i.tags.logicOperator,BitOp:i.tags.bitwiseOperator,CompareOp:i.tags.compareOperator,RegExp:i.tags.regexp,Equals:i.tags.definitionOperator,Arrow:i.tags.function(i.tags.punctuation),": Spread":i.tags.punctuation,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace,"InterpolationStart InterpolationEnd":i.tags.special(i.tags.brace),".":i.tags.derefOperator,", ;":i.tags.separator,"@":i.tags.meta,TypeName:i.tags.typeName,TypeDefinition:i.tags.definition(i.tags.typeName),"type enum interface implements namespace module declare":i.tags.definitionKeyword,"abstract global Privacy readonly override":i.tags.modifier,"is keyof unique infer":i.tags.operatorKeyword,JSXAttributeValue:i.tags.attributeValue,JSXText:i.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":i.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.tags.attributeName,"JSXBuiltin/JSXIdentifier":i.tags.standard(i.tags.tagName)});const U={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:219,private:219,protected:219,readonly:221,instanceof:240,satisfies:243,in:244,const:246,import:278,keyof:333,unique:337,infer:343,is:379,abstract:399,implements:401,type:403,let:406,var:408,interface:415,enum:419,namespace:425,module:427,declare:431,global:435,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526};const m={__proto__:null,async:117,get:119,set:121,public:181,private:181,protected:181,static:183,abstract:185,override:187,readonly:193,accessor:195,new:383};const y={__proto__:null,"<":137};const x=a.U1.deserialize({version:14,states:"$BhO`QUOOO%QQUOOO'TQWOOP(_OSOOO*mQ(CjO'#CfO*tOpO'#CgO+SO!bO'#CgO+bO07`O'#DZO-sQUO'#DaO.TQUO'#DlO%QQUO'#DvO0[QUO'#EOOOQ(CY'#EW'#EWO0rQSO'#ETOOQO'#I_'#I_O0zQSO'#GjOOQO'#Eh'#EhO1VQSO'#EgO1[QSO'#EgO3^Q(CjO'#JbO5}Q(CjO'#JcO6kQSO'#FVO6pQ#tO'#FnOOQ(CY'#F_'#F_O6{O&jO'#F_O7ZQ,UO'#FuO8qQSO'#FtOOQ(CY'#Jc'#JcOOQ(CW'#Jb'#JbOOQQ'#J|'#J|O8vQSO'#IOO8{Q(C[O'#IPOOQQ'#JO'#JOOOQQ'#IT'#ITQ`QUOOO%QQUO'#DnO9TQUO'#DzO%QQUO'#D|O9[QSO'#GjO9aQ,UO'#ClO9oQSO'#EfO9zQSO'#EqO:PQ,UO'#F^O:nQSO'#GjO:sQSO'#GnO;OQSO'#GnO;^QSO'#GqO;^QSO'#GrO;^QSO'#GtO9[QSO'#GwO;}QSO'#GzO=`QSO'#CbO=pQSO'#HXO=xQSO'#H_O=xQSO'#HaO`QUO'#HcO=xQSO'#HeO=xQSO'#HhO=}QSO'#HnO>SQ(C]O'#HtO%QQUO'#HvO>_Q(C]O'#HxO>jQ(C]O'#HzO8{Q(C[O'#H|O>uQ(CjO'#CfO?wQWO'#DfQOQSOOO@_QSO'#EPO9aQ,UO'#EfO@jQSO'#EfO@uQ`O'#F^OOQQ'#Cd'#CdOOQ(CW'#Dk'#DkOOQ(CW'#Jf'#JfO%QQUO'#JfOBOQWO'#E_OOQ(CW'#E^'#E^OBYQ(C`O'#E_OBtQWO'#ESOOQO'#Ji'#JiOCYQWO'#ESOCgQWO'#E_OC}QWO'#EeODQQWO'#E_O@}QWO'#E_OBtQWO'#E_PDkO?MpO'#C`POOO)CDm)CDmOOOO'#IU'#IUODvOpO,59ROOQ(CY,59R,59ROOOO'#IV'#IVOEUO!bO,59RO%QQUO'#D]OOOO'#IX'#IXOEdO07`O,59uOOQ(CY,59u,59uOErQUO'#IYOFVQSO'#JdOHXQbO'#JdO+pQUO'#JdOH`QSO,59{OHvQSO'#EhOITQSO'#JqOI`QSO'#JpOI`QSO'#JpOIhQSO,5;UOImQSO'#JoOOQ(CY,5:W,5:WOItQUO,5:WOKuQ(CjO,5:bOLfQSO,5:jOLkQSO'#JmOMeQ(C[O'#JnO:sQSO'#JmOMlQSO'#JmOMtQSO,5;TOMyQSO'#JmOOQ(CY'#Cf'#CfO%QQUO'#EOONmQ`O,5:oOOQO'#Jj'#JjOOQO-E<]-E<]O9[QSO,5=UO! TQSO,5=UO! YQUO,5;RO!#]Q,UO'#EcO!$pQSO,5;RO!&YQ,UO'#DpO!&aQUO'#DuO!&kQWO,5;[O!&sQWO,5;[O%QQUO,5;[OOQQ'#E}'#E}OOQQ'#FP'#FPO%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]OOQQ'#FT'#FTO!'RQUO,5;nOOQ(CY,5;s,5;sOOQ(CY,5;t,5;tO!)UQSO,5;tOOQ(CY,5;u,5;uO%QQUO'#IeO!)^Q(C[O,5jOOQQ'#JW'#JWOOQQ,5>k,5>kOOQQ-EgQWO'#EkOOQ(CW'#Jo'#JoO!>nQ(C[O'#J}O8{Q(C[O,5=YO;^QSO,5=`OOQO'#Cr'#CrO!>yQWO,5=]O!?RQ,UO,5=^O!?^QSO,5=`O!?cQ`O,5=cO=}QSO'#G|O9[QSO'#HOO!?kQSO'#HOO9aQ,UO'#HRO!?pQSO'#HROOQQ,5=f,5=fO!?uQSO'#HSO!?}QSO'#ClO!@SQSO,58|O!@^QSO,58|O!BfQUO,58|OOQQ,58|,58|O!BsQ(C[O,58|O%QQUO,58|O!COQUO'#HZOOQQ'#H['#H[OOQQ'#H]'#H]O`QUO,5=sO!C`QSO,5=sO`QUO,5=yO`QUO,5={O!CeQSO,5=}O`QUO,5>PO!CjQSO,5>SO!CoQUO,5>YOOQQ,5>`,5>`O%QQUO,5>`O8{Q(C[O,5>bOOQQ,5>d,5>dO!GvQSO,5>dOOQQ,5>f,5>fO!GvQSO,5>fOOQQ,5>h,5>hO!G{QWO'#DXO%QQUO'#JfO!HjQWO'#JfO!IXQWO'#DgO!IjQWO'#DgO!K{QUO'#DgO!LSQSO'#JeO!L[QSO,5:QO!LaQSO'#ElO!LoQSO'#JrO!LwQSO,5;VO!L|QWO'#DgO!MZQWO'#EROOQ(CY,5:k,5:kO%QQUO,5:kO!MbQSO,5:kO=}QSO,5;QO!;xQWO,5;QO!tO+pQUO,5>tOOQO,5>z,5>zO#$vQUO'#IYOOQO-EtO$8XQSO1G5jO$8aQSO1G5vO$8iQbO1G5wO:sQSO,5>zO$8sQSO1G5sO$8sQSO1G5sO:sQSO1G5sO$8{Q(CjO1G5tO%QQUO1G5tO$9]Q(C[O1G5tO$9nQSO,5>|O:sQSO,5>|OOQO,5>|,5>|O$:SQSO,5>|OOQO-E<`-E<`OOQO1G0]1G0]OOQO1G0_1G0_O!)XQSO1G0_OOQQ7+([7+([O!#]Q,UO7+([O%QQUO7+([O$:bQSO7+([O$:mQ,UO7+([O$:{Q(CjO,59nO$=TQ(CjO,5UOOQQ,5>U,5>UO%QQUO'#HkO%&qQSO'#HmOOQQ,5>[,5>[O:sQSO,5>[OOQQ,5>^,5>^OOQQ7+)`7+)`OOQQ7+)f7+)fOOQQ7+)j7+)jOOQQ7+)l7+)lO%&vQWO1G5lO%'[Q$IUO1G0rO%'fQSO1G0rOOQO1G/m1G/mO%'qQ$IUO1G/mO=}QSO1G/mO!'RQUO'#DgOOQO,5>u,5>uOOQO-E{,5>{OOQO-E<_-E<_O!;xQWO1G/mOOQO-E<[-E<[OOQ(CY1G0X1G0XOOQ(CY7+%q7+%qO!MeQSO7+%qOOQ(CY7+&W7+&WO=}QSO7+&WO!;xQWO7+&WOOQO7+%t7+%tO$7kQ(CjO7+&POOQO7+&P7+&PO%QQUO7+&PO%'{Q(C[O7+&PO=}QSO7+%tO!;xQWO7+%tO%(WQ(C[O7+&POBtQWO7+%tO%(fQ(C[O7+&PO%(zQ(C`O7+&PO%)UQWO7+%tOBtQWO7+&PO%)cQWO7+&PO%)yQSO7++_O%)yQSO7++_O%*RQ(CjO7++`O%QQUO7++`OOQO1G4h1G4hO:sQSO1G4hO%*cQSO1G4hOOQO7+%y7+%yO!MeQSO<vOOQO-EwO%QQUO,5>wOOQO-ESQ$IUO1G0wO%>ZQ$IUO1G0wO%@RQ$IUO1G0wO%@fQ(CjO<VOOQQ,5>X,5>XO&#WQSO1G3vO:sQSO7+&^O!'RQUO7+&^OOQO7+%X7+%XO&#]Q$IUO1G5wO=}QSO7+%XOOQ(CY<zAN>zO%QQUOAN?VO=}QSOAN>zO&<^Q(C[OAN?VO!;xQWOAN>zO&zO&RO!V+iO^(qX'j(qX~O#W+mO'|%OO~Og+pO!X$yO'|%OO~O!X+rO~Oy+tO!XXO~O!t+yO~Ob,OO~O's#jO!W(sP~Ob%lO~O%a!OO's%|O~PRO!V,yO!W(fa~O!W2SO~P'TO^%^O#W2]O'j%^O~O^%^O!a#rO#W2]O'j%^O~O^%^O!a#rO!h%ZO!l2aO#W2]O'j%^O'|%OO(`'dO~O!]2bO!^2bO't!iO~PBtO![2eO!]2bO!^2bO#S2fO#T2fO't!iO~PBtO![2eO!]2bO!^2bO#P2gO#S2fO#T2fO't!iO~PBtO^%^O!a#rO!l2aO#W2]O'j%^O(`'dO~O^%^O'j%^O~P!3jO!V$^Oo$ja~O!S&|i!V&|i~P!3jO!V'xO!S(Wi~O!V(PO!S(di~O!S(ei!V(ei~P!3jO!V(]O!g(ai~O!V(bi!g(bi^(bi'j(bi~P!3jO#W2kO!V(bi!g(bi^(bi'j(bi~O|%vO!X%wO!x]O#a2nO#b2mO's%eO~O|%vO!X%wO#b2mO's%eO~Og2uO!X'QO%`2tO~Og2uO!X'QO%`2tO'|%OO~O#cvaPvaXva^vakva!eva!fva!hva!lva#fva#gva#hva#iva#jva#kva#lva#mva#nva#pva#rva#tva#uva'jva(Qva(`va!gva!Sva'hvaova!Xva%`va!ava~P#M{O#c$kaP$kaX$ka^$kak$kaz$ka!e$ka!f$ka!h$ka!l$ka#f$ka#g$ka#h$ka#i$ka#j$ka#k$ka#l$ka#m$ka#n$ka#p$ka#r$ka#t$ka#u$ka'j$ka(Q$ka(`$ka!g$ka!S$ka'h$kao$ka!X$ka%`$ka!a$ka~P#NqO#c$maP$maX$ma^$mak$maz$ma!e$ma!f$ma!h$ma!l$ma#f$ma#g$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#p$ma#r$ma#t$ma#u$ma'j$ma(Q$ma(`$ma!g$ma!S$ma'h$mao$ma!X$ma%`$ma!a$ma~P$ dO#c${aP${aX${a^${ak${az${a!V${a!e${a!f${a!h${a!l${a#f${a#g${a#h${a#i${a#j${a#k${a#l${a#m${a#n${a#p${a#r${a#t${a#u${a'j${a(Q${a(`${a!g${a!S${a'h${a#W${ao${a!X${a%`${a!a${a~P#(yO^#Zq!V#Zq'j#Zq'h#Zq!S#Zq!g#Zqo#Zq!X#Zq%`#Zq!a#Zq~P!3jOd'OX!V'OX~P!$uO!V._Od(Za~O!U2}O!V'PX!g'PX~P%QO!V.bO!g([a~O!V.bO!g([a~P!3jO!S3QO~O#x!ja!W!ja~PI{O#x!ba!V!ba!W!ba~P#?dO#x!na!W!na~P!6TO#x!pa!W!pa~P!8nO!X3dO$TfO$^3eO~O!W3iO~Oo3jO~P#(yO^$gq!V$gq'j$gq'h$gq!S$gq!g$gqo$gq!X$gq%`$gq!a$gq~P!3jO!S3kO~Ol.}O'uTO'xUO~Oy)sO|)tO(h)xOg%Wi(g%Wi!V%Wi#W%Wi~Od%Wi#x%Wi~P$HbOy)sO|)tOg%Yi(g%Yi(h%Yi!V%Yi#W%Yi~Od%Yi#x%Yi~P$ITO(`$WO~P#(yO!U3nO's%eO!V'YX!g'YX~O!V/VO!g(ma~O!V/VO!a#rO!g(ma~O!V/VO!a#rO(`'dO!g(ma~Od$ti!V$ti#W$ti#x$ti~P!-jO!U3vO's*UO!S'[X!V'[X~P!.XO!V/_O!S(na~O!V/_O!S(na~P#(yO!a#rO~O!a#rO#n4OO~Ok4RO!a#rO(`'dO~Od(Oi!V(Oi~P!-jO#W4UOd(Oi!V(Oi~P!-jO!g4XO~O^$hq!V$hq'j$hq'h$hq!S$hq!g$hqo$hq!X$hq%`$hq!a$hq~P!3jO!V4]O!X(oX~P#(yO!f#tO~P3zO!X$rX%TYX^$rX!V$rX'j$rX~P!,aO%T4_OghXyhX|hX!XhX(ghX(hhX^hX!VhX'jhX~O%T4_O~O%a4fO's+WO'uTO'xUO!V'eX!W'eX~O!V0_O!W(ua~OX4jO~O]4kO~O!S4oO~O^%^O'j%^O~P#(yO!X$yO~P#(yO!V4tO#W4vO!W(rX~O!W4wO~Ol!kO|4yO![5WO!]4}O!^4}O!x;oO!|5VO!}5UO#O5UO#P5TO#S5SO#T!wO't!iO'uTO'xUO(T!jO(_!nO~O!W5RO~P%#XOg5]O!X0zO%`5[O~Og5]O!X0zO%`5[O'|%OO~O's#jO!V'dX!W'dX~O!V1VO!W(sa~O'uTO'xUO(T5fO~O]5jO~O!g5mO~P%QO^5oO~O^5oO~P%QO#n5qO&Q5rO~PMPO_1mO!W5vO&`1lO~P`O!a5xO~O!a5zO!V(Yi!W(Yi!a(Yi!h(Yi'|(Yi~O!V#`i!W#`i~P#?dO#W5{O!V#`i!W#`i~O!V!Zi!W!Zi~P#?dO^%^O#W6UO'j%^O~O^%^O!a#rO#W6UO'j%^O~O^%^O!a#rO!l6ZO#W6UO'j%^O(`'dO~O!h%ZO'|%OO~P%(fO!]6[O!^6[O't!iO~PBtO![6_O!]6[O!^6[O#S6`O#T6`O't!iO~PBtO!V(]O!g(aq~O!V(bq!g(bq^(bq'j(bq~P!3jO|%vO!X%wO#b6dO's%eO~O!X'QO%`6gO~Og6jO!X'QO%`6gO~O#c%WiP%WiX%Wi^%Wik%Wiz%Wi!e%Wi!f%Wi!h%Wi!l%Wi#f%Wi#g%Wi#h%Wi#i%Wi#j%Wi#k%Wi#l%Wi#m%Wi#n%Wi#p%Wi#r%Wi#t%Wi#u%Wi'j%Wi(Q%Wi(`%Wi!g%Wi!S%Wi'h%Wio%Wi!X%Wi%`%Wi!a%Wi~P$HbO#c%YiP%YiX%Yi^%Yik%Yiz%Yi!e%Yi!f%Yi!h%Yi!l%Yi#f%Yi#g%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#p%Yi#r%Yi#t%Yi#u%Yi'j%Yi(Q%Yi(`%Yi!g%Yi!S%Yi'h%Yio%Yi!X%Yi%`%Yi!a%Yi~P$ITO#c$tiP$tiX$ti^$tik$tiz$ti!V$ti!e$ti!f$ti!h$ti!l$ti#f$ti#g$ti#h$ti#i$ti#j$ti#k$ti#l$ti#m$ti#n$ti#p$ti#r$ti#t$ti#u$ti'j$ti(Q$ti(`$ti!g$ti!S$ti'h$ti#W$tio$ti!X$ti%`$ti!a$ti~P#(yOd'Oa!V'Oa~P!-jO!V'Pa!g'Pa~P!3jO!V.bO!g([i~O#x#Zi!V#Zi!W#Zi~P#?dOP$YOy#vOz#wO|#xO!f#tO!h#uO!l$YO(QVOX#eik#ei!e#ei#g#ei#h#ei#i#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~O#f#ei~P%2xO#f;wO~P%2xOP$YOy#vOz#wO|#xO!f#tO!h#uO!l$YO#f;wO#g;xO#h;xO#i;xO(QVOX#ei!e#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~Ok#ei~P%5TOk;yO~P%5TOP$YOk;yOy#vOz#wO|#xO!f#tO!h#uO!l$YO#f;wO#g;xO#h;xO#i;xO#j;zO(QVO#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~OX#ei!e#ei#k#ei#l#ei#m#ei#n#ei~P%7`OXbO^#vy!V#vy'j#vy'h#vy!S#vy!g#vyo#vy!X#vy%`#vy!a#vy~P!3jOg=jOy)sO|)tO(g)vO(h)xO~OP#eiX#eik#eiz#ei!e#ei!f#ei!h#ei!l#ei#f#ei#g#ei#h#ei#i#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(Q#ei(`#ei!V#ei!W#ei~P%AYO!f#tOP(PXX(PXg(PXk(PXy(PXz(PX|(PX!e(PX!h(PX!l(PX#f(PX#g(PX#h(PX#i(PX#j(PX#k(PX#l(PX#m(PX#n(PX#p(PX#r(PX#t(PX#u(PX#x(PX(Q(PX(`(PX(g(PX(h(PX!V(PX!W(PX~O#x#yi!V#yi!W#yi~P#?dO#x!ni!W!ni~P$!qO!W6vO~O!V'Xa!W'Xa~P#?dO!a#rO(`'dO!V'Ya!g'Ya~O!V/VO!g(mi~O!V/VO!a#rO!g(mi~Od$tq!V$tq#W$tq#x$tq~P!-jO!S'[a!V'[a~P#(yO!a6}O~O!V/_O!S(ni~P#(yO!V/_O!S(ni~O!S7RO~O!a#rO#n7WO~Ok7XO!a#rO(`'dO~O!S7ZO~Od$vq!V$vq#W$vq#x$vq~P!-jO^$hy!V$hy'j$hy'h$hy!S$hy!g$hyo$hy!X$hy%`$hy!a$hy~P!3jO!V4]O!X(oa~O^#Zy!V#Zy'j#Zy'h#Zy!S#Zy!g#Zyo#Zy!X#Zy%`#Zy!a#Zy~P!3jOX7`O~O!V0_O!W(ui~O]7fO~O!a5zO~O(T(qO!V'aX!W'aX~O!V4tO!W(ra~O!h%ZO'|%OO^(YX!a(YX!l(YX#W(YX'j(YX(`(YX~O's7oO~P.[O!x;oO!|7rO!}7qO#O7qO#P7pO#S'bO#T'bO~PBtO^%^O!a#rO!l'hO#W'fO'j%^O(`'dO~O!W7vO~P%#XOl!kO'uTO'xUO(T!jO(_!nO~O|7wO~P%MdO![7{O!]7zO!^7zO#P7pO#S'bO#T'bO't!iO~PBtO![7{O!]7zO!^7zO!}7|O#O7|O#P7pO#S'bO#T'bO't!iO~PBtO!]7zO!^7zO't!iO(T!jO(_!nO~O!X0zO~O!X0zO%`8OO~Og8RO!X0zO%`8OO~OX8WO!V'da!W'da~O!V1VO!W(si~O!g8[O~O!g8]O~O!g8^O~O!g8^O~P%QO^8`O~O!a8cO~O!g8dO~O!V(ei!W(ei~P#?dO^%^O#W8lO'j%^O~O^%^O!a#rO#W8lO'j%^O~O^%^O!a#rO!l8pO#W8lO'j%^O(`'dO~O!h%ZO'|%OO~P&$QO!]8qO!^8qO't!iO~PBtO!V(]O!g(ay~O!V(by!g(by^(by'j(by~P!3jO!X'QO%`8uO~O#c$tqP$tqX$tq^$tqk$tqz$tq!V$tq!e$tq!f$tq!h$tq!l$tq#f$tq#g$tq#h$tq#i$tq#j$tq#k$tq#l$tq#m$tq#n$tq#p$tq#r$tq#t$tq#u$tq'j$tq(Q$tq(`$tq!g$tq!S$tq'h$tq#W$tqo$tq!X$tq%`$tq!a$tq~P#(yO#c$vqP$vqX$vq^$vqk$vqz$vq!V$vq!e$vq!f$vq!h$vq!l$vq#f$vq#g$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#p$vq#r$vq#t$vq#u$vq'j$vq(Q$vq(`$vq!g$vq!S$vq'h$vq#W$vqo$vq!X$vq%`$vq!a$vq~P#(yO!V'Pi!g'Pi~P!3jO#x#Zq!V#Zq!W#Zq~P#?dOy/yOz/yO|/zOPvaXvagvakva!eva!fva!hva!lva#fva#gva#hva#iva#jva#kva#lva#mva#nva#pva#rva#tva#uva#xva(Qva(`va(gva(hva!Vva!Wva~Oy)sO|)tOP$kaX$kag$kak$kaz$ka!e$ka!f$ka!h$ka!l$ka#f$ka#g$ka#h$ka#i$ka#j$ka#k$ka#l$ka#m$ka#n$ka#p$ka#r$ka#t$ka#u$ka#x$ka(Q$ka(`$ka(g$ka(h$ka!V$ka!W$ka~Oy)sO|)tOP$maX$mag$mak$maz$ma!e$ma!f$ma!h$ma!l$ma#f$ma#g$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#p$ma#r$ma#t$ma#u$ma#x$ma(Q$ma(`$ma(g$ma(h$ma!V$ma!W$ma~OP${aX${ak${az${a!e${a!f${a!h${a!l${a#f${a#g${a#h${a#i${a#j${a#k${a#l${a#m${a#n${a#p${a#r${a#t${a#u${a#x${a(Q${a(`${a!V${a!W${a~P%AYO#x$gq!V$gq!W$gq~P#?dO#x$hq!V$hq!W$hq~P#?dO!W9PO~O#x9QO~P!-jO!a#rO!V'Yi!g'Yi~O!a#rO(`'dO!V'Yi!g'Yi~O!V/VO!g(mq~O!S'[i!V'[i~P#(yO!V/_O!S(nq~O!S9WO~P#(yO!S9WO~Od(Oy!V(Oy~P!-jO!V'_a!X'_a~P#(yO!X%Sq^%Sq!V%Sq'j%Sq~P#(yOX9]O~O!V0_O!W(uq~O#W9aO!V'aa!W'aa~O!V4tO!W(ri~P#?dOPYXXYXkYXyYXzYX|YX!SYX!VYX!eYX!fYX!hYX!lYX#WYX#ccX#fYX#gYX#hYX#iYX#jYX#kYX#lYX#mYX#nYX#pYX#rYX#tYX#uYX#zYX(QYX(`YX(gYX(hYX~O!a%QX#n%QX~P&6lO#S-cO#T-cO~PBtO#P9eO#S-cO#T-cO~PBtO!}9fO#O9fO#P9eO#S-cO#T-cO~PBtO!]9iO!^9iO't!iO(T!jO(_!nO~O![9lO!]9iO!^9iO#P9eO#S-cO#T-cO't!iO~PBtO!X0zO%`9oO~O'uTO'xUO(T9tO~O!V1VO!W(sq~O!g9wO~O!g9wO~P%QO!g9yO~O!g9zO~O#W9|O!V#`y!W#`y~O!V#`y!W#`y~P#?dO^%^O#W:QO'j%^O~O^%^O!a#rO#W:QO'j%^O~O^%^O!a#rO!l:UO#W:QO'j%^O(`'dO~O!X'QO%`:XO~O#x#vy!V#vy!W#vy~P#?dOP$tiX$tik$tiz$ti!e$ti!f$ti!h$ti!l$ti#f$ti#g$ti#h$ti#i$ti#j$ti#k$ti#l$ti#m$ti#n$ti#p$ti#r$ti#t$ti#u$ti#x$ti(Q$ti(`$ti!V$ti!W$ti~P%AYOy)sO|)tO(h)xOP%WiX%Wig%Wik%Wiz%Wi!e%Wi!f%Wi!h%Wi!l%Wi#f%Wi#g%Wi#h%Wi#i%Wi#j%Wi#k%Wi#l%Wi#m%Wi#n%Wi#p%Wi#r%Wi#t%Wi#u%Wi#x%Wi(Q%Wi(`%Wi(g%Wi!V%Wi!W%Wi~Oy)sO|)tOP%YiX%Yig%Yik%Yiz%Yi!e%Yi!f%Yi!h%Yi!l%Yi#f%Yi#g%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#p%Yi#r%Yi#t%Yi#u%Yi#x%Yi(Q%Yi(`%Yi(g%Yi(h%Yi!V%Yi!W%Yi~O#x$hy!V$hy!W$hy~P#?dO#x#Zy!V#Zy!W#Zy~P#?dO!a#rO!V'Yq!g'Yq~O!V/VO!g(my~O!S'[q!V'[q~P#(yO!S:`O~P#(yO!V0_O!W(uy~O!V4tO!W(rq~O#S2fO#T2fO~PBtO#P:gO#S2fO#T2fO~PBtO!]:kO!^:kO't!iO(T!jO(_!nO~O!X0zO%`:nO~O!g:qO~O^%^O#W:vO'j%^O~O^%^O!a#rO#W:vO'j%^O~O!X'QO%`:{O~OP$tqX$tqk$tqz$tq!e$tq!f$tq!h$tq!l$tq#f$tq#g$tq#h$tq#i$tq#j$tq#k$tq#l$tq#m$tq#n$tq#p$tq#r$tq#t$tq#u$tq#x$tq(Q$tq(`$tq!V$tq!W$tq~P%AYOP$vqX$vqk$vqz$vq!e$vq!f$vq!h$vq!l$vq#f$vq#g$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#p$vq#r$vq#t$vq#u$vq#x$vq(Q$vq(`$vq!V$vq!W$vq~P%AYOd%[!Z!V%[!Z#W%[!Z#x%[!Z~P!-jO!V'aq!W'aq~P#?dO#S6`O#T6`O~PBtO!V#`!Z!W#`!Z~P#?dO^%^O#W;ZO'j%^O~O#c%[!ZP%[!ZX%[!Z^%[!Zk%[!Zz%[!Z!V%[!Z!e%[!Z!f%[!Z!h%[!Z!l%[!Z#f%[!Z#g%[!Z#h%[!Z#i%[!Z#j%[!Z#k%[!Z#l%[!Z#m%[!Z#n%[!Z#p%[!Z#r%[!Z#t%[!Z#u%[!Z'j%[!Z(Q%[!Z(`%[!Z!g%[!Z!S%[!Z'h%[!Z#W%[!Zo%[!Z!X%[!Z%`%[!Z!a%[!Z~P#(yOP%[!ZX%[!Zk%[!Zz%[!Z!e%[!Z!f%[!Z!h%[!Z!l%[!Z#f%[!Z#g%[!Z#h%[!Z#i%[!Z#j%[!Z#k%[!Z#l%[!Z#m%[!Z#n%[!Z#p%[!Z#r%[!Z#t%[!Z#u%[!Z#x%[!Z(Q%[!Z(`%[!Z!V%[!Z!W%[!Z~P%AYOo(UX~P1dO't!iO~P!'RO!ScX!VcX#WcX~P&6lOPYXXYXkYXyYXzYX|YX!VYX!VcX!eYX!fYX!hYX!lYX#WYX#WcX#ccX#fYX#gYX#hYX#iYX#jYX#kYX#lYX#mYX#nYX#pYX#rYX#tYX#uYX#zYX(QYX(`YX(gYX(hYX~O!acX!gYX!gcX(`cX~P'!sOP;nOQ;nOa=_Ob!fOikOk;nOlkOmkOskOu;nOw;nO|WO!QkO!RkO!XXO!c;qO!hZO!k;nO!l;nO!m;nO!o;rO!q;sO!t!eO$P!hO$TfO's)RO'uTO'xUO(QVO(_[O(l=]O~O!Vv!>v!BnPPP!BuHdPPPPPPPPPPP!FTP!GiPPHd!HyPHdPHdHdHdHdPHd!J`PP!MiP#!nP#!r#!|##Q##QP!MfP##U##UP#&ZP#&_HdHd#&e#)iAQPAQPAQAQP#*sAQAQ#,mAQ#.zAQ#0nAQAQ#1[#3W#3W#3[#3d#3W#3lP#3WPAQ#4hAQ#5pAQAQ6iPPP#6{PP#7e#7eP#7eP#7z#7ePP#8QP#7wP#7w#8d!1p#7w#9O#9U6f(}#9X(}P#9`#9`#9`P(}P(}P(}P(}PP(}P#9f#9iP#9i(}P#9mP#9pP(}P(}P(}P(}P(}P(}(}PP#9v#9|#:W#:^#:d#:j#:p#;O#;U#;[#;f#;l#b#?r#@Q#@W#@^#@d#@j#@t#@z#AQ#A[#An#AtPPPPPPPPPP#AzPPPPPPP#Bn#FYP#Gu#G|#HUPPPP#L`$ U$'t$'w$'z$)w$)z$)}$*UPP$*[$*`$+X$,X$,]$,qPP$,u$,{$-PP$-S$-W$-Z$.P$.g$.l$.o$.r$.x$.{$/P$/TR!yRmpOXr!X#a%]&d&f&g&i,^,c1g1jU!pQ'Q-OQ%ctQ%kwQ%rzQ&[!TS&x!c,vQ'W!f[']!m!r!s!t!u!vS*[$y*aQ+U%lQ+c%tQ+}&UQ,|'PQ-W'XW-`'^'_'`'aQ/p*cQ1U,OU2b-b-d-eS4}0z5QS6[2e2gU7z5U5V5WQ8q6_S9i7{7|Q:k9lR TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:362,context:b,nodeProps:[["group",-26,6,14,16,62,198,202,205,206,208,211,214,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,102,103,112,113,130,133,135,136,137,138,140,141,161,162,164,"Expression",-23,24,26,30,34,36,38,165,167,169,170,172,173,174,176,177,178,180,181,182,192,194,196,197,"Type",-3,84,95,101,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",142,"JSXStartTag",154,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",143,"JSXSelfCloseEndTag JSXEndTag",159,"JSXEndTag"]],propSources:[W],skippedNodes:[0,3,4,268],repeatNodeCount:32,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$c&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$c&j'y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$c&j'vpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'vpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'vp'y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$c&j'vp'y!b'l(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'w#S$c&j'm(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$c&j'vp'y!b'm(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$c&j!l$Ip'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#p$Id$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#p$Id$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'u$(n$c&j'y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$c&j'y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$c&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$^#t$c&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$^#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$^#t$c&j'y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$^#t'y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hg$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}st%Ztu`k$c&j'vp'y!b(T!LY's&;d$V#tOY%ZYZ&cZr%Zrs&}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P+d@`k$c&j'vp'y!b$V#tOY%ZYZ&cZr%Zrs&}st%Ztu@Tuw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![@T![!^%Z!^!_*g!_!c%Z!c!}@T!}#O%Z#O#P&c#P#R%Z#R#S@T#S#T%Z#T#o@T#o#p*g#p$g%Z$g;'S@T;'S;=`BT<%lO@T+dBWP;=`<%l@T(CSB^P;=`<%l>P%#SBl`$c&j'vp'y!b#h$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Cn!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SCy_$c&j#z$Id'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%DfETa(h%Z![!^%Z!^!_*g!_!c%Z!c!i#>Z!i#O%Z#O#P&c#P#R%Z#R#S#>Z#S#T%Z#T#Z#>Z#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>fi$c&j'vp'y!bl$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#>Z![!^%Z!^!_*g!_!c%Z!c!i#>Z!i#O%Z#O#P&c#P#R%Z#R#S#>Z#S#T%Z#T#Z#>Z#Z#b%Z#b#c#5T#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#@b_!a$b$c&j#x%Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$JT>P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(CS$=Uk$c&j'vp'y!b'm(;d(T!LY's&;d$V#tOY%ZYZ&cZr%Zrs&}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[h,u,2,3,4,5,6,7,8,9,10,11,12,13,f,new a.uC("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(S~~",141,325),new a.uC("j~RQYZXz{^~^O'p~~aP!P!Qd~iO'q~~",25,307)],topRules:{Script:[0,5],SingleExpression:[1,266],SingleClassItem:[2,267]},dialects:{jsx:13213,ts:13215},dynamicPrecedences:{76:1,78:1,162:1,190:1},specialized:[{term:311,get:O=>U[O]||-1},{term:327,get:O=>m[O]||-1},{term:67,get:O=>y[O]||-1}],tokenPrec:13238});var d=e(4452);var j=e(71674);var w=e(22819);var v=e(75128);var V=e(66575);const k=[(0,v.Gw)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,v.Gw)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,v.Gw)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,v.Gw)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,v.Gw)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,v.Gw)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,v.Gw)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,v.Gw)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,v.Gw)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,v.Gw)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,v.Gw)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})];const _=k.concat([(0,v.Gw)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,v.Gw)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,v.Gw)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]);const G=new V.NodeWeakMap;const q=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function T(O){return(Q,e)=>{let a=Q.node.getChild("VariableDefinition");if(a)e(a,O);return true}}const R=["FunctionDeclaration"];const C={FunctionDeclaration:T("function"),ClassDeclaration:T("class"),ClassExpression:()=>true,EnumDeclaration:T("constant"),TypeAliasDeclaration:T("type"),NamespaceDeclaration:T("namespace"),VariableDefinition(O,Q){if(!O.matchContext(R))Q(O,"variable")},TypeDefinition(O,Q){Q(O,"type")},__proto__:null};function z(O,Q){let e=G.get(Q);if(e)return e;let a=[],i=true;function t(Q,e){let i=O.sliceString(Q.from,Q.to);a.push({label:i,type:e})}Q.cursor(V.IterMode.IncludeAnonymous).iterate((Q=>{if(i){i=false}else if(Q.name){let O=C[Q.name];if(O&&O(Q,t)||q.has(Q.name))return false}else if(Q.to-Q.from>8192){for(let e of z(O,Q.node))a.push(e);return false}}));G.set(Q,a);return a}const I=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;const E=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function A(O){let Q=(0,d.syntaxTree)(O.state).resolveInner(O.pos,-1);if(E.indexOf(Q.name)>-1)return null;let e=Q.name=="VariableName"||Q.to-Q.from<20&&I.test(O.state.sliceDoc(Q.from,Q.to));if(!e&&!O.explicit)return null;let a=[];for(let i=Q;i;i=i.parent){if(q.has(i.name))a=a.concat(z(O.state.doc,i))}return{options:a,from:e?Q.from:O.pos,validFor:I}}function J(O,Q,e){var a;let i=[];for(;;){let t=Q.firstChild,$;if((t===null||t===void 0?void 0:t.name)=="VariableName"){i.push(O(t));return{path:i.reverse(),name:e}}else if((t===null||t===void 0?void 0:t.name)=="MemberExpression"&&((a=$=t.lastChild)===null||a===void 0?void 0:a.name)=="PropertyName"){i.push(O($));Q=t}else{return null}}}function L(O){let Q=Q=>O.state.doc.sliceString(Q.from,Q.to);let e=(0,d.syntaxTree)(O.state).resolveInner(O.pos,-1);if(e.name=="PropertyName"){return J(Q,e.parent,Q(e))}else if((e.name=="."||e.name=="?.")&&e.parent.name=="MemberExpression"){return J(Q,e.parent,"")}else if(E.indexOf(e.name)>-1){return null}else if(e.name=="VariableName"||e.to-e.from<20&&I.test(Q(e))){return{path:[],name:Q(e)}}else if(e.name=="MemberExpression"){return J(Q,e,"")}else{return O.explicit?{path:[],name:""}:null}}function N(O,Q){let e=[],a=new Set;for(let t=0;;t++){for(let r of(Object.getOwnPropertyNames||Object.keys)(O)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(r)||a.has(r))continue;a.add(r);let $;try{$=O[r]}catch(i){continue}e.push({label:r,type:typeof $=="function"?/^[A-Z]/.test(r)?"class":Q?"function":"method":Q?"variable":"property",boost:-t})}let $=Object.getPrototypeOf(O);if(!$)return e;O=$}}function D(O){let Q=new Map;return e=>{let a=L(e);if(!a)return null;let i=O;for(let O of a.path){i=i[O];if(!i)return null}let t=Q.get(i);if(!t)Q.set(i,t=N(i,!a.path.length));return{from:e.pos-a.name.length,options:t,validFor:I}}}const B=d.LRLanguage.define({name:"javascript",parser:x.configure({props:[d.indentNodeProp.add({IfStatement:(0,d.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,d.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:d.flatIndent,SwitchBody:O=>{let Q=O.textAfter,e=/^\s*\}/.test(Q),a=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(e?0:a?1:2)*O.unit},Block:(0,d.delimitedIndent)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,d.continuedIndent)({except:/^{/}),JSXElement(O){let Q=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(Q?0:O.unit)},JSXEscape(O){let Q=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(Q?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),d.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":d.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}});const H={test:O=>/^JSX/.test(O.name),facet:(0,d.defineLanguageFacet)({commentTokens:{block:{open:"{/*",close:"*/}"}}})};const K=B.configure({dialect:"ts"},"typescript");const M=B.configure({dialect:"jsx",props:[d.sublanguageProp.add((O=>O.isTop?[H]:undefined))]});const F=B.configure({dialect:"jsx ts",props:[d.sublanguageProp.add((O=>O.isTop?[H]:undefined))]},"typescript");let OO=O=>({label:O,type:"keyword"});const QO="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(OO);const eO=QO.concat(["declare","implements","private","protected","public"].map(OO));function aO(O={}){let Q=O.jsx?O.typescript?F:M:O.typescript?K:B;let e=O.typescript?_.concat(eO):k.concat(QO);return new d.LanguageSupport(Q,[B.data.of({autocomplete:(0,v.Ar)(E,(0,v.et)(e))}),B.data.of({autocomplete:A}),O.jsx?rO:[]])}function iO(O){for(;;){if(O.name=="JSXOpenTag"||O.name=="JSXSelfClosingTag"||O.name=="JSXFragmentTag")return O;if(O.name=="JSXEscape"||!O.parent)return null;O=O.parent}}function tO(O,Q,e=O.length){for(let a=Q===null||Q===void 0?void 0:Q.firstChild;a;a=a.nextSibling){if(a.name=="JSXIdentifier"||a.name=="JSXBuiltin"||a.name=="JSXNamespacedName"||a.name=="JSXMemberExpression")return O.sliceString(a.from,Math.min(a.to,e))}return""}const $O=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent);const rO=w.EditorView.inputHandler.of(((O,Q,e,a,i)=>{if(($O?O.composing:O.compositionStarted)||O.state.readOnly||Q!=e||a!=">"&&a!="/"||!B.isActiveAt(O.state,Q,-1))return false;let t=i(),{state:$}=t;let r=$.changeByRange((O=>{var Q;let{head:e}=O,i=(0,d.syntaxTree)($).resolveInner(e-1,-1),t;if(i.name=="JSXStartTag")i=i.parent;if($.doc.sliceString(e-1,e)!=a||i.name=="JSXAttributeValue"&&i.to>e);else if(a==">"&&i.name=="JSXFragmentTag"){return{range:O,changes:{from:e,insert:``}}}else if(a=="/"&&i.name=="JSXStartCloseTag"){let O=i.parent,a=O.parent;if(a&&O.from==e-2&&((t=tO($.doc,a.firstChild,e))||((Q=a.firstChild)===null||Q===void 0?void 0:Q.name)=="JSXFragmentTag")){let O=`${t}>`;return{range:j.EditorSelection.cursor(e+O.length,-1),changes:{from:e,insert:O}}}}else if(a==">"){let Q=iO(i);if(Q&&Q.name=="JSXOpenTag"&&!/^\/?>|^<\//.test($.doc.sliceString(e,e+2))&&(t=tO($.doc,Q,e)))return{range:O,changes:{from:e,insert:``}}}return{range:O}}));if(r.changes.empty)return false;O.dispatch([t,$.update(r,{userEvent:"input.complete",scrollIntoView:true})]);return true}));function SO(O,Q){if(!Q){Q={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:true,node:true,es6:true,es2015:true,es2017:true,es2020:true},rules:{}};O.getRules().forEach(((O,e)=>{if(O.meta.docs.recommended)Q.rules[e]=2}))}return e=>{let{state:a}=e,i=[];for(let{from:t,to:$}of B.findRegions(a)){let e=a.doc.lineAt(t),r={line:e.number-1,col:t-e.from,pos:t};for(let S of O.verify(a.sliceDoc(t,$),Q))i.push(PO(S,a.doc,r))}return i}}function nO(O,Q,e,a){return e.line(O+a.line).from+Q+(O==1?a.col-1:-1)}function PO(O,Q,e){let a=nO(O.line,O.column,Q,e);let i={from:a,to:O.endLine!=null&&O.endColumn!=1?nO(O.endLine,O.endColumn,Q,e):a,message:O.message,source:O.ruleId?"eslint:"+O.ruleId:"eslint",severity:O.severity==1?"warning":"error"};if(O.fix){let{range:Q,text:t}=O.fix,$=Q[0]+e.pos-a,r=Q[1]+e.pos-a;i.actions=[{name:"fix",apply(O,Q){O.dispatch({changes:{from:Q+$,to:Q+r,insert:t},scrollIntoView:true})}}]}return i}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8313.aac706f5036a7209b3a8.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8313.aac706f5036a7209b3a8.js new file mode 100644 index 0000000000000000000000000000000000000000..d47b4a1c0d8449d7dea4119cdddc445252ae0c1a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8313.aac706f5036a7209b3a8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8313],{48313:(t,e,n)=>{n.r(e);n.d(e,{DocInput:()=>T,HighlightStyle:()=>Ft,IndentContext:()=>$,LRLanguage:()=>v,Language:()=>k,LanguageDescription:()=>M,LanguageSupport:()=>B,ParseContext:()=>C,StreamLanguage:()=>de,StringStream:()=>fe,TreeIndentContext:()=>K,bidiIsolates:()=>Be,bracketMatching:()=>ee,bracketMatchingHandle:()=>ne,codeFolding:()=>It,continuedIndent:()=>et,defaultHighlightStyle:()=>Gt,defineLanguageFacet:()=>g,delimitedIndent:()=>Y,ensureSyntaxTree:()=>x,flatIndent:()=>tt,foldAll:()=>yt,foldCode:()=>vt,foldEffect:()=>ut,foldGutter:()=>Mt,foldInside:()=>ot,foldKeymap:()=>At,foldNodeProp:()=>st,foldService:()=>it,foldState:()=>pt,foldable:()=>ft,foldedRanges:()=>gt,forceParsing:()=>S,getIndentUnit:()=>V,getIndentation:()=>W,highlightingFor:()=>$t,indentNodeProp:()=>z,indentOnInput:()=>rt,indentRange:()=>U,indentService:()=>R,indentString:()=>j,indentUnit:()=>F,language:()=>L,languageDataProp:()=>p,matchBrackets:()=>se,sublanguageProp:()=>m,syntaxHighlighting:()=>Ut,syntaxParserRunning:()=>P,syntaxTree:()=>b,syntaxTreeAvailable:()=>y,toggleFold:()=>Tt,unfoldAll:()=>St,unfoldCode:()=>bt,unfoldEffect:()=>ct});var r=n(66575);var i=n.n(r);var s=n(71674);var o=n.n(s);var a=n(22819);var l=n.n(a);var f=n(45145);var h=n.n(f);var u=n(23546);var c=n.n(u);var d;const p=new r.NodeProp;function g(t){return s.Facet.define({combine:t?e=>e.concat(t):undefined})}const m=new r.NodeProp;class k{constructor(t,e,n=[],r=""){this.data=t;this.name=r;if(!s.EditorState.prototype.hasOwnProperty("tree"))Object.defineProperty(s.EditorState.prototype,"tree",{get(){return b(this)}});this.parser=e;this.extension=[L.of(this),s.EditorState.languageData.of(((t,e,n)=>{let r=w(t,e,n),i=r.type.prop(p);if(!i)return[];let s=t.facet(i),o=r.type.prop(m);if(o){let i=r.resolve(e-r.from,n);for(let e of o)if(e.test(i,t)){let n=t.facet(e.facet);return e.type=="replace"?n:n.concat(s)}}return s}))].concat(n)}isActiveAt(t,e,n=-1){return w(t,e,n).type.prop(p)==this.data}findRegions(t){let e=t.facet(L);if((e===null||e===void 0?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[];let i=(t,e)=>{if(t.prop(p)==this.data){n.push({from:e,to:e+t.length});return}let s=t.prop(r.NodeProp.mounted);if(s){if(s.tree.prop(p)==this.data){if(s.overlay)for(let t of s.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}else if(s.overlay){let t=n.length;i(s.tree,s.overlay[0].from+e);if(n.length>t)return}}for(let n=0;nt.isTop?e:undefined))]}),t.name)}configure(t,e){return new v(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function b(t){let e=t.field(k.state,false);return e?e.tree:r.Tree.empty}function x(t,e,n=50){var r;let i=(r=t.field(k.state,false))===null||r===void 0?void 0:r.context;if(!i)return null;let s=i.viewport;i.updateViewport({from:0,to:e});let o=i.isDone(e)||i.work(n,e)?i.tree:null;i.updateViewport(s);return o}function y(t,e=t.doc.length){var n;return((n=t.field(k.state,false))===null||n===void 0?void 0:n.context.isDone(e))||false}function S(t,e=t.viewport.to,n=100){let r=x(t.state,e,n);if(r!=b(t.state))t.dispatch({});return!!r}function P(t){var e;return((e=t.plugin(E))===null||e===void 0?void 0:e.isWorking())||false}class T{constructor(t){this.doc=t;this.cursorPos=0;this.string="";this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){this.string=this.cursor.next(t-this.cursorPos).value;this.cursorPos=t+this.string.length;return this.cursorPos-this.string.length}chunk(t){this.syncTo(t);return this.string}get lineChunks(){return true}read(t,e){let n=this.cursorPos-this.string.length;if(t=this.cursorPos)return this.doc.sliceString(t,e);else return this.string.slice(t-n,e-n)}}let A=null;class C{constructor(t,e,n=[],r,i,s,o,a){this.parser=t;this.state=e;this.fragments=n;this.tree=r;this.treeLen=i;this.viewport=s;this.skipped=o;this.scheduleOn=a;this.parse=null;this.tempSkipped=[]}static create(t,e,n){return new C(t,e,[],r.Tree.empty,0,n,[],null)}startParse(){return this.parser.startParse(new T(this.state.doc),this.fragments)}work(t,e){if(e!=null&&e>=this.state.doc.length)e=undefined;if(this.tree!=r.Tree.empty&&this.isDone(e!==null&&e!==void 0?e:this.state.doc.length)){this.takeTree();return true}return this.withContext((()=>{var n;if(typeof t=="number"){let e=Date.now()+t;t=()=>Date.now()>e}if(!this.parse)this.parse=this.startParse();if(e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen){if(this.parse.stoppedAt==null||this.parse.stoppedAt>t)this.parse.stopAt(t);this.withContext((()=>{while(!(e=this.parse.advance())){}}));this.treeLen=t;this.tree=e;this.fragments=this.withoutTempSkipped(r.TreeFragment.addTree(this.tree,this.fragments,true));this.parse=null}}withContext(t){let e=A;A=this;try{return t()}finally{A=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=D(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:a}=this;this.takeTree();if(!t.empty){let e=[];t.iterChangedRanges(((t,n,r,i)=>e.push({fromA:t,toA:n,fromB:r,toB:i})));n=r.TreeFragment.applyChanges(n,e);i=r.Tree.empty;s=0;o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)};if(this.skipped.length){a=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);if(nt.from){this.fragments=D(this.fragments,e,r);this.skipped.splice(n--,1)}}if(this.skipped.length>=e)return false;this.reset();return true}reset(){if(this.parse){this.takeTree();this.parse=null}}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r.Parser{createParse(e,n,i){let s=i[0].from,o=i[i.length-1].to;let a={parsedPos:s,advance(){let e=A;if(e){for(let t of i)e.tempSkipped.push(t);if(t)e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t}this.parsedPos=o;return new r.Tree(r.NodeType.none,[],[],o-s)},stoppedAt:null,stopAt(){}};return a}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return A}}function D(t,e,n){return r.TreeFragment.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class I{constructor(t){this.context=t;this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state);let n=this.context.treeLen==t.startState.doc.length?undefined:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);if(!e.work(20,n))e.takeTree();return new I(e)}static init(t){let e=Math.min(3e3,t.doc.length);let n=C.create(t.facet(L).parser,t,{from:0,to:e});if(!n.work(20,e))n.takeTree();return new I(n)}}k.state=s.StateField.define({create:I.init,update(t,e){for(let n of e.effects)if(n.is(k.setState))return n.value;if(e.startState.facet(L)!=e.state.facet(L))return I.init(e.state);return t.apply(e)}});let N=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};if(typeof requestIdleCallback!="undefined")N=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:500-100})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)};const O=typeof navigator!="undefined"&&((d=navigator.scheduling)===null||d===void 0?void 0:d.isInputPending)?()=>navigator.scheduling.isInputPending():null;const E=a.ViewPlugin.fromClass(class t{constructor(t){this.view=t;this.working=null;this.workScheduled=0;this.chunkEnd=-1;this.chunkBudget=-1;this.work=this.work.bind(this);this.scheduleWork()}update(t){let e=this.view.state.field(k.state).context;if(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)this.scheduleWork();if(t.docChanged||t.selectionSet){if(this.view.hasFocus)this.chunkBudget+=50;this.scheduleWork()}this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(k.state);if(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))this.working=N(this.work)}work(t){this.working=null;let e=Date.now();if(this.chunkEndr+1e3;let a=i.context.work((()=>O&&O()||Date.now()>s),r+(o?0:1e5));this.chunkBudget-=Date.now()-e;if(a||this.chunkBudget<=0){i.context.takeTree();this.view.dispatch({effects:k.setState.of(new I(i.context))})}if(this.chunkBudget>0&&!(a&&!o))this.scheduleWork();this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){if(t.scheduleOn){this.workScheduled++;t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>(0,a.logException)(this.view.state,t))).then((()=>this.workScheduled--));t.scheduleOn=null}}destroy(){if(this.working)this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}});const L=s.Facet.define({combine(t){return t.length?t[0]:null},enables:t=>[k.state,E,a.EditorView.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class B{constructor(t,e=[]){this.language=t;this.support=e;this.extension=[t,e]}}class M{constructor(t,e,n,r,i,s=undefined){this.name=t;this.alias=e;this.extensions=n;this.filename=r;this.loadFunc=i;this.support=s;this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((t=>this.support=t),(t=>{this.loading=null;throw t})))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new M(t.name,(t.alias||[]).concat(t.name).map((t=>t.toLowerCase())),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let r of t)if(r.filename&&r.filename.test(e))return r;let n=/\.([^.]+)$/.exec(e);if(n)for(let r of t)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(t,e,n=true){e=e.toLowerCase();for(let r of t)if(r.alias.some((t=>t==e)))return r;if(n)for(let r of t)for(let t of r.alias){let n=e.indexOf(t);if(n>-1&&(t.length>2||!/\w/.test(e[n-1])&&!/\w/.test(e[n+t.length])))return r}return null}}const R=s.Facet.define();const F=s.Facet.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function V(t){let e=t.facet(F);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function j(t,e){let n="",r=t.tabSize,i=t.facet(F)[0];if(i=="\t"){while(e>=r){n+="\t";e-=r}i=" "}for(let s=0;s=e?H(t,n,e):null}function U(t,e,n){let r=Object.create(null);let i=new $(t,{overrideIndentation:t=>{var e;return(e=r[t])!==null&&e!==void 0?e:-1}});let s=[];for(let o=e;o<=n;){let e=t.doc.lineAt(o);o=e.to+1;let n=W(i,e.from);if(n==null)continue;if(!/\S/.test(e.text))n=0;let a=/^\s*/.exec(e.text)[0];let l=j(t,n);if(a!=l){r[e.from]=n;s.push({from:e.from,to:e.from+a.length,insert:l})}}return t.changes(s)}class ${constructor(t,e={}){this.state=t;this.options=e;this.unit=V(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t);let{simulateBreak:r,simulateDoubleBreak:i}=this.options;if(r!=null&&r>=n.from&&r<=n.to){if(i&&r==t)return{text:"",from:t};else if(e<0?r-1)i+=s-this.countColumn(n,n.search(/\S|$/));return i}countColumn(t,e=t.length){return(0,s.countColumn)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e);let i=this.options.overrideIndentation;if(i){let t=i(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const z=new r.NodeProp;function H(t,e,n){let r=e.resolveStack(n);let i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let t=[];for(let e=i;e&&!(e.from==r.node.from&&e.type==r.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)r={node:t[e],next:r}}return G(r,t,n)}function G(t,e,n){for(let r=t;r;r=r.next){let t=q(r.node);if(t)return t(K.create(e,n,r))}return 0}function _(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function q(t){let e=t.type.prop(z);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(r.NodeProp.closedBy))){let e=t.lastChild,n=e&&i.indexOf(e.name)>-1;return t=>Z(t,true,1,undefined,n&&!_(t)?e.from:undefined)}return t.parent==null?J:null}function J(){return 0}class K extends ${constructor(t,e,n){super(t.state,t.options);this.base=t;this.pos=e;this.context=n}get node(){return this.context.node}static create(t,e,n){return new K(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);while(n.parent&&n.parent.from==n.from)n=n.parent;if(Q(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){return G(this.context.next,this.base,this.pos)}}function Q(t,e){for(let n=e;n;n=n.parent)if(t==n)return true;return false}function X(t){let e=t.node;let n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak;let s=t.state.doc.lineAt(n.from);let o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let t=e.childAfter(a);if(!t||t==r)return null;if(!t.type.isSkipped){if(t.from>=o)return null;let e=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+e}}a=t.to}}function Y({closing:t,align:e=true,units:n=1}){return r=>Z(r,e,n,t)}function Z(t,e,n,r,i){let s=t.textAfter,o=s.match(/^\s*/)[0].length;let a=r&&s.slice(o,o+r.length)==r||i==t.pos+o;let l=e?X(t):null;if(l)return a?t.column(l.from):t.column(l.to);return t.baseIndent+(a?0:t.unit*n)}const tt=t=>t.baseIndent;function et({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const nt=200;function rt(){return s.EditorState.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+nt)return t;let s=n.sliceString(i.from,r);if(!e.some((t=>t.test(s))))return t;let{state:o}=t,a=-1,l=[];for(let{head:f}of o.selection.ranges){let t=o.doc.lineAt(f);if(t.from==a)continue;a=t.from;let e=W(o,t.from);if(e==null)continue;let n=/^\s*/.exec(t.text)[0];let r=j(o,e);if(n!=r)l.push({from:t.from,to:t.from+n.length,insert:r})}return l.length?[t,{changes:l,sequential:true}]:t}))}const it=s.Facet.define();const st=new r.NodeProp;function ot(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(s&&i.from=e&&r.to>n)s=r}}return s}function lt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function ft(t,e,n){for(let r of t.facet(it)){let i=r(t,e,n);if(i)return i}return at(t,e,n)}function ht(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?undefined:{from:n,to:r}}const ut=s.StateEffect.define({map:ht});const ct=s.StateEffect.define({map:ht});function dt(t){let e=[];for(let{head:n}of t.state.selection.ranges){if(e.some((t=>t.from<=n&&t.to>=n)))continue;e.push(t.lineBlockAt(n))}return e}const pt=s.StateField.define({create(){return a.Decoration.none},update(t,e){t=t.map(e.changes);for(let n of e.effects){if(n.is(ut)&&!kt(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Dt);let i=!r?Ot:a.Decoration.replace({widget:new Et(r(e.state,n.value))});t=t.update({add:[i.range(n.value.from,n.value.to)]})}else if(n.is(ct)){t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to})}}if(e.selection){let n=false,{head:r}=e.selection.main;t.between(r,r,((t,e)=>{if(tr)n=true}));if(n)t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r})}return t},provide:t=>a.EditorView.decorations.from(t),toJSON(t,e){let n=[];t.between(0,e.doc.length,((t,e)=>{n.push(t,e)}));return n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{if(!i||i.from>t)i={from:t,to:e}}));return i}function kt(t,e,n){let r=false;t.between(e,e,((t,i)=>{if(t==e&&i==n)r=true}));return r}function wt(t,e){return t.field(pt,false)?e:e.concat(s.StateEffect.appendConfig.of(It()))}const vt=t=>{for(let e of dt(t)){let n=ft(t.state,e.from,e.to);if(n){t.dispatch({effects:wt(t.state,[ut.of(n),xt(t,n)])});return true}}return false};const bt=t=>{if(!t.state.field(pt,false))return false;let e=[];for(let n of dt(t)){let r=mt(t.state,n.from,n.to);if(r)e.push(ct.of(r),xt(t,r,false))}if(e.length)t.dispatch({effects:e});return e.length>0};function xt(t,e,n=true){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return a.EditorView.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const yt=t=>{let{state:e}=t,n=[];for(let r=0;r{let e=t.state.field(pt,false);if(!e||!e.size)return false;let n=[];e.between(0,t.state.doc.length,((t,e)=>{n.push(ct.of({from:t,to:e}))}));t.dispatch({effects:n});return true};function Pt(t,e){for(let n=e;;){let r=ft(t.state,n.from,n.to);if(r&&r.to>e.from)return r;if(!n.from)return null;n=t.lineBlockAt(n.from-1)}}const Tt=t=>{let e=[];for(let n of dt(t)){let r=mt(t.state,n.from,n.to);if(r){e.push(ct.of(r),xt(t,r,false))}else{let r=Pt(t,n);if(r)e.push(ut.of(r),xt(t,r))}}if(e.length>0)t.dispatch({effects:wt(t.state,e)});return!!e.length};const At=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:vt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:bt},{key:"Ctrl-Alt-[",run:yt},{key:"Ctrl-Alt-]",run:St}];const Ct={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"};const Dt=s.Facet.define({combine(t){return(0,s.combineConfig)(t,Ct)}});function It(t){let e=[pt,Rt];if(t)e.push(Dt.of(t));return e}function Nt(t,e){let{state:n}=t,r=n.facet(Dt);let i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target));let r=mt(t.state,n.from,n.to);if(r)t.dispatch({effects:ct.of(r)});e.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let s=document.createElement("span");s.textContent=r.placeholderText;s.setAttribute("aria-label",n.phrase("folded code"));s.title=n.phrase("unfold");s.className="cm-foldPlaceholder";s.onclick=i;return s}const Ot=a.Decoration.replace({widget:new class extends a.WidgetType{toDOM(t){return Nt(t,null)}}});class Et extends a.WidgetType{constructor(t){super();this.value=t}eq(t){return this.value==t.value}toDOM(t){return Nt(t,this.value)}}const Lt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class Bt extends a.GutterMarker{constructor(t,e){super();this.config=t;this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");e.textContent=this.open?this.config.openText:this.config.closedText;e.title=t.state.phrase(this.open?"Fold line":"Unfold line");return e}}function Mt(t={}){let e=Object.assign(Object.assign({},Lt),t);let n=new Bt(e,true),r=new Bt(e,false);let i=a.ViewPlugin.fromClass(class{constructor(t){this.from=t.viewport.from;this.markers=this.buildMarkers(t)}update(t){if(t.docChanged||t.viewportChanged||t.startState.facet(L)!=t.state.facet(L)||t.startState.field(pt,false)!=t.state.field(pt,false)||b(t.startState)!=b(t.state)||e.foldingChanged(t))this.markers=this.buildMarkers(t.view)}buildMarkers(t){let e=new s.RangeSetBuilder;for(let i of t.viewportLineBlocks){let s=mt(t.state,i.from,i.to)?r:ft(t.state,i.from,i.to)?n:null;if(s)e.add(i.from,i.from,s)}return e.finish()}});let{domEventHandlers:o}=e;return[i,(0,a.gutter)({class:"cm-foldGutter",markers(t){var e;return((e=t.plugin(i))===null||e===void 0?void 0:e.markers)||s.RangeSet.empty},initialSpacer(){return new Bt(e,false)},domEventHandlers:Object.assign(Object.assign({},o),{click:(t,e,n)=>{if(o.click&&o.click(t,e,n))return true;let r=mt(t.state,e.from,e.to);if(r){t.dispatch({effects:ct.of(r)});return true}let i=ft(t.state,e.from,e.to);if(i){t.dispatch({effects:ut.of(i)});return true}return false}})}),It()]}const Rt=a.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Ft{constructor(t,e){this.specs=t;let n;function r(t){let e=u.StyleModule.newName();(n||(n=Object.create(null)))["."+e]=t;return e}const i=typeof e.all=="string"?e.all:e.all?r(e.all):undefined;const s=e.scope;this.scope=s instanceof k?t=>t.prop(p)==s.data:s?t=>t==s:undefined;this.style=(0,f.tagHighlighter)(t.map((t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))}))),{all:i}).style;this.module=n?new u.StyleModule(n):null;this.themeType=e.themeType}static define(t,e){return new Ft(t,e||{})}}const Vt=s.Facet.define();const jt=s.Facet.define({combine(t){return t.length?[t[0]]:null}});function Wt(t){let e=t.facet(Vt);return e.length?e:t.facet(jt)}function Ut(t,e){let n=[Ht],r;if(t instanceof Ft){if(t.module)n.push(a.EditorView.styleModule.of(t.module));r=t.themeType}if(e===null||e===void 0?void 0:e.fallback)n.push(jt.of(t));else if(r)n.push(Vt.computeN([a.EditorView.darkTheme],(e=>e.facet(a.EditorView.darkTheme)==(r=="dark")?[t]:[])));else n.push(Vt.of(t));return n}function $t(t,e,n){let r=Wt(t);let i=null;if(r)for(let s of r){if(!s.scope||n&&s.scope(n)){let t=s.style(e);if(t)i=i?i+" "+t:t}}return i}class zt{constructor(t){this.markCache=Object.create(null);this.tree=b(t.state);this.decorations=this.buildDeco(t,Wt(t.state));this.decoratedTo=t.viewport.to}update(t){let e=b(t.state),n=Wt(t.state);let r=n!=Wt(t.startState);let{viewport:i}=t.view,s=t.changes.mapPos(this.decoratedTo,1);if(e.length=i.to){this.decorations=this.decorations.map(t.changes);this.decoratedTo=s}else if(e!=this.tree||t.viewportChanged||r){this.tree=e;this.decorations=this.buildDeco(t.view,n);this.decoratedTo=i.to}}buildDeco(t,e){if(!e||!this.tree.length)return a.Decoration.none;let n=new s.RangeSetBuilder;for(let{from:r,to:i}of t.visibleRanges){(0,f.highlightTree)(this.tree,e,((t,e,r)=>{n.add(t,e,this.markCache[r]||(this.markCache[r]=a.Decoration.mark({class:r})))}),r,i)}return n.finish()}}const Ht=s.Prec.high(a.ViewPlugin.fromClass(zt,{decorations:t=>t.decorations}));const Gt=Ft.define([{tag:f.tags.meta,color:"#404740"},{tag:f.tags.link,textDecoration:"underline"},{tag:f.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:f.tags.emphasis,fontStyle:"italic"},{tag:f.tags.strong,fontWeight:"bold"},{tag:f.tags.strikethrough,textDecoration:"line-through"},{tag:f.tags.keyword,color:"#708"},{tag:[f.tags.atom,f.tags.bool,f.tags.url,f.tags.contentSeparator,f.tags.labelName],color:"#219"},{tag:[f.tags.literal,f.tags.inserted],color:"#164"},{tag:[f.tags.string,f.tags.deleted],color:"#a11"},{tag:[f.tags.regexp,f.tags.escape,f.tags.special(f.tags.string)],color:"#e40"},{tag:f.tags.definition(f.tags.variableName),color:"#00f"},{tag:f.tags.local(f.tags.variableName),color:"#30a"},{tag:[f.tags.typeName,f.tags.namespace],color:"#085"},{tag:f.tags.className,color:"#167"},{tag:[f.tags.special(f.tags.variableName),f.tags.macroName],color:"#256"},{tag:f.tags.definition(f.tags.propertyName),color:"#00c"},{tag:f.tags.comment,color:"#940"},{tag:f.tags.invalid,color:"#f00"}]);const _t=a.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}});const qt=1e4,Jt="()[]{}";const Kt=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{afterCursor:true,brackets:Jt,maxScanDistance:qt,renderMatch:Yt})}});const Qt=a.Decoration.mark({class:"cm-matchingBracket"}),Xt=a.Decoration.mark({class:"cm-nonmatchingBracket"});function Yt(t){let e=[];let n=t.matched?Qt:Xt;e.push(n.range(t.start.from,t.start.to));if(t.end)e.push(n.range(t.end.from,t.end.to));return e}const Zt=s.StateField.define({create(){return a.Decoration.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[];let r=e.state.facet(Kt);for(let i of e.state.selection.ranges){if(!i.empty)continue;let t=se(e.state,i.head,-1,r)||i.head>0&&se(e.state,i.head-1,1,r)||r.afterCursor&&(se(e.state,i.head,1,r)||i.heada.EditorView.decorations.from(t)});const te=[Zt,_t];function ee(t={}){return[Kt.of(t),te]}const ne=new r.NodeProp;function re(t,e,n){let i=t.prop(e<0?r.NodeProp.openedBy:r.NodeProp.closedBy);if(i)return i;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function ie(t){let e=t.type.prop(ne);return e?e(t.node):t}function se(t,e,n,r={}){let i=r.maxScanDistance||qt,s=r.brackets||Jt;let o=b(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let r=re(l.type,n,s);if(r&&l.from0?e>=i.from&&ei.from&&e<=i.to))return oe(t,e,n,l,i,r,s)}}return ae(t,e,n,o,a.type,i,s)}function oe(t,e,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to};let f=0,h=a===null||a===void 0?void 0:a.cursor();if(h&&(n<0?h.childBefore(r.from):h.childAfter(r.to)))do{if(n<0?h.to<=r.from:h.from>=r.to){if(f==0&&s.indexOf(h.type.name)>-1&&h.from0)return null;let f={from:n<0?e-1:e,to:n>0?e+1:e};let h=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let c=0;!h.next().done&&c<=s;){let t=h.value;if(n<0)c+=t.length;let s=e+c*n;for(let e=n>0?0:t.length-1,a=n>0?t.length:-1;e!=a;e+=n){let a=o.indexOf(t[e]);if(a<0||r.resolveInner(s+e,1).type!=i)continue;if(a%2==0==n>0){u++}else if(u==1){return{start:f,end:{from:s+e,to:s+e+1},matched:a>>1==l>>1}}else{u--}}if(n>0)c+=t.length}return h.done?{start:f,matched:false}:null}function le(t,e,n,r=0,i=0){if(e==null){e=t.search(/[^\s\u00a0]/);if(e==-1)e=t.length}let s=i;for(let o=r;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||undefined}next(){if(this.pose}eatSpace(){let t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1){this.pos=e;return true}}backUp(t){this.pos-=t}column(){if(this.lastColumnPosn?t.toLowerCase():t;let i=this.string.substr(this.pos,t.length);if(r(i)==r(t)){if(e!==false)this.pos+=t.length;return true}else return null}else{let n=this.string.slice(this.pos).match(t);if(n&&n.index>0)return null;if(n&&e!==false)this.pos+=n[0].length;return n}}current(){return this.string.slice(this.start,this.pos)}}function he(t){return{name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>true),copyState:t.copyState||ue,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||ve,mergeTokens:t.mergeTokens!==false}}function ue(t){if(typeof t!="object")return t;let e={};for(let n in t){let r=t[n];e[n]=r instanceof Array?r.slice():r}return e}const ce=new WeakMap;class de extends k{constructor(t){let e=g(t.languageData);let n=he(t),i;let s=new class extends r.Parser{createParse(t,e,n){return new ke(i,t,e,n)}};super(e,s,[],t.name);this.topNode=Ie(e,this);i=this;this.streamParser=n;this.stateAfter=new r.NodeProp({perNode:true});this.tokenTable=t.tokenTable?new Te(n.tokenTable):Ae}static define(t){return new de(t)}getIndent(t){let e=undefined;let{overrideIndentation:n}=t.options;if(n){e=ce.get(t.state);if(e!=null&&e1e4)return null;while(i=i&&n+e.length<=s&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:n+e.length};for(let a=e.children.length-1;a>=0;a--){let o=e.children[a],l=n+e.positions[a];let f=o instanceof r.Tree&&l=e.length)return e;if(!s&&n==0&&e.type==t.topNode)s=true;for(let o=e.children.length-1;o>=0;o--){let a=e.positions[o],l=e.children[o],f;if(an&&pe(t,r.tree,0-r.offset,n,s),a;if(o&&o.pos<=i&&(a=ge(t,r.tree,n+r.offset,o.pos+r.offset,false)))return{state:o.state,tree:a}}return{state:t.streamParser.startState(s?V(s):4),tree:r.Tree.empty}}class ke{constructor(t,e,n,r){this.lang=t;this.input=e;this.fragments=n;this.ranges=r;this.stoppedAt=null;this.chunks=[];this.chunkPos=[];this.chunk=[];this.chunkReused=undefined;this.rangeIndex=0;this.to=r[r.length-1].to;let i=C.get(),s=r[0].from;let{state:o,tree:a}=me(t,n,s,this.to,i===null||i===void 0?void 0:i.state);this.state=o;this.parsedPos=this.chunkStart=s+a.length;for(let l=0;lt.from<=i.viewport.from&&t.to>=i.viewport.from))){this.state=this.lang.streamParser.startState(V(i.state));i.skipUntilInView(this.parsedPos,i.viewport.from);this.parsedPos=i.viewport.from}this.moveRangeIndex()}advance(){let t=C.get();let e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt);let n=Math.min(e,this.chunkStart+2048);if(t)n=Math.min(n,t.viewport.to);while(this.parsedPos=e)return this.finish();if(t&&this.parsedPos>=t.viewport.to){t.skipUntilInView(this.parsedPos,e);return this.finish()}return null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(!this.input.lineChunks){let t=e.indexOf("\n");if(t>-1)e=e.slice(0,t)}else if(e=="\n"){e=""}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let r=this.rangeIndex;;){let t=this.ranges[r].to;if(t>=n)break;e=e.slice(0,t-(n-e.length));r++;if(r==this.ranges.length)break;let i=this.ranges[r].from;let s=this.lineAfter(i);e+=s;n=i+s.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?r>i:r>=i)break;let s=this.ranges[++this.rangeIndex].from;e+=s-r}return e}moveRangeIndex(){while(this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1);e+=r;let t=this.chunk.length;r=this.skipGapsTo(n,r,-1);n+=r;i+=this.chunk.length-t}let s=this.chunk.length-4;if(this.lang.streamParser.mergeTokens&&i==4&&s>=0&&this.chunk[s]==t&&this.chunk[s+2]==e)this.chunk[s+2]=n;else this.chunk.push(t,e,n,i);return r}parseLine(t){let{line:e,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang;let s=new fe(e,t?t.state.tabSize:4,t?V(t.state):2);if(s.eol()){i.blankLine(this.state,s.indentUnit)}else{while(!s.eol()){let t=we(i.token,s,this.state);if(t)r=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+s.start,this.parsedPos+s.pos,r);if(s.start>1e4)break}}this.parsedPos=n;this.moveRangeIndex();if(this.parsedPose.start)return r}throw new Error("Stream parser failed to advance stream.")}const ve=Object.create(null);const be=[r.NodeType.none];const xe=new r.NodeSet(be);const ye=[];const Se=Object.create(null);const Pe=Object.create(null);for(let[je,We]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Pe[je]=De(ve,We);class Te{constructor(t){this.extra=t;this.table=Object.assign(Object.create(null),Pe)}resolve(t){return!t?0:this.table[t]||(this.table[t]=De(this.extra,t))}}const Ae=new Te(ve);function Ce(t,e){if(ye.indexOf(t)>-1)return;ye.push(t);console.warn(e)}function De(t,e){let n=[];for(let r of e.split(" ")){let e=[];for(let n of r.split(".")){let r=t[n]||f.tags[n];if(!r){Ce(n,`Unknown highlighting tag ${n}`)}else if(typeof r=="function"){if(!e.length)Ce(n,`Modifier ${n} used at start of tag`);else e=e.map(r)}else{if(e.length)Ce(n,`Tag ${n} used as modifier`);else e=Array.isArray(r)?r:[r]}}for(let t of e)n.push(t)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+n.map((t=>t.id));let o=Se[s];if(o)return o.id;let a=Se[s]=r.NodeType.define({id:be.length,name:i,props:[(0,f.styleTags)({[i]:n})]});be.push(a);return a.id}function Ie(t,e){let n=r.NodeType.define({id:be.length,name:"Document",props:[p.add((()=>t)),z.add((()=>t=>e.getIndent(t)))],top:true});be.push(n);return n}function Ne(t){return t.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(t)}function Oe(t){for(let e=t.iter();!e.next().done;)if(Ne(e.value))return true;return false}function Ee(t){let e=false;t.iterChanges(((t,n,r,i,s)=>{if(!e&&Oe(s))e=true}));return e}const Le=s.Facet.define({combine:t=>t.some((t=>t))});function Be(t={}){let e=[Me];if(t.alwaysIsolate)e.push(Le.of(true));return e}const Me=a.ViewPlugin.fromClass(class{constructor(t){this.always=t.state.facet(Le)||t.textDirection!=a.Direction.LTR||t.state.facet(a.EditorView.perLineTextDirection);this.hasRTL=!this.always&&Oe(t.state.doc);this.tree=b(t.state);this.decorations=this.always||this.hasRTL?Re(t,this.tree,this.always):a.Decoration.none}update(t){let e=t.state.facet(Le)||t.view.textDirection!=a.Direction.LTR||t.state.facet(a.EditorView.perLineTextDirection);if(!e&&!this.hasRTL&&Ee(t.changes))this.hasRTL=true;if(!e&&!this.hasRTL)return;let n=b(t.state);if(e!=this.always||n!=this.tree||t.docChanged||t.viewportChanged){this.tree=n;this.always=e;this.decorations=Re(t.view,n,e)}}},{provide:t=>{function e(e){var n,r;return(r=(n=e.plugin(t))===null||n===void 0?void 0:n.decorations)!==null&&r!==void 0?r:a.Decoration.none}return[a.EditorView.outerDecorations.of(e),s.Prec.lowest(a.EditorView.bidiIsolatedRanges.of(e))]}});function Re(t,e,n){let i=new s.RangeSetBuilder;let o=t.visibleRanges;if(!n)o=Fe(o,t.state.doc);for(let{from:s,to:a}of o){e.iterate({enter:t=>{let e=t.type.prop(r.NodeProp.isolate);if(e)i.add(t.from,t.to,Ve[e])},from:s,to:a})}return i.finish()}function Fe(t,e){let n=e.iter(),r=0,i=[],s=null;for(let{from:o,to:a}of t){if(s&&s.to>o){o=s.to;if(o>=a)continue}if(r+n.value.lengtht-10)s.to=Math.min(a,e);else i.push(s={from:t,to:Math.min(a,e)})}if(e>=a)break;r=e;n.next()}}return i}const Ve={rtl:a.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"rtl"},bidiIsolate:a.Direction.RTL}),ltr:a.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"ltr"},bidiIsolate:a.Direction.LTR}),auto:a.Decoration.mark({class:"cm-iso",inclusive:true,attributes:{dir:"auto"},bidiIsolate:null})}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8326.9dda93079a9e4f1b9be6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8326.9dda93079a9e4f1b9be6.js new file mode 100644 index 0000000000000000000000000000000000000000..5c02626784077bd070cb68f53305d9f5735ddd75 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8326.9dda93079a9e4f1b9be6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8326],{98326:(e,_,t)=>{t.r(_);t.d(_,{nginx:()=>f});function r(e){var _={},t=e.split(" ");for(var r=0;r*\/]/.test(r)){return n(null,"select-op")}else if(/[;{}:\[\]]/.test(r)){return n(null,r)}else{e.eatWhile(/[\w\\\-]/);return n("variable","variable")}}function l(e,_){var t=false,r;while((r=e.next())!=null){if(t&&r=="/"){_.tokenize=c;break}t=r=="*"}return n("comment","comment")}function p(e,_){var t=0,r;while((r=e.next())!=null){if(t>=2&&r==">"){_.tokenize=c;break}t=r=="-"?t+1:0}return n("comment","comment")}function u(e){return function(_,t){var r=false,i;while((i=_.next())!=null){if(i==e&&!r)break;r=!r&&i=="\\"}if(!r)t.tokenize=c;return n("string","string")}}const f={name:"nginx",startState:function(){return{tokenize:c,baseIndent:0,stack:[]}},token:function(e,_){if(e.eatSpace())return null;o=null;var t=_.tokenize(e,_);var r=_.stack[_.stack.length-1];if(o=="hash"&&r=="rule")t="atom";else if(t=="variable"){if(r=="rule")t="number";else if(!r||r=="@media{")t="tag"}if(r=="rule"&&/^[\{\};]$/.test(o))_.stack.pop();if(o=="{"){if(r=="@media")_.stack[_.stack.length-1]="@media{";else _.stack.push("{")}else if(o=="}")_.stack.pop();else if(o=="@media")_.stack.push("@media");else if(r=="{"&&o!="comment")_.stack.push("rule");return t},indent:function(e,_,t){var r=e.stack.length;if(/^\}/.test(_))r-=e.stack[e.stack.length-1]=="rule"?2:1;return e.baseIndent+r*t.unit},languageData:{indentOnInput:/^\s*\}$/}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8368.c75a4b32ae45ec88465d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8368.c75a4b32ae45ec88465d.js new file mode 100644 index 0000000000000000000000000000000000000000..0fab82bc840e0508acfba7af210f0f75e14f2727 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8368.c75a4b32ae45ec88465d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8368],{85987:(e,r,t)=>{t.r(r);t.d(r,{javascript:()=>i,json:()=>a,jsonld:()=>u,typescript:()=>f});function n(e){var r=e.statementIndent;var t=e.jsonld;var n=e.json||t;var i=e.typescript;var a=e.wordCharacters||/[\w$\xa1-\uffff]/;var u=function(){function e(e){return{type:e,style:"keyword"}}var r=e("keyword a"),t=e("keyword b"),n=e("keyword c"),i=e("keyword d");var a=e("operator"),u={type:"atom",style:"atom"};return{if:e("if"),while:r,with:r,else:t,do:t,try:t,finally:t,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:u,false:u,null:u,undefined:u,NaN:u,Infinity:u,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}();var f=/[+\-*&%=<>!?|~^@]/;var s=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function o(e){var r=false,t,n=false;while((t=e.next())!=null){if(!r){if(t=="/"&&!n)return;if(t=="[")n=true;else if(n&&t=="]")n=false}r=!r&&t=="\\"}}var l,c;function d(e,r,t){l=e;c=t;return r}function m(e,r){var t=e.next();if(t=='"'||t=="'"){r.tokenize=p(t);return r.tokenize(e,r)}else if(t=="."&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)){return d("number","number")}else if(t=="."&&e.match("..")){return d("spread","meta")}else if(/[\[\]{}\(\),;\:\.]/.test(t)){return d(t)}else if(t=="="&&e.eat(">")){return d("=>","operator")}else if(t=="0"&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)){return d("number","number")}else if(/\d/.test(t)){e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);return d("number","number")}else if(t=="/"){if(e.eat("*")){r.tokenize=k;return k(e,r)}else if(e.eat("/")){e.skipToEnd();return d("comment","comment")}else if(er(e,r,1)){o(e);e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return d("regexp","string.special")}else{e.eat("=");return d("operator","operator",e.current())}}else if(t=="`"){r.tokenize=v;return v(e,r)}else if(t=="#"&&e.peek()=="!"){e.skipToEnd();return d("meta","meta")}else if(t=="#"&&e.eatWhile(a)){return d("variable","property")}else if(t=="<"&&e.match("!--")||t=="-"&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start))){e.skipToEnd();return d("comment","comment")}else if(f.test(t)){if(t!=">"||!r.lexical||r.lexical.type!=">"){if(e.eat("=")){if(t=="!"||t=="=")e.eat("=")}else if(/[<>*+\-|&?]/.test(t)){e.eat(t);if(t==">")e.eat(t)}}if(t=="?"&&e.eat("."))return d(".");return d("operator","operator",e.current())}else if(a.test(t)){e.eatWhile(a);var n=e.current();if(r.lastType!="."){if(u.propertyIsEnumerable(n)){var i=u[n];return d(i.type,i.style,n)}if(n=="async"&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,false))return d("async","keyword",n)}return d("variable","variable",n)}}function p(e){return function(r,n){var i=false,a;if(t&&r.peek()=="@"&&r.match(s)){n.tokenize=m;return d("jsonld-keyword","meta")}while((a=r.next())!=null){if(a==e&&!i)break;i=!i&&a=="\\"}if(!i)n.tokenize=m;return d("string","string")}}function k(e,r){var t=false,n;while(n=e.next()){if(n=="/"&&t){r.tokenize=m;break}t=n=="*"}return d("comment","comment")}function v(e,r){var t=false,n;while((n=e.next())!=null){if(!t&&(n=="`"||n=="$"&&e.eat("{"))){r.tokenize=m;break}t=!t&&n=="\\"}return d("quasi","string.special",e.current())}var y="([{}])";function w(e,r){if(r.fatArrowAt)r.fatArrowAt=null;var t=e.string.indexOf("=>",e.start);if(t<0)return;if(i){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,t));if(n)t=n.index}var u=0,f=false;for(var s=t-1;s>=0;--s){var o=e.string.charAt(s);var l=y.indexOf(o);if(l>=0&&l<3){if(!u){++s;break}if(--u==0){if(o=="(")f=true;break}}else if(l>=3&&l<6){++u}else if(a.test(o)){f=true}else if(/["'\/`]/.test(o)){for(;;--s){if(s==0)return;var c=e.string.charAt(s-1);if(c==o&&e.string.charAt(s-2)!="\\"){s--;break}}}else if(f&&!u){++s;break}}if(f&&!u)r.fatArrowAt=s}var b={atom:true,number:true,variable:true,string:true,regexp:true,this:true,import:true,"jsonld-keyword":true};function h(e,r,t,n,i,a){this.indented=e;this.column=r;this.type=t;this.prev=i;this.info=a;if(n!=null)this.align=n}function x(e,r){for(var t=e.localVars;t;t=t.next)if(t.name==r)return true;for(var n=e.context;n;n=n.prev){for(var t=n.vars;t;t=t.next)if(t.name==r)return true}}function g(e,r,t,i,a){var u=e.cc;V.state=e;V.stream=a;V.marked=null;V.cc=u;V.style=r;if(!e.lexical.hasOwnProperty("align"))e.lexical.align=true;while(true){var f=u.length?u.pop():n?F:B;if(f(t,i)){while(u.length&&u[u.length-1].lex)u.pop()();if(V.marked)return V.marked;if(t=="variable"&&x(e,i))return"variableName.local";return r}}}var V={state:null,column:null,marked:null,cc:null};function A(){for(var e=arguments.length-1;e>=0;e--)V.cc.push(arguments[e])}function z(){A.apply(null,arguments);return true}function j(e,r){for(var t=r;t;t=t.next)if(t.name==e)return true;return false}function T(r){var t=V.state;V.marked="def";if(t.context){if(t.lexical.info=="var"&&t.context&&t.context.block){var n=_(r,t.context);if(n!=null){t.context=n;return}}else if(!j(r,t.localVars)){t.localVars=new q(r,t.localVars);return}}if(e.globalVars&&!j(r,t.globalVars))t.globalVars=new q(r,t.globalVars)}function _(e,r){if(!r){return null}else if(r.block){var t=_(e,r.prev);if(!t)return null;if(t==r.prev)return r;return new O(t,r.vars,true)}else if(j(e,r.vars)){return r}else{return new O(r.prev,new q(e,r.vars),false)}}function $(e){return e=="public"||e=="private"||e=="protected"||e=="abstract"||e=="readonly"}function O(e,r,t){this.prev=e;this.vars=r;this.block=t}function q(e,r){this.name=e;this.next=r}var E=new q("this",new q("arguments",null));function I(){V.state.context=new O(V.state.context,V.state.localVars,false);V.state.localVars=E}function C(){V.state.context=new O(V.state.context,V.state.localVars,true);V.state.localVars=null}I.lex=C.lex=true;function S(){V.state.localVars=V.state.context.vars;V.state.context=V.state.context.prev}S.lex=true;function N(e,r){var t=function(){var t=V.state,n=t.indented;if(t.lexical.type=="stat")n=t.lexical.indented;else for(var i=t.lexical;i&&i.type==")"&&i.align;i=i.prev)n=i.indented;t.lexical=new h(n,V.stream.column(),e,null,t.lexical,r)};t.lex=true;return t}function P(){var e=V.state;if(e.lexical.prev){if(e.lexical.type==")")e.indented=e.lexical.indented;e.lexical=e.lexical.prev}}P.lex=true;function W(e){function r(t){if(t==e)return z();else if(e==";"||t=="}"||t==")"||t=="]")return A();else return z(r)}return r}function B(e,r){if(e=="var")return z(N("vardef",r),Ae,W(";"),P);if(e=="keyword a")return z(N("form"),G,B,P);if(e=="keyword b")return z(N("form"),B,P);if(e=="keyword d")return V.stream.match(/^\s*$/,false)?z():z(N("stat"),J,W(";"),P);if(e=="debugger")return z(W(";"));if(e=="{")return z(N("}"),C,se,P,S);if(e==";")return z();if(e=="if"){if(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==P)V.state.cc.pop()();return z(N("form"),G,B,P,Oe)}if(e=="function")return z(Ce);if(e=="for")return z(N("form"),C,qe,B,S,P);if(e=="class"||i&&r=="interface"){V.marked="keyword";return z(N("form",e=="class"?e:r),Be,P)}if(e=="variable"){if(i&&r=="declare"){V.marked="keyword";return z(B)}else if(i&&(r=="module"||r=="enum"||r=="type")&&V.stream.match(/^\s*\w/,false)){V.marked="keyword";if(r=="enum")return z(Xe);else if(r=="type")return z(Ne,W("operator"),me,W(";"));else return z(N("form"),ze,W("{"),N("}"),se,P,P)}else if(i&&r=="namespace"){V.marked="keyword";return z(N("form"),F,B,P)}else if(i&&r=="abstract"){V.marked="keyword";return z(B)}else{return z(N("stat"),re)}}if(e=="switch")return z(N("form"),G,W("{"),N("}","switch"),C,se,P,P,S);if(e=="case")return z(F,W(":"));if(e=="default")return z(W(":"));if(e=="catch")return z(N("form"),I,D,B,P,S);if(e=="export")return z(N("stat"),Ge,P);if(e=="import")return z(N("stat"),Je,P);if(e=="async")return z(B);if(r=="@")return z(F,B);return A(N("stat"),F,W(";"),P)}function D(e){if(e=="(")return z(Pe,W(")"))}function F(e,r){return H(e,r,false)}function U(e,r){return H(e,r,true)}function G(e){if(e!="(")return A();return z(N(")"),J,W(")"),P)}function H(e,r,t){if(V.state.fatArrowAt==V.stream.start){var n=t?X:R;if(e=="(")return z(I,N(")"),ue(Pe,")"),P,W("=>"),n,S);else if(e=="variable")return A(I,ze,W("=>"),n,S)}var a=t?L:K;if(b.hasOwnProperty(e))return z(a);if(e=="function")return z(Ce,a);if(e=="class"||i&&r=="interface"){V.marked="keyword";return z(N("form"),We,P)}if(e=="keyword c"||e=="async")return z(t?U:F);if(e=="(")return z(N(")"),J,W(")"),P,a);if(e=="operator"||e=="spread")return z(t?U:F);if(e=="[")return z(N("]"),Re,P,a);if(e=="{")return fe(ne,"}",null,a);if(e=="quasi")return A(M,a);if(e=="new")return z(Y(t));return z()}function J(e){if(e.match(/[;\}\)\],]/))return A();return A(F)}function K(e,r){if(e==",")return z(J);return L(e,r,false)}function L(e,r,t){var n=t==false?K:L;var a=t==false?F:U;if(e=="=>")return z(I,t?X:R,S);if(e=="operator"){if(/\+\+|--/.test(r)||i&&r=="!")return z(n);if(i&&r=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,false))return z(N(">"),ue(me,">"),P,n);if(r=="?")return z(F,W(":"),a);return z(a)}if(e=="quasi"){return A(M,n)}if(e==";")return;if(e=="(")return fe(U,")","call",n);if(e==".")return z(te,n);if(e=="[")return z(N("]"),J,W("]"),P,n);if(i&&r=="as"){V.marked="keyword";return z(me,n)}if(e=="regexp"){V.state.lastType=V.marked="operator";V.stream.backUp(V.stream.pos-V.stream.start-1);return z(a)}}function M(e,r){if(e!="quasi")return A();if(r.slice(r.length-2)!="${")return z(M);return z(J,Q)}function Q(e){if(e=="}"){V.marked="string.special";V.state.tokenize=v;return z(M)}}function R(e){w(V.stream,V.state);return A(e=="{"?B:F)}function X(e){w(V.stream,V.state);return A(e=="{"?B:U)}function Y(e){return function(r){if(r==".")return z(e?ee:Z);else if(r=="variable"&&i)return z(xe,e?L:K);else return A(e?U:F)}}function Z(e,r){if(r=="target"){V.marked="keyword";return z(K)}}function ee(e,r){if(r=="target"){V.marked="keyword";return z(L)}}function re(e){if(e==":")return z(P,B);return A(K,W(";"),P)}function te(e){if(e=="variable"){V.marked="property";return z()}}function ne(e,r){if(e=="async"){V.marked="property";return z(ne)}else if(e=="variable"||V.style=="keyword"){V.marked="property";if(r=="get"||r=="set")return z(ie);var n;if(i&&V.state.fatArrowAt==V.stream.start&&(n=V.stream.match(/^\s*:\s*/,false)))V.state.fatArrowAt=V.stream.pos+n[0].length;return z(ae)}else if(e=="number"||e=="string"){V.marked=t?"property":V.style+" property";return z(ae)}else if(e=="jsonld-keyword"){return z(ae)}else if(i&&$(r)){V.marked="keyword";return z(ne)}else if(e=="["){return z(F,oe,W("]"),ae)}else if(e=="spread"){return z(U,ae)}else if(r=="*"){V.marked="keyword";return z(ne)}else if(e==":"){return A(ae)}}function ie(e){if(e!="variable")return A(ae);V.marked="property";return z(Ce)}function ae(e){if(e==":")return z(U);if(e=="(")return A(Ce)}function ue(e,r,t){function n(i,a){if(t?t.indexOf(i)>-1:i==","){var u=V.state.lexical;if(u.info=="call")u.pos=(u.pos||0)+1;return z((function(t,n){if(t==r||n==r)return A();return A(e)}),n)}if(i==r||a==r)return z();if(t&&t.indexOf(";")>-1)return A(e);return z(W(r))}return function(t,i){if(t==r||i==r)return z();return A(e,n)}}function fe(e,r,t){for(var n=3;n"),me);if(e=="quasi")return A(ye,he)}function pe(e){if(e=="=>")return z(me)}function ke(e){if(e.match(/[\}\)\]]/))return z();if(e==","||e==";")return z(ke);return A(ve,ke)}function ve(e,r){if(e=="variable"||V.style=="keyword"){V.marked="property";return z(ve)}else if(r=="?"||e=="number"||e=="string"){return z(ve)}else if(e==":"){return z(me)}else if(e=="["){return z(W("variable"),le,W("]"),ve)}else if(e=="("){return A(Se,ve)}else if(!e.match(/[;\}\)\],]/)){return z()}}function ye(e,r){if(e!="quasi")return A();if(r.slice(r.length-2)!="${")return z(ye);return z(me,we)}function we(e){if(e=="}"){V.marked="string.special";V.state.tokenize=v;return z(ye)}}function be(e,r){if(e=="variable"&&V.stream.match(/^\s*[?:]/,false)||r=="?")return z(be);if(e==":")return z(me);if(e=="spread")return z(be);return A(me)}function he(e,r){if(r=="<")return z(N(">"),ue(me,">"),P,he);if(r=="|"||e=="."||r=="&")return z(me);if(e=="[")return z(me,W("]"),he);if(r=="extends"||r=="implements"){V.marked="keyword";return z(me)}if(r=="?")return z(me,W(":"),me)}function xe(e,r){if(r=="<")return z(N(">"),ue(me,">"),P,he)}function ge(){return A(me,Ve)}function Ve(e,r){if(r=="=")return z(me)}function Ae(e,r){if(r=="enum"){V.marked="keyword";return z(Xe)}return A(ze,oe,_e,$e)}function ze(e,r){if(i&&$(r)){V.marked="keyword";return z(ze)}if(e=="variable"){T(r);return z()}if(e=="spread")return z(ze);if(e=="[")return fe(Te,"]");if(e=="{")return fe(je,"}")}function je(e,r){if(e=="variable"&&!V.stream.match(/^\s*:/,false)){T(r);return z(_e)}if(e=="variable")V.marked="property";if(e=="spread")return z(ze);if(e=="}")return A();if(e=="[")return z(F,W("]"),W(":"),je);return z(W(":"),ze,_e)}function Te(){return A(ze,_e)}function _e(e,r){if(r=="=")return z(U)}function $e(e){if(e==",")return z(Ae)}function Oe(e,r){if(e=="keyword b"&&r=="else")return z(N("form","else"),B,P)}function qe(e,r){if(r=="await")return z(qe);if(e=="(")return z(N(")"),Ee,P)}function Ee(e){if(e=="var")return z(Ae,Ie);if(e=="variable")return z(Ie);return A(Ie)}function Ie(e,r){if(e==")")return z();if(e==";")return z(Ie);if(r=="in"||r=="of"){V.marked="keyword";return z(F,Ie)}return A(F,Ie)}function Ce(e,r){if(r=="*"){V.marked="keyword";return z(Ce)}if(e=="variable"){T(r);return z(Ce)}if(e=="(")return z(I,N(")"),ue(Pe,")"),P,ce,B,S);if(i&&r=="<")return z(N(">"),ue(ge,">"),P,Ce)}function Se(e,r){if(r=="*"){V.marked="keyword";return z(Se)}if(e=="variable"){T(r);return z(Se)}if(e=="(")return z(I,N(")"),ue(Pe,")"),P,ce,S);if(i&&r=="<")return z(N(">"),ue(ge,">"),P,Se)}function Ne(e,r){if(e=="keyword"||e=="variable"){V.marked="type";return z(Ne)}else if(r=="<"){return z(N(">"),ue(ge,">"),P)}}function Pe(e,r){if(r=="@")z(F,Pe);if(e=="spread")return z(Pe);if(i&&$(r)){V.marked="keyword";return z(Pe)}if(i&&e=="this")return z(oe,_e);return A(ze,oe,_e)}function We(e,r){if(e=="variable")return Be(e,r);return De(e,r)}function Be(e,r){if(e=="variable"){T(r);return z(De)}}function De(e,r){if(r=="<")return z(N(">"),ue(ge,">"),P,De);if(r=="extends"||r=="implements"||i&&e==","){if(r=="implements")V.marked="keyword";return z(i?me:F,De)}if(e=="{")return z(N("}"),Fe,P)}function Fe(e,r){if(e=="async"||e=="variable"&&(r=="static"||r=="get"||r=="set"||i&&$(r))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,false)){V.marked="keyword";return z(Fe)}if(e=="variable"||V.style=="keyword"){V.marked="property";return z(Ue,Fe)}if(e=="number"||e=="string")return z(Ue,Fe);if(e=="[")return z(F,oe,W("]"),Ue,Fe);if(r=="*"){V.marked="keyword";return z(Fe)}if(i&&e=="(")return A(Se,Fe);if(e==";"||e==",")return z(Fe);if(e=="}")return z();if(r=="@")return z(F,Fe)}function Ue(e,r){if(r=="!"||r=="?")return z(Ue);if(e==":")return z(me,_e);if(r=="=")return z(U);var t=V.state.lexical.prev,n=t&&t.info=="interface";return A(n?Se:Ce)}function Ge(e,r){if(r=="*"){V.marked="keyword";return z(Qe,W(";"))}if(r=="default"){V.marked="keyword";return z(F,W(";"))}if(e=="{")return z(ue(He,"}"),Qe,W(";"));return A(B)}function He(e,r){if(r=="as"){V.marked="keyword";return z(W("variable"))}if(e=="variable")return A(U,He)}function Je(e){if(e=="string")return z();if(e=="(")return A(F);if(e==".")return A(K);return A(Ke,Le,Qe)}function Ke(e,r){if(e=="{")return fe(Ke,"}");if(e=="variable")T(r);if(r=="*")V.marked="keyword";return z(Me)}function Le(e){if(e==",")return z(Ke,Le)}function Me(e,r){if(r=="as"){V.marked="keyword";return z(Ke)}}function Qe(e,r){if(r=="from"){V.marked="keyword";return z(F)}}function Re(e){if(e=="]")return z();return A(ue(U,"]"))}function Xe(){return A(N("form"),ze,W("{"),N("}"),ue(Ye,"}"),P,P)}function Ye(){return A(ze,_e)}function Ze(e,r){return e.lastType=="operator"||e.lastType==","||f.test(r.charAt(0))||/[,.]/.test(r.charAt(0))}function er(e,r,t){return r.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(r.lastType)||r.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(t||0)))}return{name:e.name,startState:function(r){var t={tokenize:m,lastType:"sof",cc:[],lexical:new h(-r,0,"block",false),localVars:e.localVars,context:e.localVars&&new O(null,null,false),indented:0};if(e.globalVars&&typeof e.globalVars=="object")t.globalVars=e.globalVars;return t},token:function(e,r){if(e.sol()){if(!r.lexical.hasOwnProperty("align"))r.lexical.align=false;r.indented=e.indentation();w(e,r)}if(r.tokenize!=k&&e.eatSpace())return null;var t=r.tokenize(e,r);if(l=="comment")return t;r.lastType=l=="operator"&&(c=="++"||c=="--")?"incdec":l;return g(r,t,l,c,e)},indent:function(t,n,i){if(t.tokenize==k||t.tokenize==v)return null;if(t.tokenize!=m)return 0;var a=n&&n.charAt(0),u=t.lexical,f;if(!/^\s*else\b/.test(n))for(var s=t.cc.length-1;s>=0;--s){var o=t.cc[s];if(o==P)u=u.prev;else if(o!=Oe&&o!=S)break}while((u.type=="stat"||u.type=="form")&&(a=="}"||(f=t.cc[t.cc.length-1])&&(f==K||f==L)&&!/^[,\.=+\-*:?[\(]/.test(n)))u=u.prev;if(r&&u.type==")"&&u.prev.type=="stat")u=u.prev;var l=u.type,c=a==l;if(l=="vardef")return u.indented+(t.lastType=="operator"||t.lastType==","?u.info.length+1:0);else if(l=="form"&&a=="{")return u.indented;else if(l=="form")return u.indented+i.unit;else if(l=="stat")return u.indented+(Ze(t,n)?r||i.unit:0);else if(u.info=="switch"&&!c&&e.doubleIndentSwitch!=false)return u.indented+(/^(?:case|default)\b/.test(n)?i.unit:2*i.unit);else if(u.align)return u.column+(c?0:1);else return u.indented+(c?0:i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:n?undefined:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const i=n({name:"javascript"});const a=n({name:"json",json:true});const u=n({name:"json",jsonld:true});const f=n({name:"typescript",typescript:true})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8391.e5fb2e35cced405eb819.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8391.e5fb2e35cced405eb819.js new file mode 100644 index 0000000000000000000000000000000000000000..9c34660c4e0d0fd29c080686df6d52b38f2321a8 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8391.e5fb2e35cced405eb819.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8391],{78391:(t,e,a)=>{a.d(e,{diagram:()=>j});var i=a(88855);var r=a(15051);var n=a(94065);var s=a(33416);var d=a(94746);var o=a(20778);var c=a(57590);var g=a(68232);var p=a(76261);var h=a(96049);var l=a(75905);var f=a(24982);var x=a(82211);var u=a(84416);var D={};var y=(0,l.K2)(((t,e)=>{D[t]=e}),"set");var w=(0,l.K2)((t=>D[t]),"get");var v=(0,l.K2)((()=>Object.keys(D)),"keys");var m=(0,l.K2)((()=>v().length),"size");var b={get:w,set:y,keys:v,size:m};var B=(0,l.K2)((t=>t.append("circle").attr("class","start-state").attr("r",(0,l.D7)().state.sizeUnit).attr("cx",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit).attr("cy",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit)),"drawStartState");var k=(0,l.K2)((t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,l.D7)().state.textHeight).attr("class","divider").attr("x2",(0,l.D7)().state.textHeight*2).attr("y1",0).attr("y2",0)),"drawDivider");var S=(0,l.K2)(((t,e)=>{const a=t.append("text").attr("x",2*(0,l.D7)().state.padding).attr("y",(0,l.D7)().state.textHeight+2*(0,l.D7)().state.padding).attr("font-size",(0,l.D7)().state.fontSize).attr("class","state-title").text(e.id);const i=a.node().getBBox();t.insert("rect",":first-child").attr("x",(0,l.D7)().state.padding).attr("y",(0,l.D7)().state.padding).attr("width",i.width+2*(0,l.D7)().state.padding).attr("height",i.height+2*(0,l.D7)().state.padding).attr("rx",(0,l.D7)().state.radius);return a}),"drawSimpleState");var N=(0,l.K2)(((t,e)=>{const a=(0,l.K2)((function(t,e,a){const i=t.append("tspan").attr("x",2*(0,l.D7)().state.padding).text(e);if(!a){i.attr("dy",(0,l.D7)().state.textHeight)}}),"addTspan");const i=t.append("text").attr("x",2*(0,l.D7)().state.padding).attr("y",(0,l.D7)().state.textHeight+1.3*(0,l.D7)().state.padding).attr("font-size",(0,l.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]);const r=i.node().getBBox();const n=r.height;const s=t.append("text").attr("x",(0,l.D7)().state.padding).attr("y",n+(0,l.D7)().state.padding*.4+(0,l.D7)().state.dividerMargin+(0,l.D7)().state.textHeight).attr("class","state-description");let d=true;let o=true;e.descriptions.forEach((function(t){if(!d){a(s,t,o);o=false}d=false}));const c=t.append("line").attr("x1",(0,l.D7)().state.padding).attr("y1",(0,l.D7)().state.padding+n+(0,l.D7)().state.dividerMargin/2).attr("y2",(0,l.D7)().state.padding+n+(0,l.D7)().state.dividerMargin/2).attr("class","descr-divider");const g=s.node().getBBox();const p=Math.max(g.width,r.width);c.attr("x2",p+3*(0,l.D7)().state.padding);t.insert("rect",":first-child").attr("x",(0,l.D7)().state.padding).attr("y",(0,l.D7)().state.padding).attr("width",p+2*(0,l.D7)().state.padding).attr("height",g.height+n+2*(0,l.D7)().state.padding).attr("rx",(0,l.D7)().state.radius);return t}),"drawDescrState");var E=(0,l.K2)(((t,e,a)=>{const i=(0,l.D7)().state.padding;const r=2*(0,l.D7)().state.padding;const n=t.node().getBBox();const s=n.width;const d=n.x;const o=t.append("text").attr("x",0).attr("y",(0,l.D7)().state.titleShift).attr("font-size",(0,l.D7)().state.fontSize).attr("class","state-title").text(e.id);const c=o.node().getBBox();const g=c.width+r;let p=Math.max(g,s);if(p===s){p=p+r}let h;const f=t.node().getBBox();if(e.doc){}h=d-i;if(g>s){h=(s-p)/2+i}if(Math.abs(d-f.x)s){h=d-(g-s)/2}const x=1-(0,l.D7)().state.textHeight;t.insert("rect",":first-child").attr("x",h).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",p).attr("height",f.height+(0,l.D7)().state.textHeight+(0,l.D7)().state.titleShift+1).attr("rx","0");o.attr("x",h+i);if(g<=s){o.attr("x",d+(p-r)/2-g/2+i)}t.insert("rect",":first-child").attr("x",h).attr("y",(0,l.D7)().state.titleShift-(0,l.D7)().state.textHeight-(0,l.D7)().state.padding).attr("width",p).attr("height",(0,l.D7)().state.textHeight*3).attr("rx",(0,l.D7)().state.radius);t.insert("rect",":first-child").attr("x",h).attr("y",(0,l.D7)().state.titleShift-(0,l.D7)().state.textHeight-(0,l.D7)().state.padding).attr("width",p).attr("height",f.height+3+2*(0,l.D7)().state.textHeight).attr("rx",(0,l.D7)().state.radius);return t}),"addTitleAndBox");var K=(0,l.K2)((t=>{t.append("circle").attr("class","end-state-outer").attr("r",(0,l.D7)().state.sizeUnit+(0,l.D7)().state.miniPadding).attr("cx",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit+(0,l.D7)().state.miniPadding).attr("cy",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit+(0,l.D7)().state.miniPadding);return t.append("circle").attr("class","end-state-inner").attr("r",(0,l.D7)().state.sizeUnit).attr("cx",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit+2).attr("cy",(0,l.D7)().state.padding+(0,l.D7)().state.sizeUnit+2)}),"drawEndState");var M=(0,l.K2)(((t,e)=>{let a=(0,l.D7)().state.forkWidth;let i=(0,l.D7)().state.forkHeight;if(e.parentId){let t=a;a=i;i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,l.D7)().state.padding).attr("y",(0,l.D7)().state.padding)}),"drawForkJoinState");var R=(0,l.K2)(((t,e,a,i)=>{let r=0;const n=i.append("text");n.style("text-anchor","start");n.attr("class","noteText");let s=t.replace(/\r\n/g,"
    ");s=s.replace(/\n/g,"
    ");const d=s.split(l.Y2.lineBreakRegex);let o=1.25*(0,l.D7)().state.noteMargin;for(const c of d){const t=c.trim();if(t.length>0){const i=n.append("tspan");i.text(t);if(o===0){const t=i.node().getBBox();o+=t.height}r+=o;i.attr("x",e+(0,l.D7)().state.noteMargin);i.attr("y",a+r+1.25*(0,l.D7)().state.noteMargin)}}return{textWidth:n.node().getBBox().width,textHeight:r}}),"_drawLongText");var z=(0,l.K2)(((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",(0,l.D7)().state.padding);const i=e.append("g");const{textWidth:r,textHeight:n}=R(t,0,0,i);a.attr("height",n+2*(0,l.D7)().state.noteMargin);a.attr("width",r+(0,l.D7)().state.noteMargin*2);return a}),"drawNote");var H=(0,l.K2)((function(t,e){const a=e.id;const i={id:a,label:e.id,width:0,height:0};const r=t.append("g").attr("id",a).attr("class","stateGroup");if(e.type==="start"){B(r)}if(e.type==="end"){K(r)}if(e.type==="fork"||e.type==="join"){M(r,e)}if(e.type==="note"){z(e.note.text,r)}if(e.type==="divider"){k(r)}if(e.type==="default"&&e.descriptions.length===0){S(r,e)}if(e.type==="default"&&e.descriptions.length>0){N(r,e)}const n=r.node().getBBox();i.width=n.width+2*(0,l.D7)().state.padding;i.height=n.height+2*(0,l.D7)().state.padding;b.set(a,i);return i}),"drawState");var T=0;var L=(0,l.K2)((function(t,e,a){const r=(0,l.K2)((function(t){switch(t){case i.u4.relationType.AGGREGATION:return"aggregation";case i.u4.relationType.EXTENSION:return"extension";case i.u4.relationType.COMPOSITION:return"composition";case i.u4.relationType.DEPENDENCY:return"dependency"}}),"getRelationType");e.points=e.points.filter((t=>!Number.isNaN(t.y)));const n=e.points;const s=(0,f.n8j)().x((function(t){return t.x})).y((function(t){return t.y})).curve(f.qrM);const d=t.append("path").attr("d",s(n)).attr("id","edge"+T).attr("class","transition");let o="";if((0,l.D7)().state.arrowMarkerAbsolute){o=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;o=o.replace(/\(/g,"\\(");o=o.replace(/\)/g,"\\)")}d.attr("marker-end","url("+o+"#"+r(i.u4.relationType.DEPENDENCY)+"End)");if(a.title!==void 0){const i=t.append("g").attr("class","stateLabel");const{x:r,y:n}=h._K.calcLabelPosition(e.points);const s=l.Y2.getRows(a.title);let d=0;const o=[];let c=0;let g=0;for(let t=0;t<=s.length;t++){const e=i.append("text").attr("text-anchor","middle").text(s[t]).attr("x",r).attr("y",n+d);const a=e.node().getBBox();c=Math.max(c,a.width);g=Math.min(g,a.x);l.Rm.info(a.x,r,n+d);if(d===0){const t=e.node().getBBox();d=t.height;l.Rm.info("Title height",d,n)}o.push(e)}let p=d*s.length;if(s.length>1){const t=(s.length-1)*d*.5;o.forEach(((e,a)=>e.attr("y",n+a*d-t)));p=d*s.length}const f=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-c/2-(0,l.D7)().state.padding/2).attr("y",n-p/2-(0,l.D7)().state.padding/2-3.5).attr("width",c+(0,l.D7)().state.padding).attr("height",p+(0,l.D7)().state.padding);l.Rm.info(f)}T++}),"drawEdge");var A;var G={};var O=(0,l.K2)((function(){}),"setConf");var C=(0,l.K2)((function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"insertMarkers");var P=(0,l.K2)((function(t,e,a,i){A=(0,l.D7)().state;const r=(0,l.D7)().securityLevel;let n;if(r==="sandbox"){n=(0,f.Ltv)("#i"+e)}const s=r==="sandbox"?(0,f.Ltv)(n.nodes()[0].contentDocument.body):(0,f.Ltv)("body");const d=r==="sandbox"?n.nodes()[0].contentDocument:document;l.Rm.debug("Rendering diagram "+t);const o=s.select(`[id='${e}']`);C(o);const c=i.db.getRootDoc();_(c,o,void 0,false,s,d,i);const g=A.padding;const p=o.node().getBBox();const h=p.width+g*2;const x=p.height+g*2;const u=h*1.75;(0,l.a$)(o,x,u,A.useMaxWidth);o.attr("viewBox",`${p.x-A.padding} ${p.y-A.padding} `+h+" "+x)}),"draw");var U=(0,l.K2)((t=>t?t.length*A.fontSizeFactor:1),"getLabelWidth");var _=(0,l.K2)(((t,e,a,i,r,n,s)=>{const d=new u.T({compound:true,multigraph:true});let o;let c=true;for(o=0;o{const e=t.parentElement;let a=0;let i=0;if(e){if(e.parentElement){a=e.parentElement.getBBox().width}i=parseInt(e.getAttribute("data-x-shift"),10);if(Number.isNaN(i)){i=0}}t.setAttribute("x1",0-i+8);t.setAttribute("x2",a-i-8)}))}else{l.Rm.debug("No Node "+t+": "+JSON.stringify(d.node(t)))}}));let w=y.getBBox();d.edges().forEach((function(t){if(t!==void 0&&d.edge(t)!==void 0){l.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(d.edge(t)));L(e,d.edge(t),d.edge(t).relation)}}));w=y.getBBox();const v={id:a?a:"root",label:a?a:"root",width:0,height:0};v.width=w.width+2*A.padding;v.height=w.height+2*A.padding;l.Rm.debug("Doc rendered",v,d);return v}),"renderDoc");var I={setConf:O,draw:P};var j={parser:i.Zk,get db(){return new i.u4(1)},renderer:I,styles:i.tM,init:(0,l.K2)((t=>{if(!t.state){t.state={}}t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8493.3b6106e45d5661438d8e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8493.3b6106e45d5661438d8e.js new file mode 100644 index 0000000000000000000000000000000000000000..db0b397fa5c9662129a99e6216c7eff6260150bb --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8493.3b6106e45d5661438d8e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8493],{40874:(e,t,n)=>{n.r(t);n.d(t,{groovy:()=>v});function r(e){var t={},n=e.split(" ");for(var r=0;r")){s="->";return null}if(/[+\-*&%=<>!?|\/~]/.test(n)){e.eatWhile(/[+\-*&%=<>|~]/);return"operator"}e.eatWhile(/[\w\$_]/);if(n=="@"){e.eatWhile(/[\w\$_\.]/);return"meta"}if(t.lastToken==".")return"property";if(e.eat(":")){s="proplabel";return"property"}var r=e.current();if(o.propertyIsEnumerable(r)){return"atom"}if(i.propertyIsEnumerable(r)){if(a.propertyIsEnumerable(r))s="newstatement";else if(l.propertyIsEnumerable(r))s="standalone";return"keyword"}return"variable"}u.isBase=true;function f(e,t,n){var r=false;if(e!="/"&&t.eat(e)){if(t.eat(e))r=true;else return"string"}function i(t,n){var i=false,a,l=!r;while((a=t.next())!=null){if(a==e&&!i){if(!r){break}if(t.match(e+e)){l=true;break}}if(e=='"'&&a=="$"&&!i){if(t.eat("{")){n.tokenize.push(p());return"string"}else if(t.match(/^\w/,false)){n.tokenize.push(c);return"string"}}i=!i&&a=="\\"}if(l)n.tokenize.pop();return"string"}n.tokenize.push(i);return i(t,n)}function p(){var e=1;function t(t,n){if(t.peek()=="}"){e--;if(e==0){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}}else if(t.peek()=="{"){e++}return u(t,n)}t.isBase=true;return t}function c(e,t){var n=e.match(/^(\.|[\w\$_]+)/);if(!n||!e.match(n[0]=="."?/^[\w$_]/:/^\./))t.tokenize.pop();if(!n)return t.tokenize[t.tokenize.length-1](e,t);return n[0]=="."?null:"variable"}function h(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize.pop();break}n=r=="*"}return"comment"}function k(e,t){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!t}function m(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function d(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function y(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const v={name:"groovy",startState:function(e){return{tokenize:[u],context:new m(-e,0,"top",false),indented:0,startOfLine:true,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true;if(n.type=="statement"&&!k(t.lastToken,true)){y(t);n=t.context}}if(e.eatSpace())return null;s=null;var r=t.tokenize[t.tokenize.length-1](e,t);if(r=="comment")return r;if(n.align==null)n.align=true;if((s==";"||s==":")&&n.type=="statement")y(t);else if(s=="->"&&n.type=="statement"&&n.prev.type=="}"){y(t);t.context.align=false}else if(s=="{")d(t,e.column(),"}");else if(s=="[")d(t,e.column(),"]");else if(s=="(")d(t,e.column(),")");else if(s=="}"){while(n.type=="statement")n=y(t);if(n.type=="}")n=y(t);while(n.type=="statement")n=y(t)}else if(s==n.type)y(t);else if(n.type=="}"||n.type=="top"||n.type=="statement"&&s=="newstatement")d(t,e.column(),"statement");t.startOfLine=false;t.lastToken=s||r;return r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;if(i.type=="statement"&&!k(e.lastToken,true))i=i.prev;var a=r==i.type;if(i.type=="statement")return i.indented+(r=="{"?0:n.unit);else if(i.align)return i.column+(a?0:1);else return i.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/867.e814bf26fbfc77fc4f16.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/867.e814bf26fbfc77fc4f16.js new file mode 100644 index 0000000000000000000000000000000000000000..88011cf41fb5585676330e644dfaec0889681e1b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/867.e814bf26fbfc77fc4f16.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[867],{90867:(e,t,r)=>{r.r(t);r.d(t,{erlang:()=>H});var n=["-type","-spec","-export_type","-opaque"];var i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"];var a=/[\->,;]/;var o=["->",";",","];var u=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"];var s=/[\+\-\*\/<>=\|:!]/;var c=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"];var l=/[<\(\[\{]/;var f=["<<","(","[","{"];var _=/[>\)\]\}]/;var p=["}","]",")",">>"];var m=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"];var b=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"];var d=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/;var k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function g(e,t){if(t.in_string){t.in_string=!y(e);return W(t,e,"string")}if(t.in_atom){t.in_atom=!w(e);return W(t,e,"atom")}if(e.eatSpace()){return W(t,e,"whitespace")}if(!Z(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/)){if(z(e.current(),n)){return W(t,e,"type")}else{return W(t,e,"attribute")}}var r=e.next();if(r=="%"){e.skipToEnd();return W(t,e,"comment")}if(r==":"){return W(t,e,"colon")}if(r=="?"){e.eatSpace();e.eatWhile(d);return W(t,e,"macro")}if(r=="#"){e.eatSpace();e.eatWhile(d);return W(t,e,"record")}if(r=="$"){if(e.next()=="\\"&&!e.match(k)){return W(t,e,"error")}return W(t,e,"number")}if(r=="."){return W(t,e,"dot")}if(r=="'"){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,false)){e.match(/\s*\/\s*[0-9]/,true);return W(t,e,"fun")}if(e.match(/\s*\(/,false)||e.match(/\s*:/,false)){return W(t,e,"function")}}return W(t,e,"atom")}if(r=='"'){t.in_string=!y(e);return W(t,e,"string")}if(/[A-Z_Ø-ÞÀ-Ö]/.test(r)){e.eatWhile(d);return W(t,e,"variable")}if(/[a-z_ß-öø-ÿ]/.test(r)){e.eatWhile(d);if(e.match(/\s*\/\s*[0-9]/,false)){e.match(/\s*\/\s*[0-9]/,true);return W(t,e,"fun")}var g=e.current();if(z(g,i)){return W(t,e,"keyword")}else if(z(g,u)){return W(t,e,"operator")}else if(e.match(/\s*\(/,false)){if(z(g,b)&&(Z(t).token!=":"||Z(t,2).token=="erlang")){return W(t,e,"builtin")}else if(z(g,m)){return W(t,e,"guard")}else{return W(t,e,"function")}}else if(S(e)==":"){if(g=="erlang"){return W(t,e,"builtin")}else{return W(t,e,"function")}}else if(z(g,["true","false"])){return W(t,e,"boolean")}else{return W(t,e,"atom")}}var x=/[0-9]/;var U=/[0-9a-zA-Z]/;if(x.test(r)){e.eatWhile(x);if(e.eat("#")){if(!e.eatWhile(U)){e.backUp(1)}}else if(e.eat(".")){if(!e.eatWhile(x)){e.backUp(1)}else{if(e.eat(/[eE]/)){if(e.eat(/[-+]/)){if(!e.eatWhile(x)){e.backUp(2)}}else{if(!e.eatWhile(x)){e.backUp(1)}}}}}return W(t,e,"number")}if(h(e,l,f)){return W(t,e,"open_paren")}if(h(e,_,p)){return W(t,e,"close_paren")}if(v(e,a,o)){return W(t,e,"separator")}if(v(e,s,c)){return W(t,e,"operator")}return W(t,e,null)}function h(e,t,r){if(e.current().length==1&&t.test(e.current())){e.backUp(1);while(t.test(e.peek())){e.next();if(z(e.current(),r)){return true}}e.backUp(e.current().length-1)}return false}function v(e,t,r){if(e.current().length==1&&t.test(e.current())){while(t.test(e.peek())){e.next()}while(01&&e[t].type==="fun"&&e[t-1].token==="fun"){return e.slice(0,t-1)}switch(e[t].token){case"}":return T(e,{g:["{"]});case"]":return T(e,{i:["["]});case")":return T(e,{i:["("]});case">>":return T(e,{i:["<<"]});case"end":return T(e,{i:["begin","case","fun","if","receive","try"]});case",":return T(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return T(e,{r:["when"],m:["try","if","case","receive"]});case";":return T(e,{E:["case","fun","if","receive","try","when"]});case"catch":return T(e,{e:["try"]});case"of":return T(e,{e:["case"]});case"after":return T(e,{e:["receive","try"]});default:return e}}function T(e,t){for(var r in t){var n=e.length-1;var i=t[r];for(var a=n-1;-1"){if(z(o.token,["receive","case","if","try"])){return o.column+r.unit+r.unit}else{return o.column+r.unit}}else if(z(a.token,f)){return a.column+a.token.length}else{n=$(e);return G(n)?n.column+r.unit:0}}function N(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return G(t)&&t.index===0?t[0]:""}function O(e){var t=e.tokenStack.slice(0,-1);var r=F(t,"type",["open_paren"]);return G(t[r])?t[r]:false}function $(e){var t=e.tokenStack;var r=F(t,"type",["open_paren","separator","keyword"]);var n=F(t,"type",["operator"]);if(G(r)&&G(n)&&r{e.d(a,{diagram:()=>_});var s=e(41359);var t=e(15051);var l=e(94065);var p=e(33416);var v=e(94746);var i=e(20778);var n=e(57590);var u=e(68232);var c=e(76261);var o=e(96049);var b=e(75905);var _={parser:s._$,get db(){return new s.NM},renderer:s.Lh,styles:s.tM,init:(0,b.K2)((r=>{if(!r.class){r.class={}}r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8786.a2bc3dfc1ea13c04ba94.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8786.a2bc3dfc1ea13c04ba94.js new file mode 100644 index 0000000000000000000000000000000000000000..995e133cef63f18646e412492a5e674bc71a6275 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8786.a2bc3dfc1ea13c04ba94.js @@ -0,0 +1,2 @@ +/*! For license information please see 8786.a2bc3dfc1ea13c04ba94.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8786],{76405:(e,t,r)=>{r.d(t,{A:()=>Up});function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r=e.length?{done:true}:{done:false,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=true,s=false;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=true,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function v(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true}):e[t]=r,e}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,s=[],l=true,u=false;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){u=true,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){return n(e)||c(e,t)||x(e,t)||d()}function g(e){return i(e)||f(e)||x(e)||h()}function y(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(undefined!==r){var a=r.call(e,t);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function m(e){var t=y(e,"string");return"symbol"==typeof t?t:t+""}function b(e){"@babel/helpers - typeof";return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function x(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):undefined}}var w=typeof window==="undefined"?null:window;var E=w?w.navigator:null;w?w.document:null;var T=b("");var k=b({});var C=b((function(){}));var P=typeof HTMLElement==="undefined"?"undefined":b(HTMLElement);var S=function e(t){return t&&t.instanceString&&B(t.instanceString)?t.instanceString():null};var D=function e(t){return t!=null&&b(t)==T};var B=function e(t){return t!=null&&b(t)===C};var A=function e(t){return!L(t)&&(Array.isArray?Array.isArray(t):t!=null&&t instanceof Array)};var _=function e(t){return t!=null&&b(t)===k&&!A(t)&&t.constructor===Object};var M=function e(t){return t!=null&&b(t)===k};var I=function e(t){return t!=null&&b(t)===b(1)&&!isNaN(t)};var R=function e(t){return I(t)&&Math.floor(t)===t};var N=function e(t){if("undefined"===P){return undefined}else{return null!=t&&t instanceof HTMLElement}};var L=function e(t){return O(t)||z(t)};var O=function e(t){return S(t)==="collection"&&t._private.single};var z=function e(t){return S(t)==="collection"&&!t._private.single};var F=function e(t){return S(t)==="core"};var V=function e(t){return S(t)==="stylesheet"};var j=function e(t){return S(t)==="event"};var X=function e(t){if(t===undefined||t===null){return true}else if(t===""||t.match(/^\s+$/)){return true}return false};var Y=function e(t){if(typeof HTMLElement==="undefined"){return false}else{return t instanceof HTMLElement}};var q=function e(t){return _(t)&&I(t.x1)&&I(t.x2)&&I(t.y1)&&I(t.y2)};var W=function e(t){return M(t)&&B(t.then)};var U=function e(){return E&&E.userAgent.match(/msie|trident|edge/i)};var G=function e(t,r){if(!r){r=function e(){if(arguments.length===1){return arguments[0]}else if(arguments.length===0){return"undefined"}var t=[];for(var r=0;rr){return 1}else{return 0}};var oe=function e(t,r){return-1*ie(t,r)};var se=Object.assign!=null?Object.assign.bind(Object):function(e){var t=arguments;for(var r=1;r1)r-=1;if(r<1/6)return e+(t-e)*6*r;if(r<1/2)return t;if(r<2/3)return e+(t-e)*(2/3-r)*6;return e}var f=new RegExp("^"+te+"$").exec(t);if(f){a=parseInt(f[1]);if(a<0){a=(360- -1*a%360)%360}else if(a>360){a=a%360}a/=360;n=parseFloat(f[2]);if(n<0||n>100){return}n=n/100;i=parseFloat(f[3]);if(i<0||i>100){return}i=i/100;o=f[4];if(o!==undefined){o=parseFloat(o);if(o<0||o>1){return}}if(n===0){s=l=u=Math.round(i*255)}else{var c=i<.5?i*(1+n):i+n-i*n;var d=2*i-c;s=Math.round(255*v(d,c,a+1/3));l=Math.round(255*v(d,c,a));u=Math.round(255*v(d,c,a-1/3))}r=[s,l,u,o]}return r};var ve=function e(t){var r;var a=new RegExp("^"+J+"$").exec(t);if(a){r=[];var n=[];for(var i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"){n[i]=true}o=parseFloat(o);if(n[i]){o=o/100*255}if(o<0||o>255){return}r.push(Math.floor(o))}var s=n[1]||n[2]||n[3];var l=n[1]&&n[2]&&n[3];if(s&&!l){return}var u=a[4];if(u!==undefined){u=parseFloat(u);if(u<0||u>1){return}r.push(u)}}return r};var fe=function e(t){return de[t.toLowerCase()]};var ce=function e(t){return(A(t)?t:null)||fe(t)||le(t)||ve(t)||ue(t)};var de={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var he=function e(t){var r=t.map;var a=t.keys;var n=a.length;for(var i=0;i=s||t<0||y&&r>=f}function T(){var e=t();if(E(e)){return k(e)}d=setTimeout(T,w(e))}function k(e){d=undefined;if(m&&u){return b(e)}u=v=undefined;return c}function C(){if(d!==undefined){clearTimeout(d)}p=0;u=h=v=d=undefined}function P(){return d===undefined?c:k(t())}function S(){var e=t(),r=E(e);u=arguments;v=this;h=e;if(r){if(d===undefined){return x(h)}if(y){clearTimeout(d);d=setTimeout(T,s);return b(h)}}if(d===undefined){d=setTimeout(T,s)}return c}S.cancel=C;S.flush=P;return S}at=o;return at}var ot=it();var st=ye(ot);var lt=w?w.performance:null;var ut=lt&<.now?function(){return lt.now()}:function(){return Date.now()};var vt=function(){if(w){if(w.requestAnimationFrame){return function(e){w.requestAnimationFrame(e)}}else if(w.mozRequestAnimationFrame){return function(e){w.mozRequestAnimationFrame(e)}}else if(w.webkitRequestAnimationFrame){return function(e){w.webkitRequestAnimationFrame(e)}}else if(w.msRequestAnimationFrame){return function(e){w.msRequestAnimationFrame(e)}}}return function(e){if(e){setTimeout((function(){e(ut())}),1e3/60)}}}();var ft=function e(t){return vt(t)};var ct=ut;var dt=9261;var ht=65599;var pt=5381;var gt=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:dt;var a=r;var n;for(;;){n=t.next();if(n.done){break}a=a*ht+n.value|0}return a};var yt=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:dt;return r*ht+t|0};var mt=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:pt;return(r<<5)+r+t|0};var bt=function e(t,r){return t*2097152+r};var xt=function e(t){return t[0]*2097152+t[1]};var wt=function e(t,r){return[yt(t[0],r[0]),mt(t[1],r[1])]};var Et=function e(t,r){var a={value:0,done:false};var n=0;var i=t.length;var o={next:function e(){if(n=0;n--){if(t[n]===r){t.splice(n,1)}}};var Wt=function e(t){t.splice(0,t.length)};var Ut=function e(t,r){for(var a=0;a2&&arguments[2]!==undefined?arguments[2]:true;if(t===undefined||r===undefined||!F(t)){Rt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null){if(r.data&&r.data.source!=null&&r.data.target!=null){n="edges"}else{n="nodes"}}if(n!=="nodes"&&n!=="edges"){Rt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1;this[0]=this;var i=this._private={cy:t,single:true,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:undefined,autoHeight:undefined,autoPadding:undefined,compoundBoundsClean:false,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:true,selected:r.selected?true:false,selectable:r.selectable===undefined?true:r.selectable?true:false,locked:r.locked?true:false,grabbed:false,grabbable:r.grabbable===undefined?true:r.grabbable?true:false,pannable:r.pannable===undefined?n==="edges"?true:false:r.pannable?true:false,active:false,classes:new Jt,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:false,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null){i.position.x=0}if(i.position.y==null){i.position.y=0}if(r.renderedPosition){var o=r.renderedPosition;var s=t.pan();var l=t.zoom();i.position={x:(o.x-s.x)/l,y:(o.y-s.y)/l}}var u=[];if(A(r.classes)){u=r.classes}else if(D(r.classes)){u=r.classes.split(/\s+/)}for(var v=0,f=u.length;vt){return 1}return 0};u=function(e,t,n,i,o){var s;if(n==null){n=0}if(o==null){o=r}if(n<0){throw new Error("lo must be non-negative")}if(i==null){i=e.length}while(nr;0<=r?t++:t--){u.push(t)}return u}.apply(this).reverse();l=[];for(i=0,o=s.length;ip;0<=p?++c:--c){g.push(i(e,a))}return g};h=function(e,t,a,n){var i,o,s;if(n==null){n=r}i=e[a];while(a>t){s=a-1>>1;o=e[s];if(n(i,o)<0){e[a]=o;a=s;continue}break}return e[a]=i};p=function(e,t,a){var n,i,o,s,l;if(a==null){a=r}i=e.length;l=t;o=e[t];n=2*t+1;while(n0){var E=m.pop();var T=g(E);var k=E.id();c[k]=T;if(T===Infinity){continue}var C=E.neighborhood().intersect(h);for(var P=0;P0){a.unshift(r);while(f[i]){var o=f[i];a.unshift(o.edge);a.unshift(o.node);n=o.node;i=n.id()}}return s.spawn(a)}}}};var hr={kruskal:function e(t){t=t||function(e){return 1};var r=this.byGroup(),a=r.nodes,n=r.edges;var i=a.length;var o=new Array(i);var s=a;var l=function e(t){for(var r=0;r0){w();T++;if(x===v){var k=[];var C=i;var P=v;var S=y[P];for(;;){k.unshift(C);if(S!=null){k.unshift(S)}C=g[P];if(C==null){break}P=C.id();S=y[P]}return{found:true,distance:f[x],path:this.spawn(k),steps:T}}d[x]=true;var D=b._private.edges;for(var B=0;BS){h[P]=S;m[P]=C;b[P]=w}if(!i){var B=C*v+k;if(!i&&h[B]>S){h[B]=S;m[B]=k;b[B]=w}}}for(var A=0;A1&&arguments[1]!==undefined?arguments[1]:o;var n=b(t);var i=[];var s=n;for(;;){if(s==null){return r.spawn()}var u=m(s),v=u.edge,f=u.pred;i.unshift(s[0]);if(s.same(a)&&i.length>0){break}if(v!=null){i.unshift(v)}s=f}return l.spawn(i)};for(var E=0;E=0;v--){var f=u[v];var c=f[1];var d=f[2];if(r[c]===s&&r[d]===l||r[c]===l&&r[d]===s){u.splice(v,1)}}for(var h=0;hn){var i=Math.floor(Math.random()*r.length);r=Er(i,t,r);a--}return r};var kr={kargerStein:function e(){var t=this;var r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy((function(e){return e.isLoop()}));var i=a.length;var o=n.length;var s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2));var l=Math.floor(i/wr);if(i<2){Rt("At least 2 nodes are required for Karger-Stein algorithm");return undefined}var u=[];for(var v=0;v1&&arguments[1]!==undefined?arguments[1]:0;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t.length;var e=Infinity;for(var n=r;n1&&arguments[1]!==undefined?arguments[1]:0;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t.length;var e=-Infinity;for(var n=r;n1&&arguments[1]!==undefined?arguments[1]:0;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t.length;var n=0;var i=0;for(var o=r;o1&&arguments[1]!==undefined?arguments[1]:0;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t.length;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:true;if(n){t=t.slice(r,a)}else{if(a0){t.splice(0,r)}}var s=0;for(var l=t.length-1;l>=0;l--){var u=t[l];if(o){if(!isFinite(u)){t[l]=-Infinity;s++}}else{t.splice(l,1)}}if(i){t.sort((function(e,t){return e-t}))}var v=t.length;var f=Math.floor(v/2);if(v%2!==0){return t[f+1+s]}else{return(t[f-1+s]+t[f+s])/2}};var Ir=function e(t){return Math.PI*t/180};var Rr=function e(t,r){return Math.atan2(r,t)-Math.PI/2};var Nr=Math.log2||function(e){return Math.log(e)/Math.log(2)};var Lr=function e(t){if(t>0){return 1}else if(t<0){return-1}else{return 0}};var Or=function e(t,r){return Math.sqrt(zr(t,r))};var zr=function e(t,r){var a=r.x-t.x;var n=r.y-t.y;return a*a+n*n};var Fr=function e(t){var r=t.length;var a=0;for(var n=0;n=t.x1&&t.y2>=t.y1){return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1}}else if(t.w!=null&&t.h!=null&&t.w>=0&&t.h>=0){return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}}};var Wr=function e(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}};var Ur=function e(t){t.x1=Infinity;t.y1=Infinity;t.x2=-Infinity;t.y2=-Infinity;t.w=0;t.h=0};var Gr=function e(t,r,a){return{x1:t.x1+r,x2:t.x2+r,y1:t.y1+a,y2:t.y2+a,w:t.w,h:t.h}};var Hr=function e(t,r){t.x1=Math.min(t.x1,r.x1);t.x2=Math.max(t.x2,r.x2);t.w=t.x2-t.x1;t.y1=Math.min(t.y1,r.y1);t.y2=Math.max(t.y2,r.y2);t.h=t.y2-t.y1};var Kr=function e(t,r,a){t.x1=Math.min(t.x1,r);t.x2=Math.max(t.x2,r);t.w=t.x2-t.x1;t.y1=Math.min(t.y1,a);t.y2=Math.max(t.y2,a);t.h=t.y2-t.y1};var Zr=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;t.x1-=r;t.x2+=r;t.y1-=r;t.y2+=r;t.w=t.x2-t.x1;t.h=t.y2-t.y1;return t};var $r=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[0];var a,n,i,o;if(r.length===1){a=n=i=o=r[0]}else if(r.length===2){a=i=r[0];o=n=r[1]}else if(r.length===4){var s=p(r,4);a=s[0];n=s[1];i=s[2];o=s[3]}t.x1-=o;t.x2+=n;t.y1-=a;t.y2+=i;t.w=t.x2-t.x1;t.h=t.y2-t.y1;return t};var Qr=function e(t,r){t.x1=r.x1;t.y1=r.y1;t.x2=r.x2;t.y2=r.y2;t.w=t.x2-t.x1;t.h=t.y2-t.y1};var Jr=function e(t,r){if(t.x1>r.x2){return false}if(r.x1>t.x2){return false}if(t.x2r.y2){return false}if(r.y1>t.y2){return false}return true};var ea=function e(t,r,a){return t.x1<=r&&r<=t.x2&&t.y1<=a&&a<=t.y2};var ta=function e(t,r){return ea(t,r.x,r.y)};var ra=function e(t,r){return ea(t,r.x1,r.y1)&&ea(t,r.x2,r.y2)};var aa=function e(t,r,a,n,i,o,s){var l=arguments.length>7&&arguments[7]!==undefined?arguments[7]:"auto";var u=l==="auto"?Pa(i,o):l;var v=i/2;var f=o/2;u=Math.min(u,v,f);var c=u!==v,d=u!==f;var h;if(c){var p=a-v+u-s;var g=n-f-s;var y=a+v-u+s;var m=g;h=ba(t,r,a,n,p,g,y,m,false);if(h.length>0){return h}}if(d){var b=a+v+s;var x=n-f+u-s;var w=b;var E=n+f-u+s;h=ba(t,r,a,n,b,x,w,E,false);if(h.length>0){return h}}if(c){var T=a-v+u-s;var k=n+f+s;var C=a+v-u+s;var P=k;h=ba(t,r,a,n,T,k,C,P,false);if(h.length>0){return h}}if(d){var S=a-v-s;var D=n-f+u-s;var B=S;var A=n+f-u+s;h=ba(t,r,a,n,S,D,B,A,false);if(h.length>0){return h}}var _;{var M=a-v+u;var I=n-f+u;_=ya(t,r,a,n,M,I,u+s);if(_.length>0&&_[0]<=M&&_[1]<=I){return[_[0],_[1]]}}{var R=a+v-u;var N=n-f+u;_=ya(t,r,a,n,R,N,u+s);if(_.length>0&&_[0]>=R&&_[1]<=N){return[_[0],_[1]]}}{var L=a+v-u;var O=n+f-u;_=ya(t,r,a,n,L,O,u+s);if(_.length>0&&_[0]>=L&&_[1]>=O){return[_[0],_[1]]}}{var z=a-v+u;var F=n+f-u;_=ya(t,r,a,n,z,F,u+s);if(_.length>0&&_[0]<=z&&_[1]>=F){return[_[0],_[1]]}}return[]};var na=function e(t,r,a,n,i,o,s){var l=s;var u=Math.min(a,i);var v=Math.max(a,i);var f=Math.min(n,o);var c=Math.max(n,o);return u-l<=t&&t<=v+l&&f-l<=r&&r<=c+l};var ia=function e(t,r,a,n,i,o,s,l,u){var v={x1:Math.min(a,s,i)-u,x2:Math.max(a,s,i)+u,y1:Math.min(n,l,o)-u,y2:Math.max(n,l,o)+u};if(tv.x2||rv.y2){return false}else{return true}};var oa=function e(t,r,a,n){a-=n;var i=r*r-4*t*a;if(i<0){return[]}var o=Math.sqrt(i);var s=2*t;var l=(-r+o)/s;var u=(-r-o)/s;return[l,u]};var sa=function e(t,r,a,n,i){var o=1e-5;if(t===0){t=o}r/=t;a/=t;n/=t;var s,l,u,v,f,c,d,h;l=(3*a-r*r)/9;u=-(27*n)+r*(9*a-2*(r*r));u/=54;s=l*l*l+u*u;i[1]=0;d=r/3;if(s>0){f=u+Math.sqrt(s);f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3);c=u-Math.sqrt(s);c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3);i[0]=-d+f+c;d+=(f+c)/2;i[4]=i[2]=-d;d=Math.sqrt(3)*(-c+f)/2;i[3]=d;i[5]=-d;return}i[5]=i[3]=0;if(s===0){h=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3);i[0]=-d+2*h;i[4]=i[2]=-(h+d);return}l=-l;v=l*l*l;v=Math.acos(u/Math.sqrt(v));h=2*Math.sqrt(l);i[0]=-d+h*Math.cos(v/3);i[2]=-d+h*Math.cos((v+2*Math.PI)/3);i[4]=-d+h*Math.cos((v+4*Math.PI)/3);return};var la=function e(t,r,a,n,i,o,s,l){var u=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*l+4*o*o-4*o*l+l*l;var v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*l-6*o*o+3*o*l;var f=1*3*a*a-6*a*i+a*s-a*t+2*i*i+2*i*t-s*t+3*n*n-6*n*o+n*l-n*r+2*o*o+2*o*r-l*r;var c=1*a*i-a*a+a*t-i*t+n*o-n*n+n*r-o*r;var d=[];sa(u,v,f,c,d);var h=1e-7;var p=[];for(var g=0;g<6;g+=2){if(Math.abs(d[g+1])=0&&d[g]<=1){p.push(d[g])}}p.push(1);p.push(0);var y=-1;var m,b,x;for(var w=0;w=0){if(xu){return(t-i)*(t-i)+(r-o)*(r-o)}return v-c};var va=function e(t,r,a){var n,i,o,s;var l;var u=0;for(var v=0;v=t&&t>=o||n<=t&&t<=o){l=(t-n)/(o-n)*(s-i)+i;if(l>r){u++}}else{continue}}if(u%2===0){return false}else{return true}};var fa=function e(t,r,a,n,i,o,s,l,u){var v=new Array(a.length);var f;if(l[0]!=null){f=Math.atan(l[1]/l[0]);if(l[0]<0){f=f+Math.PI/2}else{f=-f-Math.PI/2}}else{f=l}var c=Math.cos(-f);var d=Math.sin(-f);for(var h=0;h0){var g=ha(v,-u);p=da(g)}else{p=v}return va(t,r,p)};var ca=function e(t,r,a,n,i,o,s,l){var u=new Array(a.length*2);for(var v=0;v=0&&g<=1){m.push(g)}if(y>=0&&y<=1){m.push(y)}if(m.length===0){return[]}var b=m[0]*l[0]+t;var x=m[0]*l[1]+r;if(m.length>1){if(m[0]==m[1]){return[b,x]}else{var w=m[1]*l[0]+t;var E=m[1]*l[1]+r;return[b,x,w,E]}}else{return[b,x]}};var ma=function e(t,r,a){if(r<=t&&t<=a||a<=t&&t<=r){return t}else if(t<=r&&r<=a||a<=r&&r<=t){return r}else{return a}};var ba=function e(t,r,a,n,i,o,s,l,u){var v=t-i;var f=a-t;var c=s-i;var d=r-o;var h=n-r;var p=l-o;var g=c*d-p*v;var y=f*d-h*v;var m=p*f-c*h;if(m!==0){var b=g/m;var x=y/m;var w=.001;var E=0-w;var T=1+w;if(E<=b&&b<=T&&E<=x&&x<=T){return[t+b*f,r+b*h]}else{if(!u){return[]}else{return[t+b*f,r+b*h]}}}else{if(g===0||y===0){if(ma(t,a,s)===s){return[s,l]}if(ma(t,a,i)===i){return[i,o]}if(ma(i,s,a)===a){return[a,n]}return[]}else{return[]}}};var xa=function e(t,r,a,n,i,o,s,l){var u=[];var v;var f=new Array(a.length);var c=true;if(o==null){c=false}var d;if(c){for(var h=0;h0){var p=ha(f,-l);d=da(p)}else{d=f}}else{d=a}var g,y,m,b;for(var x=0;x2){var h=[v[0],v[1]];var p=Math.pow(h[0]-t,2)+Math.pow(h[1]-r,2);for(var g=1;gv){v=r}},get:function e(t){return u[t]}};for(var c=0;c0){x=b.edgesTo(m)[0]}else{x=m.edgesTo(b)[0]}var w=n(x);m=m.id();if(v[m]>v[p]+w){v[m]=v[p]+w;if(c.nodes.indexOf(m)<0){c.push(m)}else{c.updateItem(m)}u[m]=0;a[m]=[]}if(v[m]==v[p]+w){u[m]=u[m]+u[p];a[m].push(p)}}}else{for(var E=0;E0){var P=r.pop();for(var S=0;S0){s.push(a[l])}}if(s.length!==0){i.push(n.collection(s))}}return i};var Ka=function e(t,r){for(var a=0;a5&&arguments[5]!==undefined?arguments[5]:Ja;var s=n;var l,u;for(var v=0;v=2){return on(t,r,a,0,rn,an)}else{return on(t,r,a,0,tn)}},squaredEuclidean:function e(t,r,a){return on(t,r,a,0,rn)},manhattan:function e(t,r,a){return on(t,r,a,0,tn)},max:function e(t,r,a){return on(t,r,a,-Infinity,nn)}};sn["squared-euclidean"]=sn["squaredEuclidean"];sn["squaredeuclidean"]=sn["squaredEuclidean"];function ln(e,t,r,a,n,i){var o;if(B(e)){o=e}else{o=sn[e]||sn.euclidean}if(t===0&&B(e)){return o(n,i)}else{return o(t,r,a,n,i)}}var un=Yt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:false,testCentroids:null});var vn=function e(t){return un(t)};var fn=function e(t,r,a,n,i){var o=i!=="kMedoids";var s=o?function(e){return a[e]}:function(e){return n[e](a)};var l=function e(t){return n[t](r)};var u=a;var v=r;return ln(t,n.length,s,l,u,v)};var cn=function e(t,r,a){var n=a.length;var i=new Array(n);var o=new Array(n);var s=new Array(r);var l=null;for(var u=0;ua){return false}}}return true};var yn=function e(t,r,a){for(var n=0;ns){s=r[u][v];l=v}}i[l].push(t[u])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&t.length===1){return false}var h=r[o];var p=r[n[o]];var g;if(i.mode==="dendrogram"){g={left:h,right:p,key:h.key}}else{g={value:h.value.concat(p.value),key:h.key}}t[h.index]=g;t.splice(p.index,1);r[h.key]=g;for(var y=0;ya[p.key][m.key]){l=a[p.key][m.key]}}else if(i.linkage==="max"){l=a[h.key][m.key];if(a[h.key][m.key]0){n.push(i)}}return n};var jn=function e(t,r,a){var n=[];for(var i=0;is){o=u;s=r[i*t+u]}}if(o>0){n.push(o)}}for(var v=0;vu){l=v;u=f}}a[i]=o[l]}n=jn(t,r,a);return n};var Yn=function e(t){var r=this.cy();var a=this.nodes();var n=On(t);var i={};for(var o=0;o=S){D=S;S=A;B=_}else if(A>D){D=A}}for(var M=0;M0?1:0;T[C%n.minIterations*s+z]=F;O+=F}if(O>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){var V=0;for(var j=0;j1||n>1){s=true}f[t]=[];e.outgoers().forEach((function(e){if(e.isEdge())f[t].push(e.id())}))}else{c[t]=[undefined,e.target().id()]}}))}else{o.forEach((function(e){var t=e.id();if(e.isNode()){var r=e.degree(true);if(r%2){if(!l)l=t;else if(!u)u=t;else s=true}f[t]=[];e.connectedEdges().forEach((function(e){return f[t].push(e.id())}))}else{c[t]=[e.source().id(),e.target().id()]}}))}var d={found:false,trail:undefined};if(s)return d;else if(u&&l){if(i){if(v&&u!=v){return d}v=u}else{if(v&&u!=v&&l!=v){return d}else if(!v){v=u}}}else{if(!v)v=o[0].id()}var h=function e(t){var r=t;var a=[t];var n,o,s;while(f[r].length){n=f[r].shift();o=c[n][0];s=c[n][1];if(r!=s){f[s]=f[s].filter((function(e){return e!=n}));r=s}else if(!i&&r!=o){f[o]=f[o].filter((function(e){return e!=n}));r=o}a.unshift(n);a.unshift(r)}return a};var p=[];var g=[];g=h(v);while(g.length!=1){if(f[g[0]].length==0){p.unshift(o.getElementById(g.shift()));p.unshift(o.getElementById(g.shift()))}else{g=h(g.shift()).concat(g)}}p.unshift(o.getElementById(g.shift()));for(var y in f){if(f[y].length){return d}}d.found=true;d.trail=this.spawn(p,true);return d}};var Gn=function e(){var t=this;var r={};var a=0;var n=0;var i=[];var o=[];var s={};var l=function e(a,n){var s=o.length-1;var l=[];var u=t.spawn();while(o[s].x!=a||o[s].y!=n){l.push(o.pop().edge);s--}l.push(o.pop().edge);l.forEach((function(e){var a=e.connectedNodes().intersection(t);u.merge(e);a.forEach((function(e){var a=e.id();var n=e.connectedEdges().intersection(t);u.merge(e);if(!r[a].cutVertex){u.merge(n)}else{u.merge(n.filter((function(e){return e.isLoop()})))}}))}));i.push(u)};var u=function e(v,f,c){if(v===c)n+=1;r[f]={id:a,low:a++,cutVertex:false};var d=t.getElementById(f).connectedEdges().intersection(t);if(d.size()===0){i.push(t.spawn(t.getElementById(f)))}else{var h,p,g,y;d.forEach((function(e){h=e.source().id();p=e.target().id();g=h===f?p:h;if(g!==c){y=e.id();if(!s[y]){s[y]=true;o.push({x:f,y:g,edge:e})}if(!(g in r)){u(v,g,f);r[f].low=Math.min(r[f].low,r[g].low);if(r[f].id<=r[g].low){r[f].cutVertex=true;l(f,g)}}else{r[f].low=Math.min(r[f].low,r[g].id)}}}))}};t.forEach((function(e){if(e.isNode()){var t=e.id();if(!(t in r)){n=0;u(t,t);r[t].cutVertex=n>1}}}));var v=Object.keys(r).filter((function(e){return r[e].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(v),components:i}};var Hn={hopcroftTarjanBiconnected:Gn,htbc:Gn,htb:Gn,hopcroftTarjanBiconnectedComponents:Gn};var Kn=function e(){var t=this;var r={};var a=0;var n=[];var i=[];var o=t.spawn(t);var s=function e(l){i.push(l);r[l]={index:a,low:a++,explored:false};var u=t.getElementById(l).connectedEdges().intersection(t);u.forEach((function(e){var t=e.target().id();if(t!==l){if(!(t in r)){s(t)}if(!r[t].explored){r[l].low=Math.min(r[l].low,r[t].low)}}}));if(r[l].index===r[l].low){var v=t.spawn();for(;;){var f=i.pop();v.merge(t.getElementById(f));r[f].low=r[l].index;r[f].explored=true;if(f===l){break}}var c=v.edgesWith(v);var d=v.merge(c);n.push(d);o=o.difference(d)}};t.forEach((function(e){if(e.isNode()){var t=e.id();if(!(t in r)){s(t)}}}));return{cut:o,components:n}};var Zn={tarjanStronglyConnected:Kn,tsc:Kn,tscc:Kn,tarjanStronglyConnectedComponents:Kn};var $n={};[rr,dr,hr,gr,mr,xr,kr,Ma,Ra,La,za,Qa,Pn,Nn,qn,Un,Hn,Zn].forEach((function(e){se($n,e)}));var Qn=0;var Jn=1;var ei=2;var ti=function e(t){if(!(this instanceof ti))return new ti(t);this.id="Thenable/1.0.7";this.state=Qn;this.fulfillValue=undefined;this.rejectReason=undefined;this.onFulfilled=[];this.onRejected=[];this.proxy={then:this.then.bind(this)};if(typeof t==="function")t.call(this,this.fulfill.bind(this),this.reject.bind(this))};ti.prototype={fulfill:function e(t){return ri(this,Jn,"fulfillValue",t)},reject:function e(t){return ri(this,ei,"rejectReason",t)},then:function e(t,r){var a=this;var n=new ti;a.onFulfilled.push(ii(t,n,"fulfill"));a.onRejected.push(ii(r,n,"reject"));ai(a);return n.proxy}};var ri=function e(t,r,a,n){if(t.state===Qn){t.state=r;t[a]=n;ai(t)}return t};var ai=function e(t){if(t.state===Jn)ni(t,"onFulfilled",t.fulfillValue);else if(t.state===ei)ni(t,"onRejected",t.rejectReason)};var ni=function e(t,r,a){if(t[r].length===0)return;var n=t[r];t[r]=[];var i=function e(){for(var t=0;t0}}},clearQueue:function e(){return function e(){var t=this;var r=t.length!==undefined;var a=r?t:[t];var n=this._private.cy||this;if(!n.styleEnabled()){return this}for(var i=0;i-1}wo=t;return wo}var ko;var Co;function Po(){if(Co)return ko;Co=1;var e=ho();function t(t,r){var a=this.__data__,n=e(a,t);if(n<0){++this.size;a.push([t,r])}else{a[n][1]=r}return this}ko=t;return ko}var So;var Do;function Bo(){if(Do)return So;Do=1;var e=so(),t=yo(),r=xo(),a=To(),n=Po();function i(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t-1&&r%1==0&&r0){this.spawn(n).updateStyle().emit("class")}return r},addClass:function e(t){return this.toggleClass(t,true)},hasClass:function e(t){var r=this[0];return r!=null&&r._private.classes.has(t)},toggleClass:function e(t,r){if(!A(t)){t=t.match(/\S+/g)||[]}var a=this;var n=r===undefined;var i=[];for(var o=0,s=a.length;o0){this.spawn(i).updateStyle().emit("class")}return a},removeClass:function e(t){return this.toggleClass(t,false)},flashClass:function e(t,r){var a=this;if(r==null){r=250}else if(r===0){return a}a.addClass(t);setTimeout((function(){a.removeClass(t)}),r);return a}};dl.className=dl.classNames=dl.classes;var hl={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:'"(?:\\\\"|[^"])*"'+"|"+"'(?:\\\\'|[^'])*'",number:Q,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};hl.variable="(?:[\\w-.]|(?:\\\\"+hl.metaChar+"))+";hl.className="(?:[\\w-]|(?:\\\\"+hl.metaChar+"))+";hl.value=hl.string+"|"+hl.number;hl.id=hl.variable;(function(){var e,t,r;e=hl.comparatorOp.split("|");for(r=0;r=0){continue}if(t==="="){continue}hl.comparatorOp+="|\\!"+t}})();var pl=function e(){return{checks:[]}};var gl={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20};var yl=[{selector:":selected",matches:function e(t){return t.selected()}},{selector:":unselected",matches:function e(t){return!t.selected()}},{selector:":selectable",matches:function e(t){return t.selectable()}},{selector:":unselectable",matches:function e(t){return!t.selectable()}},{selector:":locked",matches:function e(t){return t.locked()}},{selector:":unlocked",matches:function e(t){return!t.locked()}},{selector:":visible",matches:function e(t){return t.visible()}},{selector:":hidden",matches:function e(t){return!t.visible()}},{selector:":transparent",matches:function e(t){return t.transparent()}},{selector:":grabbed",matches:function e(t){return t.grabbed()}},{selector:":free",matches:function e(t){return!t.grabbed()}},{selector:":removed",matches:function e(t){return t.removed()}},{selector:":inside",matches:function e(t){return!t.removed()}},{selector:":grabbable",matches:function e(t){return t.grabbable()}},{selector:":ungrabbable",matches:function e(t){return!t.grabbable()}},{selector:":animated",matches:function e(t){return t.animated()}},{selector:":unanimated",matches:function e(t){return!t.animated()}},{selector:":parent",matches:function e(t){return t.isParent()}},{selector:":childless",matches:function e(t){return t.isChildless()}},{selector:":child",matches:function e(t){return t.isChild()}},{selector:":orphan",matches:function e(t){return t.isOrphan()}},{selector:":nonorphan",matches:function e(t){return t.isChild()}},{selector:":compound",matches:function e(t){if(t.isNode()){return t.isParent()}else{return t.source().isParent()||t.target().isParent()}}},{selector:":loop",matches:function e(t){return t.isLoop()}},{selector:":simple",matches:function e(t){return t.isSimple()}},{selector:":active",matches:function e(t){return t.active()}},{selector:":inactive",matches:function e(t){return!t.active()}},{selector:":backgrounding",matches:function e(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function e(t){return!t.backgrounding()}}].sort((function(e,t){return oe(e.selector,t.selector)}));var ml=function(){var e={};var t;for(var r=0;r0&&v.edgeCount>0){Lt("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector");return false}if(v.edgeCount>1){Lt("The selector `"+t+"` is invalid because it uses multiple edge selectors");return false}else if(v.edgeCount===1){Lt("The selector `"+t+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}}return true};var Sl=function e(){if(this.toStringCache!=null){return this.toStringCache}var t=function e(t){if(t==null){return""}else{return t}};var r=function e(r){if(D(r)){return'"'+r+'"'}else{return t(r)}};var a=function e(t){return" "+t+" "};var n=function e(n,o){var s=n.type,l=n.value;switch(s){case gl.GROUP:{var u=t(l);return u.substring(0,u.length-1)}case gl.DATA_COMPARE:{var v=n.field,f=n.operator;return"["+v+a(t(f))+r(l)+"]"}case gl.DATA_BOOL:{var c=n.operator,d=n.field;return"["+t(c)+d+"]"}case gl.DATA_EXIST:{var h=n.field;return"["+h+"]"}case gl.META_COMPARE:{var p=n.operator,g=n.field;return"[["+g+a(t(p))+r(l)+"]]"}case gl.STATE:{return l}case gl.ID:{return"#"+l}case gl.CLASS:{return"."+l}case gl.PARENT:case gl.CHILD:{return i(n.parent,o)+a(">")+i(n.child,o)}case gl.ANCESTOR:case gl.DESCENDANT:{return i(n.ancestor,o)+" "+i(n.descendant,o)}case gl.COMPOUND_SPLIT:{var y=i(n.left,o);var m=i(n.subject,o);var b=i(n.right,o);return y+(y.length>0?" ":"")+m+b}case gl.TRUE:{return""}}};var i=function e(t,r){return t.checks.reduce((function(e,a,i){return e+(r===t&&i===0?"$":"")+n(a,r)}),"")};var o="";for(var s=0;s1&&s=0){r=r.replace("!","");f=true}if(r.indexOf("@")>=0){r=r.replace("@","");v=true}if(i||s||v){l=!i&&!o?"":""+t;u=""+a}if(v){t=l=l.toLowerCase();a=u=u.toLowerCase()}switch(r){case"*=":n=l.indexOf(u)>=0;break;case"$=":n=l.indexOf(u,l.length-u.length)>=0;break;case"^=":n=l.indexOf(u)===0;break;case"=":n=t===a;break;case">":c=true;n=t>a;break;case">=":c=true;n=t>=a;break;case"<":c=true;n=t0){var v=n.shift();t(v);i.add(v.id());if(s){a(n,i,v)}}return e}function Wl(e,t,r){if(r.isParent()){var a=r._private.children;for(var n=0;n1&&arguments[1]!==undefined?arguments[1]:true;return ql(this,e,t,Wl)};function Ul(e,t,r){if(r.isChild()){var a=r._private.parent;if(!t.has(a.id())){e.push(a)}}}Yl.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return ql(this,e,t,Ul)};function Gl(e,t,r){Ul(e,t,r);Wl(e,t,r)}Yl.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return ql(this,e,t,Gl)};Yl.ancestors=Yl.parents;var Hl,Kl;Hl=Kl={data:fl.data({field:"data",bindingEvent:"data",allowBinding:true,allowSetting:true,settingEvent:"data",settingTriggersEvent:true,triggerFnName:"trigger",allowGetting:true,immutableKeys:{id:true,source:true,target:true,parent:true},updateStyle:true}),removeData:fl.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:true,immutableKeys:{id:true,source:true,target:true,parent:true},updateStyle:true}),scratch:fl.data({field:"scratch",bindingEvent:"scratch",allowBinding:true,allowSetting:true,settingEvent:"scratch",settingTriggersEvent:true,triggerFnName:"trigger",allowGetting:true,updateStyle:true}),removeScratch:fl.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:true,updateStyle:true}),rscratch:fl.data({field:"rscratch",allowBinding:false,allowSetting:true,settingTriggersEvent:false,allowGetting:true}),removeRscratch:fl.removeData({field:"rscratch",triggerEvent:false}),id:function e(){var t=this[0];if(t){return t._private.data.id}}};Hl.attr=Hl.data;Hl.removeAttr=Hl.removeData;var Zl=Kl;var $l={};function Ql(e){return function(t){var r=this;if(t===undefined){t=true}if(r.length===0){return}if(r.isNode()&&!r.removed()){var a=0;var n=r[0];var i=n._private.edges;for(var o=0;ot})),minIndegree:Jl("indegree",(function(e,t){return et})),minOutdegree:Jl("outdegree",(function(e,t){return et}))});se($l,{totalDegree:function e(t){var r=0;var a=this.nodes();for(var n=0;n0;var c=f;if(f){v=v[0]}var d=c?v.position():{x:0,y:0};if(r!==undefined){u.position(t,r+d[t])}else if(i!==undefined){u.position({x:i.x+d.x,y:i.y+d.y})}}}else{var h=a.position();var p=s?a.parent():null;var g=p&&p.length>0;var y=g;if(g){p=p[0]}var m=y?p.position():{x:0,y:0};i={x:h.x-m.x,y:h.y-m.y};if(t===undefined){return i}else{return i[t]}}}else if(!o){return undefined}return this}};eu.modelPosition=eu.point=eu.position;eu.modelPositions=eu.points=eu.positions;eu.renderedPoint=eu.renderedPosition;eu.relativePoint=eu.relativePosition;var nu=tu;var iu,ou;iu=ou={};ou.renderedBoundingBox=function(e){var t=this.boundingBox(e);var r=this.cy();var a=r.zoom();var n=r.pan();var i=t.x1*a+n.x;var o=t.x2*a+n.x;var s=t.y1*a+n.y;var l=t.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:l,w:o-i,h:l-s}};ou.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()){return this}this.forEachUp((function(t){if(t.isParent()){var r=t._private;r.compoundBoundsClean=false;r.bbCache=null;if(!e){t.emitAndNotify("bounds")}}}));return this};ou.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()){return this}if(!e&&t.batching()){return this}function r(e){if(!e.isParent()){return}var t=e._private;var r=e.children();var a=e.pstyle("compound-sizing-wrt-labels").value==="include";var n={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}};var i=r.boundingBox({includeLabels:a,includeOverlays:false,useCache:false});var o=t.position;if(i.w===0||i.h===0){i={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue};i.x1=o.x-i.w/2;i.x2=o.x+i.w/2;i.y1=o.y-i.h/2;i.y2=o.y+i.h/2}function s(e,t,r){var a=0;var n=0;var i=t+r;if(e>0&&i>0){a=t/i*e;n=r/i*e}return{biasDiff:a,biasComplementDiff:n}}function l(e,t,r,a){if(r.units==="%"){switch(a){case"width":return e>0?r.pfValue*e:0;case"height":return t>0?r.pfValue*t:0;case"average":return e>0&&t>0?r.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?r.pfValue*t:r.pfValue*e:0;case"max":return e>0&&t>0?e>t?r.pfValue*e:r.pfValue*t:0;default:return 0}}else if(r.units==="px"){return r.pfValue}else{return 0}}var u=n.width.left.value;if(n.width.left.units==="px"&&n.width.val>0){u=u*100/n.width.val}var v=n.width.right.value;if(n.width.right.units==="px"&&n.width.val>0){v=v*100/n.width.val}var f=n.height.top.value;if(n.height.top.units==="px"&&n.height.val>0){f=f*100/n.height.val}var c=n.height.bottom.value;if(n.height.bottom.units==="px"&&n.height.val>0){c=c*100/n.height.val}var d=s(n.width.val-i.w,u,v);var h=d.biasDiff;var p=d.biasComplementDiff;var g=s(n.height.val-i.h,f,c);var y=g.biasDiff;var m=g.biasComplementDiff;t.autoPadding=l(i.w,i.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value);t.autoWidth=Math.max(i.w,n.width.val);o.x=(-h+i.x1+i.x2+p)/2;t.autoHeight=Math.max(i.h,n.height.val);o.y=(-y+i.y1+i.y2+m)/2}for(var a=0;at.x2?n:t.x2;t.y1=at.y2?i:t.y2;t.w=t.x2-t.x1;t.h=t.y2-t.y1};var uu=function e(t,r){if(r==null){return t}return lu(t,r.x1,r.y1,r.x2,r.y2)};var vu=function e(t,r,a){return Gt(t,r,a)};var fu=function e(t,r,a){if(r.cy().headless()){return}var n=r._private;var i=n.rstyle;var o=i.arrowWidth/2;var s=r.pstyle(a+"-arrow-shape").value;var l;var u;if(s!=="none"){if(a==="source"){l=i.srcX;u=i.srcY}else if(a==="target"){l=i.tgtX;u=i.tgtY}else{l=i.midX;u=i.midY}var v=n.arrowBounds=n.arrowBounds||{};var f=v[a]=v[a]||{};f.x1=l-o;f.y1=u-o;f.x2=l+o;f.y2=u+o;f.w=f.x2-f.x1;f.h=f.y2-f.y1;Zr(f,1);lu(t,f.x1,f.y1,f.x2,f.y2)}};var cu=function e(t,r,a){if(r.cy().headless()){return}var n;if(a){n=a+"-"}else{n=""}var i=r._private;var o=i.rstyle;var s=r.pstyle(n+"label").strValue;if(s){var l=r.pstyle("text-halign");var u=r.pstyle("text-valign");var v=vu(o,"labelWidth",a);var f=vu(o,"labelHeight",a);var c=vu(o,"labelX",a);var d=vu(o,"labelY",a);var h=r.pstyle(n+"text-margin-x").pfValue;var p=r.pstyle(n+"text-margin-y").pfValue;var g=r.isEdge();var y=r.pstyle(n+"text-rotation");var m=r.pstyle("text-outline-width").pfValue;var b=r.pstyle("text-border-width").pfValue;var x=b/2;var w=r.pstyle("text-background-padding").pfValue;var E=2;var T=f;var k=v;var C=k/2;var P=T/2;var S,D,B,A;if(g){S=c-C;D=c+C;B=d-P;A=d+P}else{switch(l.value){case"left":S=c-k;D=c;break;case"center":S=c-C;D=c+C;break;case"right":S=c;D=c+k;break}switch(u.value){case"top":B=d-T;A=d;break;case"center":B=d-P;A=d+P;break;case"bottom":B=d;A=d+T;break}}var _=h-Math.max(m,x)-w-E;var M=h+Math.max(m,x)+w+E;var I=p-Math.max(m,x)-w-E;var R=p+Math.max(m,x)+w+E;S+=_;D+=M;B+=I;A+=R;var N=a||"main";var L=i.labelBounds;var O=L[N]=L[N]||{};O.x1=S;O.y1=B;O.x2=D;O.y2=A;O.w=D-S;O.h=A-B;O.leftPad=_;O.rightPad=M;O.topPad=I;O.botPad=R;var z=g&&y.strValue==="autorotate";var F=y.pfValue!=null&&y.pfValue!==0;if(z||F){var V=z?vu(i.rstyle,"labelAngle",a):y.pfValue;var j=Math.cos(V);var X=Math.sin(V);var Y=(S+D)/2;var q=(B+A)/2;if(!g){switch(l.value){case"left":Y=D;break;case"right":Y=S;break}switch(u.value){case"top":q=A;break;case"bottom":q=B;break}}var W=function e(t,r){t=t-Y;r=r-q;return{x:t*j-r*X+Y,y:t*X+r*j+q}};var U=W(S,B);var G=W(S,A);var H=W(D,B);var K=W(D,A);S=Math.min(U.x,G.x,H.x,K.x);D=Math.max(U.x,G.x,H.x,K.x);B=Math.min(U.y,G.y,H.y,K.y);A=Math.max(U.y,G.y,H.y,K.y)}var Z=N+"Rot";var $=L[Z]=L[Z]||{};$.x1=S;$.y1=B;$.x2=D;$.y2=A;$.w=D-S;$.h=A-B;lu(t,S,B,D,A);lu(i.labelBounds.all,S,B,D,A)}return t};var du=function e(t,r){if(r.cy().headless()){return}var a=r.pstyle("outline-opacity").value;var n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value;var o=r.pstyle("shape").value;var s=n+i;var l=(t.w+s*2)/t.w;var u=(t.h+s*2)/t.h;var v=0;var f=0;if(["diamond","pentagon","round-triangle"].includes(o)){l=(t.w+s*2.4)/t.w;f=-s/3.6}else if(["concave-hexagon","rhomboid","right-rhomboid"].includes(o)){l=(t.w+s*2.4)/t.w}else if(o==="star"){l=(t.w+s*2.8)/t.w;u=(t.h+s*2.6)/t.h;f=-s/3.8}else if(o==="triangle"){l=(t.w+s*2.8)/t.w;u=(t.h+s*2.4)/t.h;f=-s/1.4}else if(o==="vee"){l=(t.w+s*4.4)/t.w;u=(t.h+s*3.8)/t.h;f=-s*.5}var c=t.h*u-t.h;var d=t.w*l-t.w;$r(t,[Math.ceil(c/2),Math.ceil(d/2)]);if(v!=0||f!==0){var h=Gr(t,v,f);Hr(t,h)}}};var hu=function e(t,r){var a=t._private.cy;var n=a.styleEnabled();var i=a.headless();var o=qr();var s=t._private;var l=t.isNode();var u=t.isEdge();var v,f,c,d;var h,p;var g=s.rstyle;var y=l&&n?t.pstyle("bounds-expansion").pfValue:[0];var m=function e(t){return t.pstyle("display").value!=="none"};var b=!n||m(t)&&(!u||m(t.source())&&m(t.target()));if(b){var x=0;var w=0;if(n&&r.includeOverlays){x=t.pstyle("overlay-opacity").value;if(x!==0){w=t.pstyle("overlay-padding").value}}var E=0;var T=0;if(n&&r.includeUnderlays){E=t.pstyle("underlay-opacity").value;if(E!==0){T=t.pstyle("underlay-padding").value}}var k=Math.max(w,T);var C=0;var P=0;if(n){C=t.pstyle("width").pfValue;P=C/2}if(l&&r.includeNodes){var S=t.position();h=S.x;p=S.y;var D=t.outerWidth();var B=D/2;var A=t.outerHeight();var _=A/2;v=h-B;f=h+B;c=p-_;d=p+_;lu(o,v,c,f,d);if(n&&r.includeOutlines){du(o,t)}}else if(u&&r.includeEdges){if(n&&!i){var M=t.pstyle("curve-style").strValue;v=Math.min(g.srcX,g.midX,g.tgtX);f=Math.max(g.srcX,g.midX,g.tgtX);c=Math.min(g.srcY,g.midY,g.tgtY);d=Math.max(g.srcY,g.midY,g.tgtY);v-=P;f+=P;c-=P;d+=P;lu(o,v,c,f,d);if(M==="haystack"){var I=g.haystackPts;if(I&&I.length===2){v=I[0].x;c=I[0].y;f=I[1].x;d=I[1].y;if(v>f){var R=v;v=f;f=R}if(c>d){var N=c;c=d;d=N}lu(o,v-P,c-P,f+P,d+P)}}else if(M==="bezier"||M==="unbundled-bezier"||M.endsWith("segments")||M.endsWith("taxi")){var L;switch(M){case"bezier":case"unbundled-bezier":L=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":L=g.linePts;break}if(L!=null){for(var O=0;Of){var Y=v;v=f;f=Y}if(c>d){var q=c;c=d;d=q}v-=P;f+=P;c-=P;d+=P;lu(o,v,c,f,d)}}if(n&&r.includeEdges&&u){fu(o,t,"mid-source");fu(o,t,"mid-target");fu(o,t,"source");fu(o,t,"target")}if(n){var W=t.pstyle("ghost").value==="yes";if(W){var U=t.pstyle("ghost-offset-x").pfValue;var G=t.pstyle("ghost-offset-y").pfValue;lu(o,o.x1+U,o.y1+G,o.x2+U,o.y2+G)}}var H=s.bodyBounds=s.bodyBounds||{};Qr(H,o);$r(H,y);Zr(H,1);if(n){v=o.x1;f=o.x2;c=o.y1;d=o.y2;lu(o,v-k,c-k,f+k,d+k)}var K=s.overlayBounds=s.overlayBounds||{};Qr(K,o);$r(K,y);Zr(K,1);var Z=s.labelBounds=s.labelBounds||{};if(Z.all!=null){Ur(Z.all)}else{Z.all=qr()}if(n&&r.includeLabels){if(r.includeMainLabels){cu(o,t,null)}if(u){if(r.includeSourceLabels){cu(o,t,"source")}if(r.includeTargetLabels){cu(o,t,"target")}}}}o.x1=su(o.x1);o.y1=su(o.y1);o.x2=su(o.x2);o.y2=su(o.y2);o.w=su(o.x2-o.x1);o.h=su(o.y2-o.y1);if(o.w>0&&o.h>0&&b){$r(o,y);Zr(o,1)}return o};var pu=function e(t){var r=0;var a=function e(t){return(t?1:0)<0&&arguments[0]!==undefined?arguments[0]:Wu;var t=arguments.length>1?arguments[1]:undefined;for(var r=0;r=0;s--){o(s)}return this};Gu.removeAllListeners=function(){return this.removeListener("*")};Gu.emit=Gu.trigger=function(e,t,r){var a=this.listeners;var n=a.length;this.emitting++;if(!A(t)){t=[t]}Zu(this,(function(e,i){if(r!=null){a=[{event:i.event,type:i.type,namespace:i.namespace,callback:r}];n=a.length}var o=function r(){var n=a[s];if(n.type===i.type&&(!n.namespace||n.namespace===i.namespace||n.namespace===Xu)&&e.eventMatches(e.context,n,i)){var o=[i];if(t!=null){Ut(o,t)}e.beforeEmit(e.context,n,i);if(n.conf&&n.conf.one){e.listeners=e.listeners.filter((function(e){return e!==n}))}var l=e.callbackContext(e.context,n,i);var u=n.callback.apply(l,o);e.afterEmit(e.context,n,i);if(u===false){i.stopPropagation();i.preventDefault()}}};for(var s=0;s1&&!o){var s=this.length-1;var l=this[s];var u=l._private.data.id;this[s]=undefined;this[t]=l;i.set(u,{ele:l,index:t})}this.length--;return this},unmergeOne:function e(t){t=t[0];var r=this._private;var a=t._private.data.id;var n=r.map;var i=n.get(a);if(!i){return this}var o=i.index;this.unmergeAt(o);return this},unmerge:function e(t){var r=this._private.cy;if(!t){return this}if(t&&D(t)){var a=t;t=r.mutableElements().filter(a)}for(var n=0;n=0;r--){var a=this[r];if(t(a)){this.unmergeAt(r)}}return this},map:function e(t,r){var a=[];var n=this;for(var i=0;ie){e=s;a=o}}return{value:e,ele:a}},min:function e(t,r){var e=Infinity;var a;var n=this;for(var i=0;i=0&&i1&&arguments[1]!==undefined?arguments[1]:true;var a=this[0];var n=a.cy();if(!n.styleEnabled()){return}if(a){if(a._private.styleDirty){a._private.styleDirty=false;n.style().apply(a)}var i=a._private.style[t];if(i!=null){return i}else if(r){return n.style().getDefaultProperty(t)}else{return null}}},numericStyle:function e(t){var r=this[0];if(!r.cy().styleEnabled()){return}if(r){var a=r.pstyle(t);return a.pfValue!==undefined?a.pfValue:a.value}},numericStyleUnits:function e(t){var r=this[0];if(!r.cy().styleEnabled()){return}if(r){return r.pstyle(t).units}},renderedStyle:function e(t){var r=this.cy();if(!r.styleEnabled()){return this}var a=this[0];if(a){return r.style().getRenderedStyle(a,t)}},style:function e(t,r){var a=this.cy();if(!a.styleEnabled()){return this}var n=false;var e=a.style();if(_(t)){var i=t;e.applyBypass(this,i,n);this.emitAndNotify("style")}else if(D(t)){if(r===undefined){var o=this[0];if(o){return e.getStylePropertyValue(o,t)}else{return}}else{e.applyBypass(this,t,r,n);this.emitAndNotify("style")}}else if(t===undefined){var s=this[0];if(s){return e.getRawStyle(s)}else{return}}return this},removeStyle:function e(t){var r=this.cy();if(!r.styleEnabled()){return this}var a=false;var n=r.style();var i=this;if(t===undefined){for(var o=0;o0){t.push(v[0])}t.push(s[0])}}return this.spawn(t,true).filter(e)}),"neighborhood"),closedNeighborhood:function e(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function e(t){return this.neighborhood(t)}});Ev.neighbourhood=Ev.neighborhood;Ev.closedNeighbourhood=Ev.closedNeighborhood;Ev.openNeighbourhood=Ev.openNeighborhood;se(Ev,{source:Xl((function e(t){var r=this[0];var a;if(r){a=r._private.source||r.cy().collection()}return a&&t?a.filter(t):a}),"source"),target:Xl((function e(t){var r=this[0];var a;if(r){a=r._private.target||r.cy().collection()}return a&&t?a.filter(t):a}),"target"),sources:Pv({attr:"source"}),targets:Pv({attr:"target"})});function Pv(e){return function t(r){var a=[];for(var n=0;n0);return e},component:function e(){var t=this[0];return t.cy().mutableElements().components(t)[0]}});Ev.componentsOf=Ev.components;var Bv=function e(t,r){var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(t===undefined){Rt("A collection must have a reference to the core");return}var i=new Zt;var o=false;if(!r){r=[]}else if(r.length>0&&_(r[0])&&!O(r[0])){o=true;var s=[];var l=new Jt;for(var u=0,v=r.length;u0&&arguments[0]!==undefined?arguments[0]:true;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var r=this;var a=r.cy();var n=a._private;var i=[];var o=[];var s;for(var l=0,u=r.length;l0){var O=s.length===r.length?r:new Bv(a,s);for(var z=0;z0&&arguments[0]!==undefined?arguments[0]:true;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var r=this;var a=[];var n={};var i=r._private.cy;function o(e){var t=e._private.edges;for(var r=0;r0){if(e){S.emitAndNotify("remove")}else if(t){S.emit("remove")}}for(var D=0;D0){n=l}else{a=l}}while(Math.abs(i)>o&&++u=i){return m(t,v)}else if(f===0){return v}else{return x(t,a,a+u)}}var E=false;function T(){E=true;if(e!==t||r!==a){b()}}var k=function n(i){if(!E){T()}if(e===t&&r===a){return i}if(i===0){return 0}if(i===1){return 1}return g(w(i),t,a)};k.getControlPoints=function(){return[{x:e,y:t},{x:r,y:a}]};var C="generateBezier("+[e,t,r,a]+")";k.toString=function(){return C};return k}var Iv=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},i=t(r,a*.5,n),o=t(r,a*.5,i),s=t(r,a,o),l=1/6*(n.dx+2*(i.dx+o.dx)+s.dx),u=1/6*(n.dv+2*(i.dv+o.dv)+s.dv);r.x=r.x+l*a;r.v=r.v+u*a;return r}return function e(t,a,n){var i={x:-1,v:0,tension:null,friction:null},o=[0],s=0,l=1/1e4,u=16/1e3,v,f,c;t=parseFloat(t)||500;a=parseFloat(a)||20;n=n||null;i.tension=t;i.friction=a;v=n!==null;if(v){s=e(t,a);f=s/n*u}else{f=u}for(;;){c=r(c||i,f);o.push(1+c.x);s+=16;if(!(Math.abs(c.x)>l&&Math.abs(c.v)>l)){break}}return!v?s:function(e){return o[e*(o.length-1)|0]}}}();var Rv=function e(t,r,a,n){var i=Mv(t,r,a,n);return function(e,t,r){return e+(t-e)*i(r)}};var Nv={linear:function e(t,r,a){return t+(r-t)*a},ease:Rv(.25,.1,.25,1),"ease-in":Rv(.42,0,1,1),"ease-out":Rv(0,0,.58,1),"ease-in-out":Rv(.42,0,.58,1),"ease-in-sine":Rv(.47,0,.745,.715),"ease-out-sine":Rv(.39,.575,.565,1),"ease-in-out-sine":Rv(.445,.05,.55,.95),"ease-in-quad":Rv(.55,.085,.68,.53),"ease-out-quad":Rv(.25,.46,.45,.94),"ease-in-out-quad":Rv(.455,.03,.515,.955),"ease-in-cubic":Rv(.55,.055,.675,.19),"ease-out-cubic":Rv(.215,.61,.355,1),"ease-in-out-cubic":Rv(.645,.045,.355,1),"ease-in-quart":Rv(.895,.03,.685,.22),"ease-out-quart":Rv(.165,.84,.44,1),"ease-in-out-quart":Rv(.77,0,.175,1),"ease-in-quint":Rv(.755,.05,.855,.06),"ease-out-quint":Rv(.23,1,.32,1),"ease-in-out-quint":Rv(.86,0,.07,1),"ease-in-expo":Rv(.95,.05,.795,.035),"ease-out-expo":Rv(.19,1,.22,1),"ease-in-out-expo":Rv(1,0,0,1),"ease-in-circ":Rv(.6,.04,.98,.335),"ease-out-circ":Rv(.075,.82,.165,1),"ease-in-out-circ":Rv(.785,.135,.15,.86),spring:function e(t,r,a){if(a===0){return Nv.linear}var e=Iv(t,r,a);return function(t,r,a){return t+(r-t)*e(a)}},"cubic-bezier":Rv};function Lv(e,t,r,a,n){if(a===1){return r}if(t===r){return r}var i=n(t,r,a);if(e==null){return i}if(e.roundValue||e.color){i=Math.round(i)}if(e.min!==undefined){i=Math.max(i,e.min)}if(e.max!==undefined){i=Math.min(i,e.max)}return i}function Ov(e,t){if(e.pfValue!=null||e.value!=null){if(e.pfValue!=null&&(t==null||t.type.units!=="%")){return e.pfValue}else{return e.value}}else{return e}}function zv(e,t,r,a,n){var i=n!=null?n.type:null;if(r<0){r=0}else if(r>1){r=1}var o=Ov(e,n);var s=Ov(t,n);if(I(o)&&I(s)){return Lv(i,o,s,r,a)}else if(A(o)&&A(s)){var l=[];for(var u=0;u0){if(d==="spring"){h.push(o.duration)}o.easingImpl=Nv[d].apply(null,h)}else{o.easingImpl=Nv[d]}}}var p=o.easingImpl;var g;if(o.duration===0){g=1}else{g=(r-l)/o.duration}if(o.applying){g=o.progress}if(g<0){g=0}else if(g>1){g=1}if(o.delay==null){var y=o.startPosition;var m=o.position;if(m&&n&&!e.locked()){var b={};if(Vv(y.x,m.x)){b.x=zv(y.x,m.x,g,p)}if(Vv(y.y,m.y)){b.y=zv(y.y,m.y,g,p)}e.position(b)}var x=o.startPan;var w=o.pan;var E=i.pan;var T=w!=null&&a;if(T){if(Vv(x.x,w.x)){E.x=zv(x.x,w.x,g,p)}if(Vv(x.y,w.y)){E.y=zv(x.y,w.y,g,p)}e.emit("pan")}var k=o.startZoom;var C=o.zoom;var P=C!=null&&a;if(P){if(Vv(k,C)){i.zoom=Yr(i.minZoom,zv(k,C,g,p),i.maxZoom)}e.emit("zoom")}if(T||P){e.emit("viewport")}var S=o.style;if(S&&S.length>0&&n){for(var B=0;B=0;r--){var a=t[r];a()}t.splice(0,t.length)};for(var v=i.length-1;v>=0;v--){var f=i[v];var c=f._private;if(c.stopped){i.splice(v,1);c.hooked=false;c.playing=false;c.started=false;u(c.frames);continue}if(!c.playing&&!c.applying){continue}if(c.playing&&c.applying){c.applying=false}if(!c.started){jv(t,f,e)}Fv(t,f,e,r);if(c.applying){c.applying=false}u(c.frames);if(c.step!=null){c.step(e)}if(f.completed()){i.splice(v,1);c.hooked=false;c.playing=false;c.started=false;u(c.completes)}s=true}if(!r&&i.length===0&&o.length===0){a.push(t)}return s}var i=false;for(var o=0;o0){t.notify("draw",r)}else{t.notify("draw")}}r.unmerge(a);t.emit("step")}var Yv={animate:fl.animate(),animation:fl.animation(),animated:fl.animated(),clearQueue:fl.clearQueue(),delay:fl.delay(),delayAnimation:fl.delayAnimation(),stop:fl.stop(),addToAnimationPool:function e(t){var r=this;if(!r.styleEnabled()){return}r._private.aniEles.merge(t)},stopAnimationLoop:function e(){this._private.animationsRunning=false},startAnimationLoop:function e(){var t=this;t._private.animationsRunning=true;if(!t.styleEnabled()){return}function r(){if(!t._private.animationsRunning){return}ft((function e(a){Xv(a,t);r()}))}var a=t.renderer();if(a&&a.beforeRender){a.beforeRender((function e(r,a){Xv(a,t)}),a.beforeRenderPriorities.animations)}else{r()}}};var qv={qualifierCompare:function e(t,r){if(t==null||r==null){return t==null&&r==null}else{return t.sameText(r)}},eventMatches:function e(t,r,a){var n=r.qualifier;if(n!=null){return t!==a.target&&O(a.target)&&n.matches(a.target)}return true},addEventFields:function e(t,r){r.cy=t;r.target=t},callbackContext:function e(t,r,a){return r.qualifier!=null?a.target:t}};var Wv=function e(t){if(D(t)){return new Fl(t)}else{return t}};var Uv={createEmitter:function e(){var t=this._private;if(!t.emitter){t.emitter=new Uu(qv,this)}return this},emitter:function e(){return this._private.emitter},on:function e(t,r,a){this.emitter().on(t,Wv(r),a);return this},removeListener:function e(t,r,a){this.emitter().removeListener(t,Wv(r),a);return this},removeAllListeners:function e(){this.emitter().removeAllListeners();return this},one:function e(t,r,a){this.emitter().one(t,Wv(r),a);return this},once:function e(t,r,a){this.emitter().one(t,Wv(r),a);return this},emit:function e(t,r){this.emitter().emit(t,r);return this},emitAndNotify:function e(t,r){this.emit(t);this.notify(t,r);return this}};fl.eventAliasesOn(Uv);var Gv={png:function e(t){var r=this._private.renderer;t=t||{};return r.png(t)},jpg:function e(t){var r=this._private.renderer;t=t||{};t.bg=t.bg||"#fff";return r.jpg(t)}};Gv.jpeg=Gv.jpg;var Hv={layout:function e(t){var r=this;if(t==null){Rt("Layout options must be specified to make a layout");return}if(t.name==null){Rt("A `name` must be specified to make a layout");return}var a=t.name;var n=r.extension("layout",a);if(n==null){Rt("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;if(D(t.eles)){i=r.$(t.eles)}else{i=t.eles!=null?t.eles:r.$()}var e=new n(se({},t,{cy:r,eles:i}));return e}};Hv.createLayout=Hv.makeLayout=Hv.layout;var Kv={notify:function e(t,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[t]=a.batchNotifications[t]||this.collection();if(r!=null){n.merge(r)}return}if(!a.notificationsEnabled){return}var i=this.renderer();if(this.destroyed()||!i){return}i.notify(t,r)},notifications:function e(t){var r=this._private;if(t===undefined){return r.notificationsEnabled}else{r.notificationsEnabled=t?true:false}return this},noNotifications:function e(t){this.notifications(false);t();this.notifications(true)},batching:function e(){return this._private.batchCount>0},startBatch:function e(){var t=this._private;if(t.batchCount==null){t.batchCount=0}if(t.batchCount===0){t.batchStyleEles=this.collection();t.batchNotifications={}}t.batchCount++;return this},endBatch:function e(){var t=this._private;if(t.batchCount===0){return this}t.batchCount--;if(t.batchCount===0){t.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(t.batchNotifications).forEach((function(e){var a=t.batchNotifications[e];if(a.empty()){r.notify(e)}else{r.notify(e,a)}}))}return this},batch:function e(t){this.startBatch();t();this.endBatch();return this},batchData:function e(t){var r=this;return this.batch((function(){var e=Object.keys(t);for(var a=0;a0){r.removeChild(r.childNodes[0])}}t._private.renderer=null;t.mutableElements().forEach((function(e){var t=e._private;t.rscratch={};t.rstyle={};t.animation.current=[];t.animation.queue=[]}))},onRender:function e(t){return this.on("render",t)},offRender:function e(t){return this.off("render",t)}};$v.invalidateDimensions=$v.resize;var Qv={collection:function e(t,r){if(D(t)){return this.$(t)}else if(L(t)){return t.collection()}else if(A(t)){if(!r){r={}}return new Bv(this,t,r.unique,r.removed)}return new Bv(this)},nodes:function e(t){var e=this.$((function(e){return e.isNode()}));if(t){return e.filter(t)}return e},edges:function e(t){var e=this.$((function(e){return e.isEdge()}));if(t){return e.filter(t)}return e},$:function e(t){var r=this._private.elements;if(t){return r.filter(t)}else{return r.spawnSelf()}},mutableElements:function e(){return this._private.elements}};Qv.elements=Qv.filter=Qv.$;var Jv={};var ef="t";var tf="f";Jv.apply=function(e){var t=this;var r=t._private;var a=r.cy;var n=a.collection();for(var i=0;i0;if(c||f&&d){var h=undefined;if(c&&d){h=u.properties}else if(c){h=u.properties}else if(d){h=u.mappedProperties}for(var p=0;p1){x=1}if(s.color){var E=a.valueMin[0];var T=a.valueMax[0];var k=a.valueMin[1];var C=a.valueMax[1];var P=a.valueMin[2];var S=a.valueMax[2];var D=a.valueMin[3]==null?1:a.valueMin[3];var B=a.valueMax[3]==null?1:a.valueMax[3];var A=[Math.round(E+(T-E)*x),Math.round(k+(C-k)*x),Math.round(P+(S-P)*x),Math.round(D+(B-D)*x)];i={bypass:a.bypass,name:a.name,value:A,strValue:"rgb("+A[0]+", "+A[1]+", "+A[2]+")"}}else if(s.number){var _=a.valueMin+(a.valueMax-a.valueMin)*x;i=this.parse(a.name,_,a.bypass,c)}else{return false}if(!i){p();return false}i.mapping=a;a=i;break}case o.data:{var M=a.field.split(".");var R=f.data;for(var N=0;N0&&i>0){var s={};var l=false;for(var u=0;u0){e.delayAnimation(o).play().promise().then(t)}else{t()}})).then((function(){return e.animation({style:s,duration:i,easing:e.pstyle("transition-timing-function").value,queue:false}).play().promise()})).then((function(){r.removeBypasses(e,n);e.emitAndNotify("style");a.transitioning=false}))}else if(a.transitioning){this.removeBypasses(e,n);e.emitAndNotify("style");a.transitioning=false}};Jv.checkTrigger=function(e,t,r,a,n,i){var o=this.properties[t];var s=n(o);if(e.removed()){return}if(s!=null&&s(r,a,e)){i(o)}};Jv.checkZOrderTrigger=function(e,t,r,a){var n=this;this.checkTrigger(e,t,r,a,(function(e){return e.triggersZOrder}),(function(){n._private.cy.notify("zorder",e)}))};Jv.checkBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,(function(e){return e.triggersBounds}),(function(t){e.dirtyCompoundBoundsCache();e.dirtyBoundingBoxCache()}))};Jv.checkConnectedEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,(function(e){return e.triggersBoundsOfConnectedEdges}),(function(t){e.connectedEdges().forEach((function(e){e.dirtyBoundingBoxCache()}))}))};Jv.checkParallelEdgesBoundsTrigger=function(e,t,r,a){this.checkTrigger(e,t,r,a,(function(e){return e.triggersBoundsOfParallelEdges}),(function(t){e.parallelEdges().forEach((function(e){e.dirtyBoundingBoxCache()}))}))};Jv.checkTriggers=function(e,t,r,a){e.dirtyStyleCache();this.checkZOrderTrigger(e,t,r,a);this.checkBoundsTrigger(e,t,r,a);this.checkConnectedEdgesBoundsTrigger(e,t,r,a);this.checkParallelEdgesBoundsTrigger(e,t,r,a)};var rf={};rf.applyBypass=function(e,t,r,a){var n=this;var i=[];var o=true;if(t==="*"||t==="**"){if(r!==undefined){for(var s=0;sn.length){a=a.substr(n.length)}else{a=""}}function l(){if(i.length>o.length){i=i.substr(o.length)}else{i=""}}for(;;){var u=a.match(/^\s*$/);if(u){break}var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){Lt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var c=new Fl(f);if(c.invalid){Lt("Skipping parsing of block: Invalid selector found in string stylesheet: "+f);s();continue}}var d=v[2];var h=false;i=d;var p=[];for(;;){var g=i.match(/^\s*$/);if(g){break}var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){Lt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d);h=true;break}o=y[0];var m=y[1];var b=y[2];var x=t.properties[m];if(!x){Lt("Skipping property: Invalid property name in: "+o);l();continue}var w=r.parse(m,b);if(!w){Lt("Skipping property: Invalid property definition in: "+o);l();continue}p.push({name:m,val:b});l()}if(h){s();break}r.selector(f);for(var E=0;E=7&&t[0]==="d"&&(v=new RegExp(s.data.regex).exec(t))){if(r){return false}var c=s.data;return{name:e,value:v,strValue:""+t,mapped:c,field:v[1],bypass:r}}else if(t.length>=10&&t[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(t))){if(r){return false}if(u.multiple){return false}var d=s.mapData;if(!(u.color||u.number)){return false}var h=this.parse(e,f[4]);if(!h||h.mapped){return false}var p=this.parse(e,f[5]);if(!p||p.mapped){return false}if(h.pfValue===p.pfValue||h.strValue===p.strValue){Lt("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+h.strValue+"`");return this.parse(e,h.strValue)}else if(u.color){var g=h.value;var y=p.value;var m=g[0]===y[0]&&g[1]===y[1]&&g[2]===y[2]&&(g[3]===y[3]||(g[3]==null||g[3]===1)&&(y[3]==null||y[3]===1));if(m){return false}}return{name:e,value:f,strValue:""+t,mapped:d,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:p.value,bypass:r}}if(u.multiple&&a!=="multiple"){var b;if(l){b=t.split(/\s+/)}else if(A(t)){b=t}else{b=[t]}if(u.evenMultiple&&b.length%2!==0){return null}var x=[];var w=[];var E=[];var T="";var k=false;for(var C=0;C0?" ":"")+P.strValue}if(u.validate&&!u.validate(x,w)){return null}if(u.singleEnum&&k){if(x.length===1&&D(x[0])){return{name:e,value:x[0],strValue:x[0],bypass:r}}else{return null}}return{name:e,value:x,pfValue:E,strValue:T,bypass:r,units:w}}var S=function a(){for(var n=0;nu.max||u.strictMax&&t===u.max)){return null}var L={name:e,value:t,strValue:""+t+(_?_:""),units:_,bypass:r};if(u.unitless||_!=="px"&&_!=="em"){L.pfValue=t}else{L.pfValue=_==="px"||!_?t:this.getEmSizeInPixels()*t}if(_==="ms"||_==="s"){L.pfValue=_==="ms"?t:1e3*t}if(_==="deg"||_==="rad"){L.pfValue=_==="rad"?t:Ir(t)}if(_==="%"){L.pfValue=t/100}return L}else if(u.propList){var O=[];var z=""+t;if(z==="none");else{var F=z.split(/\s*,\s*|\s+/);for(var V=0;V0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){l=Math.min((o-2*r)/a.w,(s-2*r)/a.h);l=l>this._private.maxZoom?this._private.maxZoom:l;l=l=a.minZoom){a.maxZoom=r}return this},minZoom:function e(t){if(t===undefined){return this._private.minZoom}else{return this.zoomRange({min:t})}},maxZoom:function e(t){if(t===undefined){return this._private.maxZoom}else{return this.zoomRange({max:t})}},getZoomedViewport:function e(t){var r=this._private;var a=r.pan;var n=r.zoom;var i;var o;var s=false;if(!r.zoomingEnabled){s=true}if(I(t)){o=t}else if(_(t)){o=t.level;if(t.position!=null){i=Pr(t.position,n,a)}else if(t.renderedPosition!=null){i=t.renderedPosition}if(i!=null&&!r.panningEnabled){s=true}}o=o>r.maxZoom?r.maxZoom:o;o=or.maxZoom||!r.zoomingEnabled){o=true}else{r.zoom=l;i.push("zoom")}}if(n&&(!o||!t.cancelOnFailedZoom)&&r.panningEnabled){var u=t.pan;if(I(u.x)){r.pan.x=u.x;s=false}if(I(u.y)){r.pan.y=u.y;s=false}if(!s){i.push("pan")}}if(i.length>0){i.push("viewport");this.emit(i.join(" "));this.notify("viewport")}return this},center:function e(t){var r=this.getCenterPan(t);if(r){this._private.pan=r;this.emit("pan viewport");this.notify("viewport")}return this},getCenterPan:function e(t,r){if(!this._private.panningEnabled){return}if(D(t)){var a=t;t=this.mutableElements().filter(a)}else if(!L(t)){t=this.mutableElements()}if(t.length===0){return}var n=t.boundingBox();var i=this.width();var o=this.height();r=r===undefined?this._private.zoom:r;var s={x:(i-r*(n.x1+n.x2))/2,y:(o-r*(n.y1+n.y2))/2};return s},reset:function e(){if(!this._private.panningEnabled||!this._private.zoomingEnabled){return this}this.viewport({pan:{x:0,y:0},zoom:1});return this},invalidateSize:function e(){this._private.sizeCache=null},size:function e(){var t=this._private;var r=t.container;var a=this;return t.sizeCache=t.sizeCache||(r?function(){var e=a.window().getComputedStyle(r);var t=function t(r){return parseFloat(e.getPropertyValue(r))};return{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}}():{width:1,height:1})},width:function e(){return this.size().width},height:function e(){return this.size().height},extent:function e(){var t=this._private.pan;var r=this._private.zoom;var a=this.renderedExtent();var n={x1:(a.x1-t.x)/r,x2:(a.x2-t.x)/r,y1:(a.y1-t.y)/r,y2:(a.y2-t.y)/r};n.w=n.x2-n.x1;n.h=n.y2-n.y1;return n},renderedExtent:function e(){var t=this.width();var r=this.height();return{x1:0,y1:0,x2:t,y2:r,w:t,h:r}},multiClickDebounceTime:function e(t){if(t)this._private.multiClickDebounceTime=t;else return this._private.multiClickDebounceTime;return this}};hf.centre=hf.center;hf.autolockNodes=hf.autolock;hf.autoungrabifyNodes=hf.autoungrabify;var pf={data:fl.data({field:"data",bindingEvent:"data",allowBinding:true,allowSetting:true,settingEvent:"data",settingTriggersEvent:true,triggerFnName:"trigger",allowGetting:true,updateStyle:true}),removeData:fl.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:true,updateStyle:true}),scratch:fl.data({field:"scratch",bindingEvent:"scratch",allowBinding:true,allowSetting:true,settingEvent:"scratch",settingTriggersEvent:true,triggerFnName:"trigger",allowGetting:true,updateStyle:true}),removeScratch:fl.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:true,updateStyle:true})};pf.attr=pf.data;pf.removeAttr=pf.removeData;var gf=function e(t){var r=this;t=se({},t);var a=t.container;if(a&&!N(a)&&N(a[0])){a=a[0]}var n=a?a._cyreg:null;n=n||{};if(n&&n.cy){n.cy.destroy();n={}}var i=n.readies=n.readies||[];if(a){a._cyreg=n}n.cy=r;var o=w!==undefined&&a!==undefined&&!t.headless;var s=t;s.layout=se({name:o?"grid":"null"},s.layout);s.renderer=se({name:o?"canvas":"null"},s.renderer);var l=function e(t,r,a){if(r!==undefined){return r}else if(a!==undefined){return a}else{return t}};var u=this._private={container:a,ready:false,options:s,elements:new Bv(this),listeners:[],aniEles:new Bv(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:false,notificationsEnabled:true,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(true,s.zoomingEnabled),userZoomingEnabled:l(true,s.userZoomingEnabled),panningEnabled:l(true,s.panningEnabled),userPanningEnabled:l(true,s.userPanningEnabled),boxSelectionEnabled:l(true,s.boxSelectionEnabled),autolock:l(false,s.autolock,s.autolockNodes),autoungrabify:l(false,s.autoungrabify,s.autoungrabifyNodes),autounselectify:l(false,s.autounselectify),styleEnabled:s.styleEnabled===undefined?o:s.styleEnabled,zoom:I(s.zoom)?s.zoom:1,pan:{x:_(s.pan)&&I(s.pan.x)?s.pan.x:0,y:_(s.pan)&&I(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:false,multiClickDebounceTime:l(250,s.multiClickDebounceTime)};this.createEmitter();this.selectionType(s.selectionType);this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function e(t,r){var a=t.some(W);if(a){return si.all(t).then(r)}else{r(t)}};if(u.styleEnabled){r.setStyle([])}var f=se({},s,s.renderer);r.initRenderer(f);var c=function e(t,a,n){r.notifications(false);var i=r.mutableElements();if(i.length>0){i.remove()}if(t!=null){if(_(t)||A(t)){r.add(t)}}r.one("layoutready",(function(e){r.notifications(true);r.emit(e);r.one("load",a);r.emitAndNotify("load")})).one("layoutstop",(function(){r.one("done",n);r.emit("done")}));var o=se({},r._private.options.layout);o.eles=r.elements();r.layout(o).run()};v([s.style,s.elements],(function(e){var t=e[0];var a=e[1];if(u.styleEnabled){r.style().append(t)}c(a,(function(){r.startAnimationLoop();u.ready=true;if(B(s.ready)){r.on("ready",s.ready)}for(var e=0;e0;var s=!!e.boundingBox;var l=t.extent();var u=qr(s?e.boundingBox:{x1:l.x1,y1:l.y1,w:l.w,h:l.h});var v;if(L(e.roots)){v=e.roots}else if(A(e.roots)){var f=[];for(var c=0;c0){var I=M();var R=P(I,B);if(R){I.outgoers().filter((function(e){return e.isNode()&&r.has(e)})).forEach(_)}else if(R===null){Lt("Detected double maximal shift for node `"+I.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var N=0;if(e.avoidOverlap){for(var O=0;O0&&m[0].length<=3?o/2:0);var v=2*Math.PI/m[n].length*i;if(n===0&&m[0].length===1){l=1}return{x:Q.x+l*Math.cos(v),y:Q.y+l*Math.sin(v)}}else{var f=m[n].length;var c=Math.max(f===1?0:s?(u.w-e.padding*2-J.w)/((e.grid?te:f)-1):(u.w-e.padding*2-J.w)/((e.grid?te:f)+1),N);var d={x:Q.x+(i+1-(f+1)/2)*c,y:Q.y+(n+1-(W+1)/2)*ee};return d}};r.nodes().layoutPositions(this,e,re);return this};var Tf={fit:true,padding:30,boundingBox:undefined,avoidOverlap:true,nodeDimensionsIncludeLabels:false,spacingFactor:undefined,radius:undefined,startAngle:3/2*Math.PI,sweep:undefined,clockwise:true,sort:undefined,animate:false,animationDuration:500,animationEasing:undefined,animateFilter:function e(t,r){return true},ready:undefined,stop:undefined,transform:function e(t,r){return r}};function kf(e){this.options=se({},Tf,e)}kf.prototype.run=function(){var e=this.options;var t=e;var r=e.cy;var a=t.eles;var n=t.counterclockwise!==undefined?!t.counterclockwise:t.clockwise;var i=a.nodes().not(":parent");if(t.sort){i=i.sort(t.sort)}var o=qr(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});var s={x:o.x1+o.w/2,y:o.y1+o.h/2};var l=t.sweep===undefined?2*Math.PI-2*Math.PI/i.length:t.sweep;var u=l/Math.max(1,i.length-1);var v;var f=0;for(var c=0;c1&&t.avoidOverlap){f*=1.75;var y=Math.cos(u)-Math.cos(0);var m=Math.sin(u)-Math.sin(0);var b=Math.sqrt(f*f/(y*y+m*m));v=Math.max(b,v)}var x=function e(r,a){var i=t.startAngle+a*u*(n?1:-1);var o=v*Math.cos(i);var l=v*Math.sin(i);var f={x:s.x+o,y:s.y+l};return f};a.nodes().layoutPositions(this,t,x);return this};var Cf={fit:true,padding:30,startAngle:3/2*Math.PI,sweep:undefined,clockwise:true,equidistant:false,minNodeSpacing:10,boundingBox:undefined,avoidOverlap:true,nodeDimensionsIncludeLabels:false,height:undefined,width:undefined,spacingFactor:undefined,concentric:function e(t){return t.degree()},levelWidth:function e(t){return t.maxDegree()/4},animate:false,animationDuration:500,animationEasing:undefined,animateFilter:function e(t,r){return true},ready:undefined,stop:undefined,transform:function e(t,r){return r}};function Pf(e){this.options=se({},Cf,e)}Pf.prototype.run=function(){var e=this.options;var t=e;var r=t.counterclockwise!==undefined?!t.counterclockwise:t.clockwise;var a=e.cy;var n=t.eles;var i=n.nodes().not(":parent");var o=qr(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()});var s={x:o.x1+o.w/2,y:o.y1+o.h/2};var l=[];var u=0;for(var v=0;v0){var w=Math.abs(m[0].value-x.value);if(w>=g){m=[];y.push(m)}}m.push(x)}var E=u+t.minNodeSpacing;if(!t.avoidOverlap){var T=y.length>0&&y[0].length>1;var k=Math.min(o.w,o.h)/2-E;var C=k/(y.length+T?1:0);E=Math.min(E,C)}var P=0;for(var S=0;S1&&t.avoidOverlap){var _=Math.cos(A)-Math.cos(0);var M=Math.sin(A)-Math.sin(0);var I=Math.sqrt(E*E/(_*_+M*M));P=Math.max(I,P)}D.r=P;P+=E}if(t.equidistant){var R=0;var N=0;for(var L=0;L=e.numIter){return false}Of(a,e);a.temperature=a.temperature*e.coolingFactor;if(a.temperature=e.animationThreshold){i()}ft(v)}};v()}else{while(u){u=o(l);l++}Kf(a,e);s()}return this};Bf.prototype.stop=function(){this.stopped=true;if(this.thread){this.thread.stop()}this.emit("layoutstop");return this};Bf.prototype.destroy=function(){if(this.thread){this.thread.stop()}return this};var Af=function e(t,r,a){var n=a.eles.edges();var i=a.eles.nodes();var o=qr(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});var s={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o};var l=a.eles.components();var u={};for(var v=0;v0){s.graphSet.push(k);for(var v=0;vn.count){return 0}else{return n.graph}};var Mf=function e(t,r,a,n){var i=n.graphSet[a];if(-10){var f=n.nodeOverlap*v;var c=Math.sqrt(s*s+l*l);var d=f*s/c;var h=f*l/c}else{var p=Xf(t,s,l);var g=Xf(r,-1*s,-1*l);var y=g.x-p.x;var m=g.y-p.y;var b=y*y+m*m;var c=Math.sqrt(b);var f=(t.nodeRepulsion+r.nodeRepulsion)/b;var d=f*y/c;var h=f*m/c}if(!t.isLocked){t.offsetX-=d;t.offsetY-=h}if(!r.isLocked){r.offsetX+=d;r.offsetY+=h}return};var jf=function e(t,r,a,n){if(a>0){var i=t.maxX-r.minX}else{var i=r.maxX-t.minX}if(n>0){var o=t.maxY-r.minY}else{var o=r.maxY-t.minY}if(i>=0&&o>=0){return Math.sqrt(i*i+o*o)}else{return 0}};var Xf=function e(t,r,a){var n=t.positionX;var i=t.positionY;var o=t.height||1;var s=t.width||1;var l=a/r;var u=o/s;var v={};if(0===r&&0a){v.x=n;v.y=i+o/2;return v}if(0r&&-1*u<=l&&l<=u){v.x=n-s/2;v.y=i-s*a/2/r;return v}if(0=u)){v.x=n+o*r/2/a;v.y=i+o/2;return v}if(0>a&&(l<=-1*u||l>=u)){v.x=n-o*r/2/a;v.y=i-o/2;return v}return v};var Yf=function e(t,r){for(var a=0;aa){var g=r.gravity*d/p;var y=r.gravity*h/p;c.offsetX+=g;c.offsetY+=y}}}};var Wf=function e(t,r){var a=[];var n=0;var i=-1;a.push.apply(a,t.graphSet[0]);i+=t.graphSet[0].length;while(n<=i){var o=a[n++];var s=t.idToIndex[o];var l=t.layoutNodes[s];var u=l.children;if(0a){var i={x:a*t/n,y:a*r/n}}else{var i={x:t,y:r}}return i};var Hf=function e(t,r){var a=t.parentId;if(null==a){return}var n=r.layoutNodes[r.idToIndex[a]];var i=false;if(null==n.maxX||t.maxX+n.padRight>n.maxX){n.maxX=t.maxX+n.padRight;i=true}if(null==n.minX||t.minX-n.padLeftn.maxY){n.maxY=t.maxY+n.padBottom;i=true}if(null==n.minY||t.minY-n.padTopy){h+=g+r.componentSpacing;d=0;p=0;g=0}}};var Zf={fit:true,padding:30,boundingBox:undefined,avoidOverlap:true,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:false,spacingFactor:undefined,condense:false,rows:undefined,cols:undefined,position:function e(t){},sort:undefined,animate:false,animationDuration:500,animationEasing:undefined,animateFilter:function e(t,r){return true},ready:undefined,stop:undefined,transform:function e(t,r){return r}};function $f(e){this.options=se({},Zf,e)}$f.prototype.run=function(){var e=this.options;var t=e;var r=e.cy;var a=t.eles;var n=a.nodes().not(":parent");if(t.sort){n=n.sort(t.sort)}var i=qr(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0){a.nodes().layoutPositions(this,t,(function(e){return{x:i.x1,y:i.y1}}))}else{var o=n.size();var s=Math.sqrt(o*i.h/i.w);var l=Math.round(s);var u=Math.round(i.w/i.h*s);var v=function e(t){if(t==null){return Math.min(l,u)}else{var r=Math.min(l,u);if(r==l){l=t}else{u=t}}};var f=function e(t){if(t==null){return Math.max(l,u)}else{var r=Math.max(l,u);if(r==l){l=t}else{u=t}}};var c=t.rows;var d=t.cols!=null?t.cols:t.columns;if(c!=null&&d!=null){l=c;u=d}else if(c!=null&&d==null){l=c;u=Math.ceil(o/l)}else if(c==null&&d!=null){u=d;l=Math.ceil(o/u)}else if(u*l>o){var h=v();var p=f();if((h-1)*p>=o){v(h-1)}else if((p-1)*h>=o){f(p-1)}}else{while(u*l=o){f(y+1)}else{v(g+1)}}}var m=i.w/u;var b=i.h/l;if(t.condense){m=0;b=0}if(t.avoidOverlap){for(var x=0;x=u){_=0;A++}};var I={};for(var R=0;R(b=ua(e,t,x[w],x[w+1],x[w+2],x[w+3]))){g(r,b);return true}}}else if(o.edgeType==="bezier"||o.edgeType==="multibezier"||o.edgeType==="self"||o.edgeType==="compound"){var x=o.allpts;for(var w=0;w+5(b=la(e,t,x[w],x[w+1],x[w+2],x[w+3],x[w+4],x[w+5]))){g(r,b);return true}}}var p=p||a.source;var m=m||a.target;var E=n.getArrowWidth(l,f);var T=[{name:"source",x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:"target",x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:"mid-source",x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:"mid-target",x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}];for(var w=0;w0){y(p);y(m)}}function b(e,t,r){return Gt(e,t,r)}function x(r,a){var n=r._private;var i=c;var o;if(a){o=a+"-"}else{o=""}r.boundingBox();var s=n.labelBounds[a||"main"];var l=r.pstyle(o+"label").value;var u=r.pstyle("text-events").strValue==="yes";if(!u||!l){return}var v=b(n.rscratch,"labelX",a);var f=b(n.rscratch,"labelY",a);var d=b(n.rscratch,"labelAngle",a);var h=r.pstyle(o+"text-margin-x").pfValue;var p=r.pstyle(o+"text-margin-y").pfValue;var y=s.x1-i-h;var m=s.x2+i-h;var x=s.y1-i-p;var w=s.y2+i-p;if(d){var E=Math.cos(d);var T=Math.sin(d);var k=function e(t,r){t=t-v;r=r-f;return{x:t*E-r*T+v,y:t*T+r*E+f}};var C=k(y,x);var P=k(y,w);var S=k(m,x);var D=k(m,w);var B=[C.x+h,C.y+p,S.x+h,S.y+p,D.x+h,D.y+p,P.x+h,P.y+p];if(va(e,t,B)){g(r);return true}}else{if(ea(s,e,t)){g(r);return true}}}for(var w=o.length-1;w>=0;w--){var E=o[w];if(E.isNode()){y(E)||x(E)}else{m(E)||x(E)||x(E,"source")||x(E,"target")}}return s};uc.getAllInBox=function(e,t,r,a){var n=this.getCachedZSortedEles().interactive;var i=[];var o=Math.min(e,r);var s=Math.max(e,r);var l=Math.min(t,a);var u=Math.max(t,a);e=o;r=s;t=l;a=u;var v=qr({x1:e,y1:t,x2:r,y2:a});for(var f=0;f0?-(Math.PI-t.ang):Math.PI+t.ang};var Mc=function e(t,r,a,n,i){t!==Bc?Ac(r,t,dc):_c(hc,dc);Ac(r,a,hc);pc=dc.nx*hc.ny-dc.ny*hc.nx;gc=dc.nx*hc.nx-dc.ny*-hc.ny;bc=Math.asin(Math.max(-1,Math.min(1,pc)));if(Math.abs(bc)<1e-6){fc=r.x;cc=r.y;wc=Tc=0;return}yc=1;mc=false;if(gc<0){if(bc<0){bc=Math.PI+bc}else{bc=Math.PI-bc;yc=-1;mc=true}}else{if(bc>0){yc=-1;mc=true}}if(r.radius!==undefined){Tc=r.radius}else{Tc=n}xc=bc/2;kc=Math.min(dc.len/2,hc.len/2);if(i){Ec=Math.abs(Math.cos(xc)*Tc/Math.sin(xc));if(Ec>kc){Ec=kc;wc=Math.abs(Ec*Math.sin(xc)/Math.cos(xc))}else{wc=Tc}}else{Ec=Math.min(kc,Tc);wc=Math.abs(Ec*Math.sin(xc)/Math.cos(xc))}Sc=r.x+hc.nx*Ec;Dc=r.y+hc.ny*Ec;fc=Sc-hc.ny*wc*yc;cc=Dc+hc.nx*wc*yc;Cc=r.x+dc.nx*Ec;Pc=r.y+dc.ny*Ec;Bc=r};function Ic(e,t){if(t.radius===0)e.lineTo(t.cx,t.cy);else e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function Rc(e,t,r,a){var n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;if(a===0||t.radius===0)return{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:undefined,endAngle:undefined,counterClockwise:undefined};Mc(e,t,r,a,n);return{cx:fc,cy:cc,radius:wc,startX:Cc,startY:Pc,stopX:Sc,stopY:Dc,startAngle:dc.ang+Math.PI/2*yc,endAngle:hc.ang-Math.PI/2*yc,counterClockwise:mc}}var Nc={};Nc.findMidptPtsEtc=function(e,t){var r=t.posPts,a=t.intersectionPts,n=t.vectorNormInverse;var i;var o=e.pstyle("source-endpoint");var s=e.pstyle("target-endpoint");var l=o.units!=null&&s.units!=null;var u=function e(t,r,a,n){var i=n-r;var o=a-t;var s=Math.sqrt(o*o+i*i);return{x:-i/s,y:o/s}};var v=e.pstyle("edge-distances").value;switch(v){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(l){var f=this.manualEndptToPx(e.source()[0],o),c=p(f,2),d=c[0],h=c[1];var g=this.manualEndptToPx(e.target()[0],s),y=p(g,2),m=y[0],b=y[1];var x={x1:d,y1:h,x2:m,y2:b};n=u(d,h,m,b);i=x}else{Lt("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default)."));i=a}break}}return{midptPts:i,vectorNormInverse:n}};Nc.findHaystackPoints=function(e){for(var t=0;t0){return Math.max(t-r,0)}else{return Math.min(t+r,0)}};var B=D(P,k);var A=D(S,C);var _=false;if(m===u){y=Math.abs(B)>Math.abs(A)?n:a}else if(m===l||m===s){y=a;_=true}else if(m===i||m===o){y=n;_=true}var M=y===a;var I=M?A:B;var R=M?S:P;var N=Lr(R);var L=false;if(!(_&&(x||E))&&(m===s&&R<0||m===l&&R>0||m===i&&R>0||m===o&&R<0)){N*=-1;I=N*Math.abs(I);L=true}var O;if(x){var z=w<0?1+w:w;O=z*I}else{var F=w<0?I:0;O=F+w*N}var V=function e(t){return Math.abs(t)=Math.abs(I)};var j=V(O);var X=V(Math.abs(I)-Math.abs(O));var Y=j||X;if(Y&&!L){if(M){var q=Math.abs(R)<=c/2;var W=Math.abs(P)<=d/2;if(q){var U=(v.x1+v.x2)/2;var G=v.y1,H=v.y2;r.segpts=[U,G,U,H]}else if(W){var K=(v.y1+v.y2)/2;var Z=v.x1,$=v.x2;r.segpts=[Z,K,$,K]}else{r.segpts=[v.x1,v.y2]}}else{var Q=Math.abs(R)<=f/2;var J=Math.abs(S)<=h/2;if(Q){var ee=(v.y1+v.y2)/2;var te=v.x1,re=v.x2;r.segpts=[te,ee,re,ee]}else if(J){var ae=(v.x1+v.x2)/2;var ne=v.y1,ie=v.y2;r.segpts=[ae,ne,ae,ie]}else{r.segpts=[v.x2,v.y1]}}}else{if(M){var oe=v.y1+O+(g?c/2*N:0);var se=v.x1,le=v.x2;r.segpts=[se,oe,le,oe]}else{var ue=v.x1+O+(g?f/2*N:0);var ve=v.y1,fe=v.y2;r.segpts=[ue,ve,ue,fe]}}if(r.isRound){var ce=e.pstyle("taxi-radius").value;var de=e.pstyle("radius-type").value[0]==="arc-radius";r.radii=new Array(r.segpts.length/2).fill(ce);r.isArcRadius=new Array(r.segpts.length/2).fill(de)}};Nc.tryToCorrectInvalidPoints=function(e,t){var r=e._private.rscratch;if(r.edgeType==="bezier"){var a=t.srcPos,n=t.tgtPos,i=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,v=t.tgtShape,f=t.srcCornerRadius,c=t.tgtCornerRadius,d=t.srcRs,h=t.tgtRs;var p=!I(r.startX)||!I(r.startY);var g=!I(r.arrowStartX)||!I(r.arrowStartY);var y=!I(r.endX)||!I(r.endY);var m=!I(r.arrowEndX)||!I(r.arrowEndY);var b=3;var x=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth;var w=b*x;var E=Or({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY});var T=Eg.poolIndex()){var y=p;p=g;g=y}var m=f.srcPos=p.position();var b=f.tgtPos=g.position();var x=f.srcW=p.outerWidth();var w=f.srcH=p.outerHeight();var E=f.tgtW=g.outerWidth();var T=f.tgtH=g.outerHeight();var C=f.srcShape=r.nodeShapes[t.getNodeShape(p)];var P=f.tgtShape=r.nodeShapes[t.getNodeShape(g)];var S=f.srcCornerRadius=p.pstyle("corner-radius").value==="auto"?"auto":p.pstyle("corner-radius").pfValue;var D=f.tgtCornerRadius=g.pstyle("corner-radius").value==="auto"?"auto":g.pstyle("corner-radius").pfValue;var B=f.tgtRs=g._private.rscratch;var A=f.srcRs=p._private.rscratch;f.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_0){var K=i;var Z=zr(K,Dr(r));var $=zr(K,Dr(H));var Q=Z;if($2){var J=zr(K,{x:H[2],y:H[3]});if(J0){var ce=o;var de=zr(ce,Dr(r));var he=zr(ce,Dr(fe));var pe=de;if(he2){var ge=zr(ce,{x:fe[2],y:fe[3]});if(ge=v||b){c={cp:g,segment:m};break}}if(c){break}}var x=c.cp;var w=c.segment;var E=(v-d)/w.length;var T=w.t1-w.t0;var k=u?w.t0+T*E:w.t1-T*E;k=Yr(0,k,1);t=jr(x.p0,x.p1,x.p2,k);s=Yc(x.p0,x.p1,x.p2,k);break}case"straight":case"segments":case"haystack":{var C=0,P,S;var D,B;var A=a.allpts.length;for(var _=0;_+3=v){break}}var M=v-S;var I=M/P;I=Yr(0,I,1);t=Xr(D,B,I);s=Xc(D,B);break}}o("labelX",n,t.x);o("labelY",n,t.y);o("labelAutoAngle",n,s)};u("source");u("target");this.applyLabelDimensions(e)};Vc.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e);if(e.isEdge()){this.applyPrefixedLabelDimensions(e,"source");this.applyPrefixedLabelDimensions(e,"target")}};Vc.applyPrefixedLabelDimensions=function(e,t){var r=e._private;var a=this.getLabelText(e,t);var n=this.calculateLabelDimensions(e,a);var i=e.pstyle("line-height").pfValue;var o=e.pstyle("text-wrap").strValue;var s=Gt(r.rscratch,"labelWrapCachedLines",t)||[];var l=o!=="wrap"?1:Math.max(s.length,1);var u=n.height/l;var v=u*i;var f=n.width;var c=n.height+(l-1)*(i-1)*u;Ht(r.rstyle,"labelWidth",t,f);Ht(r.rscratch,"labelWidth",t,f);Ht(r.rstyle,"labelHeight",t,c);Ht(r.rscratch,"labelHeight",t,c);Ht(r.rscratch,"labelLineHeight",t,v)};Vc.getLabelText=function(e,t){var r=e._private;var a=t?t+"-":"";var n=e.pstyle(a+"label").strValue;var i=e.pstyle("text-transform").value;var o=function e(a,n){if(n){Ht(r.rscratch,a,t,n);return n}else{return Gt(r.rscratch,a,t)}};if(!n){return""}if(i=="none");else if(i=="uppercase"){n=n.toUpperCase()}else if(i=="lowercase"){n=n.toLowerCase()}var s=e.pstyle("text-wrap").value;if(s==="wrap"){var l=o("labelKey");if(l!=null&&o("labelWrapKey")===l){return o("labelWrapCachedText")}var v="​";var f=n.split("\n");var c=e.pstyle("text-max-width").pfValue;var d=e.pstyle("text-overflow-wrap").value;var h=d==="anywhere";var p=[];var g=/[\s\u200b]+|$/g;for(var y=0;yc){var E=m.matchAll(g);var T="";var k=0;var C=u(E),P;try{for(C.s();!(P=C.n()).done;){var S=P.value;var D=S[0];var B=m.substring(k,S.index);k=S.index+D.length;var A=T.length===0?B:T+B+D;var _=this.calculateLabelDimensions(e,A);var M=_.width;if(M<=c){T+=B+D}else{if(T){p.push(T)}T=B+D}}}catch(F){C.e(F)}finally{C.f()}if(!T.match(/^[\s\u200b]+$/)){p.push(T)}}else{p.push(m)}}o("labelWrapCachedLines",p);n=o("labelWrapCachedText",p.join("\n"));o("labelWrapKey",l)}else if(s==="ellipsis"){var I=e.pstyle("text-max-width").pfValue;var R="";var N="…";var L=false;if(this.calculateLabelDimensions(e,n).widthI){break}R+=n[O];if(O===n.length-1){L=true}}if(!L){R+=N}return R}return n};Vc.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue;var r=e.pstyle("text-halign").strValue;if(t==="auto"){if(e.isNode()){switch(r){case"left":return"right";case"right":return"left";default:return"center"}}else{return"center"}}else{return t}};Vc.calculateLabelDimensions=function(e,t){var r=this;var a=r.cy.window();var n=a.document;var i=Tt(t,e._private.labelDimsKey);var o=r.labelDimCache||(r.labelDimCache=[]);var s=o[i];if(s!=null){return s}var l=0;var u=e.pstyle("font-style").strValue;var v=e.pstyle("font-size").pfValue;var f=e.pstyle("font-family").strValue;var c=e.pstyle("font-weight").strValue;var d=this.labelCalcCanvas;var h=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=n.createElement("canvas");h=this.labelCalcCanvasContext=d.getContext("2d");var p=d.style;p.position="absolute";p.left="-9999px";p.top="-9999px";p.zIndex="-1";p.visibility="hidden";p.pointerEvents="none"}h.font="".concat(u," ").concat(c," ").concat(v,"px ").concat(f);var g=0;var y=0;var m=t.split("\n");for(var b=0;b1&&arguments[1]!==undefined?arguments[1]:true;t.merge(r);if(a){for(var n=0;n=e.desktopTapThreshold2}var B=i(r);if(E){e.hoverData.tapholdCancelled=true}var A=function t(){var r=e.hoverData.dragDelta=e.hoverData.dragDelta||[];if(r.length===0){r.push(x[0]);r.push(x[1])}else{r[0]+=x[0];r[1]+=x[1]}};s=true;n(g,["mousemove","vmousemove","tapdrag"],r,{x:f[0],y:f[1]});var _=function t(){e.data.bgActivePosistion=undefined;if(!e.hoverData.selecting){l.emit({originalEvent:r,type:"boxstart",position:{x:f[0],y:f[1]}})}h[4]=1;e.hoverData.selecting=true;e.redrawHint("select",true);e.redraw()};if(e.hoverData.which===3){if(E){var M={originalEvent:r,type:"cxtdrag",position:{x:f[0],y:f[1]}};if(b){b.emit(M)}else{l.emit(M)}e.hoverData.cxtDragged=true;if(!e.hoverData.cxtOver||g!==e.hoverData.cxtOver){if(e.hoverData.cxtOver){e.hoverData.cxtOver.emit({originalEvent:r,type:"cxtdragout",position:{x:f[0],y:f[1]}})}e.hoverData.cxtOver=g;if(g){g.emit({originalEvent:r,type:"cxtdragover",position:{x:f[0],y:f[1]}})}}}}else if(e.hoverData.dragging){s=true;if(l.panningEnabled()&&l.userPanningEnabled()){var R;if(e.hoverData.justStartedPan){var N=e.hoverData.mdownPos;R={x:(f[0]-N[0])*u,y:(f[1]-N[1])*u};e.hoverData.justStartedPan=false}else{R={x:x[0]*u,y:x[1]*u}}l.panBy(R);l.emit("dragpan");e.hoverData.dragged=true}f=e.projectIntoViewport(r.clientX,r.clientY)}else if(h[4]==1&&(b==null||b.pannable())){if(E){if(!e.hoverData.dragging&&l.boxSelectionEnabled()&&(B||!l.panningEnabled()||!l.userPanningEnabled())){_()}else if(!e.hoverData.selecting&&l.panningEnabled()&&l.userPanningEnabled()){var L=o(b,e.hoverData.downs);if(L){e.hoverData.dragging=true;e.hoverData.justStartedPan=true;h[4]=0;e.data.bgActivePosistion=Dr(c);e.redrawHint("select",true);e.redraw()}}if(b&&b.pannable()&&b.active()){b.unactivate()}}}else{if(b&&b.pannable()&&b.active()){b.unactivate()}if((!b||!b.grabbed())&&g!=m){if(m){n(m,["mouseout","tapdragout"],r,{x:f[0],y:f[1]})}if(g){n(g,["mouseover","tapdragover"],r,{x:f[0],y:f[1]})}e.hoverData.last=g}if(b){if(E){if(l.boxSelectionEnabled()&&B){if(b&&b.grabbed()){y(w);b.emit("freeon");w.emit("free");if(e.dragData.didDrag){b.emit("dragfreeon");w.emit("dragfree")}}_()}else if(b&&b.grabbed()&&e.nodeIsDraggable(b)){var O=!e.dragData.didDrag;if(O){e.redrawHint("eles",true)}e.dragData.didDrag=true;if(!e.hoverData.draggingEles){p(w,{inDragLayer:true})}var z={x:0,y:0};if(I(x[0])&&I(x[1])){z.x+=x[0];z.y+=x[1];if(O){var F=e.hoverData.dragDelta;if(F&&I(F[0])&&I(F[1])){z.x+=F[0];z.y+=F[1]}}}e.hoverData.draggingEles=true;w.silentShift(z).emit("position drag");e.redrawHint("drag",true);e.redraw()}}else{A()}}s=true}h[2]=f[0];h[3]=f[1];if(s){if(r.stopPropagation)r.stopPropagation();if(r.preventDefault)r.preventDefault();return false}}),false);var D,B,A;e.registerBinding(t,"mouseup",(function t(a){if(e.hoverData.which===1&&a.which!==1&&e.hoverData.capture){return}var o=e.hoverData.capture;if(!o){return}e.hoverData.capture=false;var s=e.cy;var l=e.projectIntoViewport(a.clientX,a.clientY);var u=e.selection;var v=e.findNearestElement(l[0],l[1],true,false);var f=e.dragData.possibleDragElements;var c=e.hoverData.down;var d=i(a);if(e.data.bgActivePosistion){e.redrawHint("select",true);e.redraw()}e.hoverData.tapholdCancelled=true;e.data.bgActivePosistion=undefined;if(c){c.unactivate()}if(e.hoverData.which===3){var h={originalEvent:a,type:"cxttapend",position:{x:l[0],y:l[1]}};if(c){c.emit(h)}else{s.emit(h)}if(!e.hoverData.cxtDragged){var p={originalEvent:a,type:"cxttap",position:{x:l[0],y:l[1]}};if(c){c.emit(p)}else{s.emit(p)}}e.hoverData.cxtDragged=false;e.hoverData.which=null}else if(e.hoverData.which===1){n(v,["mouseup","tapend","vmouseup"],a,{x:l[0],y:l[1]});if(!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag){n(c,["click","tap","vclick"],a,{x:l[0],y:l[1]});B=false;if(a.timeStamp-A<=s.multiClickDebounceTime()){D&&clearTimeout(D);B=true;A=null;n(c,["dblclick","dbltap","vdblclick"],a,{x:l[0],y:l[1]})}else{D=setTimeout((function(){if(B)return;n(c,["oneclick","onetap","voneclick"],a,{x:l[0],y:l[1]})}),s.multiClickDebounceTime());A=a.timeStamp}}if(c==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!i(a)){s.$(r).unselect(["tapunselect"]);if(f.length>0){e.redrawHint("eles",true)}e.dragData.possibleDragElements=f=s.collection()}if(v==c&&!e.dragData.didDrag&&!e.hoverData.selecting){if(v!=null&&v._private.selectable){if(e.hoverData.dragging);else if(s.selectionType()==="additive"||d){if(v.selected()){v.unselect(["tapunselect"])}else{v.select(["tapselect"])}}else{if(!d){s.$(r).unmerge(v).unselect(["tapunselect"]);v.select(["tapselect"])}}e.redrawHint("eles",true)}}if(e.hoverData.selecting){var g=s.collection(e.getAllInBox(u[0],u[1],u[2],u[3]));e.redrawHint("select",true);if(g.length>0){e.redrawHint("eles",true)}s.emit({type:"boxend",originalEvent:a,position:{x:l[0],y:l[1]}});var m=function e(t){return t.selectable()&&!t.selected()};if(s.selectionType()==="additive"){g.emit("box").stdFilter(m).select().emit("boxselect")}else{if(!d){s.$(r).unmerge(g).unselect()}g.emit("box").stdFilter(m).select().emit("boxselect")}e.redraw()}if(e.hoverData.dragging){e.hoverData.dragging=false;e.redrawHint("select",true);e.redrawHint("eles",true);e.redraw()}if(!u[4]){e.redrawHint("drag",true);e.redrawHint("eles",true);var b=c&&c.grabbed();y(f);if(b){c.emit("freeon");f.emit("free");if(e.dragData.didDrag){c.emit("dragfreeon");f.emit("dragfree")}}}}u[4]=0;e.hoverData.down=null;e.hoverData.cxtStarted=false;e.hoverData.draggingEles=false;e.hoverData.selecting=false;e.hoverData.isOverThresholdDrag=false;e.dragData.didDrag=false;e.hoverData.dragged=false;e.hoverData.dragDelta=[];e.hoverData.mdownPos=null;e.hoverData.mdownGPos=null;e.hoverData.which=null}),false);var _=function t(r){if(e.scrollingPage){return}var a=e.cy;var n=a.zoom();var i=a.pan();var o=e.projectIntoViewport(r.clientX,r.clientY);var s=[o[0]*n+i.x,o[1]*n+i.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||C()){r.preventDefault();return}if(a.panningEnabled()&&a.userPanningEnabled()&&a.zoomingEnabled()&&a.userZoomingEnabled()){r.preventDefault();e.data.wheelZooming=true;clearTimeout(e.data.wheelTimeout);e.data.wheelTimeout=setTimeout((function(){e.data.wheelZooming=false;e.redrawHint("eles",true);e.redraw()}),150);var l;if(r.deltaY!=null){l=r.deltaY/-250}else if(r.wheelDeltaY!=null){l=r.wheelDeltaY/1e3}else{l=r.wheelDelta/1e3}l=l*e.wheelSensitivity;var u=r.deltaMode===1;if(u){l*=33}var v=a.zoom()*Math.pow(10,l);if(r.type==="gesturechange"){v=e.gestureStartZoom*r.scale}a.zoom({level:v,renderedPosition:{x:s[0],y:s[1]}});a.emit(r.type==="gesturechange"?"pinchzoom":"scrollzoom")}};e.registerBinding(e.container,"wheel",_,true);e.registerBinding(t,"scroll",(function t(r){e.scrollingPage=true;clearTimeout(e.scrollingPageTimeout);e.scrollingPageTimeout=setTimeout((function(){e.scrollingPage=false}),250)}),true);e.registerBinding(e.container,"gesturestart",(function t(r){e.gestureStartZoom=e.cy.zoom();if(!e.hasTouchStarted){r.preventDefault()}}),true);e.registerBinding(e.container,"gesturechange",(function(t){if(!e.hasTouchStarted){_(t)}}),true);e.registerBinding(e.container,"mouseout",(function t(r){var a=e.projectIntoViewport(r.clientX,r.clientY);e.cy.emit({originalEvent:r,type:"mouseout",position:{x:a[0],y:a[1]}})}),false);e.registerBinding(e.container,"mouseover",(function t(r){var a=e.projectIntoViewport(r.clientX,r.clientY);e.cy.emit({originalEvent:r,type:"mouseover",position:{x:a[0],y:a[1]}})}),false);var M,R,N,L;var O,z;var F,V;var j,X;var Y,q;var W;var U=function e(t,r,a,n){return Math.sqrt((a-t)*(a-t)+(n-r)*(n-r))};var G=function e(t,r,a,n){return(a-t)*(a-t)+(n-r)*(n-r)};var H;e.registerBinding(e.container,"touchstart",H=function t(r){e.hasTouchStarted=true;if(!P(r)){return}b();e.touchData.capture=true;e.data.bgActivePosistion=undefined;var a=e.cy;var i=e.touchData.now;var o=e.touchData.earlier;if(r.touches[0]){var s=e.projectIntoViewport(r.touches[0].clientX,r.touches[0].clientY);i[0]=s[0];i[1]=s[1]}if(r.touches[1]){var s=e.projectIntoViewport(r.touches[1].clientX,r.touches[1].clientY);i[2]=s[0];i[3]=s[1]}if(r.touches[2]){var s=e.projectIntoViewport(r.touches[2].clientX,r.touches[2].clientY);i[4]=s[0];i[5]=s[1]}if(r.touches[1]){e.touchData.singleTouchMoved=true;y(e.dragData.touchDragEles);var l=e.findContainerClientCoords();j=l[0];X=l[1];Y=l[2];q=l[3];M=r.touches[0].clientX-j;R=r.touches[0].clientY-X;N=r.touches[1].clientX-j;L=r.touches[1].clientY-X;W=0<=M&&M<=Y&&0<=N&&N<=Y&&0<=R&&R<=q&&0<=L&&L<=q;var u=a.pan();var v=a.zoom();O=U(M,R,N,L);z=G(M,R,N,L);F=[(M+N)/2,(R+L)/2];V=[(F[0]-u.x)/v,(F[1]-u.y)/v];var c=200;var d=c*c;if(z=1){var C=e.touchData.startPosition=[null,null,null,null,null,null];for(var S=0;S=e.touchTapThreshold2}if(a&&e.touchData.cxt){r.preventDefault();var T=r.touches[0].clientX-j,k=r.touches[0].clientY-X;var C=r.touches[1].clientX-j,S=r.touches[1].clientY-X;var D=G(T,k,C,S);var B=D/z;var A=150;var _=A*A;var F=1.5;var Y=F*F;if(B>=Y||D>=_){e.touchData.cxt=false;e.data.bgActivePosistion=undefined;e.redrawHint("select",true);var q={originalEvent:r,type:"cxttapend",position:{x:l[0],y:l[1]}};if(e.touchData.start){e.touchData.start.unactivate().emit(q);e.touchData.start=null}else{s.emit(q)}}}if(a&&e.touchData.cxt){var q={originalEvent:r,type:"cxtdrag",position:{x:l[0],y:l[1]}};e.data.bgActivePosistion=undefined;e.redrawHint("select",true);if(e.touchData.start){e.touchData.start.emit(q)}else{s.emit(q)}if(e.touchData.start){e.touchData.start._private.grabbed=false}e.touchData.cxtDragged=true;var H=e.findNearestElement(l[0],l[1],true,true);if(!e.touchData.cxtOver||H!==e.touchData.cxtOver){if(e.touchData.cxtOver){e.touchData.cxtOver.emit({originalEvent:r,type:"cxtdragout",position:{x:l[0],y:l[1]}})}e.touchData.cxtOver=H;if(H){H.emit({originalEvent:r,type:"cxtdragover",position:{x:l[0],y:l[1]}})}}}else if(a&&r.touches[2]&&s.boxSelectionEnabled()){r.preventDefault();e.data.bgActivePosistion=undefined;this.lastThreeTouch=+new Date;if(!e.touchData.selecting){s.emit({originalEvent:r,type:"boxstart",position:{x:l[0],y:l[1]}})}e.touchData.selecting=true;e.touchData.didSelect=true;i[4]=1;if(!i||i.length===0||i[0]===undefined){i[0]=(l[0]+l[2]+l[4])/3;i[1]=(l[1]+l[3]+l[5])/3;i[2]=(l[0]+l[2]+l[4])/3+1;i[3]=(l[1]+l[3]+l[5])/3+1}else{i[2]=(l[0]+l[2]+l[4])/3;i[3]=(l[1]+l[3]+l[5])/3}e.redrawHint("select",true);e.redraw()}else if(a&&r.touches[1]&&!e.touchData.didSelect&&s.zoomingEnabled()&&s.panningEnabled()&&s.userZoomingEnabled()&&s.userPanningEnabled()){r.preventDefault();e.data.bgActivePosistion=undefined;e.redrawHint("select",true);var K=e.dragData.touchDragEles;if(K){e.redrawHint("drag",true);for(var Z=0;Z0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null){e.data.bgActivePosistion=undefined;e.redrawHint("select",true);e.redraw()}},false);var Z;e.registerBinding(t,"touchcancel",Z=function t(r){var a=e.touchData.start;e.touchData.capture=false;if(a){a.unactivate()}});var $,Q,J,ee;e.registerBinding(t,"touchend",$=function t(a){var i=e.touchData.start;var o=e.touchData.capture;if(o){if(a.touches.length===0){e.touchData.capture=false}a.preventDefault()}else{return}var s=e.selection;e.swipePanning=false;e.hoverData.draggingEles=false;var l=e.cy;var u=l.zoom();var v=e.touchData.now;var f=e.touchData.earlier;if(a.touches[0]){var c=e.projectIntoViewport(a.touches[0].clientX,a.touches[0].clientY);v[0]=c[0];v[1]=c[1]}if(a.touches[1]){var c=e.projectIntoViewport(a.touches[1].clientX,a.touches[1].clientY);v[2]=c[0];v[3]=c[1]}if(a.touches[2]){var c=e.projectIntoViewport(a.touches[2].clientX,a.touches[2].clientY);v[4]=c[0];v[5]=c[1]}if(i){i.unactivate()}var d;if(e.touchData.cxt){d={originalEvent:a,type:"cxttapend",position:{x:v[0],y:v[1]}};if(i){i.emit(d)}else{l.emit(d)}if(!e.touchData.cxtDragged){var h={originalEvent:a,type:"cxttap",position:{x:v[0],y:v[1]}};if(i){i.emit(h)}else{l.emit(h)}}if(e.touchData.start){e.touchData.start._private.grabbed=false}e.touchData.cxt=false;e.touchData.start=null;e.redraw();return}if(!a.touches[2]&&l.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=false;var p=l.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));s[0]=undefined;s[1]=undefined;s[2]=undefined;s[3]=undefined;s[4]=0;e.redrawHint("select",true);l.emit({type:"boxend",originalEvent:a,position:{x:v[0],y:v[1]}});var g=function e(t){return t.selectable()&&!t.selected()};p.emit("box").stdFilter(g).select().emit("boxselect");if(p.nonempty()){e.redrawHint("eles",true)}e.redraw()}if(i!=null){i.unactivate()}if(a.touches[2]){e.data.bgActivePosistion=undefined;e.redrawHint("select",true)}else if(a.touches[1]);else if(a.touches[0]);else if(!a.touches[0]){e.data.bgActivePosistion=undefined;e.redrawHint("select",true);var m=e.dragData.touchDragEles;if(i!=null){var b=i._private.grabbed;y(m);e.redrawHint("drag",true);e.redrawHint("eles",true);if(b){i.emit("freeon");m.emit("free");if(e.dragData.didDrag){i.emit("dragfreeon");m.emit("dragfree")}}n(i,["touchend","tapend","vmouseup","tapdragout"],a,{x:v[0],y:v[1]});i.unactivate();e.touchData.start=null}else{var x=e.findNearestElement(v[0],v[1],true,true);n(x,["touchend","tapend","vmouseup","tapdragout"],a,{x:v[0],y:v[1]})}var w=e.touchData.startPosition[0]-v[0];var E=w*w;var T=e.touchData.startPosition[1]-v[1];var k=T*T;var C=E+k;var P=C*u*u;if(!e.touchData.singleTouchMoved){if(!i){l.$(":selected").unselect(["tapunselect"])}n(i,["tap","vclick"],a,{x:v[0],y:v[1]});Q=false;if(a.timeStamp-ee<=l.multiClickDebounceTime()){J&&clearTimeout(J);Q=true;ee=null;n(i,["dbltap","vdblclick"],a,{x:v[0],y:v[1]})}else{J=setTimeout((function(){if(Q)return;n(i,["onetap","voneclick"],a,{x:v[0],y:v[1]})}),l.multiClickDebounceTime());ee=a.timeStamp}}if(i!=null&&!e.dragData.didDrag&&i._private.selectable&&P0){return p[0]}}return null};var h=Object.keys(c);for(var p=0;p0){return d}return aa(i,o,t,r,a,n,s,l)},checkPoint:function e(t,r,a,n,i,o,s,l){l=l==="auto"?Pa(n,i):l;var u=2*l;if(fa(t,r,this.points,o,s,n,i-u,[0,-1],a)){return true}if(fa(t,r,this.points,o,s,n-u,i,[0,-1],a)){return true}var v=n/2+2*a;var f=i/2+2*a;var c=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];if(va(t,r,c)){return true}if(ga(t,r,u,u,o+n/2-l,s+i/2-l,a)){return true}if(ga(t,r,u,u,o-n/2+l,s+i/2-l,a)){return true}return false}}};Qc.registerNodeShapes=function(){var e=this.nodeShapes={};var t=this;this.generateEllipse();this.generatePolygon("triangle",Ta(3,0));this.generateRoundPolygon("round-triangle",Ta(3,0));this.generatePolygon("rectangle",Ta(4,0));e["square"]=e["rectangle"];this.generateRoundRectangle();this.generateCutRectangle();this.generateBarrel();this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r);this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Ta(5,0));this.generateRoundPolygon("round-pentagon",Ta(5,0));this.generatePolygon("hexagon",Ta(6,0));this.generateRoundPolygon("round-hexagon",Ta(6,0));this.generatePolygon("heptagon",Ta(7,0));this.generateRoundPolygon("round-heptagon",Ta(7,0));this.generatePolygon("octagon",Ta(8,0));this.generateRoundPolygon("round-octagon",Ta(8,0));var a=new Array(20);{var n=Ca(5,0);var i=Ca(5,Math.PI/5);var o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=t.deqFastCost*g){break}}else{if(i){if(h>=t.deqCost*u||h>=t.deqAvgCost*l){break}}else if(p>=t.deqNoDrawCost*nd){break}}var y=t.deq(r,c,f);if(y.length>0){for(var m=0;m0){t.onDeqd(r,v);if(!i&&t.shouldRedraw(r,v,c,f)){n()}}};var o=t.priority||It;a.beforeRender(i,o(r))}}};var od=function(){function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:_t;o(this,e);this.idsByKey=new Zt;this.keyForId=new Zt;this.cachesByLvl=new Zt;this.lvls=[];this.getKey=t;this.doesEleInvalidateKey=r}return l(e,[{key:"getIdsFor",value:function e(t){if(t==null){Rt("Can not get id list for null key")}var r=this.idsByKey;var a=this.idsByKey.get(t);if(!a){a=new Jt;r.set(t,a)}return a}},{key:"addIdForKey",value:function e(t,r){if(t!=null){this.getIdsFor(t).add(r)}}},{key:"deleteIdForKey",value:function e(t,r){if(t!=null){this.getIdsFor(t)["delete"](r)}}},{key:"getNumberOfIdsForKey",value:function e(t){if(t==null){return 0}else{return this.getIdsFor(t).size}}},{key:"updateKeyMappingFor",value:function e(t){var r=t.id();var a=this.keyForId.get(r);var n=this.getKey(t);this.deleteIdForKey(a,r);this.addIdForKey(n,r);this.keyForId.set(r,n)}},{key:"deleteKeyMappingFor",value:function e(t){var r=t.id();var a=this.keyForId.get(r);this.deleteIdForKey(a,r);this.keyForId["delete"](r)}},{key:"keyHasChangedFor",value:function e(t){var r=t.id();var a=this.keyForId.get(r);var n=this.getKey(t);return a!==n}},{key:"isInvalid",value:function e(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function e(t){var r=this.cachesByLvl,a=this.lvls;var n=r.get(t);if(!n){n=new Zt;r.set(t,n);a.push(t)}return n}},{key:"getCache",value:function e(t,r){return this.getCachesAt(r).get(t)}},{key:"get",value:function e(t,r){var a=this.getKey(t);var n=this.getCache(a,r);if(n!=null){this.updateKeyMappingFor(t)}return n}},{key:"getForCachedKey",value:function e(t,r){var a=this.keyForId.get(t.id());var n=this.getCache(a,r);return n}},{key:"hasCache",value:function e(t,r){return this.getCachesAt(r).has(t)}},{key:"has",value:function e(t,r){var a=this.getKey(t);return this.hasCache(a,r)}},{key:"setCache",value:function e(t,r,a){a.key=t;this.getCachesAt(r).set(t,a)}},{key:"set",value:function e(t,r,a){var n=this.getKey(t);this.setCache(n,r,a);this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function e(t,r){this.getCachesAt(r)["delete"](t)}},{key:"delete",value:function e(t,r){var a=this.getKey(t);this.deleteCache(a,r)}},{key:"invalidateKey",value:function e(t){var r=this;this.lvls.forEach((function(e){return r.deleteCache(t,e)}))}},{key:"invalidate",value:function e(t){var r=t.id();var a=this.keyForId.get(r);this.deleteKeyMappingFor(t);var n=this.doesEleInvalidateKey(t);if(n){this.invalidateKey(a)}return n||this.getNumberOfIdsForKey(a)===0}}])}();var sd=25;var ld=50;var ud=-4;var vd=3;var fd=7.99;var cd=8;var dd=1024;var hd=1024;var pd=1024;var gd=.2;var yd=.8;var md=10;var bd=.15;var xd=.1;var wd=.9;var Ed=.9;var Td=100;var kd=1;var Cd={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"};var Pd=Yt({getKey:null,doesEleInvalidateKey:_t,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:At,allowEdgeTxrCaching:true,allowParentTxrCaching:true});var Sd=function e(t,r){var a=this;a.renderer=t;a.onDequeues=[];var n=Pd(r);se(a,n);a.lookup=new od(n.getKey,n.doesEleInvalidateKey);a.setupDequeueing()};var Dd=Sd.prototype;Dd.reasons=Cd;Dd.getTextureQueue=function(e){var t=this;t.eleImgCaches=t.eleImgCaches||{};return t.eleImgCaches[e]=t.eleImgCaches[e]||[]};Dd.getRetiredTextureQueue=function(e){var t=this;var r=t.eleImgCaches.retired=t.eleImgCaches.retired||{};var a=r[e]=r[e]||[];return a};Dd.getElementQueue=function(){var e=this;var t=e.eleCacheQueue=e.eleCacheQueue||new fr((function(e,t){return t.reqs-e.reqs}));return t};Dd.getElementKeyToQueue=function(){var e=this;var t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t};Dd.getElement=function(e,t,r,a,n){var i=this;var o=this.renderer;var s=o.cy.zoom();var l=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()){return null}if(!i.allowEdgeTxrCaching&&e.isEdge()||!i.allowParentTxrCaching&&e.isParent()){return null}if(a==null){a=Math.ceil(Nr(s*r))}if(a=fd||a>vd){return null}var u=Math.pow(2,a);var v=t.h*u;var f=t.w*u;var c=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,c)){return null}var d=l.get(e,a);if(d&&d.invalidated){d.invalidated=false;d.texture.invalidatedWidth-=d.width}if(d){return d}var h;if(v<=sd){h=sd}else if(v<=ld){h=ld}else{h=Math.ceil(v/ld)*ld}if(v>pd||f>hd){return null}var p=i.getTextureQueue(h);var g=p[p.length-2];var y=function e(){return i.recycleTexture(h,f)||i.addTexture(h,f)};if(!g){g=p[p.length-1]}if(!g){g=y()}if(g.width-g.usedWidtha;S--){C=i.getElement(e,t,r,S,Cd.downscale)}P()}else{i.queueElement(e,E.level-1);return E}}else{var D;if(!b&&!x&&!w){for(var B=a-1;B>=ud;B--){var A=l.get(e,B);if(A){D=A;break}}}if(m(D)){i.queueElement(e,a);return D}g.context.translate(g.usedWidth,0);g.context.scale(u,u);this.drawElement(g.context,e,t,c,false);g.context.scale(1/u,1/u);g.context.translate(-g.usedWidth,0)}d={x:g.usedWidth,texture:g,level:a,scale:u,width:f,height:v,scaledLabelShown:c};g.usedWidth+=Math.ceil(f+cd);g.eleCaches.push(d);l.set(e,a,d);i.checkTextureFullness(g);return d};Dd.invalidateElements=function(e){for(var t=0;t=gd*e.width){this.retireTexture(e)}};Dd.checkTextureFullness=function(e){var t=this;var r=t.getTextureQueue(e.height);if(e.usedWidth/e.width>yd&&e.fullnessChecks>=md){qt(r,e)}else{e.fullnessChecks++}};Dd.retireTexture=function(e){var t=this;var r=e.height;var a=t.getTextureQueue(r);var n=this.lookup;qt(a,e);e.retired=true;var i=e.eleCaches;for(var o=0;o=t){o.retired=false;o.usedWidth=0;o.invalidatedWidth=0;o.fullnessChecks=0;Wt(o.eleCaches);o.context.setTransform(1,0,0,1,0,0);o.context.clearRect(0,0,o.width,o.height);qt(n,o);a.push(o);return o}}};Dd.queueElement=function(e,t){var r=this;var a=r.getElementQueue();var n=r.getElementKeyToQueue();var i=this.getKey(e);var o=n[i];if(o){o.level=Math.max(o.level,t);o.eles.merge(e);o.reqs++;a.updateItem(o)}else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:i};a.push(s);n[i]=s}};Dd.dequeue=function(e){var t=this;var r=t.getElementQueue();var a=t.getElementKeyToQueue();var n=[];var i=t.lookup;for(var o=0;o0){var s=r.pop();var l=s.key;var u=s.eles[0];var v=i.hasCache(u,s.level);a[l]=null;if(v){continue}n.push(s);var f=t.getBoundingBox(u);t.getElement(u,f,e,s.level,Cd.dequeue)}else{break}}return n};Dd.removeFromQueue=function(e){var t=this;var r=t.getElementQueue();var a=t.getElementKeyToQueue();var n=this.getKey(e);var i=a[n];if(i!=null){if(i.eles.length===1){i.reqs=Bt;r.updateItem(i);r.pop();a[n]=null}else{i.eles.unmerge(e)}}};Dd.onDequeue=function(e){this.onDequeues.push(e)};Dd.offDequeue=function(e){qt(this.onDequeues,e)};Dd.setupDequeueing=id.setupDequeueing({deqRedrawThreshold:Td,deqCost:bd,deqAvgCost:xd,deqNoDrawCost:wd,deqFastCost:Ed,deq:function e(t,r,a){return t.dequeue(r,a)},onDeqd:function e(t,r){for(var a=0;a=Md||r>_d){return null}}a.validateLayersElesOrdering(r,e);var l=a.layersByLevel;var u=Math.pow(2,r);var v=l[r]=l[r]||[];var f;var c=a.levelIsComplete(r,e);var d;var h=function t(){var n=function t(r){a.validateLayersElesOrdering(r,e);if(a.levelIsComplete(r,e)){d=l[r];return true}};var i=function e(t){if(d){return}for(var a=r+t;Ad<=a&&a<=_d;a+=t){if(n(a)){break}}};i(1);i(-1);for(var o=v.length-1;o>=0;o--){var s=v[o];if(s.invalid){qt(v,s)}}};if(!c){h()}else{return v}var p=function t(){if(!f){f=qr();for(var r=0;rXd||o>Xd){return null}var s=i*o;if(s>jd){return null}var l=a.makeLayer(f,r);if(n!=null){var c=v.indexOf(n)+1;v.splice(c,0,l)}else if(t.insert===undefined||t.insert){v.unshift(l)}return l};if(a.skipping&&!s){return null}var y=null;var m=e.length/Bd;var b=!s;for(var x=0;x=m||!ra(y.bb,w.boundingBox())){y=g({insert:true,after:y});if(!y){return null}}if(d||b){a.queueLayer(y,w)}else{a.drawEleInLayer(y,w,r,t)}y.eles.push(w);T[r]=y}if(d){return d}if(b){return null}return v};Wd.getEleLevelForLayerLevel=function(e,t){return e};Wd.drawEleInLayer=function(e,t,r,a){var n=this;var i=this.renderer;var o=e.context;var s=t.boundingBox();if(s.w===0||s.h===0||!t.visible()){return}r=n.getEleLevelForLayerLevel(r,a);{i.setImgSmoothing(o,false)}{i.drawCachedElement(o,t,null,null,r,Yd)}{i.setImgSmoothing(o,true)}};Wd.levelIsComplete=function(e,t){var r=this;var a=r.layersByLevel[e];if(!a||a.length===0){return false}var n=0;for(var i=0;i0){return false}if(o.invalid){return false}n+=o.eles.length}if(n!==t.length){return false}return true};Wd.validateLayersElesOrdering=function(e,t){var r=this.layersByLevel[e];if(!r){return}for(var a=0;a0){t=true;break}}return t};Wd.invalidateElements=function(e){var t=this;if(e.length===0){return}t.lastInvalidationTime=ct();if(e.length===0||!t.haveLayers()){return}t.updateElementsInLayers(e,(function e(r,a,n){t.invalidateLayer(r)}))};Wd.invalidateLayer=function(e){this.lastInvalidationTime=ct();if(e.invalid){return}var t=e.level;var r=e.eles;var a=this.layersByLevel[t];qt(a,e);e.elesQueue=[];e.invalid=true;if(e.replacement){e.replacement.invalid=true}for(var n=0;n3&&arguments[3]!==undefined?arguments[3]:true;var n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:true;var o=this;var s=t._private.rscratch;if(i&&!t.visible()){return}if(s.badLine||s.allpts==null||isNaN(s.allpts[0])){return}var l;if(r){l=r;e.translate(-l.x1,-l.y1)}var u=i?t.pstyle("opacity").value:1;var v=i?t.pstyle("line-opacity").value:1;var f=t.pstyle("curve-style").value;var c=t.pstyle("line-style").value;var d=t.pstyle("width").pfValue;var h=t.pstyle("line-cap").value;var p=t.pstyle("line-outline-width").value;var g=t.pstyle("line-outline-color").value;var y=u*v;var m=u*v;var b=function r(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:y;if(f==="straight-triangle"){o.eleStrokeStyle(e,t,a);o.drawEdgeTrianglePath(t,e,s.allpts)}else{e.lineWidth=d;e.lineCap=h;o.eleStrokeStyle(e,t,a);o.drawEdgePath(t,e,s.allpts,c);e.lineCap="butt"}};var x=function r(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:y;e.lineWidth=d+p;e.lineCap=h;if(p>0){o.colorStrokeStyle(e,g[0],g[1],g[2],a)}else{e.lineCap="butt";return}if(f==="straight-triangle"){o.drawEdgeTrianglePath(t,e,s.allpts)}else{o.drawEdgePath(t,e,s.allpts,c);e.lineCap="butt"}};var w=function r(){if(!n){return}o.drawEdgeOverlay(e,t)};var E=function r(){if(!n){return}o.drawEdgeUnderlay(e,t)};var T=function r(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:m;o.drawArrowheads(e,t,a)};var k=function r(){o.drawElementText(e,t,null,a)};e.lineJoin="round";var C=t.pstyle("ghost").value==="yes";if(C){var P=t.pstyle("ghost-offset-x").pfValue;var S=t.pstyle("ghost-offset-y").pfValue;var D=t.pstyle("ghost-opacity").value;var B=y*D;e.translate(P,S);b(B);T(B);e.translate(-P,-S)}else{x()}E();b();T();w();k();if(r){e.translate(l.x1,l.y1)}};var uh=function e(t){if(!["overlay","underlay"].includes(t)){throw new Error("Invalid state")}return function(e,r){if(!r.visible()){return}var a=r.pstyle("".concat(t,"-opacity")).value;if(a===0){return}var n=this;var i=n.usePaths();var o=r._private.rscratch;var s=r.pstyle("".concat(t,"-padding")).pfValue;var l=2*s;var u=r.pstyle("".concat(t,"-color")).value;e.lineWidth=l;if(o.edgeType==="self"&&!i){e.lineCap="butt"}else{e.lineCap="round"}n.colorStrokeStyle(e,u[0],u[1],u[2],a);n.drawEdgePath(r,e,o.allpts,"solid")}};lh.drawEdgeOverlay=uh("overlay");lh.drawEdgeUnderlay=uh("underlay");lh.drawEdgePath=function(e,t,r,a){var n=e._private.rscratch;var i=t;var o;var s=false;var l=this.usePaths();var v=e.pstyle("line-dash-pattern").pfValue;var f=e.pstyle("line-dash-offset").pfValue;if(l){var c=r.join("$");var d=n.pathCacheKey&&n.pathCacheKey===c;if(d){o=t=n.pathCache;s=true}else{o=t=new Path2D;n.pathCacheKey=c;n.pathCache=o}}if(i.setLineDash){switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(v);i.lineDashOffset=f;break;case"solid":i.setLineDash([]);break}}if(!s&&!n.badLine){if(t.beginPath){t.beginPath()}t.moveTo(r[0],r[1]);switch(n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&arguments[5]!==undefined?arguments[5]:true;var o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(t)){return}}else if(a===false){return}if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value){return}var l=o.getLabelJustification(t);e.textAlign=l;e.textBaseline="bottom"}else{var u=t.element()._private.rscratch.badLine;var v=t.pstyle("label");var f=t.pstyle("source-label");var c=t.pstyle("target-label");if(u||(!v||!v.value)&&(!f||!f.value)&&(!c||!c.value)){return}e.textAlign="center";e.textBaseline="bottom"}var d=!r;var h;if(r){h=r;e.translate(-h.x1,-h.y1)}if(n==null){o.drawText(e,t,null,d,i);if(t.isEdge()){o.drawText(e,t,"source",d,i);o.drawText(e,t,"target",d,i)}}else{o.drawText(e,t,n,d,i)}if(r){e.translate(h.x1,h.y1)}};fh.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var r=0;r2&&arguments[2]!==undefined?arguments[2]:true;var a=t.pstyle("font-style").strValue;var n=t.pstyle("font-size").pfValue+"px";var i=t.pstyle("font-family").strValue;var o=t.pstyle("font-weight").strValue;var s=r?t.effectiveOpacity()*t.pstyle("text-opacity").value:1;var l=t.pstyle("text-outline-opacity").value*s;var u=t.pstyle("color").value;var v=t.pstyle("text-outline-color").value;e.font=a+" "+o+" "+n+" "+i;e.lineJoin="round";this.colorFillStyle(e,u[0],u[1],u[2],s);this.colorStrokeStyle(e,v[0],v[1],v[2],l)};function ch(e,t,r,a,n){var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:5;var o=arguments.length>6?arguments[6]:undefined;e.beginPath();e.moveTo(t+i,r);e.lineTo(t+a-i,r);e.quadraticCurveTo(t+a,r,t+a,r+i);e.lineTo(t+a,r+n-i);e.quadraticCurveTo(t+a,r+n,t+a-i,r+n);e.lineTo(t+i,r+n);e.quadraticCurveTo(t,r+n,t,r+n-i);e.lineTo(t,r+i);e.quadraticCurveTo(t,r,t+i,r);e.closePath();if(o)e.stroke();else e.fill()}fh.getTextAngle=function(e,t){var r;var a=e._private;var n=a.rscratch;var i=t?t+"-":"";var o=e.pstyle(i+"text-rotation");if(o.strValue==="autorotate"){var s=Gt(n,"labelAngle",t);r=e.isEdge()?s:0}else if(o.strValue==="none"){r=0}else{r=o.pfValue}return r};fh.drawText=function(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var i=t._private;var o=i.rscratch;var s=n?t.effectiveOpacity():1;if(n&&(s===0||t.pstyle("text-opacity").value===0)){return}if(r==="main"){r=null}var l=Gt(o,"labelX",r);var u=Gt(o,"labelY",r);var v,f;var c=this.getLabelText(t,r);if(c!=null&&c!==""&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(e,t,n);var d=r?r+"-":"";var h=Gt(o,"labelWidth",r);var p=Gt(o,"labelHeight",r);var g=t.pstyle(d+"text-margin-x").pfValue;var y=t.pstyle(d+"text-margin-y").pfValue;var m=t.isEdge();var b=t.pstyle("text-halign").value;var x=t.pstyle("text-valign").value;if(m){b="center";x="center"}l+=g;u+=y;var w;if(!a){w=0}else{w=this.getTextAngle(t,r)}if(w!==0){v=l;f=u;e.translate(v,f);e.rotate(w);l=0;u=0}switch(x){case"top":break;case"center":u+=p/2;break;case"bottom":u+=p;break}var E=t.pstyle("text-background-opacity").value;var T=t.pstyle("text-border-opacity").value;var k=t.pstyle("text-border-width").pfValue;var C=t.pstyle("text-background-padding").pfValue;var P=t.pstyle("text-background-shape").strValue;var S=P.indexOf("round")===0;var D=2;if(E>0||k>0&&T>0){var B=l-C;switch(b){case"left":B-=h;break;case"center":B-=h/2;break}var A=u-p-C;var _=h+2*C;var M=p+2*C;if(E>0){var I=e.fillStyle;var R=t.pstyle("text-background-color").value;e.fillStyle="rgba("+R[0]+","+R[1]+","+R[2]+","+E*s+")";if(S){ch(e,B,A,_,M,D)}else{e.fillRect(B,A,_,M)}e.fillStyle=I}if(k>0&&T>0){var N=e.strokeStyle;var L=e.lineWidth;var O=t.pstyle("text-border-color").value;var z=t.pstyle("text-border-style").value;e.strokeStyle="rgba("+O[0]+","+O[1]+","+O[2]+","+T*s+")";e.lineWidth=k;if(e.setLineDash){switch(z){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=k/4;e.setLineDash([]);break;case"solid":e.setLineDash([]);break}}if(S){ch(e,B,A,_,M,D,"stroke")}else{e.strokeRect(B,A,_,M)}if(z==="double"){var F=k/2;if(S){ch(e,B+F,A+F,_-F*2,M-F*2,D,"stroke")}else{e.strokeRect(B+F,A+F,_-F*2,M-F*2)}}if(e.setLineDash){e.setLineDash([])}e.lineWidth=L;e.strokeStyle=N}}var V=2*t.pstyle("text-outline-width").pfValue;if(V>0){e.lineWidth=V}if(t.pstyle("text-wrap").value==="wrap"){var j=Gt(o,"labelWrapCachedLines",r);var X=Gt(o,"labelLineHeight",r);var Y=h/2;var q=this.getLabelJustification(t);if(q==="auto");else if(b==="left"){if(q==="left"){l+=-h}else if(q==="center"){l+=-Y}}else if(b==="center"){if(q==="left"){l+=-Y}else if(q==="right"){l+=Y}}else if(b==="right"){if(q==="center"){l+=Y}else if(q==="right"){l+=h}}switch(x){case"top":u-=(j.length-1)*X;break;case"center":case"bottom":u-=(j.length-1)*X;break}for(var W=0;W0){e.strokeText(j[W],l,u)}e.fillText(j[W],l,u);u+=X}}else{if(V>0){e.strokeText(c,l,u)}e.fillText(c,l,u)}if(w!==0){e.rotate(-w);e.translate(-v,-f)}}};var dh={};dh.drawNode=function(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var i=arguments.length>5&&arguments[5]!==undefined?arguments[5]:true;var o=this;var s,l;var u=t._private;var v=u.rscratch;var f=t.position();if(!I(f.x)||!I(f.y)){return}if(i&&!t.visible()){return}var c=i?t.effectiveOpacity():1;var d=o.usePaths();var h;var p=false;var g=t.padding();s=t.width()+2*g;l=t.height()+2*g;var y;if(r){y=r;e.translate(-y.x1,-y.y1)}var m=t.pstyle("background-image");var b=m.value;var x=new Array(b.length);var w=new Array(b.length);var E=0;for(var T=0;T0&&arguments[0]!==undefined?arguments[0]:B;o.eleFillStyle(e,t,a)};var U=function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:z;o.colorStrokeStyle(e,A[0],A[1],A[2],r)};var G=function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:X;o.colorStrokeStyle(e,V[0],V[1],V[2],r)};var H=function e(t,r,a,n){var i=o.nodePathCache=o.nodePathCache||[];var s=kt(a==="polygon"?a+","+n.join(","):a,""+r,""+t,""+q);var l=i[s];var u;var f=false;if(l!=null){u=l;f=true;v.pathCache=u}else{u=new Path2D;i[s]=v.pathCache=u}return{path:u,cacheHit:f}};var K=t.pstyle("shape").strValue;var Z=t.pstyle("shape-polygon-points").pfValue;if(d){e.translate(f.x,f.y);var $=H(s,l,K,Z);h=$.path;p=$.cacheHit}var Q=function r(){if(!p){var a=f;if(d){a={x:0,y:0}}o.nodeShapes[o.getNodeShape(t)].draw(h||e,a.x,a.y,s,l,q,v)}if(d){e.fill(h)}else{e.fill()}};var J=function r(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var i=u.backgrounding;var s=0;for(var l=0;l0&&arguments[0]!==undefined?arguments[0]:false;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:c;if(o.hasPie(t)){o.drawPie(e,t,n);if(a){if(!d){o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,q,v)}}}};var te=function t(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:c;var a=(S>0?S:-S)*r;var n=S>0?0:255;if(S!==0){o.colorFillStyle(e,n,n,n,a);if(d){e.fill(h)}else{e.fill()}}};var re=function t(){if(D>0){e.lineWidth=D;e.lineCap=R;e.lineJoin=M;if(e.setLineDash){switch(_){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(L);e.lineDashOffset=O;break;case"solid":case"double":e.setLineDash([]);break}}if(N!=="center"){e.save();e.lineWidth*=2;if(N==="inside"){d?e.clip(h):e.clip()}else{var r=new Path2D;r.rect(-s/2-D,-l/2-D,s+2*D,l+2*D);r.addPath(h);e.clip(r,"evenodd")}d?e.stroke(h):e.stroke();e.restore()}else{d?e.stroke(h):e.stroke()}if(_==="double"){e.lineWidth=D/3;var a=e.globalCompositeOperation;e.globalCompositeOperation="destination-out";if(d){e.stroke(h)}else{e.stroke()}e.globalCompositeOperation=a}if(e.setLineDash){e.setLineDash([])}}};var ae=function r(){if(F>0){e.lineWidth=F;e.lineCap="butt";if(e.setLineDash){switch(j){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}}var a=f;if(d){a={x:0,y:0}}var n=o.getNodeShape(t);var i=D;if(N==="inside")i=0;if(N==="outside")i*=2;var u=(s+i+(F+Y))/s;var v=(l+i+(F+Y))/l;var c=s*u;var h=l*v;var p=o.nodeShapes[n].points;var g;if(d){var y=H(c,h,n,p);g=y.path}if(n==="ellipse"){o.drawEllipsePath(g||e,a.x,a.y,c,h)}else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(n)){var m=0;var b=0;var x=0;if(n==="round-diamond"){m=(i+Y+F)*1.4}else if(n==="round-heptagon"){m=(i+Y+F)*1.075;x=-(i/2+Y+F)/35}else if(n==="round-hexagon"){m=(i+Y+F)*1.12}else if(n==="round-pentagon"){m=(i+Y+F)*1.13;x=-(i/2+Y+F)/15}else if(n==="round-tag"){m=(i+Y+F)*1.12;b=(i/2+F+Y)*.07}else if(n==="round-triangle"){m=(i+Y+F)*(Math.PI/2);x=-(i+Y/2+F)/Math.PI}if(m!==0){u=(s+m)/s;c=s*u;if(!["round-hexagon","round-tag"].includes(n)){v=(l+m)/l;h=l*v}}q=q==="auto"?Sa(c,h):q;var w=c/2;var E=h/2;var T=q+(i+F+Y)/2;var k=new Array(p.length/2);var C=new Array(p.length/2);for(var P=0;P0){a=a||r.position();if(n==null||i==null){var c=r.padding();n=r.width()+2*c;i=r.height()+2*c}o.colorFillStyle(e,u[0],u[1],u[2],l);o.nodeShapes[v].draw(e,a.x,a.y,n+s*2,i+s*2,f);e.fill()}}};dh.drawNodeOverlay=hh("overlay");dh.drawNodeUnderlay=hh("underlay");dh.hasPie=function(e){e=e[0];return e._private.hasPie};dh.drawPie=function(e,t,r,a){t=t[0];a=a||t.position();var n=t.cy().style();var i=t.pstyle("pie-size");var o=a.x;var s=a.y;var l=t.width();var u=t.height();var v=Math.min(l,u)/2;var f=0;var c=this.usePaths();if(c){o=0;s=0}if(i.units==="%"){v=v*i.pfValue}else if(i.pfValue!==undefined){v=i.pfValue/2}for(var d=1;d<=n.pieBackgroundN;d++){var h=t.pstyle("pie-"+d+"-background-size").value;var p=t.pstyle("pie-"+d+"-background-color").value;var g=t.pstyle("pie-"+d+"-background-opacity").value*r;var y=h/100;if(y+f>1){y=1-f}var m=1.5*Math.PI+2*Math.PI*f;var b=2*Math.PI*y;var x=m+b;if(h===0||f>=1||f+y>1){continue}e.beginPath();e.moveTo(o,s);e.arc(o,s,v,m,x);e.closePath();this.colorFillStyle(e,p[0],p[1],p[2],g);e.fill();f+=y}};var ph={};var gh=100;ph.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null){return this.forcedPixelRatio}var t=this.cy.window();var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/r};ph.paintCache=function(e){var t=this.paintCaches=this.paintCaches||[];var r=true;var a;for(var n=0;nt.minMbLowQualFrames){t.motionBlurPxRatio=t.mbPxRBlurry}}if(t.clearingMotionBlur){t.motionBlurPxRatio=1}if(t.textureDrawLastFrame&&!f){v[t.NODE]=true;v[t.SELECT_BOX]=true}var m=r.style();var b=r.zoom();var x=o!==undefined?o:b;var w=r.pan();var E={x:w.x,y:w.y};var T={zoom:b,pan:{x:w.x,y:w.y}};var k=t.prevViewport;var C=k===undefined||T.zoom!==k.zoom||T.pan.x!==k.pan.x||T.pan.y!==k.pan.y;if(!C&&!(p&&!h)){t.motionBlurPxRatio=1}if(s){E=s}x*=l;E.x*=l;E.y*=l;var P=t.getCachedZSortedEles();function S(e,r,a,n,i){var o=e.globalCompositeOperation;e.globalCompositeOperation="destination-out";t.colorFillStyle(e,255,255,255,t.motionBlurTransparency);e.fillRect(r,a,n,i);e.globalCompositeOperation=o}function D(e,r){var i,l,v,f;if(!t.clearingMotionBlur&&(e===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])){i={x:w.x*d,y:w.y*d};l=b*d;v=t.canvasWidth*d;f=t.canvasHeight*d}else{i=E;l=x;v=t.canvasWidth;f=t.canvasHeight}e.setTransform(1,0,0,1,0,0);if(r==="motionBlur"){S(e,0,0,v,f)}else if(!a&&(r===undefined||r)){e.clearRect(0,0,v,f)}if(!n){e.translate(i.x,i.y);e.scale(l,l)}if(s){e.translate(s.x,s.y)}if(o){e.scale(o,o)}}if(!f){t.textureDrawLastFrame=false}if(f){t.textureDrawLastFrame=true;if(!t.textureCache){t.textureCache={};t.textureCache.bb=r.mutableElements().boundingBox();t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var B=t.data.bufferContexts[t.TEXTURE_BUFFER];B.setTransform(1,0,0,1,0,0);B.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult);t.render({forcedContext:B,drawOnlyNodeLayer:true,forcedPxRatio:l*t.textureMult});var T=t.textureCache.viewport={zoom:r.zoom(),pan:r.pan(),width:t.canvasWidth,height:t.canvasHeight};T.mpan={x:(0-T.pan.x)/T.zoom,y:(0-T.pan.y)/T.zoom}}v[t.DRAG]=false;v[t.NODE]=false;var A=u.contexts[t.NODE];var _=t.textureCache.texture;var T=t.textureCache.viewport;A.setTransform(1,0,0,1,0,0);if(c){S(A,0,0,T.width,T.height)}else{A.clearRect(0,0,T.width,T.height)}var M=m.core("outside-texture-bg-color").value;var I=m.core("outside-texture-bg-opacity").value;t.colorFillStyle(A,M[0],M[1],M[2],I);A.fillRect(0,0,T.width,T.height);var b=r.zoom();D(A,false);A.clearRect(T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l);A.drawImage(_,T.mpan.x,T.mpan.y,T.width/T.zoom/l,T.height/T.zoom/l)}else if(t.textureOnViewport&&!a){t.textureCache=null}var R=r.extent();var N=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated();var L=t.hideEdgesOnViewport&&N;var O=[];O[t.NODE]=!v[t.NODE]&&c&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur;if(O[t.NODE]){t.clearedForMotionBlur[t.NODE]=true}O[t.DRAG]=!v[t.DRAG]&&c&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur;if(O[t.DRAG]){t.clearedForMotionBlur[t.DRAG]=true}if(v[t.NODE]||n||i||O[t.NODE]){var z=c&&!O[t.NODE]&&d!==1;var A=a||(z?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);var F=c&&!z?"motionBlur":undefined;D(A,F);if(L){t.drawCachedNodes(A,P.nondrag,l,R)}else{t.drawLayeredElements(A,P.nondrag,l,R)}if(t.debug){t.drawDebugPoints(A,P.nondrag)}if(!n&&!c){v[t.NODE]=false}}if(!i&&(v[t.DRAG]||n||O[t.DRAG])){var z=c&&!O[t.DRAG]&&d!==1;var A=a||(z?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);D(A,c&&!z?"motionBlur":undefined);if(L){t.drawCachedNodes(A,P.drag,l,R)}else{t.drawCachedElements(A,P.drag,l,R)}if(t.debug){t.drawDebugPoints(A,P.drag)}if(!n&&!c){v[t.DRAG]=false}}this.drawSelectionRectangle(e,D);if(c&&d!==1){var V=u.contexts[t.NODE];var j=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE];var X=u.contexts[t.DRAG];var Y=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG];var q=function e(r,a,n){r.setTransform(1,0,0,1,0,0);if(n||!y){r.clearRect(0,0,t.canvasWidth,t.canvasHeight)}else{S(r,0,0,t.canvasWidth,t.canvasHeight)}var i=d;r.drawImage(a,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};if(v[t.NODE]||O[t.NODE]){q(V,j,O[t.NODE]);v[t.NODE]=false}if(v[t.DRAG]||O[t.DRAG]){q(X,Y,O[t.DRAG]);v[t.DRAG]=false}}t.prevViewport=T;if(t.clearingMotionBlur){t.clearingMotionBlur=false;t.motionBlurCleared=true;t.motionBlur=true}if(c){t.motionBlurTimeout=setTimeout((function(){t.motionBlurTimeout=null;t.clearedForMotionBlur[t.NODE]=false;t.clearedForMotionBlur[t.DRAG]=false;t.motionBlur=false;t.clearingMotionBlur=!f;t.mbFrames=0;v[t.NODE]=true;v[t.DRAG]=true;t.redraw()}),gh)}if(!a){r.emit("render")}};var yh;ph.drawSelectionRectangle=function(e,t){var r=this;var a=r.cy;var n=r.data;var i=a.style();var o=e.drawOnlyNodeLayer;var s=e.drawAllLayers;var l=n.canvasNeedsRedraw;var u=e.forcedContext;if(r.showFps||!o&&l[r.SELECT_BOX]&&!s){var v=u||n.contexts[r.SELECT_BOX];t(v);if(r.selection[4]==1&&(r.hoverData.selecting||r.touchData.selecting)){var f=r.cy.zoom();var c=i.core("selection-box-border-width").value/f;v.lineWidth=c;v.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.core("selection-box-opacity").value+")";v.fillRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1]);if(c>0){v.strokeStyle="rgba("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.core("selection-box-opacity").value+")";v.strokeRect(r.selection[0],r.selection[1],r.selection[2]-r.selection[0],r.selection[3]-r.selection[1])}}if(n.bgActivePosistion&&!r.hoverData.selecting){var f=r.cy.zoom();var d=n.bgActivePosistion;v.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")";v.beginPath();v.arc(d.x,d.y,i.core("active-bg-size").pfValue/f,0,2*Math.PI);v.fill()}var h=r.lastRedrawTime;if(r.showFps&&h){h=Math.round(h);var p=Math.round(1e3/h);var g="1 frame = "+h+" ms = "+p+" fps";v.setTransform(1,0,0,1,0,0);v.fillStyle="rgba(255, 0, 0, 0.75)";v.strokeStyle="rgba(255, 0, 0, 0.75)";v.font="30px Arial";if(!yh){var y=v.measureText(g);yh=y.actualBoundingBoxAscent}v.fillText(g,0,yh);var m=60;v.strokeRect(0,yh+10,250,20);v.fillRect(0,yh+10,250*Math.min(p/m,1),20)}if(!s){l[r.SELECT_BOX]=false}}};function mh(e,t,r){var a=e.createShader(t);e.shaderSource(a,r);e.compileShader(a);if(!e.getShaderParameter(a,e.COMPILE_STATUS)){throw new Error(e.getShaderInfoLog(a))}return a}function bh(e,t,r){var a=mh(e,e.VERTEX_SHADER,t);var n=mh(e,e.FRAGMENT_SHADER,r);var i=e.createProgram();e.attachShader(i,a);e.attachShader(i,n);e.linkProgram(i);if(!e.getProgramParameter(i,e.LINK_STATUS)){throw new Error("Could not initialize shaders")}return i}function xh(e,t,r){if(r===undefined){r=t}var a=e.makeOffscreenCanvas(t,r);var n=a.context=a.getContext("2d");a.clear=function(){return n.clearRect(0,0,a.width,a.height)};a.clear();return a}function wh(e){var t=e.pixelRatio;var r=e.cy.zoom();var a=e.cy.pan();return{zoom:r*t,pan:{x:a.x*t,y:a.y*t}}}function Eh(e,t,r,a,n){var i=a*r+t.x;var o=n*r+t.y;o=Math.round(e.canvasHeight-o);return[i,o]}function Th(e,t,r){var a=e[0]/255;var n=e[1]/255;var i=e[2]/255;var o=t;var s=r||new Array(4);s[0]=a*o;s[1]=n*o;s[2]=i*o;s[3]=o;return s}function kh(e,t){var r=t||new Array(4);r[0]=(e>>0&255)/255;r[1]=(e>>8&255)/255;r[2]=(e>>16&255)/255;r[3]=(e>>24&255)/255;return r}function Ch(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function Ph(e,t){var r=e.createTexture();r.buffer=function(t){e.bindTexture(e.TEXTURE_2D,r);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,true);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t);e.generateMipmap(e.TEXTURE_2D);e.bindTexture(e.TEXTURE_2D,null)};r.deleteTexture=function(){e.deleteTexture(r)};return r}function Sh(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function Dh(e,t,r){switch(t){case e.FLOAT:return new Float32Array(r);case e.INT:return new Int32Array(r)}}function Bh(e,t,r,a,n,i){switch(t){case e.FLOAT:return new Float32Array(r.buffer,i*a,n);case e.INT:return new Int32Array(r.buffer,i*a,n)}}function Ah(e,t,r,a){var n=Sh(e,t),i=p(n,2),o=i[0],s=i[1];var l=Dh(e,s,a);var u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u);e.bufferData(e.ARRAY_BUFFER,l,e.STATIC_DRAW);if(s===e.FLOAT){e.vertexAttribPointer(r,o,s,false,0,0)}else if(s===e.INT){e.vertexAttribIPointer(r,o,s,0,0)}e.enableVertexAttribArray(r);e.bindBuffer(e.ARRAY_BUFFER,null);return u}function _h(e,t,r,a){var n=Sh(e,r),i=p(n,3),o=i[0],s=i[1],l=i[2];var u=Dh(e,s,t*o);var v=o*l;var f=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,f);e.bufferData(e.ARRAY_BUFFER,t*v,e.DYNAMIC_DRAW);e.enableVertexAttribArray(a);if(s===e.FLOAT){e.vertexAttribPointer(a,o,s,false,v,0)}else if(s===e.INT){e.vertexAttribIPointer(a,o,s,v,0)}e.vertexAttribDivisor(a,1);e.bindBuffer(e.ARRAY_BUFFER,null);var c=new Array(t);for(var d=0;di){o=i/r;s=r*o;l=a*o}return{scale:o,texW:s,texH:l}}},{key:"draw",value:function e(t,r,a){var n=this;if(this.locked)throw new Error("can't draw, atlas is locked");var i=this.texSize,o=this.texRows,s=this.texHeight;var l=this.getScale(r),u=l.scale,v=l.texW,f=l.texH;var c=[null,null];var d=function e(t,n){if(a&&n){var i=n.context;var o=t.x,l=t.row;var v=o;var f=s*l;i.save();i.translate(v,f);i.scale(u,u);a(i,r);i.restore()}};var h=function e(){d(n.freePointer,n.canvas);c[0]={x:n.freePointer.x,y:n.freePointer.row*s,w:v,h:f};c[1]={x:n.freePointer.x+v,y:n.freePointer.row*s,w:0,h:f};n.freePointer.x+=v;if(n.freePointer.x==i){n.freePointer.x=0;n.freePointer.row++}};var p=function e(){var t=n.scratch,r=n.canvas;t.clear();d({x:0,row:0},t);var a=i-n.freePointer.x;var o=v-a;var l=s;{var u=n.freePointer.x;var h=n.freePointer.row*s;var p=a;r.context.drawImage(t,0,0,p,l,u,h,p,l);c[0]={x:u,y:h,w:p,h:f}}{var g=a;var y=(n.freePointer.row+1)*s;var m=o;if(r){r.context.drawImage(t,g,0,m,l,0,y,m,l)}c[1]={x:0,y,w:m,h:f}}n.freePointer.x=o;n.freePointer.row++};var g=function e(){n.freePointer.x=0;n.freePointer.row++};if(this.freePointer.x+v<=i){h()}else if(this.freePointer.row>=o-1){return false}else if(this.freePointer.x===i){g();h()}else if(this.enableWrapping){p()}else{g();h()}this.keyToLocation.set(t,c);this.needsBuffer=true;return c}},{key:"getOffsets",value:function e(t){return this.keyToLocation.get(t)}},{key:"isEmpty",value:function e(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function e(t){if(this.locked)return false;var r=this.texSize,a=this.texRows;var n=this.getScale(t),i=n.texW;if(this.freePointer.x+i>r){return this.freePointer.row1&&arguments[1]!==undefined?arguments[1]:{},a=r.forceRedraw,n=a===undefined?false:a,i=r.filterEle,o=i===undefined?function(){return true}:i,s=r.filterType,l=s===undefined?function(){return true}:s;var v=false;var f=false;var c=u(t),d;try{for(c.s();!(d=c.n()).done;){var h=d.value;if(o(h)){var p=u(this.renderTypes.values()),g;try{for(p.s();!(g=p.n()).done;){var y=g.value;var m=y.type;if(l(m)){var b=y.getKey(h);var x=this.collections.get(y.collection);if(n){x.markKeyForGC(b);f=true}else{var w=y.getID?y.getID(h):h.id();var E=this._key(m,w);var T=this.typeAndIdToKey.get(E);if(T!==undefined&&T!==b){this.typeAndIdToKey["delete"](E);x.markKeyForGC(T);v=true}}}}}catch(k){p.e(k)}finally{p.f()}}}}catch(k){c.e(k)}finally{c.f()}if(f){this.gc();v=false}return v}},{key:"gc",value:function e(){var t=u(this.collections.values()),r;try{for(t.s();!(r=t.n()).done;){var a=r.value;a.gc()}}catch(n){t.e(n)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function e(t,r,a){var n=this.renderTypes.get(r);var i=n.getKey(t);if(!a)a=n.getBoundingBox(t);var o=this.collections.get(n.collection);var s=false;var l=o.draw(i,a,(function(e){n.drawElement(e,t,a,true,true);s=true}));if(s){var u=n.getID?n.getID(t):t.id();var v=this._key(r,u);this.typeAndIdToKey.set(v,i)}return l}},{key:"startBatch",value:function e(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function e(){return this.batchAtlases.length}},{key:"getAtlases",value:function e(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function e(t,r){if(this.batchAtlases.length===this.maxAtlasesPerBatch){var a=this.renderTypes.get(r);var n=a.getKey(t);var i=this.collections.get(a.collection);var o=i.getAtlas(n);return Boolean(o)&&this.batchAtlases.includes(o)}return true}},{key:"getAtlasIndexForBatch",value:function e(t){var r=this.batchAtlases.indexOf(t);if(r<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch){return}this.batchAtlases.push(t);r=this.batchAtlases.length-1}return r}},{key:"getIndexArray",value:function e(){return Array.from({length:this.maxAtlasesPerBatch},(function(e,t){return t}))}},{key:"getAtlasInfo",value:function e(t,r){var a=this.renderTypes.get(r);var n=a.getBoundingBox(t);var i=this.getOrCreateAtlas(t,r,n);var o=this.getAtlasIndexForBatch(i);if(o===undefined){return undefined}var s=a.getKey(t);var l=i.getOffsets(s),u=p(l,2),v=u[0],f=u[1];return{index:o,tex1:v,tex2:f,bb:n}}},{key:"setTransformMatrix",value:function e(t,r,a,n){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var o=this.getRenderTypeOpts(a);var s=o.getPadding?o.getPadding(t):0;if(n){var l=n.bb,u=n.tex1,v=n.tex2;var f=u.w/(u.w+v.w);if(!i){f=1-f}var c=this.getAdjustedBB(l,s,i,f);this._applyTransformMatrix(r,c,o,t)}else{var d=o.getBoundingBox(t);var h=this.getAdjustedBB(d,s,true,1);this._applyTransformMatrix(r,h,o,t)}}},{key:"_applyTransformMatrix",value:function e(t,r,a,n){var i,o;Lh(t);var s=a.getRotation?a.getRotation(n):0;if(s!==0){var l=a.getRotationPoint(n),u=l.x,v=l.y;zh(t,t,[u,v]);Fh(t,t,s);var f=a.getRotationOffset(n);i=f.x+r.xOffset;o=f.y}else{i=r.x1;o=r.y1}zh(t,t,[i,o]);Vh(t,t,[r.w,r.h])}},{key:"getAdjustedBB",value:function e(t,r,a,n){var i=t.x1,o=t.y1,s=t.w,l=t.h;if(r){i-=r;o-=r;s+=2*r;l+=2*r}var u=0;var v=s*n;if(a&&n<1){s=v}else if(!a&&n<1){u=s-v;i+=u;s=v}return{x1:i,y1:o,w:s,h:l,xOffset:u}}},{key:"getDebugInfo",value:function e(){var t=[];var r=u(this.collections),a;try{for(r.s();!(a=r.n()).done;){var n=p(a.value,2),i=n[0],o=n[1];var s=o.getCounts(),l=s.keyCount,v=s.atlasCount;t.push({type:i,keyCount:l,atlasCount:v})}}catch(f){r.e(f)}finally{r.f()}return t}}])}();var Kh=0;var Zh=1;var $h=2;var Qh=3;var Jh=4;var ep=function(){function e(t,r,a){o(this,e);this.r=t;this.gl=r;this.maxInstances=a.webglBatchSize;this.atlasSize=a.webglTexSize;this.bgColor=a.bgColor;this.debug=a.webglDebug;this.batchDebugInfo=[];a.enableWrapping=true;a.createTextureCanvas=xh;this.atlasManager=new Hh(t,a);this.program=this.createShaderProgram(Xh.SCREEN);this.pickingProgram=this.createShaderProgram(Xh.PICKING);this.vao=this.createVAO()}return l(e,[{key:"addAtlasCollection",value:function e(t,r){this.atlasManager.addAtlasCollection(t,r)}},{key:"addAtlasRenderType",value:function e(t,r){this.atlasManager.addRenderType(t,r)}},{key:"invalidate",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},a=r.type;var n=this.atlasManager;if(a){return n.invalidate(t,{filterType:function e(t){return t===a},forceRedraw:true})}else{return n.invalidate(t)}}},{key:"gc",value:function e(){this.atlasManager.gc()}},{key:"createShaderProgram",value:function e(t){var r=this.gl;var a="#version 300 es\n precision highp float;\n\n uniform mat3 uPanZoomMatrix;\n uniform int uAtlasSize;\n \n // instanced\n in vec2 aPosition; \n\n in mat3 aTransform;\n\n // what are we rendering?\n in int aVertType;\n\n // for picking\n in vec4 aIndex;\n \n // For textures\n in int aAtlasId; // which shader unit/atlas to use\n in vec4 aTex; // x/y/w/h of texture in atlas\n\n // for edges\n in vec4 aPointAPointB;\n in vec4 aPointCPointD;\n in float aLineWidth;\n in vec4 aColor;\n\n out vec2 vTexCoord;\n out vec4 vColor;\n flat out int vAtlasId;\n flat out vec4 vIndex;\n flat out int vVertType;\n\n void main(void) {\n int vid = gl_VertexID;\n vec2 position = aPosition;\n\n if(aVertType == ".concat(Kh,") {\n float texX = aTex.x;\n float texY = aTex.y;\n float texW = aTex.z;\n float texH = aTex.w;\n\n int vid = gl_VertexID;\n\n if(vid == 1 || vid == 2 || vid == 4) {\n texX += texW;\n }\n if(vid == 2 || vid == 4 || vid == 5) {\n texY += texH;\n }\n\n float d = float(uAtlasSize);\n vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n }\n else if(aVertType == ").concat(Jh,") {\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n vColor = aColor;\n }\n else if(aVertType == ").concat(Zh,") {\n vec2 source = aPointAPointB.xy;\n vec2 target = aPointAPointB.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n vec2 xBasis = target - source;\n vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));\n vec2 point = source + xBasis * position.x + yBasis * aLineWidth * position.y;\n\n gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);\n vColor = aColor;\n } \n else if(aVertType == ").concat($h,") {\n vec2 pointA = aPointAPointB.xy;\n vec2 pointB = aPointAPointB.zw;\n vec2 pointC = aPointCPointD.xy;\n vec2 pointD = aPointCPointD.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n vec2 p0 = pointA;\n vec2 p1 = pointB;\n vec2 p2 = pointC;\n vec2 pos = position;\n if(position.x == 1.0) {\n p0 = pointD;\n p1 = pointC;\n p2 = pointB;\n pos = vec2(0.0, -position.y);\n }\n\n vec2 p01 = p1 - p0;\n vec2 p12 = p2 - p1;\n vec2 p21 = p1 - p2;\n\n // Find the normal vector.\n vec2 tangent = normalize(normalize(p12) + normalize(p01));\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n // Find the vector perpendicular to p0 -> p1.\n vec2 p01Norm = normalize(vec2(-p01.y, p01.x));\n\n // Determine the bend direction.\n float sigma = sign(dot(p01 + p21, normal));\n float width = aLineWidth;\n\n if(sign(pos.y) == -sigma) {\n // This is an intersecting vertex. Adjust the position so that there's no overlap.\n vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n } else {\n // This is a non-intersecting vertex. Treat it like a mitre join.\n vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n }\n\n vColor = aColor;\n } \n else if(aVertType == ").concat(Qh," && vid < 3) {\n // massage the first triangle into an edge arrow\n if(vid == 0)\n position = vec2(-0.15, -0.3);\n if(vid == 1)\n position = vec2( 0.0, 0.0);\n if(vid == 2)\n position = vec2( 0.15, -0.3);\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n vColor = aColor;\n }\n else {\n gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space\n }\n\n vAtlasId = aAtlasId;\n vIndex = aIndex;\n vVertType = aVertType;\n }\n ");var n=this.atlasManager.getIndexArray();var i="#version 300 es\n precision highp float;\n\n // define texture unit for each node in the batch\n ".concat(n.map((function(e){return"uniform sampler2D uTexture".concat(e,";")})).join("\n\t"),"\n\n uniform vec4 uBGColor;\n\n in vec2 vTexCoord;\n in vec4 vColor;\n flat in int vAtlasId;\n flat in vec4 vIndex;\n flat in int vVertType;\n\n out vec4 outColor;\n\n void main(void) {\n if(vVertType == ").concat(Kh,") {\n ").concat(n.map((function(e){return"if(vAtlasId == ".concat(e,") outColor = texture(uTexture").concat(e,", vTexCoord);")})).join("\n\telse "),"\n } else if(vVertType == ").concat(Qh,") {\n // blend arrow color with background (using premultiplied alpha)\n outColor.rgb = vColor.rgb + (uBGColor.rgb * (1.0 - vColor.a)); \n outColor.a = 1.0; // make opaque, masks out line under arrow\n } else {\n outColor = vColor;\n }\n\n ").concat(t.picking?"if(outColor.a == 0.0) discard;\n else outColor = vIndex;":"","\n }\n ");var o=bh(r,a,i);o.aPosition=r.getAttribLocation(o,"aPosition");o.aIndex=r.getAttribLocation(o,"aIndex");o.aVertType=r.getAttribLocation(o,"aVertType");o.aTransform=r.getAttribLocation(o,"aTransform");o.aAtlasId=r.getAttribLocation(o,"aAtlasId");o.aTex=r.getAttribLocation(o,"aTex");o.aPointAPointB=r.getAttribLocation(o,"aPointAPointB");o.aPointCPointD=r.getAttribLocation(o,"aPointCPointD");o.aLineWidth=r.getAttribLocation(o,"aLineWidth");o.aColor=r.getAttribLocation(o,"aColor");o.uPanZoomMatrix=r.getUniformLocation(o,"uPanZoomMatrix");o.uAtlasSize=r.getUniformLocation(o,"uAtlasSize");o.uBGColor=r.getUniformLocation(o,"uBGColor");o.uTextures=[];for(var s=0;s1&&arguments[1]!==undefined?arguments[1]:Xh.SCREEN;this.panZoomMatrix=t;this.renderTarget=r;this.batchDebugInfo=[];this.wrappedCount=0;this.rectangleCount=0;this.startBatch()}},{key:"startBatch",value:function e(){this.instanceCount=0;this.atlasManager.startBatch()}},{key:"endFrame",value:function e(){this.endBatch()}},{key:"getTempMatrix",value:function e(){return this.tempMatrix=this.tempMatrix||Nh()}},{key:"drawTexture",value:function e(t,r,a){var n=this.atlasManager;if(!t.visible()){return}if(!n.getRenderTypeOpts(a).isVisible(t)){return}if(!n.canAddToCurrentBatch(t,a)){this.endBatch()}if(this.instanceCount+1>=this.maxInstances){this.endBatch()}var i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=Kh;var o=this.indexBuffer.getView(i);kh(r,o);var s=n.getAtlasInfo(t,a);var l=s.index,u=s.tex1,v=s.tex2;if(v.w>0)this.wrappedCount++;var f=true;for(var c=0,d=[u,v];c=this.maxInstances){this.endBatch()}}},{key:"drawSimpleRectangle",value:function e(t,r,a){if(!t.visible()){return}var n=this.atlasManager;var i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=Jh;var o=this.indexBuffer.getView(i);kh(r,o);var s=t.pstyle("background-color").value;var l=t.pstyle("background-opacity").value;var u=this.colorBuffer.getView(i);Th(s,l,u);var v=this.transformBuffer.getMatrixView(i);n.setTransformMatrix(t,v,a);this.rectangleCount++;this.instanceCount++;if(this.instanceCount>=this.maxInstances){this.endBatch()}}},{key:"drawEdgeArrow",value:function e(t,r,a){if(!t.visible()){return}var n=t._private.rscratch;var i,o,s;if(a==="source"){i=n.arrowStartX;o=n.arrowStartY;s=n.srcArrowAngle}else{i=n.arrowEndX;o=n.arrowEndY;s=n.tgtArrowAngle}if(isNaN(i)||i==null||isNaN(o)||o==null||isNaN(s)||s==null){return}var l=t.pstyle(a+"-arrow-shape").value;if(l==="none"){return}var u=t.pstyle(a+"-arrow-color").value;var v=t.pstyle("opacity").value;var f=t.pstyle("line-opacity").value;var c=v*f;var d=t.pstyle("width").pfValue;var h=t.pstyle("arrow-scale").value;var p=this.r.getArrowWidth(d,h);var g=this.instanceCount;var y=this.transformBuffer.getMatrixView(g);Lh(y);zh(y,y,[i,o]);Vh(y,y,[p,p]);Fh(y,y,s);this.vertTypeBuffer.getView(g)[0]=Qh;var m=this.indexBuffer.getView(g);kh(r,m);var b=this.colorBuffer.getView(g);Th(u,c,b);this.instanceCount++;if(this.instanceCount>=this.maxInstances){this.endBatch()}}},{key:"drawEdgeLine",value:function e(t,r){if(!t.visible()){return}var a=this.getEdgePoints(t);if(!a){return}var n=t.pstyle("opacity").value;var i=t.pstyle("line-opacity").value;var o=t.pstyle("width").pfValue;var s=t.pstyle("line-color").value;var l=n*i;if(a.length/2+this.instanceCount>this.maxInstances){this.endBatch()}if(a.length==4){var u=this.instanceCount;this.vertTypeBuffer.getView(u)[0]=Zh;var v=this.indexBuffer.getView(u);kh(r,v);var f=this.colorBuffer.getView(u);Th(s,l,f);var c=this.lineWidthBuffer.getView(u);c[0]=o;var d=this.pointAPointBBuffer.getView(u);d[0]=a[0];d[1]=a[1];d[2]=a[2];d[3]=a[3];this.instanceCount++;if(this.instanceCount>=this.maxInstances){this.endBatch()}}else{for(var h=0;h=this.maxInstances){this.endBatch()}}}}},{key:"getEdgePoints",value:function e(t){var r=t._private.rscratch;if(r.badLine||r.allpts==null||isNaN(r.allpts[0])){return}var a=r.allpts;if(a.length==4){return a}var n=this.getNumSegments(t);return this.getCurveSegmentPoints(a,n)}},{key:"getNumSegments",value:function e(t){var r=15;return Math.min(Math.max(r,5),this.maxInstances)}},{key:"getCurveSegmentPoints",value:function e(t,r){if(t.length==4){return t}var a=Array((r+1)*2);for(var n=0;n<=r;n++){if(n==0){a[0]=t[0];a[1]=t[1]}else if(n==r){a[n*2]=t[t.length-2];a[n*2+1]=t[t.length-1]}else{var i=n/r;this.setCurvePoint(t,i,a,n*2)}}return a}},{key:"setCurvePoint",value:function e(t,r,a,n){if(t.length<=2){a[n]=t[0];a[n+1]=t[1]}else{var i=Array(t.length-2);for(var o=0;o0}},{key:"getStyle",value:function e(t,r){var a=r.pstyle("".concat(t,"-opacity")).value;var n=r.pstyle("".concat(t,"-color")).value;var i=r.pstyle("".concat(t,"-shape")).value;return{opacity:a,color:n,shape:i}}},{key:"getPadding",value:function e(t,r){return r.pstyle("".concat(t,"-padding")).pfValue}},{key:"draw",value:function e(t,r,a,n){if(!this.isVisible(t,a))return;var i=this.r;var o=n.w;var s=n.h;var l=o/2;var u=s/2;var v=this.getStyle(t,a),f=v.shape,c=v.color,d=v.opacity;r.save();r.fillStyle=tp(c,d);if(f==="round-rectangle"||f==="roundrectangle"){i.drawRoundRectanglePath(r,l,u,o,s,"auto")}else if(f==="ellipse"){i.drawEllipsePath(r,l,u,o,s)}r.fill();r.restore()}}])}();var ap={};ap.initWebgl=function(e,t){var r=this;var a=r.data.contexts[r.WEBGL];e.bgColor=np(r);e.webglTexSize=Math.min(e.webglTexSize,a.getParameter(a.MAX_TEXTURE_SIZE));e.webglTexRows=Math.min(e.webglTexRows,54);e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54);e.webglBatchSize=Math.min(e.webglBatchSize,16384);e.webglTexPerBatch=Math.min(e.webglTexPerBatch,a.getParameter(a.MAX_TEXTURE_IMAGE_UNITS));r.webglDebug=e.webglDebug;r.webglDebugShowAtlases=e.webglDebugShowAtlases;r.pickingFrameBuffer=Ih(a);r.pickingFrameBuffer.needsDraw=true;var n=function e(t){return function(e){return r.getTextAngle(e,t)}};var i=function e(t){return function(e){var r=e.pstyle(t);return r&&r.value}};r.drawing=new ep(r,a,e);var o=new rp(r);r.drawing.addAtlasCollection("node",Yh({texRows:e.webglTexRowsNodes}));r.drawing.addAtlasCollection("label",Yh({texRows:e.webglTexRows}));r.drawing.addAtlasRenderType("node-body",qh({collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}));r.drawing.addAtlasRenderType("label",qh({collection:"label",getKey:t.getLabelKey,getBoundingBox:t.getLabelBox,drawElement:t.drawLabel,getRotation:n(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:i("label")}));r.drawing.addAtlasRenderType("node-overlay",qh({collection:"node",getBoundingBox:t.getElementBox,getKey:function e(t){return o.getStyleKey("overlay",t)},drawElement:function e(t,r,a){return o.draw("overlay",t,r,a)},isVisible:function e(t){return o.isVisible("overlay",t)},getPadding:function e(t){return o.getPadding("overlay",t)}}));r.drawing.addAtlasRenderType("node-underlay",qh({collection:"node",getBoundingBox:t.getElementBox,getKey:function e(t){return o.getStyleKey("underlay",t)},drawElement:function e(t,r,a){return o.draw("underlay",t,r,a)},isVisible:function e(t){return o.isVisible("underlay",t)},getPadding:function e(t){return o.getPadding("underlay",t)}}));r.drawing.addAtlasRenderType("edge-source-label",qh({collection:"label",getKey:t.getSourceLabelKey,getBoundingBox:t.getSourceLabelBox,drawElement:t.drawSourceLabel,getRotation:n("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:i("source-label")}));r.drawing.addAtlasRenderType("edge-target-label",qh({collection:"label",getKey:t.getTargetLabelKey,getBoundingBox:t.getTargetLabelBox,drawElement:t.drawTargetLabel,getRotation:n("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:i("target-label")}));var s=st((function(){console.log("garbage collect flag set");r.data.gc=true}),1e4);r.onUpdateEleCalcs((function(e,t){var a=false;if(t&&t.length>0){a|=r.drawing.invalidate(t)}if(a){s()}}));ip(r)};function np(e){var t=e.cy.container();var r=t&&t.style&&t.style.backgroundColor||"white";return ce(r)}function ip(e){{var t=e.render;e.render=function(r){r=r||{};var a=e.cy;if(e.webgl){if(a.zoom()>fd){op(e);t.call(e,r)}else{sp(e);yp(e,r,Xh.SCREEN)}}}}{var r=e.matchCanvasSize;e.matchCanvasSize=function(t){r.call(e,t);e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight);e.pickingFrameBuffer.needsDraw=true}}{e.findNearestElements=function(t,r,a,n){return hp(e,t,r)}}{var a=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){a.call(e);e.pickingFrameBuffer.needsDraw=true}}{var n=e.notify;e.notify=function(t,r){n.call(e,t,r);if(t==="viewport"||t==="bounds"){e.pickingFrameBuffer.needsDraw=true}else if(t==="background"){e.drawing.invalidate(r,{type:"node-body"})}}}}function op(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function sp(e){var t=function t(r){r.save();r.setTransform(1,0,0,1,0,0);r.clearRect(0,0,e.canvasWidth,e.canvasHeight);r.restore()};t(e.data.contexts[e.NODE]);t(e.data.contexts[e.DRAG])}function lp(e){var t=e.canvasWidth;var r=e.canvasHeight;var a=wh(e),n=a.pan,i=a.zoom;var o=Nh();zh(o,o,[n.x,n.y]);Vh(o,o,[i,i]);var s=Nh();jh(s,t,r);var l=Nh();Oh(l,s,o);return l}function up(e,t){var r=e.canvasWidth;var a=e.canvasHeight;var n=wh(e),i=n.pan,o=n.zoom;t.setTransform(1,0,0,1,0,0);t.clearRect(0,0,r,a);t.translate(i.x,i.y);t.scale(o,o)}function vp(e,t){e.drawSelectionRectangle(t,(function(t){return up(e,t)}))}function fp(e){var t=e.data.contexts[e.NODE];t.save();up(e,t);t.strokeStyle="rgba(0, 0, 0, 0.3)";t.beginPath();t.moveTo(-1e3,0);t.lineTo(1e3,0);t.stroke();t.beginPath();t.moveTo(0,-1e3);t.lineTo(0,1e3);t.stroke();t.restore()}function cp(e){var t=function t(r,a,n){var i=r.atlasManager.getAtlasCollection(a);var o=e.data.contexts[e.NODE];var s=.125;var l=i.atlases;for(var u=0;u=0){w.add(k)}}return w}function hp(e,t,r){var a=dp(e,t,r);var n=e.getCachedZSortedEles();var i,o;var s=u(a),l;try{for(s.s();!(l=s.n()).done;){var v=l.value;var f=n[v];if(!i&&f.isNode()){i=f}if(!o&&f.isEdge()){o=f}if(i&&o){break}}}catch(c){s.e(c)}finally{s.f()}return[i,o].filter(Boolean)}function pp(e){return e.pstyle("shape").value==="rectangle"&&e.pstyle("background-fill").value==="solid"&&e.pstyle("border-width").pfValue===0&&e.pstyle("background-image").strValue==="none"}function gp(e,t,r){var a=e.drawing;t+=1;if(r.isNode()){a.drawTexture(r,t,"node-underlay");if(pp(r)){a.drawSimpleRectangle(r,t,"node-body")}else{a.drawTexture(r,t,"node-body")}a.drawTexture(r,t,"label");a.drawTexture(r,t,"node-overlay")}else{a.drawEdgeLine(r,t);a.drawEdgeArrow(r,t,"source");a.drawEdgeArrow(r,t,"target");a.drawTexture(r,t,"label");a.drawTexture(r,t,"edge-source-label");a.drawTexture(r,t,"edge-target-label")}}function yp(e,t,r){var a;if(e.webglDebug){a=performance.now()}var n=e.drawing;var i=0;if(r.screen){if(e.data.canvasNeedsRedraw[e.SELECT_BOX]){vp(e,t)}}if(e.data.canvasNeedsRedraw[e.NODE]||r.picking){var o=e.data.contexts[e.WEBGL];if(r.screen){o.clearColor(0,0,0,0);o.enable(o.BLEND);o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)}else{o.disable(o.BLEND)}o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT);o.viewport(0,0,o.canvas.width,o.canvas.height);var s=lp(e);var l=e.getCachedZSortedEles();i=l.length;n.startFrame(s,r);if(r.screen){for(var v=0;v0&&o>0){d.clearRect(0,0,i,o);d.globalCompositeOperation="source-over";var h=this.getCachedZSortedEles();if(e.full){d.translate(-a.x1*u,-a.y1*u);d.scale(u,u);this.drawElements(d,h);d.scale(1/u,1/u);d.translate(a.x1*u,a.y1*u)}else{var p=t.pan();var g={x:p.x*u,y:p.y*u};u*=t.zoom();d.translate(g.x,g.y);d.scale(u,u);this.drawElements(d,h);d.scale(1/u,1/u);d.translate(-g.x,-g.y)}if(e.bg){d.globalCompositeOperation="destination-over";d.fillStyle=e.bg;d.rect(0,0,i,o);d.fill()}}return c};function Pp(e,t){var r=atob(e);var a=new ArrayBuffer(r.length);var n=new Uint8Array(a);for(var i=0;i=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:true});r.MathJax=r.combineWithMathJax=r.combineDefaults=r.combineConfig=r.isObject=void 0;var n=t(71471);function o(e){return typeof e==="object"&&e!==null}r.isObject=o;function i(e,r){var t,n;try{for(var s=a(Object.keys(r)),l=s.next();!l.done;l=s.next()){var f=l.value;if(f==="__esModule")continue;if(o(e[f])&&o(r[f])&&!(r[f]instanceof Promise)){i(e[f],r[f])}else if(r[f]!==null&&r[f]!==undefined){e[f]=r[f]}}}catch(c){t={error:c}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(t)throw t.error}}return e}r.combineConfig=i;function s(e,r,t){var n,i;if(!e[r]){e[r]={}}e=e[r];try{for(var l=a(Object.keys(t)),f=l.next();!f.done;f=l.next()){var c=f.value;if(o(e[c])&&o(t[c])){s(e,c,t[c])}else if(e[c]==null&&t[c]!=null){e[c]=t[c]}}}catch(u){n={error:u}}finally{try{if(f&&!f.done&&(i=l.return))i.call(l)}finally{if(n)throw n.error}}return e}r.combineDefaults=s;function l(e){return i(r.MathJax,e)}r.combineWithMathJax=l;if(typeof t.g.MathJax==="undefined"){t.g.MathJax={}}if(!t.g.MathJax.version){t.g.MathJax={version:n.VERSION,_:{},config:t.g.MathJax}}r.MathJax=t.g.MathJax},59228:function(e,r,t){var a="/";var n=this&&this.__values||function(e){var r=typeof Symbol==="function"&&Symbol.iterator,t=r&&e[r],a=0;if(t)return t.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var o,i;Object.defineProperty(r,"__esModule",{value:true});r.CONFIG=r.MathJax=r.Loader=r.PathFilters=r.PackageError=r.Package=void 0;var s=t(58496);var l=t(6875);var f=t(6875);Object.defineProperty(r,"Package",{enumerable:true,get:function(){return f.Package}});Object.defineProperty(r,"PackageError",{enumerable:true,get:function(){return f.PackageError}});var c=t(43899);r.PathFilters={source:function(e){if(r.CONFIG.source.hasOwnProperty(e.name)){e.name=r.CONFIG.source[e.name]}return true},normalize:function(e){var r=e.name;if(!r.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)){e.name="[mathjax]/"+r.replace(/^\.\//,"")}if(e.addExtension&&!r.match(/\.[^\/]+$/)){e.name+=".js"}return true},prefix:function(e){var t;while(t=e.name.match(/^\[([^\]]*)\]/)){if(!r.CONFIG.paths.hasOwnProperty(t[1]))break;e.name=r.CONFIG.paths[t[1]]+e.name.substr(t[0].length)}return true}};var u;(function(e){var t=s.MathJax.version;e.versions=new Map;function o(){var e,r;var t=[];for(var a=0;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,r){var t=typeof Symbol==="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),n,o=[],i;try{while((r===void 0||r-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(t=a["return"]))t.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(e,r){var t=typeof Symbol==="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),n,o=[],i;try{while((r===void 0||r-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(t=a["return"]))t.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a{n.r(t);n.d(t,{q:()=>f});var r,i=s(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),o=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function s(e){return new RegExp("^("+e.join("|")+")$")}function a(e,t){var n=e.sol(),s=e.next();r=null;if(n)if(s=="/")return(t.tokenize=c)(e,t);else if(s=="\\"){if(e.eol()||/\s/.test(e.peek()))return e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=u)(e):t.tokenize=a,"comment";else return t.tokenize=a,"builtin"}if(/\s/.test(s))return e.peek()=="/"?(e.skipToEnd(),"comment"):"null";if(s=='"')return(t.tokenize=p)(e,t);if(s=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==s&&/\d/.test(e.peek())||/\d/.test(s)){var l=null;e.backUp(1);if(e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/))l="temporal";else if(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))l="number";return l&&(!(s=e.peek())||o.test(s))?l:(e.next(),"error")}if(/[A-Za-z]|\./.test(s))return e.eatWhile(/[A-Za-z._\d]/),i.test(e.current())?"keyword":"variable";if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(s))return null;if(/[{}\(\[\]\)]/.test(s))return null;return"error"}function c(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=l)(e,t):t.tokenize=a,"comment"}function l(e,t){var n=e.sol()&&e.peek()=="\\";e.skipToEnd();if(n&&/^\\\s*$/.test(e.current()))t.tokenize=a;return"comment"}function u(e){return e.skipToEnd(),"comment"}function p(e,t){var n=false,r,i=false;while(r=e.next()){if(r=='"'&&!n){i=true;break}n=!n&&r=="\\"}if(i)t.tokenize=a;return"string"}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function m(e){e.indent=e.context.indent;e.context=e.context.prev}const f={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")d(t,")",e.column());else if(r=="[")d(t,"]",e.column());else if(r=="{")d(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")m(t);if(t.context&&r==t.context.type)m(t)}else if(r=="."&&t.context&&t.context.type=="pattern")m(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))d(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var i=e.context;if(/[\]\}]/.test(r))while(i&&i.type=="pattern")i=i.prev;var o=i&&r==i.type;if(!i)return 0;else if(i.type=="pattern")return i.col;else if(i.align)return i.col+(o?0:1);else return i.indent+(o?0:n.unit)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9046.99c477ea375dcbb8c7ca.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9046.99c477ea375dcbb8c7ca.js new file mode 100644 index 0000000000000000000000000000000000000000..7e2c20ba479e25629e48149d55025f4c23bad5e7 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9046.99c477ea375dcbb8c7ca.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9046,5606],{32421:(t,e,n)=>{"use strict";n.d(e,{HT:()=>c,HV:()=>s,S2:()=>o,cy:()=>d});const s=t=>t[t.length-1];const r=()=>[];const i=t=>t.slice();const o=(t,e)=>{for(let n=0;n{for(let n=0;n{for(let n=0;nt.length===e.length&&l(t,((t,n)=>t===e[n]));const u=t=>t.reduce(((t,e)=>t.concat(e)),[]);const d=Array.isArray;const f=t=>c(set.from(t));const g=(t,e)=>{const n=set.create();const s=[];for(let r=0;r{"use strict";n.d(e,{EK:()=>u,OK:()=>r,vo:()=>a});var s=n(70641);const r=(t,e,n=0)=>{try{for(;n{};const o=t=>t();const c=t=>t;const l=(t,e)=>t===e;const h=(t,e)=>t===e||t!=null&&e!=null&&t.constructor===e.constructor&&(t instanceof Array&&array.equalFlat(t,e)||typeof t==="object"&&object.equalFlat(t,e));const a=(t,e)=>{if(t==null||e==null){return l(t,e)}if(t.constructor!==e.constructor){return false}if(t===e){return true}switch(t.constructor){case ArrayBuffer:t=new Uint8Array(t);e=new Uint8Array(e);case Uint8Array:{if(t.byteLength!==e.byteLength){return false}for(let n=0;ne.includes(t)},61662:(t,e,n)=>{"use strict";n.d(e,{C:()=>r,Tj:()=>o,_4:()=>i,bz:()=>c,vt:()=>s});const s=()=>new Map;const r=t=>{const e=s();t.forEach(((t,n)=>{e.set(n,t)}));return e};const i=(t,e,n)=>{let s=t.get(e);if(s===undefined){t.set(e,s=n())}return s};const o=(t,e)=>{const n=[];for(const[s,r]of t){n.push(e(r,s))}return n};const c=(t,e)=>{for(const[n,s]of t){if(e(s,n)){return true}}return false};const l=(t,e)=>{for(const[n,s]of t){if(!e(s,n)){return false}}return true}},63616:(t,e,n)=>{"use strict";n.d(e,{RI:()=>s,T9:()=>g,jk:()=>f,sj:()=>b,tn:()=>i});const s=Math.floor;const r=Math.ceil;const i=Math.abs;const o=Math.imul;const c=Math.round;const l=Math.log10;const h=Math.log2;const a=Math.log;const u=Math.sqrt;const d=(t,e)=>t+e;const f=(t,e)=>tt>e?t:e;const p=Number.isNaN;const w=Math.pow;const m=t=>Math.pow(10,t);const y=Math.sign;const b=t=>t!==0?t<0:1/t<0},70641:(t,e,n)=>{"use strict";n.d(e,{Bw:()=>l,SQ:()=>f,i5:()=>d});const s=()=>Object.create(null);const r=Object.assign;const i=Object.keys;const o=(t,e)=>{for(const n in t){e(t[n],n)}};const c=(t,e)=>{const n=[];for(const s in t){n.push(e(t[s],s))}return n};const l=t=>i(t).length;const h=(t,e)=>{for(const n in t){if(e(t[n],n)){return true}}return false};const a=t=>{for(const e in t){return false}return true};const u=(t,e)=>{for(const n in t){if(!e(t[n],n)){return false}}return true};const d=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const f=(t,e)=>t===e||l(t)===l(e)&&u(t,((t,n)=>(t!==undefined||d(e,n))&&e[n]===t))},5739:(t,e,n)=>{"use strict";n.d(e,{c:()=>o});var s=n(61662);var r=n(25404);var i=n(32421);class o{constructor(){this._observers=s.vt()}on(t,e){s._4(this._observers,t,r.vt).add(e)}once(t,e){const n=(...s)=>{this.off(t,n);e(...s)};this.on(t,n)}off(t,e){const n=this._observers.get(t);if(n!==undefined){n.delete(e);if(n.size===0){this._observers.delete(t)}}}emit(t,e){return i.HT((this._observers.get(t)||s.vt()).values()).forEach((t=>t(...e)))}destroy(){this._observers=s.vt()}}},25404:(t,e,n)=>{"use strict";n.d(e,{vt:()=>s});const s=()=>new Set;const r=t=>Array.from(t);const i=t=>t.values().next().value||undefined;const o=t=>new Set(t)},64191:(t,e,n)=>{"use strict";n.d(e,{_g:()=>r});const s=()=>new Date;const r=Date.now;const i=t=>{if(t<6e4){const e=metric.prefix(t,-1);return math.round(e.n*100)/100+e.prefix+"s"}t=math.floor(t/1e3);const e=t%60;const n=math.floor(t/60)%60;const s=math.floor(t/3600)%24;const r=math.floor(t/86400);if(r>0){return r+"d"+(s>0||n>30?" "+(n>30?s+1:s)+"h":"")}if(s>0){return s+"h"+(n>0||e>30?" "+(e>30?n+1:n)+"min":"")}return n+"min"+(e>0?" "+e+"s":"")}},65606:t=>{var e=t.exports={};var n;var s;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=r}}catch(t){n=r}try{if(typeof clearTimeout==="function"){s=clearTimeout}else{s=i}}catch(t){s=i}})();function o(t){if(n===setTimeout){return setTimeout(t,0)}if((n===r||!n)&&setTimeout){n=setTimeout;return setTimeout(t,0)}try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(s===clearTimeout){return clearTimeout(t)}if((s===i||!s)&&clearTimeout){s=clearTimeout;return clearTimeout(t)}try{return s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}var l=[];var h=false;var a;var u=-1;function d(){if(!h||!a){return}h=false;if(a.length){l=a.concat(l)}else{u=-1}if(l.length){f()}}function f(){if(h){return}var t=o(d);h=true;var e=l.length;while(e){a=l;l=[];while(++u1){for(var n=1;n{"use strict";n.r(e);n.d(e,{AbsolutePosition:()=>to,AbstractConnector:()=>Yr,AbstractStruct:()=>Al,AbstractType:()=>Tc,Array:()=>Yc,ContentAny:()=>Jl,ContentBinary:()=>Il,ContentDeleted:()=>Ul,ContentEmbed:()=>Vl,ContentFormat:()=>jl,ContentJSON:()=>Fl,ContentString:()=>Hl,ContentType:()=>eh,Doc:()=>ai,GC:()=>xl,ID:()=>zi,Item:()=>ch,Map:()=>Qc,PermanentUserData:()=>Xi,RelativePosition:()=>Gi,Snapshot:()=>ao,Text:()=>pl,Transaction:()=>No,UndoManager:()=>Ko,UpdateEncoderV1:()=>wi,XmlElement:()=>kl,XmlFragment:()=>yl,XmlHook:()=>El,XmlText:()=>Dl,YArrayEvent:()=>qc,YEvent:()=>wc,YMapEvent:()=>Gc,YTextEvent:()=>gl,YXmlEvent:()=>Sl,applyUpdate:()=>Ai,applyUpdateV2:()=>vi,cleanupYTextFormatting:()=>dl,compareIDs:()=>Ji,compareRelativePositions:()=>ho,convertUpdateFormatV1ToV2:()=>gc,convertUpdateFormatV2ToV1:()=>pc,createAbsolutePositionFromRelativePosition:()=>lo,createDeleteSet:()=>ri,createDeleteSetFromStructStore:()=>ii,createDocFromSnapshot:()=>So,createID:()=>$i,createRelativePositionFromJSON:()=>Zi,createRelativePositionFromTypeIndex:()=>so,createSnapshot:()=>mo,decodeRelativePosition:()=>co,decodeSnapshot:()=>wo,decodeSnapshotV2:()=>po,decodeStateVector:()=>Ui,decodeUpdate:()=>Qo,decodeUpdateV2:()=>Zo,diffUpdate:()=>hc,diffUpdateV2:()=>lc,emptySnapshot:()=>yo,encodeRelativePosition:()=>io,encodeSnapshot:()=>go,encodeSnapshotV2:()=>fo,encodeStateAsUpdate:()=>Ii,encodeStateAsUpdateV2:()=>xi,encodeStateVector:()=>Ri,encodeStateVectorFromUpdate:()=>sc,encodeStateVectorFromUpdateV2:()=>nc,equalSnapshots:()=>uo,findIndexSS:()=>Ao,findRootTypeKey:()=>Ki,getItem:()=>xo,getState:()=>Do,getTypeChildren:()=>vc,isDeleted:()=>ti,isParentOf:()=>qi,iterateDeletedStructs:()=>Qr,logType:()=>Yi,logUpdate:()=>Xo,logUpdateV2:()=>Go,mergeUpdates:()=>ec,mergeUpdatesV2:()=>cc,parseUpdateMeta:()=>ic,parseUpdateMetaV2:()=>rc,readUpdate:()=>Di,readUpdateV2:()=>Ci,relativePositionToJSON:()=>Qi,snapshot:()=>bo,transact:()=>Jo,tryGc:()=>Fo,typeListToArraySnapshot:()=>Mc,typeMapGetSnapshot:()=>Wc});var s=n(5739);var r=n(32421);var i=n(63616);var o=n(61662);const c=String.fromCharCode;const l=String.fromCodePoint;const h=t=>t.toLowerCase();const a=/^\s*/g;const u=t=>t.replace(a,"");const d=/([A-Z])/g;const f=(t,e)=>u(t.replace(d,(t=>`${e}${h(t)}`)));const g=t=>unescape(encodeURIComponent(t)).length;const p=t=>{const e=unescape(encodeURIComponent(t));const n=e.length;const s=new Uint8Array(n);for(let r=0;rw.encode(t);const y=w?m:p;const b=t=>{let e=t.length;let n="";let s=0;while(e>0){const r=e<1e4?e:1e4;const i=t.subarray(s,s+r);s+=r;n+=String.fromCodePoint.apply(null,i);e-=r}return decodeURIComponent(escape(n))};let k=typeof TextDecoder==="undefined"?null:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true});if(k&&k.decode(new Uint8Array).length===1){k=null}const _=t=>k.decode(t);const S=null&&(k?_:b);const E=(t,e,n,s="")=>t.slice(0,e)+s+t.slice(e+n);const C=t=>t===undefined?null:t;class D{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}}let v=new D;let A=true;try{if(typeof localStorage!=="undefined"){v=localStorage;A=false}}catch(gh){}const T=v;const x=t=>A||addEventListener("storage",t);var I=n(53110);var M=n(65606);const U=typeof M!=="undefined"&&M.release&&/node|io\.js/.test(M.release.name);const O=typeof window!=="undefined"&&typeof document!=="undefined"&&!U;const L=typeof navigator!=="undefined"?/Mac/.test(navigator.platform):false;let N;const R=[];const V=()=>{if(N===undefined){if(U){N=o.vt();const t=M.argv;let e=null;for(let n=0;n{if(t.length!==0){const[e,n]=t.split("=");N.set(`--${f(e,"-")}`,n);N.set(`-${f(e,"-")}`,n)}}))}else{N=o.vt()}}return N};const P=t=>V().has(t);const j=(t,e)=>V().get(t)||e;const B=t=>U?C(M.env[t.toUpperCase()]):C(T.getItem(t));const F=t=>V().get("--"+t)||B(t);const z=t=>P("--"+t)||B(t)!==null;const J=z("production");const $=U&&I.EK(M.env.FORCE_COLOR,["true","1","2"]);const H=!P("no-colors")&&(!U||M.stdout.isTTY||$)&&(!U||P("color")||$||B("COLORTERM")!==null||(B("TERM")||"").includes("color"));const W=t=>new Uint8Array(t);const K=(t,e,n)=>new Uint8Array(t,e,n);const q=t=>new Uint8Array(t);const Y=t=>{let e="";for(let n=0;nBuffer.from(t.buffer,t.byteOffset,t.byteLength).toString("base64");const G=t=>{const e=atob(t);const n=W(e.length);for(let s=0;s{const e=Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};const Z=O?Y:X;const tt=O?G:Q;const et=t=>{const e=W(t.byteLength);e.set(t);return e};const nt=t=>{const e=encoding.createEncoder();encoding.writeAny(e,t);return encoding.toUint8Array(e)};const st=t=>decoding.readAny(decoding.createDecoder(t));const rt=1;const it=2;const ot=4;const ct=8;const lt=16;const ht=32;const at=64;const ut=128;const dt=256;const ft=512;const gt=1024;const pt=2048;const wt=4096;const mt=8192;const yt=16384;const bt=32768;const kt=65536;const _t=1<<17;const St=1<<18;const Et=1<<19;const Ct=1<<20;const Dt=1<<21;const vt=1<<22;const At=1<<23;const Tt=1<<24;const xt=1<<25;const It=1<<26;const Mt=1<<27;const Ut=1<<28;const Ot=1<<29;const Lt=1<<30;const Nt=null&&1<<31;const Rt=0;const Vt=1;const Pt=3;const jt=7;const Bt=15;const Ft=31;const zt=63;const Jt=127;const $t=255;const Ht=511;const Wt=1023;const Kt=2047;const qt=4095;const Yt=8191;const Xt=16383;const Gt=32767;const Qt=65535;const Zt=_t-1;const te=St-1;const ee=Et-1;const ne=Ct-1;const se=Dt-1;const re=vt-1;const ie=At-1;const oe=Tt-1;const ce=xt-1;const le=It-1;const he=Mt-1;const ae=Ut-1;const ue=Ot-1;const de=Lt-1;const fe=2147483647;const ge=4294967295;const pe=Number.MAX_SAFE_INTEGER;const we=Number.MIN_SAFE_INTEGER;const me=null&&1<<31;const ye=fe;const be=Number.isInteger||(t=>typeof t==="number"&&isFinite(t)&&i.RI(t)===t);const ke=Number.isNaN;const _e=Number.parseInt;class Se{constructor(){this.cpos=0;this.cbuf=new Uint8Array(100);this.bufs=[]}}const Ee=()=>new Se;const Ce=t=>{let e=t.cpos;for(let n=0;n{const e=new Uint8Array(Ce(t));let n=0;for(let s=0;s{const n=t.cbuf.length;if(n-t.cpos{const n=t.cbuf.length;if(t.cpos===n){t.bufs.push(t.cbuf);t.cbuf=new Uint8Array(n*2);t.cpos=0}t.cbuf[t.cpos++]=e};const Te=(t,e,n)=>{let s=null;for(let r=0;r{Ae(t,e&binary.BITS8);Ae(t,e>>>8&binary.BITS8)};const Ue=(t,e,n)=>{Te(t,e,n&binary.BITS8);Te(t,e+1,n>>>8&binary.BITS8)};const Oe=(t,e)=>{for(let n=0;n<4;n++){Ae(t,e&binary.BITS8);e>>>=8}};const Le=(t,e)=>{for(let n=3;n>=0;n--){Ae(t,e>>>8*n&binary.BITS8)}};const Ne=(t,e,n)=>{for(let s=0;s<4;s++){Te(t,e+s,n&binary.BITS8);n>>>=8}};const Re=(t,e)=>{while(e>Jt){Ae(t,ut|Jt&e);e=i.RI(e/128)}Ae(t,Jt&e)};const Ve=(t,e)=>{const n=i.sj(e);if(n){e=-e}Ae(t,(e>zt?ut:0)|(n?at:0)|zt&e);e=i.RI(e/64);while(e>0){Ae(t,(e>Jt?ut:0)|Jt&e);e=i.RI(e/128)}};const Pe=new Uint8Array(3e4);const je=Pe.length/3;const Be=(t,e)=>{if(e.length{const n=unescape(encodeURIComponent(e));const s=n.length;Re(t,s);for(let r=0;r$e(t,De(e));const $e=(t,e)=>{const n=t.cbuf.length;const s=t.cpos;const r=i.jk(n-s,e.length);const o=e.length-r;t.cbuf.set(e.subarray(0,r),s);t.cpos+=r;if(o>0){t.bufs.push(t.cbuf);t.cbuf=new Uint8Array(i.T9(n*2,o));t.cbuf.set(e.subarray(r));t.cpos=o}};const He=(t,e)=>{Re(t,e.byteLength);$e(t,e)};const We=(t,e)=>{ve(t,e);const n=new DataView(t.cbuf.buffer,t.cpos,e);t.cpos+=e;return n};const Ke=(t,e)=>We(t,4).setFloat32(0,e,false);const qe=(t,e)=>We(t,8).setFloat64(0,e,false);const Ye=(t,e)=>We(t,8).setBigInt64(0,e,false);const Xe=(t,e)=>We(t,8).setBigUint64(0,e,false);const Ge=new DataView(new ArrayBuffer(4));const Qe=t=>{Ge.setFloat32(0,t);return Ge.getFloat32(0)===t};const Ze=(t,e)=>{switch(typeof e){case"string":Ae(t,119);ze(t,e);break;case"number":if(be(e)&&i.tn(e)<=fe){Ae(t,125);Ve(t,e)}else if(Qe(e)){Ae(t,124);Ke(t,e)}else{Ae(t,123);qe(t,e)}break;case"bigint":Ae(t,122);Ye(t,e);break;case"object":if(e===null){Ae(t,126)}else if(e instanceof Array){Ae(t,117);Re(t,e.length);for(let n=0;n0){Re(this,this.count-1)}this.count=1;this.w(this,t);this.s=t}}}class en extends Se{constructor(t){super();this.s=t}write(t){Ve(this,t-this.s);this.s=t}}class nn extends Se{constructor(t){super();this.s=t;this.count=0}write(t){if(this.s===t&&this.count>0){this.count++}else{if(this.count>0){Re(this,this.count-1)}this.count=1;Ve(this,t-this.s);this.s=t}}}const sn=t=>{if(t.count>0){Ve(t.encoder,t.count===1?t.s:-t.s);if(t.count>1){Re(t.encoder,t.count-2)}}};class rn{constructor(){this.encoder=new Se;this.s=0;this.count=0}write(t){if(this.s===t){this.count++}else{sn(this);this.count=1;this.s=t}}toUint8Array(){sn(this);return De(this.encoder)}}class on{constructor(){this.encoder=new Se;this.s=0;this.count=0}write(t){if(this.s+this.count===t){this.count++}else{sn(this);this.count=1;this.s=t}}toUint8Array(){sn(this);return De(this.encoder)}}const cn=t=>{if(t.count>0){const e=t.diff*2+(t.count===1?0:1);Ve(t.encoder,e);if(t.count>1){Re(t.encoder,t.count-2)}}};class ln{constructor(){this.encoder=new Se;this.s=0;this.count=0;this.diff=0}write(t){if(this.diff===t-this.s){this.s=t;this.count++}else{cn(this);this.count=1;this.diff=t-this.s;this.s=t}}toUint8Array(){cn(this);return De(this.encoder)}}class hn{constructor(){this.sarr=[];this.s="";this.lensE=new rn}write(t){this.s+=t;if(this.s.length>19){this.sarr.push(this.s);this.s=""}this.lensE.write(t.length)}toUint8Array(){const t=new Se;this.sarr.push(this.s);this.s="";ze(t,this.sarr.join(""));$e(t,this.lensE.toUint8Array());return De(t)}}const an=t=>new Error(t);const un=()=>{throw an("Method unimplemented")};const dn=()=>{throw an("Unexpected case")};const fn=an("Unexpected end of array");const gn=an("Integer out of Range");class pn{constructor(t){this.arr=t;this.pos=0}}const wn=t=>new pn(t);const mn=t=>t.pos!==t.arr.length;const yn=(t,e=t.pos)=>{const n=wn(t.arr);n.pos=e;return n};const bn=(t,e)=>{const n=K(t.arr.buffer,t.pos+t.arr.byteOffset,e);t.pos+=e;return n};const kn=t=>bn(t,In(t));const _n=t=>bn(t,t.arr.length-t.pos);const Sn=t=>t.pos++;const En=t=>t.arr[t.pos++];const Cn=t=>{const e=t.arr[t.pos]+(t.arr[t.pos+1]<<8);t.pos+=2;return e};const Dn=t=>{const e=t.arr[t.pos]+(t.arr[t.pos+1]<<8)+(t.arr[t.pos+2]<<16)+(t.arr[t.pos+3]<<24)>>>0;t.pos+=4;return e};const vn=t=>{const e=t.arr[t.pos+3]+(t.arr[t.pos+2]<<8)+(t.arr[t.pos+1]<<16)+(t.arr[t.pos]<<24)>>>0;t.pos+=4;return e};const An=t=>t.arr[t.pos];const Tn=t=>t.arr[t.pos]+(t.arr[t.pos+1]<<8);const xn=t=>t.arr[t.pos]+(t.arr[t.pos+1]<<8)+(t.arr[t.pos+2]<<16)+(t.arr[t.pos+3]<<24)>>>0;const In=t=>{let e=0;let n=1;const s=t.arr.length;while(t.pospe){throw gn}}throw fn};const Mn=t=>{let e=t.arr[t.pos++];let n=e&zt;let s=64;const r=(e&at)>0?-1:1;if((e&ut)===0){return r*n}const i=t.arr.length;while(t.pospe){throw gn}}throw fn};const Un=t=>{const e=t.pos;const n=In(t);t.pos=e;return n};const On=t=>{const e=t.pos;const n=Mn(t);t.pos=e;return n};const Ln=t=>{let e=In(t);if(e===0){return""}else{let n=String.fromCodePoint(En(t));if(--e<100){while(e--){n+=String.fromCodePoint(En(t))}}else{while(e>0){const s=e<1e4?e:1e4;const r=t.arr.subarray(t.pos,t.pos+s);t.pos+=s;n+=String.fromCodePoint.apply(null,r);e-=s}}return decodeURIComponent(escape(n))}};const Nn=t=>k.decode(kn(t));const Rn=k?Nn:Ln;const Vn=t=>{const e=t.pos;const n=Rn(t);t.pos=e;return n};const Pn=(t,e)=>{const n=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);t.pos+=e;return n};const jn=t=>Pn(t,4).getFloat32(0,false);const Bn=t=>Pn(t,8).getFloat64(0,false);const Fn=t=>Pn(t,8).getBigInt64(0,false);const zn=t=>Pn(t,8).getBigUint64(0,false);const Jn=[t=>undefined,t=>null,Mn,jn,Bn,Fn,t=>false,t=>true,Rn,t=>{const e=In(t);const n={};for(let s=0;s{const e=In(t);const n=[];for(let s=0;sJn[127-En(t)](t);class Hn extends pn{constructor(t,e){super(t);this.reader=e;this.s=null;this.count=0}read(){if(this.count===0){this.s=this.reader(this);if(mn(this)){this.count=In(this)+1}else{this.count=-1}}this.count--;return this.s}}class Wn extends pn{constructor(t,e){super(t);this.s=e}read(){this.s+=Mn(this);return this.s}}class Kn extends pn{constructor(t,e){super(t);this.s=e;this.count=0}read(){if(this.count===0){this.s+=Mn(this);if(mn(this)){this.count=In(this)+1}else{this.count=-1}}this.count--;return this.s}}class qn extends pn{constructor(t){super(t);this.s=0;this.count=0}read(){if(this.count===0){this.s=Mn(this);const t=i.sj(this.s);this.count=1;if(t){this.s=-this.s;this.count=In(this)+2}}this.count--;return this.s}}class Yn extends pn{constructor(t){super(t);this.s=0;this.count=0}read(){if(this.count===0){this.s=Mn(this);const t=i.sj(this.s);this.count=1;if(t){this.s=-this.s;this.count=In(this)+2}}this.count--;return this.s++}}class Xn extends pn{constructor(t){super(t);this.s=0;this.count=0;this.diff=0}read(){if(this.count===0){const t=Mn(this);const e=t&1;this.diff=i.RI(t/2);this.count=1;if(e){this.count=In(this)+2}}this.s+=this.diff;this.count--;return this.s}}class Gn{constructor(t){this.decoder=new qn(t);this.str=Rn(this.decoder);this.spos=0}read(){const t=this.spos+this.decoder.read();const e=this.str.slice(this.spos,t);this.spos=t;return e}}const Qn=typeof window==="undefined"?null:typeof window.performance!=="undefined"&&window.performance||null;const Zn=typeof crypto==="undefined"?null:crypto;const ts=Zn!==null?t=>{const e=new ArrayBuffer(t);const n=new Uint8Array(e);Zn.getRandomValues(n);return e}:t=>{const e=new ArrayBuffer(t);const n=new Uint8Array(e);for(let s=0;s>>0)}return e};const es=Math.random;const ns=()=>new Uint32Array(ts(4))[0];const ss=()=>{const t=new Uint32Array(cryptoRandomBuffer(8));return(t[0]&binary.BITS21)*(binary.BITS32+1)+(t[1]>>>0)};const rs=t=>t[math.floor(es()*t.length)];const is=[1e7]+-1e3+-4e3+-8e3+-1e11;const os=()=>is.replace(/[018]/g,(t=>(t^ns()&15>>t/4).toString(16)));const cs=t=>new Promise(t);const ls=t=>new Promise(t);const hs=t=>Promise.all(t);const as=t=>Promise.reject(t);const us=t=>Promise.resolve(t);const ds=t=>Promise.resolve(t);const fs=(t,e,n=10)=>cs(((s,r)=>{const i=time.getUnixTime();const o=t>0;const c=()=>{if(e()){clearInterval(l);s()}else if(o){if(time.getUnixTime()-i>t){clearInterval(l);r(new Error("Timeout"))}}};const l=setInterval(c,n)}));const gs=t=>cs(((e,n)=>setTimeout(e,t)));const ps=t=>t instanceof Promise||t&&t.then&&t.catch&&t.finally;var ws=n(25404);const ms=Symbol;const ys=t=>typeof t==="symbol";class bs{constructor(t,e){this.left=t;this.right=e}}const ks=(t,e)=>new bs(t,e);const _s=(t,e)=>new bs(e,t);const Ss=(t,e)=>t.forEach((t=>e(t.left,t.right)));const Es=(t,e)=>t.map((t=>e(t.left,t.right)));const Cs=typeof document!=="undefined"?document:{};const Ds=t=>Cs.createElement(t);const vs=()=>Cs.createDocumentFragment();const As=t=>Cs.createTextNode(t);const Ts=typeof DOMParser!=="undefined"?new DOMParser:null;const xs=(t,e,n)=>t.dispatchEvent(new CustomEvent(e,n));const Is=(t,e)=>{pair.forEach(e,((e,n)=>{if(n===false){t.removeAttribute(e)}else if(n===true){t.setAttribute(e,"")}else{t.setAttribute(e,n)}}));return t};const Ms=(t,e)=>{e.forEach(((e,n)=>{t.setAttribute(n,e)}));return t};const Us=t=>{const e=vs();for(let n=0;n{Zs(t,Us(e));return t};const Ls=t=>t.remove();const Ns=(t,e,n)=>t.addEventListener(e,n);const Rs=(t,e,n)=>t.removeEventListener(e,n);const Vs=(t,e)=>{pair.forEach(e,((e,n)=>Ns(t,e,n)));return t};const Ps=(t,e)=>{pair.forEach(e,((e,n)=>Rs(t,e,n)));return t};const js=(t,e=[],n=[])=>Os(Is(Ds(t),e),n);const Bs=(t,e)=>{const n=Ds("canvas");n.height=e;n.width=t;return n};const Fs=null&&As;const zs=t=>`${t.left}:${t.right};`;const Js=t=>t.map(zs).join("");const $s=t=>o.Tj(t,((t,e)=>`${e}:${t};`)).join("");const Hs=(t,e)=>t.querySelector(e);const Ws=(t,e)=>t.querySelectorAll(e);const Ks=t=>Cs.getElementById(t);const qs=t=>Ts.parseFromString(`${t}`,"text/html").body;const Ys=t=>Us(qs(t).childNodes);const Xs=t=>qs(t).firstElementChild;const Gs=(t,e)=>t.replaceWith(e);const Qs=(t,e,n)=>t.insertBefore(e,n);const Zs=(t,e)=>t.appendChild(e);const tr=Cs.ELEMENT_NODE;const er=Cs.TEXT_NODE;const nr=Cs.CDATA_SECTION_NODE;const sr=Cs.COMMENT_NODE;const rr=Cs.DOCUMENT_NODE;const ir=Cs.DOCUMENT_TYPE_NODE;const or=Cs.DOCUMENT_FRAGMENT_NODE;const cr=(t,e)=>t.nodeType===e;const lr=(t,e)=>{let n=e.parentNode;while(n&&n!==t){n=n.parentNode}return n===t};var hr=n(64191);const ar=ms();const ur=ms();const dr=ms();const fr=ms();const gr=ms();const pr=ms();const wr=ms();const mr=ms();const yr=ms();const br={[ar]:ks("font-weight","bold"),[ur]:ks("font-weight","normal"),[dr]:ks("color","blue"),[gr]:ks("color","green"),[fr]:ks("color","grey"),[pr]:ks("color","red"),[wr]:ks("color","purple"),[mr]:ks("color","orange"),[yr]:ks("color","black")};const kr={[ar]:"",[ur]:"",[dr]:"",[gr]:"",[fr]:"",[pr]:"",[wr]:"",[mr]:"",[yr]:""};const _r=t=>{const e=[];const n=[];const s=o.vt();let r=[];let i=0;for(;i0||t.length>0){e.push("%c"+r);n.push(t)}else{e.push(r)}}else{break}}}if(i>0){r=n;r.unshift(e.join(""))}for(;i{const e=[];const n=[];let s=0;for(;s0){n.push(e.join(""))}for(;s{const e=[];const n=[];let s=0;for(;s0){e.push("");n.push(e.join(""))}for(;s{console.log(...Cr(t));Nr.forEach((e=>e.print(t)))};const vr=(...t)=>{console.warn(...Cr(t));t.unshift(mr);Nr.forEach((e=>e.print(t)))};const Ar=t=>{console.error(t);Nr.forEach((e=>e.printError(t)))};const Tr=(t,e)=>{if(env.isBrowser){console.log("%c ",`font-size: ${e}px; background-size: contain; background-repeat: no-repeat; background-image: url(${t})`)}Nr.forEach((n=>n.printImg(t,e)))};const xr=(t,e)=>Tr(`data:image/gif;base64,${t}`,e);const Ir=(...t)=>{console.group(...Cr(t));Nr.forEach((e=>e.group(t)))};const Mr=(...t)=>{console.groupCollapsed(...Cr(t));Nr.forEach((e=>e.groupCollapsed(t)))};const Ur=()=>{console.groupEnd();Nr.forEach((t=>t.groupEnd()))};const Or=t=>Nr.forEach((e=>e.printDom(t())));const Lr=(t,e)=>Tr(t.toDataURL(),e);const Nr=ws.vt();const Rr=t=>{const e=[];const n=new Map;let s=0;for(;s{const n=dom.element("span",[pair.create("hidden",e),pair.create("style","color:grey;font-size:120%;")],[dom.text("▼")]);const s=dom.element("span",[pair.create("hidden",!e),pair.create("style","color:grey;font-size:125%;")],[dom.text("▶")]);const r=dom.element("div",[pair.create("style",`${Vr};padding-left:${this.depth*10}px`)],[n,s,dom.text(" ")].concat(Rr(t)));const i=dom.element("div",[pair.create("hidden",e)]);const o=dom.element("div",[],[r,i]);dom.append(this.ccontainer,[o]);this.ccontainer=i;this.depth++;dom.addEventListener(r,"click",(t=>{i.toggleAttribute("hidden");n.toggleAttribute("hidden");s.toggleAttribute("hidden")}))}))}groupCollapsed(t){this.group(t,true)}groupEnd(){eventloop.enqueue((()=>{if(this.depth>0){this.depth--;this.ccontainer=this.ccontainer.parentElement.parentElement}}))}print(t){eventloop.enqueue((()=>{dom.append(this.ccontainer,[dom.element("div",[pair.create("style",`${Vr};padding-left:${this.depth*10}px`)],Rr(t))])}))}printError(t){this.print([pr,ar,t.toString()])}printImg(t,e){eventloop.enqueue((()=>{dom.append(this.ccontainer,[dom.element("img",[pair.create("src",t),pair.create("height",`${math.round(e*1.5)}px`)])])}))}printDom(t){eventloop.enqueue((()=>{dom.append(this.ccontainer,[t])}))}destroy(){eventloop.enqueue((()=>{Nr.delete(this)}))}}const jr=t=>new Pr(t);const Br=[gr,wr,mr,dr];let Fr=0;let zr=hr._g();const Jr=t=>{const e=Br[Fr];const n=env.getVariable("log");const s=n!==null&&(n==="*"||n==="true"||new RegExp(n,"gi").test(t));Fr=(Fr+1)%Br.length;t+=": ";return!s?func.nop:(...n)=>{const s=time.getUnixTime();const r=s-zr;zr=s;Dr(e,t,yr,...n.map((t=>typeof t==="string"||typeof t==="symbol"?t:JSON.stringify(t))),e," +"+r+"ms")}};const $r=(t,e)=>({[Symbol.iterator](){return this},next(){const n=t.next();return{value:n.done?undefined:e(n.value),done:n.done}}});const Hr=t=>({[Symbol.iterator](){return this},next:t});const Wr=(t,e)=>Hr((()=>{let n;do{n=t.next()}while(!n.done&&!e(n.value));return n}));const Kr=(t,e)=>Hr((()=>{const{done:n,value:s}=t.next();return{done:n,value:n?undefined:e(s)}}));var qr=n(70641);class Yr extends s.c{constructor(t,e){super();this.doc=t;this.awareness=e}}class Xr{constructor(t,e){this.clock=t;this.len=e}}class Gr{constructor(){this.clients=new Map}}const Qr=(t,e,n)=>e.clients.forEach(((e,s)=>{const r=t.doc.store.clients.get(s);for(let i=0;i{let n=0;let s=t.length-1;while(n<=s){const r=i.RI((n+s)/2);const o=t[r];const c=o.clock;if(c<=e){if(e{const n=t.clients.get(e.client);return n!==undefined&&Zr(n,e.clock)!==null};const ei=t=>{t.clients.forEach((t=>{t.sort(((t,e)=>t.clock-e.clock));let e,n;for(e=1,n=1;e=r.clock){s.len=i.T9(s.len,r.clock+r.len-s.clock)}else{if(n{const e=new Gr;for(let n=0;n{if(!e.clients.has(i)){const o=s.slice();for(let e=n+1;e{o._4(t.clients,e,(()=>[])).push(new Xr(n,s))};const ri=()=>new Gr;const ii=t=>{const e=ri();t.clients.forEach(((t,n)=>{const s=[];for(let e=0;e0){e.clients.set(n,s)}}));return e};const oi=(t,e)=>{Re(t.restEncoder,e.clients.size);r.HT(e.clients.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([e,n])=>{t.resetDsCurVal();Re(t.restEncoder,e);const s=n.length;Re(t.restEncoder,s);for(let r=0;r{const e=new Gr;const n=In(t.restDecoder);for(let s=0;s0){const r=o._4(e.clients,n,(()=>[]));for(let e=0;e{const s=new Gr;const r=In(t.restDecoder);for(let i=0;i0){const t=new yi;Re(t.restEncoder,0);oi(t,s);return t.toUint8Array()}return null};const hi=ns;class ai extends s.c{constructor({guid:t=os(),collectionid:e=null,gc:n=true,gcFilter:s=()=>true,meta:r=null,autoLoad:i=false,shouldLoad:o=true}={}){super();this.gc=n;this.gcFilter=s;this.clientID=hi();this.guid=t;this.collectionid=e;this.share=new Map;this.store=new Eo;this._transaction=null;this._transactionCleanups=[];this.subdocs=new Set;this._item=null;this.shouldLoad=o;this.autoLoad=i;this.meta=r;this.isLoaded=false;this.isSynced=false;this.whenLoaded=cs((t=>{this.on("load",(()=>{this.isLoaded=true;t(this)}))}));const c=()=>cs((t=>{const e=n=>{if(n===undefined||n===true){this.off("sync",e);t()}};this.on("sync",e)}));this.on("sync",(t=>{if(t===false&&this.isSynced){this.whenSynced=c()}this.isSynced=t===undefined||t===true;if(!this.isLoaded){this.emit("load",[])}}));this.whenSynced=c()}load(){const t=this._item;if(t!==null&&!this.shouldLoad){Jo(t.parent.doc,(t=>{t.subdocsLoaded.add(this)}),null,true)}this.shouldLoad=true}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(r.HT(this.subdocs).map((t=>t.guid)))}transact(t,e=null){Jo(this,t,e)}get(t,e=Tc){const n=o._4(this.share,t,(()=>{const t=new e;t._integrate(this,null);return t}));const s=n.constructor;if(e!==Tc&&s!==e){if(s===Tc){const s=new e;s._map=n._map;n._map.forEach((t=>{for(;t!==null;t=t.left){t.parent=s}}));s._start=n._start;for(let t=s._start;t!==null;t=t.right){t.parent=s}s._length=n._length;this.share.set(t,s);s._integrate(this,null);return s}else{throw new Error(`Type with the name ${t} has already been defined with a different constructor`)}}return n}getArray(t=""){return this.get(t,Yc)}getText(t=""){return this.get(t,pl)}getMap(t=""){return this.get(t,Qc)}getXmlFragment(t=""){return this.get(t,yl)}toJSON(){const t={};this.share.forEach(((e,n)=>{t[n]=e.toJSON()}));return t}destroy(){r.HT(this.subdocs).forEach((t=>t.destroy()));const t=this._item;if(t!==null){this._item=null;const e=t.content;e.doc=new ai({guid:this.guid,...e.opts,shouldLoad:false});e.doc._item=t;Jo(t.parent.doc,(n=>{const s=e.doc;if(!t.deleted){n.subdocsAdded.add(s)}n.subdocsRemoved.add(this)}),null,true)}this.emit("destroyed",[true]);this.emit("destroy",[this]);super.destroy()}on(t,e){super.on(t,e)}off(t,e){super.off(t,e)}}class ui{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return In(this.restDecoder)}readDsLen(){return In(this.restDecoder)}}class di extends ui{readLeftID(){return $i(In(this.restDecoder),In(this.restDecoder))}readRightID(){return $i(In(this.restDecoder),In(this.restDecoder))}readClient(){return In(this.restDecoder)}readInfo(){return En(this.restDecoder)}readString(){return Rn(this.restDecoder)}readParentInfo(){return In(this.restDecoder)===1}readTypeRef(){return In(this.restDecoder)}readLen(){return In(this.restDecoder)}readAny(){return $n(this.restDecoder)}readBuf(){return et(kn(this.restDecoder))}readJSON(){return JSON.parse(Rn(this.restDecoder))}readKey(){return Rn(this.restDecoder)}}class fi{constructor(t){this.dsCurrVal=0;this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){this.dsCurrVal+=In(this.restDecoder);return this.dsCurrVal}readDsLen(){const t=In(this.restDecoder)+1;this.dsCurrVal+=t;return t}}class gi extends fi{constructor(t){super(t);this.keys=[];In(t);this.keyClockDecoder=new Xn(kn(t));this.clientDecoder=new qn(kn(t));this.leftClockDecoder=new Xn(kn(t));this.rightClockDecoder=new Xn(kn(t));this.infoDecoder=new Hn(kn(t),En);this.stringDecoder=new Gn(kn(t));this.parentInfoDecoder=new Hn(kn(t),En);this.typeRefDecoder=new qn(kn(t));this.lenDecoder=new qn(kn(t))}readLeftID(){return new zi(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new zi(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return $n(this.restDecoder)}readBuf(){return kn(this.restDecoder)}readJSON(){return $n(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t{s=i.T9(s,e[0].id.clock);const r=Ao(e,s);Re(t.restEncoder,e.length-r);t.writeClient(n);Re(t.restEncoder,s);const o=e[r];o.write(t,s-o.id.clock);for(let i=r+1;i{const s=new Map;n.forEach(((t,n)=>{if(Do(e,n)>t){s.set(n,t)}}));Co(e).forEach(((t,e)=>{if(!n.has(e)){s.set(e,0)}}));Re(t.restEncoder,s.size);r.HT(s.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([n,s])=>{bi(t,e.clients.get(n),n,s)}))};const _i=(t,e)=>{const n=o.vt();const s=In(t.restDecoder);for(let r=0;r{const s=[];let i=r.HT(n.keys()).sort(((t,e)=>t-e));if(i.length===0){return null}const c=()=>{if(i.length===0){return null}let t=n.get(i[i.length-1]);while(t.refs.length===t.i){i.pop();if(i.length>0){t=n.get(i[i.length-1])}else{return null}}return t};let l=c();if(l===null&&s.length===0){return null}const h=new Eo;const a=new Map;const u=(t,e)=>{const n=a.get(t);if(n==null||n>e){a.set(t,e)}};let d=l.refs[l.i++];const f=new Map;const g=()=>{for(const t of s){const e=t.id.client;const s=n.get(e);if(s){s.i--;h.clients.set(e,s.refs.slice(s.i));n.delete(e);s.i=0;s.refs=[]}else{h.clients.set(e,[t])}i=i.filter((t=>t!==e))}s.length=0};while(true){if(d.constructor!==uh){const r=o._4(f,d.id.client,(()=>Do(e,d.id.client)));const i=r-d.id.clock;if(i<0){s.push(d);u(d.id.client,d.id.clock-1);g()}else{const r=d.getMissing(t,e);if(r!==null){s.push(d);const t=n.get(r)||{refs:[],i:0};if(t.refs.length===t.i){u(r,Do(e,r));g()}else{d=t.refs[t.i++];continue}}else if(i===0||i0){d=s.pop()}else if(l!==null&&l.i0){const t=new yi;ki(t,h,new Map);Re(t.restEncoder,0);return{missing:a,update:t.toUint8Array()}}return null};const Ei=(t,e)=>ki(t,e.doc.store,e.beforeState);const Ci=(t,e,n,s=new gi(t))=>Jo(e,(t=>{t.local=false;let e=false;const n=t.doc;const r=n.store;const i=_i(s,n);const o=Si(t,r,i);const c=r.pendingStructs;if(c){for(const[t,n]of c.missing){if(ne){c.missing.set(t,e)}}c.update=cc([c.update,o.update])}}else{r.pendingStructs=o}const l=li(s,t,r);if(r.pendingDs){const e=new gi(wn(r.pendingDs));In(e.restDecoder);const n=li(e,t,r);if(l&&n){r.pendingDs=cc([l,n])}else{r.pendingDs=l||n}}else{r.pendingDs=l}if(e){const e=r.pendingStructs.update;r.pendingStructs=null;vi(t.doc,e)}}),n,false);const Di=(t,e,n)=>Ci(t,e,n,new di(t));const vi=(t,e,n,s=gi)=>{const r=wn(e);Ci(r,t,n,new s(r))};const Ai=(t,e,n)=>vi(t,e,n,di);const Ti=(t,e,n=new Map)=>{ki(t,e.store,n);oi(t,ii(e.store))};const xi=(t,e=new Uint8Array([0]),n=new yi)=>{const s=Ui(e);Ti(n,t,s);const r=[n.toUint8Array()];if(t.store.pendingDs){r.push(t.store.pendingDs)}if(t.store.pendingStructs){r.push(lc(t.store.pendingStructs.update,e))}if(r.length>1){if(n.constructor===wi){return ec(r.map(((t,e)=>e===0?t:pc(t))))}else if(n.constructor===yi){return cc(r)}}return r[0]};const Ii=(t,e)=>xi(t,e,new wi);const Mi=t=>{const e=new Map;const n=In(t.restDecoder);for(let s=0;sMi(new ui(wn(t)));const Oi=(t,e)=>{Re(t.restEncoder,e.size);r.HT(e.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([e,n])=>{Re(t.restEncoder,e);Re(t.restEncoder,n)}));return t};const Li=(t,e)=>Oi(t,Co(e.store));const Ni=(t,e=new mi)=>{if(t instanceof Map){Oi(e,t)}else{Li(e,t)}return e.toUint8Array()};const Ri=t=>Ni(t,new pi);class Vi{constructor(){this.l=[]}}const Pi=()=>new Vi;const ji=(t,e)=>t.l.push(e);const Bi=(t,e)=>{const n=t.l;const s=n.length;t.l=n.filter((t=>e!==t));if(s===t.l.length){console.error("[yjs] Tried to remove event handler that doesn't exist.")}};const Fi=(t,e,n)=>I.OK(t.l,[e,n]);class zi{constructor(t,e){this.client=t;this.clock=e}}const Ji=(t,e)=>t===e||t!==null&&e!==null&&t.client===e.client&&t.clock===e.clock;const $i=(t,e)=>new zi(t,e);const Hi=(t,e)=>{Re(t,e.client);Re(t,e.clock)};const Wi=t=>$i(In(t),In(t));const Ki=t=>{for(const[e,n]of t.doc.share.entries()){if(n===t){return e}}throw dn()};const qi=(t,e)=>{while(e!==null){if(e.parent===t){return true}e=e.parent._item}return false};const Yi=t=>{const e=[];let n=t._start;while(n){e.push(n);n=n.right}console.log("Children: ",e);console.log("Children content: ",e.filter((t=>!t.deleted)).map((t=>t.content)))};class Xi{constructor(t,e=t.getMap("users")){const n=new Map;this.yusers=e;this.doc=t;this.clients=new Map;this.dss=n;const s=(t,e)=>{const n=t.get("ds");const s=t.get("ids");const r=t=>this.clients.set(t,e);n.observe((t=>{t.changes.added.forEach((t=>{t.content.getContent().forEach((t=>{if(t instanceof Uint8Array){this.dss.set(e,ni([this.dss.get(e)||ri(),ci(new ui(wn(t)))]))}}))}))}));this.dss.set(e,ni(n.map((t=>ci(new ui(wn(t)))))));s.observe((t=>t.changes.added.forEach((t=>t.content.getContent().forEach(r)))));s.forEach(r)};e.observe((t=>{t.keysChanged.forEach((t=>s(e.get(t),t)))}));e.forEach(s)}setUserMapping(t,e,n,{filter:s=()=>true}={}){const r=this.yusers;let i=r.get(n);if(!i){i=new Qc;i.set("ids",new Yc);i.set("ds",new Yc);r.set(n,i)}i.get("ids").push([e]);r.observe((t=>{setTimeout((()=>{const t=r.get(n);if(t!==i){i=t;this.clients.forEach(((t,e)=>{if(n===t){i.get("ids").push([e])}}));const e=new pi;const s=this.dss.get(n);if(s){oi(e,s);i.get("ds").push([e.toUint8Array()])}}}),0)}));t.on("afterTransaction",(t=>{setTimeout((()=>{const e=i.get("ds");const n=t.deleteSet;if(t.local&&n.clients.size>0&&s(t,n)){const t=new pi;oi(t,n);e.push([t.toUint8Array()])}}))}))}getUserByClientId(t){return this.clients.get(t)||null}getUserByDeletedId(t){for(const[e,n]of this.dss.entries()){if(ti(n,t)){return e}}return null}}class Gi{constructor(t,e,n,s=0){this.type=t;this.tname=e;this.item=n;this.assoc=s}}const Qi=t=>{const e={};if(t.type){e.type=t.type}if(t.tname){e.tname=t.tname}if(t.item){e.item=t.item}if(t.assoc!=null){e.assoc=t.assoc}return e};const Zi=t=>new Gi(t.type==null?null:$i(t.type.client,t.type.clock),t.tname||null,t.item==null?null:$i(t.item.client,t.item.clock),t.assoc==null?0:t.assoc);class to{constructor(t,e,n=0){this.type=t;this.index=e;this.assoc=n}}const eo=(t,e,n=0)=>new to(t,e,n);const no=(t,e,n)=>{let s=null;let r=null;if(t._item===null){r=Ki(t)}else{s=$i(t._item.id.client,t._item.id.clock)}return new Gi(s,r,e,n)};const so=(t,e,n=0)=>{let s=t._start;if(n<0){if(e===0){return no(t,null,n)}e--}while(s!==null){if(!s.deleted&&s.countable){if(s.length>e){return no(t,$i(s.id.client,s.id.clock+e),n)}e-=s.length}if(s.right===null&&n<0){return no(t,s.lastId,n)}s=s.right}return no(t,null,n)};const ro=(t,e)=>{const{type:n,tname:s,item:r,assoc:i}=e;if(r!==null){Re(t,0);Hi(t,r)}else if(s!==null){xe(t,1);ze(t,s)}else if(n!==null){xe(t,2);Hi(t,n)}else{throw dn()}Ve(t,i);return t};const io=t=>{const e=Ee();ro(e,t);return De(e)};const oo=t=>{let e=null;let n=null;let s=null;switch(In(t)){case 0:s=Wi(t);break;case 1:n=Rn(t);break;case 2:{e=Wi(t)}}const r=mn(t)?Mn(t):0;return new Gi(e,n,s,r)};const co=t=>oo(wn(t));const lo=(t,e)=>{const n=e.store;const s=t.item;const r=t.type;const i=t.tname;const o=t.assoc;let c=null;let l=0;if(s!==null){if(Do(n,s.client)<=s.clock){return null}const t=sh(n,s);const e=t.item;if(!(e instanceof ch)){return null}c=e.parent;if(c._item===null||!c._item.deleted){l=e.deleted||!e.countable?0:t.diff+(o>=0?0:1);let n=e.left;while(n!==null){if(!n.deleted&&n.countable){l+=n.length}n=n.left}}}else{if(i!==null){c=e.get(i)}else if(r!==null){if(Do(n,r.client)<=r.clock){return null}const{item:t}=sh(n,r);if(t instanceof ch&&t.content instanceof eh){c=t.content.type}else{return null}}else{throw dn()}if(o>=0){l=c._length}else{l=0}}return eo(c,l,t.assoc)};const ho=(t,e)=>t===e||t!==null&&e!==null&&t.tname===e.tname&&Ji(t.item,e.item)&&Ji(t.type,e.type)&&t.assoc===e.assoc;class ao{constructor(t,e){this.ds=t;this.sv=e}}const uo=(t,e)=>{const n=t.ds.clients;const s=e.ds.clients;const r=t.sv;const i=e.sv;if(r.size!==i.size||n.size!==s.size){return false}for(const[o,c]of r.entries()){if(i.get(o)!==c){return false}}for(const[o,c]of n.entries()){const t=s.get(o)||[];if(c.length!==t.length){return false}for(let e=0;e{oi(e,t.ds);Oi(e,t.sv);return e.toUint8Array()};const go=t=>fo(t,new pi);const po=(t,e=new fi(wn(t)))=>new ao(ci(e),Mi(e));const wo=t=>po(t,new ui(wn(t)));const mo=(t,e)=>new ao(t,e);const yo=mo(ri(),new Map);const bo=t=>mo(ii(t.store),Co(t.store));const ko=(t,e)=>e===undefined?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!ti(e.ds,t.id);const _o=(t,e)=>{const n=o._4(t.meta,_o,ws.vt);const s=t.doc.store;if(!n.has(e)){e.sv.forEach(((e,n)=>{if(e{}));n.add(e)}};const So=(t,e,n=new ai)=>{if(t.gc){throw new Error("originDoc must not be garbage collected")}const{sv:s,ds:r}=e;const i=new yi;t.transact((e=>{let n=0;s.forEach((t=>{if(t>0){n++}}));Re(i.restEncoder,n);for(const[r,o]of s){if(o===0){continue}if(o{const e=new Map;t.clients.forEach(((t,n)=>{const s=t[t.length-1];e.set(n,s.id.clock+s.length)}));return e};const Do=(t,e)=>{const n=t.clients.get(e);if(n===undefined){return 0}const s=n[n.length-1];return s.id.clock+s.length};const vo=(t,e)=>{let n=t.clients.get(e.id.client);if(n===undefined){n=[];t.clients.set(e.id.client,n)}else{const t=n[n.length-1];if(t.id.clock+t.length!==e.id.clock){throw dn()}}n.push(e)};const Ao=(t,e)=>{let n=0;let s=t.length-1;let r=t[s];let o=r.id.clock;if(o===e){return s}let c=i.RI(e/(o+r.length-1)*s);while(n<=s){r=t[c];o=r.id.clock;if(o<=e){if(e{const n=t.clients.get(e.client);return n[Ao(n,e.clock)]};const xo=To;const Io=(t,e,n)=>{const s=Ao(e,n);const r=e[s];if(r.id.clock{const n=t.doc.store.clients.get(e.client);return n[Io(t,n,e.clock)]};const Uo=(t,e,n)=>{const s=e.clients.get(n.client);const r=Ao(s,n.clock);const i=s[r];if(n.clock!==i.id.clock+i.length-1&&i.constructor!==xl){s.splice(r+1,0,ih(t,i,n.clock-i.id.clock+1))}return i};const Oo=(t,e,n)=>{const s=t.clients.get(e.id.client);s[Ao(s,e.id.clock)]=n};const Lo=(t,e,n,s,r)=>{if(s===0){return}const i=n+s;let o=Io(t,e,n);let c;do{c=e[o++];if(i{if(e.deleteSet.clients.size===0&&!o.bz(e.afterState,((t,n)=>e.beforeState.get(n)!==t))){return false}ei(e.deleteSet);Ei(t,e);oi(t,e.deleteSet);return true};const Vo=(t,e,n)=>{const s=e._item;if(s===null||s.id.clock<(t.beforeState.get(s.id.client)||0)&&!s.deleted){o._4(t.changed,e,ws.vt).add(n)}};const Po=(t,e)=>{const n=t[e-1];const s=t[e];if(n.deleted===s.deleted&&n.constructor===s.constructor){if(n.mergeWith(s)){t.splice(e,1);if(s instanceof ch&&s.parentSub!==null&&s.parent._map.get(s.parentSub)===s){s.parent._map.set(s.parentSub,n)}}}};const jo=(t,e,n)=>{for(const[s,r]of t.clients.entries()){const t=e.clients.get(s);for(let s=r.length-1;s>=0;s--){const i=r[s];const o=i.clock+i.len;for(let s=Ao(t,i.clock),r=t[s];s{t.clients.forEach(((t,n)=>{const s=e.clients.get(n);for(let e=t.length-1;e>=0;e--){const n=t[e];const r=i.jk(s.length-1,1+Ao(s,n.clock+n.len-1));for(let t=r,e=s[t];t>0&&e.id.clock>=n.clock;e=s[--t]){Po(s,t)}}}))};const Fo=(t,e,n)=>{jo(t,e,n);Bo(t,e)};const zo=(t,e)=>{if(et.push((()=>{if(s._item===null||!s._item.deleted){s._callObserver(n,e)}}))));t.push((()=>{n.changedParentTypes.forEach(((e,s)=>t.push((()=>{if(s._item===null||!s._item.deleted){e=e.filter((t=>t.target._item===null||!t.target._item.deleted));e.forEach((t=>{t.currentTarget=s}));e.sort(((t,e)=>t.path.length-e.path.length));Fi(s._dEH,e,n)}}))));t.push((()=>s.emit("afterTransaction",[n,s])))}));(0,I.OK)(t,[])}finally{if(s.gc){jo(o,r,s.gcFilter)}Bo(o,r);n.afterState.forEach(((t,e)=>{const s=n.beforeState.get(e)||0;if(s!==t){const t=r.clients.get(e);const n=i.T9(Ao(t,s),1);for(let e=t.length-1;e>=n;e--){Po(t,e)}}}));for(let t=0;t0){Po(s,i)}}if(!n.local&&n.afterState.get(s.clientID)!==n.beforeState.get(s.clientID)){Dr(mr,ar,"[yjs] ",ur,pr,"Changed the client-id because another client seems to be using it.");s.clientID=hi()}s.emit("afterTransactionCleanup",[n,s]);if(s._observers.has("update")){const t=new wi;const e=Ro(t,n);if(e){s.emit("update",[t.toUint8Array(),n.origin,s,n])}}if(s._observers.has("updateV2")){const t=new yi;const e=Ro(t,n);if(e){s.emit("updateV2",[t.toUint8Array(),n.origin,s,n])}}const{subdocsAdded:l,subdocsLoaded:h,subdocsRemoved:a}=n;if(l.size>0||a.size>0||h.size>0){l.forEach((t=>{t.clientID=s.clientID;if(t.collectionid==null){t.collectionid=s.collectionid}s.subdocs.add(t)}));a.forEach((t=>s.subdocs.delete(t)));s.emit("subdocs",[{loaded:h,added:l,removed:a},s,n]);a.forEach((t=>t.destroy()))}if(t.length<=e+1){s._transactionCleanups=[];s.emit("afterAllTransactions",[s,t])}else{zo(t,e+1)}}}};const Jo=(t,e,n=null,s=true)=>{const r=t._transactionCleanups;let i=false;let o=null;if(t._transaction===null){i=true;t._transaction=new No(t,n,s);r.push(t._transaction);if(r.length===1){t.emit("beforeAllTransactions",[t])}t.emit("beforeTransaction",[t._transaction,t])}try{o=e(t._transaction)}finally{if(i){const e=t._transaction===r[0];t._transaction=null;if(e){zo(r,0)}}}return o};class $o{constructor(t,e){this.insertions=e;this.deletions=t;this.meta=new Map}}const Ho=(t,e,n)=>{Qr(t,n.deletions,(t=>{if(t instanceof ch&&e.scope.some((e=>qi(e,t)))){rh(t,false)}}))};const Wo=(t,e,n)=>{let s=null;let r=null;const i=t.doc;const o=t.scope;Jo(i,(n=>{while(e.length>0&&s===null){const r=i.store;const c=e.pop();const l=new Set;const h=[];let a=false;Qr(n,c.insertions,(t=>{if(t instanceof ch){if(t.redone!==null){let{item:e,diff:s}=sh(r,t.id);if(s>0){e=Mo(n,$i(e.id.client,e.id.clock+s))}t=e}if(!t.deleted&&o.some((e=>qi(e,t)))){h.push(t)}}}));Qr(n,c.deletions,(t=>{if(t instanceof ch&&o.some((e=>qi(e,t)))&&!ti(c.insertions,t.id)){l.add(t)}}));l.forEach((e=>{a=oh(n,e,l,c.insertions,t.ignoreRemoteMapChanges)!==null||a}));for(let e=h.length-1;e>=0;e--){const s=h[e];if(t.deleteFilter(s)){s.delete(n);a=true}}s=a?c:null}n.changed.forEach(((t,e)=>{if(t.has(null)&&e._searchMarker){e._searchMarker.length=0}}));r=n}),t);if(s!=null){const e=r.changedParentTypes;t.emit("stack-item-popped",[{stackItem:s,type:n,changedParentTypes:e},t])}return s};class Ko extends s.c{constructor(t,{captureTimeout:e=500,captureTransaction:n=t=>true,deleteFilter:s=()=>true,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:o=false,doc:c=(r.cy(t)?t[0].doc:t.doc)}={}){super();this.scope=[];this.addToScope(t);this.deleteFilter=s;i.add(this);this.trackedOrigins=i;this.captureTransaction=n;this.undoStack=[];this.redoStack=[];this.undoing=false;this.redoing=false;this.doc=c;this.lastChange=0;this.ignoreRemoteMapChanges=o;this.captureTimeout=e;this.afterTransactionHandler=t=>{if(!this.captureTransaction(t)||!this.scope.some((e=>t.changedParentTypes.has(e)))||!this.trackedOrigins.has(t.origin)&&(!t.origin||!this.trackedOrigins.has(t.origin.constructor))){return}const e=this.undoing;const n=this.redoing;const s=e?this.redoStack:this.undoStack;if(e){this.stopCapturing()}else if(!n){this.clear(false,true)}const r=new Gr;t.afterState.forEach(((e,n)=>{const s=t.beforeState.get(n)||0;const i=e-s;if(i>0){si(r,n,s,i)}}));const i=hr._g();let o=false;if(this.lastChange>0&&i-this.lastChange0&&!e&&!n){const e=s[s.length-1];e.deletions=ni([e.deletions,t.deleteSet]);e.insertions=ni([e.insertions,r])}else{s.push(new $o(t.deleteSet,r));o=true}if(!e&&!n){this.lastChange=i}Qr(t,t.deleteSet,(t=>{if(t instanceof ch&&this.scope.some((e=>qi(e,t)))){rh(t,true)}}));const c=[{stackItem:s[s.length-1],origin:t.origin,type:e?"redo":"undo",changedParentTypes:t.changedParentTypes},this];if(o){this.emit("stack-item-added",c)}else{this.emit("stack-item-updated",c)}};this.doc.on("afterTransaction",this.afterTransactionHandler);this.doc.on("destroy",(()=>{this.destroy()}))}addToScope(t){t=r.cy(t)?t:[t];t.forEach((t=>{if(this.scope.every((e=>e!==t))){this.scope.push(t)}}))}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=true,e=true){if(t&&this.canUndo()||e&&this.canRedo()){this.doc.transact((n=>{if(t){this.undoStack.forEach((t=>Ho(n,this,t)));this.undoStack=[]}if(e){this.redoStack.forEach((t=>Ho(n,this,t)));this.redoStack=[]}this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:e}])}))}}stopCapturing(){this.lastChange=0}undo(){this.undoing=true;let t;try{t=Wo(this,this.undoStack,"undo")}finally{this.undoing=false}return t}redo(){this.redoing=true;let t;try{t=Wo(this,this.redoStack,"redo")}finally{this.redoing=false}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this);this.doc.off("afterTransaction",this.afterTransactionHandler);super.destroy()}}function*qo(t){const e=In(t.restDecoder);for(let n=0;nGo(t,di);const Go=(t,e=gi)=>{const n=[];const s=new e(wn(t));const r=new Yo(s,false);for(let o=r.curr;o!==null;o=r.next()){n.push(o)}Dr("Structs: ",n);const i=ci(s);Dr("DeleteSet: ",i)};const Qo=t=>Zo(t,di);const Zo=(t,e=gi)=>{const n=[];const s=new e(wn(t));const r=new Yo(s,false);for(let i=r.curr;i!==null;i=r.next()){n.push(i)}return{structs:n,ds:ci(s)}};class tc{constructor(t){this.currClient=0;this.startClock=0;this.written=0;this.encoder=t;this.clientStructs=[]}}const ec=t=>cc(t,di,wi);const nc=(t,e=mi,n=gi)=>{const s=new e;const r=new Yo(new n(wn(t)),false);let i=r.curr;if(i!==null){let t=0;let e=i.id.client;let n=i.id.clock!==0;let o=n?0:i.id.clock+i.length;for(;i!==null;i=r.next()){if(e!==i.id.client){if(o!==0){t++;Re(s.restEncoder,e);Re(s.restEncoder,o)}e=i.id.client;o=0;n=i.id.clock!==0}if(i.constructor===uh){n=true}if(!n){o=i.id.clock+i.length}}if(o!==0){t++;Re(s.restEncoder,e);Re(s.restEncoder,o)}const c=Ee();Re(c,t);Je(c,s.restEncoder);s.restEncoder=c;return s.toUint8Array()}else{Re(s.restEncoder,0);return s.toUint8Array()}};const sc=t=>nc(t,pi,di);const rc=(t,e=gi)=>{const n=new Map;const s=new Map;const r=new Yo(new e(wn(t)),false);let i=r.curr;if(i!==null){let t=i.id.client;let e=i.id.clock;n.set(t,e);for(;i!==null;i=r.next()){if(t!==i.id.client){s.set(t,e);n.set(i.id.client,i.id.clock);t=i.id.client}e=i.id.clock+i.length}s.set(t,e)}return{from:n,to:s}};const ic=t=>rc(t,di);const oc=(t,e)=>{if(t.constructor===xl){const{client:n,clock:s}=t.id;return new xl($i(n,s+e),t.length-e)}else if(t.constructor===uh){const{client:n,clock:s}=t.id;return new uh($i(n,s+e),t.length-e)}else{const n=t;const{client:s,clock:r}=n.id;return new ch($i(s,r+e),null,$i(s,r+e-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(e))}};const cc=(t,e=gi,n=yi)=>{if(t.length===1){return t[0]}const s=t.map((t=>new e(wn(t))));let r=s.map((t=>new Yo(t,true)));let i=null;const o=new n;const c=new tc(o);while(true){r=r.filter((t=>t.curr!==null));r.sort(((t,e)=>{if(t.curr.id.client===e.curr.id.client){const n=t.curr.id.clock-e.curr.id.clock;if(n===0){return t.curr.constructor===e.curr.constructor?0:t.curr.constructor===uh?1:-1}else{return n}}else{return e.curr.id.client-t.curr.id.client}}));if(r.length===0){break}const t=r[0];const e=t.curr.id.client;if(i!==null){let n=t.curr;let s=false;while(n!==null&&n.id.clock+n.length<=i.struct.id.clock+i.struct.length&&n.id.client>=i.struct.id.client){n=t.next();s=true}if(n===null||n.id.client!==e||s&&n.id.clock>i.struct.id.clock+i.struct.length){continue}if(e!==i.struct.id.client){uc(c,i.struct,i.offset);i={struct:n,offset:0};t.next()}else{if(i.struct.id.clock+i.struct.length0){if(i.struct.constructor===uh){i.struct.length-=e}else{n=oc(n,e)}}if(!i.struct.mergeWith(n)){uc(c,i.struct,i.offset);i={struct:n,offset:0};t.next()}}}}else{i={struct:t.curr,offset:0};t.next()}for(let n=t.curr;n!==null&&n.id.client===e&&n.id.clock===i.struct.id.clock+i.struct.length&&n.constructor!==uh;n=t.next()){uc(c,i.struct,i.offset);i={struct:n,offset:0}}}if(i!==null){uc(c,i.struct,i.offset);i=null}dc(c);const l=s.map((t=>ci(t)));const h=ni(l);oi(o,h);return o.toUint8Array()};const lc=(t,e,n=gi,s=yi)=>{const r=Ui(e);const o=new s;const c=new tc(o);const l=new n(wn(t));const h=new Yo(l,false);while(h.curr){const t=h.curr;const e=t.id.client;const n=r.get(e)||0;if(h.curr.constructor===uh){h.next();continue}if(t.id.clock+t.length>n){uc(c,t,i.T9(n-t.id.clock,0));h.next();while(h.curr&&h.curr.id.client===e){uc(c,h.curr,0);h.next()}}else{while(h.curr&&h.curr.id.client===e&&h.curr.id.clock+h.curr.length<=n){h.next()}}}dc(c);const a=ci(l);oi(o,a);return o.toUint8Array()};const hc=(t,e)=>lc(t,e,di,wi);const ac=t=>{if(t.written>0){t.clientStructs.push({written:t.written,restEncoder:De(t.encoder.restEncoder)});t.encoder.restEncoder=Ee();t.written=0}};const uc=(t,e,n)=>{if(t.written>0&&t.currClient!==e.id.client){ac(t)}if(t.written===0){t.currClient=e.id.client;t.encoder.writeClient(e.id.client);Re(t.encoder.restEncoder,e.id.clock+n)}e.write(t.encoder,n);t.written++};const dc=t=>{ac(t);const e=t.encoder.restEncoder;Re(e,t.clientStructs.length);for(let n=0;n{const s=new e(wn(t));const r=new Yo(s,false);const i=new n;const o=new tc(i);for(let l=r.curr;l!==null;l=r.next()){uc(o,l,0)}dc(o);const c=ci(s);oi(i,c);return i.toUint8Array()};const gc=t=>fc(t,di,yi);const pc=t=>fc(t,gi,wi);class wc{constructor(t,e){this.target=t;this.currentTarget=t;this.transaction=e;this._changes=null;this._keys=null;this._delta=null}get path(){return mc(this.currentTarget,this.target)}deletes(t){return ti(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){const t=new Map;const e=this.target;const n=this.transaction.changed.get(e);n.forEach((n=>{if(n!==null){const s=e._map.get(n);let i;let o;if(this.adds(s)){let t=s.left;while(t!==null&&this.adds(t)){t=t.left}if(this.deletes(s)){if(t!==null&&this.deletes(t)){i="delete";o=r.HV(t.content.getContent())}else{return}}else{if(t!==null&&this.deletes(t)){i="update";o=r.HV(t.content.getContent())}else{i="add";o=undefined}}}else{if(this.deletes(s)){i="delete";o=r.HV(s.content.getContent())}else{return}}t.set(n,{action:i,oldValue:o})}}));this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){const e=this.target;const n=ws.vt();const s=ws.vt();const r=[];t={added:n,deleted:s,delta:r,keys:this.keys};const i=this.transaction.changed.get(e);if(i.has(null)){let t=null;const i=()=>{if(t){r.push(t)}};for(let r=e._start;r!==null;r=r.right){if(r.deleted){if(this.deletes(r)&&!this.adds(r)){if(t===null||t.delete===undefined){i();t={delete:0}}t.delete+=r.length;s.add(r)}}else{if(this.adds(r)){if(t===null||t.insert===undefined){i();t={insert:[]}}t.insert=t.insert.concat(r.content.getContent());n.add(r)}else{if(t===null||t.retain===undefined){i();t={retain:0}}t.retain+=r.length}}}if(t!==null&&t.retain===undefined){i()}}this._changes=t}return t}}const mc=(t,e)=>{const n=[];while(e._item!==null&&e!==t){if(e._item.parentSub!==null){n.unshift(e._item.parentSub)}else{let t=0;let s=e._item.parent._start;while(s!==e._item&&s!==null){if(!s.deleted){t++}s=s.right}n.unshift(t)}e=e._item.parent}return n};const yc=80;let bc=0;class kc{constructor(t,e){t.marker=true;this.p=t;this.index=e;this.timestamp=bc++}}const _c=t=>{t.timestamp=bc++};const Sc=(t,e,n)=>{t.p.marker=false;t.p=e;e.marker=true;t.index=n;t.timestamp=bc++};const Ec=(t,e,n)=>{if(t.length>=yc){const s=t.reduce(((t,e)=>t.timestamp{if(t._start===null||e===0||t._searchMarker===null){return null}const n=t._searchMarker.length===0?null:t._searchMarker.reduce(((t,n)=>i.tn(e-t.index)e){s=s.left;if(!s.deleted&&s.countable){r-=s.length}}while(s.left!==null&&s.left.id.client===s.id.client&&s.left.id.clock+s.left.length===s.id.clock){s=s.left;if(!s.deleted&&s.countable){r-=s.length}}if(n!==null&&i.tn(n.index-r){for(let s=t.length-1;s>=0;s--){const r=t[s];if(n>0){let e=r.p;e.marker=false;while(e&&(e.deleted||!e.countable)){e=e.left;if(e&&!e.deleted&&e.countable){r.index-=e.length}}if(e===null||e.marker===true){t.splice(s,1);continue}r.p=e;e.marker=true}if(e0&&e===r.index){r.index=i.T9(e,r.index+n)}}};const vc=t=>{let e=t._start;const n=[];while(e){n.push(e);e=e.right}return n};const Ac=(t,e,n)=>{const s=t;const r=e.changedParentTypes;while(true){o._4(r,t,(()=>[])).push(n);if(t._item===null){break}t=t._item.parent}Fi(s._eH,n,e)};class Tc{constructor(){this._item=null;this._map=new Map;this._start=null;this.doc=null;this._length=0;this._eH=Pi();this._dEH=Pi();this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t;this._item=e}_copy(){throw un()}clone(){throw un()}_write(t){}get _first(){let t=this._start;while(t!==null&&t.deleted){t=t.right}return t}_callObserver(t,e){if(!t.local&&this._searchMarker){this._searchMarker.length=0}}observe(t){ji(this._eH,t)}observeDeep(t){ji(this._dEH,t)}unobserve(t){Bi(this._eH,t)}unobserveDeep(t){Bi(this._dEH,t)}toJSON(){}}const xc=(t,e,n)=>{if(e<0){e=t._length+e}if(n<0){n=t._length+n}let s=n-e;const r=[];let i=t._start;while(i!==null&&s>0){if(i.countable&&!i.deleted){const t=i.content.getContent();if(t.length<=e){e-=t.length}else{for(let n=e;n0;n++){r.push(t[n]);s--}e=0}}i=i.right}return r};const Ic=t=>{const e=[];let n=t._start;while(n!==null){if(n.countable&&!n.deleted){const t=n.content.getContent();for(let n=0;n{const n=[];let s=t._start;while(s!==null){if(s.countable&&ko(s,e)){const t=s.content.getContent();for(let e=0;e{let n=0;let s=t._start;while(s!==null){if(s.countable&&!s.deleted){const r=s.content.getContent();for(let s=0;s{const n=[];Uc(t,((s,r)=>{n.push(e(s,r,t))}));return n};const Lc=t=>{let e=t._start;let n=null;let s=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){while(e!==null&&e.deleted){e=e.right}if(e===null){return{done:true,value:undefined}}n=e.content.getContent();s=0;e=e.right}const t=n[s++];if(n.length<=s){n=null}return{done:false,value:t}}}};const Nc=(t,e)=>{const n=Cc(t,e);let s=t._start;if(n!==null){s=n.p;e-=n.index}for(;s!==null;s=s.right){if(!s.deleted&&s.countable){if(e{let r=n;const i=t.doc;const o=i.clientID;const c=i.store;const l=n===null?e._start:n.right;let h=[];const a=()=>{if(h.length>0){r=new ch($i(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Jl(h));r.integrate(t,0);h=[]}};s.forEach((n=>{if(n===null){h.push(n)}else{switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:h.push(n);break;default:a();switch(n.constructor){case Uint8Array:case ArrayBuffer:r=new ch($i(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Il(new Uint8Array(n)));r.integrate(t,0);break;case ai:r=new ch($i(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Nl(n));r.integrate(t,0);break;default:if(n instanceof Tc){r=new ch($i(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new eh(n));r.integrate(t,0)}else{throw new Error("Unexpected content type in insert operation")}}}}}));a()};const Vc=an("Length exceeded!");const Pc=(t,e,n,s)=>{if(n>e._length){throw Vc}if(n===0){if(e._searchMarker){Dc(e._searchMarker,n,s.length)}return Rc(t,e,null,s)}const r=n;const i=Cc(e,n);let o=e._start;if(i!==null){o=i.p;n-=i.index;if(n===0){o=o.prev;n+=o&&o.countable&&!o.deleted?o.length:0}}for(;o!==null;o=o.right){if(!o.deleted&&o.countable){if(n<=o.length){if(n{const s=(e._searchMarker||[]).reduce(((t,e)=>e.index>t.index?e:t),{index:0,p:e._start});let r=s.p;if(r){while(r.right){r=r.right}}return Rc(t,e,r,n)};const Bc=(t,e,n,s)=>{if(s===0){return}const r=n;const i=s;const o=Cc(e,n);let c=e._start;if(o!==null){c=o.p;n-=o.index}for(;c!==null&&n>0;c=c.right){if(!c.deleted&&c.countable){if(n0&&c!==null){if(!c.deleted){if(s0){throw Vc}if(e._searchMarker){Dc(e._searchMarker,r,-i+s)}};const Fc=(t,e,n)=>{const s=e._map.get(n);if(s!==undefined){s.delete(t)}};const zc=(t,e,n,s)=>{const r=e._map.get(n)||null;const i=t.doc;const o=i.clientID;let c;if(s==null){c=new Jl([s])}else{switch(s.constructor){case Number:case Object:case Boolean:case Array:case String:c=new Jl([s]);break;case Uint8Array:c=new Il(s);break;case ai:c=new Nl(s);break;default:if(s instanceof Tc){c=new eh(s)}else{throw new Error("Unexpected content type")}}}new ch($i(o,Do(i.store,o)),r,r&&r.lastId,null,null,e,n,c).integrate(t,0)};const Jc=(t,e)=>{const n=t._map.get(e);return n!==undefined&&!n.deleted?n.content.getContent()[n.length-1]:undefined};const $c=t=>{const e={};t._map.forEach(((t,n)=>{if(!t.deleted){e[n]=t.content.getContent()[t.length-1]}}));return e};const Hc=(t,e)=>{const n=t._map.get(e);return n!==undefined&&!n.deleted};const Wc=(t,e,n)=>{let s=t._map.get(e)||null;while(s!==null&&(!n.sv.has(s.id.client)||s.id.clock>=(n.sv.get(s.id.client)||0))){s=s.left}return s!==null&&ko(s,n)?s.content.getContent()[s.length-1]:undefined};const Kc=t=>Wr(t.entries(),(t=>!t[1].deleted));class qc extends wc{constructor(t,e){super(t,e);this._transaction=e}}class Yc extends Tc{constructor(){super();this._prelimContent=[];this._searchMarker=[]}static from(t){const e=new Yc;e.push(t);return e}_integrate(t,e){super._integrate(t,e);this.insert(0,this._prelimContent);this._prelimContent=null}_copy(){return new Yc}clone(){const t=new Yc;t.insert(0,this.toArray().map((t=>t instanceof Tc?t.clone():t)));return t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,e){super._callObserver(t,e);Ac(this,t,new qc(this,t))}insert(t,e){if(this.doc!==null){Jo(this.doc,(n=>{Pc(n,this,t,e)}))}else{this._prelimContent.splice(t,0,...e)}}push(t){if(this.doc!==null){Jo(this.doc,(e=>{jc(e,this,t)}))}else{this._prelimContent.push(...t)}}unshift(t){this.insert(0,t)}delete(t,e=1){if(this.doc!==null){Jo(this.doc,(n=>{Bc(n,this,t,e)}))}else{this._prelimContent.splice(t,e)}}get(t){return Nc(this,t)}toArray(){return Ic(this)}slice(t=0,e=this.length){return xc(this,t,e)}toJSON(){return this.map((t=>t instanceof Tc?t.toJSON():t))}map(t){return Oc(this,t)}forEach(t){Uc(this,t)}[Symbol.iterator](){return Lc(this)}_write(t){t.writeTypeRef(ql)}}const Xc=t=>new Yc;class Gc extends wc{constructor(t,e,n){super(t,e);this.keysChanged=n}}class Qc extends Tc{constructor(t){super();this._prelimContent=null;if(t===undefined){this._prelimContent=new Map}else{this._prelimContent=new Map(t)}}_integrate(t,e){super._integrate(t,e);this._prelimContent.forEach(((t,e)=>{this.set(e,t)}));this._prelimContent=null}_copy(){return new Qc}clone(){const t=new Qc;this.forEach(((e,n)=>{t.set(n,e instanceof Tc?e.clone():e)}));return t}_callObserver(t,e){Ac(this,t,new Gc(this,t,e))}toJSON(){const t={};this._map.forEach(((e,n)=>{if(!e.deleted){const s=e.content.getContent()[e.length-1];t[n]=s instanceof Tc?s.toJSON():s}}));return t}get size(){return[...Kc(this._map)].length}keys(){return Kr(Kc(this._map),(t=>t[0]))}values(){return Kr(Kc(this._map),(t=>t[1].content.getContent()[t[1].length-1]))}entries(){return Kr(Kc(this._map),(t=>[t[0],t[1].content.getContent()[t[1].length-1]]))}forEach(t){this._map.forEach(((e,n)=>{if(!e.deleted){t(e.content.getContent()[e.length-1],n,this)}}))}[Symbol.iterator](){return this.entries()}delete(t){if(this.doc!==null){Jo(this.doc,(e=>{Fc(e,this,t)}))}else{this._prelimContent.delete(t)}}set(t,e){if(this.doc!==null){Jo(this.doc,(n=>{zc(n,this,t,e)}))}else{this._prelimContent.set(t,e)}return e}get(t){return Jc(this,t)}has(t){return Hc(this,t)}clear(){if(this.doc!==null){Jo(this.doc,(t=>{this.forEach((function(e,n,s){Fc(t,s,n)}))}))}else{this._prelimContent.clear()}}_write(t){t.writeTypeRef(Yl)}}const Zc=t=>new Qc;const tl=(t,e)=>t===e||typeof t==="object"&&typeof e==="object"&&t&&e&&qr.SQ(t,e);class el{constructor(t,e,n,s){this.left=t;this.right=e;this.index=n;this.currentAttributes=s}forward(){if(this.right===null){dn()}switch(this.right.content.constructor){case jl:if(!this.right.deleted){il(this.currentAttributes,this.right.content)}break;default:if(!this.right.deleted){this.index+=this.right.length}break}this.left=this.right;this.right=this.right.right}}const nl=(t,e,n)=>{while(e.right!==null&&n>0){switch(e.right.content.constructor){case jl:if(!e.right.deleted){il(e.currentAttributes,e.right.content)}break;default:if(!e.right.deleted){if(n{const s=new Map;const r=Cc(e,n);if(r){const e=new el(r.p.left,r.p,r.index,s);return nl(t,e,n-r.index)}else{const r=new el(null,e._start,0,s);return nl(t,r,n)}};const rl=(t,e,n,s)=>{while(n.right!==null&&(n.right.deleted===true||n.right.content.constructor===jl&&tl(s.get(n.right.content.key),n.right.content.value))){if(!n.right.deleted){s.delete(n.right.content.key)}n.forward()}const r=t.doc;const i=r.clientID;s.forEach(((s,o)=>{const c=n.left;const l=n.right;const h=new ch($i(i,Do(r.store,i)),c,c&&c.lastId,l,l&&l.id,e,null,new jl(o,s));h.integrate(t,0);n.right=h;n.forward()}))};const il=(t,e)=>{const{key:n,value:s}=e;if(s===null){t.delete(n)}else{t.set(n,s)}};const ol=(t,e)=>{while(true){if(t.right===null){break}else if(t.right.deleted||t.right.content.constructor===jl&&tl(e[t.right.content.key]||null,t.right.content.value));else{break}t.forward()}};const cl=(t,e,n,s)=>{const r=t.doc;const i=r.clientID;const o=new Map;for(const c in s){const l=s[c];const h=n.currentAttributes.get(c)||null;if(!tl(h,l)){o.set(c,h);const{left:s,right:a}=n;n.right=new ch($i(i,Do(r.store,i)),s,s&&s.lastId,a,a&&a.id,e,null,new jl(c,l));n.right.integrate(t,0);n.forward()}}return o};const ll=(t,e,n,s,r)=>{n.currentAttributes.forEach(((t,e)=>{if(r[e]===undefined){r[e]=null}}));const i=t.doc;const o=i.clientID;ol(n,r);const c=cl(t,e,n,r);const l=s.constructor===String?new Hl(s):s instanceof Tc?new eh(s):new Vl(s);let{left:h,right:a,index:u}=n;if(e._searchMarker){Dc(e._searchMarker,n.index,l.getLength())}a=new ch($i(o,Do(i.store,o)),h,h&&h.lastId,a,a&&a.id,e,null,l);a.integrate(t,0);n.right=a;n.index=u;n.forward();rl(t,e,n,c)};const hl=(t,e,n,s,r)=>{const i=t.doc;const o=i.clientID;ol(n,r);const c=cl(t,e,n,r);t:while(n.right!==null&&(s>0||c.size>0&&(n.right.deleted||n.right.content.constructor===jl))){if(!n.right.deleted){switch(n.right.content.constructor){case jl:{const{key:e,value:i}=n.right.content;const o=r[e];if(o!==undefined){if(tl(o,i)){c.delete(e)}else{if(s===0){break t}c.set(e,i)}n.right.delete(t)}else{n.currentAttributes.set(e,i)}break}default:if(s0){let r="";for(;s>0;s--){r+="\n"}n.right=new ch($i(o,Do(i.store,o)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,e,null,new Hl(r));n.right.integrate(t,0);n.forward()}rl(t,e,n,c)};const al=(t,e,n,s,r)=>{let i=e;const c=o.vt();while(i&&(!i.countable||i.deleted)){if(!i.deleted&&i.content.constructor===jl){const t=i.content;c.set(t.key,t)}i=i.right}let l=0;let h=false;while(e!==i){if(n===e){h=true}if(!e.deleted){const n=e.content;switch(n.constructor){case jl:{const{key:i,value:o}=n;const a=s.get(i)||null;if(c.get(i)!==n||a===o){e.delete(t);l++;if(!h&&(r.get(i)||null)===o&&a!==o){if(a===null){r.delete(i)}else{r.set(i,a)}}}if(!h&&!e.deleted){il(r,n)}break}}}e=e.right}return l};const ul=(t,e)=>{while(e&&e.right&&(e.right.deleted||!e.right.countable)){e=e.right}const n=new Set;while(e&&(e.deleted||!e.countable)){if(!e.deleted&&e.content.constructor===jl){const s=e.content.key;if(n.has(s)){e.delete(t)}else{n.add(s)}}e=e.left}};const dl=t=>{let e=0;Jo(t.doc,(n=>{let s=t._start;let r=t._start;let i=o.vt();const c=o.C(i);while(r){if(r.deleted===false){switch(r.content.constructor){case jl:il(c,r.content);break;default:e+=al(n,s,r,i,c);i=o.C(c);s=r;break}}r=r.right}}));return e};const fl=(t,e,n)=>{const s=n;const r=o.C(e.currentAttributes);const i=e.right;while(n>0&&e.right!==null){if(e.right.deleted===false){switch(e.right.content.constructor){case eh:case Vl:case Hl:if(n{if(t===null){this.childListChanged=true}else{this.keysChanged.add(t)}}))}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc;const e=[];Jo(t,(t=>{const n=new Map;const s=new Map;let r=this.target._start;let i=null;const o={};let c="";let l=0;let h=0;const a=()=>{if(i!==null){let t;switch(i){case"delete":t={delete:h};h=0;break;case"insert":t={insert:c};if(n.size>0){t.attributes={};n.forEach(((e,n)=>{if(e!==null){t.attributes[n]=e}}))}c="";break;case"retain":t={retain:l};if(Object.keys(o).length>0){t.attributes={};for(const e in o){t.attributes[e]=o[e]}}l=0;break}e.push(t);i=null}};while(r!==null){switch(r.content.constructor){case eh:case Vl:if(this.adds(r)){if(!this.deletes(r)){a();i="insert";c=r.content.getContent()[0];a()}}else if(this.deletes(r)){if(i!=="delete"){a();i="delete"}h+=1}else if(!r.deleted){if(i!=="retain"){a();i="retain"}l+=1}break;case Hl:if(this.adds(r)){if(!this.deletes(r)){if(i!=="insert"){a();i="insert"}c+=r.content.str}}else if(this.deletes(r)){if(i!=="delete"){a();i="delete"}h+=r.length}else if(!r.deleted){if(i!=="retain"){a();i="retain"}l+=r.length}break;case jl:{const{key:e,value:c}=r.content;if(this.adds(r)){if(!this.deletes(r)){const l=n.get(e)||null;if(!tl(l,c)){if(i==="retain"){a()}if(tl(c,s.get(e)||null)){delete o[e]}else{o[e]=c}}else if(c!==null){r.delete(t)}}}else if(this.deletes(r)){s.set(e,c);const t=n.get(e)||null;if(!tl(t,c)){if(i==="retain"){a()}o[e]=t}}else if(!r.deleted){s.set(e,c);const n=o[e];if(n!==undefined){if(!tl(n,c)){if(i==="retain"){a()}if(c===null){delete o[e]}else{o[e]=c}}else if(n!==null){r.delete(t)}}}if(!r.deleted){if(i==="insert"){a()}il(n,r.content)}break}}r=r.right}a();while(e.length>0){const t=e[e.length-1];if(t.retain!==undefined&&t.attributes===undefined){e.pop()}else{break}}}));this._delta=e}return this._delta}}class pl extends Tc{constructor(t){super();this._pending=t!==undefined?[()=>this.insert(0,t)]:[];this._searchMarker=[]}get length(){return this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach((t=>t()))}catch(gh){console.error(gh)}this._pending=null}_copy(){return new pl}clone(){const t=new pl;t.applyDelta(this.toDelta());return t}_callObserver(t,e){super._callObserver(t,e);const n=new gl(this,t,e);const s=t.doc;Ac(this,t,n);if(!t.local){let e=false;for(const[n,r]of t.afterState.entries()){const i=t.beforeState.get(n)||0;if(r===i){continue}Lo(t,s.store.clients.get(n),i,r,(t=>{if(!t.deleted&&t.content.constructor===jl){e=true}}));if(e){break}}if(!e){Qr(t,t.deleteSet,(t=>{if(t instanceof xl||e){return}if(t.parent===this&&t.content.constructor===jl){e=true}}))}Jo(s,(t=>{if(e){dl(this)}else{Qr(t,t.deleteSet,(e=>{if(e instanceof xl){return}if(e.parent===this){ul(t,e)}}))}}))}}toString(){let t="";let e=this._start;while(e!==null){if(!e.deleted&&e.countable&&e.content.constructor===Hl){t+=e.content.str}e=e.right}return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=true}={}){if(this.doc!==null){Jo(this.doc,(n=>{const s=new el(null,this._start,0,new Map);for(let r=0;r0){ll(n,this,s,o,i.attributes||{})}}else if(i.retain!==undefined){hl(n,this,s,i.retain,i.attributes||{})}else if(i.delete!==undefined){fl(n,s,i.delete)}}}))}else{this._pending.push((()=>this.applyDelta(t)))}}toDelta(t,e,n){const s=[];const r=new Map;const i=this.doc;let o="";let c=this._start;function l(){if(o.length>0){const t={};let e=false;r.forEach(((n,s)=>{e=true;t[s]=n}));const n={insert:o};if(e){n.attributes=t}s.push(n);o=""}}Jo(i,(i=>{if(t){_o(i,t)}if(e){_o(i,e)}while(c!==null){if(ko(c,t)||e!==undefined&&ko(c,e)){switch(c.content.constructor){case Hl:{const s=r.get("ychange");if(t!==undefined&&!ko(c,t)){if(s===undefined||s.user!==c.id.client||s.type!=="removed"){l();r.set("ychange",n?n("removed",c.id):{type:"removed"})}}else if(e!==undefined&&!ko(c,e)){if(s===undefined||s.user!==c.id.client||s.type!=="added"){l();r.set("ychange",n?n("added",c.id):{type:"added"})}}else if(s!==undefined){l();r.delete("ychange")}o+=c.content.str;break}case eh:case Vl:{l();const t={insert:c.content.getContent()[0]};if(r.size>0){const e={};t.attributes=e;r.forEach(((t,n)=>{e[n]=t}))}s.push(t);break}case jl:if(ko(c,t)){l();il(r,c.content)}break}}c=c.right}l()}),"cleanup");return s}insert(t,e,n){if(e.length<=0){return}const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);if(!n){n={};r.currentAttributes.forEach(((t,e)=>{n[e]=t}))}ll(s,this,r,e,n)}))}else{this._pending.push((()=>this.insert(t,e,n)))}}insertEmbed(t,e,n={}){const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);ll(s,this,r,e,n)}))}else{this._pending.push((()=>this.insertEmbed(t,e,n)))}}delete(t,e){if(e===0){return}const n=this.doc;if(n!==null){Jo(n,(n=>{fl(n,sl(n,this,t),e)}))}else{this._pending.push((()=>this.delete(t,e)))}}format(t,e,n){if(e===0){return}const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);if(r.right===null){return}hl(s,this,r,e,n)}))}else{this._pending.push((()=>this.format(t,e,n)))}}removeAttribute(t){if(this.doc!==null){Jo(this.doc,(e=>{Fc(e,this,t)}))}else{this._pending.push((()=>this.removeAttribute(t)))}}setAttribute(t,e){if(this.doc!==null){Jo(this.doc,(n=>{zc(n,this,t,e)}))}else{this._pending.push((()=>this.setAttribute(t,e)))}}getAttribute(t){return Jc(this,t)}getAttributes(){return $c(this)}_write(t){t.writeTypeRef(Xl)}}const wl=t=>new pl;class ml{constructor(t,e=()=>true){this._filter=e;this._root=t;this._currentNode=t._start;this._firstCall=true}[Symbol.iterator](){return this}next(){let t=this._currentNode;let e=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(e))){do{e=t.content.type;if(!t.deleted&&(e.constructor===kl||e.constructor===yl)&&e._start!==null){t=e._start}else{while(t!==null){if(t.right!==null){t=t.right;break}else if(t.parent===this._root){t=null}else{t=t.parent._item}}}}while(t!==null&&(t.deleted||!this._filter(t.content.type)))}this._firstCall=false;if(t===null){return{value:undefined,done:true}}this._currentNode=t;return{value:t.content.type,done:false}}}class yl extends Tc{constructor(){super();this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e);this.insert(0,this._prelimContent);this._prelimContent=null}_copy(){return new yl}clone(){const t=new yl;t.insert(0,this.toArray().map((t=>t instanceof Tc?t.clone():t)));return t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new ml(this,t)}querySelector(t){t=t.toUpperCase();const e=new ml(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t));const n=e.next();if(n.done){return null}else{return n.value}}querySelectorAll(t){t=t.toUpperCase();return r.HT(new ml(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t)))}_callObserver(t,e){Ac(this,t,new Sl(this,e,t))}toString(){return Jo(this.doc,(()=>Oc(this,(t=>t.toString())).join("")))}toJSON(){return this.toString()}toDOM(t=document,e={},n){const s=t.createDocumentFragment();if(n!==undefined){n._createAssociation(s,this)}Uc(this,(r=>{s.insertBefore(r.toDOM(t,e,n),null)}));return s}insert(t,e){if(this.doc!==null){Jo(this.doc,(n=>{Pc(n,this,t,e)}))}else{this._prelimContent.splice(t,0,...e)}}insertAfter(t,e){if(this.doc!==null){Jo(this.doc,(n=>{const s=t&&t instanceof Tc?t._item:t;Rc(n,this,s,e)}))}else{const n=this._prelimContent;const s=t===null?0:n.findIndex((e=>e===t))+1;if(s===0&&t!==null){throw an("Reference item not found")}n.splice(s,0,...e)}}delete(t,e=1){if(this.doc!==null){Jo(this.doc,(n=>{Bc(n,this,t,e)}))}else{this._prelimContent.splice(t,e)}}toArray(){return Ic(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return Nc(this,t)}slice(t=0,e=this.length){return xc(this,t,e)}forEach(t){Uc(this,t)}_write(t){t.writeTypeRef(Ql)}}const bl=t=>new yl;class kl extends yl{constructor(t="UNDEFINED"){super();this.nodeName=t;this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e);this._prelimAttrs.forEach(((t,e)=>{this.setAttribute(e,t)}));this._prelimAttrs=null}_copy(){return new kl(this.nodeName)}clone(){const t=new kl(this.nodeName);const e=this.getAttributes();for(const n in e){t.setAttribute(n,e[n])}t.insert(0,this.toArray().map((t=>t instanceof Tc?t.clone():t)));return t}toString(){const t=this.getAttributes();const e=[];const n=[];for(const o in t){n.push(o)}n.sort();const s=n.length;for(let o=0;o0?" "+e.join(" "):"";return`<${r}${i}>${super.toString()}`}removeAttribute(t){if(this.doc!==null){Jo(this.doc,(e=>{Fc(e,this,t)}))}else{this._prelimAttrs.delete(t)}}setAttribute(t,e){if(this.doc!==null){Jo(this.doc,(n=>{zc(n,this,t,e)}))}else{this._prelimAttrs.set(t,e)}}getAttribute(t){return Jc(this,t)}hasAttribute(t){return Hc(this,t)}getAttributes(){return $c(this)}toDOM(t=document,e={},n){const s=t.createElement(this.nodeName);const r=this.getAttributes();for(const i in r){s.setAttribute(i,r[i])}Uc(this,(r=>{s.appendChild(r.toDOM(t,e,n))}));if(n!==undefined){n._createAssociation(s,this)}return s}_write(t){t.writeTypeRef(Gl);t.writeKey(this.nodeName)}}const _l=t=>new kl(t.readKey());class Sl extends wc{constructor(t,e,n){super(t,n);this.childListChanged=false;this.attributesChanged=new Set;e.forEach((t=>{if(t===null){this.childListChanged=true}else{this.attributesChanged.add(t)}}))}}class El extends Qc{constructor(t){super();this.hookName=t}_copy(){return new El(this.hookName)}clone(){const t=new El(this.hookName);this.forEach(((e,n)=>{t.set(n,e)}));return t}toDOM(t=document,e={},n){const s=e[this.hookName];let r;if(s!==undefined){r=s.createDom(this)}else{r=document.createElement(this.hookName)}r.setAttribute("data-yjs-hook",this.hookName);if(n!==undefined){n._createAssociation(r,this)}return r}_write(t){t.writeTypeRef(Zl);t.writeKey(this.hookName)}}const Cl=t=>new El(t.readKey());class Dl extends pl{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new Dl}clone(){const t=new Dl;t.applyDelta(this.toDelta());return t}toDOM(t=document,e,n){const s=t.createTextNode(this.toString());if(n!==undefined){n._createAssociation(s,this)}return s}toString(){return this.toDelta().map((t=>{const e=[];for(const s in t.attributes){const n=[];for(const e in t.attributes[s]){n.push({key:e,value:t.attributes[s][e]})}n.sort(((t,e)=>t.keyt.nodeName=0;s--){n+=``}return n})).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(th)}}const vl=t=>new Dl;class Al{constructor(t,e){this.id=t;this.length=e}get deleted(){throw un()}mergeWith(t){return false}write(t,e,n){throw un()}integrate(t,e){throw un()}}const Tl=0;class xl extends Al{get deleted(){return true}delete(){}mergeWith(t){if(this.constructor!==t.constructor){return false}this.length+=t.length;return true}integrate(t,e){if(e>0){this.id.clock+=e;this.length-=e}vo(t.doc.store,this)}write(t,e){t.writeInfo(Tl);t.writeLen(this.length-e)}getMissing(t,e){return null}}class Il{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return true}copy(){return new Il(this.content)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}const Ml=t=>new Il(t.readBuf());class Ul{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return false}copy(){return new Ul(this.len)}splice(t){const e=new Ul(this.len-t);this.len=t;return e}mergeWith(t){this.len+=t.len;return true}integrate(t,e){si(t.deleteSet,e.id.client,e.id.clock,this.len);e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}const Ol=t=>new Ul(t.readLen());const Ll=(t,e)=>new ai({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||false});class Nl{constructor(t){if(t._item){console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid.")}this.doc=t;const e={};this.opts=e;if(!t.gc){e.gc=false}if(t.autoLoad){e.autoLoad=true}if(t.meta!==null){e.meta=t.meta}}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return true}copy(){return new Nl(Ll(this.doc.guid,this.opts))}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){this.doc._item=e;t.subdocsAdded.add(this.doc);if(this.doc.shouldLoad){t.subdocsLoaded.add(this.doc)}}delete(t){if(t.subdocsAdded.has(this.doc)){t.subdocsAdded.delete(this.doc)}else{t.subdocsRemoved.add(this.doc)}}gc(t){}write(t,e){t.writeString(this.doc.guid);t.writeAny(this.opts)}getRef(){return 9}}const Rl=t=>new Nl(Ll(t.readString(),t.readAny()));class Vl{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return true}copy(){return new Vl(this.embed)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}const Pl=t=>new Vl(t.readJSON());class jl{constructor(t,e){this.key=t;this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return false}copy(){return new jl(this.key,this.value)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){e.parent._searchMarker=null}delete(t){}gc(t){}write(t,e){t.writeKey(this.key);t.writeJSON(this.value)}getRef(){return 6}}const Bl=t=>new jl(t.readKey(),t.readJSON());class Fl{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return true}copy(){return new Fl(this.arr)}splice(t){const e=new Fl(this.arr.slice(t));this.arr=this.arr.slice(0,t);return e}mergeWith(t){this.arr=this.arr.concat(t.arr);return true}integrate(t,e){}delete(t){}gc(t){}write(t,e){const n=this.arr.length;t.writeLen(n-e);for(let s=e;s{const e=t.readLen();const n=[];for(let s=0;s{const e=t.readLen();const n=[];for(let s=0;s=55296&&n<=56319){this.str=this.str.slice(0,t-1)+"�";e.str="�"+e.str.slice(1)}return e}mergeWith(t){this.str+=t.str;return true}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(e===0?this.str:this.str.slice(e))}getRef(){return 4}}const Wl=t=>new Hl(t.readString());const Kl=[Xc,Zc,wl,_l,bl,Cl,vl];const ql=0;const Yl=1;const Xl=2;const Gl=3;const Ql=4;const Zl=5;const th=6;class eh{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return true}copy(){return new eh(this.type._copy())}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;while(e!==null){if(!e.deleted){e.delete(t)}else{t._mergeStructs.push(e)}e=e.right}this.type._map.forEach((e=>{if(!e.deleted){e.delete(t)}else{t._mergeStructs.push(e)}}));t.changed.delete(this.type)}gc(t){let e=this.type._start;while(e!==null){e.gc(t,true);e=e.right}this.type._start=null;this.type._map.forEach((e=>{while(e!==null){e.gc(t,true);e=e.left}}));this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}const nh=t=>new eh(Kl[t.readTypeRef()](t));const sh=(t,e)=>{let n=e;let s=0;let r;do{if(s>0){n=$i(n.client,n.clock+s)}r=xo(t,n);s=n.clock-r.id.clock;n=r.redone}while(n!==null&&r instanceof ch);return{item:r,diff:s}};const rh=(t,e)=>{while(t!==null&&t.keep!==e){t.keep=e;t=t.parent._item}};const ih=(t,e,n)=>{const{client:s,clock:r}=e.id;const i=new ch($i(s,r+n),e,$i(s,r+n-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(n));if(e.deleted){i.markDeleted()}if(e.keep){i.keep=true}if(e.redone!==null){i.redone=$i(e.redone.client,e.redone.clock+n)}e.right=i;if(i.right!==null){i.right.left=i}t._mergeStructs.push(i);if(i.parentSub!==null&&i.right===null){i.parent._map.set(i.parentSub,i)}e.length=n;return i};const oh=(t,e,n,s,r)=>{const i=t.doc;const o=i.store;const c=i.clientID;const l=e.redone;if(l!==null){return Mo(t,l)}let h=e.parent._item;let a=null;let u;if(h!==null&&h.deleted===true){if(h.redone===null&&(!n.has(h)||oh(t,h,n,s,r)===null)){return null}while(h.redone!==null){h=Mo(t,h.redone)}}const d=h===null?e.parent:h.content.type;if(e.parentSub===null){a=e.left;u=e;while(a!==null){let e=a;while(e!==null&&e.parent._item!==h){e=e.redone===null?null:Mo(t,e.redone)}if(e!==null&&e.parent._item===h){a=e;break}a=a.left}while(u!==null){let e=u;while(e!==null&&e.parent._item!==h){e=e.redone===null?null:Mo(t,e.redone)}if(e!==null&&e.parent._item===h){u=e;break}u=u.right}}else{u=null;if(e.right&&!r){a=e;while(a!==null&&a.right!==null&&ti(s,a.right.id)){a=a.right}while(a!==null&&a.redone!==null){a=Mo(t,a.redone)}if(a&&a.right!==null){return null}}else{a=d._map.get(e.parentSub)||null}}const f=Do(o,c);const g=$i(c,f);const p=new ch(g,a,a&&a.lastId,u,u&&u.id,d,e.parentSub,e.content.copy());e.redone=g;rh(p,true);p.integrate(t,0);return p};class ch extends Al{constructor(t,e,n,s,r,i,o,c){super(t,c.getLength());this.origin=n;this.left=e;this.right=s;this.rightOrigin=r;this.parent=i;this.parentSub=o;this.redone=null;this.content=c;this.info=this.content.isCountable()?it:0}set marker(t){if((this.info&ct)>0!==t){this.info^=ct}}get marker(){return(this.info&ct)>0}get keep(){return(this.info&rt)>0}set keep(t){if(this.keep!==t){this.info^=rt}}get countable(){return(this.info&it)>0}get deleted(){return(this.info&ot)>0}set deleted(t){if(this.deleted!==t){this.info^=ot}}markDeleted(){this.info|=ot}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Do(e,this.origin.client)){return this.origin.client}if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Do(e,this.rightOrigin.client)){return this.rightOrigin.client}if(this.parent&&this.parent.constructor===zi&&this.id.client!==this.parent.client&&this.parent.clock>=Do(e,this.parent.client)){return this.parent.client}if(this.origin){this.left=Uo(t,e,this.origin);this.origin=this.left.lastId}if(this.rightOrigin){this.right=Mo(t,this.rightOrigin);this.rightOrigin=this.right.id}if(this.left&&this.left.constructor===xl||this.right&&this.right.constructor===xl){this.parent=null}if(!this.parent){if(this.left&&this.left.constructor===ch){this.parent=this.left.parent;this.parentSub=this.left.parentSub}if(this.right&&this.right.constructor===ch){this.parent=this.right.parent;this.parentSub=this.right.parentSub}}else if(this.parent.constructor===zi){const t=xo(e,this.parent);if(t.constructor===xl){this.parent=null}else{this.parent=t.content.type}}return null}integrate(t,e){if(e>0){this.id.clock+=e;this.left=Uo(t,t.doc.store,$i(this.id.client,this.id.clock-1));this.origin=this.left.lastId;this.content=this.content.splice(e);this.length-=e}if(this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let e=this.left;let n;if(e!==null){n=e.right}else if(this.parentSub!==null){n=this.parent._map.get(this.parentSub)||null;while(n!==null&&n.left!==null){n=n.left}}else{n=this.parent._start}const s=new Set;const r=new Set;while(n!==null&&n!==this.right){r.add(n);s.add(n);if(Ji(this.origin,n.origin)){if(n.id.client{if(e.p===t){e.p=this;if(!this.deleted&&this.countable){e.index-=this.length}}}))}if(t.keep){this.keep=true}this.right=t.right;if(this.right!==null){this.right.left=this}this.length+=t.length;return true}return false}delete(t){if(!this.deleted){const e=this.parent;if(this.countable&&this.parentSub===null){e._length-=this.length}this.markDeleted();si(t.deleteSet,this.id.client,this.id.clock,this.length);Vo(t,e,this.parentSub);this.content.delete(t)}}gc(t,e){if(!this.deleted){throw dn()}this.content.gc(t);if(e){Oo(t,this,new xl(this.id,this.length))}else{this.content=new Ul(this.length)}}write(t,e){const n=e>0?$i(this.id.client,this.id.clock+e-1):this.origin;const s=this.rightOrigin;const r=this.parentSub;const i=this.content.getRef()&Ft|(n===null?0:ut)|(s===null?0:at)|(r===null?0:ht);t.writeInfo(i);if(n!==null){t.writeLeftID(n)}if(s!==null){t.writeRightID(s)}if(n===null&&s===null){const e=this.parent;if(e._item!==undefined){const n=e._item;if(n===null){const n=Ki(e);t.writeParentInfo(true);t.writeString(n)}else{t.writeParentInfo(false);t.writeLeftID(n.id)}}else if(e.constructor===String){t.writeParentInfo(true);t.writeString(e)}else if(e.constructor===zi){t.writeParentInfo(false);t.writeLeftID(e)}else{dn()}if(r!==null){t.writeString(r)}}this.content.write(t,e)}}const lh=(t,e)=>hh[e&Ft](t);const hh=[()=>{dn()},Ol,zl,Ml,Wl,Pl,Bl,nh,$l,Rl,()=>{dn()}];const ah=10;class uh extends Al{get deleted(){return true}delete(){}mergeWith(t){if(this.constructor!==t.constructor){return false}this.length+=t.length;return true}integrate(t,e){dn()}write(t,e){t.writeInfo(ah);Re(t.restEncoder,this.length-e)}getMissing(t,e){return null}}const dh=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof n.g!=="undefined"?n.g:{};const fh="__ $YJS$ __";if(dh[fh]===true){console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438")}dh[fh]=true}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js new file mode 100644 index 0000000000000000000000000000000000000000..de8e40941c0691ca23ec52e1bfeffe543775cc90 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js @@ -0,0 +1,2 @@ +/*! For license information please see 9085.5a959b5878e7afd8a878.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9085],{91033:r=>{function e(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}r.exports=e},83729:r=>{function e(r,e){var t=-1,n=r==null?0:r.length;while(++t{var n=t(98598),o=t(75288);var a=Object.prototype;var u=a.hasOwnProperty;function c(r,e,t){var a=r[e];if(!(u.call(r,e)&&o(a,t))||t===undefined&&!(e in r)){n(r,e,t)}}r.exports=c},74733:(r,e,t)=>{var n=t(21791),o=t(95950);function a(r,e){return r&&n(e,o(e),r)}r.exports=a},43838:(r,e,t)=>{var n=t(21791),o=t(37241);function a(r,e){return r&&n(e,o(e),r)}r.exports=a},98598:(r,e,t)=>{var n=t(93243);function o(r,e,t){if(e=="__proto__"&&n){n(r,e,{configurable:true,enumerable:true,value:t,writable:true})}else{r[e]=t}}r.exports=o},9999:(r,e,t)=>{var n=t(37217),o=t(83729),a=t(16547),u=t(74733),c=t(43838),i=t(93290),f=t(23007),s=t(92271),l=t(48948),v=t(50002),p=t(83349),b=t(5861),y=t(76189),j=t(77199),x=t(35529),d=t(56449),h=t(3656),w=t(87730),g=t(23805),O=t(38440),_=t(95950),A=t(37241);var S=1,m=2,P=4;var k="[object Arguments]",E="[object Array]",I="[object Boolean]",U="[object Date]",F="[object Error]",C="[object Function]",D="[object GeneratorFunction]",M="[object Map]",R="[object Number]",B="[object Object]",L="[object RegExp]",N="[object Set]",T="[object String]",$="[object Symbol]",V="[object WeakMap]";var W="[object ArrayBuffer]",z="[object DataView]",G="[object Float32Array]",Y="[object Float64Array]",q="[object Int8Array]",H="[object Int16Array]",J="[object Int32Array]",K="[object Uint8Array]",Q="[object Uint8ClampedArray]",X="[object Uint16Array]",Z="[object Uint32Array]";var rr={};rr[k]=rr[E]=rr[W]=rr[z]=rr[I]=rr[U]=rr[G]=rr[Y]=rr[q]=rr[H]=rr[J]=rr[M]=rr[R]=rr[B]=rr[L]=rr[N]=rr[T]=rr[$]=rr[K]=rr[Q]=rr[X]=rr[Z]=true;rr[F]=rr[C]=rr[V]=false;function er(r,e,t,E,I,U){var F,M=e&S,R=e&m,L=e&P;if(t){F=I?t(r,E,I,U):t(r)}if(F!==undefined){return F}if(!g(r)){return r}var N=d(r);if(N){F=y(r);if(!M){return f(r,F)}}else{var T=b(r),$=T==C||T==D;if(h(r)){return i(r,M)}if(T==B||T==k||$&&!I){F=R||$?{}:x(r);if(!M){return R?l(r,c(F,r)):s(r,u(F,r))}}else{if(!rr[T]){return I?r:{}}F=j(r,T,M)}}U||(U=new n);var V=U.get(r);if(V){return V}U.set(r,F);if(O(r)){r.forEach((function(n){F.add(er(n,e,t,n,r,U))}))}else if(w(r)){r.forEach((function(n,o){F.set(o,er(n,e,t,o,r,U))}))}var W=L?R?p:v:R?A:_;var z=N?undefined:W(r);o(z||r,(function(n,o){if(z){o=n;n=r[o]}a(F,o,er(n,e,t,o,r,U))}));return F}r.exports=er},39344:(r,e,t)=>{var n=t(23805);var o=Object.create;var a=function(){function r(){}return function(e){if(!n(e)){return{}}if(o){return o(e)}r.prototype=e;var t=new r;r.prototype=undefined;return t}}();r.exports=a},83120:(r,e,t)=>{var n=t(14528),o=t(45891);function a(r,e,t,u,c){var i=-1,f=r.length;t||(t=o);c||(c=[]);while(++i0&&t(s)){if(e>1){a(s,e-1,t,u,c)}else{n(c,s)}}else if(!u){c[c.length]=s}}return c}r.exports=a},20426:r=>{var e=Object.prototype;var t=e.hasOwnProperty;function n(r,e){return r!=null&&t.call(r,e)}r.exports=n},28077:r=>{function e(r,e){return r!=null&&e in Object(r)}r.exports=e},29172:(r,e,t)=>{var n=t(5861),o=t(40346);var a="[object Map]";function u(r){return o(r)&&n(r)==a}r.exports=u},16038:(r,e,t)=>{var n=t(5861),o=t(40346);var a="[object Set]";function u(r){return o(r)&&n(r)==a}r.exports=u},72903:(r,e,t)=>{var n=t(23805),o=t(55527),a=t(90181);var u=Object.prototype;var c=u.hasOwnProperty;function i(r){if(!n(r)){return a(r)}var e=o(r),t=[];for(var u in r){if(!(u=="constructor"&&(e||!c.call(r,u)))){t.push(u)}}return t}r.exports=i},73170:(r,e,t)=>{var n=t(16547),o=t(31769),a=t(30361),u=t(23805),c=t(77797);function i(r,e,t,i){if(!u(r)){return r}e=o(e,r);var f=-1,s=e.length,l=s-1,v=r;while(v!=null&&++f{var n=t(37334),o=t(93243),a=t(83488);var u=!o?a:function(r,e){return o(r,"toString",{configurable:true,enumerable:false,value:n(e),writable:true})};r.exports=u},25160:r=>{function e(r,e,t){var n=-1,o=r.length;if(e<0){e=-e>o?0:o+e}t=t>o?o:t;if(t<0){t+=o}o=e>t?0:t-e>>>0;e>>>=0;var a=Array(o);while(++n{var n=t(31769),o=t(68090),a=t(68969),u=t(77797);function c(r,e){e=n(e,r);r=a(r,e);return r==null||delete r[u(o(e))]}r.exports=c},49653:(r,e,t)=>{var n=t(37828);function o(r){var e=new r.constructor(r.byteLength);new n(e).set(new n(r));return e}r.exports=o},93290:(r,e,t)=>{r=t.nmd(r);var n=t(9325);var o=true&&e&&!e.nodeType&&e;var a=o&&"object"=="object"&&r&&!r.nodeType&&r;var u=a&&a.exports===o;var c=u?n.Buffer:undefined,i=c?c.allocUnsafe:undefined;function f(r,e){if(e){return r.slice()}var t=r.length,n=i?i(t):new r.constructor(t);r.copy(n);return n}r.exports=f},76169:(r,e,t)=>{var n=t(49653);function o(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}r.exports=o},73201:r=>{var e=/\w*$/;function t(r){var t=new r.constructor(r.source,e.exec(r));t.lastIndex=r.lastIndex;return t}r.exports=t},93736:(r,e,t)=>{var n=t(51873);var o=n?n.prototype:undefined,a=o?o.valueOf:undefined;function u(r){return a?Object(a.call(r)):{}}r.exports=u},71961:(r,e,t)=>{var n=t(49653);function o(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}r.exports=o},23007:r=>{function e(r,e){var t=-1,n=r.length;e||(e=Array(n));while(++t{var n=t(16547),o=t(98598);function a(r,e,t,a){var u=!t;t||(t={});var c=-1,i=e.length;while(++c{var n=t(21791),o=t(4664);function a(r,e){return n(r,o(r),e)}r.exports=a},48948:(r,e,t)=>{var n=t(21791),o=t(86375);function a(r,e){return n(r,o(r),e)}r.exports=a},53138:(r,e,t)=>{var n=t(11331);function o(r){return n(r)?undefined:r}r.exports=o},93243:(r,e,t)=>{var n=t(56110);var o=function(){try{var r=n(Object,"defineProperty");r({},"",{});return r}catch(e){}}();r.exports=o},38816:(r,e,t)=>{var n=t(35970),o=t(56757),a=t(32865);function u(r){return a(o(r,undefined,n),r+"")}r.exports=u},83349:(r,e,t)=>{var n=t(82199),o=t(86375),a=t(37241);function u(r){return n(r,a,o)}r.exports=u},28879:(r,e,t)=>{var n=t(74335);var o=n(Object.getPrototypeOf,Object);r.exports=o},86375:(r,e,t)=>{var n=t(14528),o=t(28879),a=t(4664),u=t(63345);var c=Object.getOwnPropertySymbols;var i=!c?u:function(r){var e=[];while(r){n(e,a(r));r=o(r)}return e};r.exports=i},49326:(r,e,t)=>{var n=t(31769),o=t(72428),a=t(56449),u=t(30361),c=t(30294),i=t(77797);function f(r,e,t){e=n(e,r);var f=-1,s=e.length,l=false;while(++f{var e=Object.prototype;var t=e.hasOwnProperty;function n(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&t.call(r,"index")){n.index=r.index;n.input=r.input}return n}r.exports=n},77199:(r,e,t)=>{var n=t(49653),o=t(76169),a=t(73201),u=t(93736),c=t(71961);var i="[object Boolean]",f="[object Date]",s="[object Map]",l="[object Number]",v="[object RegExp]",p="[object Set]",b="[object String]",y="[object Symbol]";var j="[object ArrayBuffer]",x="[object DataView]",d="[object Float32Array]",h="[object Float64Array]",w="[object Int8Array]",g="[object Int16Array]",O="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",S="[object Uint16Array]",m="[object Uint32Array]";function P(r,e,t){var P=r.constructor;switch(e){case j:return n(r);case i:case f:return new P(+r);case x:return o(r,t);case d:case h:case w:case g:case O:case _:case A:case S:case m:return c(r,t);case s:return new P;case l:case b:return new P(r);case v:return a(r);case p:return new P;case y:return u(r)}}r.exports=P},35529:(r,e,t)=>{var n=t(39344),o=t(28879),a=t(55527);function u(r){return typeof r.constructor=="function"&&!a(r)?n(o(r)):{}}r.exports=u},45891:(r,e,t)=>{var n=t(51873),o=t(72428),a=t(56449);var u=n?n.isConcatSpreadable:undefined;function c(r){return a(r)||o(r)||!!(u&&r&&r[u])}r.exports=c},90181:r=>{function e(r){var e=[];if(r!=null){for(var t in Object(r)){e.push(t)}}return e}r.exports=e},56757:(r,e,t)=>{var n=t(91033);var o=Math.max;function a(r,e,t){e=o(e===undefined?r.length-1:e,0);return function(){var a=arguments,u=-1,c=o(a.length-e,0),i=Array(c);while(++u{var n=t(47422),o=t(25160);function a(r,e){return e.length<2?r:n(r,o(e,0,-1))}r.exports=a},32865:(r,e,t)=>{var n=t(19570),o=t(51811);var a=o(n);r.exports=a},51811:r=>{var e=800,t=16;var n=Date.now;function o(r){var o=0,a=0;return function(){var u=n(),c=t-(u-a);a=u;if(c>0){if(++o>=e){return arguments[0]}}else{o=0}return r.apply(undefined,arguments)}}r.exports=o},88055:(r,e,t)=>{var n=t(9999);var o=1,a=4;function u(r){return n(r,o|a)}r.exports=u},37334:r=>{function e(r){return function(){return r}}r.exports=e},35970:(r,e,t)=>{var n=t(83120);function o(r){var e=r==null?0:r.length;return e?n(r,1):[]}r.exports=o},61448:(r,e,t)=>{var n=t(20426),o=t(49326);function a(r,e){return r!=null&&o(r,e,n)}r.exports=a},80631:(r,e,t)=>{var n=t(28077),o=t(49326);function a(r,e){return r!=null&&o(r,e,n)}r.exports=a},83488:r=>{function e(r){return r}r.exports=e},62193:(r,e,t)=>{var n=t(88984),o=t(5861),a=t(72428),u=t(56449),c=t(64894),i=t(3656),f=t(55527),s=t(37167);var l="[object Map]",v="[object Set]";var p=Object.prototype;var b=p.hasOwnProperty;function y(r){if(r==null){return true}if(c(r)&&(u(r)||typeof r=="string"||typeof r.splice=="function"||i(r)||s(r)||a(r))){return!r.length}var e=o(r);if(e==l||e==v){return!r.size}if(f(r)){return!n(r).length}for(var t in r){if(b.call(r,t)){return false}}return true}r.exports=y},87730:(r,e,t)=>{var n=t(29172),o=t(27301),a=t(86009);var u=a&&a.isMap;var c=u?o(u):n;r.exports=c},11331:(r,e,t)=>{var n=t(72552),o=t(28879),a=t(40346);var u="[object Object]";var c=Function.prototype,i=Object.prototype;var f=c.toString;var s=i.hasOwnProperty;var l=f.call(Object);function v(r){if(!a(r)||n(r)!=u){return false}var e=o(r);if(e===null){return true}var t=s.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&f.call(t)==l}r.exports=v},38440:(r,e,t)=>{var n=t(16038),o=t(27301),a=t(86009);var u=a&&a.isSet;var c=u?o(u):n;r.exports=c},37241:(r,e,t)=>{var n=t(70695),o=t(72903),a=t(64894);function u(r){return a(r)?n(r,true):o(r)}r.exports=u},68090:r=>{function e(r){var e=r==null?0:r.length;return e?r[e-1]:undefined}r.exports=e},90179:(r,e,t)=>{var n=t(34932),o=t(9999),a=t(19931),u=t(31769),c=t(21791),i=t(53138),f=t(38816),s=t(83349);var l=1,v=2,p=4;var b=f((function(r,e){var t={};if(r==null){return t}var f=false;e=n(e,(function(e){e=u(e,r);f||(f=e.length>1);return e}));c(r,s(r),t);if(f){t=o(t,l|v|p,i)}var b=e.length;while(b--){a(t,e[b])}return t}));r.exports=b},63560:(r,e,t)=>{var n=t(73170);function o(r,e,t){return r==null?r:n(r,e,t)}r.exports=o},42072:(r,e,t)=>{var n=t(34932),o=t(23007),a=t(56449),u=t(44394),c=t(61802),i=t(77797),f=t(13222);function s(r){if(a(r)){return n(r,i)}return u(r)?[r]:o(c(f(r)))}r.exports=s},21020:(r,e,t)=>{"use strict";var n=t(44914),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function f(r,e,t){var n,a={},f=null,s=null;void 0!==t&&(f=""+t);void 0!==e.key&&(f=""+e.key);void 0!==e.ref&&(s=e.ref);for(n in e)u.call(e,n)&&!i.hasOwnProperty(n)&&(a[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps,e)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:o,type:r,key:f,ref:s,props:a,_owner:c.current}}e.Fragment=a;e.jsx=f;e.jsxs=f},74848:(r,e,t)=>{"use strict";if(true){r.exports=t(21020)}else{}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9329.1683d45b6478b7c81a24.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9329.1683d45b6478b7c81a24.js new file mode 100644 index 0000000000000000000000000000000000000000..ca5b0329990c481e8a682efc2da67270da78aa78 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9329.1683d45b6478b7c81a24.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9329],{9329:(O,i,e)=>{e.r(i);e.d(i,{globalCompletion:()=>Oi,localCompletionSource:()=>BO,python:()=>ni,pythonLanguage:()=>ai});var a=e(27421);var n=e(45145);const Q=1,t=194,r=195,o=196,d=197,s=198,T=199,l=200,S=2,p=3,q=201,g=24,$=25,P=49,m=50,c=55,h=56,X=57,f=59,y=60,W=61,z=62,u=63,v=65,R=238,k=71,x=241,_=242,U=243,V=244,G=245,b=246,w=247,Z=248,j=72,E=249,Y=250,F=251,J=252,A=253,C=254,I=255,N=256,D=73,H=77,L=263,B=112,K=130,M=151,OO=152,iO=155;const eO=10,aO=13,nO=32,QO=9,tO=35,rO=40,oO=46,dO=123,sO=125,TO=39,lO=34,SO=92,pO=111,qO=120,gO=78,$O=117,PO=85;const mO=new Set([$,P,m,L,v,K,h,X,R,z,u,j,D,H,y,W,M,OO,iO,B]);function cO(O){return O==eO||O==aO}function hO(O){return O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102}const XO=new a.Lu(((O,i)=>{let e;if(O.next<0){O.acceptToken(T)}else if(i.context.flags&yO){if(cO(O.next))O.acceptToken(s,1)}else if(((e=O.peek(-1))<0||cO(e))&&i.canShift(d)){let i=0;while(O.next==nO||O.next==QO){O.advance();i++}if(O.next==eO||O.next==aO||O.next==tO)O.acceptToken(d,-i)}else if(cO(O.next)){O.acceptToken(o,1)}}),{contextual:true});const fO=new a.Lu(((O,i)=>{let e=i.context;if(e.flags)return;let a=O.peek(-1);if(a==eO||a==aO){let i=0,a=0;for(;;){if(O.next==nO)i++;else if(O.next==QO)i+=8-i%8;else break;O.advance();a++}if(i!=e.indent&&O.next!=eO&&O.next!=aO&&O.next!=tO){if(i[O,i|WO])));const VO=new a.Aj({start:xO,reduce(O,i,e,a){if(O.flags&yO&&mO.has(i)||(i==k||i==j)&&O.flags&WO)return O.parent;return O},shift(O,i,e,a){if(i==t)return new kO(O,_O(a.read(a.pos,e.pos)),0);if(i==r)return O.parent;if(i==g||i==c||i==f||i==p)return new kO(O,0,yO);if(UO.has(i))return new kO(O,0,UO.get(i)|O.flags&yO);return O},hash(O){return O.hash}});const GO=new a.Lu((O=>{for(let i=0;i<5;i++){if(O.next!="print".charCodeAt(i))return;O.advance()}if(/\w/.test(String.fromCharCode(O.next)))return;for(let i=0;;i++){let e=O.peek(i);if(e==nO||e==QO)continue;if(e!=rO&&e!=oO&&e!=eO&&e!=aO&&e!=tO)O.acceptToken(Q);return}}));const bO=new a.Lu(((O,i)=>{let{flags:e}=i.context;let a=e&zO?lO:TO;let n=(e&uO)>0;let Q=!(e&vO);let t=(e&RO)>0;let r=O.pos;for(;;){if(O.next<0){break}else if(t&&O.next==dO){if(O.peek(1)==dO){O.advance(2)}else{if(O.pos==r){O.acceptToken(p,1);return}break}}else if(Q&&O.next==SO){if(O.pos==r){O.advance();let i=O.next;if(i>=0){O.advance();wO(O,i)}O.acceptToken(S);return}break}else if(O.next==a&&(!n||O.peek(1)==a&&O.peek(2)==a)){if(O.pos==r){O.acceptToken(q,n?3:1);return}break}else if(O.next==eO){if(n){O.advance()}else if(O.pos==r){O.acceptToken(q);return}break}else{O.advance()}}if(O.pos>r)O.acceptToken(l)}));function wO(O,i){if(i==pO){for(let i=0;i<2&&O.next>=48&&O.next<=55;i++)O.advance()}else if(i==qO){for(let i=0;i<2&&hO(O.next);i++)O.advance()}else if(i==$O){for(let i=0;i<4&&hO(O.next);i++)O.advance()}else if(i==PO){for(let i=0;i<8&&hO(O.next);i++)O.advance()}else if(i==gO){if(O.next==dO){O.advance();while(O.next>=0&&O.next!=sO&&O.next!=TO&&O.next!=lO&&O.next!=eO)O.advance();if(O.next==sO)O.advance()}}}const ZO=(0,n.styleTags)({'async "*" "**" FormatConversion FormatSpec':n.tags.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":n.tags.controlKeyword,"in not and or is del":n.tags.operatorKeyword,"from def class global nonlocal lambda":n.tags.definitionKeyword,import:n.tags.moduleKeyword,"with as print":n.tags.keyword,Boolean:n.tags.bool,None:n.tags.null,VariableName:n.tags.variableName,"CallExpression/VariableName":n.tags.function(n.tags.variableName),"FunctionDefinition/VariableName":n.tags.function(n.tags.definition(n.tags.variableName)),"ClassDefinition/VariableName":n.tags.definition(n.tags.className),PropertyName:n.tags.propertyName,"CallExpression/MemberExpression/PropertyName":n.tags.function(n.tags.propertyName),Comment:n.tags.lineComment,Number:n.tags.number,String:n.tags.string,FormatString:n.tags.special(n.tags.string),Escape:n.tags.escape,UpdateOp:n.tags.updateOperator,"ArithOp!":n.tags.arithmeticOperator,BitOp:n.tags.bitwiseOperator,CompareOp:n.tags.compareOperator,AssignOp:n.tags.definitionOperator,Ellipsis:n.tags.punctuation,At:n.tags.meta,"( )":n.tags.paren,"[ ]":n.tags.squareBracket,"{ }":n.tags.brace,".":n.tags.derefOperator,", ;":n.tags.separator});const jO={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285};const EO=a.U1.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5QQdO'#DoOOQS,5:Y,5:YO5eQdO'#HdOOQS,5:],5:]O5rQ!fO,5:]O5wQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8gQdO,59bO8lQdO,59bO8sQdO,59jO8zQdO'#HTO:QQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:iQdO,59aO'vQdO,59aO:wQdO,59aOOQS,59y,59yO:|QdO,5:RO'vQdO,5:ROOQS,5:Q,5:QO;[QdO,5:QO;aQdO,5:XO'vQdO,5:XO'vQdO,5:VOOQS,5:U,5:UO;rQdO,5:UO;wQdO,5:WOOOW'#Fy'#FyO;|OWO,5:aOOQS,5:a,5:aOOOOQS'#Ds'#DsOOQS1G/w1G/wOOQS1G.|1G.|O!/RQtO1G.|O!/YQtO1G.|O1lQdO1G.|O!/uQdO1G/UOOQS'#DZ'#DZO0rQdO,59tOOQS1G.{1G.{O!/|QdO1G/eO!0^QdO1G/eO!0fQdO1G/fO'vQdO'#H[O!0kQdO'#H[O!0pQtO1G.{O!1QQdO,59iO!2WQdO,5=zO!2hQdO,5=zO!2pQdO1G/mO!2uQtO1G/mOOQS1G/l1G/lO!3VQdO,5=uO!3|QdO,5=uO0rQdO1G/qO!4kQdO1G/sO!4pQtO1G/sO!5QQtO1G/qOOQS1G/p1G/pOOQS1G/r1G/rOOOW-E9w-E9wOOQS1G/{1G/{O!5bQdO'#HxO0rQdO'#HxO!5sQdO,5>cOOOW-E9x-E9xOOQS1G/|1G/|OOQS-E9{-E9{O!6RQ#xO1G2zO!6rQtO1G2zO'vQdO,5kOOQS1G1`1G1`O!7xQdO1G1`OOQS'#DV'#DVO0rQdO,5=qOOQS,5=q,5=qO!7}QdO'#FrO!8YQdO,59oO!8bQdO1G/XO!8lQtO,5=uOOQS1G3`1G3`OOQS,5:m,5:mO!9]QdO'#GtOOQS,5jO!;QQdO,5>jO1XQdO,5>jO!;cQdO,5>iOOQS-E:R-E:RO!;hQdO1G0lO!;sQdO1G0lO!;xQdO,5>lO!lO!hO!<|QdO,5>hO!=_QdO'#EpO0rQdO1G0tO!=jQdO1G0tO!=oQgO1G0zO!AmQgO1G0}O!EhQdO,5>oO!ErQdO,5>oO!EzQtO,5>oO0rQdO1G1PO!FUQdO1G1PO4iQdO1G1UO!!sQdO1G1WOOQV,5;a,5;aO!FZQfO,5;aO!F`QgO1G1QO!JaQdO'#GZO4iQdO1G1QO4iQdO1G1QO!JqQdO,5>pO!KOQdO,5>pO1XQdO,5>pOOQV1G1U1G1UO!KWQdO'#FSO!KiQ!fO1G1WO!KqQdO1G1WOOQV1G1]1G1]O4iQdO1G1]O!KvQdO1G1]O!LOQdO'#F^OOQV1G1b1G1bO!#WQtO1G1bPOOO1G2v1G2vP!LTOSO1G2vOOQS,5=},5=}OOQS'#Dp'#DpO0rQdO,5=}O!LYQdO,5=|O!LmQdO,5=|OOQS1G/u1G/uO!LuQdO,5>PO!MVQdO,5>PO!M_QdO,5>PO!MrQdO,5>PO!NSQdO,5>POOQS1G3j1G3jOOQS7+$h7+$hO!8bQdO7+$pO# uQdO1G.|O# |QdO1G.|OOQS1G/`1G/`OOQS,5<`,5<`O'vQdO,5<`OOQS7+%P7+%PO#!TQdO7+%POOQS-E9r-E9rOOQS7+%Q7+%QO#!eQdO,5=vO'vQdO,5=vOOQS7+$g7+$gO#!jQdO7+%PO#!rQdO7+%QO#!wQdO1G3fOOQS7+%X7+%XO##XQdO1G3fO##aQdO7+%XOOQS,5<_,5<_O'vQdO,5<_O##fQdO1G3aOOQS-E9q-E9qO#$]QdO7+%]OOQS7+%_7+%_O#$kQdO1G3aO#%YQdO7+%_O#%_QdO1G3gO#%oQdO1G3gO#%wQdO7+%]O#%|QdO,5>dO#&gQdO,5>dO#&gQdO,5>dOOQS'#Dx'#DxO#&xO&jO'#DzO#'TO`O'#HyOOOW1G3}1G3}O#'YQdO1G3}O#'bQdO1G3}O#'mQ#xO7+(fO#(^QtO1G2UP#(wQdO'#GOOOQS,5bQdO,5gQdO1G4OOOQS-E9y-E9yO#?QQdO1G4OOe,5>eOOOW7+)i7+)iO#?nQdO7+)iO#?vQdO1G2zO#@aQdO1G2zP'vQdO'#FuO0rQdO<mO#AtQdO,5>mOOQS1G0v1G0vOOQS<rO#KZQdO,5>rOOQS,5>r,5>rO#KfQdO,5>qO#KwQdO,5>qOOQS1G1Y1G1YOOQS,5;p,5;pOOQV<VAN>VO$ WQdO<cAN>cO0rQdO1G1|O$ hQtO1G1|P$ rQdO'#FvOOQS1G2R1G2RP$!PQdO'#F{O$!^QdO7+)jO$!wQdO,5>gOOOO-E9z-E9zOOOW<tO$4dQdO,5>tO1XQdO,5vO$)VQdO,5>vOOQS1G1p1G1pO$8[QtO,5<[OOQU7+'P7+'PO$+cQdO1G/iO$)VQdO,5wO$8jQdO,5>wOOQS1G1s1G1sOOQS7+'S7+'SP$)VQdO'#GdO$8rQdO1G4bO$8|QdO1G4bO$9UQdO1G4bOOQS7+%T7+%TO$9dQdO1G1tO$9rQtO'#FaO$9yQdO,5<}OOQS,5<},5<}O$:XQdO1G4cOOQS-E:a-E:aO$)VQdO,5<|O$:`QdO,5<|O$:eQdO7+)|OOQS-E:`-E:`O$:oQdO7+)|O$)VQdO,5m>pPP'Z'ZPP?PPP'Z'ZPP'Z'Z'Z'Z'Z?T?}'ZP@QP@WD_G{HPPHSH^Hb'ZPPPHeHn'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RP'RPHtIQIYPIaIgPIaPIaIaPPPIaPKuPLOLYL`KuPIaLiPIaPLpLvPLzM`M}NhLzLzNnN{LzLzLzLz! a! g! j! o! r! |!!S!!`!!r!!x!#S!#Y!#v!#|!$S!$^!$d!$j!$|!%W!%^!%d!%n!%t!%z!&Q!&W!&^!&h!&n!&x!'O!'X!'_!'n!'v!(Q!(XPPPPPPPPPPP!(_!(b!(h!(q!({!)WPPPPPPPPPPPP!-z!/`!3`!6pPP!6x!7X!7b!8Z!8Q!8d!8j!8m!8p!8s!8{!9lPPPPPPPPPPPPPPPPP!9o!9s!9yP!:_!:c!:o!:x!;U!;l!;o!;r!;x!_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#YJU#Y#Z!#f#Z#fJU#f#g!,|#g#iJU#i#j!.t#j#oJU#o#p!1n#p#q!1s#q#r!2a#r#s!2f#s$g%T$g;'SJU;'S;=`KW<%lOJU`%YT&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T`%lP;=`<%l%To%v]&n`%c_OX%TXY%oY[%T[]%o]p%Tpq%oq#O%T#O#P&o#P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To&tX&n`OY%TYZ%oZ]%T]^%o^#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc'f[&n`O!_%T!_!`([!`#T%T#T#U(r#U#f%T#f#g(r#g#h(r#h#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(cTmR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc(yT!mR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk)aV&n`&[ZOr%Trs)vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk){V&n`Or%Trs*bs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk*iT&n`&^ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To+PZS_&n`OY*xYZ%TZ]*x]^%T^#o*x#o#p+r#p#q*x#q#r+r#r;'S*x;'S;=`,^<%lO*x_+wTS_OY+rZ]+r^;'S+r;'S;=`,W<%lO+r_,ZP;=`<%l+ro,aP;=`<%l*xj,kV%rQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-XT!xY&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj-oV%lQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.]V&n`&ZZOw%Twx.rx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk.wV&n`Ow%Twx/^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/eT&n`&]ZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk/{ThZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc0cTgR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk0yXVZ&n`Oz%Tz{1f{!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk1mVaR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk2ZV%oZ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc2wTzR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To3_W%pZ&n`O!_%T!_!`-Q!`!a3w!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Td4OT&{S&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk4fX!fQ&n`O!O%T!O!P5R!P!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5WV&n`O!O%T!O!P5m!P#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk5tT!rZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti6[a!hX&n`O!Q%T!Q![6T![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S6T#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti7fZ&n`O{%T{|8X|}%T}!O8X!O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8^V&n`O!Q%T!Q![8s![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti8z]!hX&n`O!Q%T!Q![8s![!l%T!l!m9s!m#R%T#R#S8s#S#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti9zT!hX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk:bX%qR&n`O!P%T!P!Q:}!Q!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj;UV%sQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti;ro!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!d%T!d!e?q!e!g%T!g!h7a!h!l%T!l!m9s!m!q%T!q!rA]!r!z%T!z!{Bq!{#R%T#R#S>_#S#U%T#U#V?q#V#X%T#X#Y7a#Y#^%T#^#_9s#_#c%T#c#dA]#d#l%T#l#mBq#m#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti=xV&n`O!Q%T!Q![6T![#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti>fc!hX&n`O!O%T!O!P=s!P!Q%T!Q![>_![!g%T!g!h7a!h!l%T!l!m9s!m#R%T#R#S>_#S#X%T#X#Y7a#Y#^%T#^#_9s#_#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti?vY&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Ti@mY!hX&n`O!Q%T!Q!R@f!R!S@f!S#R%T#R#S@f#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiAbX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBUX!hX&n`O!Q%T!Q!YA}!Y#R%T#R#SA}#S#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiBv]&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TiCv]!hX&n`O!Q%T!Q![Co![!c%T!c!iCo!i#R%T#R#SCo#S#T%T#T#ZCo#Z#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToDvV{_&n`O!_%T!_!`E]!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TcEdT%{R&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkEzT#gZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkFbXmR&n`O!^%T!^!_F}!_!`([!`!a([!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjGUV%mQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkGrV%zZ&n`O!_%T!_!`([!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkH`WmR&n`O!_%T!_!`([!`!aHx!a#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TjIPV%nQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkIoV_Q#}P&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%ToJ_]&n`&YS%uZO!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoKZP;=`<%lJUoKge&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!tJU!t!uLx!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#gLx#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUoMRa&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUkN_V&n`&`ZOr%TrsNts#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%TkNyV&n`Or%Trs! `s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! gT&n`&bZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk! }V&n`&_ZOw%Twx!!dx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!!iV&n`Ow%Twx!#Ox#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!#VT&n`&aZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!#oe&n`&YS%uZOr%Trs!%Qsw%Twx!&px!Q%T!Q![JU![!c%T!c!tJU!t!u!(`!u!}JU!}#R%T#R#SJU#S#T%T#T#fJU#f#g!(`#g#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!%XV&n`&dZOr%Trs!%ns#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!%sV&n`Or%Trs!&Ys#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&aT&n`&fZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!&wV&n`&cZOw%Twx!'^x#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!'cV&n`Ow%Twx!'xx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!(PT&n`&eZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!(ia&n`&YS%uZOr%Trs!)nsw%Twx!+^x!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!)uV&n`&hZOr%Trs!*[s#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*aV&n`Or%Trs!*vs#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!*}T&n`&jZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!+eV&n`&gZOw%Twx!+zx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[GO,fO,XO,bO,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:O=>jO[O]||-1}],tokenPrec:7652});var YO=e(4452);var FO=e(66575);var JO=e(75128);const AO=new FO.NodeWeakMap;const CO=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function IO(O){return(i,e,a)=>{if(a)return false;let n=i.node.getChild("VariableName");if(n)e(n,O);return true}}const NO={FunctionDefinition:IO("function"),ClassDefinition:IO("class"),ForStatement(O,i,e){if(e)for(let a=O.node.firstChild;a;a=a.nextSibling){if(a.name=="VariableName")i(a,"variable");else if(a.name=="in")break}},ImportStatement(O,i){var e,a;let{node:n}=O;let Q=((e=n.firstChild)===null||e===void 0?void 0:e.name)=="from";for(let t=n.getChild("import");t;t=t.nextSibling){if(t.name=="VariableName"&&((a=t.nextSibling)===null||a===void 0?void 0:a.name)!="as")i(t,Q?"variable":"namespace")}},AssignStatement(O,i){for(let e=O.node.firstChild;e;e=e.nextSibling){if(e.name=="VariableName")i(e,"variable");else if(e.name==":"||e.name=="AssignOp")break}},ParamList(O,i){for(let e=null,a=O.node.firstChild;a;a=a.nextSibling){if(a.name=="VariableName"&&(!e||!/\*|AssignOp/.test(e.name)))i(a,"variable");e=a}},CapturePattern:IO("variable"),AsPattern:IO("variable"),__proto__:null};function DO(O,i){let e=AO.get(i);if(e)return e;let a=[],n=true;function Q(i,e){let n=O.sliceString(i.from,i.to);a.push({label:n,type:e})}i.cursor(FO.IterMode.IncludeAnonymous).iterate((i=>{if(i.name){let O=NO[i.name];if(O&&O(i,Q,n)||!n&&CO.has(i.name))return false;n=false}else if(i.to-i.from>8192){for(let e of DO(O,i.node))a.push(e);return false}}));AO.set(i,a);return a}const HO=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/;const LO=["String","FormatString","Comment","PropertyName"];function BO(O){let i=(0,YO.syntaxTree)(O.state).resolveInner(O.pos,-1);if(LO.indexOf(i.name)>-1)return null;let e=i.name=="VariableName"||i.to-i.from<20&&HO.test(O.state.sliceDoc(i.from,i.to));if(!e&&!O.explicit)return null;let a=[];for(let n=i;n;n=n.parent){if(CO.has(n.name))a=a.concat(DO(O.state.doc,n))}return{options:a,from:e?i.from:O.pos,validFor:HO}}const KO=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((O=>({label:O,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((O=>({label:O,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((O=>({label:O,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((O=>({label:O,type:"function"}))));const MO=[(0,JO.Gw)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,JO.Gw)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,JO.Gw)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,JO.Gw)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,JO.Gw)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,JO.Gw)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,JO.Gw)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,JO.Gw)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,JO.Gw)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})];const Oi=(0,JO.Ar)(LO,(0,JO.et)(KO.concat(MO)));function ii(O){let{node:i,pos:e}=O;let a=O.lineIndent(e,-1);let n=null;for(;;){let Q=i.childBefore(e);if(!Q){break}else if(Q.name=="Comment"){e=Q.from}else if(Q.name=="Body"||Q.name=="MatchBody"){if(O.baseIndentFor(Q)+O.unit<=a)n=Q;i=Q}else if(Q.name=="MatchClause"){i=Q}else if(Q.type.is("Statement")){i=Q}else{break}}return n}function ei(O,i){let e=O.baseIndentFor(i);let a=O.lineAt(O.pos,-1),n=a.from+a.text.length;if(/^\s*($|#)/.test(a.text)&&O.node.toe)return null;return e+O.unit}const ai=YO.LRLanguage.define({name:"python",parser:EO.configure({props:[YO.indentNodeProp.add({Body:O=>{var i;let e=ii(O);return(i=ei(O,e||O.node))!==null&&i!==void 0?i:O.continue()},MatchBody:O=>{var i;let e=ii(O);return(i=ei(O,e||O.node))!==null&&i!==void 0?i:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),"ForStatement WhileStatement":O=>/^\s*else:/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except |finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),MatchStatement:O=>{if(/^\s*case /.test(O.textAfter))return O.baseIndent+O.unit;return O.continue()},"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,YO.delimitedIndent)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,YO.delimitedIndent)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,YO.delimitedIndent)({closing:"]"}),MemberExpression:O=>O.baseIndent+O.unit,"String FormatString":()=>null,Script:O=>{var i;let e=ii(O);return(i=e&&ei(O,e))!==null&&i!==void 0?i:O.continue()}}),YO.foldNodeProp.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":YO.foldInside,Body:(O,i)=>({from:O.from+1,to:O.to-(O.to==i.doc.length?0:1)}),"String FormatString":(O,i)=>({from:i.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function ni(){return new YO.LanguageSupport(ai,[ai.data.of({autocomplete:BO}),ai.data.of({autocomplete:Oi})])}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9474.01b4e1d1e3376f4a5919.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9474.01b4e1d1e3376f4a5919.js new file mode 100644 index 0000000000000000000000000000000000000000..ad4f4413b6753b70cdfe25b1c665a94db4090444 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9474.01b4e1d1e3376f4a5919.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9474],{59474:(e,t,n)=>{n.r(t);n.d(t,{turtle:()=>p});var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var l=i([]);var a=i(["@prefix","@base","a"]);var o=/[*+\-<>=&|]/;function c(e,t){var n=e.next();r=null;if(n=="<"&&!e.match(/^[\s\u00a0=]/,false)){e.match(/^[^\s\u00a0>]*>?/);return"atom"}else if(n=='"'||n=="'"){t.tokenize=u(n);return t.tokenize(e,t)}else if(/[{}\(\),\.;\[\]]/.test(n)){r=n;return null}else if(n=="#"){e.skipToEnd();return"comment"}else if(o.test(n)){e.eatWhile(o);return null}else if(n==":"){return"operator"}else{e.eatWhile(/[_\w\d]/);if(e.peek()==":"){return"variableName.special"}else{var i=e.current();if(a.test(i)){return"meta"}if(n>="A"&&n<="Z"){return"comment"}else{return"keyword"}}var i=e.current();if(l.test(i))return null;else if(a.test(i))return"meta";else return"variable"}}function u(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r){n.tokenize=c;break}r=!r&&i=="\\"}return"string"}}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function f(e){e.indent=e.context.indent;e.context=e.context.prev}const p={name:"turtle",startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}if(e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")s(t,")",e.column());else if(r=="[")s(t,"]",e.column());else if(r=="{")s(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")f(t);if(t.context&&r==t.context.type)f(t)}else if(r=="."&&t.context&&t.context.type=="pattern")f(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))s(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var i=e.context;if(/[\]\}]/.test(r))while(i&&i.type=="pattern")i=i.prev;var l=i&&r==i.type;if(!i)return 0;else if(i.type=="pattern")return i.col;else if(i.align)return i.col+(l?0:1);else return i.indent+(l?0:n.unit)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9572.f91bbaa33e932d524f8f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9572.f91bbaa33e932d524f8f.js new file mode 100644 index 0000000000000000000000000000000000000000..fbfbb00be96b77ff6a6ab1fd8a64b87ab4cba064 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9572.f91bbaa33e932d524f8f.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9572],{19756:function(t){!function(e,n){true?t.exports=n():0}(this,(function(){"use strict";return function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var r=this.$utils(),s=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return r.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return r.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return r.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(s)}}}))},90445:function(t){!function(e,n){true?t.exports=n():0}(this,(function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)};var c=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],u=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,i=a.meridiem;if(i){for(var r=1;r<=24;r+=1)if(t.indexOf(i(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},f={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[i,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,c("seconds")],ss:[r,c("seconds")],m:[r,c("minutes")],mm:[r,c("minutes")],H:[r,c("hours")],h:[r,c("hours")],HH:[r,c("hours")],hh:[r,c("hours")],D:[r,c("day")],DD:[i,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],w:[r,c("week")],ww:[i,c("week")],M:[r,c("month")],MM:[i,c("month")],MMM:[s,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function h(n){var i,r;i=n,r=a&&a.formats;for(var s=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var s=i&&i.toUpperCase();return n||r[i]||t[i]||r[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=s.length,c=0;c-1)return new Date(("X"===e?1e3:1)*t);var r=h(e)(t),s=r.year,a=r.month,o=r.day,c=r.hours,l=r.minutes,u=r.seconds,d=r.milliseconds,f=r.zone,k=r.week,y=new Date,m=o||(s||a?1:y.getDate()),p=s||y.getFullYear(),g=0;s&&!a||(g=a>0?a-1:y.getMonth());var v,b=c||0,T=l||0,x=u||0,w=d||0;return f?new Date(Date.UTC(p,g,m,b,T,x,w+60*f.offset*1e3)):n?new Date(Date.UTC(p,g,m,b,T,x,w)):(v=new Date(p,g,m,b,T,x,w),k&&(v=i(v).week(k).toDate()),v)}catch(t){return new Date("")}}(e,o,i,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&e!=this.format(o)&&(this.$d=new Date("")),a={}}else if(o instanceof Array)for(var f=o.length,k=1;k<=f;k+=1){s[1]=o[k-1];var y=n.apply(this,s);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}k===f&&(this.$d=new Date(""))}else r.call(this,t)}}}))},90694:function(t){!function(e,n){true?t.exports=n():0}(this,(function(){"use strict";var t="day";return function(e,n,i){var r=function(e){return e.add(4-e.isoWeekday(),t)},s=n.prototype;s.isoWeekYear=function(){return r(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,s,a,o,c=r(this),l=(n=this.isoWeekYear(),s=this.$u,a=(s?i.utc:i)().year(n).startOf("year"),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,t));return c.diff(l,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}))},87191:(t,e,n)=>{"use strict";n.d(e,{diagram:()=>Nt});var i=n(96049);var r=n(75905);var s=n(16750);var a=n(74353);var o=n.n(a);var c=n(90694);var l=n.n(c);var u=n(90445);var d=n.n(u);var f=n(19756);var h=n.n(f);var k=n(24982);var y=function(){var t=(0,r.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],a=[1,29],o=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],h=[1,10],k=[1,11],y=[1,12],m=[1,13],p=[1,14],g=[1,15],v=[1,16],b=[1,19],T=[1,20],x=[1,21],w=[1,22],_=[1,23],D=[1,25],$=[1,35];var C={trace:(0,r.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:(0,r.K2)((function t(e,n,i,r,s,a,o){var c=a.length-1;switch(s){case 1:return a[c-1];break;case 2:this.$=[];break;case 3:a[c-1].push(a[c]);this.$=a[c-1];break;case 4:case 5:this.$=a[c];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(a[c].substr(11));this.$=a[c].substr(11);break;case 18:r.enableInclusiveEndDates();this.$=a[c].substr(18);break;case 19:r.TopAxis();this.$=a[c].substr(8);break;case 20:r.setAxisFormat(a[c].substr(11));this.$=a[c].substr(11);break;case 21:r.setTickInterval(a[c].substr(13));this.$=a[c].substr(13);break;case 22:r.setExcludes(a[c].substr(9));this.$=a[c].substr(9);break;case 23:r.setIncludes(a[c].substr(9));this.$=a[c].substr(9);break;case 24:r.setTodayMarker(a[c].substr(12));this.$=a[c].substr(12);break;case 27:r.setDiagramTitle(a[c].substr(6));this.$=a[c].substr(6);break;case 28:this.$=a[c].trim();r.setAccTitle(this.$);break;case 29:case 30:this.$=a[c].trim();r.setAccDescription(this.$);break;case 31:r.addSection(a[c].substr(8));this.$=a[c].substr(8);break;case 33:r.addTask(a[c-1],a[c]);this.$="task";break;case 34:this.$=a[c-1];r.setClickEvent(a[c-1],a[c],null);break;case 35:this.$=a[c-2];r.setClickEvent(a[c-2],a[c-1],a[c]);break;case 36:this.$=a[c-2];r.setClickEvent(a[c-2],a[c-1],null);r.setLink(a[c-2],a[c]);break;case 37:this.$=a[c-3];r.setClickEvent(a[c-3],a[c-2],a[c-1]);r.setLink(a[c-3],a[c]);break;case 38:this.$=a[c-2];r.setClickEvent(a[c-2],a[c],null);r.setLink(a[c-2],a[c-1]);break;case 39:this.$=a[c-3];r.setClickEvent(a[c-3],a[c-1],a[c]);r.setLink(a[c-3],a[c-2]);break;case 40:this.$=a[c-1];r.setLink(a[c-1],a[c]);break;case 41:case 47:this.$=a[c-1]+" "+a[c];break;case 42:case 43:case 45:this.$=a[c-2]+" "+a[c-1]+" "+a[c];break;case 44:case 46:this.$=a[c-3]+" "+a[c-2]+" "+a[c-1]+" "+a[c];break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:a,16:o,17:c,18:l,19:18,20:u,21:d,22:f,23:h,24:k,25:y,26:m,27:p,28:g,29:v,30:b,31:T,33:x,35:w,36:_,37:24,38:D,40:$},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:a,16:o,17:c,18:l,19:18,20:u,21:d,22:f,23:h,24:k,25:y,26:m,27:p,28:g,29:v,30:b,31:T,33:x,35:w,36:_,37:24,38:D,40:$},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:(0,r.K2)((function t(e,n){if(n.recoverable){this.trace(e)}else{var i=new Error(e);i.hash=n;throw i}}),"parseError"),parse:(0,r.K2)((function t(e){var n=this,i=[0],s=[],a=[null],o=[],c=this.table,l="",u=0,d=0,f=0,h=2,k=1;var y=o.slice.call(arguments,1);var m=Object.create(this.lexer);var p={yy:{}};for(var g in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,g)){p.yy[g]=this.yy[g]}}m.setInput(e,p.yy);p.yy.lexer=m;p.yy.parser=this;if(typeof m.yylloc=="undefined"){m.yylloc={}}var v=m.yylloc;o.push(v);var b=m.options&&m.options.ranges;if(typeof p.yy.parseError==="function"){this.parseError=p.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function T(t){i.length=i.length-2*t;a.length=a.length-t;o.length=o.length-t}(0,r.K2)(T,"popStack");function x(){var t;t=s.pop()||m.lex()||k;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=n.symbols_[t]||t}return t}(0,r.K2)(x,"lex");var w,_,D,$,C,S,K={},E,M,A,L;while(true){D=i[i.length-1];if(this.defaultActions[D]){$=this.defaultActions[D]}else{if(w===null||typeof w=="undefined"){w=x()}$=c[D]&&c[D][w]}if(typeof $==="undefined"||!$.length||!$[0]){var Y="";L=[];for(E in c[D]){if(this.terminals_[E]&&E>h){L.push("'"+this.terminals_[E]+"'")}}if(m.showPosition){Y="Parse error on line "+(u+1)+":\n"+m.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{Y="Parse error on line "+(u+1)+": Unexpected "+(w==k?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(Y,{text:m.match,token:this.terminals_[w]||w,line:m.yylineno,loc:v,expected:L})}if($[0]instanceof Array&&$.length>1){throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+w)}switch($[0]){case 1:i.push(w);a.push(m.yytext);o.push(m.yylloc);i.push($[1]);w=null;if(!_){d=m.yyleng;l=m.yytext;u=m.yylineno;v=m.yylloc;if(f>0){f--}}else{w=_;_=null}break;case 2:M=this.productions_[$[1]][1];K.$=a[a.length-M];K._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column};if(b){K._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]}S=this.performAction.apply(K,[l,d,u,p.yy,$[1],a,o].concat(y));if(typeof S!=="undefined"){return S}if(M){i=i.slice(0,-1*M*2);a=a.slice(0,-1*M);o=o.slice(0,-1*M)}i.push(this.productions_[$[1]][0]);a.push(K.$);o.push(K._$);A=c[i[i.length-2]][i[i.length-1]];i.push(A);break;case 3:return true}}return true}),"parse")};var S=function(){var t={EOF:1,parseError:(0,r.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,r.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,r.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,r.K2)((function(t){var e=t.length;var n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-e);this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(n.length-1){this.yylineno-=n.length-1}var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,r.K2)((function(){this._more=true;return this}),"more"),reject:(0,r.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,r.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,r.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,r.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,r.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,r.K2)((function(t,e){var n,i,r;if(this.options.backtrack_lexer){r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}i=t[0].match(/(?:\r\n?|\n).*/g);if(i){this.yylineno+=i.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(n){return n}else if(this._backtrack){for(var s in r){this[s]=r[s]}return false}return false}),"test_match"),next:(0,r.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,n,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;se[0].length)){e=n;i=s;if(this.options.backtrack_lexer){t=this.test_match(n,r[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[i]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,r.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,r.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,r.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,r.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,r.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,r.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,r.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,r.K2)((function t(e,n,i,r){var s=r;switch(i){case 0:this.begin("open_directive");return"open_directive";break;case 1:this.begin("acc_title");return 31;break;case 2:this.popState();return"acc_title_value";break;case 3:this.begin("acc_descr");return 33;break;case 4:this.popState();return"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";break;case 8:break;case 9:break;case 10:break;case 11:return 10;break;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;break;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState();this.begin("callbackargs");break;case 20:return 41;break;case 21:this.popState();break;case 22:return 42;break;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;break;case 26:return 4;break;case 27:return 22;break;case 28:return 23;break;case 29:return 24;break;case 30:return 25;break;case 31:return 26;break;case 32:return 28;break;case 33:return 27;break;case 34:return 29;break;case 35:return 12;break;case 36:return 13;break;case 37:return 14;break;case 38:return 15;break;case 39:return 16;break;case 40:return 17;break;case 41:return 18;break;case 42:return 20;break;case 43:return 21;break;case 44:return"date";break;case 45:return 30;break;case 46:return"accDescription";break;case 47:return 36;break;case 48:return 38;break;case 49:return 39;break;case 50:return":";break;case 51:return 6;break;case 52:return"INVALID";break}}),"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:false},acc_descr:{rules:[4],inclusive:false},acc_title:{rules:[2],inclusive:false},callbackargs:{rules:[21,22],inclusive:false},callbackname:{rules:[18,19,20],inclusive:false},href:{rules:[15,16],inclusive:false},click:{rules:[24,25],inclusive:false},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:true}}};return t}();C.lexer=S;function K(){this.yy={}}(0,r.K2)(K,"Parser");K.prototype=C;C.Parser=K;return new K}();y.parser=y;var m=y;o().extend(l());o().extend(d());o().extend(h());var p={friday:5,saturday:6};var g="";var v="";var b=void 0;var T="";var x=[];var w=[];var _=new Map;var D=[];var $=[];var C="";var S="";var K=["active","done","crit","milestone"];var E=[];var M=false;var A=false;var L="sunday";var Y="saturday";var I=0;var F=(0,r.K2)((function(){D=[];$=[];C="";E=[];kt=0;gt=void 0;vt=void 0;bt=[];g="";v="";S="";b=void 0;T="";x=[];w=[];M=false;A=false;I=0;_=new Map;(0,r.IU)();L="sunday";Y="saturday"}),"clear");var W=(0,r.K2)((function(t){v=t}),"setAxisFormat");var O=(0,r.K2)((function(){return v}),"getAxisFormat");var P=(0,r.K2)((function(t){b=t}),"setTickInterval");var B=(0,r.K2)((function(){return b}),"getTickInterval");var z=(0,r.K2)((function(t){T=t}),"setTodayMarker");var N=(0,r.K2)((function(){return T}),"getTodayMarker");var G=(0,r.K2)((function(t){g=t}),"setDateFormat");var H=(0,r.K2)((function(){M=true}),"enableInclusiveEndDates");var j=(0,r.K2)((function(){return M}),"endDatesAreInclusive");var R=(0,r.K2)((function(){A=true}),"enableTopAxis");var U=(0,r.K2)((function(){return A}),"topAxisEnabled");var V=(0,r.K2)((function(t){S=t}),"setDisplayMode");var Z=(0,r.K2)((function(){return S}),"getDisplayMode");var X=(0,r.K2)((function(){return g}),"getDateFormat");var q=(0,r.K2)((function(t){x=t.toLowerCase().split(/[\s,]+/)}),"setIncludes");var Q=(0,r.K2)((function(){return x}),"getIncludes");var J=(0,r.K2)((function(t){w=t.toLowerCase().split(/[\s,]+/)}),"setExcludes");var tt=(0,r.K2)((function(){return w}),"getExcludes");var et=(0,r.K2)((function(){return _}),"getLinks");var nt=(0,r.K2)((function(t){C=t;D.push(t)}),"addSection");var it=(0,r.K2)((function(){return D}),"getSections");var rt=(0,r.K2)((function(){let t=Dt();const e=10;let n=0;while(!t&&n[\d\w- ]+)/;const s=i.exec(n);if(s!==null){let t=null;for(const n of s.groups.ids.split(" ")){let e=wt(n);if(e!==void 0&&(!t||e.endTime>t.endTime)){t=e}}if(t){return t.endTime}const e=new Date;e.setHours(0,0,0,0);return e}let a=o()(n,e.trim(),true);if(a.isValid()){return a.toDate()}else{r.Rm.debug("Invalid date:"+n);r.Rm.debug("With date format:"+e.trim());const t=new Date(n);if(t===void 0||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4){throw new Error("Invalid date:"+n)}return t}}),"getStartDate");var ft=(0,r.K2)((function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());if(e!==null){return[Number.parseFloat(e[1]),e[2]]}return[NaN,"ms"]}),"parseDuration");var ht=(0,r.K2)((function(t,e,n,i=false){n=n.trim();const r=/^until\s+(?[\d\w- ]+)/;const s=r.exec(n);if(s!==null){let t=null;for(const n of s.groups.ids.split(" ")){let e=wt(n);if(e!==void 0&&(!t||e.startTime{window.open(n,"_self")}));_.set(t,n)}}));Ct(t,"clickable")}),"setLink");var Ct=(0,r.K2)((function(t,e){t.split(",").forEach((function(t){let n=wt(t);if(n!==void 0){n.classes.push(e)}}))}),"setClass");var St=(0,r.K2)((function(t,e,n){if((0,r.D7)().securityLevel!=="loose"){return}if(e===void 0){return}let s=[];if(typeof n==="string"){s=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{i._K.runFunc(e,...s)}))}}),"setClickFun");var Kt=(0,r.K2)((function(t,e){E.push((function(){const n=document.querySelector(`[id="${t}"]`);if(n!==null){n.addEventListener("click",(function(){e()}))}}),(function(){const n=document.querySelector(`[id="${t}-text"]`);if(n!==null){n.addEventListener("click",(function(){e()}))}}))}),"pushFun");var Et=(0,r.K2)((function(t,e,n){t.split(",").forEach((function(t){St(t,e,n)}));Ct(t,"clickable")}),"setClickEvent");var Mt=(0,r.K2)((function(t){E.forEach((function(e){e(t)}))}),"bindFunctions");var At={getConfig:(0,r.K2)((()=>(0,r.D7)().gantt),"getConfig"),clear:F,setDateFormat:G,getDateFormat:X,enableInclusiveEndDates:H,endDatesAreInclusive:j,enableTopAxis:R,topAxisEnabled:U,setAxisFormat:W,getAxisFormat:O,setTickInterval:P,getTickInterval:B,setTodayMarker:z,getTodayMarker:N,setAccTitle:r.SV,getAccTitle:r.iN,setDiagramTitle:r.ke,getDiagramTitle:r.ab,setDisplayMode:V,getDisplayMode:Z,setAccDescription:r.EI,getAccDescription:r.m7,addSection:nt,getSections:it,getTasks:rt,addTask:xt,findTaskById:wt,addTaskOrg:_t,setIncludes:q,getIncludes:Q,setExcludes:J,getExcludes:tt,setClickEvent:Et,setLink:$t,getLinks:et,bindFunctions:Mt,parseDuration:ft,isInvalidDate:st,setWeekday:at,getWeekday:ot,setWeekend:ct};function Lt(t,e,n){let i=true;while(i){i=false;n.forEach((function(n){const r="^\\s*"+n+"\\s*$";const s=new RegExp(r);if(t[0].match(s)){e[n]=true;t.shift(1);i=true}}))}}(0,r.K2)(Lt,"getTaskTags");var Yt=(0,r.K2)((function(){r.Rm.debug("Something is calling, setConf, remove the call")}),"setConf");var It={monday:k.ABi,tuesday:k.PGu,wednesday:k.GuW,thursday:k.Mol,friday:k.TUC,saturday:k.rGn,sunday:k.YPH};var Ft=(0,r.K2)(((t,e)=>{let n=[...t].map((()=>-Infinity));let i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order));let r=0;for(const s of i){for(let t=0;t=n[t]){n[t]=s.endTime;s.order=t+e;if(t>r){r=t}break}}}return r}),"getMaxIntersections");var Wt;var Ot=(0,r.K2)((function(t,e,n,i){const s=(0,r.D7)().gantt;const a=(0,r.D7)().securityLevel;let c;if(a==="sandbox"){c=(0,k.Ltv)("#i"+e)}const l=a==="sandbox"?(0,k.Ltv)(c.nodes()[0].contentDocument.body):(0,k.Ltv)("body");const u=a==="sandbox"?c.nodes()[0].contentDocument:document;const d=u.getElementById(e);Wt=d.parentElement.offsetWidth;if(Wt===void 0){Wt=1200}if(s.useWidth!==void 0){Wt=s.useWidth}const f=i.db.getTasks();let h=[];for(const r of f){h.push(r.type)}h=$(h);const y={};let m=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){const t={};for(const n of f){if(t[n.section]===void 0){t[n.section]=[n]}else{t[n.section].push(n)}}let e=0;for(const n of Object.keys(t)){const i=Ft(t[n],e)+1;e+=i;m+=i*(s.barHeight+s.barGap);y[n]=i}}else{m+=f.length*(s.barHeight+s.barGap);for(const t of h){y[t]=f.filter((e=>e.type===t)).length}}d.setAttribute("viewBox","0 0 "+Wt+" "+m);const p=l.select(`[id="${e}"]`);const g=(0,k.w7C)().domain([(0,k.jkA)(f,(function(t){return t.startTime})),(0,k.T9B)(f,(function(t){return t.endTime}))]).rangeRound([0,Wt-s.leftPadding-s.rightPadding]);function v(t,e){const n=t.startTime;const i=e.startTime;let r=0;if(n>i){r=1}else if(nt.order)))];const f=d.map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(f).enter().append("rect").attr("x",0).attr("y",(function(t,e){e=t.order;return e*n+a-2})).attr("width",(function(){return u-s.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of h.entries()){if(t.type===n){return"section section"+e%s.numberSectionStyles}}return"section section0"}));const y=p.append("g").selectAll("rect").data(t).enter();const m=i.db.getLinks();y.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){if(t.milestone){return g(t.startTime)+o+.5*(g(t.endTime)-g(t.startTime))-.5*c}return g(t.startTime)+o})).attr("y",(function(t,e){e=t.order;return e*n+a})).attr("width",(function(t){if(t.milestone){return c}return g(t.renderEndTime||t.endTime)-g(t.startTime)})).attr("height",c).attr("transform-origin",(function(t,e){e=t.order;return(g(t.startTime)+o+.5*(g(t.endTime)-g(t.startTime))).toString()+"px "+(e*n+a+.5*c).toString()+"px"})).attr("class",(function(t){const e="task";let n="";if(t.classes.length>0){n=t.classes.join(" ")}let i=0;for(const[a,o]of h.entries()){if(t.type===o){i=a%s.numberSectionStyles}}let r="";if(t.active){if(t.crit){r+=" activeCrit"}else{r=" active"}}else if(t.done){if(t.crit){r=" doneCrit"}else{r=" done"}}else{if(t.crit){r+=" crit"}}if(r.length===0){r=" task"}if(t.milestone){r=" milestone "+r}r+=i;r+=" "+n;return e+r}));y.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",s.fontSize).attr("x",(function(t){let e=g(t.startTime);let n=g(t.renderEndTime||t.endTime);if(t.milestone){e+=.5*(g(t.endTime)-g(t.startTime))-.5*c}if(t.milestone){n=e+c}const i=this.getBBox().width;if(i>n-e){if(n+i+1.5*s.leftPadding>u){return e+o-5}else{return n+o+5}}else{return(n-e)/2+e+o}})).attr("y",(function(t,e){e=t.order;return e*n+s.barHeight/2+(s.fontSize/2-2)+a})).attr("text-height",c).attr("class",(function(t){const e=g(t.startTime);let n=g(t.endTime);if(t.milestone){n=e+c}const i=this.getBBox().width;let r="";if(t.classes.length>0){r=t.classes.join(" ")}let a=0;for(const[c,l]of h.entries()){if(t.type===l){a=c%s.numberSectionStyles}}let o="";if(t.active){if(t.crit){o="activeCritText"+a}else{o="activeText"+a}}if(t.done){if(t.crit){o=o+" doneCritText"+a}else{o=o+" doneText"+a}}else{if(t.crit){o=o+" critText"+a}}if(t.milestone){o+=" milestoneText"}if(i>n-e){if(n+i+1.5*s.leftPadding>u){return r+" taskTextOutsideLeft taskTextOutside"+a+" "+o}else{return r+" taskTextOutsideRight taskTextOutside"+a+" "+o+" width-"+i}}else{return r+" taskText taskText"+a+" "+o+" width-"+i}}));const v=(0,r.D7)().securityLevel;if(v==="sandbox"){let t;t=(0,k.Ltv)("#i"+e);const n=t.nodes()[0].contentDocument;y.filter((function(t){return m.has(t.id)})).each((function(t){var e=n.querySelector("#"+t.id);var i=n.querySelector("#"+t.id+"-text");const r=e.parentNode;var s=n.createElement("a");s.setAttribute("xlink:href",m.get(t.id));s.setAttribute("target","_top");r.appendChild(s);s.appendChild(e);s.appendChild(i)}))}}(0,r.K2)(T,"drawRects");function x(t,e,n,a,c,l,u,d){if(u.length===0&&d.length===0){return}let f;let h;for(const{startTime:i,endTime:r}of l){if(f===void 0||ih){h=r}}if(!f||!h){return}if(o()(h).diff(o()(f),"year")>5){r.Rm.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const k=i.db.getDateFormat();const y=[];let m=null;let v=o()(f);while(v.valueOf()<=h){if(i.db.isInvalidDate(v,k,u,d)){if(!m){m={start:v,end:v}}else{m.end=v}}else{if(m){y.push(m);m=null}}v=v.add(1,"d")}const b=p.append("g").selectAll("rect").data(y).enter();b.append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return g(t.start)+n})).attr("y",s.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return g(e)-g(t.start)})).attr("height",c-e-s.gridLineStartPadding).attr("transform-origin",(function(e,i){return(g(e.start)+n+.5*(g(e.end)-g(e.start))).toString()+"px "+(i*t+.5*c).toString()+"px"})).attr("class","exclude-range")}(0,r.K2)(x,"drawExcludeDays");function w(t,e,n,r){let a=(0,k.l78)(g).tickSize(-r+e+s.gridLineStartPadding).tickFormat((0,k.DCK)(i.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));const o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/;const c=o.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){const t=c[1];const e=c[2];const n=i.db.getWeekday()||s.weekday;switch(e){case"millisecond":a.ticks(k.t6C.every(t));break;case"second":a.ticks(k.ucG.every(t));break;case"minute":a.ticks(k.wXd.every(t));break;case"hour":a.ticks(k.Agd.every(t));break;case"day":a.ticks(k.UAC.every(t));break;case"week":a.ticks(It[n].every(t));break;case"month":a.ticks(k.Ui6.every(t));break}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(r-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em");if(i.db.topAxisEnabled()||s.topAxis){let n=(0,k.tlR)(g).tickSize(-r+e+s.gridLineStartPadding).tickFormat((0,k.DCK)(i.db.getAxisFormat()||s.axisFormat||"%Y-%m-%d"));if(c!==null){const t=c[1];const e=c[2];const r=i.db.getWeekday()||s.weekday;switch(e){case"millisecond":n.ticks(k.t6C.every(t));break;case"second":n.ticks(k.ucG.every(t));break;case"minute":n.ticks(k.wXd.every(t));break;case"hour":n.ticks(k.Agd.every(t));break;case"day":n.ticks(k.UAC.every(t));break;case"week":n.ticks(It[r].every(t));break;case"month":n.ticks(k.Ui6.every(t));break}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(0,r.K2)(w,"makeGrid");function _(t,e){let n=0;const i=Object.keys(y).map((t=>[t,y[t]]));p.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(r.Y2.lineBreakRegex);const n=-(e.length-1)/2;const i=u.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[r,s]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central");t.setAttribute("x","10");if(r>0){t.setAttribute("dy","1em")}t.textContent=s;i.appendChild(t)}return i})).attr("x",10).attr("y",(function(r,s){if(s>0){for(let a=0;a`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`),"getStyles");var zt=Bt;var Nt={parser:m,db:At,renderer:Pt,styles:zt}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js new file mode 100644 index 0000000000000000000000000000000000000000..e439443e48faf8267c50f165274bdde3555d668d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js @@ -0,0 +1,2 @@ +/*! For license information please see 961.29c067b15a524e556eed.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[961],{22551:(e,n,t)=>{var r=t(44914),l=t(69982);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}function y(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n;this.attributeName=r;this.attributeNamespace=l;this.mustUseProperty=t;this.propertyName=e;this.type=n;this.sanitizeURL=a;this.removeEmptyString=u}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];b[n]=new y(n,1,!1,e[1],null,!1,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new y(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){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}));["checked","multiple","muted","selected"].forEach((function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}));["capture","download"].forEach((function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}));["cols","rows","size","span"].forEach((function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}));["rowSpan","start"].forEach((function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var k=/[\-:]([a-z])/g;function w(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 n=e.replace(k,w);b[n]=new y(n,1,!1,e,null,!1,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(k,w);b[n]=new y(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(k,w);b[n]=new y(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}));["tabIndex","crossOrigin"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}));b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));function S(e,n,t,r){var l=b.hasOwnProperty(n)?b[n]:null;if(null!==l?0!==l.type:r||!(2i||l[u]!==a[i]){var o="\n"+l[u].replace(" at new "," at ");e.displayName&&o.includes("")&&(o=o.replace("",e.displayName));return o}}while(1<=u&&0<=i)}break}}}finally{H=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?B(e):""}function Q(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case C:return"Portal";case z:return"Profiler";case N:return"StrictMode";case M:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case L:var n=e.render;e=e.displayName;e||(e=n.displayName||n.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef");return e;case D:return n=e.displayName||null,null!==n?n:j(e.type)||"Memo";case R:n=e._payload;e=e._init;try{return j(e(n))}catch(t){}}return null}function $(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(n);case 8:return n===N?"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("function"===typeof n)return n.displayName||n.name||null;if("string"===typeof n)return n}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Y(e){var n=q(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&"undefined"!==typeof t&&"function"===typeof t.get&&"function"===typeof t.set){var l=t.get,a=t.set;Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e;a.call(this,e)}});Object.defineProperty(e,n,{enumerable:t.enumerable});return{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null;delete e[n]}}}}function X(e){e._valueTracker||(e._valueTracker=Y(e))}function G(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue();var r="";e&&(r=q(e)?e.checked?"true":"false":e.value);e=r;return e!==t?(n.setValue(e),!0):!1}function Z(e){e=e||("undefined"!==typeof document?document:void 0);if("undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(n){return e.body}}function J(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=K(null!=n.value?n.value:t);e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){n=n.checked;null!=n&&S(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=K(n.value),r=n.type;if(null!=t)if("number"===r){if(0===t&&""===e.value||e.value!=t)e.value=""+t}else e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}n.hasOwnProperty("value")?le(e,n.type,t):n.hasOwnProperty("defaultValue")&&le(e,n.type,K(n.defaultValue));null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue;t||n===e.value||(e.value=n);e.defaultValue=n}t=e.name;""!==t&&(e.name="");e.defaultChecked=!!e._wrapperState.initialChecked;""!==t&&(e.name=t)}function le(e,n,t){if("number"!==n||Z(e.ownerDocument)!==e)null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t)}var ae=Array.isArray;function ue(e,n,t,r){e=e.options;if(n){n={};for(var l=0;l"+n.valueOf().toString()+"";for(n=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}}));function he(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var ge={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},ve=["Webkit","ms","Moz","O"];Object.keys(ge).forEach((function(e){ve.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1);ge[n]=ge[e]}))}));function ye(e,n,t){return null==n||"boolean"===typeof n||""===n?"":t||"number"!==typeof n||0===n||ge.hasOwnProperty(e)&&ge[e]?(""+n).trim():n+"px"}function be(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=ye(t,n[t],r);"float"===t&&(t="cssFloat");r?e.setProperty(t,l):e[t]=l}}var ke=V({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 we(e,n){if(n){if(ke[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!==typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!==typeof n.style)throw Error(a(62))}}function Se(e,n){if(-1===e.indexOf("-"))return"string"===typeof n.is;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 xe=null;function Ee(e){e=e.target||e.srcElement||window;e.correspondingUseElement&&(e=e.correspondingUseElement);return 3===e.nodeType?e.parentNode:e}var Ce=null,_e=null,Ne=null;function ze(e){if(e=Bl(e)){if("function"!==typeof Ce)throw Error(a(280));var n=e.stateNode;n&&(n=Wl(n),Ce(e.stateNode,e.type,n))}}function Pe(e){_e?Ne?Ne.push(e):Ne=[e]:_e=e}function Te(){if(_e){var e=_e,n=Ne;Ne=_e=null;ze(e);if(n)for(e=0;e>>=0;return 0===e?32:31-(mn(e)/hn|0)|0}var vn=64,yn=4194304;function bn(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 kn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=t&268435455;if(0!==u){var i=u&~l;0!==i?r=bn(i):(a&=u,0!==a&&(r=bn(a)))}else u=t&~l,0!==u?r=bn(u):0!==a&&(r=bn(a));if(0===r)return 0;if(0!==n&&n!==r&&0===(n&l)&&(l=r&-r,a=n&-n,l>=a||16===l&&0!==(a&4194240)))return n;0!==(r&4)&&(r|=t&16);n=e.entangledLanes;if(0!==n)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function _n(e,n,t){e.pendingLanes|=n;536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0);e=e.eventTimes;n=31-pn(n);e[n]=t}function Nn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n;e.suspendedLanes=0;e.pingedLanes=0;e.expiredLanes&=n;e.mutableReadLanes&=n;e.entangledLanes&=n;n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zt),nr=String.fromCharCode(32),tr=!1;function rr(e,n){switch(e){case"keyup":return-1!==Xt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lr(e){e=e.detail;return"object"===typeof e&&"data"in e?e.data:null}var ar=!1;function ur(e,n){switch(e){case"compositionend":return lr(n);case"keypress":if(32!==n.which)return null;tr=!0;return nr;case"textInput":return e=n.data,e===nr&&tr?null:e;default:return null}}function ir(e,n){if(ar)return"compositionend"===e||!Gt&&rr(e,n)?(e=ft(),ct=st=ot=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Pr(t)}}function Lr(e,n){return e&&n?e===n?!0:e&&3===e.nodeType?!1:n&&3===n.nodeType?Lr(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Mr(){for(var e=window,n=Z();n instanceof e.HTMLIFrameElement;){try{var t="string"===typeof n.contentWindow.location.href}catch(r){t=!1}if(t)e=n.contentWindow;else break;n=Z(e.document)}return n}function Fr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function Dr(e){var n=Mr(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Lr(t.ownerDocument.documentElement,t)){if(null!==r&&Fr(t))if(n=r.start,e=r.end,void 0===e&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l);!e.extend&&a>r&&(l=r,r=a,a=l);l=Tr(t,a);var u=Tr(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}n=[];for(e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});"function"===typeof t.focus&&t.focus();for(t=0;t=document.documentMode,Or=null,Ir=null,Ur=null,Vr=!1;function Ar(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Vr||null==Or||Or!==Z(r)||(r=Or,"selectionStart"in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&zr(Ur,r)||(Ur=r,r=ml(Ir,"onSelect"),0jl||(e.current=Ql[jl],Ql[jl]=null,jl--)}function ql(e,n){jl++;Ql[jl]=e.current;e.current=n}var Yl={},Xl=$l(Yl),Gl=$l(!1),Zl=Yl;function Jl(e,n){var t=e.type.contextTypes;if(!t)return Yl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},a;for(a in t)l[a]=n[a];r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l);return l}function ea(e){e=e.childContextTypes;return null!==e&&void 0!==e}function na(){Kl(Gl);Kl(Xl)}function ta(e,n,t){if(Xl.current!==Yl)throw Error(a(168));ql(Xl,n);ql(Gl,t)}function ra(e,n,t){var r=e.stateNode;n=n.childContextTypes;if("function"!==typeof r.getChildContext)return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(a(108,$(e)||"Unknown",l));return V({},t,r)}function la(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yl;Zl=Xl.current;ql(Xl,e);ql(Gl,Gl.current);return!0}function aa(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=ra(e,n,Zl),r.__reactInternalMemoizedMergedChildContext=e,Kl(Gl),Kl(Xl),ql(Xl,e)):Kl(Gl);ql(Gl,t)}var ua=null,ia=!1,oa=!1;function sa(e){null===ua?ua=[e]:ua.push(e)}function ca(e){ia=!0;sa(e)}function fa(){if(!oa&&null!==ua){oa=!0;var e=0,n=Pn;try{var t=ua;for(Pn=1;e>=u;l-=u;ba=1<<32-pn(n)+l|t<h?(g=f,f=null):g=f.sibling;var v=p(l,f,i[h],o);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f);a=u(v,a,h);null===c?s=v:c.sibling=v;c=v;f=g}if(h===i.length)return t(l,f),Na&&wa(l,h),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h);i=u(b,i,g);null===f?c=b:f.sibling=b;f=b;h=v}if(y.done)return t(l,h),Na&&wa(l,g),c;if(null===h){for(;!y.done;g++,y=o.next())y=d(l,y.value,s),null!==y&&(i=u(y,i,g),null===f?c=y:f.sibling=y,f=y);Na&&wa(l,g);return c}for(h=r(l,h);!y.done;g++,y=o.next())y=m(h,l,g,y.value,s),null!==y&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),i=u(y,i,g),null===f?c=y:f.sibling=y,f=y);e&&h.forEach((function(e){return n(l,e)}));Na&&wa(l,g);return c}function v(e,r,a,u){"object"===typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children);if("object"===typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var o=a.key,s=r;null!==s;){if(s.key===o){o=a.type;if(o===_){if(7===s.tag){t(e,s.sibling);r=l(s,a.props.children);r.return=e;e=r;break e}}else if(s.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===R&&vu(o)===s.type){t(e,s.sibling);r=l(s,a.props);r.ref=hu(e,s,a);r.return=e;e=r;break e}t(e,s);break}else n(e,s);s=s.sibling}a.type===_?(r=fc(a.props.children,e.mode,u,a.key),r.return=e,e=r):(u=cc(a.type,a.key,a.props,null,e.mode,u),u.ref=hu(e,r,a),u.return=e,e=u)}return i(e);case C:e:{for(s=a.key;null!==r;){if(r.key===s)if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling);r=l(r,a.children||[]);r.return=e;e=r;break e}else{t(e,r);break}else n(e,r);r=r.sibling}r=mc(a,e.mode,u);r.return=e;e=r}return i(e);case R:return s=a._init,v(e,r,s(a._payload),u)}if(ae(a))return h(e,r,a,u);if(U(a))return g(e,r,a,u);gu(e,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),r=l(r,a),r.return=e,e=r):(t(e,r),r=pc(a,e.mode,u),r.return=e,e=r),i(e)):t(e,r)}return v}var bu=yu(!0),ku=yu(!1),wu={},Su=$l(wu),xu=$l(wu),Eu=$l(wu);function Cu(e){if(e===wu)throw Error(a(174));return e}function _u(e,n){ql(Eu,n);ql(xu,e);ql(Su,wu);e=n.nodeType;switch(e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:de(null,"");break;default:e=8===e?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=de(n,e)}Kl(Su);ql(Su,n)}function Nu(){Kl(Su);Kl(xu);Kl(Eu)}function zu(e){Cu(Eu.current);var n=Cu(Su.current);var t=de(n,e.type);n!==t&&(ql(xu,e),ql(Su,t))}function Pu(e){xu.current===e&&(Kl(Su),Kl(xu))}var Tu=$l(0);function Lu(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(t=t.dehydrated,null===t||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!==(n.flags&128))return n}else if(null!==n.child){n.child.return=n;n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return;n=n.sibling}return null}var Mu=[];function Fu(){for(var e=0;et?t:4;e(!0);var r=Ru.transition;Ru.transition={};try{e(!1),n()}finally{Pn=t,Ru.transition=r}}function Si(){return Yu().memoizedState}function xi(e,n,t){var r=Ns(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))_i(n,t);else if(t=Ga(e,n,t,r),null!==t){var l=_s();zs(t,e,r,l);Ni(t,n,r)}}function Ei(e,n,t){var r=Ns(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))_i(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&(a=n.lastRenderedReducer,null!==a))try{var u=n.lastRenderedState,i=a(u,t);l.hasEagerState=!0;l.eagerState=i;if(Nr(i,u)){var o=n.interleaved;null===o?(l.next=l,Xa(n)):(l.next=o.next,o.next=l);n.interleaved=l;return}}catch(s){}finally{}t=Ga(e,n,l,r);null!==t&&(l=_s(),zs(t,e,r,l),Ni(t,n,r))}}function Ci(e){var n=e.alternate;return e===Iu||null!==n&&n===Iu}function _i(e,n){Bu=Au=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n);e.pending=n}function Ni(e,n,t){if(0!==(t&4194240)){var r=n.lanes;r&=e.pendingLanes;t|=r;n.lanes=t;zn(e,t)}}var zi={readContext:qa,useCallback:Qu,useContext:Qu,useEffect:Qu,useImperativeHandle:Qu,useInsertionEffect:Qu,useLayoutEffect:Qu,useMemo:Qu,useReducer:Qu,useRef:Qu,useState:Qu,useDebugValue:Qu,useDeferredValue:Qu,useTransition:Qu,useMutableSource:Qu,useSyncExternalStore:Qu,useId:Qu,unstable_isNewReconciler:!1},Pi={readContext:qa,useCallback:function(e,n){qu().memoizedState=[e,void 0===n?null:n];return e},useContext:qa,useEffect:fi,useImperativeHandle:function(e,n,t){t=null!==t&&void 0!==t?t.concat([e]):null;return si(4194308,4,hi.bind(null,n,e),t)},useLayoutEffect:function(e,n){return si(4194308,4,e,n)},useInsertionEffect:function(e,n){return si(4,2,e,n)},useMemo:function(e,n){var t=qu();n=void 0===n?null:n;e=e();t.memoizedState=[e,n];return e},useReducer:function(e,n,t){var r=qu();n=void 0!==t?t(n):n;r.memoizedState=r.baseState=n;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n};r.queue=e;e=e.dispatch=xi.bind(null,Iu,e);return[r.memoizedState,e]},useRef:function(e){var n=qu();e={current:e};return n.memoizedState=e},useState:ui,useDebugValue:vi,useDeferredValue:function(e){return qu().memoizedState=e},useTransition:function(){var e=ui(!1),n=e[0];e=wi.bind(null,e[1]);qu().memoizedState=e;return[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=Iu,l=qu();if(Na){if(void 0===t)throw Error(a(407));t=t()}else{t=n();if(null===ns)throw Error(a(349));0!==(Ou&30)||ni(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};l.queue=u;fi(ri.bind(null,r,u,e),[e]);r.flags|=2048;ii(9,ti.bind(null,r,u,t,n),void 0,null);return t},useId:function(){var e=qu(),n=ns.identifierPrefix;if(Na){var t=ka;var r=ba;t=(r&~(1<<32-pn(r)-1)).toString(32)+t;n=":"+n+"R"+t;t=Hu++;0<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),"select"===t&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t);e[Dl]=n;e[Rl]=r;po(e,n,!1,!1);n.stateNode=e;e:{o=Se(t,r);switch(t){case"dialog":il("cancel",e);il("close",e);l=r;break;case"iframe":case"object":case"embed":il("load",e);l=r;break;case"video":case"audio":for(l=0;lms&&(n.flags|=128,r=!0,vo(u,!1),n.lanes=4194304)}else{if(!r)if(e=Lu(o),null!==e){if(n.flags|=128,r=!0,t=e.updateQueue,null!==t&&(n.updateQueue=t,n.flags|=4),vo(u,!0),null===u.tail&&"hidden"===u.tailMode&&!o.alternate&&!Na)return yo(n),null}else 2*tn()-u.renderingStartTime>ms&&1073741824!==t&&(n.flags|=128,r=!0,vo(u,!1),n.lanes=4194304);u.isBackwards?(o.sibling=n.child,n.child=o):(t=u.last,null!==t?t.sibling=o:n.child=o,u.last=o)}if(null!==u.tail)return n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=tn(),n.sibling=null,t=Tu.current,ql(Tu,r?t&1|2:t&1),n;yo(n);return null;case 22:case 23:return Us(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!==(n.mode&1)?0!==(ls&1073741824)&&(yo(n),n.subtreeFlags&6&&(n.flags|=8192)):yo(n),null;case 24:return null;case 25:return null}throw Error(a(156,n.tag))}function ko(e,n){Ea(n);switch(n.tag){case 1:return ea(n.type)&&na(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Nu(),Kl(Gl),Kl(Xl),Fu(),e=n.flags,0!==(e&65536)&&0===(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Pu(n),null;case 13:Kl(Tu);e=n.memoizedState;if(null!==e&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));Oa()}e=n.flags;return e&65536?(n.flags=e&-65537|128,n):null;case 19:return Kl(Tu),null;case 4:return Nu(),null;case 10:return ja(n.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var wo=!1,So=!1,xo="function"===typeof WeakSet?WeakSet:Set,Eo=null;function Co(e,n){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){Zs(e,n,r)}else t.current=null}function _o(e,n,t){try{t()}catch(r){Zs(e,n,r)}}var No=!1;function zo(e,n){Sl=nt;e=Mr();if(Fr(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(w){t=null;break e}var i=0,o=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;;){d!==t||0!==l&&3!==d.nodeType||(o=i+l);d!==u||0!==r&&3!==d.nodeType||(s=i+r);3===d.nodeType&&(i+=d.nodeValue.length);if(null===(m=d.firstChild))break;p=d;d=m}for(;;){if(d===e)break n;p===t&&++c===l&&(o=i);p===u&&++f===r&&(s=i);if(null!==(m=d.nextSibling))break;d=p;p=d.parentNode}d=m}t=-1===o||-1===s?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;xl={focusedElem:e,selectionRange:t};nt=!1;for(Eo=n;null!==Eo;)if(n=Eo,e=n.child,0!==(n.subtreeFlags&1028)&&null!==e)e.return=n,Eo=e;else for(;null!==Eo;){n=Eo;try{var h=n.alternate;if(0!==(n.flags&1024))switch(n.tag){case 0:case 11:case 15:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:Va(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(w){Zs(n,n.return,w)}e=n.sibling;if(null!==e){e.return=n.return;Eo=e;break}Eo=n.return}h=No;No=!1;return h}function Po(e,n,t){var r=n.updateQueue;r=null!==r?r.lastEffect:null;if(null!==r){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0;void 0!==a&&_o(n,t,a)}l=l.next}while(l!==r)}}function To(e,n){n=n.updateQueue;n=null!==n?n.lastEffect:null;if(null!==n){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Lo(e){var n=e.ref;if(null!==n){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}"function"===typeof n?n(e):n.current=e}}function Mo(e){var n=e.alternate;null!==n&&(e.alternate=null,Mo(n));e.child=null;e.deletions=null;e.sibling=null;5===e.tag&&(n=e.stateNode,null!==n&&(delete n[Dl],delete n[Rl],delete n[Il],delete n[Ul],delete n[Vl]));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 Fo(e){return 5===e.tag||3===e.tag||4===e.tag}function Do(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fo(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(e.flags&2)continue e;if(null===e.child||4===e.tag)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ro(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,null!==t&&void 0!==t||null!==n.onclick||(n.onclick=wl));else if(4!==r&&(e=e.child,null!==e))for(Ro(e,n,t),e=e.sibling;null!==e;)Ro(e,n,t),e=e.sibling}function Oo(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Oo(e,n,t),e=e.sibling;null!==e;)Oo(e,n,t),e=e.sibling}var Io=null,Uo=!1;function Vo(e,n,t){for(t=t.child;null!==t;)Ao(e,n,t),t=t.sibling}function Ao(e,n,t){if(fn&&"function"===typeof fn.onCommitFiberUnmount)try{fn.onCommitFiberUnmount(cn,t)}catch(i){}switch(t.tag){case 5:So||Co(t,n);case 6:var r=Io,l=Uo;Io=null;Vo(e,n,t);Io=r;Uo=l;null!==Io&&(Uo?(e=Io,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):Io.removeChild(t.stateNode));break;case 18:null!==Io&&(Uo?(e=Io,t=t.stateNode,8===e.nodeType?Tl(e.parentNode,t):1===e.nodeType&&Tl(e,t),Jn(e)):Tl(Io,t.stateNode));break;case 4:r=Io;l=Uo;Io=t.stateNode.containerInfo;Uo=!0;Vo(e,n,t);Io=r;Uo=l;break;case 0:case 11:case 14:case 15:if(!So&&(r=t.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag;void 0!==u&&(0!==(a&2)?_o(t,n,u):0!==(a&4)&&_o(t,n,u));l=l.next}while(l!==r)}Vo(e,n,t);break;case 1:if(!So&&(Co(t,n),r=t.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){Zs(t,n,i)}Vo(e,n,t);break;case 21:Vo(e,n,t);break;case 22:t.mode&1?(So=(r=So)||null!==t.memoizedState,Vo(e,n,t),So=r):Vo(e,n,t);break;default:Vo(e,n,t)}}function Bo(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new xo);n.forEach((function(n){var r=tc.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Ho(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i);r&=~u}r=l;r=tn()-r;r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xo(r/1960))-r;if(10e?16:e;if(null===ks)var r=!1;else{e=ks;ks=null;ws=0;if(0!==(es&6))throw Error(a(331));var l=es;es|=4;for(Eo=e.current;null!==Eo;){var u=Eo,i=u.child;if(0!==(Eo.flags&16)){var o=u.deletions;if(null!==o){for(var s=0;stn()-ps?Vs(e,0):cs|=t);Ps(e,n)}function ec(e,n){0===n&&(0===(e.mode&1)?n=1:(n=yn,yn<<=1,0===(yn&130023424)&&(yn=4194304)));var t=_s();e=Za(e,n);null!==e&&(_n(e,n,t),Ps(e,t))}function nc(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane);ec(e,t)}function tc(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode;var l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n);ec(e,t)}var rc;rc=function(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps||Gl.current)Hi=!0;else{if(0===(e.lanes&t)&&0===(n.flags&128))return Hi=!1,fo(e,n,t);Hi=0!==(e.flags&131072)?!0:!1}else Hi=!1,Na&&0!==(n.flags&1048576)&&Sa(n,ha,n.index);n.lanes=0;switch(n.tag){case 2:var r=n.type;so(e,n);e=n.pendingProps;var l=Jl(n,Xl.current);Ka(n,t);l=$u(null,n,r,e,l,t);var u=Ku();n.flags|=1;"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ea(r)?(u=!0,la(n)):u=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,eu(n),l.updater=cu,n.stateNode=l,l._reactInternals=n,mu(n,r,e,t),n=Gi(null,n,r,!0,u,t)):(n.tag=0,Na&&u&&xa(n),Wi(null,n,l,t),n=n.child);return n;case 16:r=n.elementType;e:{so(e,n);e=n.pendingProps;l=r._init;r=l(r._payload);n.type=r;l=n.tag=oc(r);e=Va(r,e);switch(l){case 0:n=Yi(null,n,r,e,t);break e;case 1:n=Xi(null,n,r,e,t);break e;case 11:n=Qi(null,n,r,e,t);break e;case 14:n=ji(null,n,r,Va(r.type,e),t);break e}throw Error(a(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Yi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Xi(e,n,r,l,t);case 3:e:{Zi(n);if(null===e)throw Error(a(387));r=n.pendingProps;u=n.memoizedState;l=u.element;nu(e,n);uu(n,r,null,t);var i=n.memoizedState;r=i.element;if(u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){l=Mi(Error(a(423)),n);n=Ji(e,n,r,t,l);break e}else if(r!==l){l=Mi(Error(a(424)),n);n=Ji(e,n,r,t,l);break e}else for(_a=Ll(n.stateNode.containerInfo.firstChild),Ca=n,Na=!0,za=null,t=ku(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{Oa();if(r===l){n=co(e,n,t);break e}Wi(e,n,r,t)}n=n.child}return n;case 5:return zu(n),null===e&&Ma(n),r=n.type,l=n.pendingProps,u=null!==e?e.memoizedProps:null,i=l.children,El(r,l)?i=null:null!==u&&El(r,u)&&(n.flags|=32),qi(e,n),Wi(e,n,i,t),n.child;case 6:return null===e&&Ma(n),null;case 13:return to(e,n,t);case 4:return _u(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=bu(n,null,r,t):Wi(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Qi(e,n,r,l,t);case 7:return Wi(e,n,n.pendingProps,t),n.child;case 8:return Wi(e,n,n.pendingProps.children,t),n.child;case 12:return Wi(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context;l=n.pendingProps;u=n.memoizedProps;i=l.value;ql(Aa,r._currentValue);r._currentValue=i;if(null!==u)if(Nr(u.value,i)){if(u.children===l.children&&!Gl.current){n=co(e,n,t);break e}}else for(u=n.child,null!==u&&(u.return=n);null!==u;){var o=u.dependencies;if(null!==o){i=u.child;for(var s=o.firstContext;null!==s;){if(s.context===r){if(1===u.tag){s=tu(-1,t&-t);s.tag=2;var c=u.updateQueue;if(null!==c){c=c.shared;var f=c.pending;null===f?s.next=s:(s.next=f.next,f.next=s);c.pending=s}}u.lanes|=t;s=u.alternate;null!==s&&(s.lanes|=t);$a(u.return,t,n);o.lanes|=t;break}s=s.next}}else if(10===u.tag)i=u.type===n.type?null:u.child;else if(18===u.tag){i=u.return;if(null===i)throw Error(a(341));i.lanes|=t;o=i.alternate;null!==o&&(o.lanes|=t);$a(i,t,n);i=u.sibling}else i=u.child;if(null!==i)i.return=u;else for(i=u;null!==i;){if(i===n){i=null;break}u=i.sibling;if(null!==u){u.return=i.return;i=u;break}i=i.return}u=i}Wi(e,n,l.children,t);n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Ka(n,t),l=qa(l),r=r(l),n.flags|=1,Wi(e,n,r,t),n.child;case 14:return r=n.type,l=Va(r,n.pendingProps),l=Va(r.type,l),ji(e,n,r,l,t);case 15:return $i(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),so(e,n),n.tag=1,ea(r)?(e=!0,la(n)):e=!1,Ka(n,t),du(n,r,l),mu(n,r,l,t),Gi(null,n,r,!0,e,t);case 19:return oo(e,n,t);case 22:return Ki(e,n,t)}throw Error(a(156,n.tag))};function lc(e,n){return Ze(e,n)}function ac(e,n,t,r){this.tag=e;this.key=t;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=n;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=r;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function uc(e,n,t,r){return new ac(e,n,t,r)}function ic(e){e=e.prototype;return!(!e||!e.isReactComponent)}function oc(e){if("function"===typeof e)return ic(e)?1:0;if(void 0!==e&&null!==e){e=e.$$typeof;if(e===L)return 11;if(e===D)return 14}return 2}function sc(e,n){var t=e.alternate;null===t?(t=uc(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null);t.flags=e.flags&14680064;t.childLanes=e.childLanes;t.lanes=e.lanes;t.child=e.child;t.memoizedProps=e.memoizedProps;t.memoizedState=e.memoizedState;t.updateQueue=e.updateQueue;n=e.dependencies;t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext};t.sibling=e.sibling;t.index=e.index;t.ref=e.ref;return t}function cc(e,n,t,r,l,u){var i=2;r=e;if("function"===typeof e)ic(e)&&(i=1);else if("string"===typeof e)i=5;else e:switch(e){case _:return fc(t.children,l,u,n);case N:i=8;l|=8;break;case z:return e=uc(12,t,n,l|2),e.elementType=z,e.lanes=u,e;case M:return e=uc(13,t,n,l),e.elementType=M,e.lanes=u,e;case F:return e=uc(19,t,n,l),e.elementType=F,e.lanes=u,e;case O:return dc(t,l,u,n);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:i=10;break e;case T:i=9;break e;case L:i=11;break e;case D:i=14;break e;case R:i=16;r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}n=uc(i,t,n,l);n.elementType=e;n.type=r;n.lanes=u;return n}function fc(e,n,t,r){e=uc(7,e,r,n);e.lanes=t;return e}function dc(e,n,t,r){e=uc(22,e,r,n);e.elementType=O;e.lanes=t;e.stateNode={isHidden:!1};return e}function pc(e,n,t){e=uc(6,e,null,n);e.lanes=t;return e}function mc(e,n,t){n=uc(4,null!==e.children?e.children:[],e.key,n);n.lanes=t;n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation};return n}function hc(e,n,t,r,l){this.tag=n;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=Cn(0);this.expirationTimes=Cn(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=Cn(0);this.identifierPrefix=r;this.onRecoverableError=l;this.mutableSourceEagerHydrationData=null}function gc(e,n,t,r,l,a,u,i,o){e=new hc(e,n,t,i,o);1===n?(n=1,!0===a&&(n|=8)):n=0;a=uc(3,null,null,n);e.current=a;a.stateNode=e;a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null};eu(a);return e}function vc(e,n,t){var r=3{function r(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}if(true){r();e.exports=t(22551)}else{}},7463:(e,n)=>{function t(e,n){var t=e.length;e.push(n);e:for(;0>>1,l=e[r];if(0>>1;ra(o,t))sa(c,o)?(e[r]=c,e[s]=t,r=s):(e[r]=o,e[i]=t,r=i);else if(sa(c,t))e[r]=c,e[s]=t,r=s;else break e}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;n.unstable_now=function(){return u.now()}}else{var i=Date,o=i.now();n.unstable_now=function(){return i.now()-o}}var s=[],c=[],f=1,d=null,p=3,m=!1,h=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(e){for(var n=r(c);null!==n;){if(null===n.callback)l(c);else if(n.startTime<=e)l(c),n.sortIndex=n.expirationTime,t(s,n);else break;n=r(c)}}function w(e){g=!1;k(e);if(!h)if(null!==r(s))h=!0,F(S);else{var n=r(c);null!==n&&D(w,n.startTime-e)}}function S(e,t){h=!1;g&&(g=!1,y(C),C=-1);m=!0;var a=p;try{k(t);for(d=r(s);null!==d&&(!(d.expirationTime>t)||e&&!z());){var u=d.callback;if("function"===typeof u){d.callback=null;p=d.priorityLevel;var i=u(d.expirationTime<=t);t=n.unstable_now();"function"===typeof i?d.callback=i:d===r(s)&&l(s);k(t)}else l(s);d=r(s)}if(null!==d)var o=!0;else{var f=r(c);null!==f&&D(w,f.startTime-t);o=!1}return o}finally{d=null,p=a,m=!1}}var x=!1,E=null,C=-1,_=5,N=-1;function z(){return n.unstable_now()-N<_?!1:!0}function P(){if(null!==E){var e=n.unstable_now();N=e;var t=!0;try{t=E(!0,e)}finally{t?T():(x=!1,E=null)}}else x=!1}var T;if("function"===typeof b)T=function(){b(P)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=P;T=function(){M.postMessage(null)}}else T=function(){v(P,0)};function F(e){E=e;x||(x=!0,T())}function D(e,t){C=v((function(){e(n.unstable_now())}),t)}n.unstable_IdlePriority=5;n.unstable_ImmediatePriority=1;n.unstable_LowPriority=4;n.unstable_NormalPriority=3;n.unstable_Profiling=null;n.unstable_UserBlockingPriority=2;n.unstable_cancelCallback=function(e){e.callback=null};n.unstable_continueExecution=function(){h||m||(h=!0,F(S))};n.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=a,t(c,e),null===r(s)&&e===r(c)&&(g?(y(C),C=-1):g=!0,D(w,a-u))):(e.sortIndex=i,t(s,e),h||m||(h=!0,F(S)));return e};n.unstable_shouldYield=z;n.unstable_wrapCallback=function(e){var n=p;return function(){var t=p;p=n;try{return e.apply(this,arguments)}finally{p=t}}}},69982:(e,n,t)=>{if(true){e.exports=t(7463)}else{}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..122393a3f28d235cd077495ec4705a88bccaea41 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/961.29c067b15a524e556eed.js.LICENSE.txt @@ -0,0 +1,19 @@ +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9674eb1bd55047179038.svg b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9674eb1bd55047179038.svg new file mode 100644 index 0000000000000000000000000000000000000000..00296e9598fadee8e22cfd89826d3d10f2c0ba26 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9674eb1bd55047179038.svg @@ -0,0 +1,5034 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9746.c7e86b432363dfd28caa.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9746.c7e86b432363dfd28caa.js new file mode 100644 index 0000000000000000000000000000000000000000..ee5732664b7cc8d3372782edd601a18916709d6e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9746.c7e86b432363dfd28caa.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9746],{89746:(t,e,n)=>{n.r(e);n.d(e,{stex:()=>a,stexMath:()=>i});function r(t){function e(t,e){t.cmdState.push(e)}function n(t){if(t.cmdState.length>0){return t.cmdState[t.cmdState.length-1]}else{return null}}function r(t){var e=t.cmdState.pop();if(e){e.closeBracket()}}function a(t){var e=t.cmdState;for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.name=="DEFAULT"){continue}return r}return{styleIdentifier:function(){return null}}}function i(t,e,n){return function(){this.name=t;this.bracketNo=0;this.style=e;this.styles=n;this.argument=null;this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null};this.openBracket=function(){this.bracketNo++;return"bracket"};this.closeBracket=function(){}}}var u={};u["importmodule"]=i("importmodule","tag",["string","builtin"]);u["documentclass"]=i("documentclass","tag",["","atom"]);u["usepackage"]=i("usepackage","tag",["atom"]);u["begin"]=i("begin","tag",["atom"]);u["end"]=i("end","tag",["atom"]);u["label"]=i("label","tag",["atom"]);u["ref"]=i("ref","tag",["atom"]);u["eqref"]=i("eqref","tag",["atom"]);u["cite"]=i("cite","tag",["atom"]);u["bibitem"]=i("bibitem","tag",["atom"]);u["Bibitem"]=i("Bibitem","tag",["atom"]);u["RBibitem"]=i("RBibitem","tag",["atom"]);u["DEFAULT"]=function(){this.name="DEFAULT";this.style="tag";this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function c(t,e){t.f=e}function f(t,r){var i;if(t.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var f=t.current().slice(1);i=u.hasOwnProperty(f)?u[f]:u["DEFAULT"];i=new i;e(r,i);c(r,s);return i.style}if(t.match(/^\\[$&%#{}_]/)){return"tag"}if(t.match(/^\\[,;!\/\\]/)){return"tag"}if(t.match("\\[")){c(r,(function(t,e){return o(t,e,"\\]")}));return"keyword"}if(t.match("\\(")){c(r,(function(t,e){return o(t,e,"\\)")}));return"keyword"}if(t.match("$$")){c(r,(function(t,e){return o(t,e,"$$")}));return"keyword"}if(t.match("$")){c(r,(function(t,e){return o(t,e,"$")}));return"keyword"}var m=t.next();if(m=="%"){t.skipToEnd();return"comment"}else if(m=="}"||m=="]"){i=n(r);if(i){i.closeBracket(m);c(r,s)}else{return"error"}return"bracket"}else if(m=="{"||m=="["){i=u["DEFAULT"];i=new i;e(r,i);return"bracket"}else if(/\d/.test(m)){t.eatWhile(/[\w.%]/);return"atom"}else{t.eatWhile(/[\w\-_]/);i=a(r);if(i.name=="begin"){i.argument=t.current()}return i.styleIdentifier()}}function o(t,e,n){if(t.eatSpace()){return null}if(n&&t.match(n)){c(e,f);return"keyword"}if(t.match(/^\\[a-zA-Z@]+/)){return"tag"}if(t.match(/^[a-zA-Z]+/)){return"variableName.special"}if(t.match(/^\\[$&%#{}_]/)){return"tag"}if(t.match(/^\\[,;!\/]/)){return"tag"}if(t.match(/^[\^_&]/)){return"tag"}if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)){return null}if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)){return"number"}var r=t.next();if(r=="{"||r=="}"||r=="["||r=="]"||r=="("||r==")"){return"bracket"}if(r=="%"){t.skipToEnd();return"comment"}return"error"}function s(t,e){var a=t.peek(),i;if(a=="{"||a=="["){i=n(e);i.openBracket(a);t.eat(a);c(e,f);return"bracket"}if(/[ \t\r]/.test(a)){t.eat(a);return null}c(e,f);r(e);return f(t,e)}return{name:"stex",startState:function(){var e=t?function(t,e){return o(t,e)}:f;return{cmdState:[],f:e}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=f;t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const a=r(false);const i=r(true)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9881.37d189ff085cb3468683.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9881.37d189ff085cb3468683.js new file mode 100644 index 0000000000000000000000000000000000000000..bc9fa14700502135c5fe641b439781561282cc7a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9881.37d189ff085cb3468683.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9881],{79881:(t,i,e)=>{e.d(i,{diagram:()=>nt});var s=e(76261);var a=e(96049);var n=e(93113);var h=e(75905);var o=e(24982);var r=function(){var t=(0,h.K2)((function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e}),"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],o=[1,7],r=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],u=[1,28],g=[1,29],x=[1,30],f=[1,31],p=[1,32],d=[1,33],y=[1,34],m=[1,35],b=[1,36],k=[1,37],A=[1,43],S=[1,42],w=[1,47],C=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64];var v={trace:(0,h.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,h.K2)((function t(i,e,s,a,n,h,o){var r=h.length-1;switch(n){case 5:a.setOrientation(h[r]);break;case 9:a.setDiagramTitle(h[r].text.trim());break;case 12:a.setLineData({text:"",type:"text"},h[r]);break;case 13:a.setLineData(h[r-1],h[r]);break;case 14:a.setBarData({text:"",type:"text"},h[r]);break;case 15:a.setBarData(h[r-1],h[r]);break;case 16:this.$=h[r].trim();a.setAccTitle(this.$);break;case 17:case 18:this.$=h[r].trim();a.setAccDescription(this.$);break;case 19:this.$=h[r-1];break;case 20:this.$=[Number(h[r-2]),...h[r]];break;case 21:this.$=[Number(h[r])];break;case 22:a.setXAxisTitle(h[r]);break;case 23:a.setXAxisTitle(h[r-1]);break;case 24:a.setXAxisTitle({type:"text",text:""});break;case 25:a.setXAxisBand(h[r]);break;case 26:a.setXAxisRangeData(Number(h[r-2]),Number(h[r]));break;case 27:this.$=h[r-1];break;case 28:this.$=[h[r-2],...h[r]];break;case 29:this.$=[h[r]];break;case 30:a.setYAxisTitle(h[r]);break;case 31:a.setYAxisTitle(h[r-1]);break;case 32:a.setYAxisTitle({type:"text",text:""});break;case 33:a.setYAxisRangeData(Number(h[r-2]),Number(h[r]));break;case 37:this.$={text:h[r],type:"text"};break;case 38:this.$={text:h[r],type:"text"};break;case 39:this.$={text:h[r],type:"markdown"};break;case 40:this.$=h[r];break;case 41:this.$=h[r-1]+""+h[r];break}}),"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:a,35:n,36:o}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:o}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(r,[2,34]),t(r,[2,35]),t(r,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:a,35:n,36:o}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:o}),{11:23,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},{11:39,13:38,24:A,27:S,29:40,30:41,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},{11:45,15:44,27:w,33:46,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},{11:49,17:48,24:C,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},{11:52,17:51,24:C,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(T,[2,37],{40:55,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(_,[2,10]),t(_,[2,22],{30:41,29:56,24:A,27:S}),t(_,[2,24]),t(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},t(_,[2,11]),t(_,[2,30],{33:60,27:w}),t(_,[2,32]),{31:[1,61]},t(_,[2,12]),{17:62,24:C},{25:63,27:D},t(_,[2,14]),{17:65,24:C},t(_,[2,16]),t(_,[2,17]),t(R,[2,41]),t(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(_,[2,31]),{27:[1,69]},t(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(_,[2,15]),t(_,[2,26]),t(_,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:f,45:p,46:d,47:y,48:m,49:b,50:k},t(_,[2,33]),t(_,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,h.K2)((function t(i,e){if(e.recoverable){this.trace(i)}else{var s=new Error(i);s.hash=e;throw s}}),"parseError"),parse:(0,h.K2)((function t(i){var e=this,s=[0],a=[],n=[null],o=[],r=this.table,l="",c=0,u=0,g=0,x=2,f=1;var p=o.slice.call(arguments,1);var d=Object.create(this.lexer);var y={yy:{}};for(var m in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,m)){y.yy[m]=this.yy[m]}}d.setInput(i,y.yy);y.yy.lexer=d;y.yy.parser=this;if(typeof d.yylloc=="undefined"){d.yylloc={}}var b=d.yylloc;o.push(b);var k=d.options&&d.options.ranges;if(typeof y.yy.parseError==="function"){this.parseError=y.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function A(t){s.length=s.length-2*t;n.length=n.length-t;o.length=o.length-t}(0,h.K2)(A,"popStack");function S(){var t;t=a.pop()||d.lex()||f;if(typeof t!=="number"){if(t instanceof Array){a=t;t=a.pop()}t=e.symbols_[t]||t}return t}(0,h.K2)(S,"lex");var w,C,_,T,R,D,v={},L,P,E,K;while(true){_=s[s.length-1];if(this.defaultActions[_]){T=this.defaultActions[_]}else{if(w===null||typeof w=="undefined"){w=S()}T=r[_]&&r[_][w]}if(typeof T==="undefined"||!T.length||!T[0]){var I="";K=[];for(L in r[_]){if(this.terminals_[L]&&L>x){K.push("'"+this.terminals_[L]+"'")}}if(d.showPosition){I="Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+K.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{I="Parse error on line "+(c+1)+": Unexpected "+(w==f?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(I,{text:d.match,token:this.terminals_[w]||w,line:d.yylineno,loc:b,expected:K})}if(T[0]instanceof Array&&T.length>1){throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+w)}switch(T[0]){case 1:s.push(w);n.push(d.yytext);o.push(d.yylloc);s.push(T[1]);w=null;if(!C){u=d.yyleng;l=d.yytext;c=d.yylineno;b=d.yylloc;if(g>0){g--}}else{w=C;C=null}break;case 2:P=this.productions_[T[1]][1];v.$=n[n.length-P];v._$={first_line:o[o.length-(P||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(P||1)].first_column,last_column:o[o.length-1].last_column};if(k){v._$.range=[o[o.length-(P||1)].range[0],o[o.length-1].range[1]]}D=this.performAction.apply(v,[l,u,c,y.yy,T[1],n,o].concat(p));if(typeof D!=="undefined"){return D}if(P){s=s.slice(0,-1*P*2);n=n.slice(0,-1*P);o=o.slice(0,-1*P)}s.push(this.productions_[T[1]][0]);n.push(v.$);o.push(v._$);E=r[s[s.length-2]][s[s.length-1]];s.push(E);break;case 3:return true}}return true}),"parse")};var L=function(){var t={EOF:1,parseError:(0,h.K2)((function t(i,e){if(this.yy.parser){this.yy.parser.parseError(i,e)}else{throw new Error(i)}}),"parseError"),setInput:(0,h.K2)((function(t,i){this.yy=i||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,h.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);if(i){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,h.K2)((function(t){var i=t.length;var e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-i);this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(e.length-1){this.yylineno-=e.length-1}var a=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i};if(this.options.ranges){this.yylloc.range=[a[0],a[0]+this.yyleng-i]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,h.K2)((function(){this._more=true;return this}),"more"),reject:(0,h.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}return this}),"reject"),less:(0,h.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,h.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,h.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,h.K2)((function(){var t=this.pastInput();var i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"}),"showPosition"),test_match:(0,h.K2)((function(t,i){var e,s,a;if(this.options.backtrack_lexer){a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done};if(this.options.ranges){a.yylloc.range=this.yylloc.range.slice(0)}}s=t[0].match(/(?:\r\n?|\n).*/g);if(s){this.yylineno+=s.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(e){return e}else if(this._backtrack){for(var n in a){this[n]=a[n]}return false}return false}),"test_match"),next:(0,h.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,i,e,s;if(!this._more){this.yytext="";this.match=""}var a=this._currentRules();for(var n=0;ni[0].length)){i=e;s=n;if(this.options.backtrack_lexer){t=this.test_match(e,a[n]);if(t!==false){return t}else if(this._backtrack){i=false;continue}else{return false}}else if(!this.options.flex){break}}}if(i){t=this.test_match(i,a[s]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,h.K2)((function t(){var i=this.next();if(i){return i}else{return this.lex()}}),"lex"),begin:(0,h.K2)((function t(i){this.conditionStack.push(i)}),"begin"),popState:(0,h.K2)((function t(){var i=this.conditionStack.length-1;if(i>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,h.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,h.K2)((function t(i){i=this.conditionStack.length-1-Math.abs(i||0);if(i>=0){return this.conditionStack[i]}else{return"INITIAL"}}),"topState"),pushState:(0,h.K2)((function t(i){this.begin(i)}),"pushState"),stateStackSize:(0,h.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,h.K2)((function t(i,e,s,a){var n=a;switch(s){case 0:break;case 1:break;case 2:this.popState();return 34;break;case 3:this.popState();return 34;break;case 4:return 34;break;case 5:break;case 6:return 10;break;case 7:this.pushState("acc_title");return 19;break;case 8:this.popState();return"acc_title_value";break;case 9:this.pushState("acc_descr");return 21;break;case 10:this.popState();return"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";break;case 14:return 5;break;case 15:return 8;break;case 16:this.pushState("axis_data");return"X_AXIS";break;case 17:this.pushState("axis_data");return"Y_AXIS";break;case 18:this.pushState("axis_band_data");return 24;break;case 19:return 31;break;case 20:this.pushState("data");return 16;break;case 21:this.pushState("data");return 18;break;case 22:this.pushState("data_inner");return 24;break;case 23:return 27;break;case 24:this.popState();return 26;break;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";break;case 29:return 24;break;case 30:return 26;break;case 31:return 43;break;case 32:return"COLON";break;case 33:return 44;break;case 34:return 28;break;case 35:return 45;break;case 36:return 46;break;case 37:return 48;break;case 38:return 50;break;case 39:return 47;break;case 40:return 41;break;case 41:return 49;break;case 42:return 42;break;case 43:break;case 44:return 35;break;case 45:return 36;break}}),"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:true},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:true},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:true},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:true},acc_descr_multiline:{rules:[12,13],inclusive:false},acc_descr:{rules:[10],inclusive:false},acc_title:{rules:[8],inclusive:false},title:{rules:[],inclusive:false},md_string:{rules:[],inclusive:false},string:{rules:[27,28],inclusive:false},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:true}}};return t}();v.lexer=L;function P(){this.yy={}}(0,h.K2)(P,"Parser");P.prototype=v;v.Parser=P;return new P}();r.parser=r;var l=r;function c(t){return t.type==="bar"}(0,h.K2)(c,"isBarPlot");function u(t){return t.type==="band"}(0,h.K2)(u,"isBandAxisData");function g(t){return t.type==="linear"}(0,h.K2)(g,"isLinearAxisData");var x=class{constructor(t){this.parentGroup=t}static{(0,h.K2)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup){return{width:t.reduce(((t,i)=>Math.max(i.length,t)),0)*i,height:i}}const e={width:0,height:0};const a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const t=(0,s.W6)(a,1,n);const h=t?t.width:n.length*i;const o=t?t.height:i;e.width=Math.max(e.width,h);e.height=Math.max(e.height,o)}a.remove();return e}};var f=.7;var p=.2;var d=class{constructor(t,i,e,s){this.axisConfig=t;this.title=i;this.textDimensionCalculator=e;this.axisThemeConfig=s;this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left";this.showTitle=false;this.showLabel=false;this.showTick=false;this.showAxisLine=false;this.outerPadding=0;this.titleTextHeight=0;this.labelTextHeight=0;this.range=[0,10];this.boundingRect={x:0,y:0,width:0,height:0};this.axisPosition="left"}static{(0,h.K2)(this,"BaseAxis")}setRange(t){this.range=t;if(this.axisPosition==="left"||this.axisPosition==="right"){this.boundingRect.height=t[1]-t[0]}else{this.boundingRect.width=t[1]-t[0]}this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t;this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((t=>t.toString())),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){if(f*this.getTickDistance()>this.outerPadding*2){this.outerPadding=Math.floor(f*this.getTickDistance()/2)}this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth){i-=this.axisConfig.axisLineWidth;this.showAxisLine=true}if(this.axisConfig.showLabel){const e=this.getLabelDimension();const s=p*t.width;this.outerPadding=Math.min(e.width/2,s);const a=e.height+this.axisConfig.labelPadding*2;this.labelTextHeight=e.height;if(a<=i){i-=a;this.showLabel=true}}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength){this.showTick=true;i-=this.axisConfig.tickLength}if(this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize);const e=t.height+this.axisConfig.titlePadding*2;this.titleTextHeight=t.height;if(e<=i){i-=e;this.showTitle=true}}this.boundingRect.width=t.width;this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth){i-=this.axisConfig.axisLineWidth;this.showAxisLine=true}if(this.axisConfig.showLabel){const e=this.getLabelDimension();const s=p*t.height;this.outerPadding=Math.min(e.height/2,s);const a=e.width+this.axisConfig.labelPadding*2;if(a<=i){i-=a;this.showLabel=true}}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength){this.showTick=true;i-=this.axisConfig.tickLength}if(this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize);const e=t.height+this.axisConfig.titlePadding*2;this.titleTextHeight=t.height;if(e<=i){i-=e;this.showTitle=true}}this.boundingRect.width=t.width-i;this.boundingRect.height=t.height}calculateSpace(t){if(this.axisPosition==="left"||this.axisPosition==="right"){this.calculateSpaceIfDrawnVertical(t)}else{this.calculateSpaceIfDrawnHorizontally(t)}this.recalculateScale();return{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x;this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel){t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"})))})}if(this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}if(this.showTitle){t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]})}return t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel){t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"})))})}if(this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}if(this.showTitle){t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]})}return t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel){t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"})))})}if(this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}if(this.showTitle){t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]})}return t}getDrawableElements(){if(this.axisPosition==="left"){return this.getDrawableElementsForLeftAxis()}if(this.axisPosition==="right"){throw Error("Drawing of right axis is not implemented")}if(this.axisPosition==="bottom"){return this.getDrawableElementsForBottomAxis()}if(this.axisPosition==="top"){return this.getDrawableElementsForTopAxis()}return[]}};var y=class extends d{static{(0,h.K2)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i);this.categories=e;this.scale=(0,o.WH)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,o.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5);h.Rm.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}};var m=class extends d{static{(0,h.K2)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i);this.domain=e;this.scale=(0,o.m4Y)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];if(this.axisPosition==="left"){t.reverse()}this.scale=(0,o.m4Y)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function b(t,i,e,s){const a=new x(s);if(u(t)){return new y(i,e,t.categories,t.title,a)}return new m(i,e,[t.min,t.max],t.title,a)}(0,h.K2)(b,"getAxis");var k=class{constructor(t,i,e,s){this.textDimensionCalculator=t;this.chartConfig=i;this.chartData=e;this.chartThemeConfig=s;this.boundingRect={x:0,y:0,width:0,height:0};this.showChartTitle=false}static{(0,h.K2)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x;this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize);const e=Math.max(i.width,t.width);const s=i.height+2*this.chartConfig.titlePadding;if(i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title){this.boundingRect.width=e;this.boundingRect.height=s;this.showChartTitle=true}return{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];if(this.showChartTitle){t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]})}return t}};function A(t,i,e,s){const a=new x(s);return new k(a,t,i,e)}(0,h.K2)(A,"getChartTitleComponent");var S=class{constructor(t,i,e,s,a){this.plotData=t;this.xAxis=i;this.yAxis=e;this.orientation=s;this.plotIndex=a}static{(0,h.K2)(this,"LinePlot")}getDrawableElement(){const t=this.plotData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]));let i;if(this.orientation==="horizontal"){i=(0,o.n8j)().y((t=>t[0])).x((t=>t[1]))(t)}else{i=(0,o.n8j)().x((t=>t[0])).y((t=>t[1]))(t)}if(!i){return[]}return[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]}};var w=class{constructor(t,i,e,s,a,n){this.barData=t;this.boundingRect=i;this.xAxis=e;this.yAxis=s;this.orientation=a;this.plotIndex=n}static{(0,h.K2)(this,"BarPlot")}getDrawableElement(){const t=this.barData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]));const i=.05;const e=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-i);const s=e/2;if(this.orientation==="horizontal"){return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:this.boundingRect.x,y:t[0]-s,height:e,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]}return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:t[0]-s,y:t[1],width:e,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]}};var C=class{constructor(t,i,e){this.chartConfig=t;this.chartData=i;this.chartThemeConfig=e;this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,h.K2)(this,"BasePlot")}setAxes(t,i){this.xAxis=t;this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x;this.boundingRect.y=t.y}calculateSpace(t){this.boundingRect.width=t.width;this.boundingRect.height=t.height;return{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis)){throw Error("Axes must be passed to render Plots")}const t=[];for(const[i,e]of this.chartData.plots.entries()){switch(e.type){case"line":{const s=new S(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new w(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break}}return t}};function _(t,i,e){return new C(t,i,e)}(0,h.K2)(_,"getPlotComponent");var T=class{constructor(t,i,e,s){this.chartConfig=t;this.chartData=i;this.componentStore={title:A(t,i,e,s),plot:_(t,i,e),xAxis:b(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:b(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,h.K2)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width;let i=this.chartConfig.height;let e=0;let s=0;let a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100);let n=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100);let h=this.componentStore.plot.calculateSpace({width:a,height:n});t-=h.width;i-=h.height;h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i});s=h.height;i-=h.height;this.componentStore.xAxis.setAxisPosition("bottom");h=this.componentStore.xAxis.calculateSpace({width:t,height:i});i-=h.height;this.componentStore.yAxis.setAxisPosition("left");h=this.componentStore.yAxis.calculateSpace({width:t,height:i});e=h.width;t-=h.width;if(t>0){a+=t;t=0}if(i>0){n+=i;i=0}this.componentStore.plot.calculateSpace({width:a,height:n});this.componentStore.plot.setBoundingBoxXY({x:e,y:s});this.componentStore.xAxis.setRange([e,e+a]);this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+n});this.componentStore.yAxis.setRange([s,s+n]);this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s});if(this.chartData.plots.some((t=>c(t)))){this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}}calculateHorizontalSpace(){let t=this.chartConfig.width;let i=this.chartConfig.height;let e=0;let s=0;let a=0;let n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100);let h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100);let o=this.componentStore.plot.calculateSpace({width:n,height:h});t-=o.width;i-=o.height;o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i});e=o.height;i-=o.height;this.componentStore.xAxis.setAxisPosition("left");o=this.componentStore.xAxis.calculateSpace({width:t,height:i});t-=o.width;s=o.width;this.componentStore.yAxis.setAxisPosition("top");o=this.componentStore.yAxis.calculateSpace({width:t,height:i});i-=o.height;a=e+o.height;if(t>0){n+=t;t=0}if(i>0){h+=i;i=0}this.componentStore.plot.calculateSpace({width:n,height:h});this.componentStore.plot.setBoundingBoxXY({x:s,y:a});this.componentStore.yAxis.setRange([s,s+n]);this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e});this.componentStore.xAxis.setRange([a,a+h]);this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a});if(this.chartData.plots.some((t=>c(t)))){this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}}calculateSpace(){if(this.chartConfig.chartOrientation==="horizontal"){this.calculateHorizontalSpace()}else{this.calculateVerticalSpace()}}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore)){t.push(...i.getDrawableElements())}return t}};var R=class{static{(0,h.K2)(this,"XYChartBuilder")}static build(t,i,e,s){const a=new T(t,i,e,s);return a.getDrawableElement()}};var D=0;var v;var L=B();var P=M();var E=z();var K=P.plotColorPalette.split(",").map((t=>t.trim()));var I=false;var $=false;function M(){const t=(0,h.P$)();const i=(0,h.zj)();return(0,a.$t)(t.xyChart,i.themeVariables.xyChart)}(0,h.K2)(M,"getChartDefaultThemeConfig");function B(){const t=(0,h.zj)();return(0,a.$t)(h.UI.xyChart,t.xyChart)}(0,h.K2)(B,"getChartDefaultConfig");function z(){return{yAxis:{type:"linear",title:"",min:Infinity,max:-Infinity},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}(0,h.K2)(z,"getChartDefaultData");function W(t){const i=(0,h.zj)();return(0,h.jZ)(t.trim(),i)}(0,h.K2)(W,"textSanitizer");function O(t){v=t}(0,h.K2)(O,"setTmpSVGG");function F(t){if(t==="horizontal"){L.chartOrientation="horizontal"}else{L.chartOrientation="vertical"}}(0,h.K2)(F,"setOrientation");function N(t){E.xAxis.title=W(t.text)}(0,h.K2)(N,"setXAxisTitle");function V(t,i){E.xAxis={type:"linear",title:E.xAxis.title,min:t,max:i};I=true}(0,h.K2)(V,"setXAxisRangeData");function X(t){E.xAxis={type:"band",title:E.xAxis.title,categories:t.map((t=>W(t.text)))};I=true}(0,h.K2)(X,"setXAxisBand");function Y(t){E.yAxis.title=W(t.text)}(0,h.K2)(Y,"setYAxisTitle");function U(t,i){E.yAxis={type:"linear",title:E.yAxis.title,min:t,max:i};$=true}(0,h.K2)(U,"setYAxisRangeData");function H(t){const i=Math.min(...t);const e=Math.max(...t);const s=g(E.yAxis)?E.yAxis.min:Infinity;const a=g(E.yAxis)?E.yAxis.max:-Infinity;E.yAxis={type:"linear",title:E.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}(0,h.K2)(H,"setYAxisRangeFromPlotData");function j(t){let i=[];if(t.length===0){return i}if(!I){const i=g(E.xAxis)?E.xAxis.min:Infinity;const e=g(E.xAxis)?E.xAxis.max:-Infinity;V(Math.min(i,1),Math.max(e,t.length))}if(!$){H(t)}if(u(E.xAxis)){i=E.xAxis.categories.map(((i,e)=>[i,t[e]]))}if(g(E.xAxis)){const e=E.xAxis.min;const s=E.xAxis.max;const a=(s-e)/(t.length-1);const n=[];for(let t=e;t<=s;t+=a){n.push(`${t}`)}i=n.map(((i,e)=>[i,t[e]]))}return i}(0,h.K2)(j,"transformDataWithoutCategory");function G(t){return K[t===0?0:t%K.length]}(0,h.K2)(G,"getPlotColorFromPalette");function Q(t,i){const e=j(i);E.plots.push({type:"line",strokeFill:G(D),strokeWidth:2,data:e});D++}(0,h.K2)(Q,"setLineData");function Z(t,i){const e=j(i);E.plots.push({type:"bar",fill:G(D),data:e});D++}(0,h.K2)(Z,"setBarData");function q(){if(E.plots.length===0){throw Error("No Plot to render, please provide a plot with some data")}E.title=(0,h.ab)();return R.build(L,E,P,v)}(0,h.K2)(q,"getDrawableElem");function J(){return P}(0,h.K2)(J,"getChartThemeConfig");function tt(){return L}(0,h.K2)(tt,"getChartConfig");var it=(0,h.K2)((function(){(0,h.IU)();D=0;L=B();E=z();P=M();K=P.plotColorPalette.split(",").map((t=>t.trim()));I=false;$=false}),"clear");var et={getDrawableElem:q,clear:it,setAccTitle:h.SV,getAccTitle:h.iN,setDiagramTitle:h.ke,getDiagramTitle:h.ab,getAccDescription:h.m7,setAccDescription:h.EI,setOrientation:F,setXAxisTitle:N,setXAxisRangeData:V,setXAxisBand:X,setYAxisTitle:Y,setYAxisRangeData:U,setLineData:Q,setBarData:Z,setTmpSVGG:O,getChartThemeConfig:J,getChartConfig:tt};var st=(0,h.K2)(((t,i,e,s)=>{const a=s.db;const o=a.getChartThemeConfig();const r=a.getChartConfig();function l(t){return t==="top"?"text-before-edge":"middle"}(0,h.K2)(l,"getDominantBaseLine");function c(t){return t==="left"?"start":t==="right"?"end":"middle"}(0,h.K2)(c,"getTextAnchor");function u(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,h.K2)(u,"getTextTransformation");h.Rm.debug("Rendering xychart chart\n"+t);const g=(0,n.D)(i);const x=g.append("g").attr("class","main");const f=x.append("rect").attr("width",r.width).attr("height",r.height).attr("class","background");(0,h.a$)(g,r.height,r.width,true);g.attr("viewBox",`0 0 ${r.width} ${r.height}`);f.attr("fill",o.backgroundColor);a.setTmpSVGG(g.append("g").attr("class","mermaid-tmp-group"));const p=a.getDrawableElem();const d={};function y(t){let i=x;let e="";for(const[s]of t.entries()){let a=x;if(s>0&&d[e]){a=d[e]}e+=t[s];i=d[e];if(!i){i=d[e]=a.append("g").attr("class",t[s])}}return i}(0,h.K2)(y,"getGroup");for(const n of p){if(n.data.length===0){continue}const t=y(n.groupTexts);switch(n.type){case"rect":t.selectAll("rect").data(n.data).enter().append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth));break;case"text":t.selectAll("text").data(n.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>l(t.verticalPos))).attr("text-anchor",(t=>c(t.horizontalPos))).attr("transform",(t=>u(t))).text((t=>t.text));break;case"path":t.selectAll("path").data(n.data).enter().append("path").attr("d",(t=>t.path)).attr("fill",(t=>t.fill?t.fill:"none")).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth));break}}}),"draw");var at={draw:st};var nt={parser:l,db:et,renderer:at}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ef2b40c0581b98689d39124cc07c0cf73c194a4 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js.LICENSE.txt @@ -0,0 +1,15 @@ +/*! +Copyright 2019 Ron Buckton + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a009bea404f7a500ded4.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a009bea404f7a500ded4.woff new file mode 100644 index 0000000000000000000000000000000000000000..e62ff5fdceb428c7b53974b4815c0a76ecae5016 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a009bea404f7a500ded4.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff new file mode 100644 index 0000000000000000000000000000000000000000..a9d1f345bff3b0131f7759f0022778e393fb2b00 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/bootstrap.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/bootstrap.js new file mode 100644 index 0000000000000000000000000000000000000000..9a5ae3eb3187ce70450db1ea825a58b551ac140c --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/bootstrap.js @@ -0,0 +1,98 @@ +// This file is auto-generated from the corresponding file in /dev_mode +/* + * Copyright (c) Jupyter Development Team. + * Distributed under the terms of the Modified BSD License. + */ + +// We copy some of the pageconfig parsing logic in @jupyterlab/coreutils +// below, since this must run before any other files are loaded (including +// @jupyterlab/coreutils). + +/** + * Get global configuration data for the Jupyter application. + * + * @param name - The name of the configuration option. + * + * @returns The config value or an empty string if not found. + * + * #### Notes + * All values are treated as strings. For browser based applications, it is + * assumed that the page HTML includes a script tag with the id + * `jupyter-config-data` containing the configuration as valid JSON. + */ +let _CONFIG_DATA = null; +function getOption(name) { + if (_CONFIG_DATA === null) { + let configData = {}; + // Use script tag if available. + if (typeof document !== 'undefined' && document) { + const el = document.getElementById('jupyter-config-data'); + + if (el) { + configData = JSON.parse(el.textContent || '{}'); + } + } + _CONFIG_DATA = configData; + } + + return _CONFIG_DATA[name] || ''; +} + +// eslint-disable-next-line no-undef +__webpack_public_path__ = getOption('fullStaticUrl') + '/'; + +function loadScript(url) { + return new Promise((resolve, reject) => { + const newScript = document.createElement('script'); + newScript.onerror = reject; + newScript.onload = resolve; + newScript.async = true; + document.head.appendChild(newScript); + newScript.src = url; + }); +} + +async function loadComponent(url, scope) { + await loadScript(url); + + // From https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers + // eslint-disable-next-line no-undef + await __webpack_init_sharing__('default'); + const container = window._JUPYTERLAB[scope]; + // Initialize the container, it may provide shared modules and may need ours + // eslint-disable-next-line no-undef + await container.init(__webpack_share_scopes__.default); +} + +void (async function bootstrap() { + // This is all the data needed to load and activate plugins. This should be + // gathered by the server and put onto the initial page template. + const extension_data = getOption('federated_extensions'); + + // We first load all federated components so that the shared module + // deduplication can run and figure out which shared modules from all + // components should be actually used. We have to do this before importing + // and using the module that actually uses these components so that all + // dependencies are initialized. + let labExtensionUrl = getOption('fullLabextensionsUrl'); + const extensions = await Promise.allSettled( + extension_data.map(async data => { + await loadComponent( + `${labExtensionUrl}/${data.name}/${data.load}`, + data.name + ); + }) + ); + + extensions.forEach(p => { + if (p.status === 'rejected') { + // There was an error loading the component + console.error(p.reason); + } + }); + + // Now that all federated containers are initialized with the main + // container, we can import the main function. + let main = (await import('./index.out.js')).main; + window.addEventListener('load', main); +})(); diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/build_log.json b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/build_log.json new file mode 100644 index 0000000000000000000000000000000000000000..4fd169ad3f9709ed263f51d062ddf215db3cc25a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/build_log.json @@ -0,0 +1,805 @@ +[ + { + "bail": true, + "module": { + "rules": [ + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/style-loader/dist/cjs.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "issuer": {}, + "type": "asset", + "generator": {} + }, + { + "test": {}, + "issuer": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "javascript/auto" + }, + { + "test": {}, + "resolve": { + "fullySpecified": false + } + }, + { + "test": {}, + "resolve": { + "fullySpecified": false + } + }, + { + "test": {}, + "include": [], + "use": [ + "source-map-loader" + ], + "enforce": "pre" + } + ] + }, + "resolve": { + "fallback": { + "url": false, + "buffer": false, + "crypto": false, + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/path-browserify/index.js", + "process": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/process/browser.js" + } + }, + "watchOptions": { + "poll": 500, + "aggregateTimeout": 1000 + }, + "output": { + "hashFunction": "sha256", + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build", + "publicPath": "{{page_config.fullStaticUrl}}/", + "filename": "[name].[contenthash].js" + }, + "plugins": [ + { + "definitions": { + "process": "process/browser" + } + }, + { + "options": { + "verbose": true, + "showHelp": true, + "emitError": false, + "strict": true + } + }, + { + "userOptions": { + "chunksSortMode": "none", + "template": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/templates/template.html", + "title": "JupyterLab" + }, + "version": 5 + }, + {}, + { + "buildDir": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build", + "staticDir": "../static", + "_first": true + }, + { + "_options": { + "library": { + "type": "var", + "name": [ + "_JUPYTERLAB", + "CORE_LIBRARY_FEDERATION" + ] + }, + "name": "CORE_FEDERATION", + "shared": { + "@codemirror/language": { + "requiredVersion": "^6.0.0", + "singleton": true + }, + "@codemirror/state": { + "requiredVersion": "^6.2.0", + "singleton": true + }, + "@codemirror/view": { + "requiredVersion": "^6.9.6", + "singleton": true + }, + "@jupyter/react-components": { + "requiredVersion": "^0.16.6", + "singleton": true + }, + "@jupyter/web-components": { + "requiredVersion": "^0.16.6", + "singleton": true + }, + "@jupyter/ydoc": { + "requiredVersion": "^3.0.0-a3", + "singleton": true + }, + "@jupyterlab/application": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/application-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/apputils": { + "requiredVersion": "~4.5.2", + "singleton": true + }, + "@jupyterlab/apputils-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/attachments": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/cell-toolbar": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/cell-toolbar-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/cells": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/celltags-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/codeeditor": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/codemirror": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/codemirror-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/completer": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/completer-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/console": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/console-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/coreutils": { + "requiredVersion": "~6.4.2", + "singleton": true + }, + "@jupyterlab/csvviewer": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/csvviewer-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/debugger": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/debugger-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/docmanager": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/docmanager-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/docregistry": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/documentsearch": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/documentsearch-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/extensionmanager": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/extensionmanager-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/filebrowser": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/filebrowser-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/fileeditor": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/fileeditor-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/help-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/htmlviewer": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/htmlviewer-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/hub-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/imageviewer": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/imageviewer-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/inspector": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/inspector-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/javascript-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/json-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/launcher": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/launcher-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/logconsole": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/logconsole-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/lsp": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/lsp-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/mainmenu": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/mainmenu-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/markdownviewer": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/markdownviewer-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/markedparser-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/mathjax-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/mermaid": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/mermaid-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/metadataform": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/metadataform-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/metapackage": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/nbconvert-css": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/nbformat": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/notebook": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/notebook-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/observables": { + "requiredVersion": "~5.4.2" + }, + "@jupyterlab/outputarea": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/pdf-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/pluginmanager": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/pluginmanager-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/property-inspector": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/rendermime": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/rendermime-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/rendermime-interfaces": { + "requiredVersion": "~3.12.2", + "singleton": true + }, + "@jupyterlab/running": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/running-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/services": { + "requiredVersion": "~7.4.2", + "singleton": true + }, + "@jupyterlab/services-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/settingeditor": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/settingeditor-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/settingregistry": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/shortcuts-extension": { + "requiredVersion": "~5.2.2" + }, + "@jupyterlab/statedb": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/statusbar": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/statusbar-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/terminal": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/terminal-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/theme-dark-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/theme-dark-high-contrast-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/theme-light-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/toc": { + "requiredVersion": "~6.4.2", + "singleton": true + }, + "@jupyterlab/toc-extension": { + "requiredVersion": "~6.4.2" + }, + "@jupyterlab/tooltip": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/tooltip-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/translation": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/translation-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/ui-components": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/ui-components-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/vega5-extension": { + "requiredVersion": "~4.4.2" + }, + "@jupyterlab/workspaces": { + "requiredVersion": "~4.4.2", + "singleton": true + }, + "@jupyterlab/workspaces-extension": { + "requiredVersion": "~4.4.2" + }, + "@lezer/common": { + "requiredVersion": "^1.0.0", + "singleton": true + }, + "@lezer/highlight": { + "requiredVersion": "^1.0.0", + "singleton": true + }, + "@lumino/algorithm": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/application": { + "requiredVersion": "^2.3.0-alpha.0", + "singleton": true + }, + "@lumino/commands": { + "requiredVersion": "^2.0.1", + "singleton": true + }, + "@lumino/coreutils": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/datagrid": { + "requiredVersion": "^2.3.0-alpha.0", + "singleton": true + }, + "@lumino/disposable": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/domutils": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/dragdrop": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/keyboard": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/messaging": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/polling": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/properties": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/signaling": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/virtualdom": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/widgets": { + "requiredVersion": "^2.3.1-alpha.0", + "singleton": true + }, + "@microsoft/fast-element": { + "requiredVersion": "^1.12.0", + "singleton": true + }, + "@microsoft/fast-foundation": { + "requiredVersion": "^2.49.2", + "singleton": true + }, + "react": { + "requiredVersion": "^18.2.0", + "singleton": true + }, + "react-dom": { + "requiredVersion": "^18.2.0", + "singleton": true + }, + "yjs": { + "requiredVersion": "^13.5.40", + "singleton": true + }, + "react-toastify": { + "requiredVersion": "^9.0.8" + }, + "@rjsf/utils": { + "requiredVersion": "^5.13.4" + }, + "@codemirror/commands": { + "requiredVersion": "^6.8.1" + }, + "@codemirror/lang-markdown": { + "requiredVersion": "^6.3.2" + }, + "@codemirror/legacy-modes": { + "requiredVersion": "^6.5.1" + }, + "@codemirror/search": { + "requiredVersion": "^6.5.10" + }, + "@rjsf/validator-ajv8": { + "requiredVersion": "^5.13.4" + }, + "marked": { + "requiredVersion": "^15.0.7" + }, + "marked-gfm-heading-id": { + "requiredVersion": "^4.1.1" + }, + "marked-mangle": { + "requiredVersion": "^1.1.10" + }, + "mathjax-full": { + "requiredVersion": "^3.2.2" + }, + "react-highlight-words": { + "requiredVersion": "^0.20.0" + }, + "react-json-tree": { + "requiredVersion": "^0.18.0" + }, + "style-mod": { + "requiredVersion": "^4.0.0" + }, + "vega": { + "requiredVersion": "^5.20.0" + }, + "vega-embed": { + "requiredVersion": "^6.2.1" + }, + "vega-lite": { + "requiredVersion": "^5.6.1-next.1" + } + } + } + } + ], + "mode": "development", + "entry": { + "main": [ + "./publicpath", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build/bootstrap.js" + ] + }, + "optimization": { + "splitChunks": { + "chunks": "all", + "cacheGroups": { + "jlab_core": { + "test": {}, + "name": "jlab_core" + } + } + } + }, + "devtool": "inline-source-map", + "externals": [ + "ws" + ] + }, + { + "mode": "production", + "entry": { + "index": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/@jupyterlab/theme-dark-extension/style/theme.css" + }, + "output": { + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/themes/@jupyterlab/theme-dark-extension", + "filename": "[name].js", + "hashFunction": "sha256" + }, + "module": { + "rules": [ + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/mini-css-extract-plugin/dist/loader.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/inline", + "generator": {} + }, + { + "test": {}, + "type": "asset" + } + ] + }, + "plugins": [ + { + "_sortedModulesCache": {}, + "options": { + "filename": "[name].css", + "ignoreOrder": false, + "runtime": true, + "chunkFilename": "[id].css" + }, + "runtimeOptions": { + "linkType": "text/css" + } + } + ] + }, + { + "mode": "production", + "entry": { + "index": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/@jupyterlab/theme-dark-high-contrast-extension/style/theme.css" + }, + "output": { + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/themes/@jupyterlab/theme-dark-high-contrast-extension", + "filename": "[name].js", + "hashFunction": "sha256" + }, + "module": { + "rules": [ + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/mini-css-extract-plugin/dist/loader.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/inline", + "generator": {} + }, + { + "test": {}, + "type": "asset" + } + ] + }, + "plugins": [ + { + "_sortedModulesCache": {}, + "options": { + "filename": "[name].css", + "ignoreOrder": false, + "runtime": true, + "chunkFilename": "[id].css" + }, + "runtimeOptions": { + "linkType": "text/css" + } + } + ] + }, + { + "mode": "production", + "entry": { + "index": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/@jupyterlab/theme-light-extension/style/theme.css" + }, + "output": { + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/themes/@jupyterlab/theme-light-extension", + "filename": "[name].js", + "hashFunction": "sha256" + }, + "module": { + "rules": [ + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/mini-css-extract-plugin/dist/loader.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/inline", + "generator": {} + }, + { + "test": {}, + "type": "asset" + } + ] + }, + "plugins": [ + { + "_sortedModulesCache": {}, + "options": { + "filename": "[name].css", + "ignoreOrder": false, + "runtime": true, + "chunkFilename": "[id].css" + }, + "runtimeOptions": { + "linkType": "text/css" + } + } + ] + } +] \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/cb9e9e693192413cde2b.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/cb9e9e693192413cde2b.woff new file mode 100644 index 0000000000000000000000000000000000000000..ad077c6bec782b7c15bfa4ec96ee5900faaa3ccb Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/cb9e9e693192413cde2b.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..56328948b3b1bacb23a13af9d727fd75c0343448 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff new file mode 100644 index 0000000000000000000000000000000000000000..22e5eff737c68962138420de5742413683fbcea0 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/main.363f5c3a46eb2c6679ba.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/main.363f5c3a46eb2c6679ba.js new file mode 100644 index 0000000000000000000000000000000000000000..b37e029370fe5359a1a0bb2e5b5beaaaa4468f3d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/main.363f5c3a46eb2c6679ba.js @@ -0,0 +1 @@ +(()=>{var e={31068:(e,a,t)=>{let l=null;function d(e){if(l===null){let e={};if(typeof document!=="undefined"&&document){const a=document.getElementById("jupyter-config-data");if(a){e=JSON.parse(a.textContent||"{}")}}l=e}return l[e]||""}t.p=d("fullStaticUrl")+"/";function f(e){return new Promise(((a,t)=>{const l=document.createElement("script");l.onerror=t;l.onload=a;l.async=true;document.head.appendChild(l);l.src=e}))}async function b(e,a){await f(e);await t.I("default");const l=window._JUPYTERLAB[a];await l.init(t.S.default)}void async function e(){const a=d("federated_extensions");let l=d("fullLabextensionsUrl");const f=await Promise.allSettled(a.map((async e=>{await b(`${l}/${e.name}/${e.load}`,e.name)})));f.forEach((e=>{if(e.status==="rejected"){console.error(e.reason)}}));let r=(await Promise.all([t.e(4470),t.e(1096),t.e(5592),t.e(397),t.e(4307),t.e(8548),t.e(5311),t.e(1997),t.e(6180)]).then(t.bind(t,15136))).main;window.addEventListener("load",r)}()},80551:(e,a,t)=>{function l(e){let a=Object.create(null);if(typeof document!=="undefined"&&document){const e=document.getElementById("jupyter-config-data");if(e){a=JSON.parse(e.textContent||"{}")}}return a[e]||""}t.p=l("fullStaticUrl")+"/"},36513:e=>{"use strict";e.exports=ws}};var a={};function t(l){var d=a[l];if(d!==undefined){return d.exports}var f=a[l]={id:l,loaded:false,exports:{}};e[l].call(f.exports,f,f.exports,t);f.loaded=true;return f.exports}t.m=e;t.c=a;(()=>{t.n=e=>{var a=e&&e.__esModule?()=>e["default"]:()=>e;t.d(a,{a});return a}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var a;t.t=function(l,d){if(d&1)l=this(l);if(d&8)return l;if(typeof l==="object"&&l){if(d&4&&l.__esModule)return l;if(d&16&&typeof l.then==="function")return l}var f=Object.create(null);t.r(f);var b={};a=a||[null,e({}),e([]),e(e)];for(var r=d&2&&l;typeof r=="object"&&!~a.indexOf(r);r=e(r)){Object.getOwnPropertyNames(r).forEach((e=>b[e]=()=>l[e]))}b["default"]=()=>l;t.d(f,b);return f}})();(()=>{t.d=(e,a)=>{for(var l in a){if(t.o(a,l)&&!t.o(e,l)){Object.defineProperty(e,l,{enumerable:true,get:a[l]})}}}})();(()=>{t.f={};t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,l)=>{t.f[l](e,a);return a}),[]))})();(()=>{t.u=e=>""+(e===4470?"jlab_core":e)+"."+{43:"d7d6fab845331461735f",44:"b0c851f433c17258219e",75:"a7bf7b60891d8a177cb5",84:"fe0a55d7756c37585fb4",89:"933673451ca4a51053cb",100:"1d14ca44a3cc8849349f",227:"6bd3154334bb91c5ca1c",232:"5419cbec68e3fd0cf431",246:"326a6482593e8a7bcd58",247:"84259ab142dd8c151fc2",265:"6f9e37c0b72db64203b1",321:"0fb994fd384a54491584",339:"380593b40d8d41150a4e",349:"4df45472f0d7c34fddaa",397:"08bdacb41d6d85838e7a",492:"5f186062d2dcdf79c86c",580:"4ea1e6182e0b35ff091a",619:"c4bf4d32fa3826a7e24d",649:"4081045b1737e4213282",731:"82a7b980b5b7f4b7a14f",805:"2a0b8ac50aa8e6ab096f",867:"e814bf26fbfc77fc4f16",874:"fbd3ae653c7337f3425b",898:"ed04189e15f0a3781fb1",908:"b5a56a3a9ea2dfc3a715",933:"0be8eb2925f391c4d87d",961:"29c067b15a524e556eed",970:"597f8907dcda6e040a37",1039:"3fe94e87219c0ed159d3",1096:"dd4c563e0483cbbeb9c9",1143:"89533f32eea659c93077",1189:"c1482e88f0e949753db6",1208:"4b9ab7b231d39ebdbc3f",1210:"a6a0785318c730f6b05e",1219:"b5630aa3a46050fddc27",1249:"64ec8055bc398fb24bec",1268:"e75d8a6dd557ac8957ca",1359:"d5f23f0e2a6f67b69751",1423:"4bcf4453e1c1d12d872f",1436:"2c11d9dee0ad6f49e968",1445:"a0e099c27d073217031a",1449:"7026e8748d2a77e15d5b",1462:"57e39f487257f25263d4",1491:"010c623dd546db976e95",1495:"13603dd823bbf5eb08b3",1673:"b0ee25168543434bdbca",1674:"34b9096b296267e7b879",1737:"a5fc97075f693ec36fe6",1742:"72989aa6fc10a8f92a6c",1832:"b1ede2fe899bdec88938",1834:"7445ad0c82371ac40737",1838:"839690ff17ec3c532f0a",1887:"56f83f163a18c61efb16",1909:"7487a09fefbe7f9eabb6",1912:"f16dddc294d66c3c81e9",1954:"f1c519cb1415c7da3e8c",1960:"f8d8ef8a91360e60f0b9",1962:"6a7da74e809b70d5200d",1969:"86e3168e52802569d650",1986:"26029e99ef54a5652df8",1991:"84fc123d7cfe8ae2948e",1997:"203264424f3ea9b57faf",2023:"59b30086fbeff6d17e3b",2149:"e1a89efcd02cf01f6382",2211:"3123543dcc217549bbb0",2280:"6614699f54522fffbc00",2336:"af7bf64a0a49efb6488f",2353:"ab70488f07a7c0a7a3fd",2441:"5c93cd8330dce1840e7e",2467:"4227742ac4b60289f222",2470:"e58bd49a2dbca8f0ca07",2550:"75fcaa650ffac405c0dc",2574:"327dadfe49120269ff31",2576:"b98b7b23adeec4cb6932",2590:"99e505d19b964439aa31",2601:"367168ef0bb1b13c3b83",2633:"ea053b40991eb5adbc69",2641:"e77441e7a3e0d12834c5",2658:"d1cae1b08b068d864368",2681:"a47f40e38ecd31ccd687",2707:"61050e600b0aa9624127",2729:"cafaf0caf2c0c83ac9fe",2776:"d051c92616500787ccdb",2794:"05495c139ed000b57598",2819:"54fcb3f40ef22a8ed99a",2823:"0b6015b5e03c08281f41",2856:"85f64e249cfad727e86e",2875:"d410bd2c0dfb99aba23c",2880:"8483d51b11998bfe8e4b",2957:"bc5eb9549a0b15c44916",2959:"b24c9f67d639376f5ead",3037:"dc5090e129ee20bba459",3048:"59e6166a886a78f4f698",3073:"3f9213b8d42fa8f979ad",3105:"befa90bf8d2d9281eae1",3111:"33574d9124842f355bce",3112:"0757b31e24c5334fda73",3122:"fed5688acdcf6ff6aa6b",3247:"ae4984649bb31b568839",3257:"30af681f0c294efb65f7",3275:"114848d6330c60c049ee",3282:"8e9b6237394295ee9232",3293:"375c6685d72662fc062f",3303:"b5596c0715d2d58332fb",3358:"7ba73a6804155b619b44",3372:"8eeafd96de9a7a205f40",3546:"26b0c126ebd878a45141",3616:"a4271ffcf2ac3b4c2338",3709:"e33bc30c83272aa85628",3763:"56191df5d72d2ffa5aa6",3780:"c9294dc98ae926717741",3799:"eaa0438bc5c41bad0516",3801:"2da4473d290b90f826b1",3824:"5e23be1e37fce5b7c6b3",3825:"36eae9090697c6a6ef1f",3832:"c6026c483bb46cc8e599",3899:"b288f54902cdd39a6d2e",3961:"670b1475ef898f3fe712",3974:"79f68bca9a02c92dab5e",3991:"678edf189fe92a216c70",4001:"80ab3ef5300d7ce2d1fe",4010:"5271baedaaff5113c699",4053:"4945facc348478fd59f4",4068:"9cc41f46f729f2c4369b",4076:"b4d803d8bf1bd6c97854",4090:"2a98aa0f94d11a8709c5",4158:"c1734867fad35efeba2a",4236:"2c0e4d8ff91816d70a5c",4266:"155b468271987c81d948",4296:"721da424585874d0789e",4307:"2a530bda4e2fb8e9980a",4311:"b44e8bc4829e0b1226d2",4323:"b2bd8a329a81d30ed039",4336:"fbbb862a0cdfb5904bbb",4341:"d0db674b687bafa92afe",4350:"8c8a0e7a3ffe036494e1",4353:"8572f6845cfde92dc152",4356:"9d18a624a57fd82fdfeb",4364:"b9b49d8d836882f44e62",4366:"d470eb739712a2d9eae8",4372:"645626a2452c190dbb22",4408:"f24dd0edf35e08548967",4452:"b6025521e35d4ce3f431",4462:"c3c6de84bc9399e0290d",4466:"fd34a11855452bd41e7a",4470:"aa4a06aeb6f3290b5d8c",4484:"e1d2565d1a3daa5fe5f1",4486:"8d2f41ae787607b7bf31",4493:"cf78c526293b333e6639",4507:"32b11ac1cb2b954599e6",4528:"43328125d98d6cfdfa99",4539:"30c23958d86ac8d9a0d1",4611:"bd2b768223b0cd570834",4616:"04cfbd55593c51921cc7",4723:"2b2331e56f3c9e655e9e",4728:"f59e4bd4b29409da82bc",4735:"555789a76a62936367d3",4739:"848acd28bad3c2c659b0",4797:"3740ef47b224a11a7fab",4823:"3fa8ba5a047f686ab72d",4838:"8db4c61349bfba200547",4855:"29e8dc6982ba4873487d",4878:"f7557c5c99a54b40c49b",4914:"9d815d8668bb86b68531",4928:"6cb408e4def87534970d",4931:"7a0f2615c5c07478041a",4955:"912838df8271280ecdc9",4958:"0a9dba3bf643df0b91de",4981:"eed4ddb90566e90e3df4",4982:"c609185756485c6e3344",5061:"fff4c3cb5a189d0dfdca",5085:"a38923f36b551620798a",5090:"404be96d8a6eae1e719a",5135:"7f204de2153e4d85406d",5145:"a38c0b57991b188da9a3",5211:"83e78dadcef89cae04bf",5224:"8a6bbc774d20be66fdfb",5244:"eefac84704ad30f00af3",5253:"9622242ebecfd2e09ab9",5286:"f0072dd20e5fd66ef380",5311:"94cf26cdacf095633749",5317:"f4bba2e3d0f4fdd088f7",5318:"d5df5c275e925c22d780",5338:"38c32bdfb0695f9b501f",5409:"f71c16b6c7e4b505f825",5489:"7fab44eac7538297b164",5492:"44728a640c37a4b4aa0c",5521:"0337f193af4e5eee6057",5566:"c76ea61eb723ee84e2cf",5592:"bd80a0bb4a62ac259003",5606:"e03dfa10c124a03f36ba",5625:"44d7f417a4edb115b4d3",5743:"6a82c8a152682b1d704a",5806:"acc5ae92a53d3e717bea",5829:"0e46d479b4ade4783661",5847:"930208c25e45ecf30657",5862:"be1ec453e8db6844c62d",5877:"72ab5a29e95ce21981e4",5917:"2c8e743562b7e1354136",5929:"d561797f8259994ecdd8",5930:"d9e816c14b3ed3439878",5942:"05cbcd55c5f45ff7db43",5987:"7e967df5417044d337a4",6003:"94cdab770c801f3c46f7",6060:"52dca011e9f2f279fc5e",6095:"6e79e3bad86e054aa8c8",6145:"c422868290460078c013",6166:"2bc9ac8e2156c0701a52",6170:"65d899f43342f1e34bf1",6180:"60303761cae10d63e963",6214:"617de47747c5a9b19ef7",6275:"e99f9312900c481b467d",6294:"b3cb5e16527b9d09b4a2",6326:"2a3309bf259d29b9f5dc",6331:"9b967603770c82894d62",6364:"c592f3101de349ba3904",6372:"edc0712a4be855493530",6387:"5d43181c08f1bb34cbc6",6412:"ebdf8da40f1ba8272df9",6439:"1723c0b3882bf535486e",6460:"d9aaa1e48da295c6035d",6492:"804d51a693edf6978ef4",6540:"51c00e890179a4832552",6568:"d0dcdaecf8ffcbba870d",6575:"c59c97bad6c74999d740",6659:"288525f1457edb76c4d5",6672:"ba234c697d76a9d0b037",6733:"2d8d3e01d56d79a52e7e",6751:"1044578793ae50778ea2",6767:"4b82d96c237ca7e31bc6",6779:"051cfbcb0700a96839b2",6831:"1df8fa4cabb5b1c19803",6843:"dabcc3c9658bc6ded6d1",6874:"bb2f7fbc6ce56eecc800",6896:"af1d649e0efae70b7b1a",6899:"5509f8873391c7624013",6941:"465bebbd3d8a024f5f15",6974:"b5b353b8af28fbc91291",6986:"a89a5aba790481992875",6993:"c93f5a810fcf441cbb6f",7116:"2c297d9dc519967a6a12",7136:"b312751fbb25b73f5e71",7162:"754a9a470118e5990fbd",7236:"f7de8ef2478ed6ef9f41",7243:"be652e815602aec90f76",7250:"b88d0a5e237ff5ff1aad",7257:"29ee5a0930d6c8b5ce7f",7260:"b47dcaccbe7991104e8a",7269:"962f078e97afc4f68e79",7290:"420eb2792b0d89493483",7318:"7cc6b4b0b3151b205ecb",7371:"63b12ce793df713ab95b",7425:"f1c25f6c8aaec77e8635",7438:"deffd873da3060168f05",7445:"7c793c8e1720f8ec4f85",7575:"2e3e32236d5667bba43f",7587:"3112240b6b82407b0f16",7694:"1cbff84dccb512476b7c",7741:"2ad1372a5862c4522be3",7756:"93d0ab41829355a147ab",7769:"d39df7673ee2660a9ac4",7803:"0c8929610218552319bf",7856:"dd9523e57bed80f1f694",7879:"56d27f4d460bcd740d06",7881:"c5a234ce171f347c94e2",7990:"01eaa552261b6e12a74a",8022:"12470cbcdef472622ed8",8038:"aea19fb961abd87d6255",8103:"ed2b21471519b58a3d73",8173:"3bdde18bcd3439012791",8193:"e9776a6529c87311dcc7",8217:"801fbb0b549a74238760",8232:"e31d5021e77a9b5215d6",8313:"aac706f5036a7209b3a8",8326:"9dda93079a9e4f1b9be6",8352:"ad01ade8aa03c9295f24",8354:"94077232b086a13541cc",8368:"c75a4b32ae45ec88465d",8391:"e5fb2e35cced405eb819",8418:"42e29778d4b49fb54e8e",8426:"3531f7254524bd000a84",8493:"3b6106e45d5661438d8e",8537:"21b8b9ae0d81ae264499",8548:"ccef935a4bbef2c3bd08",8606:"843a01bad037272e48d7",8753:"56da17175b663d61f9d3",8778:"a3883f9acac5a903d6be",8779:"6eebdb56785e3d38a457",8786:"a2bc3dfc1ea13c04ba94",8815:"d24ab9366bcaf3fed852",8816:"d7ec52fb31e9c6749593",8830:"d5bb102ed8737ffe38cb",8855:"b17b9969fce42d0398e4",8915:"ab253990b1581460b255",9023:"2ff687d7ff50df3719fc",9046:"99c477ea375dcbb8c7ca",9059:"395e228260e55f4d57a0",9085:"5a959b5878e7afd8a878",9123:"501219cd782693d6539f",9136:"8f4cc6ecadcf250fd8ac",9137:"179a3c47465e7fb8f067",9155:"896734f9122bf593f248",9296:"1c75c887f933757c6bfb",9311:"ad0012965aa52db7a3e3",9329:"1683d45b6478b7c81a24",9359:"34d1b961b733676193cb",9400:"90fd1d2212781c80b587",9474:"01b4e1d1e3376f4a5919",9517:"7056cafdf1da3a136d45",9572:"f91bbaa33e932d524f8f",9652:"a8d2e5854bcae4d40041",9690:"5cb6ca397c56b15155ea",9746:"c7e86b432363dfd28caa",9881:"37d189ff085cb3468683",9890:"75ea8024e2c1c49c89a3",9892:"6d289e7baed8c64d88e2",9939:"a7233ee9573376c8b2ed"}[e]+".js?v="+{43:"d7d6fab845331461735f",44:"b0c851f433c17258219e",75:"a7bf7b60891d8a177cb5",84:"fe0a55d7756c37585fb4",89:"933673451ca4a51053cb",100:"1d14ca44a3cc8849349f",227:"6bd3154334bb91c5ca1c",232:"5419cbec68e3fd0cf431",246:"326a6482593e8a7bcd58",247:"84259ab142dd8c151fc2",265:"6f9e37c0b72db64203b1",321:"0fb994fd384a54491584",339:"380593b40d8d41150a4e",349:"4df45472f0d7c34fddaa",397:"08bdacb41d6d85838e7a",492:"5f186062d2dcdf79c86c",580:"4ea1e6182e0b35ff091a",619:"c4bf4d32fa3826a7e24d",649:"4081045b1737e4213282",731:"82a7b980b5b7f4b7a14f",805:"2a0b8ac50aa8e6ab096f",867:"e814bf26fbfc77fc4f16",874:"fbd3ae653c7337f3425b",898:"ed04189e15f0a3781fb1",908:"b5a56a3a9ea2dfc3a715",933:"0be8eb2925f391c4d87d",961:"29c067b15a524e556eed",970:"597f8907dcda6e040a37",1039:"3fe94e87219c0ed159d3",1096:"dd4c563e0483cbbeb9c9",1143:"89533f32eea659c93077",1189:"c1482e88f0e949753db6",1208:"4b9ab7b231d39ebdbc3f",1210:"a6a0785318c730f6b05e",1219:"b5630aa3a46050fddc27",1249:"64ec8055bc398fb24bec",1268:"e75d8a6dd557ac8957ca",1359:"d5f23f0e2a6f67b69751",1423:"4bcf4453e1c1d12d872f",1436:"2c11d9dee0ad6f49e968",1445:"a0e099c27d073217031a",1449:"7026e8748d2a77e15d5b",1462:"57e39f487257f25263d4",1491:"010c623dd546db976e95",1495:"13603dd823bbf5eb08b3",1673:"b0ee25168543434bdbca",1674:"34b9096b296267e7b879",1737:"a5fc97075f693ec36fe6",1742:"72989aa6fc10a8f92a6c",1832:"b1ede2fe899bdec88938",1834:"7445ad0c82371ac40737",1838:"839690ff17ec3c532f0a",1887:"56f83f163a18c61efb16",1909:"7487a09fefbe7f9eabb6",1912:"f16dddc294d66c3c81e9",1954:"f1c519cb1415c7da3e8c",1960:"f8d8ef8a91360e60f0b9",1962:"6a7da74e809b70d5200d",1969:"86e3168e52802569d650",1986:"26029e99ef54a5652df8",1991:"84fc123d7cfe8ae2948e",1997:"203264424f3ea9b57faf",2023:"59b30086fbeff6d17e3b",2149:"e1a89efcd02cf01f6382",2211:"3123543dcc217549bbb0",2280:"6614699f54522fffbc00",2336:"af7bf64a0a49efb6488f",2353:"ab70488f07a7c0a7a3fd",2441:"5c93cd8330dce1840e7e",2467:"4227742ac4b60289f222",2470:"e58bd49a2dbca8f0ca07",2550:"75fcaa650ffac405c0dc",2574:"327dadfe49120269ff31",2576:"b98b7b23adeec4cb6932",2590:"99e505d19b964439aa31",2601:"367168ef0bb1b13c3b83",2633:"ea053b40991eb5adbc69",2641:"e77441e7a3e0d12834c5",2658:"d1cae1b08b068d864368",2681:"a47f40e38ecd31ccd687",2707:"61050e600b0aa9624127",2729:"cafaf0caf2c0c83ac9fe",2776:"d051c92616500787ccdb",2794:"05495c139ed000b57598",2819:"54fcb3f40ef22a8ed99a",2823:"0b6015b5e03c08281f41",2856:"85f64e249cfad727e86e",2875:"d410bd2c0dfb99aba23c",2880:"8483d51b11998bfe8e4b",2957:"bc5eb9549a0b15c44916",2959:"b24c9f67d639376f5ead",3037:"dc5090e129ee20bba459",3048:"59e6166a886a78f4f698",3073:"3f9213b8d42fa8f979ad",3105:"befa90bf8d2d9281eae1",3111:"33574d9124842f355bce",3112:"0757b31e24c5334fda73",3122:"fed5688acdcf6ff6aa6b",3247:"ae4984649bb31b568839",3257:"30af681f0c294efb65f7",3275:"114848d6330c60c049ee",3282:"8e9b6237394295ee9232",3293:"375c6685d72662fc062f",3303:"b5596c0715d2d58332fb",3358:"7ba73a6804155b619b44",3372:"8eeafd96de9a7a205f40",3546:"26b0c126ebd878a45141",3616:"a4271ffcf2ac3b4c2338",3709:"e33bc30c83272aa85628",3763:"56191df5d72d2ffa5aa6",3780:"c9294dc98ae926717741",3799:"eaa0438bc5c41bad0516",3801:"2da4473d290b90f826b1",3824:"5e23be1e37fce5b7c6b3",3825:"36eae9090697c6a6ef1f",3832:"c6026c483bb46cc8e599",3899:"b288f54902cdd39a6d2e",3961:"670b1475ef898f3fe712",3974:"79f68bca9a02c92dab5e",3991:"678edf189fe92a216c70",4001:"80ab3ef5300d7ce2d1fe",4010:"5271baedaaff5113c699",4053:"4945facc348478fd59f4",4068:"9cc41f46f729f2c4369b",4076:"b4d803d8bf1bd6c97854",4090:"2a98aa0f94d11a8709c5",4158:"c1734867fad35efeba2a",4236:"2c0e4d8ff91816d70a5c",4266:"155b468271987c81d948",4296:"721da424585874d0789e",4307:"2a530bda4e2fb8e9980a",4311:"b44e8bc4829e0b1226d2",4323:"b2bd8a329a81d30ed039",4336:"fbbb862a0cdfb5904bbb",4341:"d0db674b687bafa92afe",4350:"8c8a0e7a3ffe036494e1",4353:"8572f6845cfde92dc152",4356:"9d18a624a57fd82fdfeb",4364:"b9b49d8d836882f44e62",4366:"d470eb739712a2d9eae8",4372:"645626a2452c190dbb22",4408:"f24dd0edf35e08548967",4452:"b6025521e35d4ce3f431",4462:"c3c6de84bc9399e0290d",4466:"fd34a11855452bd41e7a",4470:"aa4a06aeb6f3290b5d8c",4484:"e1d2565d1a3daa5fe5f1",4486:"8d2f41ae787607b7bf31",4493:"cf78c526293b333e6639",4507:"32b11ac1cb2b954599e6",4528:"43328125d98d6cfdfa99",4539:"30c23958d86ac8d9a0d1",4611:"bd2b768223b0cd570834",4616:"04cfbd55593c51921cc7",4723:"2b2331e56f3c9e655e9e",4728:"f59e4bd4b29409da82bc",4735:"555789a76a62936367d3",4739:"848acd28bad3c2c659b0",4797:"3740ef47b224a11a7fab",4823:"3fa8ba5a047f686ab72d",4838:"8db4c61349bfba200547",4855:"29e8dc6982ba4873487d",4878:"f7557c5c99a54b40c49b",4914:"9d815d8668bb86b68531",4928:"6cb408e4def87534970d",4931:"7a0f2615c5c07478041a",4955:"912838df8271280ecdc9",4958:"0a9dba3bf643df0b91de",4981:"eed4ddb90566e90e3df4",4982:"c609185756485c6e3344",5061:"fff4c3cb5a189d0dfdca",5085:"a38923f36b551620798a",5090:"404be96d8a6eae1e719a",5135:"7f204de2153e4d85406d",5145:"a38c0b57991b188da9a3",5211:"83e78dadcef89cae04bf",5224:"8a6bbc774d20be66fdfb",5244:"eefac84704ad30f00af3",5253:"9622242ebecfd2e09ab9",5286:"f0072dd20e5fd66ef380",5311:"94cf26cdacf095633749",5317:"f4bba2e3d0f4fdd088f7",5318:"d5df5c275e925c22d780",5338:"38c32bdfb0695f9b501f",5409:"f71c16b6c7e4b505f825",5489:"7fab44eac7538297b164",5492:"44728a640c37a4b4aa0c",5521:"0337f193af4e5eee6057",5566:"c76ea61eb723ee84e2cf",5592:"bd80a0bb4a62ac259003",5606:"e03dfa10c124a03f36ba",5625:"44d7f417a4edb115b4d3",5743:"6a82c8a152682b1d704a",5806:"acc5ae92a53d3e717bea",5829:"0e46d479b4ade4783661",5847:"930208c25e45ecf30657",5862:"be1ec453e8db6844c62d",5877:"72ab5a29e95ce21981e4",5917:"2c8e743562b7e1354136",5929:"d561797f8259994ecdd8",5930:"d9e816c14b3ed3439878",5942:"05cbcd55c5f45ff7db43",5987:"7e967df5417044d337a4",6003:"94cdab770c801f3c46f7",6060:"52dca011e9f2f279fc5e",6095:"6e79e3bad86e054aa8c8",6145:"c422868290460078c013",6166:"2bc9ac8e2156c0701a52",6170:"65d899f43342f1e34bf1",6180:"60303761cae10d63e963",6214:"617de47747c5a9b19ef7",6275:"e99f9312900c481b467d",6294:"b3cb5e16527b9d09b4a2",6326:"2a3309bf259d29b9f5dc",6331:"9b967603770c82894d62",6364:"c592f3101de349ba3904",6372:"edc0712a4be855493530",6387:"5d43181c08f1bb34cbc6",6412:"ebdf8da40f1ba8272df9",6439:"1723c0b3882bf535486e",6460:"d9aaa1e48da295c6035d",6492:"804d51a693edf6978ef4",6540:"51c00e890179a4832552",6568:"d0dcdaecf8ffcbba870d",6575:"c59c97bad6c74999d740",6659:"288525f1457edb76c4d5",6672:"ba234c697d76a9d0b037",6733:"2d8d3e01d56d79a52e7e",6751:"1044578793ae50778ea2",6767:"4b82d96c237ca7e31bc6",6779:"051cfbcb0700a96839b2",6831:"1df8fa4cabb5b1c19803",6843:"dabcc3c9658bc6ded6d1",6874:"bb2f7fbc6ce56eecc800",6896:"af1d649e0efae70b7b1a",6899:"5509f8873391c7624013",6941:"465bebbd3d8a024f5f15",6974:"b5b353b8af28fbc91291",6986:"a89a5aba790481992875",6993:"c93f5a810fcf441cbb6f",7116:"2c297d9dc519967a6a12",7136:"b312751fbb25b73f5e71",7162:"754a9a470118e5990fbd",7236:"f7de8ef2478ed6ef9f41",7243:"be652e815602aec90f76",7250:"b88d0a5e237ff5ff1aad",7257:"29ee5a0930d6c8b5ce7f",7260:"b47dcaccbe7991104e8a",7269:"962f078e97afc4f68e79",7290:"420eb2792b0d89493483",7318:"7cc6b4b0b3151b205ecb",7371:"63b12ce793df713ab95b",7425:"f1c25f6c8aaec77e8635",7438:"deffd873da3060168f05",7445:"7c793c8e1720f8ec4f85",7575:"2e3e32236d5667bba43f",7587:"3112240b6b82407b0f16",7694:"1cbff84dccb512476b7c",7741:"2ad1372a5862c4522be3",7756:"93d0ab41829355a147ab",7769:"d39df7673ee2660a9ac4",7803:"0c8929610218552319bf",7856:"dd9523e57bed80f1f694",7879:"56d27f4d460bcd740d06",7881:"c5a234ce171f347c94e2",7990:"01eaa552261b6e12a74a",8022:"12470cbcdef472622ed8",8038:"aea19fb961abd87d6255",8103:"ed2b21471519b58a3d73",8173:"3bdde18bcd3439012791",8193:"e9776a6529c87311dcc7",8217:"801fbb0b549a74238760",8232:"e31d5021e77a9b5215d6",8313:"aac706f5036a7209b3a8",8326:"9dda93079a9e4f1b9be6",8352:"ad01ade8aa03c9295f24",8354:"94077232b086a13541cc",8368:"c75a4b32ae45ec88465d",8391:"e5fb2e35cced405eb819",8418:"42e29778d4b49fb54e8e",8426:"3531f7254524bd000a84",8493:"3b6106e45d5661438d8e",8537:"21b8b9ae0d81ae264499",8548:"ccef935a4bbef2c3bd08",8606:"843a01bad037272e48d7",8753:"56da17175b663d61f9d3",8778:"a3883f9acac5a903d6be",8779:"6eebdb56785e3d38a457",8786:"a2bc3dfc1ea13c04ba94",8815:"d24ab9366bcaf3fed852",8816:"d7ec52fb31e9c6749593",8830:"d5bb102ed8737ffe38cb",8855:"b17b9969fce42d0398e4",8915:"ab253990b1581460b255",9023:"2ff687d7ff50df3719fc",9046:"99c477ea375dcbb8c7ca",9059:"395e228260e55f4d57a0",9085:"5a959b5878e7afd8a878",9123:"501219cd782693d6539f",9136:"8f4cc6ecadcf250fd8ac",9137:"179a3c47465e7fb8f067",9155:"896734f9122bf593f248",9296:"1c75c887f933757c6bfb",9311:"ad0012965aa52db7a3e3",9329:"1683d45b6478b7c81a24",9359:"34d1b961b733676193cb",9400:"90fd1d2212781c80b587",9474:"01b4e1d1e3376f4a5919",9517:"7056cafdf1da3a136d45",9572:"f91bbaa33e932d524f8f",9652:"a8d2e5854bcae4d40041",9690:"5cb6ca397c56b15155ea",9746:"c7e86b432363dfd28caa",9881:"37d189ff085cb3468683",9890:"75ea8024e2c1c49c89a3",9892:"6d289e7baed8c64d88e2",9939:"a7233ee9573376c8b2ed"}[e]+""})();(()=>{t.g=function(){if(typeof globalThis==="object")return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window==="object")return window}}()})();(()=>{t.hmd=e=>{e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"exports",{enumerable:true,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}})();(()=>{t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a)})();(()=>{var e={};var a="@jupyterlab/application-top:";t.l=(l,d,f,b)=>{if(e[l]){e[l].push(d);return}var r,c;if(f!==undefined){var n=document.getElementsByTagName("script");for(var o=0;o{r.onerror=r.onload=null;clearTimeout(u);var d=e[l];delete e[l];r.parentNode&&r.parentNode.removeChild(r);d&&d.forEach((e=>e(t)));if(a)return a(t)};var u=setTimeout(i.bind(null,undefined,{type:"timeout",target:r}),12e4);r.onerror=i.bind(null,r.onerror);r.onload=i.bind(null,r.onload);c&&document.head.appendChild(r)}})();(()=>{t.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{t.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();(()=>{t.S={};var e={};var a={};t.I=(l,d)=>{if(!d)d=[];var f=a[l];if(!f)f=a[l]={};if(d.indexOf(f)>=0)return;d.push(f);if(e[l])return e[l];if(!t.o(t.S,l))t.S[l]={};var b=t.S[l];var r=e=>{if(typeof console!=="undefined"&&console.warn)console.warn(e)};var c="@jupyterlab/application-top";var n=(e,a,t,l)=>{var d=b[e]=b[e]||{};var f=d[a];if(!f||!f.loaded&&(!l!=!f.eager?l:c>f.from))d[a]={get:t,from:c,eager:!!l}};var o=e=>{var a=e=>r("Initialization of sharing external failed: "+e);try{var f=t(e);if(!f)return;var b=e=>e&&e.init&&e.init(t.S[l],d);if(f.then)return s.push(f.then(b,a));var c=b(f);if(c&&c.then)return s.push(c["catch"](a))}catch(n){a(n)}};var s=[];switch(l){case"default":{n("@codemirror/commands","6.8.1",(()=>Promise.all([t.e(4353),t.e(2819),t.e(1674),t.e(6575),t.e(4452)]).then((()=>()=>t(44353)))));n("@codemirror/lang-markdown","6.3.2",(()=>Promise.all([t.e(8103),t.e(7425),t.e(1423),t.e(1962),t.e(9311),t.e(2819),t.e(1674),t.e(6575),t.e(5145),t.e(4452)]).then((()=>()=>t(79311)))));n("@codemirror/language","6.11.0",(()=>Promise.all([t.e(8313),t.e(2819),t.e(1674),t.e(6575),t.e(5145),t.e(3546)]).then((()=>()=>t(48313)))));n("@codemirror/search","6.5.10",(()=>Promise.all([t.e(4958),t.e(2819),t.e(1674)]).then((()=>()=>t(44958)))));n("@codemirror/state","6.5.2",(()=>t.e(6003).then((()=>()=>t(56003)))));n("@codemirror/view","6.36.6",(()=>Promise.all([t.e(9296),t.e(1674),t.e(3546)]).then((()=>()=>t(49296)))));n("@jupyter/react-components","0.16.6",(()=>Promise.all([t.e(2794),t.e(4914),t.e(8173)]).then((()=>()=>t(12794)))));n("@jupyter/web-components","0.16.6",(()=>Promise.all([t.e(5090),t.e(2576),t.e(9690),t.e(3073)]).then((()=>()=>t(72576)))));n("@jupyter/ydoc","3.0.4",(()=>Promise.all([t.e(5521),t.e(5592),t.e(2336),t.e(4356)]).then((()=>()=>t(65521)))));n("@jupyterlab/application-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(44),t.e(4307),t.e(4735),t.e(4931),t.e(3247),t.e(7257)]).then((()=>()=>t(27902)))));n("@jupyterlab/application","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(397),t.e(4539),t.e(44),t.e(6568),t.e(3037),t.e(2856),t.e(8548),t.e(4466),t.e(5286)]).then((()=>()=>t(16214)))));n("@jupyterlab/apputils-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(44),t.e(6568),t.e(4307),t.e(4735),t.e(3037),t.e(4931),t.e(8548),t.e(6326),t.e(3899),t.e(3247),t.e(6672),t.e(6751),t.e(5338)]).then((()=>()=>t(97472)))));n("@jupyterlab/apputils","4.5.2",(()=>Promise.all([t.e(4470),t.e(4728),t.e(619),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(44),t.e(4735),t.e(2856),t.e(4931),t.e(8548),t.e(6326),t.e(4336),t.e(7290),t.e(1445)]).then((()=>()=>t(12253)))));n("@jupyterlab/attachments","4.4.2",(()=>Promise.all([t.e(4470),t.e(2336),t.e(4539),t.e(4336)]).then((()=>()=>t(39721)))));n("@jupyterlab/cell-toolbar-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4823)]).then((()=>()=>t(39470)))));n("@jupyterlab/cell-toolbar","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(2336),t.e(4236),t.e(4336)]).then((()=>()=>t(23168)))));n("@jupyterlab/cells","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(4539),t.e(6568),t.e(4723),t.e(2856),t.e(6326),t.e(2149),t.e(2441),t.e(6899),t.e(2819),t.e(7290),t.e(5917),t.e(4493),t.e(8815)]).then((()=>()=>t(30531)))));n("@jupyterlab/celltags-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4914),t.e(4236),t.e(349)]).then((()=>()=>t(28211)))));n("@jupyterlab/codeeditor","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4735),t.e(4336),t.e(5917)]).then((()=>()=>t(32069)))));n("@jupyterlab/codemirror-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(4914),t.e(4739),t.e(4307),t.e(4735),t.e(4723),t.e(6899),t.e(1742),t.e(5806),t.e(4452)]).then((()=>()=>t(21699)))));n("@jupyterlab/codemirror","4.4.2",(()=>Promise.all([t.e(4470),t.e(1423),t.e(1268),t.e(619),t.e(5592),t.e(2336),t.e(397),t.e(4723),t.e(2441),t.e(2819),t.e(1674),t.e(6575),t.e(5145),t.e(5806),t.e(4452),t.e(4356)]).then((()=>()=>t(68191)))));n("@jupyterlab/completer-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4914),t.e(4739),t.e(4723),t.e(3247),t.e(9939)]).then((()=>()=>t(76177)))));n("@jupyterlab/completer","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(397),t.e(4539),t.e(4723),t.e(2856),t.e(6326),t.e(2819),t.e(1674)]).then((()=>()=>t(33107)))));n("@jupyterlab/console-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4236),t.e(4739),t.e(4539),t.e(44),t.e(4307),t.e(4723),t.e(3899),t.e(4466),t.e(2875),t.e(4955),t.e(9155),t.e(9939)]).then((()=>()=>t(70802)))));n("@jupyterlab/console","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4539),t.e(4336),t.e(970),t.e(5061),t.e(5917)]).then((()=>()=>t(57958)))));n("@jupyterlab/coreutils","6.4.2",(()=>Promise.all([t.e(4470),t.e(9652),t.e(5592),t.e(2336)]).then((()=>()=>t(26376)))));n("@jupyterlab/csvviewer-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4739),t.e(397),t.e(4307),t.e(3037),t.e(3899),t.e(2441)]).then((()=>()=>t(32254)))));n("@jupyterlab/csvviewer","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(3037),t.e(8426)]).then((()=>()=>t(77678)))));n("@jupyterlab/debugger-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(397),t.e(4539),t.e(4307),t.e(3037),t.e(4723),t.e(349),t.e(9155),t.e(5061),t.e(3105),t.e(4341),t.e(5253)]).then((()=>()=>t(5367)))));n("@jupyterlab/debugger","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(4539),t.e(6568),t.e(4723),t.e(4336),t.e(2819),t.e(1674),t.e(5061),t.e(4158)]).then((()=>()=>t(85995)))));n("@jupyterlab/docmanager-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(4307),t.e(4735),t.e(4931),t.e(3801)]).then((()=>()=>t(82372)))));n("@jupyterlab/docmanager","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(4735),t.e(3037),t.e(2856),t.e(4466)]).then((()=>()=>t(89069)))));n("@jupyterlab/docregistry","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(4539),t.e(44),t.e(4723),t.e(2856)]).then((()=>()=>t(70491)))));n("@jupyterlab/documentsearch-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(1143),t.e(4739),t.e(4307),t.e(2441)]).then((()=>()=>t(68201)))));n("@jupyterlab/documentsearch","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(44),t.e(6568),t.e(3247)]).then((()=>()=>t(42866)))));n("@jupyterlab/extensionmanager-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4739),t.e(4307),t.e(43)]).then((()=>()=>t(53316)))));n("@jupyterlab/extensionmanager","4.4.2",(()=>Promise.all([t.e(4470),t.e(8778),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(397),t.e(6568),t.e(8548)]).then((()=>()=>t(84468)))));n("@jupyterlab/filebrowser-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(4739),t.e(397),t.e(4307),t.e(4735),t.e(4931),t.e(3247),t.e(2875),t.e(3801)]).then((()=>()=>t(48934)))));n("@jupyterlab/filebrowser","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(4735),t.e(3037),t.e(2856),t.e(8548),t.e(6326),t.e(3801),t.e(7290),t.e(970)]).then((()=>()=>t(21813)))));n("@jupyterlab/fileeditor-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(4739),t.e(397),t.e(4307),t.e(4735),t.e(4723),t.e(3899),t.e(2149),t.e(2875),t.e(2441),t.e(6899),t.e(4955),t.e(7243),t.e(9155),t.e(9939),t.e(4341),t.e(5806)]).then((()=>()=>t(57256)))));n("@jupyterlab/fileeditor","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4735),t.e(3037),t.e(4723),t.e(2149),t.e(6899),t.e(7243)]).then((()=>()=>t(53062)))));n("@jupyterlab/help-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(397),t.e(4307),t.e(3899)]).then((()=>()=>t(97491)))));n("@jupyterlab/htmlviewer-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4739),t.e(4307),t.e(3961)]).then((()=>()=>t(1951)))));n("@jupyterlab/htmlviewer","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(2336),t.e(4914),t.e(397),t.e(3037)]).then((()=>()=>t(43947)))));n("@jupyterlab/hub-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(397),t.e(4307)]).then((()=>()=>t(44031)))));n("@jupyterlab/imageviewer-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4307),t.e(3275)]).then((()=>()=>t(55575)))));n("@jupyterlab/imageviewer","4.4.2",(()=>Promise.all([t.e(4470),t.e(4366),t.e(5592),t.e(1143),t.e(397),t.e(3037)]).then((()=>()=>t(70496)))));n("@jupyterlab/inspector-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4307),t.e(349),t.e(4955),t.e(9155),t.e(5743)]).then((()=>()=>t(33389)))));n("@jupyterlab/inspector","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4539),t.e(6568),t.e(4931)]).then((()=>()=>t(40516)))));n("@jupyterlab/javascript-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(4539)]).then((()=>()=>t(42147)))));n("@jupyterlab/json-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(1143),t.e(4914),t.e(6672),t.e(2957)]).then((()=>()=>t(94206)))));n("@jupyterlab/launcher-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(4307),t.e(2875),t.e(4955)]).then((()=>()=>t(960)))));n("@jupyterlab/launcher","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(44),t.e(4466)]).then((()=>()=>t(70322)))));n("@jupyterlab/logconsole-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(2336),t.e(4914),t.e(4739),t.e(4539),t.e(4307),t.e(4735),t.e(3037),t.e(3105)]).then((()=>()=>t(62062)))));n("@jupyterlab/logconsole","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(5592),t.e(1143),t.e(2336),t.e(4539),t.e(4493)]).then((()=>()=>t(42708)))));n("@jupyterlab/lsp-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(2336),t.e(4914),t.e(4739),t.e(6568),t.e(7243),t.e(5409)]).then((()=>()=>t(8113)))));n("@jupyterlab/lsp","4.4.2",(()=>Promise.all([t.e(4470),t.e(2641),t.e(619),t.e(4366),t.e(5592),t.e(2336),t.e(397),t.e(3037),t.e(8548)]).then((()=>()=>t(15771)))));n("@jupyterlab/mainmenu-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4236),t.e(4739),t.e(397),t.e(4307),t.e(8548),t.e(3899),t.e(2875),t.e(3801)]).then((()=>()=>t(72825)))));n("@jupyterlab/mainmenu","4.4.2",(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4236)]).then((()=>()=>t(43744)))));n("@jupyterlab/markdownviewer-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(397),t.e(4539),t.e(4307),t.e(2149),t.e(1249)]).then((()=>()=>t(69195)))));n("@jupyterlab/markdownviewer","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4539),t.e(3037),t.e(2149)]).then((()=>()=>t(34572)))));n("@jupyterlab/markedparser-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(397),t.e(4539),t.e(6899),t.e(5311)]).then((()=>()=>t(55151)))));n("@jupyterlab/mathjax-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(4539)]).then((()=>()=>t(31217)))));n("@jupyterlab/mermaid-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5311)]).then((()=>()=>t(71579)))));n("@jupyterlab/mermaid","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(397)]).then((()=>()=>t(63005)))));n("@jupyterlab/metadataform-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(4739),t.e(349),t.e(933)]).then((()=>()=>t(24039)))));n("@jupyterlab/metadataform","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4739),t.e(349),t.e(1742)]).then((()=>()=>t(32822)))));n("@jupyterlab/nbformat","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592)]).then((()=>()=>t(15555)))));n("@jupyterlab/notebook-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(4539),t.e(44),t.e(6568),t.e(4307),t.e(4735),t.e(4723),t.e(2856),t.e(4931),t.e(8548),t.e(4336),t.e(3899),t.e(2149),t.e(2875),t.e(2441),t.e(3801),t.e(6899),t.e(349),t.e(4955),t.e(7243),t.e(5061),t.e(9939),t.e(3105),t.e(7257),t.e(933),t.e(1997)]).then((()=>()=>t(65463)))));n("@jupyterlab/notebook","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(6568),t.e(4735),t.e(3037),t.e(4723),t.e(2856),t.e(8548),t.e(6326),t.e(4336),t.e(2149),t.e(4466),t.e(2441),t.e(7243),t.e(7290),t.e(970),t.e(5061),t.e(5917),t.e(8193)]).then((()=>()=>t(97846)))));n("@jupyterlab/observables","5.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(2856)]).then((()=>()=>t(56701)))));n("@jupyterlab/outputarea","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(4539),t.e(8548),t.e(4336),t.e(4466),t.e(8193)]).then((()=>()=>t(66990)))));n("@jupyterlab/pdf-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(44)]).then((()=>()=>t(93034)))));n("@jupyterlab/pluginmanager-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4307),t.e(75)]).then((()=>()=>t(49870)))));n("@jupyterlab/pluginmanager","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(397),t.e(8548)]).then((()=>()=>t(13125)))));n("@jupyterlab/property-inspector","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(1143),t.e(2336)]).then((()=>()=>t(87221)))));n("@jupyterlab/rendermime-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4539),t.e(3801)]).then((()=>()=>t(97872)))));n("@jupyterlab/rendermime-interfaces","3.12.2",(()=>t.e(4470).then((()=>()=>t(60479)))));n("@jupyterlab/rendermime","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4336),t.e(8193),t.e(2470)]).then((()=>()=>t(17200)))));n("@jupyterlab/running-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(2336),t.e(4914),t.e(397),t.e(6568),t.e(4307),t.e(3037),t.e(4931),t.e(8548),t.e(3801),t.e(5409)]).then((()=>()=>t(51883)))));n("@jupyterlab/running","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(44),t.e(6326),t.e(4158)]).then((()=>()=>t(19503)))));n("@jupyterlab/services-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(8548)]).then((()=>()=>t(28560)))));n("@jupyterlab/services","7.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(397),t.e(44),t.e(6568),t.e(4931),t.e(5606)]).then((()=>()=>t(50608)))));n("@jupyterlab/settingeditor-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(4914),t.e(4739),t.e(4539),t.e(4307),t.e(4723),t.e(4931),t.e(75)]).then((()=>()=>t(34194)))));n("@jupyterlab/settingeditor","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4539),t.e(6568),t.e(4723),t.e(4931),t.e(1742),t.e(5743)]).then((()=>()=>t(33296)))));n("@jupyterlab/settingregistry","4.4.2",(()=>Promise.all([t.e(4470),t.e(3282),t.e(1219),t.e(5592),t.e(2336),t.e(44),t.e(3247)]).then((()=>()=>t(63075)))));n("@jupyterlab/shortcuts-extension","5.2.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(5592),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(44),t.e(6326),t.e(3247),t.e(7162)]).then((()=>()=>t(26217)))));n("@jupyterlab/statedb","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4466)]).then((()=>()=>t(19531)))));n("@jupyterlab/statusbar-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4307),t.e(4735)]).then((()=>()=>t(6771)))));n("@jupyterlab/statusbar","4.4.2",(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(44)]).then((()=>()=>t(57850)))));n("@jupyterlab/terminal-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4739),t.e(4307),t.e(8548),t.e(3899),t.e(4955),t.e(5409),t.e(6387)]).then((()=>()=>t(59464)))));n("@jupyterlab/terminal","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(5592),t.e(1143),t.e(2856),t.e(6326)]).then((()=>()=>t(4202)))));n("@jupyterlab/theme-dark-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(10020)))));n("@jupyterlab/theme-dark-high-contrast-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(5180)))));n("@jupyterlab/theme-light-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(84988)))));n("@jupyterlab/toc-extension","6.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4739),t.e(4307),t.e(2149)]).then((()=>()=>t(27866)))));n("@jupyterlab/toc","6.4.2",(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(397),t.e(4539),t.e(44),t.e(4158)]).then((()=>()=>t(49830)))));n("@jupyterlab/tooltip-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(1143),t.e(4236),t.e(397),t.e(4539),t.e(349),t.e(9155),t.e(4341),t.e(7236)]).then((()=>()=>t(77083)))));n("@jupyterlab/tooltip","4.4.2",(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(4539)]).then((()=>()=>t(22087)))));n("@jupyterlab/translation-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4307),t.e(3899)]).then((()=>()=>t(30963)))));n("@jupyterlab/translation","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(397),t.e(4931),t.e(8548)]).then((()=>()=>t(6401)))));n("@jupyterlab/ui-components-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(6331)]).then((()=>()=>t(85205)))));n("@jupyterlab/ui-components","4.4.2",(()=>Promise.all([t.e(4470),t.e(3824),t.e(9085),t.e(5829),t.e(619),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(2856),t.e(3247),t.e(4466),t.e(7290),t.e(4158),t.e(6672),t.e(8173),t.e(2776)]).then((()=>()=>t(75634)))));n("@jupyterlab/vega5-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(1143)]).then((()=>()=>t(47872)))));n("@jupyterlab/workspaces-extension","4.4.2",(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(4739),t.e(397),t.e(4307),t.e(4931),t.e(2875),t.e(5409),t.e(6751)]).then((()=>()=>t(42864)))));n("@jupyterlab/workspaces","4.4.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(6568)]).then((()=>()=>t(33352)))));n("@lezer/common","1.2.1",(()=>t.e(1208).then((()=>()=>t(91208)))));n("@lezer/highlight","1.2.1",(()=>Promise.all([t.e(7803),t.e(6575)]).then((()=>()=>t(57803)))));n("@lumino/algorithm","2.0.3",(()=>t.e(4470).then((()=>()=>t(56588)))));n("@lumino/application","2.4.4",(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(3247)]).then((()=>()=>t(86397)))));n("@lumino/commands","2.3.2",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(6326),t.e(7162)]).then((()=>()=>t(893)))));n("@lumino/coreutils","2.2.1",(()=>Promise.all([t.e(4470),t.e(4236)]).then((()=>()=>t(45899)))));n("@lumino/datagrid","2.5.2",(()=>Promise.all([t.e(1491),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(2856),t.e(6326),t.e(970),t.e(7162)]).then((()=>()=>t(21491)))));n("@lumino/disposable","2.1.4",(()=>Promise.all([t.e(4470),t.e(2336)]).then((()=>()=>t(20785)))));n("@lumino/domutils","2.0.3",(()=>t.e(4470).then((()=>()=>t(60008)))));n("@lumino/dragdrop","2.1.6",(()=>Promise.all([t.e(4470),t.e(44)]).then((()=>()=>t(1506)))));n("@lumino/keyboard","2.0.3",(()=>t.e(4470).then((()=>()=>t(72996)))));n("@lumino/messaging","2.0.3",(()=>Promise.all([t.e(4470),t.e(4236)]).then((()=>()=>t(93346)))));n("@lumino/polling","2.1.4",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336)]).then((()=>()=>t(68534)))));n("@lumino/properties","2.0.3",(()=>t.e(4470).then((()=>()=>t(21628)))));n("@lumino/signaling","2.1.4",(()=>Promise.all([t.e(4470),t.e(5592),t.e(4236)]).then((()=>()=>t(96903)))));n("@lumino/virtualdom","2.0.3",(()=>Promise.all([t.e(4470),t.e(4236)]).then((()=>()=>t(57340)))));n("@lumino/widgets","2.7.1",(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(2856),t.e(6326),t.e(3247),t.e(4466),t.e(7290),t.e(970),t.e(7162)]).then((()=>()=>t(14292)))));n("@microsoft/fast-element","1.12.0",(()=>t.e(2590).then((()=>()=>t(62590)))));n("@microsoft/fast-foundation","2.49.4",(()=>Promise.all([t.e(232),t.e(5090),t.e(9690)]).then((()=>()=>t(50232)))));n("@rjsf/utils","5.14.3",(()=>Promise.all([t.e(3824),t.e(9085),t.e(6733),t.e(4914)]).then((()=>()=>t(26733)))));n("@rjsf/validator-ajv8","5.14.3",(()=>Promise.all([t.e(3824),t.e(3282),t.e(6896),t.e(2776)]).then((()=>()=>t(6896)))));n("marked-gfm-heading-id","4.1.1",(()=>t.e(6993).then((()=>()=>t(66993)))));n("marked-mangle","1.1.10",(()=>t.e(7116).then((()=>()=>t(47116)))));n("marked","15.0.7",(()=>t.e(4364).then((()=>()=>t(54364)))));n("react-dom","18.2.0",(()=>Promise.all([t.e(961),t.e(4914)]).then((()=>()=>t(40961)))));n("react-highlight-words","0.20.0",(()=>Promise.all([t.e(3257),t.e(4914)]).then((()=>()=>t(23257)))));n("react-json-tree","0.18.0",(()=>Promise.all([t.e(3293),t.e(4914)]).then((()=>()=>t(53293)))));n("react-toastify","9.1.1",(()=>Promise.all([t.e(4914),t.e(3111)]).then((()=>()=>t(13111)))));n("react","18.2.0",(()=>t.e(6540).then((()=>()=>t(96540)))));n("style-mod","4.1.2",(()=>t.e(4266).then((()=>()=>t(74266)))));n("vega-embed","6.21.3",(()=>Promise.all([t.e(7990),t.e(8352),t.e(7438)]).then((()=>()=>t(7990)))));n("vega-lite","5.6.1",(()=>Promise.all([t.e(4350),t.e(8352),t.e(6372)]).then((()=>()=>t(54350)))));n("vega","5.33.0",(()=>Promise.all([t.e(8606),t.e(7879),t.e(3991)]).then((()=>()=>t(37879)))));n("yjs","13.5.49",(()=>t.e(9046).then((()=>()=>t(89046)))))}break}if(!s.length)return e[l]=1;return e[l]=Promise.all(s).then((()=>e[l]=1))}})();(()=>{t.p="{{page_config.fullStaticUrl}}/"})();(()=>{var e=e=>{var a=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),l=t[1]?a(t[1]):[];return t[2]&&(l.length++,l.push.apply(l,a(t[2]))),t[3]&&(l.push([]),l.push.apply(l,a(t[3]))),l};var a=(a,t)=>{a=e(a),t=e(t);for(var l=0;;){if(l>=a.length)return l=t.length)return"u"==f;var b=t[l],r=(typeof b)[0];if(f!=r)return"o"==f&&"n"==r||("s"==r||"u"==f);if("o"!=f&&"u"!=f&&d!=b)return d{var a=e[0],t="";if(1===e.length)return"*";if(a+.5){t+=0==a?">=":-1==a?"<":1==a?"^":2==a?"~":a>0?"=":"!=";for(var d=1,f=1;f0?".":"")+(d=2,r)}return t}var b=[];for(f=1;f{if(0 in a){t=e(t);var l=a[0],f=l<0;f&&(l=-l-1);for(var b=0,r=1,c=!0;;r++,b++){var n,o,s=r=t.length||"o"==(o=(typeof(n=t[b]))[0]))return!c||("u"==s?r>l&&!f:""==s!=f);if("u"==o){if(!c||"u"!=s)return!1}else if(c)if(s==o)if(r<=l){if(n!=a[r])return!1}else{if(f?n>a[r]:ne&&t.o(e,a);var b=e=>{e.loaded=1;return e.get()};var r=e=>Object.keys(e).reduce(((a,t)=>{if(e[t].eager){a[t]=e[t]}return a}),{});var c=(e,t,l)=>{var d=l?r(e[t]):e[t];var t=Object.keys(d).reduce(((e,t)=>!e||a(e,t)?t:e),0);return t&&d[t]};var n=(e,t,l,f)=>{var b=f?r(e[t]):e[t];var t=Object.keys(b).reduce(((e,t)=>{if(!d(l,t))return e;return!e||a(e,t)?t:e}),0);return t&&b[t]};var o=(e,t,l)=>{var d=l?r(e[t]):e[t];return Object.keys(d).reduce(((e,t)=>!e||!d[e].loaded&&a(e,t)?t:e),0)};var s=(e,a,t,d)=>"Unsatisfied version "+t+" from "+(t&&e[a][t].from)+" of shared singleton module "+a+" (required "+l(d)+")";var i=(e,a,t,d,f)=>{var b=e[t];return"No satisfying version ("+l(d)+")"+(f?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+a+".\n"+"Available versions: "+Object.keys(b).map((e=>e+" from "+b[e].from)).join(", ")};var u=e=>{throw new Error(e)};var m=(e,a)=>u("Shared module "+a+" doesn't exist in shared scope "+e);var h=e=>{if(typeof console!=="undefined"&&console.warn)console.warn(e)};var p=e=>function(a,l,d,f,b){var r=t.I(a);if(r&&r.then&&!d){return r.then(e.bind(e,a,t.S[a],l,false,f,b))}return e(a,t.S[a],l,d,f,b)};var y=(e,a,t)=>t?t():m(e,a);var P=p(((e,a,t,l,d)=>{if(!f(a,t))return y(e,t,d);return b(c(a,t,l))}));var j=p(((e,a,t,l,d,r)=>{if(!f(a,t))return y(e,t,r);var o=n(a,t,d,l);if(o)return b(o);h(i(a,e,t,d,l));return b(c(a,t,l))}));var v=p(((e,a,t,l,d,r)=>{if(!f(a,t))return y(e,t,r);var c=n(a,t,d,l);if(c)return b(c);if(r)return r();u(i(a,e,t,d,l))}));var g=p(((e,a,t,l,d)=>{if(!f(a,t))return y(e,t,d);var r=o(a,t,l);return b(a[t][r])}));var x=p(((e,a,t,l,r,c)=>{if(!f(a,t))return y(e,t,c);var n=o(a,t,l);if(!d(r,n)){h(s(a,t,n,r))}return b(a[t][n])}));var w=p(((e,a,t,l,r,c)=>{if(!f(a,t))return y(e,t,c);var n=o(a,t,l);if(!d(r,n)){u(s(a,t,n,r))}return b(a[t][n])}));var k={};var O={5592:()=>x("default","@lumino/coreutils",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(4236)]).then((()=>()=>t(45899))))),30397:()=>x("default","@jupyterlab/coreutils",false,[2,6,4,2],(()=>Promise.all([t.e(4470),t.e(9652),t.e(5592),t.e(2336)]).then((()=>()=>t(26376))))),94307:()=>x("default","@jupyterlab/application",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(397),t.e(4539),t.e(44),t.e(6568),t.e(3037),t.e(2856),t.e(8548),t.e(4466),t.e(5286)]).then((()=>()=>t(16214))))),28548:()=>x("default","@jupyterlab/services",false,[2,7,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(397),t.e(44),t.e(6568),t.e(4931),t.e(5606)]).then((()=>()=>t(50608))))),85311:()=>x("default","@jupyterlab/mermaid",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(397)]).then((()=>()=>t(63005))))),51997:()=>v("default","@jupyterlab/docmanager-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(4735),t.e(4931),t.e(3801)]).then((()=>()=>t(82372))))),2611:()=>v("default","@jupyterlab/csvviewer-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(2336),t.e(4739),t.e(3037),t.e(3899),t.e(2441)]).then((()=>()=>t(32254))))),3385:()=>v("default","@jupyterlab/translation-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(3899)]).then((()=>()=>t(30963))))),4369:()=>v("default","@jupyterlab/running-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(2336),t.e(4914),t.e(6568),t.e(3037),t.e(4931),t.e(3801),t.e(5409)]).then((()=>()=>t(51883))))),6445:()=>v("default","@jupyterlab/json-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(1143),t.e(4914),t.e(6672),t.e(2957)]).then((()=>()=>t(94206))))),11793:()=>v("default","@jupyterlab/help-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(3899)]).then((()=>()=>t(97491))))),13621:()=>v("default","@jupyterlab/theme-dark-high-contrast-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(5180))))),16569:()=>v("default","@jupyterlab/workspaces-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(4739),t.e(4931),t.e(2875),t.e(5409),t.e(6751)]).then((()=>()=>t(42864))))),20321:()=>v("default","@jupyterlab/markedparser-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4539),t.e(6899)]).then((()=>()=>t(55151))))),22833:()=>v("default","@jupyterlab/mainmenu-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4236),t.e(4739),t.e(3899),t.e(2875),t.e(3801)]).then((()=>()=>t(72825))))),23299:()=>v("default","@jupyterlab/theme-light-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(84988))))),23407:()=>v("default","@jupyterlab/pluginmanager-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(75)]).then((()=>()=>t(49870))))),26001:()=>v("default","@jupyterlab/metadataform-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4739),t.e(349),t.e(933)]).then((()=>()=>t(24039))))),27337:()=>v("default","@jupyterlab/documentsearch-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(1143),t.e(4739),t.e(2441)]).then((()=>()=>t(68201))))),27745:()=>v("default","@jupyterlab/notebook-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(4539),t.e(44),t.e(6568),t.e(4735),t.e(4723),t.e(2856),t.e(4931),t.e(4336),t.e(3899),t.e(2149),t.e(2875),t.e(2441),t.e(3801),t.e(6899),t.e(349),t.e(4955),t.e(7243),t.e(5061),t.e(9939),t.e(3105),t.e(7257),t.e(933)]).then((()=>()=>t(65463))))),30549:()=>v("default","@jupyterlab/toc-extension",false,[2,6,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4739),t.e(2149)]).then((()=>()=>t(27866))))),31109:()=>v("default","@jupyterlab/theme-dark-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(10020))))),33221:()=>v("default","@jupyterlab/services-extension",false,[2,4,4,2],(()=>t.e(4470).then((()=>()=>t(28560))))),34937:()=>v("default","@jupyterlab/launcher-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(2875),t.e(4955)]).then((()=>()=>t(960))))),37377:()=>v("default","@jupyterlab/logconsole-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(2336),t.e(4914),t.e(4739),t.e(4539),t.e(4735),t.e(3037),t.e(3105)]).then((()=>()=>t(62062))))),41125:()=>v("default","@jupyterlab/ui-components-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331)]).then((()=>()=>t(85205))))),44937:()=>v("default","@jupyterlab/settingeditor-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4914),t.e(4739),t.e(4539),t.e(4723),t.e(4931),t.e(75)]).then((()=>()=>t(34194))))),45729:()=>v("default","@jupyterlab/statusbar-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4735)]).then((()=>()=>t(6771))))),46425:()=>v("default","@jupyterlab/fileeditor-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(4739),t.e(4735),t.e(4723),t.e(3899),t.e(2149),t.e(2875),t.e(2441),t.e(6899),t.e(4955),t.e(7243),t.e(9155),t.e(9939),t.e(4341),t.e(5806)]).then((()=>()=>t(57256))))),51143:()=>v("default","@jupyterlab/pdf-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(1143),t.e(44)]).then((()=>()=>t(93034))))),53813:()=>v("default","@jupyterlab/rendermime-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4539),t.e(3801)]).then((()=>()=>t(97872))))),55553:()=>v("default","@jupyterlab/tooltip-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(1143),t.e(4236),t.e(4539),t.e(349),t.e(9155),t.e(4341),t.e(7236)]).then((()=>()=>t(77083))))),56001:()=>v("default","@jupyterlab/debugger-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4539),t.e(3037),t.e(4723),t.e(349),t.e(9155),t.e(5061),t.e(3105),t.e(4341),t.e(5253)]).then((()=>()=>t(5367))))),59907:()=>v("default","@jupyterlab/vega5-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(1143)]).then((()=>()=>t(47872))))),61121:()=>v("default","@jupyterlab/imageviewer-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(3275)]).then((()=>()=>t(55575))))),62889:()=>v("default","@jupyterlab/mermaid-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(71579))))),65373:()=>v("default","@jupyterlab/terminal-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4739),t.e(3899),t.e(4955),t.e(5409),t.e(6387)]).then((()=>()=>t(59464))))),65441:()=>v("default","@jupyterlab/javascript-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4539)]).then((()=>()=>t(42147))))),67237:()=>v("default","@jupyterlab/apputils-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(44),t.e(6568),t.e(4735),t.e(3037),t.e(4931),t.e(6326),t.e(3899),t.e(3247),t.e(6672),t.e(6751),t.e(100)]).then((()=>()=>t(97472))))),68673:()=>v("default","@jupyterlab/inspector-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(349),t.e(4955),t.e(9155),t.e(5743)]).then((()=>()=>t(33389))))),70541:()=>v("default","@jupyterlab/cell-toolbar-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4823)]).then((()=>()=>t(39470))))),73121:()=>v("default","@jupyterlab/console-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4236),t.e(4739),t.e(4539),t.e(44),t.e(4723),t.e(3899),t.e(4466),t.e(2875),t.e(4955),t.e(9155),t.e(9939)]).then((()=>()=>t(70802))))),80439:()=>v("default","@jupyterlab/filebrowser-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4236),t.e(4739),t.e(4735),t.e(4931),t.e(3247),t.e(2875),t.e(3801)]).then((()=>()=>t(48934))))),80865:()=>v("default","@jupyterlab/lsp-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(2336),t.e(4914),t.e(4739),t.e(6568),t.e(7243),t.e(5409)]).then((()=>()=>t(8113))))),86753:()=>v("default","@jupyterlab/completer-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4914),t.e(4739),t.e(4723),t.e(3247),t.e(9939)]).then((()=>()=>t(76177))))),86781:()=>v("default","@jupyterlab/celltags-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4914),t.e(4236),t.e(349)]).then((()=>()=>t(28211))))),89652:()=>v("default","@jupyterlab/shortcuts-extension",false,[2,5,2,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(44),t.e(6326),t.e(3247),t.e(7162)]).then((()=>()=>t(26217))))),90193:()=>v("default","@jupyterlab/codemirror-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(6331),t.e(4914),t.e(4739),t.e(4735),t.e(4723),t.e(6899),t.e(1742),t.e(5806),t.e(4452)]).then((()=>()=>t(21699))))),90285:()=>v("default","@jupyterlab/extensionmanager-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4739),t.e(43)]).then((()=>()=>t(53316))))),90695:()=>v("default","@jupyterlab/application-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(1143),t.e(4914),t.e(4236),t.e(4739),t.e(44),t.e(4735),t.e(4931),t.e(3247),t.e(7257)]).then((()=>()=>t(27902))))),90945:()=>v("default","@jupyterlab/hub-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366)]).then((()=>()=>t(44031))))),91865:()=>v("default","@jupyterlab/htmlviewer-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(4739),t.e(3961)]).then((()=>()=>t(1951))))),91913:()=>v("default","@jupyterlab/markdownviewer-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(4739),t.e(4539),t.e(2149),t.e(1249)]).then((()=>()=>t(69195))))),98465:()=>v("default","@jupyterlab/mathjax-extension",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4539)]).then((()=>()=>t(31217))))),22819:()=>x("default","@codemirror/view",false,[1,6,9,6],(()=>Promise.all([t.e(9296),t.e(1674),t.e(3546)]).then((()=>()=>t(49296))))),71674:()=>x("default","@codemirror/state",false,[1,6,2,0],(()=>t.e(6003).then((()=>()=>t(56003))))),66575:()=>x("default","@lezer/common",false,[1,1,0,0],(()=>t.e(1208).then((()=>()=>t(91208))))),4452:()=>x("default","@codemirror/language",false,[1,6,0,0],(()=>Promise.all([t.e(8313),t.e(2819),t.e(1674),t.e(6575),t.e(5145),t.e(3546)]).then((()=>()=>t(48313))))),45145:()=>x("default","@lezer/highlight",false,[1,1,0,0],(()=>Promise.all([t.e(7803),t.e(6575)]).then((()=>()=>t(57803))))),23546:()=>v("default","style-mod",false,[1,4,0,0],(()=>t.e(4266).then((()=>()=>t(74266))))),44914:()=>x("default","react",false,[1,18,2,0],(()=>t.e(6540).then((()=>()=>t(96540))))),78173:()=>x("default","@jupyter/web-components",false,[2,0,16,6],(()=>Promise.all([t.e(5090),t.e(2576),t.e(9690),t.e(3073)]).then((()=>()=>t(72576))))),29690:()=>x("default","@microsoft/fast-element",false,[1,1,12,0],(()=>t.e(2590).then((()=>()=>t(62590))))),63073:()=>x("default","@microsoft/fast-foundation",false,[1,2,49,2],(()=>t.e(232).then((()=>()=>t(50232))))),2336:()=>x("default","@lumino/signaling",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(5592),t.e(4236)]).then((()=>()=>t(96903))))),74356:()=>x("default","yjs",false,[1,13,5,40],(()=>t.e(9046).then((()=>()=>t(89046))))),30619:()=>x("default","@jupyterlab/translation",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(397),t.e(4931),t.e(8548)]).then((()=>()=>t(6401))))),14366:()=>x("default","@jupyterlab/apputils",false,[2,4,5,2],(()=>Promise.all([t.e(4470),t.e(4728),t.e(619),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4739),t.e(397),t.e(44),t.e(4735),t.e(2856),t.e(4931),t.e(8548),t.e(6326),t.e(4336),t.e(7290),t.e(1445)]).then((()=>()=>t(12253))))),26331:()=>x("default","@jupyterlab/ui-components",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(3824),t.e(9085),t.e(5829),t.e(619),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(2856),t.e(3247),t.e(4466),t.e(7290),t.e(4158),t.e(6672),t.e(8173),t.e(2776)]).then((()=>()=>t(75634))))),1143:()=>x("default","@lumino/widgets",false,[1,2,3,1,,"alpha",0],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(2856),t.e(6326),t.e(3247),t.e(4466),t.e(7290),t.e(970),t.e(7162)]).then((()=>()=>t(14292))))),34236:()=>x("default","@lumino/algorithm",false,[1,2,0,0],(()=>t.e(4470).then((()=>()=>t(56588))))),84739:()=>x("default","@jupyterlab/settingregistry",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(3282),t.e(1219),t.e(5592),t.e(2336),t.e(44),t.e(3247)]).then((()=>()=>t(63075))))),90044:()=>x("default","@lumino/disposable",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(2336)]).then((()=>()=>t(20785))))),24735:()=>x("default","@jupyterlab/statusbar",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(44)]).then((()=>()=>t(57850))))),94931:()=>x("default","@jupyterlab/statedb",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4466)]).then((()=>()=>t(19531))))),93247:()=>x("default","@lumino/commands",false,[1,2,0,1],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(6326),t.e(7162)]).then((()=>()=>t(893))))),57257:()=>v("default","@jupyterlab/property-inspector",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(2336)]).then((()=>()=>t(87221))))),44539:()=>x("default","@jupyterlab/rendermime",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4336),t.e(8193),t.e(2470)]).then((()=>()=>t(17200))))),26568:()=>x("default","@lumino/polling",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336)]).then((()=>()=>t(68534))))),93037:()=>v("default","@jupyterlab/docregistry",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(619),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(4539),t.e(44),t.e(4723),t.e(2856)]).then((()=>()=>t(70491))))),42856:()=>x("default","@lumino/messaging",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(4236)]).then((()=>()=>t(93346))))),94466:()=>x("default","@lumino/properties",false,[1,2,0,0],(()=>t.e(4470).then((()=>()=>t(21628))))),95286:()=>x("default","@lumino/application",false,[1,2,3,0,,"alpha",0],(()=>Promise.all([t.e(4470),t.e(3247)]).then((()=>()=>t(86397))))),76326:()=>x("default","@lumino/domutils",false,[1,2,0,0],(()=>t.e(4470).then((()=>()=>t(60008))))),23899:()=>x("default","@jupyterlab/mainmenu",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(4236)]).then((()=>()=>t(43744))))),86672:()=>x("default","react-dom",false,[1,18,2,0],(()=>t.e(961).then((()=>()=>t(40961))))),6751:()=>x("default","@jupyterlab/workspaces",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(6568)]).then((()=>()=>t(33352))))),44336:()=>v("default","@jupyterlab/observables",false,[2,5,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4236),t.e(44),t.e(2856)]).then((()=>()=>t(56701))))),97290:()=>x("default","@lumino/virtualdom",false,[1,2,0,0],(()=>t.e(4470).then((()=>()=>t(57340))))),84823:()=>x("default","@jupyterlab/cell-toolbar",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(2336),t.e(4236),t.e(4336)]).then((()=>()=>t(23168))))),54723:()=>x("default","@jupyterlab/codeeditor",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4735),t.e(4336),t.e(5917)]).then((()=>()=>t(32069))))),62149:()=>x("default","@jupyterlab/toc",false,[2,6,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(397),t.e(4539),t.e(44),t.e(4158)]).then((()=>()=>t(49830))))),22441:()=>x("default","@jupyterlab/documentsearch",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(44),t.e(6568),t.e(3247)]).then((()=>()=>t(42866))))),66899:()=>x("default","@jupyterlab/codemirror",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(1423),t.e(1268),t.e(619),t.e(5592),t.e(2336),t.e(397),t.e(4723),t.e(2441),t.e(2819),t.e(1674),t.e(6575),t.e(5145),t.e(5806),t.e(4452),t.e(4356)]).then((()=>()=>t(68191))))),95917:()=>x("default","@jupyter/ydoc",false,[1,3,0,0,,"a3"],(()=>Promise.all([t.e(5521),t.e(4356)]).then((()=>()=>t(65521))))),94493:()=>v("default","@jupyterlab/outputarea",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(4236),t.e(8548),t.e(4336),t.e(4466),t.e(8193)]).then((()=>()=>t(66990))))),18815:()=>v("default","@jupyterlab/attachments",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4336)]).then((()=>()=>t(39721))))),80349:()=>x("default","@jupyterlab/notebook",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(6568),t.e(4735),t.e(3037),t.e(4723),t.e(2856),t.e(8548),t.e(6326),t.e(4336),t.e(2149),t.e(4466),t.e(2441),t.e(7243),t.e(7290),t.e(970),t.e(5061),t.e(5917),t.e(8193)]).then((()=>()=>t(97846))))),41742:()=>v("default","@rjsf/validator-ajv8",false,[1,5,13,4],(()=>Promise.all([t.e(3824),t.e(3282),t.e(6896),t.e(2776)]).then((()=>()=>t(6896))))),43370:()=>v("default","@codemirror/search",false,[1,6,5,10],(()=>Promise.all([t.e(4958),t.e(2819),t.e(1674)]).then((()=>()=>t(44958))))),58285:()=>v("default","@codemirror/commands",false,[1,6,8,1],(()=>Promise.all([t.e(4353),t.e(2819),t.e(1674),t.e(6575),t.e(4452)]).then((()=>()=>t(44353))))),29939:()=>x("default","@jupyterlab/completer",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(5592),t.e(1143),t.e(2336),t.e(4236),t.e(397),t.e(4539),t.e(2856),t.e(6326),t.e(2819),t.e(1674)]).then((()=>()=>t(33107))))),42875:()=>x("default","@jupyterlab/filebrowser",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(4735),t.e(3037),t.e(2856),t.e(8548),t.e(6326),t.e(3801),t.e(7290),t.e(970)]).then((()=>()=>t(21813))))),74955:()=>x("default","@jupyterlab/launcher",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(4914),t.e(4236),t.e(44),t.e(4466)]).then((()=>()=>t(70322))))),9155:()=>x("default","@jupyterlab/console",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4539),t.e(4336),t.e(970),t.e(5061),t.e(5917)]).then((()=>()=>t(57958))))),10970:()=>x("default","@lumino/dragdrop",false,[1,2,0,0],(()=>Promise.all([t.e(4470),t.e(44)]).then((()=>()=>t(1506))))),5061:()=>v("default","@jupyterlab/cells",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(4539),t.e(6568),t.e(4723),t.e(2856),t.e(6326),t.e(2149),t.e(2441),t.e(6899),t.e(2819),t.e(7290),t.e(5917),t.e(4493),t.e(8815)]).then((()=>()=>t(30531))))),28426:()=>x("default","@lumino/datagrid",false,[1,2,3,0,,"alpha",0],(()=>Promise.all([t.e(1491),t.e(4236),t.e(2856),t.e(6326),t.e(970),t.e(7162)]).then((()=>()=>t(21491))))),13105:()=>x("default","@jupyterlab/logconsole",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(4493)]).then((()=>()=>t(42708))))),4341:()=>x("default","@jupyterlab/fileeditor",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(6331),t.e(5592),t.e(1143),t.e(4914),t.e(4735),t.e(3037),t.e(4723),t.e(2149),t.e(6899),t.e(7243)]).then((()=>()=>t(53062))))),85253:()=>x("default","@jupyterlab/debugger",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(6568),t.e(4336),t.e(2819),t.e(1674),t.e(4158)]).then((()=>()=>t(85995))))),54158:()=>x("default","@jupyter/react-components",false,[2,0,16,6],(()=>Promise.all([t.e(2794),t.e(8173)]).then((()=>()=>t(12794))))),43801:()=>x("default","@jupyterlab/docmanager",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(4236),t.e(397),t.e(44),t.e(6568),t.e(4735),t.e(3037),t.e(2856),t.e(4466)]).then((()=>()=>t(89069))))),90043:()=>x("default","@jupyterlab/extensionmanager",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(8778),t.e(4914),t.e(397),t.e(6568),t.e(8548)]).then((()=>()=>t(84468))))),7243:()=>x("default","@jupyterlab/lsp",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(2641),t.e(5592),t.e(2336),t.e(397),t.e(3037),t.e(8548)]).then((()=>()=>t(15771))))),73961:()=>x("default","@jupyterlab/htmlviewer",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2336),t.e(4914),t.e(397),t.e(3037)]).then((()=>()=>t(43947))))),83275:()=>x("default","@jupyterlab/imageviewer",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(397),t.e(3037)]).then((()=>()=>t(70496))))),65743:()=>x("default","@jupyterlab/inspector",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(397),t.e(4539),t.e(6568),t.e(4931)]).then((()=>()=>t(40516))))),45409:()=>v("default","@jupyterlab/running",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(44),t.e(6326),t.e(4158)]).then((()=>()=>t(19503))))),91249:()=>x("default","@jupyterlab/markdownviewer",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(3037)]).then((()=>()=>t(34572))))),70933:()=>x("default","@jupyterlab/metadataform",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(4366),t.e(1143),t.e(4914),t.e(1742)]).then((()=>()=>t(32822))))),68193:()=>v("default","@jupyterlab/nbformat",false,[2,4,4,2],(()=>t.e(4470).then((()=>()=>t(15555))))),60075:()=>x("default","@jupyterlab/pluginmanager",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(1143),t.e(2336),t.e(4914),t.e(397),t.e(8548)]).then((()=>()=>t(13125))))),70373:()=>x("default","@jupyterlab/rendermime-interfaces",false,[2,3,12,2],(()=>t.e(4470).then((()=>()=>t(60479))))),77162:()=>x("default","@lumino/keyboard",false,[1,2,0,0],(()=>t.e(4470).then((()=>()=>t(72996))))),76387:()=>x("default","@jupyterlab/terminal",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(5592),t.e(2856),t.e(6326)]).then((()=>()=>t(4202))))),44855:()=>x("default","@jupyterlab/tooltip",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(6331),t.e(5592)]).then((()=>()=>t(22087))))),12776:()=>v("default","@rjsf/utils",false,[1,5,13,4],(()=>Promise.all([t.e(9085),t.e(6733),t.e(4914)]).then((()=>()=>t(26733))))),78352:()=>v("default","vega",false,[1,5,20,0],(()=>Promise.all([t.e(8606),t.e(7879)]).then((()=>()=>t(37879))))),17438:()=>v("default","vega-lite",false,[1,5,6,1,,"next",1],(()=>t.e(4350).then((()=>()=>t(54350))))),91210:()=>v("default","react-toastify",false,[1,9,0,8],(()=>t.e(5492).then((()=>()=>t(13111))))),95625:()=>v("default","@codemirror/lang-markdown",false,[1,6,3,2],(()=>Promise.all([t.e(8103),t.e(7425),t.e(1423),t.e(1962),t.e(9311),t.e(2819),t.e(1674),t.e(6575),t.e(5145)]).then((()=>()=>t(79311))))),79059:()=>v("default","@jupyterlab/csvviewer",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(8426)]).then((()=>()=>t(77678))))),64368:()=>v("default","react-json-tree",false,[2,0,18,0],(()=>t.e(3293).then((()=>()=>t(53293))))),80171:()=>v("default","react-highlight-words",false,[2,0,20,0],(()=>t.e(3257).then((()=>()=>t(23257))))),14507:()=>v("default","marked",false,[1,15,0,7],(()=>t.e(4364).then((()=>()=>t(54364))))),18022:()=>v("default","marked-gfm-heading-id",false,[1,4,1,1],(()=>t.e(6993).then((()=>()=>t(66993))))),3825:()=>v("default","marked-mangle",false,[1,1,1,10],(()=>t.e(7116).then((()=>()=>t(47116))))),86659:()=>x("default","@jupyterlab/settingeditor",false,[2,4,4,2],(()=>Promise.all([t.e(4470),t.e(1143),t.e(2336),t.e(4236),t.e(6568),t.e(1742),t.e(5743)]).then((()=>()=>t(33296))))),40908:()=>v("default","vega-embed",false,[1,6,2,1],(()=>Promise.all([t.e(7990),t.e(8352),t.e(7438)]).then((()=>()=>t(7990)))))};var S={43:[90043],44:[90044],75:[60075],349:[80349],397:[30397],619:[30619],908:[40908],933:[70933],970:[10970],1143:[1143],1210:[91210],1249:[91249],1674:[71674],1742:[41742],1997:[51997],2149:[62149],2336:[2336],2441:[22441],2470:[70373],2776:[12776],2819:[22819],2856:[42856],2875:[42875],3037:[93037],3073:[63073],3105:[13105],3247:[93247],3275:[83275],3546:[23546],3801:[43801],3825:[3825],3899:[23899],3961:[73961],4158:[54158],4236:[34236],4307:[94307],4336:[44336],4341:[4341],4356:[74356],4366:[14366],4452:[4452],4466:[94466],4493:[94493],4507:[14507],4539:[44539],4723:[54723],4735:[24735],4739:[84739],4823:[84823],4914:[44914],4931:[94931],4955:[74955],5061:[5061],5145:[45145],5253:[85253],5286:[95286],5311:[85311],5409:[45409],5592:[5592],5625:[95625],5743:[65743],5806:[43370,58285],5917:[95917],5930:[64368,80171],6180:[2611,3385,4369,6445,11793,13621,16569,20321,22833,23299,23407,26001,27337,27745,30549,31109,33221,34937,37377,41125,44937,45729,46425,51143,53813,55553,56001,59907,61121,62889,65373,65441,67237,68673,70541,73121,80439,80865,86753,86781,89652,90193,90285,90695,90945,91865,91913,98465],6326:[76326],6331:[26331],6387:[76387],6568:[26568],6575:[66575],6659:[86659],6672:[86672],6751:[6751],6899:[66899],7162:[77162],7236:[44855],7243:[7243],7257:[57257],7290:[97290],7438:[17438],8022:[18022],8173:[78173],8193:[68193],8352:[78352],8426:[28426],8548:[28548],8815:[18815],9059:[79059],9155:[9155],9690:[29690],9939:[29939]};var _={};t.f.consumes=(e,a)=>{if(t.o(S,e)){S[e].forEach((e=>{if(t.o(k,e))return a.push(k[e]);if(!_[e]){var l=a=>{k[e]=0;t.m[e]=l=>{delete t.c[e];l.exports=a()}};_[e]=true;var d=a=>{delete k[e];t.m[e]=l=>{delete t.c[e];throw a}};try{var f=O[e]();if(f.then){a.push(k[e]=f.then(l)["catch"](d))}else l(f)}catch(b){d(b)}}}))}}})();(()=>{t.b=document.baseURI||self.location.href;var e={8792:0};t.f.j=(a,l)=>{var d=t.o(e,a)?e[a]:undefined;if(d!==0){if(d){l.push(d[2])}else{if(!/^(1(143|210|249|674|742|997)|2(8(19|56|75)|149|336|441|776)|3(8(01|25|99)|(03|24|9)7|073|105|275|49|546|961)|4(3([356]6||07|41)|4(|52|66|93)|7(23|35|39)|9(14|31|55)|158|236|507|539|823)|5(061|145|253|286|311|409|592|625|743|806|917|930)|6(3(26|31|87)|(1|65|89)9|568|575|672|751)|7(2(36|43|57|90)|162|438|5)|8(022|173|193|352|426|548|815)|9(059|08|155|33|690|70|939))$/.test(a)){var f=new Promise(((t,l)=>d=e[a]=[t,l]));l.push(d[2]=f);var b=t.p+t.u(a);var r=new Error;var c=l=>{if(t.o(e,a)){d=e[a];if(d!==0)e[a]=undefined;if(d){var f=l&&(l.type==="load"?"missing":l.type);var b=l&&l.target&&l.target.src;r.message="Loading chunk "+a+" failed.\n("+f+": "+b+")";r.name="ChunkLoadError";r.type=f;r.request=b;d[1](r)}}};t.l(b,c,"chunk-"+a,a)}else e[a]=0}}};var a=(a,l)=>{var[d,f,b]=l;var r,c,n=0;if(d.some((a=>e[a]!==0))){for(r in f){if(t.o(f,r)){t.m[r]=f[r]}}if(b)var o=b(t)}if(a)a(l);for(;n{t.nc=undefined})();t(80551);var l=t(31068)})(); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/style.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/style.js new file mode 100644 index 0000000000000000000000000000000000000000..cc37c2bd1e3437bb47b354f096345147bdbf80d5 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/style.js @@ -0,0 +1,48 @@ +/* This is a generated file of CSS imports */ +/* It was generated by @jupyterlab/builder in Build.ensureAssets() */ + +import '@jupyterlab/application-extension/style/index.js'; +import '@jupyterlab/apputils-extension/style/index.js'; +import '@jupyterlab/cell-toolbar-extension/style/index.js'; +import '@jupyterlab/celltags-extension/style/index.js'; +import '@jupyterlab/codemirror-extension/style/index.js'; +import '@jupyterlab/completer-extension/style/index.js'; +import '@jupyterlab/console-extension/style/index.js'; +import '@jupyterlab/csvviewer-extension/style/index.js'; +import '@jupyterlab/debugger-extension/style/index.js'; +import '@jupyterlab/docmanager-extension/style/index.js'; +import '@jupyterlab/documentsearch-extension/style/index.js'; +import '@jupyterlab/extensionmanager-extension/style/index.js'; +import '@jupyterlab/filebrowser-extension/style/index.js'; +import '@jupyterlab/fileeditor-extension/style/index.js'; +import '@jupyterlab/help-extension/style/index.js'; +import '@jupyterlab/htmlviewer-extension/style/index.js'; +import '@jupyterlab/hub-extension/style/index.js'; +import '@jupyterlab/imageviewer-extension/style/index.js'; +import '@jupyterlab/inspector-extension/style/index.js'; +import '@jupyterlab/javascript-extension/style/index.js'; +import '@jupyterlab/json-extension/style/index.js'; +import '@jupyterlab/launcher-extension/style/index.js'; +import '@jupyterlab/logconsole-extension/style/index.js'; +import '@jupyterlab/lsp-extension/style/index.js'; +import '@jupyterlab/mainmenu-extension/style/index.js'; +import '@jupyterlab/markdownviewer-extension/style/index.js'; +import '@jupyterlab/markedparser-extension/style/index.js'; +import '@jupyterlab/mathjax-extension/style/index.js'; +import '@jupyterlab/mermaid-extension/style/index.js'; +import '@jupyterlab/metadataform-extension/style/index.js'; +import '@jupyterlab/notebook-extension/style/index.js'; +import '@jupyterlab/pdf-extension/style/index.js'; +import '@jupyterlab/pluginmanager-extension/style/index.js'; +import '@jupyterlab/rendermime-extension/style/index.js'; +import '@jupyterlab/running-extension/style/index.js'; +import '@jupyterlab/settingeditor-extension/style/index.js'; +import '@jupyterlab/shortcuts-extension/style/index.js'; +import '@jupyterlab/statusbar-extension/style/index.js'; +import '@jupyterlab/terminal-extension/style/index.js'; +import '@jupyterlab/toc-extension/style/index.js'; +import '@jupyterlab/tooltip-extension/style/index.js'; +import '@jupyterlab/translation-extension/style/index.js'; +import '@jupyterlab/ui-components-extension/style/index.js'; +import '@jupyterlab/vega5-extension/style/index.js'; +import '@jupyterlab/workspaces-extension/style/index.js';